DataJuice API
Company, technographic and contact data from public sources, over REST at https://api.dstaq.co/v1 and MCP. Lookups take the domain in the path; search takes query parameters; bulk enrich takes a JSON body. Responses are the object itself (for example { "object": "company", ... }); fields no source states are null, never guessed. Machine-readable specs: OpenAPI and llms.txt.
Quickstart
Create a key in the dashboard, export it, then call any endpoint.
curl "https://api.dstaq.co/v1/companies/stripe.com" \
-H "Authorization: Bearer $DATAJUICE_API_KEY"Authentication
Send your key as Authorization: Bearer dj_live_... (or x-api-key). Keys in query strings are rejected, since URLs end up in logs. Keys carry scopes (companies:read, contacts:read), can expire, and can be rolled or revoked from the dashboard. Keys are 46 characters with a built-in checksum, so secret scanners can detect them.
Key controls
Each key can be narrowed from its page in the dashboard. Changes apply within about 30 seconds everywhere.
- Scopes:
companies:read(company, technologies, companies, enrich);contacts:read(contacts). Calls outside them returnforbidden_scope. - Endpoint allowlist: restrict a key to specific endpoints within its scopes. MCP
tools/listonly shows the tools a key may call. - IP allowlist: exact IPv4/IPv6 addresses or CIDR ranges. Other clients get
forbidden_ip. - Per-key rate limit: requests per minute below your plan limit, so one agent cannot starve the others.
- Per-key monthly cap: a credit ceiling for that key. When reached, uncached calls on it return
quota_exceeded; other keys keep working. - Account cap and alerts: in Settings, set a monthly credit cap below your plan allowance and an email alert threshold (default 80%). A second email is sent at 100%.
Credits are reserved atomically before any upstream work, so parallel requests can never overrun a cap. If the call fails, or an identical request finishes first and the result is shared, the reservation is refunded. Cache hits never touch your quota.
Caching
Every company profiled is kept in the DataJuice index. A lookup of a company profiled in the last 24 hours is served from the index for 0 credits; identical in-flight requests are coalesced, and results also sit in a per-location edge cache. Domains are canonicalized, so https://www.Stripe.com/ and stripe.com share an entry. Responses carry a weak ETag; send it back as If-None-Match to get 304.
- Cache hits cost 0 credits. Check the
x-cacheheader (HIT,STALE,MISSorBYPASS) andx-creditsfor what the call cost. - Pass
max_age(seconds) to bound how old a result may be.max_age=0orCache-Control: no-cacheforces a fresh profile. agereports how old the served result is, in seconds.
Errors
Errors return { success: false, error: { type, code, message, param?, retry_after?, request_id } }. type is the stable class; code the precise reason.
| invalid_request | 400 | Input failed validation, or the request was malformed. `error.details` lists each field. |
| unauthorized | 401 | Missing API key, or no signed-in session for dashboard routes. |
| invalid_api_key | 401 | Malformed, unknown or revoked key. |
| api_key_revoked | 401 | The key was revoked. Create or roll a new one. |
| api_key_expired | 401 | The key passed its expiry date. |
| forbidden_scope | 403 | The key lacks the scope this endpoint needs, or the endpoint is outside its endpoint allowlist. |
| forbidden_ip | 403 | The request came from an IP outside the key's IP allowlist. |
| forbidden | 403 | The signed-in user is not allowed to perform this action. |
| account_suspended | 403 | The account is suspended. Every key is disabled until support restores it. |
| email_unverified | 403 | Confirm your email address before creating keys or using the playground. |
| not_found | 404 | Unknown route, endpoint or resource. |
| not_cached | 404 | A cache-only lookup found no stored result. |
| content_too_large | 413 | The request body exceeds the size limit (64 KB). |
| blocked_target | 422 | The domain points at a private, internal or disallowed host. |
| rate_limited | 429 | Too many requests per second for this account, or per minute for this key. Honor `retry_after`. |
| quota_exceeded | 402 | Monthly credits used, either the account allowance or the key's own cap. Cached responses still work. |
| internal_error | 500 | Something failed on our side. Include `meta.request_id` when contacting support. |
| not_available | 501 | The endpoint is documented but has no data source yet. The response carries an empty `data` list. |
| upstream_error | 502 | A public source failed. Failures are cached for 60s. |
| billing_unavailable | 503 | Billing is not configured or the payment provider is unreachable. |
| upstream_timeout | 504 | A source did not respond in time. |
Rate limits and quota
Limits apply per account per second: Free 2/s, Developer 10/s, Pro 50/s, Scale 200/s. Responses include x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset. Monthly credits: Free 1,000, Developer 15,000, Pro 75,000, Scale 250,000. GET /v1/usage returns this month's credits used, by endpoint.
MCP server
DataJuice is a remote MCP server (Streamable HTTP) at https://api.dstaq.co/mcp. Every endpoint is a tool with the same input schema. Authenticate with the same bearer key.
{
"mcpServers": {
"datajuice": {
"url": "https://api.dstaq.co/mcp",
"headers": { "Authorization": "Bearer ${DATAJUICE_API_KEY}" }
}
}
}Not available yet
These are listed on dstaq.co but have no data source DataJuice can use yet. They answer 501 not_available with an empty data list, and cost nothing.
GET /v1/intent(Intent signals): No intent source DataJuice can legally use within its free infrastructure yet.GET /v1/intent/topics(Intent topics): The topic taxonomy ships with intent signals.POST /graphql(GraphQL): REST only for now.GET /v1/stream(Event stream): Webhooks and streams are not built yet.POST /v1/events/{id}/replay(Event replay): Webhooks and streams are not built yet.
Company lookup
1 credit; +1 with technologies; contacts as in /v1/contacts. Repeat lookups within 24 hours are free.scope: companies:readcache 1dGET /v1/companies/{domain}
Reads the company's own website (title, description, schema.org Organization data, social links), Wikidata (founding year, headcount, revenue, headquarters, industry, listings, parent), the GLEIF LEI registry (legal name and registration) when Wikidata links an LEI, RDAP (domain registration) and DNS. Fields no source states are null. `include=technologies,contacts` expands those datasets in the same call.
| Parameter | Type | Description |
|---|---|---|
| domain * | string | Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...). |
| include | string | Comma-separated datasets to expand on the company: `technologies`, `contacts`. Each adds that dataset's credits. |
| max_age | integer | Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours). |
curl "https://api.dstaq.co/v1/companies/stripe.com" \
-H "Authorization: Bearer $DATAJUICE_API_KEY"Sources: Company website, Wikidata, GLEIF, RDAP, DNS over HTTPS (1.1.1.1)
GET /v1/companies/{domain}/technologies
Fingerprints the company's public footprint: HTTP response headers and cookies, scripts and links on its home page, MX, NS, TXT (SPF and domain-verification records), DMARC and the www CNAME. Each technology lists the evidence that matched and a confidence from how many independent signals agree. Dates are when DataJuice first and last observed it; a technology seen before and no longer detected is returned with status `removed`.
| Parameter | Type | Description |
|---|---|---|
| domain * | string | Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...). |
| max_age | integer | Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours). |
curl "https://api.dstaq.co/v1/companies/stripe.com/technologies" \
-H "Authorization: Bearer $DATAJUICE_API_KEY"Sources: HTTP headers, Home page HTML, DNS over HTTPS (1.1.1.1)
GET /v1/companies
Searches DataJuice's own index: every company that has been looked up or enriched through the API, with the data from its latest profile. It is not a census of all companies. Filters combine with AND; comma-separated values within a filter are ORed. Pages follow `next_cursor`.
| Parameter | Type | Description |
|---|---|---|
| q | string | Match on company name or domain. |
| industry | string | Industry label or part of one, e.g. software. Comma-separated values are ORed. |
| country | string | ISO 3166-1 alpha-2 country of the headquarters, e.g. US. Comma-separated values are ORed. |
| headcount | string | Inclusive employee_count range, e.g. 200-1000. Leave the upper bound empty for no maximum. |
| tech | string | Technology id currently detected, e.g. cloudflare, hubspot. Comma-separated values are ORed. |
| adopted_since | string | With `tech`: first detected by DataJuice within this window, e.g. 30d. |
| tech_removed | string | Technology id that DataJuice saw before and no longer detects. |
| removed_since | string | With `tech_removed`: removal seen within this window, e.g. 90d. |
| limit | integer = 25 | Results per page (1 credit each). |
| cursor | string | `next_cursor` from the previous page. |
curl "https://api.dstaq.co/v1/companies?tech=cloudflare&limit=10" \
-H "Authorization: Bearer $DATAJUICE_API_KEY"Sources: DataJuice index (profiles built from the sources above)
GET /v1/contacts
Returns the company's current chief executive, chair and founders as recorded on Wikidata, and the role mailboxes the company itself publishes on its home page, in schema.org contactPoint data and in /.well-known/security.txt. Addresses are never guessed and mailboxes are not probed, so `email_status` is `unknown`. Personal work emails and job-change history are not available yet.
| Parameter | Type | Description |
|---|---|---|
| domain | string | Company domain or URL. One of `domain` or `company_id` is required. |
| company_id | string | DataJuice company_id (dj_...). |
| seniority | string | Comma-separated: c_level, vp, director, manager, ic. |
| department | string | Comma-separated, e.g. executive, sales, support, security. |
| email_status | verified | catch_all | unknown | Only contacts with this email status. |
| limit | integer = 10 | Maximum contacts returned. |
| max_age | integer | Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours). |
curl "https://api.dstaq.co/v1/contacts?domain=stripe.com" \
-H "Authorization: Bearer $DATAJUICE_API_KEY"Sources: Wikidata, Company website, security.txt
Bulk enrich
1 credit per company freshly looked up; indexed and deferred items are free.scope: companies:readcache 10mPOST /v1/enrich
Resolves each item to a company domain and returns its company record. Items profiled in the last 24 hours come from the index for free. Up to 40 new lookups run per call, each in its own Worker invocation; any beyond that come back as `deferred` (not billed) so you can send them again.
| Parameter | Type | Description |
|---|---|---|
| items * | array | Up to 100 domains, URLs or work emails. Emails are enriched by their company domain; personal-mailbox domains are skipped. |
| max_age | integer | Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours). |
curl https://api.dstaq.co/v1/enrich \
-H "Authorization: Bearer $DATAJUICE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"items":["stripe.com","jane@cloudflare.com"]}'Sources: Same as company lookup