API & agent access
Everything the search and profile pages do is available over a JSON API — and as tools for Claude and other AI agents via MCP. Search is free; extraction is metered by the same credit ledger the website uses.
1. Get a key
Requests authenticate with Authorization: Bearer dbdk_… API keys. Keys are issued per account on Business and Enterprise plans (they’re what determines whose credits get spent). Ask for yours on the account page or with your plan — self-serve key management is on the roadmap.
Your key carries scopes: data covers everything below. A key only ever exposes what its scopes allow.
2. REST API
Search accepts the full filter grammar of the /companies page — copy your query string straight from the browser URL and it works:
# search: A/B-graded companies in Rayong with contacts, best scores first curl "https://<host>/api/v1/companies?prov=RAYONG&grade=B&con=1&sort=score&pageSize=25" \ -H "Authorization: Bearer dbdk_…" # profile + financial calcs curl "https://<host>/api/v1/companies/0107544000108" \ -H "Authorization: Bearer dbdk_…" # machine-readable spec of the whole surface curl "https://<host>/api/v1/openapi.json" -H "Authorization: Bearer dbdk_…"
A company profile response includes three computed blocks: score (0–100, grade, per-component breakdown), spendCapacity (purchase-power rank) and fin (multi-year cohort comparison, company KPIs, industry benchmark).
3. MCP — connect your AI agent
/api/mcp is a Streamable-HTTP MCP server — Claude, Cursor, VS Code, Windsurf, Devin and the other big clients can all search the registry, pull profiles and reveal contacts as native tools. Pick yours for the exact config:
Claude Code — one command
claude mcp add --transport http thai-registry https://<host>/api/mcp \ --header "Authorization: Bearer dbdk_…"
Claude Desktop — claude_desktop_config.json
{
"mcpServers": {
"thai-registry": {
"command": "npx",
"args": [
"mcp-remote",
"https://<host>/api/mcp",
"--header",
"Authorization: Bearer dbdk_…"
]
}
}
}Example prompt once connected: “find petrochemical companies in Rayong with a website and email, then fetch the best-scored one” — the agent calls dbd_companies with the filters, then dbd_company on the top result.
4. Credits — same ledger as the website
Searching and reading your account are always free — metering only applies when data leaves the system: profile unlocks (1cr, permanent), contact reveals (3cr, permanent), export rows (1cr each). PRO+ plans include free profile and contact views; every plan’s daily export cap still applies.
Need a key or higher limits? Business plans include API access.
See plans →