API di LinkedIn

LinkedIn Search leads API

LinkedIn lead search with Sales Navigator's search and filters: one call returns a page of up to 25 people matching a keyword and Sales Navigator lead filters (location, job title, current and past company, school, seniority, function, company size, and more), or the results of a Sales Navigator lead-search URL you built yourself. Each lead comes with name, current positions, location, summary, and photo, and its url opens the profile and can be passed to linkedin.profile for the full record. For full profiles in one call use linkedin.search_profiles.

POST/v1/run/linkedin.search_leads
Disponibilità
99,42%
30d · 172 chiamate
Richieste
172
30d
Risposta
2,8s
mediana · 30d

Prezzi

Prezzi dell'API LinkedIn Search leads

Paghi
700,00 USD
70,00 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 1 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Chiamalo

Ottieni LinkedIn Search leads in una sola richiesta

import os, requests

res = requests.post(
    "https://api.getanyapi.com/v1/run/linkedin.search_leads",
    headers={"Authorization": f"Bearer {os.environ['ANYAPI_KEY']}"},
    json={},
)
print(res.json())
Apri in
Risposta di esempio
{
  "data": {
    "items": [
      {
        "about": "A short example description of this item.",
        "currentPositions": [
          {
            "companyId": "Acme Inc",
            "companyLinkedinUrl": "https://example.com/page",
            "companyName": "Acme Inc",
            "startedOn": {},
            "tenureAtCompany": {},
            "tenureAtPosition": {},
            "title": "Example title"
          }
        ],
        "firstName": "Alex",
        "id": "a1b2c3d4",
        "image": "https://example.com/image.jpg",
        "lastName": "Rivera",
        "location": "example",
        "openProfile": true,
        "premium": true,
        "url": "https://example.com/page"
      }
    ],
    "page": 29,
    "totalPages": 12500,
    "totalResults": 12500
  },
  "found": true,
  "reason": "not_found"
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-10-07 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • companyHeadcountarray

    Filtra per dimensione attuale dell'azienda (numero di dipendenti). Codici: A=Self-Employed, B=1-10, C=11-50, D=51-200, E=201-500, F=501-1,000, G=1,001-5,000, H=5,001-10,000, I=10,001+.

  • companyHeadquarterLocationsarray

    Filter by the location of the person's current company headquarters, by place name (e.g. ['United States']). Commas are not allowed in a value. Up to 70 values.

  • currentCompaniesarray

    ["Google"]

    Filter to people who currently work at any of these companies, by name (e.g. ['Google','Meta']). Multiple names widen the match (OR). Commas are not allowed in a value. Up to 50 values.

  • excludeCompanyHeadquarterLocationsarray

    Exclude people whose current company is headquartered in any of these locations. Commas are not allowed in a value. Up to 70 values.

  • excludeCurrentCompaniesarray

    Exclude people who currently work at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.

  • excludeCurrentJobTitlesarray

    Exclude people whose current job title matches any of these. Commas are not allowed in a value. Up to 70 values.

  • excludeFunctionIdsarray

    Exclude these job functions (same codes as functionIds). Up to 30 values.

  • excludeLocationsarray

    Exclude people in any of these locations, by place name. Commas are not allowed in a value. Up to 70 values.

  • excludePastCompaniesarray

    Exclude people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.

  • excludePastJobTitlesarray

    Exclude people who held any of these past job titles. Commas are not allowed in a value. Up to 70 values.

  • excludeSchoolsarray

    Exclude people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.

  • excludeSeniorityLevelIdsarray

    Exclude these seniority levels (same codes as seniorityLevelIds). Up to 20 values.

  • firstNamesarray

    Filter to people whose first name matches any of these. Commas are not allowed in a value. Up to 70 values.

  • functionIdsarray

    Filtra per funzione lavorativa. Codici: 1=Accounting, 2=Administrative, 3=Arts and Design, 4=Business Development, 5=Community and Social Services, 6=Consulting, 7=Education, 8=Engineering, 9=Entrepreneurship, 10=Finance, 11=Healthcare Services, 12=Human Resources, 13=Information Technology, 14=Legal, 15=Marketing, 16=Media and Communication, 17=Military and Protective Services, 18=Operations, 19=Product Management, 20=Program and Project Management, 21=Purchasing, 22=Quality Assurance, 23=Real Estate, 24=Research, 25=Sales, 26=Customer Success and Support.

  • jobTitlestring

    Optional current job title filter (e.g. 'Software Engineer'). Commas are not allowed in a value.

  • lastNamesarray

    Filter to people whose last name matches any of these. Commas are not allowed in a value. Up to 70 values.

  • locationstring

    Optional location filter (e.g. 'San Francisco'). Commas are not allowed in a value.

  • pageinteger

    Which page of up to 25 leads to return, starting at 1 (1-100, default 1). Also pages through a salesNavUrl search. Each page is billed as one request.

  • pastCompaniesarray

    Filter to people who previously worked at any of these companies, by name. Commas are not allowed in a value. Up to 50 values.

  • pastJobTitlesarray

    Filter by a past job title the person held (e.g. ['Product Manager']). Commas are not allowed in a value. Up to 70 values.

  • profileLanguagesarray

    Filtra per lingua principale del profilo.

  • querystring

    engineer

    Search keywords for LinkedIn leads: a role, name, or keywords (e.g. 'Marketing Manager'). Provide this or salesNavUrl.

  • recentlyChangedJobsboolean

    Se true, restituisce solo le persone che hanno cambiato lavoro di recente (un forte segnale per vendite e selezione del personale).

  • recentlyPostedOnLinkedInboolean

    Se true, restituisce solo le persone che hanno pubblicato di recente su LinkedIn (un segnale di attività).

  • salesNavUrlstring

    Alternatively, a LinkedIn Sales Navigator lead-search URL you built in Sales Navigator (e.g. https://www.linkedin.com/sales/search/people?query=(keywords%3Aengineer)). When set it overrides query and every other filter on this request; only page still applies.

  • schoolsarray

    Filter to people who attended any of these schools, by name. Commas are not allowed in a value. Up to 50 values.

  • seniorityLevelIdsarray

    Filtra per livello di seniority. Codici: 100=In Training, 110=Entry Level, 120=Senior, 130=Strategic, 200=Entry Level Manager, 210=Experienced Manager, 220=Director, 300=Vice President, 310=CXO, 320=Owner/Partner.

  • yearsAtCurrentCompanyIdsarray

    Filtra per anzianità nell'azienda attuale. Codici: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.

  • yearsOfExperienceIdsarray

    Filtra per anni totali di esperienza. Codici: 1=Less than 1 year, 2=1 to 2 years, 3=3 to 5 years, 4=6 to 10 years, 5=More than 10 years.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

each itemdata.items[]

Matching leads, up to 25 per page. Populated whenever the provider has data for the entity.

  • aboutstring

    Profile summary text, when the member wrote one.

  • firstNamestring

    Member's first name. Populated whenever the provider has data for the entity.

  • idstring

    LinkedIn member id, the last segment of `url`.

  • imagestring

    Profile picture URL. The query string is a signed token, so keep the URL intact. Populated whenever the provider has data for the entity.

  • lastNamestring

    Member's last name. Populated whenever the provider has data for the entity.

  • locationstring

    Member's location as a single string (city, region, country). Populated whenever the provider has data for the entity.

  • openProfileboolean

    Whether the member accepts messages from people outside their network.

  • premiumboolean

    Whether the member has a LinkedIn Premium subscription.

  • urlstring

    LinkedIn profile URL in its member-id form (https://www.linkedin.com/in/ACwAAA...). It opens the profile on LinkedIn, and passing it as `url` to linkedin.profile returns the full record. Populated whenever the provider has data for the entity.

each currentPositiondata.items[].currentPositions[]

Current roles. Populated whenever the provider has data for the entity.

  • companyIdstring

    LinkedIn company id.

  • companyLinkedinUrlstring

    LinkedIn company page URL.

  • companyNamestring

    Company name.

  • startedOnobject

    When the role started, as `month` (1-12, when shown) and `year`.

  • tenureAtCompanyobject

    Time at this company, as `numYears` and `numMonths`.

  • tenureAtPositionobject

    Time in this role, as `numYears` and `numMonths`.

  • titlestring

    Job title.

datadata

The results wrapper, or null when nothing matched.

  • pageinteger

    The page this response holds, starting at 1.

  • totalPagesinteger

    How many pages of up to 25 leads the search has.

  • totalResultsinteger

    How many leads match the search in total, across every page.

top level
  • foundboolean

    True when the page returned at least one lead.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API LinkedIn Search leads

L'API LinkedIn Search leads di AnyAPI restituisce dati LinkedIn come JSON normalizzato da una sola chiamata POST a /v1/run/linkedin.search_leads. LinkedIn lead search with Sales Navigator's search and filters: one call returns a page of up to 25 people matching a keyword and Sales Navigator lead filters (location, job title, current and past company, school, seniority, function, company size, and more), or the results of a Sales Navigator lead-search URL you built yourself. Each lead comes with name, current positions, location, summary, and photo, and its url opens the profile and can be passed to linkedin.profile for the full record. For full profiles in one call use linkedin.search_profiles. AnyAPI restituisce un unico schema normalizzato qualunque fonte la serva. Costa da 70 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 99,4% delle chiamate LinkedIn Search leads tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,8 secondi su 172 chiamate misurate.

Costa da 70 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

LinkedIn lead search with Sales Navigator's search and filters: one call returns a page of up to 25 people matching a keyword and Sales Navigator lead filters (location, job title, current and past company, school, seniority, function, company size, and more), or the results of a Sales Navigator lead-search URL you built yourself. Each lead comes with name, current positions, location, summary, and photo, and its url opens the profile and can be passed to linkedin.profile for the full record. For full profiles in one call use linkedin.search_profiles. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 99,4% delle chiamate LinkedIn Search leads tramite AnyAPI è riuscito, con un tempo di risposta mediano di 2,8 secondi su 172 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 1 chiamate LinkedIn Search leads a 0,07 USD ciascuna.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/linkedin.search_leads con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.