{"uid":"cap_I-BjzoA-mRjq5H9Gdvfoh","slug":"pdl-company-search-via-elasticsearch-sql-6742903a","name":"PDL Company Search via Elasticsearch/SQL","description":"PDL Company Search - Search across 30M+ company records using Elasticsearch DSL or SQL queries. Returns matching company records with pagination via scroll_token. Price scales with the requested `size` (1 PDL credit per result).","url":"https://stable-people-data-git-shafu-merchant-heal-bd8263-merit-systems.vercel.app/api/pdl/company/search","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"sql":{"type":"string","description":"SQL query: SELECT * FROM company WHERE ... Do not include LIMIT — use size for result count."},"size":{"type":"integer","maximum":100,"minimum":1,"description":"Batch size (1-100, default 1)"},"query":{"type":"object","description":"Elasticsearch v7.7 DSL query object","propertyNames":{"type":"string"},"additionalProperties":{}},"titlecase":{"type":"boolean","description":"Titlecase text in response"},"scroll_token":{"type":"string","description":"Pagination token from previous response"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iGeYFDVhJ55W5NJdjAYsI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search across 30M+ People Data Labs company records using Elasticsearch DSL or SQL queries, returning paginated matching company profiles.","exampleAgentPrompt":"Search the PDL company database for software companies headquartered in Austin, Texas with between 50 and 500 employees — return the top 10 results.","exampleUseCases":[{"title":"B2B sales prospect list building","prompt":"Find me 25 fintech companies based in New York with fewer than 1000 employees — I want company names, websites, and industry info for a sales outreach list."},{"title":"Competitive landscape research","prompt":"Search for all cloud infrastructure companies founded after 2015 that have between 100 and 5000 employees — give me the top 20 results so I can map the competitive landscape."},{"title":"Market segmentation analysis","prompt":"Query the company database for healthcare SaaS companies in California or Texas with more than 200 employees, and return the first page of 15 results along with a scroll token so I can get more."}],"resultDescription":"Returns a list of matching company records from the PDL dataset (up to the requested `size`), each containing fields such as company name, website, industry, employee count, location, revenue range, and other firmographic attributes. Also includes a `scroll_token` for paginating through additional results. Credits consumed equal the number of results returned.","failureModes":["Invalid Elasticsearch DSL syntax returns a query parse error","SQL syntax errors cause 400 bad request responses","Requesting a very large `size` may exhaust PDL credits quickly","Expired or invalid scroll_token results in pagination failure","No matching records returns an empty results array","Insufficient USDC balance causes x402 payment failure before query executes"],"whenToPreferThis":"Use this endpoint when you need flexible, programmatic access to PDL's 30M+ company database via structured Elasticsearch DSL or SQL queries — ideal for complex multi-field filtering, large-scale prospecting, or when you need pagination support via scroll tokens. Prefer this over simpler company lookup endpoints when you need batch results or advanced query logic rather than a single company enrichment by identifier.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:15.550Z","isFirstParty":false}