Find Country
API operation: Open the endpoint in Scalar
Use GET /countries/{country} to retrieve one country. The operation is Country.find.
Requests may use an API key or bearer token. Role levels 0 and 1 can access this operation. The optional params query can expand cities, metafields, and computed metadata; returned fields depend on the requested projection.
Legacy SDK example
const response = await ordering.countries(countryId).get()
The SDK helper and available fields can differ by version.
OpenAPI reference
Operation: GET /countries/{country}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | integer | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
params | string | No | Comma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields. |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |