Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Apollo Organization Enrichment

Tài liệu API
https://api.sandbase.ai/v1/api/apollo/company-enrich

Enrich one company by domain. `domain` is the only parameter and it must be the bare domain (apple.com), not a full URL.

Giá
$0.01975USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
The domain of the company that you want to enrich. Do not include www., the @ symbol, or similar. Example: apollo.io or microsoft.com
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Apollo Organization Enrichment API

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.

Use cases

  • Fill in missing company details in a CRM from a list of customer domains.
  • Score sales leads by employee count, annual revenue, and latest funding stage.
  • Find companies that use a given tool by reading the technology list.
  • Track hiring focus by comparing department head counts and headcount growth.

Request

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.

Parameters

NameTypeRequiredDescription
domainstringYesThe domain of the company that you want to enrich. Do not include www., the @ symbol, or similar. Example: apollo.io or microsoft.com

Example response

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
  }
}

Response fields

FieldMeaning
organization.name / organization.idCompany name and its record ID. Use the id with other Apollo company APIs.
organization.estimated_num_employeesEstimated number of employees at the company.
organization.annual_revenue / organization.annual_revenue_printedAnnual revenue as a number and as a short printed string such as 6.9B.
organization.industry / organization.industries / organization.keywordsMain industry, the full list of industries, and keywords that describe what the company does.
organization.departmental_head_countHead 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_growthHeadcount 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_dateStage and date of the most recent funding round.
organization.current_technologies[].name / organization.current_technologies[].categoryName and category of each technology the company uses.
organization.linkedin_url / organization.facebook_url / organization.angellist_urlLinks to the company's social and profile pages. Some links can be null.

Notes

Choose the identifier before you call

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.

One request in Python

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.

Pricing

$0.01975 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Apollo$0.01975 mỗi lần gọiJSON
ApolloTừ $0.01975 mỗi lần gọiJSON
Apollo$0.01975 mỗi lần gọiJSON
Apollo$0.01975 mỗi lần gọiJSON
Apollo$0.01975 mỗi lần gọiJSON
Apollo$0.01975 mỗi lần gọiJSON

Hướng dẫn:Best Apollo API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Apollo Organization Enrichment?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/apollo/company-enrich với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Apollo Organization Enrichment có giá bao nhiêu?

$0.01975 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Apollo Organization Enrichment chấp nhận những tham số nào?

Bắt buộc: domain (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Apollo Organization Enrichment trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Apollo không?

Không. Apollo Organization Enrichment chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Apollo.

Tôi có thể gửi URL website hoặc organization ID thay cho domain không?

Không. Đầu vào duy nhất là domain, một chuỗi bắt buộc chứa domain trần như stripe.com. Đừng bao gồm URL scheme, www., @, path hoặc khoảng trắng. Với Apollo organization ID, hãy dùng endpoint organization record. Cú pháp hợp lệ không đảm bảo sẽ có organization khớp.

Tôi nên dùng Organization Search hay Organization Enrichment?

Dùng Organization Search khi bạn cần các ứng viên từ tên công ty hoặc các bộ lọc khác. Dùng Organization Enrichment khi bạn đã có domain đã chọn. Xem xét các ứng viên trước khi chọn domain đó; các ví dụ này không tự động ghép một kết quả tìm kiếm với một yêu cầu enrichment.

Tôi cần API key nào, và nên hiểu các giá trị thiếu hoặc ước tính như thế nào?

Dùng SandBase API key, không dùng Apollo key riêng. Các trường thiếu hoặc null vẫn là không xác định, không phải 0 hay false. Doanh thu và số lượng nhân sự có thể do nhà cung cấp báo cáo hoặc ước tính và không phải số liệu được kiểm toán. Thành công HTTP không chứng minh một công ty tồn tại hay mọi trường được tài liệu hóa đều có sẵn.