# CompanyEnrich Country Lookup API

Get CompanyEnrich Country Lookup data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Treg, pass parameters such as countryCode, and retrieve structured data including country code, country name, country reference latitude, and country reference longitude to normalize country labels, and enrich a location form, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/companyenrich/get-a-country-by-iso-code/
API ID: a9e9dd53-c2f5-42d9-8dd1-ed3686e7829b
Provider: treg
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/treg/call/companyenrich.geo.country.get
Page update time: 2026-12-03T02:37:01.913Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:37:01.913Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## CompanyEnrich Country Lookup API

Send countryCode as an ISO 3166-1 alpha-2 code. The single country object contains code, name, latitude and longitude.

## What You Can Build

- **Normalize country labels**: Resolve a known code into the source country's name.
- **Enrich a location form**: Attach country reference data to a stored selection.

## Returned Data

| Field | Meaning |
| --- | --- |
| `code` | Country code |
| `name` | Country name |
| `latitude` | Country reference latitude |
| `longitude` | Country reference longitude |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CompanyEnrich Country Lookup API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "countryCode": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 code",
          "minLength": 1
        }
      },
      "required": [
        "countryCode"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "latitude": {
      "type": "integer"
    },
    "longitude": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Third-party reference · Testnet verified: business + billing
```bash
curl \
  'https://api.openany.si/v1/agent-apis/treg/call/companyenrich.geo.country.get?countryCode=US' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Historical third-party reference. It may differ from the current provider response; verify the original contract before use.
Third-party response reference · Documented HTTP 200
```json
{
  "code": "US",
  "latitude": 38,
  "longitude": -97,
  "name": "United States"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which code format is required?
Use ISO 3166-1 alpha-2, such as US, rather than a three-letter or numeric code.

### Can I search with a country name?
Use the separate Country Search API for names. This operation requires countryCode.

### Does it return a list of all countries?
No. It is a lookup for one supplied code; browse countries through the separate search operation.

### Are the coordinates a company's location?
No. They are country reference coordinates, not a company or street address.

### Can I provide several country codes?
The declared countryCode input is a single string, not a batch array.

### Does a returned country code prove company registration?
No. This geographic record does not identify companies or verify registration.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
