Company Subprocessors
Finds a company's published subprocessor list from its domain (or reads the page you give) and returns each vendor with its purpose, data locations and the list's last-updated date.
- Price per call
- 1 credit
- per successful call
- Price ceiling
- 13 credits
- if a call is retried elsewhere
- Failed calls
- Free
- retried automatically
- Billed
- Per call
- only on success
Endpoint
api.primaryapi.com/ v1/ run/ company. subprocessorsAuth: API key with run or full access, or a dashboard session
Send the input below as a JSON body. The call is routed to a healthy upstream; if an attempt fails, it is retried automatically inside the same request and you pay only for the answer you get. To check an input and see the exact price without running anything, call POST /v1/quote/company.subprocessors with the same body (free).
This API can take longer than the synchronous wait window. Send Prefer: respond-async and an Idempotency-Key, then poll GET /v1/requests/{id}; see Durable requests.
Example request
curl -sS -X POST "https://api.primaryapi.com/v1/run/company.subprocessors" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'const res = await fetch('https://api.primaryapi.com/v1/run/company.subprocessors', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.PRIMARYAPI_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
domain: 'github.com',
}),
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.error}`);
// found:false is a successful answer ("does not exist"), not an error
console.log(body.output.found ? body.output.data : body.output.reason, body.credits);import os
import requests
res = requests.post(
"https://api.primaryapi.com/v1/run/company.subprocessors",
headers={"Authorization": f"Bearer {os.environ['PRIMARYAPI_API_KEY']}"},
json={
"domain": "github.com",
},
timeout=60,
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['code']}: {body['error']}")
# found=False is a successful answer ("does not exist"), not an error
print(body["output"]["data"] if body["output"]["found"] else body["output"]["reason"], body["credits"]){
"name": "run_api",
"arguments": {
"sku": "company.subprocessors",
"input": {
"domain": "github.com"
}
}
}Price this exact input first (free)
curl -sS -X POST "https://api.primaryapi.com/v1/quote/company.subprocessors" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"github.com"}'Returns credits (what the call is expected to cost) and maxCredits (the most it can cost, which is set aside while it runs). Invalid input fails here the same way it would on run.
Input
JSON body fields. Unknown fields are rejected with 400 invalid_input (never silently ignored). You may add the routing controls preferLatencyUnderMs and maxCredits to the same object.
domainstring- Company domain such as "stripe.com". A URL or email address is reduced to its domain; "www." is dropped.max 2048 chars
urlstring- The subprocessor page, DPA or trust-center URL when you know it. Without it the list is searched for on the domain.max 2048 chars · format: uri
Output
When output.found is true, output.data has these fields.
domainstring | null- Company domain the list belongs to.
sourceUrlstring- Page the list was read from.
formatenum- html_table = HTML table(s); trust_center = a hosted trust center; document = text or PDF.one of: html_table, trust_center, document
trustCenterPlatformstring | null- Hosted trust-center platform when the page is one (safebase, secureframe, …).
lastUpdatedstring | null- The "last updated" / "effective" date exactly as the page states it, or null when it states none.
lastUpdatedDatestring | null- The same date as ISO 8601 (YYYY-MM-DD, or YYYY-MM when the page gives only a month).
noticeobjectnotice.methodsenum[]- How the company says it announces changes: email sign-up, RSS feed, trust-center subscription, this page.
notice.periodDaysinteger | null- Advance notice of new subprocessors in days, when the page states one ("at least 30 days").
notice.textstring | null- The sentence that states the notice method or period (at most 300 characters).
vendorCountintegervendorsobject[]- Sorted: third parties first, then affiliates; each by name.
vendors[].namestring- Vendor or legal entity name as listed.
vendors[].purposestring | null- What the vendor does for the company, as stated (whitespace normalised).
vendors[].locationsstring[]- Countries or regions where it processes data, as stated (one entry per place).
vendors[].categoryenum | null- Inferred from the stated purpose with a fixed keyword list; null when nothing matches.one of: hosting, ai, analytics, communications, customer_support, payments, security, marketing, productivity, development, professional_services
vendors[].groupstring | null- Section label the page lists the vendor under, as stated.
vendors[].typeenum- "affiliate" for the company's own group entities, else "third_party".one of: third_party, affiliate
vendors[].websitestring | null- Vendor website when the page gives one.
readWithenum- parser = read from the page structure; ai = read with AI because the page is not a clean table.one of: parser, ai
truncatedboolean- true when the page was too long and only part of it was read.
TypeScript type
/** output.data when output.found is true */
type CompanySubprocessors = {
/** Company domain the list belongs to. */
domain: string | null;
/** Page the list was read from. */
sourceUrl: string;
/** html_table = HTML table(s); trust_center = a hosted trust center; document = text or PDF. */
format: "html_table" | "trust_center" | "document";
/** Hosted trust-center platform when the page is one (safebase, secureframe, …). */
trustCenterPlatform: string | null;
/** The "last updated" / "effective" date exactly as the page states it, or null when it states none. */
lastUpdated: string | null;
/** The same date as ISO 8601 (YYYY-MM-DD, or YYYY-MM when the page gives only a month). */
lastUpdatedDate: string | null;
notice: {
/** How the company says it announces changes: email sign-up, RSS feed, trust-center subscription, this page. */
methods: Array<"email" | "rss" | "trust_center" | "webpage">;
/** Advance notice of new subprocessors in days, when the page states one ("at least 30 days"). */
periodDays: number | null;
/** The sentence that states the notice method or period (at most 300 characters). */
text: string | null;
};
vendorCount: number;
/** Sorted: third parties first, then affiliates; each by name. */
vendors: {
/** Vendor or legal entity name as listed. */
name: string;
/** What the vendor does for the company, as stated (whitespace normalised). */
purpose: string | null;
/** Countries or regions where it processes data, as stated (one entry per place). */
locations: string[];
/** Inferred from the stated purpose with a fixed keyword list; null when nothing matches. */
category: "hosting" | "ai" | "analytics" | "communications" | "customer_support" | "payments" | "security" | "marketing" | "productivity" | "development" | "professional_services" | null;
/** Section label the page lists the vendor under, as stated. */
group: string | null;
/** "affiliate" for the company's own group entities, else "third_party". */
type: "third_party" | "affiliate";
/** Vendor website when the page gives one. */
website: string | null;
}[];
/** parser = read from the page structure; ai = read with AI because the page is not a clean table. */
readWith: "parser" | "ai";
/** true when the page was too long and only part of it was read. */
truncated: boolean;
};If what you asked about does not exist, is private, or a search matches nothing, the call still succeeds: output.found is false, output.data is null and output.reason says why. Such misses are free unless the notes below say misses are billed, in which case a miss costs the price of one call.
Example response
Values are placeholders that follow the output schema (strings as "string", numbers as 0); credits shows what this call would cost at the usual price.
{
"output": {
"found": true,
"data": {
"domain": "github.com",
"sourceUrl": "https://docs.github.com/en/site-policy/privacy-policies/github-subprocessors",
"format": "html_table",
"trustCenterPlatform": null,
"lastUpdated": null,
"lastUpdatedDate": null,
"notice": {
"methods": [
"webpage"
],
"periodDays": 30,
"text": "publishes the names of any new subprocessors … at least 30 days in advance"
},
"vendorCount": 2,
"vendors": [
{
"name": "Amazon Web Services Inc (AWS)",
"purpose": "Cloud Hosted Infrastructure, Data Hosting, AI Inference and AI Services",
"locations": [
"United States"
],
"category": "hosting",
"group": null,
"type": "third_party",
"website": null
},
{
"name": "Anthropic PBC",
"purpose": "AI Inference and AI Services",
"locations": [
"United States"
],
"category": "ai",
"group": null,
"type": "third_party",
"website": null
}
],
"readWith": "parser",
"truncated": false
}
},
"provider": "PrimaryAPI",
"credits": 1,
"items": 1,
"requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}Pricing and reliability
Calls go only to upstreams that are healthy right now. If an attempt fails, the call is retried automatically inside the same request; a failed attempt costs nothing, and a call never costs more than its quote’s maxCredits. Live figures below are measured on real traffic.
Success rate, uptime, latency and call counts are measured live from real traffic over 30 days and show “—” until there is data.
Errors
Errors are JSON { code, error, requestId } and are never charged. The ones to handle for this endpoint:
- invalid_inputThe request failed validation before anything ran.
- unauthorizedNo valid API key or session was presented.
- insufficient_balanceThe balance cannot cover the most this call could cost.
- key_limit_reachedThe key’s own spend limit is used up for the current window.
- trial_cap_reachedAn agent trial key has used its whole trial budget.
- forbiddenThe credential is valid but may not do this.
- not_foundThe thing addressed by the URL does not exist for you.
- idempotency_conflictThe
Idempotency-Keyis already bound to a different request. - rate_limitedToo many requests in the current window.
- all_sources_failedThe call could not be answered, even after automatic retries.
- service_unavailableThis API cannot run in this deployment right now.
- timeoutThe request passed its deadline before it finished.
Notes
No list found on the site is a free miss (reason no_subprocessor_list); a page that only renders in a browser is a free miss (reason page_not_readable). Lists published as HTML tables or on common hosted trust centers cost 1 credit; other layouts (lists, prose, PDF) are read with AI and cost more. Text read with AI is checked against the page: names and quotes that do not appear in it are dropped. Treat extracted facts as a starting point and confirm them in the source before relying on them. Pages are read the way a polite crawler would: robots.txt is honoured (a disallowed page is a free miss with reason robots_disallowed), requests are paced per site, and only facts, short quotes and source links are returned. Outputs are stable between runs of an unchanged page (sorted lists, normalised whitespace, no timestamps), so the API can be scheduled as a monitor that fires only when the content changes.
More Company endpoints
Generated from the PrimaryAPI catalog. Machine-readable contract: GET https://api.primaryapi.com/v1/apis/company.subprocessors.