{ "openapi": "3.1.0", "info": { "title": "Get Country Name Standard plus Information API", "description": "This API standardizes country names and provides additional country-related information such as two-letter codes, three-letter codes, currency details, and more using advanced algorithms and AI models.\nTo use this API, you need an API key. Register for an API key at [Interzoid Registration](https://www.interzoid.com/register-api-account).\nFor more information about this API, visit the [Get Country Name Standard plus Information API Documentation](https://www.interzoid.com/apis/standardize-country-data-info).\nYou can also try this API [interactively](https://try.interzoid.com) or in high-speed [batch mode](https://batch.interzoid.com).\n", "version": "1.0.0", "contact": { "name": "Interzoid Support", "url": "https://www.interzoid.com", "email": "support@interzoid.com" } }, "externalDocs": { "description": "API home page and documentation", "url": "https://www.interzoid.com/apis/standardize-country-data-info" }, "servers": [ { "url": "https://api.interzoid.com", "description": "Production server" } ], "tags": [ { "name": "Country Information", "description": "Standardizes country names and retrieves detailed country information." } ], "paths": { "/getcountryinfo": { "get": { "operationId": "getCountryInfo", "tags": [ "Country Information" ], "summary": "Get Standardized Country Name and Information", "description": "Retrieves a standardized country name along with additional information such as two-letter code, three-letter code, currency details, and more for a given country input. Include your API key (license) in the request. Register for an API key at https://www.interzoid.com/register-api-account.\n", "parameters": [ { "name": "license", "in": "query", "required": true, "description": "Your API license key. Register for an API key at [Interzoid Registration](https://www.interzoid.com/register-api-account).\n", "schema": { "type": "string" }, "examples": { "license": { "summary": "API Key Example", "value": "dh8dj2f*****" } } }, { "name": "country", "in": "query", "required": true, "description": "The country name or identifier for which information is requested.", "schema": { "type": "string" }, "examples": { "countryName": { "summary": "Country Example", "value": "franse" } } }, { "name": "algorithm", "in": "query", "required": true, "description": "The algorithm and AI model used to standardize the country name.", "schema": { "type": "string" }, "examples": { "algorithm": { "summary": "Algorithm Example", "value": "ai-medium" } } } ], "responses": { "200": { "description": "Successful response containing standardized country name and additional information.", "content": { "application/json": { "schema": { "type": "object", "properties": { "CountryStandard": { "type": "string", "description": "The standardized country name." }, "TwoLetterCode": { "type": "string", "description": "The ISO 3166-1 alpha-2 two-letter country code." }, "ThreeLetterCode": { "type": "string", "description": "The ISO 3166-1 alpha-3 three-letter country code." }, "ThreeDigitCode": { "type": "string", "description": "The ISO 3166-1 numeric three-digit country code." }, "CurrencyCode": { "type": "string", "description": "The ISO 4217 currency code." }, "CurrencyName": { "type": "string", "description": "The name of the currency." }, "CurrencySubUnit": { "type": "string", "description": "The subunit of the currency." }, "CurrencySymbol": { "type": "string", "description": "The symbol of the currency." }, "InternetCode": { "type": "string", "description": "The country code top-level domain (ccTLD)." }, "CallingCode": { "type": "string", "description": "The international calling code." }, "Code": { "type": "string", "description": "Response code, \"Success\" if the call is successful." }, "Credits": { "type": "integer", "description": "Remaining credits for your API license." } } }, "examples": { "success": { "value": { "CountryStandard": "France", "TwoLetterCode": "FR", "ThreeLetterCode": "FRA", "ThreeDigitCode": "250", "CurrencyCode": "EUR", "CurrencyName": "Euro", "CurrencySubUnit": "cent", "CurrencySymbol": "€", "InternetCode": ".fr", "CallingCode": "+33", "Code": "Success", "Credits": 200402 } } } } } }, "400": { "description": "Bad request (e.g., missing or invalid parameters).", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "Invalid license key or country name missing." } } } } }, "402": { "description": "API key not found.", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "API key not found." } } } } }, "403": { "description": "Insufficient API credits remaining.", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "Insufficient API credits remaining." } } } } }, "405": { "description": "Method not allowed.", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "Method not allowed." } } } } }, "429": { "description": "Rate limits reached.", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "Rate limits reached." } } } } }, "500": { "description": "Internal server error.", "content": { "text/plain": { "schema": { "type": "string" }, "examples": { "error": { "value": "Internal server error." } } } } } } } } }, "components": { "securitySchemes": { "apiKeyAuth": { "type": "apiKey", "name": "license", "in": "query" } }, "schemas": {} }, "security": [ { "apiKeyAuth": [] } ] }