domainstring必填
The domain of the company that you want to enrich. Do not include www., the @ symbol, or similar. Example: apollo.io or microsoft.com
https://api.sandbase.ai/v1/api/apollo/company-enrichEnrich one company by domain. `domain` is the only parameter and it must be the bare domain (apple.com), not a full URL.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns a company profile for one domain, such as stripe.com. The profile includes headcount, revenue, industry, funding events, technologies in use, and social links. The only input is domain, written as a bare domain.
curl -X POST "https://api.sandbase.ai/v1/api/apollo/company-enrich" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "stripe.com"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | The domain of the company that you want to enrich. Do not include www., the @ symbol, or similar. Example: apollo.io or microsoft.com |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"organization": {
"alexa_ranking": 200,
"angellist_url": "http://angel.co/stripe",
"annual_revenue": 6935000000.0,
"annual_revenue_printed": "6.9B",
"city": "South San Francisco",
"country": "United States",
"crunchbase_url": null,
"current_technologies": [
{
"category": "Frameworks and Programming Languages",
"name": ".NET",
"uid": "net"
}
],
"departmental_head_count": {
"accounting": 85,
"administrative": 61,
"arts_and_design": 248,
"business_development": 262,
"consulting": 117,
"data_science": 402,
"education": 12,
"engineering": 4380,
"entrepreneurship": 11,
"finance": 924,
"human_resources": 669,
"information_technology": 76
},
"estimated_num_employees": 9400,
"facebook_url": "https://www.facebook.com/StripeHQ",
"founded_year": 2010
}
}
| Field | Meaning |
|---|---|
organization.name / organization.id | Company name and its record ID. Use the id with other Apollo company APIs. |
organization.estimated_num_employees | Estimated number of employees at the company. |
organization.annual_revenue / organization.annual_revenue_printed | Annual revenue as a number and as a short printed string such as 6.9B. |
organization.industry / organization.industries / organization.keywords | Main industry, the full list of industries, and keywords that describe what the company does. |
organization.departmental_head_count | Head count per department, such as engineering, sales, and finance. |
organization.organization_headcount_six_month_growth / organization.organization_headcount_twelve_month_growth / organization.organization_headcount_twenty_four_month_growth | Headcount growth over 6, 12, and 24 months, given as decimal fractions. For example, 0.1995 is about 20 percent. |
organization.funding_events[] | List of funding events. Each has type, date, amount, currency, investors, and news_url. Some events have no amount. |
organization.latest_funding_stage / organization.latest_funding_round_date | Stage and date of the most recent funding round. |
organization.current_technologies[].name / organization.current_technologies[].category | Name and category of each technology the company uses. |
organization.linkedin_url / organization.facebook_url / organization.angellist_url | Links to the company's social and profile pages. Some links can be null. |
domain as a bare domain such as stripe.com. Leave out www., @, and the URL scheme.organization.id is a 24-character hex string. Use it with Apollo Get Complete Organization Info.funding_events[] are ISO 8601 strings in UTC.Use this endpoint when you already know a company's domain. Send only domain, a string such as stripe.com. Do not send a website URL, an email address, a LinkedIn URL or an Apollo organization ID. Remove a scheme or www. yourself before supplying the value; the Python example rejects those forms instead of silently rewriting them. It preserves valid subdomains as supplied, without asserting that they will match a record.
If you only have a company name, use Apollo Organization Search. Review any candidate independently before choosing a domain for enrichment. The examples are separate requests, not an automatically matched pipeline. For an existing Apollo organization ID, use the organization record endpoint.
Install requests and set SANDBASE_API_KEY in your environment. For enrichment, also set APOLLO_COMPANY_DOMAIN to a domain you selected, for example stripe.com. APOLLO_REQUEST_KIND defaults to enrich; its only other accepted value is search. Search uses APOLLO_COMPANY_NAME, or the illustrative name Acme, with per_page: 1. That name is not a promised match. No search result is automatically used as the enrichment domain.
This unexecuted example sends one request to the chosen endpoint. Search filters are optional in the API schema; this sample deliberately requires a nonblank name to avoid an unfiltered paid request. It checks transport, JSON and the run envelope before returning the payload. HTTP success alone does not establish that an organization exists. An empty payload object stays empty. Output shows only payload key names, not organization records or contact information.
import os
import re
import requests
def check_domain(domain):
if not isinstance(domain, str) or not domain or len(domain) > 253:
raise ValueError("Set APOLLO_COMPANY_DOMAIN to a bare domain")
if (domain.lower().startswith("www.") or "://" in domain
or any(c in domain for c in "@/\\")
or any(c.isspace() for c in domain)):
raise ValueError("Use a bare domain without scheme, www., @ or paths")
labels = domain.split(".")
if len(labels) < 2 or any(
re.fullmatch(r"(?!-)[A-Za-z0-9-]{1,63}(?<!-)", label) is None
for label in labels
):
raise ValueError("Invalid domain syntax; no automatic normalization")
if labels[-1].isdigit():
raise ValueError("Use a domain name, not an IP address")
return domain
def check_error(container):
error = container.get("error")
if error is None:
return
if isinstance(error, (str, dict)) and len(error) == 0:
return
# Nonempty string/object and unsupported error types fail closed.
raise RuntimeError("API reported an error or an unsupported error shape")
def post_once(model, body, key):
try:
response = requests.post(
f"https://api.sandbase.ai/v1/api/{model}",
headers={"Authorization": f"Bearer {key}"},
json=body, timeout=(10, 30), allow_redirects=False,
)
except requests.Timeout:
raise RuntimeError("Request timed out; no retry was sent") from None
except requests.RequestException:
raise RuntimeError("Transport failed; no retry was sent") from None
if not 200 <= response.status_code < 300:
raise RuntimeError(f"HTTP {response.status_code}; no retry was sent")
try:
run = response.json()
except ValueError:
raise RuntimeError("Response was not valid JSON") from None
if not isinstance(run, dict):
raise RuntimeError("Expected a JSON run object")
check_error(run)
if run.get("status") != "completed":
raise RuntimeError("Run is not completed; no polling was started")
outputs = run.get("outputs")
if not isinstance(outputs, list) or not outputs:
raise RuntimeError("Missing nonempty outputs array")
first = outputs[0]
if not isinstance(first, dict):
raise RuntimeError("Expected an output object")
check_error(first)
if "data" not in first or first["data"] is None:
raise RuntimeError("Missing or null outputs[0].data")
payload = first["data"]
if not isinstance(payload, dict):
raise RuntimeError("Expected a JSON object payload")
return payload # Preserve {}, without data-or-default coercion.
def main():
key = os.environ.get("SANDBASE_API_KEY")
if not key or not key.strip():
raise ValueError("Set SANDBASE_API_KEY")
mode = os.environ.get("APOLLO_REQUEST_KIND", "enrich")
if mode == "enrich":
MODEL = "apollo/company-enrich"
domain = check_domain(os.environ.get("APOLLO_COMPANY_DOMAIN"))
body = {"domain": domain}
elif mode == "search":
MODEL = "apollo/company-search"
name = os.environ.get("APOLLO_COMPANY_NAME", "Acme")
if not name.strip():
raise ValueError("Choose a nonblank company name for this sample")
body = {"q_organization_name": name, "per_page": 1}
else:
raise ValueError("APOLLO_REQUEST_KIND must be enrich or search")
payload = post_once(MODEL, body, key)
print("Payload keys:", sorted(payload.keys()))
if __name__ == "__main__":
main()
The sample makes no retries, pagination requests, CRM writes or outbound actions, and does not capture personal contact data. Listed fields and trimmed responses are reference material, not guaranteed values. Keep missing or null values unknown rather than converting them to zero or false. Treat headcount and revenue as provider-reported or estimated, not audited figures or complete coverage.
Documentation checked on 2026-11-06. No business request was executed for this example.
$0.01975 per successful call. Failed calls are not charged.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/apollo/company-enrich" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "stripe.com"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
domainstring必填The domain of the company that you want to enrich. Do not include www., the @ symbol, or similar. Example: apollo.io or microsoft.com
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Apollo | 每次呼叫 $0.01975 | JSON |
Apollo | 每次呼叫 $0.01975 起 | JSON |
Apollo | 每次呼叫 $0.01975 | JSON |
Apollo | 每次呼叫 $0.01975 | JSON |
Apollo | 每次呼叫 $0.01975 | JSON |
Apollo | 每次呼叫 $0.01975 | JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/apollo/company-enrich。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.01975,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:domain (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Apollo Organization Enrichment 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Apollo API 存取權。
不行。唯一的輸入是 domain,這是必填字串,內容必須是像 stripe.com 這樣的純網域。不要包含 URL scheme、www.、@、路徑或空白。若要查 Apollo organization ID,請使用 organization record endpoint。格式正確不代表一定能找到對應的 organization。
當您需要從公司名稱或其他篩選條件取得候選項時,請使用 Organization Search。當您已經有選定的 domain 時,請使用 Organization Enrichment。請先審核候選項再決定該 domain;這些範例不會自動把搜尋結果配對到 enrichment 請求。
請使用 SandBase API 金鑰,不要使用獨立的 Apollo 金鑰。缺失或為 null 的欄位仍視為未知,不是 0 或 false。營收與員工數可能來自供應商回報或估算,並非經過審計的數字。HTTP 成功不代表公司一定存在,也不代表每個文件化欄位都可用。