Documentation

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 return forbidden_scope.
  • Endpoint allowlist: restrict a key to specific endpoints within its scopes. MCP tools/list only 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-cache header (HIT, STALE, MISS or BYPASS) and x-credits for what the call cost.
  • Pass max_age (seconds) to bound how old a result may be. max_age=0 or Cache-Control: no-cache forces a fresh profile.
  • age reports 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_request400Input failed validation, or the request was malformed. `error.details` lists each field.
unauthorized401Missing API key, or no signed-in session for dashboard routes.
invalid_api_key401Malformed, unknown or revoked key.
api_key_revoked401The key was revoked. Create or roll a new one.
api_key_expired401The key passed its expiry date.
forbidden_scope403The key lacks the scope this endpoint needs, or the endpoint is outside its endpoint allowlist.
forbidden_ip403The request came from an IP outside the key's IP allowlist.
forbidden403The signed-in user is not allowed to perform this action.
account_suspended403The account is suspended. Every key is disabled until support restores it.
email_unverified403Confirm your email address before creating keys or using the playground.
not_found404Unknown route, endpoint or resource.
not_cached404A cache-only lookup found no stored result.
content_too_large413The request body exceeds the size limit (64 KB).
blocked_target422The domain points at a private, internal or disallowed host.
rate_limited429Too many requests per second for this account, or per minute for this key. Honor `retry_after`.
quota_exceeded402Monthly credits used, either the account allowance or the key's own cap. Cached responses still work.
internal_error500Something failed on our side. Include `meta.request_id` when contacting support.
not_available501The endpoint is documented but has no data source yet. The response carries an empty `data` list.
upstream_error502A public source failed. Failures are cached for 60s.
billing_unavailable503Billing is not configured or the payment provider is unreachable.
upstream_timeout504A 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 1d

GET /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.

ParameterTypeDescription
domain *stringCompany domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...).
includestringComma-separated datasets to expand on the company: `technologies`, `contacts`. Each adds that dataset's credits.
max_ageintegerOldest 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)

Technographics

1 credit. Repeat lookups within 24 hours are free.scope: companies:readcache 1d

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

ParameterTypeDescription
domain *stringCompany domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...).
max_ageintegerOldest 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)

Company search

1 credit per company returned.scope: companies:readcache 5m

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

ParameterTypeDescription
qstringMatch on company name or domain.
industrystringIndustry label or part of one, e.g. software. Comma-separated values are ORed.
countrystringISO 3166-1 alpha-2 country of the headquarters, e.g. US. Comma-separated values are ORed.
headcountstringInclusive employee_count range, e.g. 200-1000. Leave the upper bound empty for no maximum.
techstringTechnology id currently detected, e.g. cloudflare, hubspot. Comma-separated values are ORed.
adopted_sincestringWith `tech`: first detected by DataJuice within this window, e.g. 30d.
tech_removedstringTechnology id that DataJuice saw before and no longer detects.
removed_sincestringWith `tech_removed`: removal seen within this window, e.g. 90d.
limitinteger
= 25
Results per page (1 credit each).
cursorstring`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)

Contacts

4 credits per contact with an email, 1 per contact without.scope: contacts:readcache 1d

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.

ParameterTypeDescription
domainstringCompany domain or URL. One of `domain` or `company_id` is required.
company_idstringDataJuice company_id (dj_...).
senioritystringComma-separated: c_level, vp, director, manager, ic.
departmentstringComma-separated, e.g. executive, sales, support, security.
email_statusverified | catch_all | unknownOnly contacts with this email status.
limitinteger
= 10
Maximum contacts returned.
max_ageintegerOldest 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 10m

POST /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.

ParameterTypeDescription
items *arrayUp to 100 domains, URLs or work emails. Emails are enriched by their company domain; personal-mailbox domains are skipped.
max_ageintegerOldest 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