/desearch/people/search/xFind X accounts by what they post and how they describe themselves. Describe the people you want in plain language; the search scans recent X posts for people talking about it, groups the matches by author, reads each profile (bio, followers, website, location) and scores how well each account fits. You get **profiles, not posts**: each with a fit score, the reasons it matched and the posts that prove it. **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.aiUse X Profile Search when your application needs scored public profiles of people and creators without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. X people search discovers accounts through recent posts about a subject, groups those post matches by author and reads each author's biography, follower count, website and location before scoring the account's fit to the people you described. Its result is a profile with match reasons and supporting posts, rather than a feed of those posts; for public professional headlines and role-based profile discovery, the related LinkedIn people search offers a different starting point. Begin with a mandatory plain-language query of 3 to 1000 characters, using the People Search product as the overview; the optional count describes desired qualified accounts, has a default of 25 and permits integer values from 5 through 200. Add an optional min_score integer in the 0-to-100 range if profiles should meet a fit threshold, and put at most 1000 already known handles in exclude when those accounts should be suppressed from delivery. Audience limits belong under filters.min_followers and filters.max_followers, each accepting nonnegative integers; for account verification, the false-by-default verified_only switch limits results to verified or X Premium accounts, as described by this platform's filter contract. The X-specific freshness condition is active_within_days, an integer from 1 to 365; when the matched post is older than that window, the search reads the account's latest posts, and an account whose latest post cannot be read does not pass. Every X result exposes the newest post date seen by the search at attributes.last_post_at; interpret that value as the latest date the search saw, rather than assuming it establishes the date of every activity an account may have performed. For textual eligibility, keywords identifies words expected in posts or bios, while exclude_keywords leaves out profiles mentioning undesirable terms; the schema supports seven filter keys and rejects extra keys, without a public-contact or creator-engagement switch on this route. A country requirement may use country codes in countries, and a place written in the query is checked identically; profile evidence must substantiate the place through location, headline, biography or a flag, with creator-specific writing-script evidence also recognized. An account showing another location, or showing no place information, is not accepted by the country condition; the same evidence requirement applies whether the geographic constraint came from structured filters or from your natural-language description. When fewer people than requested are found for job-title or country criteria, a try_linkedin warning can recommend profile-based professional discovery; X finds people through posts and biographies, whereas LinkedIn reads profiles that explicitly state titles and places. The warning can include the requested roles and countries, which helps explain that suggestion; place_unrecognized instead identifies query places that could not be recognized, causing no search and no delivery with completion_reason set to no_candidates. Creation itself is asynchronous: a fresh request receives HTTP 202 and a task ID, after which GET /desearch/people/tasks/{task_id} provides status and the task's /results route supplies profiles that arrive while processing is still underway. Download a CSV by sending GET to the task's /export?format=csv route if needed, or pause, resume and cancel work through the task workflow; the documented result availability is 30 days, separate from the activity window used to filter X accounts. Inspect completion_reason after processing to distinguish reaching count, exhausting the planned rounds, finding no candidates and finding candidates who never qualified; a budget stop may still appear with status completed, even if the returned account count is low. The coverage_limited indicator specifically marks cost, candidate or runtime constraints that ended work before the requested count, allowing an interface to explain that more matching accounts might exist instead of labeling the result list exhaustive. A task warning describes something that made part of discovery less reliable and does not alone mean total failure; lookup counts can distinguish attempts, successful enrichment and failed reads, while the X failure breakdown includes private, removed or logged-out-unavailable accounts, rate limiting, timeouts and upstream or request errors. The result schema requires identity, platform, handle and found_by, with name, URL, avatar, biography and location allowed to be missing or null; platform attributes can carry verification and the observed latest-post timestamp, while evidence keeps the posts supporting a match. In score details, distinguish the profile's identity fit from buying-trigger evidence, matched signals and concerns; criteria_checks provides informational condition-by-condition proof, and being qualified can coexist with an unknown condition, unlike fully_verified, which requires all criteria met and no disqualifier. At submission, the normal reservation covers count accounts at this route's rate; with no explicit max_cost_usd, only delivered qualified profiles are finally charged, subject to any published minimum, and unused credit is returned automatically, including a zero bill when nobody was delivered. This ordinary mode stops at cost_limit when searching reaches what found profiles would bill; setting a spending budget instead reserves that whole amount, continues toward either the account target or the budget, and bills search effort where deliveries do not cover it, even for few or zero matches. That budget must be positive, no more than 100 USD and large enough for the requested count reservation, with the unspent part returned; consult the pricing page for monetary rates and minima instead of treating reserved cost as a final charge. Company-level retry protection is available through Idempotency-Key: after trimming whitespace and cutting the key at 200 characters, a new value creates with 202 and a repeated value returns the original task with 200, refunding this attempt's reservation. Use metadata for campaign or workspace labels only: it permits up to 10 entries, keys of 1 to 40 lowercase letters, digits, dots, underscores or hyphens and string values of at most 200 characters; the labels support metadata.<key>=<value> task-list filtering and never choose eligible accounts. Creation response errors distinguish unsupported platform filters at 400, insufficient reservation funds at 402, invalid inputs at 422 and too many queued, running or paused tasks at 429; these failures differ from a valid task that completes with a limited set of X profiles. 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/x 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.
Idempotency-KeystringoptionalOptional. 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
querystringrequiredWho you are looking for, in plain language.
countintegerHow 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_scoreintegerOnly return profiles with at least this fit score (0-100).
excludearray of stringsHandles 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_usdnumberYour 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, verified_only, active_within_days, countries, keywords, exclude_keywords.
Your API key is sent in the Authorization header.