# Egon Docs > Verify, correct, and complete addresses in real time, with a single API. This file contains all documentation content in a single document following the llmstxt.org standard. ## Egon API Reference Suggest, validate, and normalize addresses and related data. Every service is a `POST` endpoint that accepts and returns JSON. ### Base URL - Default: `https://api.egon.com`. Egon ecommerce API ### Authentication Bearer token authentication ```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"}}' ``` ### Services #### Suggest Services Predictive autocomplete for countries, regions, cities, districts, streets, and postal codes. Results update as you type, so users enter valid addresses. - [Suggest Country](https://docs.egon.com/docs/api/country.md): The Suggest Country endpoint provides predictive autocomplete and search over world countries, with names in many languages, ISO codes, and Egon IDs. (`POST /v4/suggest/country`) - [Suggest State](https://docs.egon.com/docs/api/state.md): The Suggest State endpoint provides predictive autocomplete and search for states and federal states, returning names, codes, and Egon IDs. (`POST /v4/suggest/state`) - [Suggest Region](https://docs.egon.com/docs/api/region.md): The Suggest Region endpoint provides predictive autocomplete and search for regions, returning each matching region with its name and Egon ID. (`POST /v4/suggest/region`) - [Suggest Province](https://docs.egon.com/docs/api/province.md): The Suggest Province endpoint provides predictive autocomplete and search for provinces, returning each match with its province code and Egon ID. (`POST /v4/suggest/province`) - [Suggest City](https://docs.egon.com/docs/api/city.md): The Suggest City endpoint provides predictive autocomplete and search for cities and municipalities, with their postal code and Egon ID. (`POST /v4/suggest/city`) - [Suggest District 1](https://docs.egon.com/docs/api/district-1.md): The Suggest District 1 endpoint provides predictive autocomplete and search for first-level districts, such as localities and municipalities. (`POST /v4/suggest/district1`) - [Suggest Zipcode](https://docs.egon.com/docs/api/zipcode.md): The Suggest Zipcode endpoint suggests postal codes at locality level (L) or at street level (S, available for GBR, IRL, NLD, and JPN). (`POST /v4/suggest/zipcode`) - [Suggest Street](https://docs.egon.com/docs/api/street.md): The Suggest Street endpoint provides predictive autocomplete for street search. (`POST /v4/suggest/street`) #### Validation Services Validation and normalization of addresses, names, phones, emails, and tax codes. Every result has quality flags and codes. - [Address](https://docs.egon.com/docs/api/address.md): The Address endpoint validates and normalizes an address, returning the street, house number, postal data, Egon codes, and geographic coordinates. (`POST /v4/validation/address`) - [Email](https://docs.egon.com/docs/api/email.md): Validate one or more email addresses and return normalized values together with syntax and domain quality indicators. (`POST /v4/validation/emails`) - [Name](https://docs.egon.com/docs/api/name.md): Validate personal names, sole proprietorships, company names, co-holder names, and family surnames, and return normalized and structured output. (`POST /v4/validation/name`) - [Phone](https://docs.egon.com/docs/api/phone.md): Validate and normalize telephone numbers provided either as individual international and national prefix components or as a single full number. (`POST /v4/validation/phones`) - [Tax Code Calculation](https://docs.egon.com/docs/api/tax-code-calc.md): Calculate an Italian tax code (Codice Fiscale) from surname, name, gender, date of birth, and city of birth, with a quality flag for the result. (`POST /v4/validation/tax_code`) - [Tax Code Validation](https://docs.egon.com/docs/api/tax-code-check.md): Check the formal validity and structure of an Italian tax code (Codice Fiscale) and get a quality flag and code that describe the result. (`POST /v4/validation/tax_code`) - [Tax Code Extraction](https://docs.egon.com/docs/api/tax-code-extract.md): Extract gender, date of birth, and place of birth (city and province) from an Italian tax code (Codice Fiscale), with a quality flag. (`POST /v4/validation/tax_code`) - [Tax Code Verification](https://docs.egon.com/docs/api/tax-code-match.md): Compare a tax code against a person's identifying data, including name, gender, date of birth, and birthplace. (`POST /v4/validation/tax_code`) #### Single Line Service Recognition and normalization of a complete address written as a single free-text string. Returns a list of normalized candidates to choose from. - [Full Address](https://docs.egon.com/docs/api/full-address.md): The Full Address endpoint parses a complete address written as a single free-text string and returns a list of normalized candidate addresses. (`POST /v4/suggest/address`) ### Reference - [Quality Indicators](https://docs.egon.com/docs/quality-indicators.md): Detailed validation flags (0, 1, 2/3) and outcome codes for addresses, geocoding, tax codes, and VAT. - [Domains & Dictionaries](https://docs.egon.com/docs/domains.md): Standardized domain codes used in request and response fields (administrative codes, person types, phone lines). ### OpenAPI schema The full OpenAPI 3.1.0 schema is available at https://docs.egon.com/openapi.json and https://docs.egon.com/openapi.yaml. Per-family specifications are available under `https://docs.egon.com/openapi/.{json,yaml}`. ### Help & Support Need assistance with integration, enterprise licensing, or technical inquiries? Our team and resources are at your service. - [Egon Website](https://www.egon.com/): Discover Egon's suite of enterprise data-quality solutions, customer success stories, and product capabilities. - [Contact Us!](https://www.egon.com/company/contact-us): Get in touch with our engineering and integration team to learn more about our services and request dedicated support. --- ## Suggest Services Predictive autocomplete for countries, regions, cities, districts, streets, and postal codes. Results update as you type, so users enter valid addresses. OpenAPI contract: [JSON](https://docs.egon.com/openapi/suggest-services.json) · [YAML](https://docs.egon.com/openapi/suggest-services.yaml) ### Endpoints - [Suggest Country](https://docs.egon.com/docs/api/country.md): The Suggest Country endpoint provides predictive autocomplete and search over world countries, with names in many languages, ISO codes, and Egon IDs. (`POST /v4/suggest/country`) - [Suggest State](https://docs.egon.com/docs/api/state.md): The Suggest State endpoint provides predictive autocomplete and search for states and federal states, returning names, codes, and Egon IDs. (`POST /v4/suggest/state`) - [Suggest Region](https://docs.egon.com/docs/api/region.md): The Suggest Region endpoint provides predictive autocomplete and search for regions, returning each matching region with its name and Egon ID. (`POST /v4/suggest/region`) - [Suggest Province](https://docs.egon.com/docs/api/province.md): The Suggest Province endpoint provides predictive autocomplete and search for provinces, returning each match with its province code and Egon ID. (`POST /v4/suggest/province`) - [Suggest City](https://docs.egon.com/docs/api/city.md): The Suggest City endpoint provides predictive autocomplete and search for cities and municipalities, with their postal code and Egon ID. (`POST /v4/suggest/city`) - [Suggest District 1](https://docs.egon.com/docs/api/district-1.md): The Suggest District 1 endpoint provides predictive autocomplete and search for first-level districts, such as localities and municipalities. (`POST /v4/suggest/district1`) - [Suggest Zipcode](https://docs.egon.com/docs/api/zipcode.md): The Suggest Zipcode endpoint suggests postal codes at locality level (L) or at street level (S, available for GBR, IRL, NLD, and JPN). (`POST /v4/suggest/zipcode`) - [Suggest Street](https://docs.egon.com/docs/api/street.md): The Suggest Street endpoint provides predictive autocomplete for street search. (`POST /v4/suggest/street`) --- ## Suggest Country 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." ] } } } ``` --- ## Suggest State The Suggest State endpoint provides predictive autocomplete and search for **states and federal states**, returning names, codes, and Egon IDs. ### Endpoint `POST https://api.egon.com/v4/suggest/state` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Processing options, country context, and state search query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `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/state" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"USA"},"data":{"query":"ma"}}' ``` ### Response Matching state candidates, administrative 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 | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `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 state candidates, administrative codes, and system status. ```json { "data": { "results": [ { "iso3": "USA", "lngout": "840", "country": "United States", "country_id": 84000000001, "state": "Massachusetts", "state_code": "MA", "state_id": 84000000027 }, { "iso3": "USA", "lngout": "840", "country": "United States", "country_id": 84000000001, "state": "Maine", "state_code": "ME", "state_id": 84000000029 }, { "iso3": "USA", "lngout": "840", "country": "United States", "country_id": 84000000001, "state": "Marshall Islands", "state_code": "MH", "state_id": 84000000030 }, { "iso3": "USA", "lngout": "840", "country": "United States", "country_id": 84000000001, "state": "Maryland", "state_code": "MD", "state_id": 84000000028 }, { "iso3": "USA", "lngout": "840", "country": "United States", "country_id": 84000000001, "state": "Northern Mariana Islands", "state_code": "MP", "state_id": 84000000034 } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest Region The Suggest Region endpoint provides predictive autocomplete and search for **regions**, returning each matching region with its name and Egon ID. ### Endpoint `POST https://api.egon.com/v4/suggest/region` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Processing options, country context, and region search query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `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/region" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"v"}}' ``` ### Response Matching region candidates, administrative 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 | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `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 region candidates, administrative codes, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Valle d'Aosta", "region_id": 38000000003 }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Veneto", "region_id": 38000000006 }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Friuli-Venezia Giulia", "region_id": 38000000007 } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest Province The Suggest Province endpoint provides predictive autocomplete and search for **provinces**, returning each match with its province code and Egon ID. ### Endpoint `POST https://api.egon.com/v4/suggest/province` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Processing options, country context, and province search query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `data` | Object | Yes | Territorial search container with parent identifier filter | | `data.query` | String | Yes | Query string | | `data.restrict_id` | Number | No | ID of the territorial level. Used for filtering the research by a certain territorial level | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/province" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"Ver"}}' ``` ### Response Matching province candidates, administrative 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 | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.province_id` | Number | No | ID of the province | | `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 province candidates, administrative codes, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Piemonte", "region_id": 38000000002, "province": "Verbano Cusio Ossola", "province_code": "VB", "province_id": 38000000123 }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Piemonte", "region_id": 38000000002, "province": "Vercelli", "province_code": "VC", "province_id": 38000000112 }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Veneto", "region_id": 38000000006, "province": "Verona", "province_code": "VR", "province_id": 38000000115 } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest City The Suggest City endpoint provides predictive autocomplete and search for **cities and municipalities**, with their postal code and Egon ID. ### Endpoint `POST https://api.egon.com/v4/suggest/city` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Processing options, country context, and city search query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `data` | Object | Yes | Territorial search container with parent identifier filter | | `data.query` | String | Yes | Query string | | `data.restrict_id` | Number | No | ID of the territorial level. Used for filtering the research by a certain territorial level | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/city" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"Roveredo"}}' ``` ### Response Matching city candidates, administrative hierarchy, 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 | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.province_id` | Number | No | ID of the province | | `data.results.city` | String | No | City name | | `data.results.city_id` | Number | No | ID of the city | | `data.results.zipcode` | String | No | Postal code | | `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 city candidates, administrative hierarchy, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Friuli-Venezia Giulia", "region_id": 38000000007, "province": "Pordenone", "province_code": "PN", "province_id": 38000000082, "city": "Roveredo in Piano", "city_id": 38000004347, "zipcode": "33080" }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38000000001, "region": "Veneto", "region_id": 38000000006, "province": "Verona", "province_code": "VR", "province_id": 38000000115, "city": "Roveredo di Guà", "city_id": 38000004686, "zipcode": "37040" } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest District 1 The Suggest District 1 endpoint provides predictive autocomplete and search for **first-level districts**, such as localities and municipalities. ### Endpoint `POST https://api.egon.com/v4/suggest/district1` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Processing options, city ID context, and district query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `data` | Object | Yes | Territorial search container with parent identifier filter | | `data.query` | String | Yes | Query string | | `data.restrict_id` | Number | No | ID of the territorial level. Used for filtering the research by a certain territorial level | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/district1" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"Rovaio"}}' ``` ### Response Matching district candidates, administrative hierarchy, 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 | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.province_id` | Number | No | ID of the province | | `data.results.city` | String | No | City name | | `data.results.city_id` | Number | No | ID of the city | | `data.results.district1` | String | No | First-level district name | | `data.results.district1_id` | Number | No | ID of the first-level district | | `data.results.zipcode` | String | No | Postal code | | `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 district candidates, administrative hierarchy, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38001476230, "region": "Emilia-Romagna", "region_id": 38000000009, "province": "Piacenza", "province_code": "PC", "province_id": 38000000077, "city": "Corte Brugnatella", "city_id": 38000003969, "district1": "Rovaiola", "district1_id": 38001476230, "zipcode": "29020" }, { "iso3": "ITA", "lngout": "380", "country": "Italia", "country_id": 38001468884, "region": "Lombardia", "region_id": 38000000004, "province": "Pavia", "province_code": "PV", "province_id": 38000000086, "city": "Brallo di Pregola", "city_id": 38000003739, "district1": "Rovaiolo", "district1_id": 38001468884, "zipcode": "27050" } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest Zipcode The Suggest Zipcode endpoint suggests **postal codes** at locality level (`L`) or at street level (`S`, available for GBR, IRL, NLD, and JPN). ### Endpoint `POST https://api.egon.com/v4/suggest/zipcode` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, extraction level, and postal code query. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `data` | Object | Yes | Search criteria for postal code lookup | | `data.query` | String | Yes | Query string | | `data.zip_level` | String | No | Extraction level: `L` for locality-level candidates, or `S` for street-level candidates. Street-level extraction is used in GBR, IRL, NLD, and JPN. Default: `L`. Default value: `L` | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/zipcode" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"37135"}}' ``` **Request body: Street level (GBR)** Street-level extraction, which returns streets, buildings, and organizations for the postal code. ```json { "par": { "iso3": "GBR" }, "data": { "query": "SL0 9DL", "zip_level": "S" } } ``` ### Response Matching postal codes, associated localities or streets, 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.country` | String | No | Country name | | `data.results.country_id` | Number | No | ID of the country | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.province_id` | Number | No | ID of the province | | `data.results.city` | String | No | City name | | `data.results.city_id` | Number | No | ID of the city | | `data.results.district1` | String | No | First-level district name | | `data.results.district1_id` | Number | No | ID of the first-level district | | `data.results.street` | String | No | Street name | | `data.results.street_id` | Number | No | ID of the street | | `data.results.number` | String | No | House number | | `data.results.exponent` | String | No | Exponent | | `data.results.zipcode` | String | No | Postal code | | `data.results.building` | String | No | Building name; available only for GBR and IRL | | `data.results.subbuilding` | String | No | Sub-building information; available only for GBR and IRL | | `data.results.organization` | String | No | Organization name; available only for GBR and IRL | | `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 postal codes, associated localities or streets, and system status. ```json { "data": { "results": [ { "country": "Italia", "country_id": 38000000001, "region": "Veneto", "region_id": 38000000006, "province": "Verona", "province_id": 38000000115, "city": "Verona", "city_id": 38000004730, "zipcode": "37135" } ] }, "system": { "ret_code": 0, "des_ret_code": "Ok" } } ``` **HTTP 200: Valid response, street level (GBR)** Street-level candidates for a GBR postal code, with buildings and organizations, followed by the postal district. ```json { "data": { "results": [ { "state": "England", "province": "Buckinghamshire", "city": "Iver", "street": "NORTH PARK", "street_id": 82600826581, "zipcode": "SL0 9DL", "organization": "RICHINGS PARK GOLF CLUB" }, { "state": "England", "province": "Buckinghamshire", "city": "Iver", "street": "NORTH PARK", "street_id": 82600826581, "zipcode": "SL0 9DL", "building": "HOME FARM COTTAGE" }, { "state": "England", "province": "Buckinghamshire", "city": "Iver", "street": "NORTH PARK", "street_id": 82600826581, "zipcode": "SL0 9DL", "building": "THE PUMP HOUSE" }, { "state": "England", "province": "Buckinghamshire", "city": "Iver", "street": "NORTH PARK", "street_id": 82600826581, "zipcode": "SL0 9DL", "building": "WEST GARDEN COTTAGE" }, { "state": "England", "province": "Buckinghamshire", "city": "Iver", "street": "NORTH PARK", "street_id": 82600826581, "zipcode": "SL0 9DL", "building": "THE COTTAGE HOME FARM" }, { "state": "England", "province": "Buckinghamshire", "city": "Iver", "city_id": 82600003273, "zipcode": "SL0" } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Suggest Street The Suggest Street endpoint provides predictive autocomplete for **street search**. The `restrict_id` parameter (city ID) is required. ### Endpoint `POST https://api.egon.com/v4/suggest/street` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request City context (`restrict_id`), street query, and output options. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing parameters, candidate limits, and country context | | `par.iso3` | String | Yes | Country code, ISO 3166-1 alpha-3. | | `par.max_candidates` | Number | No | Maximum number of candidates to extract. Default value: `10` | | `data` | Object | Yes | Search container with mandatory parent territorial identifier | | `data.query` | String | Yes | Query string | | `data.restrict_id` | Number | Yes | ID of the city. Used for filtering the research by a certain territorial level | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/street" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"Via Pac","restrict_id":38000004730}}' ``` ### Response Matching street candidates, street 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.lngout` | String | No | Language code ISO 3166-1 numeric | | `data.results.state` | String | No | State name | | `data.results.state_code` | String | No | State code | | `data.results.state_id` | Number | No | ID of the state | | `data.results.region` | String | No | Region name | | `data.results.region_code` | String | No | Region code | | `data.results.region_id` | Number | No | ID of the region | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.province_id` | Number | No | ID of the province | | `data.results.city` | String | No | City name | | `data.results.city_id` | Number | No | ID of the city | | `data.results.district1` | String | No | First-level district name | | `data.results.district1_id` | Number | No | ID of the first-level district | | `data.results.zipcode` | String | No | Postal code | | `data.results.street` | String | No | Street name | | `data.results.street_id` | Number | No | ID of the street | | `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 street candidates, street codes, and system status. ```json { "data": { "results": [ { "lngout": "380", "region": "Veneto", "region_id": 38000000006, "province": "Verona", "province_code": "VR", "province_id": 38000000115, "city": "Verona", "city_id": 38000004730, "zipcode": "37135", "street": "Via Antonio Pacinotti", "street_id": 38000073526 }, { "lngout": "380", "region": "Veneto", "region_id": 38000000006, "province": "Verona", "province_code": "VR", "province_id": 38000000115, "city": "Verona", "city_id": 38000004730, "zipcode": "37124", "street": "Via della Pace", "street_id": 38000073960 } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` **HTTP 422: Missing restrict ID** The data.restrict_id field is required. ```json { "error": { "code": 422, "message": "The data.restrict id field is required.", "details": { "data.restrict_id": [ "The data.restrict id field is required." ] } } } ``` --- ## Validation Services Validation and normalization of addresses, names, phones, emails, and tax codes. Every result has quality flags and codes. OpenAPI contract: [JSON](https://docs.egon.com/openapi/validation-services.json) · [YAML](https://docs.egon.com/openapi/validation-services.yaml) ### Endpoints - [Address](https://docs.egon.com/docs/api/address.md): The Address endpoint validates and normalizes an address, returning the street, house number, postal data, Egon codes, and geographic coordinates. (`POST /v4/validation/address`) - [Email](https://docs.egon.com/docs/api/email.md): Validate one or more email addresses and return normalized values together with syntax and domain quality indicators. (`POST /v4/validation/emails`) - [Name](https://docs.egon.com/docs/api/name.md): Validate personal names, sole proprietorships, company names, co-holder names, and family surnames, and return normalized and structured output. (`POST /v4/validation/name`) - [Phone](https://docs.egon.com/docs/api/phone.md): Validate and normalize telephone numbers provided either as individual international and national prefix components or as a single full number. (`POST /v4/validation/phones`) - [Tax Code Calculation](https://docs.egon.com/docs/api/tax-code-calc.md): Calculate an Italian tax code (Codice Fiscale) from surname, name, gender, date of birth, and city of birth, with a quality flag for the result. (`POST /v4/validation/tax_code`) - [Tax Code Validation](https://docs.egon.com/docs/api/tax-code-check.md): Check the formal validity and structure of an Italian tax code (Codice Fiscale) and get a quality flag and code that describe the result. (`POST /v4/validation/tax_code`) - [Tax Code Extraction](https://docs.egon.com/docs/api/tax-code-extract.md): Extract gender, date of birth, and place of birth (city and province) from an Italian tax code (Codice Fiscale), with a quality flag. (`POST /v4/validation/tax_code`) - [Tax Code Verification](https://docs.egon.com/docs/api/tax-code-match.md): Compare a tax code against a person's identifying data, including name, gender, date of birth, and birthplace. (`POST /v4/validation/tax_code`) --- ## Address The Address endpoint validates and normalizes an address, returning the street, house number, postal data, Egon codes, and geographic coordinates. ### Endpoint `POST https://api.egon.com/v4/validation/address` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, processing options, and address fields to validate. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Processing options and country context for address validation. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `par.geo` | String | No | Activate geocoding. `N` No; `S` Yes. Default value: `N` | | `par.fmtout` | String | No | Output format. `C` Capitalized; `M` Upper case; `T` Upper case with apostrophes instead of accents; `X` Upper case without accents. Default value: `C` | | `par.fmtsht` | String | No | Activate short descriptions. `N` No; `S` Yes. Default value: `N` | | `par.lngout` | String | No | Output language. `NAT` Native output language; `TRA` Transliterated output language; `INT` International or English output language; `` Keep the input language | | `par.tpxout` | String | No | Output description format. `LAT` Latinized output without accents | | `data` | Object | Yes | Address information to validate | | `data.address` | Object | Yes | Address information to validate. All individual address fields are optional. | | `data.address.egoncode_place` | Number | No | Egon place code. | | `data.address.egoncode_hn` | Number | No | Egon house-number code. | | `data.address.country` | String | No | Country description. | | `data.address.state` | String | No | State description. | | `data.address.region` | String | No | Region description. | | `data.address.province` | String | No | Province description. | | `data.address.city` | String | No | City or municipality description. | | `data.address.district1` | String | No | First district or locality description. | | `data.address.district2` | String | No | Second district or locality description. | | `data.address.district3` | String | No | Third district or locality description. | | `data.address.zipcode` | String | No | Postal code. | | `data.address.street_type` | String | No | Street type, for example Via, Viale, Piazza, or Corso. | | `data.address.street` | String | No | Street description or street name. | | `data.address.address` | String | No | Full unstructured address. | | `data.address.hn` | String | No | House number. | | `data.address.care_of` | String | No | Care-of information. | | `data.address.building` | String | No | Building information. | | `data.address.sub_building` | String | No | Sub-building information. | | `data.address.organization` | String | No | Organization name. | | `data.address.street_type_str2` | String | No | Second street type. | | `data.address.street_2` | String | No | Second street description. | | `data.address.hn_2` | String | No | Second house number. | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/address" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA","geo":"S"},"data":{"address":{"city":"Verona","street":"Via pacinotti 4b"}}}' ``` ### Response Normalized address, geocoding coordinates, postal format, quality indicators, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized address data and optional output. | | `data.name` | Object | No | | | `data.name.type_ana` | String | No | Name analysis type | | `data.name.gender` | String | No | Gender | | `data.name.full_name` | String | No | Full name | | `data.name.last_name` | String | No | Separate surname | | `data.name.mid_name` | String | No | Middle name | | `data.name.first_name` | String | No | First name | | `data.name.prename` | String | No | Separate name | | `data.name.title` | String | No | Title | | `data.name.firm_type` | String | No | Company legal form | | `data.name.birth_date` | String | No | Date of birth | | `data.name.birth_country` | String | No | Country of birth | | `data.name.birth_province` | String | No | Province of birth | | `data.name.birth_place` | String | No | Place of birth | | `data.name.name_des` | String | No | Name description | | `data.name.status` | String | No | Validation status | | `data.tax_code` | Object | No | | | `data.tax_code.cod_description` | String | No | Code description | | `data.vat_number` | Object | No | | | `data.vat_number.cod_description` | String | No | Code description | | `data.address` | Object | No | Normalized address result. | | `data.address.standard` | Object | No | Complete structured and normalized address. | | `data.address.standard.iso2` | String | No | Country ISO 3166-1 alpha-2 code. | | `data.address.standard.iso3` | String | No | Country ISO 3166-1 alpha-3 code. | | `data.address.standard.country` | String | No | Normalized country description. | | `data.address.standard.country_lng` | String | No | Country language code. | | `data.address.standard.state` | String | No | Normalized state description. | | `data.address.standard.state_code` | String | No | State code. | | `data.address.standard.state_lng` | String | No | State language code. | | `data.address.standard.region` | String | No | Normalized region description. | | `data.address.standard.region_code` | String | No | Region code. | | `data.address.standard.region_lng` | String | No | Region language code. | | `data.address.standard.province` | String | No | Normalized province description. | | `data.address.standard.province_code` | String | No | Province code. | | `data.address.standard.province_lng` | String | No | Province language code. | | `data.address.standard.city` | String | No | Normalized city description. | | `data.address.standard.city_lng` | String | No | City language code. | | `data.address.standard.locality` | String | No | Normalized locality or district description. | | `data.address.standard.locality_lng` | String | No | Locality language code. | | `data.address.standard.locality2` | String | No | Second locality or district description. | | `data.address.standard.locality2_lng` | String | No | Second locality language code. | | `data.address.standard.locality3` | String | No | Third locality or district description. | | `data.address.standard.locality3_lng` | String | No | Third locality language code. | | `data.address.standard.zipcode` | String | No | Normalized postal code. | | `data.address.standard.street_type` | String | No | Normalized street-type description. | | `data.address.standard.street_name` | String | No | Normalized street name. | | `data.address.standard.street` | String | No | Normalized street type and name. | | `data.address.standard.street_lng` | String | No | Street language code. | | `data.address.standard.address` | String | No | Formatted street address and house number. | | `data.address.standard.full_address` | String | No | Complete normalized address. | | `data.address.standard.street_type2` | String | No | Second street-type description. | | `data.address.standard.street_name2` | String | No | Second street name. | | `data.address.standard.street2` | String | No | Second normalized street. | | `data.address.standard.street2_lng` | String | No | Second street language code. | | `data.address.standard.hn` | String | No | Normalized house number. | | `data.address.standard.hn_ext` | String | No | Additional house-number information. | | `data.address.standard.care_of` | String | No | Care-of information. | | `data.address.standard.hn_2` | String | No | Second house number. | | `data.address.standard.building` | String | No | Building information. | | `data.address.standard.subbuilding` | String | No | Sub-building information. | | `data.address.standard.organization` | String | No | Organization | | `data.address.standard.postal_town1` | String | No | Primary postal town or area. | | `data.address.standard.postal_town2` | String | No | Secondary postal town or locality. | | `data.address.standard.match_code` | String | No | Address matching result code. | | `data.address.standard.adm_code` | Array | No | Administrative code collection. | | `data.address.standard.adm_code.iso3` | String | No | Country ISO alpha-3 code. | | `data.address.standard.adm_code.type` | String | No | Administrative-code type. | | `data.address.standard.adm_code.value` | String | No | Administrative code or description. | | `data.address.standard.cnd` | Array | No | Candidate address values when matching is not exact. | | `data.address.standard.cnd.province` | String | No | Candidate province. | | `data.address.standard.cnd.city` | String | No | Candidate city. | | `data.address.standard.cnd.locality` | String | No | Candidate locality. | | `data.address.standard.cnd.street` | String | No | Candidate street. | | `data.address.standard.cnd.zipcode` | String | No | Candidate postal code. | | `data.address.standard.cnd.street_code` | Number | No | Candidate street code. | | `data.address.standard.egon_code` | Object | No | Egon hierarchical code collection. | | `data.address.standard.egon_code.city` | Number | No | Egon city code. | | `data.address.standard.egon_code.locality` | Number | No | Egon locality code. | | `data.address.standard.egon_code.street` | Number | No | Egon street code. | | `data.address.short` | Object | No | Short descriptions, returned when par.fmtsht is enabled. | | `data.address.short.country` | String | No | Country description. | | `data.address.short.state` | String | No | State description. | | `data.address.short.region` | String | No | Region description. | | `data.address.short.province` | String | No | Province description. | | `data.address.short.city` | String | No | City description. | | `data.address.short.locality` | String | No | Locality or district description. | | `data.address.short.locality2` | String | No | Second locality description. | | `data.address.short.locality3` | String | No | Third locality description. | | `data.address.short.street_type` | String | No | Street-type description. | | `data.address.short.street_name` | String | No | Street name. | | `data.address.short.street` | String | No | Street type and name. | | `data.address.smart` | Object | No | Simplified address representation. | | `data.address.smart.country` | String | No | Country description | | `data.address.smart.administrative_level` | String | No | Administrative level. | | `data.address.smart.city` | String | No | City. | | `data.address.smart.address` | String | No | Street type + Street description + House number | | `data.address.smart.zipcode` | String | No | Postal code. | | `data.geo` | Object | No | Geocoding output, returned when par.geo is set to S. | | `data.geo.lat_long` | String | No | Coordinates in latitude, longitude format. | | `data.geo.geo_level` | String | No | Geocoding quality level. | | `data.geo.census_code` | String | No | Census code. | | `data.geo.census_lat_long` | String | No | Census coordinates. | | `data.postal` | Object | No | Postal-format output rows. | | `data.postal.row1` | String | No | Postal row 1. | | `data.postal.row2` | String | No | Postal row 2. | | `data.postal.row3` | String | No | Postal row 3. | | `data.postal.row4` | String | No | Postal row 4. | | `data.postal.row5` | String | No | Postal row 5. | | `data.postal.row6` | String | No | Postal row 6. | | `data.postal.row7` | String | No | Postal row 7. | | `data.phones` | Array | No | Phone numbers to validate | | `data.phones.iso3` | String | No | Country code (ISO 3166-1 alpha-3) | | `data.phones.type` | String | No | Administrative-code type | | `data.phones.pre_int` | String | No | International telephone prefix | | `data.phones.pre_nat` | String | No | National telephone prefix | | `data.phones.number` | String | No | Telephone number | | `data.emails` | Array | No | Email addresses to validate | | `data.emails.email` | String | No | Email address | | `data.codes` | Array | No | Administrative and cadastral domain codes | | `data.codes.type` | String | No | Administrative-code type | | `data.codes.cod_description` | String | No | Code description | | `quality` | Object | No | Address validation quality indicators. | | `quality.phones` | Array | No | Phone numbers to validate | | `quality.phones.flag` | String | No | Quality flag | | `quality.phones.code` | Number | No | Quality code | | `quality.phones.description` | String | No | Human-readable quality description | | `quality.emails` | Array | No | Email addresses to validate | | `quality.emails.flag` | String | No | Quality flag | | `quality.emails.code` | Number | No | Quality code | | `quality.emails.description` | String | No | Human-readable quality description | | `quality.tax_code` | Object | No | | | `quality.tax_code.flag` | String | No | Quality flag | | `quality.tax_code.code` | Number | No | Quality code | | `quality.tax_code.description` | String | No | Human-readable quality description | | `quality.name` | Object | No | | | `quality.name.person` | Object | No | | | `quality.name.person.flag` | String | No | Quality flag | | `quality.name.person.code` | Number | No | Quality code | | `quality.name.person.description` | String | No | Human-readable quality description | | `quality.name.birth_date` | Object | No | | | `quality.name.birth_date.flag` | String | No | Quality flag | | `quality.name.birth_date.code` | Number | No | Quality code | | `quality.name.birth_date.description` | String | No | Human-readable quality description | | `quality.name.birth_place` | Object | No | | | `quality.name.birth_place.flag` | String | No | Quality flag | | `quality.name.birth_place.code` | Number | No | Quality code | | `quality.name.birth_place.description` | String | No | Human-readable quality description | | `quality.address` | Object | No | Quality results by address component. | | `quality.address.locality` | Object | No | Quality of locality or city matching. | | `quality.address.locality.flag` | String | No | Quality flag. | | `quality.address.locality.code` | Number | No | Quality code. | | `quality.address.locality.description` | String | No | Human-readable quality result. | | `quality.address.street` | Object | No | Quality of street matching. | | `quality.address.street.flag` | String | No | Quality flag. | | `quality.address.street.code` | Number | No | Quality code. | | `quality.address.street.description` | String | No | Human-readable quality result. | | `quality.address.hn` | Object | No | Quality of house-number matching. | | `quality.address.hn.flag` | String | No | Quality flag. | | `quality.address.hn.code` | Number | No | Quality code. | | `quality.address.hn.description` | String | No | Human-readable quality result. | | `quality.vat_number` | Object | No | | | `quality.vat_number.flag` | String | No | Quality flag | | `quality.vat_number.code` | Number | No | Quality code | | `quality.vat_number.description` | String | No | Human-readable quality description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** The address was processed successfully. Returns normalized address levels, geocoding coordinates, and quality flags. ```json { "data": { "address": { "standard": { "iso2": "IT", "iso3": "ITA", "country": "Italia", "country_lng": "380", "region": "Veneto", "region_lng": "380", "province": "Verona", "province_code": "VR", "province_lng": "380", "city": "Verona", "city_lng": "380", "zipcode": "37135", "street_type": "Via", "street_name": "Antonio Pacinotti", "street": "Via Antonio Pacinotti", "street_lng": "380", "address": "Via Antonio Pacinotti,4/B", "full_address": "Via Antonio Pacinotti,4/B, Verona, VR, Veneto, 37135, Italia", "hn": "4/B", "postal_town1": "VERONA", "match_code": "3800000473038000073526000000004000000000", "adm_code": [ { "iso3": "ITA", "type": "50137", "value": "VR" }, { "iso3": "ITA", "type": "30000", "value": "L781" }, { "iso3": "ITA", "type": "30021", "value": "023091" }, { "iso3": "ITA", "type": "30022", "value": "005" }, { "iso3": "ITA", "type": "30030", "value": "11700" }, { "iso3": "ITA", "type": "30050", "value": "0777000" }, { "iso3": "ITA", "type": "30060", "value": "086" }, { "iso3": "ITA", "type": "30061", "value": "660999" }, { "iso3": "ITA", "type": "30070", "value": "ITA" }, { "iso3": "ITA", "type": "30071", "value": "IT" }, { "iso3": "ITA", "type": "30072", "value": "380" }, { "iso3": "ITA", "type": "30114", "value": "ITALIA" } ], "egon_code": { "city": 38000004730, "street": 38000073526 } }, "smart": { "country": "Italia", "administrative_level": "Verona", "city": "Verona", "address": "Via Antonio Pacinotti,4/B", "zipcode": "37135" } }, "geo": { "lat_long": "45.40616800, 10.97379600", "geo_level": "A41-111", "census_code": "0230910000922", "census_lat_long": "45.40753707, 10.97251045" }, "postal": { "row4": "VIA ANTONIO PACINOTTI 4/B", "row5": "37135 VERONA VR" } }, "quality": { "address": { "locality": { "flag": "0", "code": 0, "description": "OK" }, "street": { "flag": "1", "code": 801, "description": "Street candidate found" } } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Email Validate one or more email addresses and return normalized values together with syntax and domain quality indicators. ### Endpoint `POST https://api.egon.com/v4/validation/emails` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context and collection of email addresses to validate. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context for email validation. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `data` | Object | Yes | Input data to validate | | `data.emails` | Array | Yes | Email addresses to validate | | `data.emails.email` | String | Yes | Email address | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/emails" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"emails":[{"email":"info@egon.com"},{"email":"info@example.com"}]}}' ``` ### Response Normalized email addresses, validation quality indicators, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.emails` | Array | No | Normalized email addresses | | `data.emails.email` | String | Yes | Email address | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.emails` | Array | No | Quality indicator results for each email | | `quality.emails.flag` | String | No | Quality flag | | `quality.emails.code` | Number | No | Quality result code | | `quality.emails.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Email addresses verified for correct syntax and domain structure. ```json { "data": { "emails": [ { "email": "info@egon.com" }, { "email": "info@example.com" } ] }, "quality": { "emails": [ { "flag": "0", "code": 0, "description": "Ok" }, { "flag": "0", "code": 0, "description": "Ok" } ] }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Name Validate personal names, sole proprietorships, company names, co-holder names, and family surnames, and return normalized and structured output. ### Endpoint `POST https://api.egon.com/v4/validation/name` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context and person or company name string to validate. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context for name analysis and validation. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `data` | Object | Yes | Input data to validate | | `data.name` | Object | Yes | | | `data.name.type_ana` | String | No | Name analysis type | | `data.name.gender` | String | No | Gender | | `data.name.full_name` | String | No | Full name | | `data.name.mid_name` | String | No | Middle name | | `data.name.first_name` | String | No | First name | | `data.name.title` | String | No | Title | | `data.name.name_des` | String | No | Name description | | `data.name.birth_date` | String | No | Date of birth | | `data.name.birth_province` | String | No | Province of birth | | `data.name.birth_place` | String | No | Place of birth | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/name" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"name":{"full_name":"Dottor Mario Rossi"}}}' ``` ### Response Structured name components, recognized gender, separated title/surname/name, and quality indicators. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.name` | Object | No | Parsed, validated, and normalized personal name details | | `data.name.type_ana` | String | No | Customer data type | | `data.name.gender` | String | No | Gender | | `data.name.full_name` | String | No | Validated full name | | `data.name.last_name` | String | No | Separate surname | | `data.name.mid_name` | String | No | Middle name | | `data.name.first_name` | String | No | Separate name | | `data.name.prename` | String | No | Name suffix (e.g. Junior/Senior) | | `data.name.title` | String | No | Academic or professional title | | `data.name.firm_type` | String | No | Official juridical specification (e.g. S.R.L., S.P.A.) | | `data.name.birth_date` | String | No | Date of birth in YYYYMMDD format | | `data.name.birth_country` | String | No | Country of birth | | `data.name.birth_province` | String | No | Province of birth | | `data.name.birth_place` | String | No | City of birth | | `data.name.name_des` | String | No | Name designator | | `data.name.status` | String | No | Status | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.name` | Object | No | Quality indicators for personal name parsing and demographic verification | | `quality.name.person` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.person.flag` | String | No | Quality flag | | `quality.name.person.code` | Number | No | Quality result code | | `quality.name.person.description` | String | No | Quality result description | | `quality.name.birth_date` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_date.flag` | String | No | Quality flag | | `quality.name.birth_date.code` | Number | No | Quality result code | | `quality.name.birth_date.description` | String | No | Quality result description | | `quality.name.birth_place` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_place.flag` | String | No | Quality flag | | `quality.name.birth_place.code` | Number | No | Quality result code | | `quality.name.birth_place.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Name successfully recognized, titles separated, and structured into first name and surname. ```json { "data": { "name": { "type_ana": "1", "gender": "1", "full_name": "ROSSI,MARIO", "last_name": "ROSSI", "first_name": "MARIO", "title": "DOTTORE" } }, "quality": { "name": { "person": { "flag": "0", "code": 0, "description": "Ok" } } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Phone Validate and normalize telephone numbers provided either as individual international and national prefix components or as a single full number. ### Endpoint `POST https://api.egon.com/v4/validation/phones` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context and telephone numbers to normalize and validate. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context for phone number normalization. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `data` | Object | Yes | Input data to validate | | `data.phones` | Array | Yes | Collection of telephone numbers to validate | | `data.phones.pre_int` | String | No | International telephone prefix | | `data.phones.pre_nat` | String | No | National telephone prefix | | `data.phones.number` | String | Yes | Telephone number | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/phones" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"phones":[{"pre_int":"39","pre_nat":"045","number":"8200794"},{"number":"390458201847"}]}}' ``` ### Response Normalized phone numbers with country prefixes, line type codes, quality indicators, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.phones` | Array | No | Normalized telephone entries | | `data.phones.iso3` | String | No | Country code (ISO 3166-1 alpha-3) | | `data.phones.type` | String | No | Telephone-number type code | | `data.phones.pre_int` | String | No | Normalized international dialing prefix | | `data.phones.pre_nat` | String | No | Normalized national dialing prefix | | `data.phones.number` | String | No | Normalized local telephone number | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.phones` | Array | No | Quality result for each returned phone entry | | `quality.phones.flag` | String | No | Quality flag | | `quality.phones.code` | Number | No | Quality result code | | `quality.phones.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Phone numbers validated, separated into international and national prefixes, and standardized. ```json { "data": { "phones": [ { "iso3": "ITA", "type": "00001", "pre_int": "+39", "pre_nat": "045", "number": "8200794" }, { "iso3": "ITA", "type": "00001", "pre_int": "+39", "pre_nat": "045", "number": "8201847" } ] }, "quality": { "phones": [ { "flag": "0", "code": 0, "description": "Ok" }, { "flag": "0", "code": 0, "description": "Ok" } ] }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Tax Code Calculation Calculate an Italian tax code (Codice Fiscale) from surname, name, gender, date of birth, and city of birth, with a quality flag for the result. ### Endpoint `POST https://api.egon.com/v4/validation/tax_code` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, `taxfnx` function `3`, and personal identity data. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context and tax-code calculation function. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `par.taxfnx` | String | Yes | Tax-code configuration function. `3` Calculate tax code from identity data. Default value: `3` | | `data` | Object | Yes | Input data to validate | | `data.name` | Object | Yes | Identity and demographic data used to calculate tax code | | `data.name.full_name` | String | Yes | Surname | | `data.name.first_name` | String | Yes | First name | | `data.name.gender` | String | Yes | Gender (`1` Male, `2` Female) | | `data.name.birth_date` | String | Yes | Date of birth in `YYYYMMDD` format | | `data.name.birth_place` | String | Yes | Birth city description | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/tax_code" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA","taxfnx":"3"},"data":{"name":{"full_name":"Rossi","first_name":"Mario","gender":"1","birth_date":"19930219","birth_place":"Verona"}}}' ``` ### Response Calculated tax code, quality indicators for personal identity fields, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.tax_code` | Object | No | Calculated Italian tax code details | | `data.tax_code.cod_description` | String | No | Calculated Italian tax code | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.tax_code` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.tax_code.flag` | String | No | Quality flag | | `quality.tax_code.code` | Number | No | Quality result code | | `quality.tax_code.description` | String | No | Quality result description | | `quality.name` | Object | No | Quality indicators for personal name parsing and demographic verification | | `quality.name.person` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.person.flag` | String | No | Quality flag | | `quality.name.person.code` | Number | No | Quality result code | | `quality.name.person.description` | String | No | Quality result description | | `quality.name.birth_date` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_date.flag` | String | No | Quality flag | | `quality.name.birth_date.code` | Number | No | Quality result code | | `quality.name.birth_date.description` | String | No | Quality result description | | `quality.name.birth_place` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_place.flag` | String | No | Quality flag | | `quality.name.birth_place.code` | Number | No | Quality result code | | `quality.name.birth_place.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Tax code calculated successfully from personal information. ```json { "data": { "tax_code": { "cod_description": "RSSMRA93B19L781K" } }, "quality": { "tax_code": { "flag": "0", "code": 0, "description": "Ok" }, "name": { "person": { "flag": "0", "code": 0, "description": "Ok" }, "birth_date": { "flag": "0", "code": 0, "description": "Ok" }, "birth_place": { "flag": "0", "code": 0, "description": "Ok" } } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Tax Code Validation Check the formal validity and structure of an Italian tax code (Codice Fiscale) and get a quality flag and code that describe the result. ### Endpoint `POST https://api.egon.com/v4/validation/tax_code` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, `taxfnx` function `2`, and tax code to check. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context and tax-code validation function. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `par.taxfnx` | String | Yes | Tax-code configuration function. `2` Formal check and validation. Default value: `2` | | `data` | Object | Yes | Input data to validate | | `data.tax_code` | Object | Yes | Italian tax code to validate | | `data.tax_code.cod_iso3` | String | No | Country code (ISO 3166-1 alpha-3) | | `data.tax_code.cod_type` | String | No | Type of code | | `data.tax_code.cod_description` | String | Yes | Italian tax code to check | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/tax_code" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA","taxfnx":"2"},"data":{"tax_code":{"cod_iso3":"ITA","cod_type":"01110","cod_description":"RSSMRA93B19L781K"}}}' ``` ### Response Validated tax code, extraction verification quality indicator, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.tax_code` | Object | No | Validated tax code details | | `data.tax_code.cod_description` | String | No | Italian tax code | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.tax_code` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.tax_code.flag` | String | No | Quality flag | | `quality.tax_code.code` | Number | No | Quality result code | | `quality.tax_code.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Tax code verified and found formally valid. ```json { "data": { "tax_code": { "cod_description": "RSSMRA93B19L781K" } }, "quality": { "tax_code": { "flag": "0", "code": 0, "description": "Ok" } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Tax Code Extraction Extract gender, date of birth, and place of birth (city and province) from an Italian tax code (Codice Fiscale), with a quality flag. ### Endpoint `POST https://api.egon.com/v4/validation/tax_code` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, `taxfnx` function `5`, and tax code to decode. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context and tax-code extraction function. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `par.taxfnx` | String | Yes | Tax-code configuration function. `5` Extract demographic information from tax code. Default value: `5` | | `data` | Object | Yes | Input data to validate | | `data.tax_code` | Object | Yes | Italian tax code to extract demographics from | | `data.tax_code.cod_iso3` | String | No | Country code (ISO 3166-1 alpha-3) | | `data.tax_code.cod_type` | String | No | Type of code | | `data.tax_code.cod_description` | String | Yes | Italian tax code to extract info from | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/tax_code" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA","taxfnx":"5"},"data":{"tax_code":{"cod_iso3":"ITA","cod_type":"01110","cod_description":"RSSMRA93B19L781K"}}}' ``` ### Response Extracted birth date, birth province, birth city, quality indicator, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.name` | Object | No | Extracted demographic and birthplace data | | `data.name.gender` | String | No | Extracted gender | | `data.name.birth_date` | String | No | Extracted date of birth in `YYYYMMDD` format | | `data.name.birth_province` | String | No | Extracted birth province code | | `data.name.birth_place` | String | No | Extracted birth city description | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.tax_code` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.tax_code.flag` | String | No | Quality flag | | `quality.tax_code.code` | Number | No | Quality result code | | `quality.tax_code.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Birth details and province extracted successfully from the tax code. ```json { "data": { "name": { "birth_date": "19930219", "birth_province": "VR", "birth_place": "VERONA" } }, "quality": { "tax_code": { "flag": "0", "code": 0, "description": "Ok" } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Tax Code Verification Compare a tax code against a person's identifying data, including name, gender, date of birth, and birthplace. ### Endpoint `POST https://api.egon.com/v4/validation/tax_code` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Country context, `taxfnx` function `1`, personal identity data, and tax code to compare. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | Country context and tax-code match function. | | `par.iso2` | String | No | Country code, ISO 3166-1 alpha-2. One of `iso2` or `iso3` is **required**. | | `par.iso3` | String | No | Country code, ISO 3166-1 alpha-3. One of `iso2` or `iso3` is **required**. | | `par.taxfnx` | String | Yes | Tax-code configuration function. `1` Compare and match tax code against personal identity data. Default value: `1` | | `data` | Object | Yes | Input data to validate | | `data.name` | Object | Yes | Personal identity data to compare against tax code | | `data.name.full_name` | String | Yes | Surname | | `data.name.first_name` | String | Yes | First name | | `data.name.gender` | String | Yes | Gender (`1` Male, `2` Female) | | `data.name.birth_date` | String | Yes | Date of birth in `YYYYMMDD` format | | `data.name.birth_place` | String | Yes | Birth city description | | `data.tax_code` | Object | Yes | Italian tax code to match | | `data.tax_code.cod_iso3` | String | No | Country code (ISO 3166-1 alpha-3) | | `data.tax_code.cod_type` | String | No | Code type | | `data.tax_code.cod_description` | String | Yes | Italian tax code to match | #### Example request ```bash curl -X POST "https://api.egon.com/v4/validation/tax_code" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA","taxfnx":"1"},"data":{"name":{"full_name":"Rossi","first_name":"Mario","gender":"1","birth_date":"19930219","birth_place":"Verona"},"tax_code":{"cod_iso3":"ITA","cod_type":"01110","cod_description":"RSSMRA93B19L781K"}}}' ``` ### Response Normalized personal data, tax code, comparison quality results for identity, birth date, birthplace, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | Normalized and enriched validation output data | | `data.name` | Object | No | Validated identity data and matching outcome | | `data.name.type_ana` | String | No | Person/customer type | | `data.name.gender` | String | No | Normalized gender | | `data.name.full_name` | String | No | Normalized full name | | `data.name.last_name` | String | No | Normalized surname | | `data.name.first_name` | String | No | Normalized first name | | `data.name.birth_date` | String | No | Date of birth in `YYYYMMDD` format | | `data.name.birth_province` | String | No | Birth province code | | `data.name.birth_place` | String | No | Normalized birthplace | | `data.tax_code` | Object | No | Matched tax code details | | `data.tax_code.cod_description` | String | No | Italian tax code result | | `quality` | Object | No | Validation quality indicators and score flags | | `quality.tax_code` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.tax_code.flag` | String | No | Quality flag | | `quality.tax_code.code` | Number | No | Quality result code | | `quality.tax_code.description` | String | No | Quality result description | | `quality.name` | Object | No | Quality indicators for personal name parsing and demographic verification | | `quality.name.person` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.person.flag` | String | No | Quality flag | | `quality.name.person.code` | Number | No | Quality result code | | `quality.name.person.description` | String | No | Quality result description | | `quality.name.birth_date` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_date.flag` | String | No | Quality flag | | `quality.name.birth_date.code` | Number | No | Quality result code | | `quality.name.birth_date.description` | String | No | Quality result description | | `quality.name.birth_place` | Object | No | Quality indicator result (see https://docs.egon.com/docs/quality-indicators) | | `quality.name.birth_place.flag` | String | No | Quality flag | | `quality.name.birth_place.code` | Number | No | Quality result code | | `quality.name.birth_place.description` | String | No | Quality result description | | `system` | Object | No | Request processing status. | | `system.ret_code` | Number | No | Processing result code. 0 means no blocking error. | | `system.des_ret_code` | String | No | Human-readable processing result. | #### Example responses **HTTP 200: Valid response** Tax code matches personal information completely. ```json { "data": { "name": { "type_ana": "1", "gender": "1", "full_name": "ROSSI,MARIO", "last_name": "ROSSI", "first_name": "MARIO", "birth_date": "19930219", "birth_province": "VR", "birth_place": "VERONA" }, "tax_code": { "cod_description": "RSSMRA93B19L781K" } }, "quality": { "tax_code": { "flag": "0", "code": 0, "description": "Ok" }, "name": { "person": { "flag": "0", "code": 0, "description": "Ok" }, "birth_date": { "flag": "0", "code": 0, "description": "Ok" }, "birth_place": { "flag": "0", "code": 0, "description": "Ok" } } }, "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 par** The request is missing the required par object or country code. ```json { "error": { "code": 422, "message": "The par.iso3 field is required when par.iso2 is not present. (and 1 more error)", "details": { "par.iso3": [ "The par.iso3 field is required when par.iso2 is not present." ], "par.iso2": [ "The par.iso2 field is required when par.iso3 is not present." ] } } } ``` **HTTP 422: Invalid iso2 or iso3** The specified ISO 3166-1 alpha-2 or alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` --- ## Single Line Service Recognition and normalization of a complete address written as a single free-text string. Returns a list of normalized candidates to choose from. OpenAPI contract: [JSON](https://docs.egon.com/openapi/single-line-service.json) · [YAML](https://docs.egon.com/openapi/single-line-service.yaml) ### Endpoints - [Full Address](https://docs.egon.com/docs/api/full-address.md): The Full Address endpoint parses a complete address written as a single free-text string and returns a list of normalized candidate addresses. (`POST /v4/suggest/address`) --- ## Full Address The Full Address endpoint parses a complete address written as a single free-text string and returns a list of **normalized candidate addresses**. ### Endpoint `POST https://api.egon.com/v4/suggest/address` Egon ecommerce API ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Authorization` | String | Yes | Bearer token authentication | ### Request Single-line query string, country context, and parsing options. | Field | Type | Required | Description | | --- | --- | --- | --- | | `par` | Object | Yes | | | `par.iso3` | String | Yes | ISO 3166-1 alpha-3 country code | | `par.output` | String | No | Output language. Allowed values: `NAT`, `LAT`, `TRA`, `INT`, or an empty value to keep the input language | | `data` | Object | Yes | | | `data.query` | String | Yes | Free-text query containing the complete address | | `data.restrict_id` | Number | No | Identifier of the territorial restriction. Required when `restrict_level` is provided | | `data.restrict_level` | String | No | Territorial level used for the restriction. Required when `restrict_id` is provided. Allowed values: `state`, `region`, `province`, `city`, `district1` | #### Example request ```bash curl -X POST "https://api.egon.com/v4/suggest/address" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"par":{"iso3":"ITA"},"data":{"query":"Via Pacinotti 4b, Verona"}}' ``` ### Response Structured address candidates, matching confidence scores, and system status. | Field | Type | Required | Description | | --- | --- | --- | --- | | `data` | Object | No | | | `data.results` | Array | No | Array of candidate matching addresses | | `data.results.iso3` | String | No | ISO 3166-1 alpha-3 country code | | `data.results.id` | Number | No | Street identifier | | `data.results.country` | String | No | Country name | | `data.results.state` | String | No | State name | | `data.results.region` | String | No | Region name | | `data.results.province` | String | No | Province name | | `data.results.province_code` | String | No | Province code | | `data.results.city` | String | No | City name | | `data.results.district1` | String | No | First-level district name | | `data.results.district2` | String | No | Second-level district name | | `data.results.district3` | String | No | Third-level district name | | `data.results.zipcode` | String | No | Postal or ZIP code | | `data.results.street` | String | No | Street name | | `data.results.hn_num` | String | No | Numeric portion of the house number | | `data.results.hn_exp` | String | No | House-number suffix or exponent | | `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** Structured address candidates, matching confidence scores, and system status. ```json { "data": { "results": [ { "iso3": "ITA", "id": 38000073526, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Verona", "zipcode": "37135", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000330636, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Legnago", "zipcode": "37045", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000124342, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Cerea", "zipcode": "37053", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000175587, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Pescantina", "zipcode": "37026", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000315533, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Sommacampagna", "zipcode": "37066", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000328961, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Grezzana", "zipcode": "37023", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000176130, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Bardolino", "zipcode": "37011", "street": "Vicolo Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000124647, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "San Giovanni Lupatoto", "zipcode": "37057", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38000174082, "country": "Italia", "region": "Veneto", "province": "Verona", "city": "Valeggio sul Mincio", "zipcode": "37067", "street": "Via Antonio Pacinotti", "hn_num": "4", "hn_exp": "b" }, { "iso3": "ITA", "id": 38001153169, "country": "Italia", "region": "Lombardia", "province": "Brescia", "city": "Brescia", "zipcode": "25132", "street": "Via Pacinotti", "hn_num": "4", "hn_exp": "b" } ] }, "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 par or iso3** The request is missing the required par object or ISO 3166-1 alpha-3 country code. ```json { "error": { "code": 422, "message": "The par field is required. (and 1 more error)", "details": { "par": [ "The par field is required." ], "par.iso3": [ "The par.iso3 field is required." ] } } } ``` **HTTP 422: Invalid iso3** The specified ISO 3166-1 alpha-3 country code is not enabled. ```json { "error": { "code": 422, "message": "Country not enabled.", "details": { "par.iso3": [ "Country not enabled." ] } } } ``` **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." ] } } } ``` --- ## Quality Indicators Quality indicators describe how Egon validated, changed, rejected, or approximated an input value during postal standardization and data validation services. ### How to Read an Indicator Each quality result in an API response contains three key elements: | Field | Type | Description | | ------------- | -------- | ------------------------------------------------------------------------------------------ | | `flag` | `String` | High-level validation status indicating whether data was unchanged, corrected, or rejected | | `code` | `Number` | Granular error or quality rule code specifying the exact operation performed | | `description` | `String` | Human-readable explanation of the validation outcome | ### Flag Values The high-level `flag` summarizes the overall validation outcome: | Flag | Status | Meaning | | --------------------------------------------------------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | 0 · OK | **Validated without changes** | The input value perfectly matched reference authority databases and required no alterations. | | 1 · Changed | **Validated with changes** | The input value was recognized and corrected, completed, or standardized according to official postal rules. | | 2/3 · Not valid | **Not validated** | The value could not be validated due to ambiguity, syntax errors, missing mandatory elements, or no matching records found. | ### Indicator Catalogs - [Address Indicators](https://docs.egon.com/docs/quality-indicators/address.md): Detailed quality codes for locality, street name, postal code, and house-number validation. (201 codes) - [Birth Indicators](https://docs.egon.com/docs/quality-indicators/birth.md): Quality indicators returned for birth-date coherence and birthplace validation. (8 codes) - [Email Indicators](https://docs.egon.com/docs/quality-indicators/email.md): Syntax validation, domain verification, certified PEC identification, and disposable email detection. (32 codes) - [Geocoding Indicators](https://docs.egon.com/docs/quality-indicators/geocoding.md): Coordinate sources (TomTom, HERE, Egon, cadastre) and spatial precision approximation levels. (88 codes) - [Person & Name Indicators](https://docs.egon.com/docs/quality-indicators/person.md): Name and surname parsing, academic title detection, corporate legal forms, and gender consistency. (46 codes) - [Phone Indicators](https://docs.egon.com/docs/quality-indicators/phone.md): Telephone number standardization, international prefix addition, and geographical area code checks. (25 codes) - [Tax Code Indicators](https://docs.egon.com/docs/quality-indicators/tax-code.md): Italian fiscal code calculation, checksum verification, omocody resolution, and identity checks. (59 codes) - [VAT Indicators](https://docs.egon.com/docs/quality-indicators/vat.md): VAT number syntax validation, European VIES cross-checks, and corporate registry verification. (59 codes) ### Also in Reference Complementary reference guide and data dictionary: - [Domains & Dictionaries](https://docs.egon.com/docs/domains.md): Standardized domain codes used in request and response fields (administrative codes, person types, phone lines). --- ## Address Quality Indicators Quality indicators returned for locality, street, postal code, and house-number validation in Egon Address and Single Line services. ### Locality Indicators Locality-level verification codes indicating administrative boundary matches, postal code corrections, and phonetic normalization. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 701 | Locality candidate found | | 1 (Changed) | 702 | Locality candidate found with different level | | 1 (Changed) | 703 | Postcode not correct | | 1 (Changed) | 704 | Different postcode for mono-postcode locality | | 1 (Changed) | 705 | Different postcode for multi-postcode locality | | 1 (Changed) | 706 | Different postcode for mono-postcode street | | 1 (Changed) | 707 | Different postcode for multi-postcode street | | 1 (Changed) | 708 | District 1 not validated | | 1 (Changed) | 709 | Different words | | 1 (Changed) | 710 | Locality with more words | | 1 (Changed) | 711 | Locality with two less words | | 1 (Changed) | 712 | Too many less words | | 1 (Changed) | 713 | Postcode found | | 1 (Changed) | 714 | Locality found | | 1 (Changed) | 715 | Postcode different from Department postcode | | 1 (Changed) | 716 | Special postcode | | 1 (Changed) | 717 | Special postcode | | 1 (Changed) | 724 | Postcode different from postal town postcode | | 1 (Changed) | 727 | Locality out of Country | | 1 (Changed) | 728 | Locality out of range | | 1 (Changed) | 729 | Locality found in the state of the input locality | | 1 (Changed) | 730 | Locality found at an equivalent level | | 1 (Changed) | 731 | Locality found with inverted levels | | 1 (Changed) | 732 | Locality found with inverted sub-levels | | 1 (Changed) | 734 | Locality extracted from Postcode | | 1 (Changed) | 751 | Locality found in the metropolitan area of the input city | | 1 (Changed) | 752 | Locality extracted from postal town | | 1 (Changed) | 780 | Locality found with synonym | | 1 (Changed) | 782 | Locality found with user synonym | | 1 (Changed) | 783 | Locality found with automatic synonym | | 1 (Changed) | 784 | Locality found with historic synonym | | 1 (Changed) | 785 | Locality found with user synonym type 5 | | 1 (Changed) | 786 | Locality found with user synonym type 6 | | 1 (Changed) | 787 | Locality found with user synonym type 7 | | 1 (Changed) | 788 | Locality found with user synonym type 8 | | 1 (Changed) | 789 | Locality found with user synonym type 9 | | 1 (Changed) | 790 | Locality validated after post-treatment | | 1 (Changed) | 791 | Locality validated with consonants candidates | | 1 (Changed) | 792 | Locality validated with vowel candidates | | 1 (Changed) | 793 | Locality validated with forced candidate | | 1 (Changed) | 794 | Locality validated with different Province | | 1 (Changed) | 798 | Country extracted from locality | | 1 (Changed) | 799 | Changed Country | | 2/3 (Not valid) | 201 | No data - locality | | 2/3 (Not valid) | 202 | Locality not found | | 2/3 (Not valid) | 203 | Ambiguous locality | | 2/3 (Not valid) | 204 | Invalid data | | 2/3 (Not valid) | 205 | Locality with words out of sequence | | 2/3 (Not valid) | 206 | Locality candidate out of sequence | | 2/3 (Not valid) | 207 | Locality with more words | | 2/3 (Not valid) | 208 | Locality with invalid elements | | 2/3 (Not valid) | 209 | Locality with first word not found | | 2/3 (Not valid) | 210 | Locality out of sequence | | 2/3 (Not valid) | 211 | Too many candidates for locality | | 2/3 (Not valid) | 212 | Locality not found, no candidates | | 2/3 (Not valid) | 213 | Candidate with one missing word | | 2/3 (Not valid) | 214 | Too many candidates for sub-locality | | 2/3 (Not valid) | 215 | Too many candidates | | 2/3 (Not valid) | 216 | Locality out of Country | | 2/3 (Not valid) | 217 | Ambiguous Country | | 2/3 (Not valid) | 218 | Ambiguous data out of Country | | 2/3 (Not valid) | 219 | Candidate with too many missing words | | 2/3 (Not valid) | 220 | Poor information for matchcode construction | | 2/3 (Not valid) | 221 | Postal town not found | | 2/3 (Not valid) | 222 | Postal town not found | | 2/3 (Not valid) | 223 | Postal town inconsistent data | | 2/3 (Not valid) | 224 | Postcode incongruous with postal town | | 2/3 (Not valid) | 225 | Locality and postcode ambiguous | | 2/3 (Not valid) | 226 | Foreign Country not found | | 2/3 (Not valid) | 227 | Foreign locality not found | | 2/3 (Not valid) | 228 | Special postcode not correct | | 2/3 (Not valid) | 229 | Territorial level not belonging to Country | | 2/3 (Not valid) | 238 | Locality candidate extracted by phonetic | | 2/3 (Not valid) | 242 | Mandatory element | | 2/3 (Not valid) | 243 | Relative weight too low | | 2/3 (Not valid) | 244 | Inconsistent territorial level | ### Street Indicators Street-level verification codes describing road name corrections, street type expansions, and postal code resolution. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 801 | Street candidate found | | 1 (Changed) | 802 | House number not present | | 1 (Changed) | 803 | Postcode corrected | | 1 (Changed) | 804 | Additional information not correct | | 1 (Changed) | 805 | CO inside address | | 1 (Changed) | 806 | CO at the beginning of address | | 1 (Changed) | 807 | First word not correct | | 1 (Changed) | 808 | Address with two less words | | 1 (Changed) | 809 | Address with different words | | 1 (Changed) | 810 | Address with more words | | 1 (Changed) | 811 | Wrong Street-type | | 1 (Changed) | 812 | Street with too many less words | | 1 (Changed) | 813 | Different postcode | | 1 (Changed) | 814 | Different postcode | | 1 (Changed) | 815 | Valid generic postcode | | 1 (Changed) | 816 | Valid generic postcode attributed | | 1 (Changed) | 817 | Address with only one word | | 1 (Changed) | 818 | Only numbers in the address | | 1 (Changed) | 819 | Address found with number analysis | | 1 (Changed) | 820 | Numbers in the street name | | 1 (Changed) | 821 | P.O. box found | | 1 (Changed) | 822 | Locality in extra-information | | 1 (Changed) | 823 | Locality in extra-information | | 1 (Changed) | 824 | Address validated from the CO section | | 1 (Changed) | 825 | Address validated from the CO section | | 1 (Changed) | 826 | Address not validated from the CO section | | 1 (Changed) | 827 | Address out of Country | | 1 (Changed) | 828 | House number found | | 1 (Changed) | 830 | P.O. box found | | 1 (Changed) | 831 | Different postcode for P.O. box | | 1 (Changed) | 832 | Postcode not valid for P.O. box | | 1 (Changed) | 833 | Street with one less word | | 1 (Changed) | 834 | Street out of sequence | | 1 (Changed) | 835 | Street with one more word | | 1 (Changed) | 836 | Street with one more number | | 1 (Changed) | 837 | Street with one more word | | 1 (Changed) | 838 | Street validated with macro street-type | | 1 (Changed) | 840 | Street not congruous with district | | 1 (Changed) | 841 | District validated from street name | | 1 (Changed) | 842 | Double street | | 1 (Changed) | 843 | Street with corner | | 1 (Changed) | 845 | Postcode valid for the street | | 1 (Changed) | 846 | Valid postcode for locality | | 1 (Changed) | 851 | Valid postcode unique postcode street | | 1 (Changed) | 852 | Valid postcode multi postcode street | | 1 (Changed) | 853 | Postcode extracted unique postcode | | 1 (Changed) | 855 | Postcode belonging to street | | 1 (Changed) | 879 | Postcode not present for multi postcode street | | 1 (Changed) | 880 | Address validated with synonym | | 1 (Changed) | 881 | Address not verified for Country without street database | | 1 (Changed) | 882 | Address validated with user synonym | | 1 (Changed) | 883 | Address validated with automatic synonym | | 1 (Changed) | 884 | Address validated with historic synonym | | 1 (Changed) | 885 | Address validated with user synonym type 5 | | 1 (Changed) | 886 | Address validated with user synonym type 6 | | 1 (Changed) | 887 | Address validated with user synonym type 7 | | 1 (Changed) | 888 | Address validated with user synonym type 8 | | 1 (Changed) | 889 | Address validated with user synonym type 9 | | 1 (Changed) | 890 | Address validated after post-treatment | | 1 (Changed) | 891 | Address validated with word candidates | | 1 (Changed) | 892 | Address validated with consonants candidates | | 1 (Changed) | 893 | Address validated with vowel candidates | | 1 (Changed) | 894 | Address validated with forced candidate | | 1 (Changed) | 895 | Locality extracted from address | | 2/3 (Not valid) | 301 | No data - street | | 2/3 (Not valid) | 302 | Street not found | | 2/3 (Not valid) | 303 | Ambiguous street | | 2/3 (Not valid) | 304 | Invalid data | | 2/3 (Not valid) | 305 | Postcode not attributable for the house number | | 2/3 (Not valid) | 306 | Street with words out of sequence | | 2/3 (Not valid) | 307 | Street with more words | | 2/3 (Not valid) | 308 | Street with invalid elements | | 2/3 (Not valid) | 309 | Street with first word not found | | 2/3 (Not valid) | 310 | Street not extracted | | 2/3 (Not valid) | 311 | Too many candidates for street | | 2/3 (Not valid) | 312 | Street candidates not found | | 2/3 (Not valid) | 313 | House number not valid | | 2/3 (Not valid) | 314 | Too many postcode ranges | | 2/3 (Not valid) | 315 | Too many house numbers | | 2/3 (Not valid) | 316 | Extraurban street not valid | | 2/3 (Not valid) | 317 | Extraurban street not valid | | 2/3 (Not valid) | 318 | Extraurban street not valid | | 2/3 (Not valid) | 319 | Extraurban street not valid | | 2/3 (Not valid) | 320 | Street with too many commas | | 2/3 (Not valid) | 321 | Street with comma and separated house number | | 2/3 (Not valid) | 322 | Two street-type found | | 2/3 (Not valid) | 323 | Address mask not found | | 2/3 (Not valid) | 324 | House number not found | | 2/3 (Not valid) | 325 | Ambiguous street | | 2/3 (Not valid) | 326 | Ambiguous street and postcode | | 2/3 (Not valid) | 327 | House number not found for multi-postcode street | | 2/3 (Not valid) | 328 | Street not recognizable | | 2/3 (Not valid) | 329 | Postcode not valid | | 2/3 (Not valid) | 330 | Street-type not valid | | 2/3 (Not valid) | 331 | Candidate with too many less words | | 2/3 (Not valid) | 332 | Street not verified caused by locality error | | 2/3 (Not valid) | 333 | Double CO | | 2/3 (Not valid) | 334 | Mask error | | 2/3 (Not valid) | 335 | Candidates not valid | | 2/3 (Not valid) | 336 | Address equal to locality | | 2/3 (Not valid) | 337 | Address not valid | | 2/3 (Not valid) | 338 | Candidates not valid | | 2/3 (Not valid) | 339 | Foreign address not found | | 2/3 (Not valid) | 340 | Too many particular words in the address | | 2/3 (Not valid) | 341 | Second street wrong | | 2/3 (Not valid) | 342 | Mandatory element | | 2/3 (Not valid) | 343 | Relative weight too low | | 2/3 (Not valid) | 344 | Exponent not found in the range | | 2/3 (Not valid) | 345 | Range not found for the street | | 2/3 (Not valid) | 391 | Wrong street direction | | 2/3 (Not valid) | 399 | Street forced by user | | 2/3 (Not valid) | 997 | Street not processed because of a country error | | 2/3 (Not valid) | 999 | Logic error | ### House-Number Indicators House-number verification codes indicating exact postal point certification, numeric-only validation, and range checks. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | Certified House number | | 1 (Changed) | 502 | House Number not certified | | 1 (Changed) | 503 | Certified house number numeric part only | | 1 (Changed) | 504 | House number code not found | | 1 (Changed) | 505 | House number code reassigned | | 1 (Changed) | 506 | House number not certified numeric part only | | 1 (Changed) | 590 | Certification not active | | 2/3 (Not valid) | 501 | House number not found | | 2/3 (Not valid) | 598 | House number not present in input | | 2/3 (Not valid) | 599 | House number not verified caused by street error | --- ## Birth Quality Indicators Reference codes returned for birth-date and birthplace validation in Egon Validation services. ### Quality Codes Quality codes indicating the outcome of date of birth validity, province sigle matching, and cadastral code alignment. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 910 | Ambiguous date of birth | | 1 (Changed) | 911 | Province code not valid | | 1 (Changed) | 912 | Incongruent date of birth | | 1 (Changed) | 913 | Incongruent Cadastral code | | 1 (Changed) | 914 | Date of birth out of range | | 1 (Changed) | 915 | Different place of birth | | 1 (Changed) | 916 | Foreign place of birth | --- ## Email Quality Indicators Reference codes returned in `quality.emails` by the Egon Email validation service. ### Quality Codes Detailed indicators describing email format compliance, domain verification, certified PEC statuses, and syntax modifications. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 463 | Double points | | 1 (Changed) | 464 | IP Formatted email | | 1 (Changed) | 465 | Points found | | 1 (Changed) | 466 | Valid Domain | | 1 (Changed) | 467 | Email with generic National first-level domain | | 1 (Changed) | 468 | Email with national first-level domain | | 1 (Changed) | 469 | Email with official domain | | 1 (Changed) | 980 | First-level domain not certified | | 1 (Changed) | 981 | Forced | | 1 (Changed) | 982 | Substitution | | 1 (Changed) | 983 | Email modified | | 1 (Changed) | 984 | Domain modified | | 1 (Changed) | 985 | Fake email | | 1 (Changed) | 986 | Email starting with special characters | | 1 (Changed) | 987 | URL in email | | 1 (Changed) | 988 | Too many emails | | 1 (Changed) | 989 | Additional information found | | 1 (Changed) | 991 | Certified domain | | 2/3 (Not valid) | 401 | Email not present | | 2/3 (Not valid) | 402 | Wrong email format | | 2/3 (Not valid) | 428 | Invalid characters | | 2/3 (Not valid) | 443 | Wrong domain | | 2/3 (Not valid) | 454 | Wrong top-level domain | | 2/3 (Not valid) | 455 | Wrong domain | | 2/3 (Not valid) | 456 | Not present | | 2/3 (Not valid) | 457 | Second-level domain not present | | 2/3 (Not valid) | 458 | Domain not certified | | 2/3 (Not valid) | 460 | Format not valid | | 2/3 (Not valid) | 461 | Email format not recognized | | 2/3 (Not valid) | 462 | Unknown domain | | 2/3 (Not valid) | 470 | Not valid domain | --- ## Geocoding Quality Indicators Reference values for spatial sources, provider datasets, and approximation levels of returned geographical coordinates. ### Coordinate Source Types The prefix indicates the territorial geometry type of returned coordinates. | Prefix | Description | | --- | --- | | A | Point on the street graph | | M | Centroid of a sub-locality polygon, census area, or specific postcode | | B | Centroid of a locality polygon | ### Provider Source Codes Granular codes identifying the provider and method used to obtain the coordinates (e.g., TomTom, HERE, Egon proprietary dataset, Cadastre, Google, OpenStreetMap). | Code | Description | | --- | --- | | A11 | TomTom Address Point | | A12 | TomTom Interpolated | | A13 | TomTom Interpolated TBD | | A14 | TomTom Low Quality | | A15 | TomTom POI | | A16 | TomTom Crossroad | | A19 | TomTom Street level | | A21 | HERE Point addressing | | A22 | HERE Interpolated GN4 | | A23 | HERE Interpolated | | A24 | HERE Low Quality | | A25 | HERE POI | | A26 | HERE crossroad | | A29 | HERE street level | | A31 | Local Authorities/Government Detected | | A33 | Local Authorities/Government Interpolated | | A34 | Local Authorities/Government Low Quality | | A35 | Local Authorities/Government POI | | A36 | Local Authorities/Government Crossroad | | A39 | Local Authorities/Government Street level | | A41 | Egon Detected | | A43 | Egon Interpolated | | A44 | Egon Low Quality | | A45 | Egon POI | | A46 | Egon Crossroad | | A49 | Egon Street level | | A51 | Custom Detected | | A53 | Custom Interpolated | | A54 | Custom Low Quality | | A55 | Custom POI | | A56 | Custom Incroci | | A59 | Custom Livello stradale | | A61 | Google Detected | | A63 | Google Interpolated | | A64 | Google Low Quality | | A65 | Google POI | | A66 | Google Crossroad | | A69 | Google Street level | | A71 | OpenStreetMap Detected | | A73 | OpenStreetMap Interpolated | | A74 | OpenStreetMap Low Quality | | A75 | OpenStreetMap POI | | A76 | OpenStreetMap Crossroad | | A79 | OpenStreetMap Street level | | A81 | Statistical source Detected | | A83 | Statistical source Interpolated | | A84 | Statistical source Low Quality | | A85 | Statistical source POI | | A86 | Statistical source Crossroad | | A89 | Statistical source Street level | | A91 | Source 9 Detected | | A93 | Source 9 Interpolated | | A94 | Source 9 Low Quality | | A95 | Source 9 POI | | A96 | Source 9 Crossroad | | A99 | Source 9 Street level | | M10 | Census centroid | | M20 | Urban zone centroid | | M30 | Specific postcode centroid | | M40 | Specific postcode at street/house-number level | | B10 | Sub-locality postcode | | B20 | City centroid | | B30 | Generic postcode centroid | ### Precision and Approximation Levels Describes the spatial precision level and interpolation method of the calculated coordinates. | Code | Side of Street | Approximation | Precision | | --- | --- | --- | --- | | 101 | Single | House number, room level | Punctual, room level | | 102 | Single | House number, floor level | Punctual, floor level | | 103 | Single | House number, stair level | Punctual, stair level | | 104 | Single | House number, building/sub-building | Punctual, building/sub-building | | 105 | Single | House number, complex/building | Punctual | | 111 | Single | House number | Punctual, house-number level | | 113 | Single | House number and 3 exponents | House-number approximation, exponent | | 114 | Single | House number and 5 exponents | House-number approximation, exponent | | 115 | Single | House number and 50 exponents | House-number approximation, exponent | | 116 | Single | House number and over 50 exponents | House-number approximation, exponent | | 117 | Single | House number and no exponents | House-number approximation | | 121 | Same side | 3 house numbers | House-number approximation | | 131 | Same side | 5 house numbers | House-number approximation | | 141 | Same side | 50 house numbers | House-number approximation | | 151 | Same side | Over 50 house numbers | House-number approximation | | 221 | Other side | 3 house numbers | House-number approximation | | 231 | Other side | 5 house numbers | House-number approximation | | 241 | Other side | 50 house numbers | House-number approximation | | 251 | Other side | Over 50 house numbers | House-number approximation | | 261 | Single | Street level, no input house number | Street approximation | | 262 | Single | Street level, input house number out of range | Street approximation | | 263 | Single | Street level, SNC | Street approximation | --- ## Person Quality Indicators Reference codes returned for person, name, and legal entity validation in Egon Validation services. ### Quality Codes Detailed indicators describing name and surname recognition, academic titles, legal forms, and gender alignment. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 601 | Freename with individual | | 1 (Changed) | 602 | Composite academic title not recognized | | 1 (Changed) | 603 | Gender conflicting with name | | 1 (Changed) | 604 | Gender not attributed | | 1 (Changed) | 605 | Wrong input gender | | 1 (Changed) | 606 | Academic title already present | | 1 (Changed) | 607 | Different academic title | | 1 (Changed) | 608 | Wrong academic title | | 1 (Changed) | 609 | Legal form already present | | 1 (Changed) | 610 | Different legal form | | 1 (Changed) | 611 | Wrong legal form | | 1 (Changed) | 612 | Wrong first detail of name | | 1 (Changed) | 613 | Wrong second detail of name | | 1 (Changed) | 614 | Second name not present | | 1 (Changed) | 615 | Second surname not present | | 1 (Changed) | 616 | Forced name | | 1 (Changed) | 617 | CO found | | 1 (Changed) | 618 | Relation not found for name | | 1 (Changed) | 619 | Relation not found for surname | | 1 (Changed) | 620 | Only names found | | 1 (Changed) | 621 | Forced family | | 1 (Changed) | 622 | Too many individuals for sole proprietorship | | 1 (Changed) | 640 | Double freename | | 2/3 (Not valid) | 101 | Name/company name not present | | 2/3 (Not valid) | 102 | Invalid data | | 2/3 (Not valid) | 103 | Invalid data | | 2/3 (Not valid) | 104 | Invalid data | | 2/3 (Not valid) | 105 | Incongruent data | | 2/3 (Not valid) | 106 | Too many input fields | | 2/3 (Not valid) | 107 | Too many numbers | | 2/3 (Not valid) | 108 | Too many details for the name | | 2/3 (Not valid) | 109 | Too many legal forms | | 2/3 (Not valid) | 110 | Too many academic titles | | 2/3 (Not valid) | 111 | Name/company name not recognized | | 2/3 (Not valid) | 112 | Name/company name not recognized | | 2/3 (Not valid) | 113 | Wrong input name | | 2/3 (Not valid) | 114 | Name not present | | 2/3 (Not valid) | 115 | Wrong input surname | | 2/3 (Not valid) | 116 | Surname not present | | 2/3 (Not valid) | 117 | Wrong input middle name | | 2/3 (Not valid) | 118 | Name/company name not recognized | | 2/3 (Not valid) | 119 | Input name not present | | 2/3 (Not valid) | 120 | Input surname not present | | 2/3 (Not valid) | 121 | Too many CO | | 2/3 (Not valid) | 122 | CO wrong format | --- ## Phone Quality Indicators Reference codes returned in `quality.phones` by the Egon Phone validation service. ### Quality Codes Detailed quality indicators describing telephone number formatting, country dial-in additions, area codes, and prefix consistency. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 970 | Format corrected | | 1 (Changed) | 971 | Italian dial-in code added | | 1 (Changed) | 972 | Extra information separated from phone number | | 1 (Changed) | 973 | National dial-in code added | | 1 (Changed) | 974 | Contradictory phone type and prefix | | 1 (Changed) | 975 | Old prefix found | | 1 (Changed) | 976 | International phone found | | 1 (Changed) | 977 | Isolated digits removed | | 1 (Changed) | 978 | Phone number composed by 4 digits | | 1 (Changed) | 979 | Same digit repetition with valid prefix | | 1 (Changed) | 980 | Different phone numbers found | | 1 (Changed) | 981 | Phone type information | | 1 (Changed) | 982 | Missing prefix with ambiguous locality | | 1 (Changed) | 983 | Too many phone numbers | | 1 (Changed) | 984 | International dial-in code added | | 1 (Changed) | 985 | Phone number starting with zero | | 2/3 (Not valid) | 442 | Missing prefix | | 2/3 (Not valid) | 470 | Wrong phone number | | 2/3 (Not valid) | 471 | Phone number not present | | 2/3 (Not valid) | 472 | Phone number 0 | | 2/3 (Not valid) | 473 | Too many numbers | | 2/3 (Not valid) | 474 | Same digit repetition | | 2/3 (Not valid) | 475 | Prefix not found for Country | | 2/3 (Not valid) | 476 | Prefix not congruent with Locality | --- ## Tax Code Quality Indicators Reference codes returned for tax-code calculation, extraction, checking, and matching in Egon Tax Code services. ### Quality Codes Detailed quality indicators describing checksum calculations, birth coherence, omocody substitution, and national identifier consistency. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 901 | Date of birth not present | | 1 (Changed) | 902 | Gender not present | | 1 (Changed) | 903 | Different tax code due to omocodia (digits replaced by letters) | | 1 (Changed) | 904 | Ambiguous characters | | 1 (Changed) | 905 | Uppercase characters | | 1 (Changed) | 906 | Double name | | 1 (Changed) | 907 | Double surname | | 1 (Changed) | 908 | Inverted name and surname | | 1 (Changed) | 909 | Inverted VAT number and tax code | | 1 (Changed) | 998 | Logic error | | 1 (Changed) | 999 | Not processed | | 2/3 (Not valid) | 401 | Code not present | | 2/3 (Not valid) | 402 | Wrong format | | 2/3 (Not valid) | 403 | Wrong code | | 2/3 (Not valid) | 404 | Not numerical | | 2/3 (Not valid) | 405 | Code too long | | 2/3 (Not valid) | 406 | Wrong date of birth | | 2/3 (Not valid) | 407 | Incongruent date of birth | | 2/3 (Not valid) | 408 | Incongruent gender | | 2/3 (Not valid) | 409 | Wrong tax office code | | 2/3 (Not valid) | 410 | Incongruent tax office code | | 2/3 (Not valid) | 411 | Incongruent National Identifier | | 2/3 (Not valid) | 412 | Incongruent VAT number | | 2/3 (Not valid) | 413 | Surname not present | | 2/3 (Not valid) | 414 | Name not present | | 2/3 (Not valid) | 415 | Date of birth not present | | 2/3 (Not valid) | 416 | Gender not present | | 2/3 (Not valid) | 417 | Place of birth not present | | 2/3 (Not valid) | 418 | Wrong check-digit | | 2/3 (Not valid) | 419 | Wrong surname | | 2/3 (Not valid) | 420 | Wrong name | | 2/3 (Not valid) | 421 | Wrong place of birth | | 2/3 (Not valid) | 422 | Inconsistent surname | | 2/3 (Not valid) | 423 | Inconsistent name | | 2/3 (Not valid) | 424 | Wrong month of birth | | 2/3 (Not valid) | 425 | Wrong day of birth | | 2/3 (Not valid) | 426 | Wrong gender | | 2/3 (Not valid) | 427 | Place of birth not found | | 2/3 (Not valid) | 428 | Invalid data | | 2/3 (Not valid) | 429 | Year of birth not numerical | | 2/3 (Not valid) | 430 | Month of birth not numerical | | 2/3 (Not valid) | 431 | Day of birth not numerical | | 2/3 (Not valid) | 432 | Ambiguous place of birth | | 2/3 (Not valid) | 433 | Incongruent place of birth | | 2/3 (Not valid) | 434 | Double name | | 2/3 (Not valid) | 435 | Double surname | | 2/3 (Not valid) | 436 | Cadastral code not found | | 2/3 (Not valid) | 437 | Province code not found | | 2/3 (Not valid) | 438 | Wrong VAT number | | 2/3 (Not valid) | 439 | Not numerical VAT number | | 2/3 (Not valid) | 440 | VAT number not present | | 2/3 (Not valid) | 441 | Mandatory data not present | | 2/3 (Not valid) | 444 | Tax code not present | | 2/3 (Not valid) | 445 | Economy activity code not found | | 2/3 (Not valid) | 446 | Old economy activity code not found | | 2/3 (Not valid) | 447 | VAT number in the tax code field | | 2/3 (Not valid) | 448 | Tax code in the VAT number field | | 2/3 (Not valid) | 449 | Wrong tax office code | --- ## VAT Quality Indicators Reference codes returned for VAT number validation and corporate data extraction in Egon VAT services. ### Quality Codes Detailed quality indicators describing VAT numerical validity, check-digit calculations, country code matching, and economic activity validation. | Flag | Code | Description | | --- | --- | --- | | 0 (OK) | 0 | OK | | 1 (Changed) | 901 | Date of birth not present | | 1 (Changed) | 902 | Gender not present | | 1 (Changed) | 903 | Different tax code due to omocodia (digits replaced by letters) | | 1 (Changed) | 904 | Ambiguous characters | | 1 (Changed) | 905 | Uppercase characters | | 1 (Changed) | 906 | Double name | | 1 (Changed) | 907 | Double surname | | 1 (Changed) | 908 | Inverted name and surname | | 1 (Changed) | 909 | Inverted VAT number and tax code | | 1 (Changed) | 998 | Logic error | | 1 (Changed) | 999 | Not processed | | 2/3 (Not valid) | 401 | Code not present | | 2/3 (Not valid) | 402 | Wrong format | | 2/3 (Not valid) | 403 | Wrong code | | 2/3 (Not valid) | 404 | Not numerical | | 2/3 (Not valid) | 405 | Code too long | | 2/3 (Not valid) | 406 | Wrong date of birth | | 2/3 (Not valid) | 407 | Incongruent date of birth | | 2/3 (Not valid) | 408 | Incongruent gender | | 2/3 (Not valid) | 409 | Wrong tax office code | | 2/3 (Not valid) | 410 | Incongruent tax office code | | 2/3 (Not valid) | 411 | Incongruent National Identifier | | 2/3 (Not valid) | 412 | Incongruent VAT number | | 2/3 (Not valid) | 413 | Surname not present | | 2/3 (Not valid) | 414 | Name not present | | 2/3 (Not valid) | 415 | Date of birth not present | | 2/3 (Not valid) | 416 | Gender not present | | 2/3 (Not valid) | 417 | Place of birth not present | | 2/3 (Not valid) | 418 | Wrong check-digit | | 2/3 (Not valid) | 419 | Wrong surname | | 2/3 (Not valid) | 420 | Wrong name | | 2/3 (Not valid) | 421 | Wrong place of birth | | 2/3 (Not valid) | 422 | Inconsistent surname | | 2/3 (Not valid) | 423 | Inconsistent name | | 2/3 (Not valid) | 424 | Wrong month of birth | | 2/3 (Not valid) | 425 | Wrong day of birth | | 2/3 (Not valid) | 426 | Wrong gender | | 2/3 (Not valid) | 427 | Place of birth not found | | 2/3 (Not valid) | 428 | Invalid data | | 2/3 (Not valid) | 429 | Year of birth not numerical | | 2/3 (Not valid) | 430 | Month of birth not numerical | | 2/3 (Not valid) | 431 | Day of birth not numerical | | 2/3 (Not valid) | 432 | Ambiguous place of birth | | 2/3 (Not valid) | 433 | Incongruent place of birth | | 2/3 (Not valid) | 434 | Double name | | 2/3 (Not valid) | 435 | Double surname | | 2/3 (Not valid) | 436 | Cadastral code not found | | 2/3 (Not valid) | 437 | Province code not found | | 2/3 (Not valid) | 438 | Wrong VAT number | | 2/3 (Not valid) | 439 | Not numerical VAT number | | 2/3 (Not valid) | 440 | VAT number not present | | 2/3 (Not valid) | 441 | Mandatory data not present | | 2/3 (Not valid) | 444 | Tax code not present | | 2/3 (Not valid) | 445 | Economy activity code not found | | 2/3 (Not valid) | 446 | Old economy activity code not found | | 2/3 (Not valid) | 447 | VAT number in the tax code field | | 2/3 (Not valid) | 448 | Tax code in the VAT number field | | 2/3 (Not valid) | 449 | Wrong tax office code | --- ## Domains & Dictionaries Domain dictionaries define the standardized code values and types accepted and returned by Egon request and response fields. ### Domain Dictionaries - [Adm Code Domain](https://docs.egon.com/docs/domains/adm-code.md): Official administrative code types returned for normalized addresses, including Belfiore, Istat, CAB, Iris, and ISO 3166. (12 values) - [Code Domain](https://docs.egon.com/docs/domains/code.md): Allowed values for identifier fields such as tax code, VAT code, web address, and Ateco economic activity code. (4 values) - [Email Domain](https://docs.egon.com/docs/domains/email.md): Classification values for email address types, differentiating standard email and Italian certified PEC. (2 values) - [Name & Person Domain](https://docs.egon.com/docs/domains/name.md): Subject classification types (natural person, sole proprietorship, legal entity) and gender values. (9 values) - [Phone Domain](https://docs.egon.com/docs/domains/phone.md): Telecommunication line types returned in enrichment responses (landline, mobile, fax). (3 values) ### Also in Reference Complementary reference guide and data dictionary: - [Quality Indicators](https://docs.egon.com/docs/quality-indicators.md): Detailed validation flags (0, 1, 2/3) and outcome codes for addresses, geocoding, tax codes, and VAT. --- ## Adm Code Domain Allowed values and meanings for the administrative-code `type` field returned in normalized address payloads. ### Adm Code Types Official administrative authority coding systems supported by Egon. | Field | Data Type | Code | Description | | --- | --- | --- | --- | | type | String | 30000 | Belfiore code | | type | String | 30021 | Istat province + municipality code | | type | String | 30022 | Istat region code | | type | String | 30030 | Locality CAB code | | type | String | 30036 | Iris code | | type | String | 30036-Description | Iris code type # Iris code description | | type | String | 30050 | Bank of Italy code | | type | String | 30060 | UIC code | | type | String | 30061 | Istat state code | | type | String | 30070 | ISO 3166-1 alpha-3 | | type | String | 30071 | ISO 3166-1 alpha-2 | | type | String | 30072 | ISO 3166-1 numeric | --- ## Code Domain Allowed values for code-type fields such as `cod_type` and `type` across Egon validation requests and responses. ### Code Types Classification codes for national identifiers, business registries, and digital addresses. | Field | Data Type | Code | Description | | --- | --- | --- | --- | | type | String | 01110 | Tax code | | type | String | 01111 | VAT code | | type | String | 01116 | Web address | | type | String | 01600 | Ateco Code | --- ## Email Domain Allowed values for the email-address `type` field returned in validation and enrichment responses. ### Email Types Classification codes distinguishing regular email inboxes and certified electronic mail (PEC). | Field | Data Type | Code | Description | | --- | --- | --- | --- | | type | String | 01115 | Email | | type | String | 01601 | Pec | --- ## Name & Person Domain Allowed values for `type_ana` and `gender` fields in name-related validation requests and responses. ### Person Type Allowed values for `type_ana` designating the legal nature of the subject. | Field | Data Type | Code | Description | | --- | --- | --- | --- | | type_ana | String | 1 | Natural person | | type_ana | String | 2 | Sole proprietorship | | type_ana | String | 3 | Legal entity | | type_ana | String | 4 | Co-holder | | type_ana | String | 5 | Family | | type_ana | String | 6 | Unspecified | ### Gender Allowed values for the `gender` field. | Field | Data Type | Code | Description | | --- | --- | --- | --- | | gender | String | 0 | Unspecified | | gender | String | 1 | Male | | gender | String | 2 | Female | --- ## Phone Domain Allowed values for the phone-number `type` field returned in phone validation and enrichment results. ### Phone Types Classification codes distinguishing landlines, mobile numbers, and fax lines. | Field | Data Type | Code | Description | | --- | --- | --- | --- | | type | String | 00001 | Landline | | type | String | 00002 | Mobile | | type | String | 00003 | Fax | --- ## Batch Processing Process a whole file of addresses at once from your [Egon account](https://account.egon.com): upload a CSV or Excel file, map its columns and download the result. ### Choose a batch - **[Egon Batch Processing](https://docs.egon.com/docs/batch/egon.md)**: Addresses validated and normalized by Egon, optionally with coordinates and geocoding level. Services: Address Validation, Address Validation and Geocoding. - **[Google Batch Processing](https://docs.egon.com/docs/batch/google.md)**: Addresses geocoded with Google Maps, optionally with a `CHECK_EGON` code that compares each result with Egon. Services: Standard, with Egon Check. Each batch has its own overview, with the steps of the wizard, and its own page of input and output fields. --- ## Egon Batch Processing Validate a whole file of addresses at once: upload a CSV or Excel file, map its columns and get it back with validated, normalized addresses. ### How it works Egon Batch is a guided wizard in your [Egon account](https://account.egon.com). You do not need to write code or prepare descriptor files: click `New Egon Batch` in the `Egon Batch List` page and the wizard walks you through four steps. | Step | What you do | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **1. Service** | Select the service and the country of your addresses, or check `Worldwide` for multi-country files. | | **2. Upload** | Choose the file type (CSV or Excel), the delimiter for CSV files and the encoding, tell whether the first row holds the column names, then upload the file. | | **3. Fields** | Map each column of your file to an Egon input field, or reuse a saved mapping with `Select existing mapping`. See the [minimum mapping](https://docs.egon.com/docs/batch/egon/fields.md#minimum-mapping). | | **4. Confirm** | Add an optional job description, check `Save input mapping` to reuse the mapping later, review the cost in credits, the expected execution time, the job settings and the mapping preview, then click `Run`. | > **Comma is not a valid delimiter** > > The wizard does not accept a comma (`,`) as the CSV delimiter. Save your file > with another delimiter, such as `|` or `;`, before you upload it. #### Services | Service | What you get | | ------------------------------------ | ------------------------------------------------------------------------------- | | **Address Validation** | Validated and normalized addresses, with the validation result of each record. | | **Address Validation and Geocoding** | Everything in Address Validation, plus the coordinates and the geocoding level. | > **Check the cost before you run** > > Each job uses credits from your account. The `Confirm` step shows the cost and > the expected execution time before you click `Run`. ### Output options In the first step you can also choose how the addresses are written in the output file. | Option | Values | Default | | ------------------- | -------------------------------------------------------------------------- | -------------------------- | | **Output Language** | `NAT` native language, `TRA` transliterated, `INT` international (English) | Same language as the input | | **Output Format** | `C` capitalized case, `M` upper case, `T` upper case without accents | `C` capitalized case | ### Get the results After you click `Run`, the job shows up in the `Egon Batch List` with its country, service, description, creation date and status. When the job is completed, you receive an email with a `View jobs list` button that opens the list. When the status is `Completed`: - Click `Detail` on the job to open its page, with the statistics by validation result, the total records processed, the credits cost and the job timeline. - Click `Download output file`. The format follows your input file: - CSV: `batch-job-.output.zip`, containing `.output.txt`, a text file that uses the same delimiter as your input file. - Excel: `batch-job-.output.xlsx`, not zipped. See [Input & Output Fields](https://docs.egon.com/docs/batch/egon/fields.md) for the columns of the output file. --- ## Egon Input & Output Fields The fields you can map in the `Fields` step and the columns of the output file for the Address Validation and Address Validation and Geocoding services. ### Input fields Map each column of your file to one of these fields. Columns you leave as `Not Mapped` are not used for validation. #### Minimum mapping Map at least one of these combinations, otherwise the wizard stops with an `Incomplete fields mapping` error: - `Single line` - `Locality` + `Address 1` - `Locality` + `Street Name` If you check `Worldwide` in the `Service` step, the last two combinations also need `Country` (or `Country Code`). Otherwise the country you selected applies to every record. | Field | Description | Note | | --- | --- | --- | | Country Code | Country code (ISO 3166-1 alpha-3 or alpha-2) | Alternative to Country. Required with Worldwide, unless Single line is mapped; otherwise the country selected in the Service step is used | | Country | Country name | Alternative to Country Code. Required with Worldwide, unless Single line is mapped; otherwise the country selected in the Service step is used | | Adm Level 1 (State or Region) | Administrative area level 1 (state or region) | Optional | | Adm Level 2 (Province or Department or County) | Administrative area level 2 (province, department or county) | Optional | | Locality (City or Town) | City or town | Required with Address 1 or Street Name, unless Single line is mapped | | Sublocality 1 (City District or Village) | City district or village | Optional | | Sublocality 2 (City District or Village) | City district or village | Optional | | Address 1 | Address | Alternative to Street Name + House Number + House Number Extension | | Address 2 | Secondary address | Optional | | Street Name | Street name | Required with Locality, unless Single line or Address 1 is mapped | | House Number | House number, including exponents | With Street Name, alternative to Address 1 | | House Number Extension | House number extension (additional information) | With Street Name and House Number, alternative to Address 1 | | Zip Code | Postal code | Optional | | Egon Code | Unique, permanent code that identifies a physical location: a locality or an address | Alternative to any descriptive address | | Single line | Complete address on a single line | Alternative to Address 1 or Street Name + House Number + House Number Extension | | P.O. Box | PO box | Optional | ### Output fields The output file keeps all the columns of your input file, in the same order, and adds these columns after them with the validation result of each record. Every column is always present, whatever the service. When a value is not available the cell is empty, except for the Egon codes, which contain `0`. Only Address Validation and Geocoding fills `Geo_level` and `long_lat`: with Address Validation they are always empty. `Geo_level` joins two codes of the Geocoding quality indicators with a hyphen: in `A41-111`, `A41` is the [provider source code](https://docs.egon.com/docs/quality-indicators/geocoding.md#provider-source-codes) and `111` the [precision and approximation level](https://docs.egon.com/docs/quality-indicators/geocoding.md#precision-and-approximation-levels). | Column | Description | Service | Note | | --- | --- | --- | --- | | FLAG_RESULT | Address validation result | All services | 0 = validated at all levels; 1 = validated at street level; 2 = validated at city level; 3 = not validated | | Single_Line | Complete address on a single line | All services | Includes all territorial levels and the country name | | Country | Country name | All services | | | State | State | All services | Not available in every country | | Region | Region | All services | Not available in every country | | Province | Province | All services | Not available in every country | | City | City | All services | | | District_1 | Sub-locality (district) level 1 | All services | Not available in every country | | District_2 | Sub-locality (district) level 2 | All services | Not available in every country | | District_3 | Sub-locality (district) level 3 | All services | Not available in every country | | Postal_Town | Postal town | All services | Not available in every country | | Zip_code | Postal code | All services | | | Addr1 | Complete address | All services | Includes the house number and any additional address information | | Addr2 | Secondary address | All services | UK only | | Street_name | Street name | All services | | | House_number | House number and exponent | All services | | | House_number_ext | House number additional information | All services | | | Building | Building name | All services | UK only | | Subbuilding | Sub-building name | All services | UK only | | Organization | Organization name | All services | UK only | | Org_department | Organization department | All services | UK only | | Near_by | Nearby reference | All services | | | Care_of | Care of | All services | | | Po_box | PO box | All services | | | Out_lng | Output language | All services | Language code (ISO 3166-1 numeric for the native language) or transliteration code | | Egon_key_code | Egon key code | All services | 0 when not available | | Egon_str_code | Egon street code | All services | 0 when not available | | Egon_city_code | Egon city code | All services | 0 when not available | | Egon_sbl_code | Egon sub-locality code | All services | 0 when not available | | Code_Type | Code type | All services | Statistical or administrative code type | | Code_Value | Code value | All services | Statistical or administrative code value | | Geo_level | Geocoding source and level | Address Validation and Geocoding | Source code and level code joined by a hyphen, for example A41-111. Empty when not available and with Address Validation | | long_lat | Latitude and longitude | Address Validation and Geocoding | Degrees in WGS84, latitude first, separated by a spaced comma, for example 45.46792182 , 09.19569260. Empty when not available and with Address Validation | --- ## Google Batch Processing Geocode a whole file of addresses with Google Maps: upload a CSV or Excel file, map its columns and get it back with the Google address components and coordinates. ### How it works Google Batch is a guided wizard in your [Egon account](https://account.egon.com). Click `New Google Batch` in the `Google Batch List` page and the wizard walks you through four steps. | Step | What you do | | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **1. Service** | Select the service and the country of your addresses, or check `Worldwide` for multi-country files, then the output language. | | **2. Upload** | Choose the file type (CSV or Excel), the delimiter for CSV files and the encoding, tell whether the first row holds the column names, then upload the file. | | **3. Fields** | Map each column of your file to an input field, or reuse a saved mapping with `Select existing mapping`. You can still change the service, the country and the output language. See the [minimum mapping](https://docs.egon.com/docs/batch/google/fields.md#minimum-mapping). | | **4. Confirm** | Add an optional job description, check `Save input mapping` to reuse the mapping later, review the cost in credits, the expected execution time, the job settings and the input mapping, then click `Run`. | #### Services | Service | What you get | | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | **Standard** | Up to five Google Maps candidates for each address, with address components, formatted address, coordinates and bounds. | | **with Egon Check** | Everything in Standard, plus a [`CHECK_EGON`](https://docs.egon.com/docs/batch/google/check-egon.md) column that tells how the Google result matches Egon. | > **Check the cost before you run** > > Each job uses credits from your account. The `Confirm` step shows the cost and > the expected execution time before you click `Run`. ### Output options In the first step you can also choose the language of the output file. | Option | Values | Default | | ------------------- | --------------------------------------------------- | --------- | | **Output Language** | `Default`, `Native`, `English`, `French`, `Spanish` | `Default` | ### Get the results After you click `Run`, the job shows up in the `Google Batch List` with its country, service, description, creation date and status. When the job is completed, you receive an email with a `View jobs list` button that opens the list. When the status is `Completed`: - Click `Detail` on the job to open its page, with the job settings and timeline. - Click `Download output file`. The format follows your input file: - CSV: `batch-job-.output.zip`, containing `.output.txt`, a text file that uses the same delimiter as your input file. - Excel: `batch-job-.output.xlsx`, not zipped. See [Input & Output Fields](https://docs.egon.com/docs/batch/google/fields.md) for every column and [CHECK_EGON Reference](https://docs.egon.com/docs/batch/google/check-egon.md) for the meaning of each code. --- ## Google Input & Output Fields The fields you can map in the `Fields` step and the columns of the output file for Google Batch Processing. ### Input fields Map each column of your file to one of these fields. Columns you leave as `Not Mapped` are not used. #### Minimum mapping Map at least one of these combinations, otherwise the wizard stops with an `Incomplete fields mapping` error: - `Single line` - `Locality` + `Address 1` - `Locality` + `Street Name` If you check `Worldwide` in the `Service` step, the last two combinations also need `Country`. Otherwise the country you selected applies to every record. | Field | Note | | --- | --- | | Record ID | | | Single line | | | Country | Mandatory if "Worldwide" is selected | | Administrative Area Level 1 | | | Administrative Area Level 2 | | | Locality | Mandatory if "Single line" is not selected | | Address 1 | Mandatory if "Single line" is not selected | | Address 2 | | | Postal Code | | | Street Name | As an alternative to "Address 1" | | Sublocality | | | House Number | With "Street Name" as an alternative to "Address 1" | | P.O. Box | | ### Output fields The output file keeps all the columns of your input file, in the same order, and adds these columns after them: 1. `CHECK_EGON`, only with the `with Egon Check` service: how the Google result matches Egon. See [CHECK_EGON Reference](https://docs.egon.com/docs/batch/google/check-egon.md). 2. Five blocks of Google columns, one for each candidate returned by Google Maps. Each block has the same columns, from `country` to `intersection`, in the order below. The five blocks are always present. When Google finds the address with a single candidate, only the first block is filled and the other four are empty. Every column is always present: when a value is not available the cell is empty. | Column | Description | Note | | --- | --- | --- | | CHECK_EGON | How the Google result matches Egon | Only with Egon Check. Only once, before the five candidate blocks | | country | Country name | | | country_short | Short form of country | ISO 3166-1 alpha-2 code, for example IT | | administrative_area_level_1 | First-level administrative area (state or region) | | | administrative_area_level_1_short | Short form of administrative_area_level_1 | | | administrative_area_level_2 | Second-level administrative area (province or county) | | | administrative_area_level_2_short | Short form of administrative_area_level_2 | | | administrative_area_level_3 | Third-level administrative area | | | administrative_area_level_3_short | Short form of administrative_area_level_3 | | | administrative_area_level_4 | Fourth-level administrative area | | | administrative_area_level_4_short | Short form of administrative_area_level_4 | | | administrative_area_level_5 | Fifth-level administrative area | | | administrative_area_level_5_short | Short form of administrative_area_level_5 | | | locality | City or town | | | locality_short | Short form of locality | | | sublocality_level_1 | First-level area within the locality | | | sublocality_level_1_short | Short form of sublocality_level_1 | | | sublocality_level_2 | Second-level area within the locality | | | sublocality_level_2_short | Short form of sublocality_level_2 | | | sublocality_level_3 | Third-level area within the locality | | | sublocality_level_3_short | Short form of sublocality_level_3 | | | sublocality_level_4 | Fourth-level area within the locality | | | sublocality_level_4_short | Short form of sublocality_level_4 | | | sublocality_level_5 | Fifth-level area within the locality | | | sublocality_level_5_short | Short form of sublocality_level_5 | | | postal_code | Postal code | | | route | Street name | | | route_short | Short form of route | | | street_number | House number | | | formatted_address | Full address formatted by Google | | | location_type | Precision of the coordinates | ROOFTOP, RANGE_INTERPOLATED, GEOMETRIC_CENTER or APPROXIMATE | | location_lat | Latitude | | | location_lng | Longitude | | | bounds_ne_lat | Latitude of the north-east corner of the result area | | | bounds_ne_lng | Longitude of the north-east corner of the result area | | | bounds_sw_lat | Latitude of the south-west corner of the result area | | | bounds_sw_lng | Longitude of the south-west corner of the result area | | | result_types | Types of the result | JSON array of Google result types, for example ["country","political"] | | neighborhood | Neighborhood | | | postal_code_prefix | First part of the postal code | | | postal_code_suffix | Last part of the postal code | | | postal_town | Postal town, used in mailing addresses in some countries | | | premise | Named building or group of buildings | | | subpremise | Unit within a named building, such as a single building in a complex | | | intersection | Intersection of two major roads | | --- ## CHECK_EGON Reference The values of the `CHECK_EGON` column, which tells how the Google result of each record matches Egon. | Code | Description | | --- | --- | | 1 | Match with house number | | 2 | Match with street | | 3 | Match with locality - undefined street | | 4 | Match with locality - street not found in EGON | | 5 | No match | | 6 | Not found on Google | --- ## Integrations Use Egon inside the tools you already work with. No code to write: connect your Egon account and start validating. ### Available integrations - **[Excel](https://docs.egon.com/docs/integrations/excel.md)**: Validate and geocode the addresses in your worksheet, with the results written next to your data. Services: Address Validation, Address Validation and Geocoding. --- ## Egon for Excel Validate and geocode the addresses in your worksheet. The results land next to your data, row by row. The add-in opens next to the worksheet. You connect with your token, select the addresses, choose the service and country, match the columns and review the cost. Egon then writes the results row by row, in the columns to the right of your data. ### What you need - Excel on Windows, on Mac or on the web, with Microsoft 365 or Excel 2021 or later. - An [Egon account](https://account.egon.com) with credits and an API token, from `App & Services`. - An internet connection while the add-in runs. > **Your token stays on your device** > > Your token is stored locally on your device and remains saved even when you > close Excel, so you do not need to enter it again. To log out or switch > tokens, click `Disconnect`. The add-in sends only the addresses you select, > directly from Excel to the Egon API. ### Services | Service | What you get | | ------------------------------------ | ---------------------------------------------------- | | **Address Validation** | Corrected, normalized addresses with a quality flag. | | **Address Validation and Geocoding** | The same, plus coordinates and the geocoding level. | --- ## Install Egon for Excel Egon is in the **Add-ins store, right inside Excel**: search for it and add it in a few clicks, on the web, Mac and Windows. To install it for a whole company or without the store, see [other ways to install](#other-ways-to-install). In Excel, click `Add-ins` on the `Home` tab and search for `Egon`. Open the result and click `Add`. The `Validate addresses` button appears on the `Home` tab and opens the Egon panel next to your worksheet. 1. In Excel, go to `Home` > `Add-ins`. 2. Search for `Egon`. 3. Open `Egon for Excel - Address Validation` and click `Add`. To remove it, go to `Home` > `Add-ins`, choose `Manage` next to `My add-ins` and remove `Egon`. ### Other ways to install For a whole organization, or when the Add-ins store is not available. #### Organization **For companies.** One setup by a Microsoft 365 administrator, and the add-in appears for every assigned user on Windows, Mac and the web. Manifest file: `https://excel.egon.com/manifest.xml` 1. Open the [Microsoft 365 admin center](https://admin.microsoft.com). 2. Go to `Settings` > `Integrated apps` > `Upload custom apps`. 3. Choose `Office Add-in`, then `Provide link to manifest file`, and paste the manifest URL. 4. Assign the add-in to everyone or to specific users and groups, then deploy. The add-in can take a while to appear for your users. ##### Uninstall In the Microsoft 365 admin center, open `Settings` > `Integrated apps`, select `Egon` and remove it. #### Excel on the web The add-in is available in your browser, for your account only. Manifest file: `https://excel.egon.com/manifest.xml` 1. Open the manifest URL and save the file as `manifest.xml` on your computer. 2. In Excel on the web, go to `Home` > `Add-ins` > `More Add-ins`. 3. Open `My Add-ins`, then choose `Upload My Add-in`. 4. Select `manifest.xml` and click `Upload`. ##### Uninstall Go to `Home` > `Add-ins` > `More Add-ins` > `My Add-ins`, open the menu of `Egon` and choose `Remove`. #### Mac The add-in is available in Excel on this Mac. Manifest file: `https://excel.egon.com/manifest.xml` 1. Quit Excel. 2. Open `Terminal` and run: ```bash WEF=~/Library/Containers/com.Microsoft.Excel/Data/Documents/wef mkdir -p "$WEF" curl -fsSL -o "$WEF/manifest.xml" https://excel.egon.com/manifest.xml ``` 3. Open Excel and go to `Home` > `Add-ins`. `Egon` is in the list. ##### Uninstall Quit Excel and run in `Terminal`: ```bash rm ~/Library/Containers/com.Microsoft.Excel/Data/Documents/wef/manifest.xml ``` #### Windows The add-in is available in Excel on this PC. Manifest file: `https://excel.egon.com/manifest.xml` 1. Close Excel. 2. Open `PowerShell` and run: ```powershell $folder = "$env:USERPROFILE\Documents\Egon" New-Item -ItemType Directory -Force -Path $folder | Out-Null Invoke-WebRequest -Uri "https://excel.egon.com/manifest.xml" -OutFile "$folder\manifest.xml" reg add "HKCU\Software\Microsoft\Office\16.0\WEF\Developer" /v 50183efb-401d-4359-91d9-2f592f3e4bc4 /t REG_SZ /d "$folder\manifest.xml" /f ``` 3. Open Excel and go to `Home` > `Add-ins`. `Egon` is under `Developer Add-ins`. > **Keep the file where it is** > > Do not move or rename `manifest.xml`. Excel reads it from that folder every > time it starts. ##### Uninstall Close Excel and run in `PowerShell`: ```powershell reg delete "HKCU\Software\Microsoft\Office\16.0\WEF\Developer" /v 50183efb-401d-4359-91d9-2f592f3e4bc4 /f Remove-Item -Force "$env:USERPROFILE\Documents\Egon\manifest.xml" ``` ### Open the add-in Click `Validate addresses` on the `Home` tab. The Egon panel opens next to your worksheet. Continue with [Validate addresses](https://docs.egon.com/docs/integrations/excel/validate-addresses.md). ### Updates The add-in updates itself the next time you open the panel. You never need to install it again. --- ## Validate Addresses in Excel From the first connection to the results, in seven short steps. ### 1. Connect The connection screen has one field, `API token`. Paste the token and click `Connect and start`. Paste your API token, from `App & Services` in your [Egon account](https://account.egon.com), and click `Connect and start`. Your token is stored locally on your device and remains saved even after closing Excel, so you only do this once. To log out or change your token, click `Disconnect`. ### 2. Select Select the range in the worksheet, including the header row. The panel shows the range and the `Use this selection` button. Select your addresses, **header row included**, then click `Use this selection`. Each run handles up to 1000 rows: rows beyond the limit are not processed. ### 3. Options Choose `Address Validation` or `Address Validation and Geocoding`. Then open the country list and pick one country, or `Worldwide` to read the country of each row from a country code column. Choose the service, then open the country list: search for one country, or pick `Worldwide`. With a single country selected, `Use Worldwide instead` switches in one click. - **One country**: every row uses it, even if the sheet has a country code column. - **`Worldwide`**: each row needs a `Country Code` column with a 2 or 3 letter ISO code. A row with a missing or invalid code fails. ### 4. Map Each worksheet column is listed with the Egon field it was matched to. Columns are recognised from their headers, and each one has a list of Egon fields to change the match. Egon recognises your columns from their headers, in English and Italian. Open the list next to a column to change its match, and leave the rest as `Not used`. Map at least one of these: - `Single line` - `Egon Code` - `Locality` with `Address 1` or `Street Name` (use one of the two, not both) ### 5. Review The review screen sums up your choices, estimates the credits the run will use and shows where the results will be written, with the `Validate` button. The run uses credits from your account: this step estimates them before anything starts, and shows where the results will go. Empty rows are skipped. > **Results use the columns to the right** > > If those columns already hold data, the add-in asks you to confirm with > `Replace` before it overwrites them. ### 6. Run While the run is in progress, each result is written to the worksheet as soon as it is ready, and the panel shows the progress and a `Cancel` button. Each result is written as soon as it is ready. Keep the panel open until the run ends. `Cancel` stops the run and keeps every row already written. ### 7. Results The final screen counts validated, not found, failed and skipped rows. `Show results` selects the result columns in the worksheet. The summary counts the rows in four groups. `Show results` selects the result columns, and `New run` starts again. | Group | Meaning | | ------------- | ------------------------------------------------------------------------------ | | **Validated** | Egon recognised the address. The results are in the sheet. | | **Not found** | The address could not be validated. The row is written with `FLAG_RESULT` `3`. | | **Failed** | The row could not be processed. The summary shows why. | | **Skipped** | The row had no address data. | Next: [what each result column means](https://docs.egon.com/docs/integrations/excel/results-and-credits.md). --- ## Results & Credits in Excel What the add-in writes in your worksheet, and when it uses your credits. ### Result columns The add-in writes these columns immediately to the right of your selection, starting with a header row. They are formatted as text, so a postal code like `00198` keeps its leading zero. Every column is always present, whatever the service. When a value is not available the cell is empty, except for the Egon codes, which contain `0`. Only Address Validation and Geocoding fills `Geo_level` and `long_lat`: with Address Validation they are always empty. `Geo_level` joins two codes of the Geocoding quality indicators with a hyphen: in `A41-111`, `A41` is the [provider source code](https://docs.egon.com/docs/quality-indicators/geocoding.md#provider-source-codes) and `111` the [precision and approximation level](https://docs.egon.com/docs/quality-indicators/geocoding.md#precision-and-approximation-levels). | Column | Description | Service | Note | | --- | --- | --- | --- | | FLAG_RESULT | Address validation result | All services | 0 = validated at all levels; 1 = validated at street level; 2 = validated at city level; 3 = not validated | | Single_Line | Complete address on a single line | All services | Includes all territorial levels and the country name | | Country | Country name | All services | | | State | State | All services | Not available in every country | | Region | Region | All services | Not available in every country | | Province | Province | All services | Not available in every country | | City | City | All services | | | District_1 | Sub-locality (district) level 1 | All services | Not available in every country | | District_2 | Sub-locality (district) level 2 | All services | Not available in every country | | District_3 | Sub-locality (district) level 3 | All services | Not available in every country | | Postal_Town | Postal town | All services | Not available in every country | | Zip_code | Postal code | All services | | | Addr1 | Complete address | All services | Includes the house number and any additional address information | | Addr2 | Secondary address | All services | UK only | | Street_name | Street name | All services | | | House_number | House number and exponent | All services | | | House_number_ext | House number additional information | All services | | | Building | Building name | All services | UK only | | Subbuilding | Sub-building name | All services | UK only | | Organization | Organization name | All services | UK only | | Org_department | Organization department | All services | UK only | | Near_by | Nearby reference | All services | | | Care_of | Care of | All services | | | Po_box | PO box | All services | | | Out_lng | Output language | All services | Language code (ISO 3166-1 numeric for the native language) or transliteration code | | Egon_str_code | Egon street code | All services | 0 when not available | | Egon_city_code | Egon city code | All services | 0 when not available | | Egon_sbl_code | Egon sub-locality code | All services | 0 when not available | | Code_Type | Code type | All services | Statistical or administrative code type | | Code_Value | Code value | All services | Statistical or administrative code value | | Geo_level | Geocoding source and level | Address Validation and Geocoding | Source code and level code joined by a hyphen, for example A41-111. Empty when not available and with Address Validation | | long_lat | Latitude and longitude | Address Validation and Geocoding | Degrees in WGS84, latitude first, separated by a spaced comma, for example 45.46792182 , 09.19569260. Empty when not available and with Address Validation | ### Credits Each run uses credits from your account. The add-in estimates them in the `Review` step, before anything starts. ### Row limit Each run handles up to 1000 rows. Rows beyond the limit are not processed. ### When a run stops These problems stop the run at the row where they occur. Rows already written stay in the sheet. - The token is rejected: the add-in asks you to connect again. - The token cannot be used from Excel. - No credits are left, or the token reached its daily limit. - Too many requests, after three attempts. - The country you selected is not enabled for your token. Any other problem marks only that row as `Failed`, and the run continues. If you run into any of these issues, see [Troubleshooting](https://docs.egon.com/docs/integrations/excel/troubleshooting.md). --- ## Troubleshooting Egon for Excel The most common problems, and how to solve them. ### Installation | Problem | What to do | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | The `Validate addresses` button is missing | Close and reopen Excel. If your administrator installed it, it can take a while to appear. Otherwise, follow the [installation guide](https://docs.egon.com/docs/integrations/excel/install.md). | | The panel is blank | Update Excel. Older versions that are not kept up to date are not supported. | | Excel keeps loading after a Windows install | `manifest.xml` was moved or renamed. Repeat the [Windows install](https://docs.egon.com/docs/integrations/excel/install?platform=windows.md#other-ways-to-install). | ### Messages in the panel | Message | What to do | | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | `The token is not valid` | Copy the token again from `App & Services` in your [Egon account](https://account.egon.com). | | `This token cannot be used from Excel` | The token restricts the IPs or domains it accepts. Remove the restriction or create a new token. | | `No credits left, or the daily limit of this token was reached` | Add credits, or try again when the daily limit resets. | | `This country is not enabled for your token` | Choose another country, or enable it for your token. | | `Too many requests` | Wait, then start again. | | `Cannot reach the Egon service` | Check your internet connection and that your network allows `api.egon.com`. | | `Missing or invalid country code` | With `Worldwide`, fill the `Country Code` column with 2 or 3 letter ISO codes. | | `Something went wrong` | Click `Reload`. Results already written stay in your sheet. | ### Still stuck? Contact [Egon support](https://www.egon.com/company/contact-us) and include the message you see and your version of Excel. --- ## Build with AI Give your AI assistant, coding agent, or app builder the **Egon documentation and OpenAPI schema**, so it writes integrations that match the real API. ### In This Section - [Resources](https://docs.egon.com/docs/build-with-ai/resources.md): the machine-readable files every build publishes, such as `llms.txt` and the OpenAPI schema. - [Chat Assistants](https://docs.egon.com/docs/build-with-ai/chat-assistants.md): ask ChatGPT, Claude, or Cursor about the API. - [Coding Agents](https://docs.egon.com/docs/build-with-ai/coding-agents.md): set up Claude Code, Cursor, GitHub Copilot, or Codex to write Egon code. - [Agent Skills](https://docs.egon.com/docs/build-with-ai/skills.md): install the Egon skills in Claude Code, Codex, Cursor, and other coding agents. - [App Builders](https://docs.egon.com/docs/build-with-ai/app-builders.md): add Egon to apps built with Lovable, v0, or Bolt. - [Prompt Library](https://docs.egon.com/docs/build-with-ai/prompt-library.md): ready-made prompts for common Egon integrations. - [API Key Safety](https://docs.egon.com/docs/build-with-ai/api-key-safety.md): keep your key out of prompts and out of the browser. --- ## Resources for AI Every build publishes the documentation, the OpenAPI schema, and the agent skills in **formats an AI tool can read** directly. ### Download Files Give these files to your AI assistant or coding agent. `llms.txt` indexes every page, `llms-full.txt` holds the whole documentation, the OpenAPI schema describes every endpoint, and the [agent skills](https://docs.egon.com/docs/build-with-ai/skills.md) teach a coding agent how to call Egon and run a batch job. #### LLM Files - [llms.txt](https://docs.egon.com/llms.txt) - [llms-full.txt](https://docs.egon.com/llms-full.txt) #### OpenAPI Schema - [openapi.json](https://docs.egon.com/openapi.json) - [openapi.yaml](https://docs.egon.com/openapi.yaml) For a single service family, download its schema from the [API Reference](https://docs.egon.com/docs/api.md#openapi-schema). ### Which File to Use Add the site domain to each path. | Path | Content | Use it when | | -------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------- | | `/llms.txt` | Index of every page, with a link to its markdown version | The assistant should find the pages it needs | | `/llms-full.txt` | The whole documentation in one markdown file | You want to load everything at once | | `.md` | Markdown version of a page: add `.md` to any page URL | You work on a single endpoint | | `/openapi.json`, `/openapi.yaml` | The full OpenAPI schema | You generate a client or typed models | | `/openapi/.json` | The OpenAPI schema of one service family, also in `.yaml` | You need one family and a smaller context | | `/skills//SKILL.md` | An agent skill, see [Agent Skills](https://docs.egon.com/docs/build-with-ai/skills.md) | Your coding agent should load the Egon rules on its own | --- ## Chat Assistants Ask **ChatGPT, Claude, or Cursor** about the Egon API, with the documentation as context. ### Ask About One Page On any page, open **Copy for AI** and choose **Open in ChatGPT**, **Open in Claude**, or **Open in Cursor**. The chat starts with a link to the markdown version of that page. If the assistant cannot open links, choose **Markdown** in the same menu and paste the page in the chat. ### Ask About the Whole API Paste this prompt in a new chat: ```text Read https://docs.egon.com/llms.txt. It lists the Egon API documentation. Answer my questions using those pages and link the page you used. ``` --- ## Coding Agents Set up **Claude Code, Cursor, GitHub Copilot, or Codex** to write code that matches the Egon API. ### Add the Project Instructions Coding agents read an instructions file in your repository. Add this block to `AGENTS.md` (Codex, Cursor, GitHub Copilot) or `CLAUDE.md` (Claude Code): ```text ## Egon API - Documentation index: https://docs.egon.com/llms.txt (add .md to any page URL for its markdown) - OpenAPI schema: https://docs.egon.com/openapi.json - Authentication: use the header described in securitySchemes in the schema. - Read the API key from the EGON_API_KEY environment variable. Never hardcode it and never call Egon from the browser. - Check the quality indicators in each response before trusting the data: https://docs.egon.com/docs/quality-indicators.md ``` ### Generate a Client Then ask for what you need, for example: ```text Using the Egon OpenAPI schema at https://docs.egon.com/openapi.json, write a typed TypeScript client for the endpoints this project uses. ``` For prompts on specific integrations, see the [Prompt Library](https://docs.egon.com/docs/build-with-ai/prompt-library.md). To give your agent the same rules as an installable skill, see [Agent Skills](https://docs.egon.com/docs/build-with-ai/skills.md). --- ## Agent Skills Install the **Egon skills** once, and your coding agent knows where the documentation is, how to authenticate, how to run a batch job, and how to keep your data safe. Each skill is a single `SKILL.md` file that links to the markdown pages of this site, and `egon-api` also to the OpenAPI schema, so the agent always reads the current documentation. ### The `egon-api` Skill The `egon-api` skill gives your agent the base URL, the authentication header, the key safety rules, and every service of the Egon API. ### The `egon-batch` Skill The `egon-batch` skill teaches your agent how Egon Batch works on this site: how to prepare the address file, run the job, and read the output, with links to every Batch page. ### Install with the Skills CLI Run this in your project. The CLI asks which skills and agents to set up, then copies each skill into the folder each agent reads. ```bash npx skills add https://docs.egon.com ``` The CLI finds the skills through `/.well-known/agent-skills/index.json`, which every build of this site publishes. ### Install Manually Copy each `SKILL.md` into a folder named after its skill: | Agent | Folder | | ----------------------------------------------------------- | ------------------------ | | Claude Code | `.claude/skills//` | | Codex, Cursor, and other agents that read `.agents/skills/` | `.agents/skills//` | For Claude Code, run this in your project. For other agents, replace `.claude` with `.agents`. ```bash mkdir -p .claude/skills/egon-api && curl -fsSLo .claude/skills/egon-api/SKILL.md https://docs.egon.com/skills/egon-api/SKILL.md mkdir -p .claude/skills/egon-batch && curl -fsSLo .claude/skills/egon-batch/SKILL.md https://docs.egon.com/skills/egon-batch/SKILL.md ``` ### Check the Setup Start a new session and ask: ```text Do you have the egon-api and egon-batch skills? Show the base URL and the authentication header the egon-api skill tells you to use, and the steps the egon-batch skill gives to run a batch job. ``` To add Egon to your project instructions instead, see [Coding Agents](https://docs.egon.com/docs/build-with-ai/coding-agents.md). --- ## App Builders Add Egon services to apps built with **Lovable, v0, or Bolt**. ### How It Works App builders generate a whole app from a prompt. Give them the Egon documentation and the OpenAPI schema in the prompt, and they write the calls for you. 1. Store your API key as a secret named `EGON_API_KEY` in the builder's settings. 2. Copy a prompt from the [Prompt Library](https://docs.egon.com/docs/build-with-ai/prompt-library.md) and paste it in the builder's chat. The prompts ask for a server-side function, because a key used in the browser is visible to anyone: keep that line when you adapt them (see [API Key Safety](https://docs.egon.com/docs/build-with-ai/api-key-safety.md)). 3. Test the result with real addresses before you publish the app. --- ## Prompt Library **Ready-made prompts** for common Egon integrations. Paste them in a coding agent or an app builder. ### Real-Time API #### Address Autocomplete ```text Add address autocomplete to the address form using the Egon API. Docs: https://docs.egon.com/llms.txt OpenAPI: https://docs.egon.com/openapi.json - Call Egon from a server-side function, never from the browser. - Store the API key as a secret named EGON_API_KEY. - Show suggestions while the user types, after 3 characters, with a 300 ms debounce. - Fill the form fields from the selected suggestion. ``` #### Address Validation on Submit ```text Validate the shipping address with the Egon API when the user submits the checkout form. Docs: https://docs.egon.com/llms.txt OpenAPI: https://docs.egon.com/openapi.json - Call Egon from a server-side function, never from the browser. - Store the API key as a secret named EGON_API_KEY. - If Egon returns a corrected address, show it and let the user accept it or keep their own. - Decide whether the address is valid from the quality indicators: https://docs.egon.com/docs/quality-indicators.md ``` --- ## API Key Safety AI tools make it easy to **leak an API key**. Keep it out of prompts and out of the browser. ### Rules - Never paste a real key into a chat or a prompt. Use `YOUR_API_KEY` or the name of an environment variable. - Call Egon from your server. A key sent from the browser is visible to anyone who opens the page. - Store the key in an environment variable or in your platform's secrets, such as `EGON_API_KEY`. ### Review Generated Code Before you deploy code written by an AI tool, check that: - the key is read from a secret, not written in the code; - no request to Egon starts from the browser; - responses are checked against the [Quality Indicators](https://docs.egon.com/docs/quality-indicators.md) before the data is used.