openapi: 3.1.0 info: title: ExchangeRate Enriched Data Supported Codes API description: ExchangeRate-API is a currency exchange rate API providing authoritative daily and intraday foreign exchange rates for 161 currencies. The v6 API surface includes Standard (Latest) rates, Pair conversion, Enriched data (locale, symbol, flag), Historical rates back to 1990, Supported codes, and an API request Quota endpoint. A separate no-key Open Access endpoint (open.er-api.com) provides once-daily rates with attribution. version: 6.0.0 termsOfService: https://www.exchangerate-api.com/terms contact: name: ExchangeRate-API Support url: https://www.exchangerate-api.com/contact email: contact@exchangerate-api.com license: name: Proprietary url: https://www.exchangerate-api.com/terms servers: - url: https://v6.exchangerate-api.com/v6 description: ExchangeRate-API v6 Production (API key required) - url: https://open.er-api.com/v6 description: ExchangeRate-API Open Access (no API key, attribution required) security: - apiKeyPath: [] tags: - name: Supported Codes description: List of all supported ISO 4217 currency codes with their full names. paths: /{api_key}/codes: get: tags: - Supported Codes summary: Get Supported Codes description: Returns an array of all supported ISO 4217 currency codes and their full names. operationId: getSupportedCodes parameters: - $ref: '#/components/parameters/ApiKey' responses: '200': description: Successful response containing supported codes. content: application/json: schema: $ref: '#/components/schemas/SupportedCodesResponse' '400': description: Error response. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: SupportedCodesResponse: type: object description: Supported codes response. properties: result: type: string description: Status indicator. documentation: type: string format: uri description: Link to the documentation. terms_of_use: type: string format: uri description: Link to the terms of use. supported_codes: type: array description: List of two-element arrays containing the ISO 4217 code and the currency name. items: type: array items: type: string minItems: 2 maxItems: 2 ErrorResponse: type: object description: Standard error envelope returned when a request cannot be fulfilled. properties: result: type: string description: Status indicator (error). example: error error-type: type: string description: Machine-readable error code. enum: - unsupported-code - malformed-request - invalid-key - inactive-account - quota-reached - plan-upgrade-required - no-data-available parameters: ApiKey: name: api_key in: path required: true description: Your ExchangeRate-API dashboard API key. schema: type: string securitySchemes: apiKeyPath: type: apiKey in: path name: api_key description: ExchangeRate-API uses an API key embedded in the URL path (after /v6/).