search

Lookalike Search Endpoint

Find similar profiles using vector embedding similarity (pgvector).

Authentication required: Header api_key: <your_api_key>

Pricing: 0.25 credit per profile returned (DB data)

This endpoint uses OpenAI embeddings + pgvector cosine similarity to find profiles that are semantically similar to a given LinkedIn profile.

How it works:

  1. Takes a LinkedIn profile URL, public_id, or member_identity
  2. If the profile has no embedding yet: scrapes it live, generates embedding, stores it
  3. Queries pgvector for the most similar profiles by cosine distance
  4. Returns profiles ranked by similarity score (1.0 = identical, 0.0 = unrelated)

Use cases:

  • sales: Find similar prospects (matches on title, industry, company size, skills)
  • recruiter: Find similar candidates (matches on skills, education, experience)

Example request:

{
    "profile": "https://www.linkedin.com/in/johndoe",
    "use_case": "sales",
    "country": "US",
    "count": 25,
    "offset": 0
}

Example response:

{
    "lookalike_profile": "https://www.linkedin.com/in/john-doe",
    "total": 847,
    "offset": 0,
    "count": 25,
    "has_next_page": true,
    "credits_used": 6.25,
    "method": "vector",
    "results": [
        {
            "similarity_score": 0.8234,
            "member_identity": "ACoAABxxxxxx",
            "headline": "Sales Director at BigCo",
            ...
        }
    ]
}
post/search/lookalike

Request

  • Base URL: https://api.dataforb2b.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.dataforb2b.ai/search/lookalike
  • Auth: none declared

Headers

api-keystring nullable

Request body

profilestring nullable

LinkedIn profile URL, public_id, or member_identity

companystring nullable

LinkedIn company URL or universal_name to find similar companies

countrystring nullable

ISO country code to filter results (e.g. 'US', 'FR')

locationstring nullable

Location text filter (city, region, etc.) - matches on profile location or job location (e.g. 'Paris', 'San Francisco Bay Area')

countinteger

Number of results to return

offsetinteger

Pagination offset

Response

Successful Response

lookalike_profilestring required

LinkedIn URL of the profile used as lookalike source

totalinteger required
offsetinteger required
countinteger required
has_next_pageboolean required
credits_usednumber required
methodstring

Search method used: 'vector' or 'llm_fallback'

resultsobject[] required

Changes

No recorded changes to this operation across all 1 revision of this API.