{"openapi":"3.1.0","info":{"title":"DataJuice API","version":"1.0.0","description":"Company data from public sources: firmographics, technographics and published contacts. Every field that no public source states is null."},"servers":[{"url":"https://api.dstaq.co"}],"security":[{"bearer":[]}],"paths":{"/v1/companies/{domain}":{"get":{"tags":["firmographics"],"summary":"Company lookup","description":"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.\n\nCost: 1 credit; +1 with technologies; contacts as in /v1/contacts. Repeat lookups within 24 hours are free.\n\nSources: Company website, Wikidata, GLEIF, RDAP, DNS over HTTPS (1.1.1.1).","operationId":"company","responses":{"200":{"description":"Success","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","STALE","MISS","BYPASS"]}},"x-credits":{"schema":{"type":"integer"}},"etag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match matched)."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":253,"description":"Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...)."},"description":"Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...)."},{"name":"include","in":"query","required":false,"schema":{"description":"Comma-separated datasets to expand on the company: `technologies`, `contacts`. Each adds that dataset's credits.","type":"string","maxLength":500},"description":"Comma-separated datasets to expand on the company: `technologies`, `contacts`. Each adds that dataset's credits."},{"name":"max_age","in":"query","required":false,"schema":{"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours).","type":"integer","minimum":0,"maximum":2592000},"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours)."}]}},"/v1/companies/{domain}/technologies":{"get":{"tags":["technographics"],"summary":"Technographics","description":"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`.\n\nCost: 1 credit. Repeat lookups within 24 hours are free.\n\nSources: HTTP headers, Home page HTML, DNS over HTTPS (1.1.1.1).","operationId":"technologies","responses":{"200":{"description":"Success","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","STALE","MISS","BYPASS"]}},"x-credits":{"schema":{"type":"integer"}},"etag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match matched)."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":253,"description":"Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...)."},"description":"Company domain (stripe.com), any URL on it, or a DataJuice company_id (dj_...)."},{"name":"max_age","in":"query","required":false,"schema":{"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours).","type":"integer","minimum":0,"maximum":2592000},"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours)."}]}},"/v1/companies":{"get":{"tags":["firmographics"],"summary":"Company search","description":"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`.\n\nCost: 1 credit per company returned.\n\nSources: DataJuice index (profiles built from the sources above).","operationId":"companies","responses":{"200":{"description":"Success","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","STALE","MISS","BYPASS"]}},"x-credits":{"schema":{"type":"integer"}},"etag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match matched)."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"parameters":[{"name":"q","in":"query","required":false,"schema":{"description":"Match on company name or domain.","type":"string","maxLength":200},"description":"Match on company name or domain."},{"name":"industry","in":"query","required":false,"schema":{"description":"Industry label or part of one, e.g. software. Comma-separated values are ORed.","type":"string","maxLength":500},"description":"Industry label or part of one, e.g. software. Comma-separated values are ORed."},{"name":"country","in":"query","required":false,"schema":{"description":"ISO 3166-1 alpha-2 country of the headquarters, e.g. US. Comma-separated values are ORed.","type":"string","maxLength":500},"description":"ISO 3166-1 alpha-2 country of the headquarters, e.g. US. Comma-separated values are ORed."},{"name":"headcount","in":"query","required":false,"schema":{"description":"Inclusive employee_count range, e.g. 200-1000. Leave the upper bound empty for no maximum.","type":"string","pattern":"^\\d+-\\d*$"},"description":"Inclusive employee_count range, e.g. 200-1000. Leave the upper bound empty for no maximum."},{"name":"tech","in":"query","required":false,"schema":{"description":"Technology id currently detected, e.g. cloudflare, hubspot. Comma-separated values are ORed.","type":"string","maxLength":500},"description":"Technology id currently detected, e.g. cloudflare, hubspot. Comma-separated values are ORed."},{"name":"adopted_since","in":"query","required":false,"schema":{"description":"With `tech`: first detected by DataJuice within this window, e.g. 30d.","type":"string","pattern":"^\\d{1,4}d$"},"description":"With `tech`: first detected by DataJuice within this window, e.g. 30d."},{"name":"tech_removed","in":"query","required":false,"schema":{"description":"Technology id that DataJuice saw before and no longer detects.","type":"string","maxLength":500},"description":"Technology id that DataJuice saw before and no longer detects."},{"name":"removed_since","in":"query","required":false,"schema":{"description":"With `tech_removed`: removal seen within this window, e.g. 90d.","type":"string","pattern":"^\\d{1,4}d$"},"description":"With `tech_removed`: removal seen within this window, e.g. 90d."},{"name":"limit","in":"query","required":false,"schema":{"default":25,"description":"Results per page (1 credit each).","type":"integer","minimum":1,"maximum":100},"description":"Results per page (1 credit each)."},{"name":"cursor","in":"query","required":false,"schema":{"description":"`next_cursor` from the previous page.","type":"string","maxLength":100},"description":"`next_cursor` from the previous page."}]}},"/v1/contacts":{"get":{"tags":["contacts"],"summary":"Contacts","description":"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.\n\nCost: 4 credits per contact with an email, 1 per contact without.\n\nSources: Wikidata, Company website, security.txt.","operationId":"contacts","responses":{"200":{"description":"Success","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","STALE","MISS","BYPASS"]}},"x-credits":{"schema":{"type":"integer"}},"etag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match matched)."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"parameters":[{"name":"domain","in":"query","required":false,"schema":{"description":"Company domain or URL. One of `domain` or `company_id` is required.","type":"string","minLength":3,"maxLength":253},"description":"Company domain or URL. One of `domain` or `company_id` is required."},{"name":"company_id","in":"query","required":false,"schema":{"description":"DataJuice company_id (dj_...).","type":"string","maxLength":40},"description":"DataJuice company_id (dj_...)."},{"name":"seniority","in":"query","required":false,"schema":{"description":"Comma-separated: c_level, vp, director, manager, ic.","type":"string","maxLength":500},"description":"Comma-separated: c_level, vp, director, manager, ic."},{"name":"department","in":"query","required":false,"schema":{"description":"Comma-separated, e.g. executive, sales, support, security.","type":"string","maxLength":500},"description":"Comma-separated, e.g. executive, sales, support, security."},{"name":"email_status","in":"query","required":false,"schema":{"description":"Only contacts with this email status.","type":"string","enum":["verified","catch_all","unknown"]},"description":"Only contacts with this email status."},{"name":"limit","in":"query","required":false,"schema":{"default":10,"description":"Maximum contacts returned.","type":"integer","minimum":1,"maximum":25},"description":"Maximum contacts returned."},{"name":"max_age","in":"query","required":false,"schema":{"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours).","type":"integer","minimum":0,"maximum":2592000},"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours)."}]}},"/v1/enrich":{"post":{"tags":["batch"],"summary":"Bulk enrich","description":"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.\n\nCost: 1 credit per company freshly looked up; indexed and deferred items are free.\n\nSources: Same as company lookup.","operationId":"enrich","responses":{"200":{"description":"Success","headers":{"x-cache":{"schema":{"type":"string","enum":["HIT","STALE","MISS","BYPASS"]}},"x-credits":{"schema":{"type":"integer"}},"etag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"304":{"description":"Not modified (If-None-Match matched)."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"402":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"502":{"$ref":"#/components/responses/Error"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":3,"maxLength":320},"description":"Up to 100 domains, URLs or work emails. Emails are enriched by their company domain; personal-mailbox domains are skipped."},"max_age":{"description":"Oldest cached result you will accept, in seconds. 0 forces a fresh lookup. Omit for the default (24 hours).","type":"integer","minimum":0,"maximum":2592000}},"required":["items"]},"example":{"items":["stripe.com","jane@cloudflare.com"]}}}}}},"/v1/intent":{"get":{"tags":["not yet available"],"summary":"Intent signals (not yet available)","description":"No intent source DataJuice can legally use within its free infrastructure yet. Returns 501 with an empty list.","operationId":"intent_signals","responses":{"501":{"$ref":"#/components/responses/Error"}}}},"/v1/intent/topics":{"get":{"tags":["not yet available"],"summary":"Intent topics (not yet available)","description":"The topic taxonomy ships with intent signals. Returns 501 with an empty list.","operationId":"intent_topics","responses":{"501":{"$ref":"#/components/responses/Error"}}}},"/graphql":{"post":{"tags":["not yet available"],"summary":"GraphQL (not yet available)","description":"REST only for now. Returns 501 with an empty list.","operationId":"graphql","responses":{"501":{"$ref":"#/components/responses/Error"}}}},"/v1/stream":{"get":{"tags":["not yet available"],"summary":"Event stream (not yet available)","description":"Webhooks and streams are not built yet. Returns 501 with an empty list.","operationId":"event_stream","responses":{"501":{"$ref":"#/components/responses/Error"}}}},"/v1/events/{id}/replay":{"post":{"tags":["not yet available"],"summary":"Event replay (not yet available)","description":"Webhooks and streams are not built yet. Returns 501 with an empty list.","operationId":"event_replay","responses":{"501":{"$ref":"#/components/responses/Error"}}}},"/v1/usage":{"get":{"tags":["account"],"summary":"Usage","description":"Credits used this period, by endpoint. Free.","operationId":"usage","responses":{"200":{"description":"Usage"},"401":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"API key (dj_live_...)"}},"responses":{"Error":{"description":"Error","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request","unauthenticated","forbidden","not_found","credits_exhausted","rate_limited","not_available","api_error"]},"code":{"type":"string","description":"Precise reason, e.g. api_key_revoked."},"message":{"type":"string"},"param":{"type":"string"},"retry_after":{"type":"integer"},"request_id":{"type":"string"}},"required":["type","code","message","request_id"]}}}}}}}}}