POST/desearch/people/search/linkedin

    LinkedIn Profile Search

    Find LinkedIn members by what they post and by their role. Describe the people you want in plain language; the search looks for public LinkedIn posts on the topic and for public profiles whose headline matches the role, reads each profile (headline, company, location, followers, about) and scores how well each person fits. You get **profiles, not posts**: each with a fit score, the reasons it matched and the posts that prove it. Public data only. **How it runs.** The search runs in the background. This call returns a `task_id` at once. Poll `GET /desearch/people/tasks/{task_id}` every few seconds, read profiles with `GET /desearch/people/tasks/{task_id}/results` (they arrive while the search is still running), or download everything with `GET /desearch/people/tasks/{task_id}/export?format=csv`. You can pause, resume or cancel a search at any time. Results stay available for 30 days. When it ends, `completion_reason` says why, `coverage_limited` whether a budget stopped it before it found `count` profiles, and `warnings` what made part of it less reliable (e.g. LinkedIn profiles that could not be read). **Billing.** `count` profiles are reserved at the route price when the task is created (`cost_usd` on this response). When the search ends you pay only for the qualified profiles it delivered (prices, including any minimum, are at https://desearch.ai/pricing), unless it has a budget (below); the rest of the reservation is returned automatically. Without a `max_cost_usd` budget, a search that delivers no profiles costs nothing. A search stops once it costs more than the profiles it found pay for (`completion_reason` `cost_limit`). To search further, set a budget (`max_cost_usd`): the whole budget is reserved, the search goes on until it delivers `count` or spends it, and its search effort is billed where the profiles delivered do not cover it, up to the budget, even when it finds few or none. Prices: https://desearch.ai/pricing. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use LinkedIn Profile Search when your application needs scored public profiles of people and creators without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. LinkedIn profile search looks for people through public posts on the requested subject and public profiles whose headlines match the role, then reads their headline, company, location, followers and About information to assess the match. The delivered unit is a profile, supported by a fit score, reasons and matching posts; when the need instead starts with recent X conversations and author bios, the sibling X profile search provides that discovery route. The People Search API overview introduces these public-data searches; for this request, express the desired professionals in the required query, an ordinary-language string of at least 3 and at most 1000 characters. To request an initial target size, count accepts integers 5 through 200 and falls back to 25, while optional min_score only delivers profiles at or above an integer threshold from 0 to 100; neither property replaces the role description in the query. Use exclude for a list of handles that should not be returned, up to 1000 entries, and use exclude_keywords within filters for unwanted words in profiles; one suppresses specified people, while the other constrains wording encountered during selection. The LinkedIn filter schema contains five properties: min_followers, max_followers, countries, keywords and exclude_keywords; it rejects additional properties, so verification, contact, engagement and recent-activity switches are not accepted by this platform's filter object. Both follower boundaries are nonnegative integers, permitting a lower or upper audience requirement without implying that a public professional profile must have the same audience metrics as a creator account on another platform. The positive keywords condition searches for words in posts, profile headlines or About sections, making it useful alongside a role-based description; negative terms belong in exclude_keywords, which leaves out profiles mentioning those words. Specify countries using names or ISO codes, with country validation also applied to a place named in the query; the person's profile has to show the requested place through its location, headline, bio or flag. A profile that points to another place, or supplies no place evidence, is excluded by that geographic requirement; the documented creator-script evidence rule also belongs to this shared country definition, rather than allowing missing location data to count as a match. Creation queues an asynchronous search and returns a PeopleTask with HTTP 202; use its identifier to poll GET /desearch/people/tasks/{task_id} every few seconds, and use the matching /results resource to read profiles before the task finishes. The same task can be paused, resumed or cancelled, and sending GET to the task's /export?format=csv route downloads results; these results stay available for 30 days, so retrieving a finished professional search is separate from submitting another creation request. A task's interpreted information records the understood criteria and search queries, while stage can show planning, searching, processing or finalizing; stages are nullable, so read them as progress context alongside status rather than as mandatory values on every response. At the end, completion_reason can indicate that the count was reached, planned rounds were exhausted, there were no candidates, candidates failed qualification or a cost, time or candidate limit stopped work; these outcomes carry different implications for an underfilled professional list. Budget-limited work can finish with status completed even below the target, and coverage_limited becomes true when cost, candidate or time constraints stop the search early; it indicates possible remaining matches rather than proving that the professional population has been exhausted. Profile-read failures are especially relevant to interpreting LinkedIn results: partial_enrichment warns that some candidates were scored from search-returned information because their public profiles could not be read, and affected results explicitly mark enrichment as failed. A failed enrichment can leave location, followers or experience derived only from the search hit or missing; the per-result enrichment_error and warning counts distinguish inaccessible or removed profiles from rate limits, timeout, upstream and request errors. The warning object also carries optional attempted, enriched and failed lookup totals, allowing an application to report the extent of the limitation; the task's warnings describe reliability issues without automatically meaning that every delivered profile is unusable or that the entire task failed. LinkedIn attributes may include headline and company; standard profile records separate identity and handle from optional name, bio, image, URL and location, and hold supporting posts under evidence rather than making the profile record itself a post. Read the score explanation for profile-fit reasons, matched signals, buying triggers, evidence and concerns; informational criteria_checks may still mark a condition unknown on a qualified result, while fully_verified requires all conditions satisfied and no disqualifier. Creating a search normally reserves the route's price for count profiles, after which the standard no-budget settlement charges qualified deliveries with any applicable minimum from pricing, returns the rest and charges zero when nobody was delivered. Without max_cost_usd, a cost_limit stop occurs when search expense reaches what delivered profiles would bill; an explicit budget changes this rule by reserving that full amount and allowing work toward the count until the budget is spent. The budget field accepts a value above zero and at most 100 USD, no lower than the count-based reservation; billed search effort can consume it even when few professionals or none are found, and any unspent part is returned at settlement. To avoid duplicating creation on a retry, supply an Idempotency-Key for the company: the service strips surrounding whitespace and truncates to 200 characters, then either creates with 202 or returns the original task with 200 and refunds the repeated call's reservation. Optional metadata holds organizational labels rather than professional selection rules: at most 10 entries, keys of 1 to 40 lowercase letters, numbers, underscores, hyphens or dots, and string values of up to 200 characters. These labels are returned on the task and allow filtering its list endpoint with metadata.<key>=<value>; creation errors separately identify unsupported platform filters with 400, invalid data with 422, insufficient reservation credit with 402 and too many queued, running or paused searches with 429. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to POST /desearch/people/search/linkedin with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Header Parameters

    Idempotency-Keystringoptional

    Optional. Any unique string, for example a UUID. Surrounding whitespace is removed and the value is cut to 200 characters; a longer key is not rejected. The same key again for this company returns the original search with HTTP 200 and refunds this call's reservation, so it is not charged. A new key starts a search and returns HTTP 202.

    maxLength: 200

    Body Parameters

    querystringrequired

    Who you are looking for, in plain language.

    countinteger

    How many qualified profiles to find. The search reserves this many at the route price and bills only the profiles it delivers; a search that finds none is free (unless it has a budget, `max_cost_usd`).

    Default: 25

    min_scoreinteger

    Only return profiles with at least this fit score (0-100).

    excludearray of strings

    Handles to leave out, for example people you already contacted. Up to 1,000 handles.

    One item per line, or a JSON array. Sent as an array.

    max_cost_usdnumber

    Your search budget, in USD: the most the search may charge, at least what `count` reserves at the route price. Without it, the search stops once it costs more than the people it found pay for (`completion_reason` `cost_limit`). With it, the search keeps looking until it delivers `count` or spends the budget, and its search effort (what the search cost, with a margin) is billed when the people delivered do not cover it, also when it finds fewer people, or none. The whole budget is reserved and the unused part returned.

    metadataobject (JSON)

    Your own labels for this search, e.g. the workspace or campaign it belongs to. At most 10 keys; keys are 1-40 characters of a-z, 0-9, '_', '.' or '-'; values are strings of at most 200 characters. Returned as `metadata` on the task and usable as a filter on `GET /desearch/people/tasks` (`metadata.<key>=<value>`). Never used by the search itself.

    A JSON object, sent as JSON. Leave it empty to omit the field.

    filtersobject (JSON)

    A JSON object, sent as JSON. Leave it empty to omit the field. Keys: min_followers, max_followers, countries, keywords, exclude_keywords.

    Responses

    200Same Idempotency-Key as an earlier search: that task, not charged again.
    202The created search task.
    400Bad request: an unknown platform, sort, status, cursor or `has` channel, a filter the platform does not support, or an invalid `metadata.<key>` filter
    401Unauthorized
    402Not enough credits for the reservation.
    422Validation Error
    429Too many searches are already queued, running or paused.
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X POST "https://api.desearch.ai/desearch/people/search/linkedin" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "count": 25,
      "filters": {
        "countries": [
          "United States",
          "United Kingdom"
        ]
      },
      "query": "Heads of sales at fintech startups who post about outbound"
    }'
    POST /desearch/people/search/linkedin
    ResponseSchema
    {
      "task_id": "Task Id",
      "search_type": "x_profile_search",
      "platform": "x",
      "status": "queued",
      "stage": "planning",
      "query": "Query",
      "count": 0,
      "result_count": 0,
      "metadata": {},
      "interpreted": {},
      "progress": {},
      "errors": [],
      "completion_reason": "count_reached",
      "coverage_limited": false,
      "warnings": [
        {
          "code": "Code",
          "platform": "x",
          "attempted": 0,
          "enriched": 0,
          "failed": 0,
          "by_reason": {},
          "roles": [
            "string"
          ],
          "countries": [
            "string"
          ],
          "places": [
            "string"
          ],
          "message": "string"
        }
      ],
      "reserved_cost_usd": 0,
      "final_cost_usd": 0,
      "refunded_usd": 0,
      "created_by": {
        "user_id": "string",
        "api_key_id": "string",
        "via": "string"
      },
      "created_at": "2024-01-15T10:30:00Z",
      "started_at": "2024-01-15T10:30:00Z",
      "paused_at": "2024-01-15T10:30:00Z",
      "finished_at": "2024-01-15T10:30:00Z",
      "results_expire_at": "2024-01-15T10:30:00Z",
      "links": {
        "self": "Self",
        "results": "Results",
        "export": "Export"
      }
    }
    Status codes200202400401402422429500