# Suggest Country > The Suggest Country endpoint provides predictive autocomplete and search over world countries, with names in many languages, ISO codes, and Egon IDs. The Suggest Country endpoint provides predictive autocomplete and search over **world countries**, with names in many languages, ISO codes, and Egon IDs. ## Endpoint `POST https://api.egon.com/v4/suggest/country` Egon ecommerce API ## Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ## Request Processing options, extraction limits, and country query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | No | Processing parameters and output language for country search | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `par.lngout` | String | No | Language code ISO 3166-1 numeric | | `data` | Object | Yes | Query container holding the input search string | | `data.query` | String | Yes | Query string | ### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/country" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"data":{"query":"Ital"}}' ``` ## Response Matching country candidates, ISO codes, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | | | `data.results` | Array | No | Array of candidate matches returned by the suggestion engine | | `data.results.iso3` | String | No | Country code ISO 3166-1 alpha-3 | | `data.results.lngout` | String | No | Language code ISO 3166-1 numeric | | `data.results.country` | String | No | Country name | | `data.results.country_id` | Number | No | ID of the country | | `system` | Object | No | System error and execution status | | `system.ret_code` | Number | No | Code: 0 no blocking error, <> 0 blocking error code | | `system.des_ret_code` | String | No | Description | ### Example responses **HTTP 200: Valid response** Matching country candidates, ISO codes, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "lngout": "792", "country": "İtalya", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "70", "country": "Italija", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "826", "country": "Italy", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "903", "country": "Italiya", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "908", "country": "Italiia", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "904", "country": "Itali", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "208", "country": "Italien", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "203", "country": "Itálie", "country_id": 38000000001 }, { "iso3": "ITA", "lngout": "470", "country": "Italja", "country_id": 38000000001 } ] }, "system": { "ret_code": 0, "des_ret_code": "Ok" } } ``` **HTTP 400: Invalid token** The provided token is not valid or expired. ```json { "error": { "code": 400, "message": "Unauthenticated." } } ``` **HTTP 401: Missing token** Provide the required authentication token in the Authorization request header. ```json { "error": { "code": 401, "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer {token}'). See [Egon Api documentation](https://docs.egon.com) for details." } } ``` **HTTP 422: Missing data** The request is missing the required data object. ```json { "error": { "code": 422, "message": "The data field is required. (and 1 more error)", "details": { "data": [ "The data field is required." ], "data.query": [ "The data.query field is required." ] } } } ``` **HTTP 422: Missing query** The request is missing the required query string. ```json { "error": { "code": 422, "message": "The data.query field is required.", "details": { "data.query": [ "The data.query field is required." ] } } } ```