# PDL Company Search via Elasticsearch/SQL

> PDL Company Search via Elasticsearch/SQL is a paid API for AI agents from stable-people-data-git-shafu-merchant-heal-bd8263-merit-systems.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Search across 30M+ People Data Labs company records using Elasticsearch DSL or SQL queries, returning paginated matching company profiles.

## Facts

- Endpoint: POST https://stable-people-data-git-shafu-merchant-heal-bd8263-merit-systems.vercel.app/api/pdl/company/search
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdl-company-search-via-elasticsearch-sql-6742903a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I-BjzoA-mRjq5H9Gdvfoh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pdl-company-search-via-elasticsearch-sql-6742903a -d '<json body>'
```

Example prompt: Search the PDL company database for software companies headquartered in Austin, Texas with between 50 and 500 employees — return the top 10 results.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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).

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdl-company-search-via-elasticsearch-sql-6742903a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stable-people-data-git-shafu-merchant-heal-bd8263-merit-systems.vercel.app](https://www.zero.xyz/host/stable-people-data-git-shafu-merchant-heal-bd8263-merit-systems.vercel.app/llms.txt)
