GuideAPI referenceSDKs
Dashboard
Utilities

Company Distribution by Country

Group a company’s employees by ISO country code.

POST/v2/enrichment/company-distribution-by-country

Request

curl -X POST "https://moltsetz.vercel.app/v2/enrichment/company-distribution-by-country" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "company_linkedin_url": "https://www.linkedin.com/company/openai"
}'

Body

FieldTypeRequiredDescription and limits
company_linkedin_urlstringRequiredCanonical or trailing-slash LinkedIn company profile URL.linkedin.com/company/{slug}

Pagination

This endpoint is not paginated.

Credits

One request credit is recorded only when this endpoint returns a 2xx response. Authentication, validation, rate-limit, and not-found responses do not consume a credit.

Response

FieldTypeDescription
company_linkedin_urlstringNormalized company URL.
total_employeesintegerEmployees represented by the aggregation.
distributionarrayCountry, count, and percentage rows.

Example response

{
  "total_employees": 100,
  "distribution": [
    {
      "country": "US",
      "count": 75,
      "percentage_ratio": 75
    }
  ]
}

Errors

StatusCodeWhen
422INVALID_INPUTA required value is missing, malformed, or outside its documented limits.
404NOT_FOUNDThe input is valid but no matching record exists.
401UNAUTHORIZEDThe x-api-key header is missing or invalid.
402CREDITS_EXHAUSTEDA limited plan has no request credits remaining.
405METHOD_NOT_ALLOWEDThe endpoint is called with an unsupported HTTP method.
429RATE_LIMIT_EXCEEDEDThe API key exceeds its plan-wide requests-per-second limit.
500DATA_SERVICE_ERRORThe data service cannot complete the request.
{
  "success": false,
  "error": {
    "code": "INVALID_INPUT",
    "message": "A field-specific validation message"
  }
}