openapi: 3.2.0 info: title: ExchangeRate Account Currencies API description: ExchangeRate-API provides real-time and historical currency exchange rates for 165 currencies across 200 countries. version: '6' termsOfService: https://www.exchangerate-api.com/terms contact: name: ExchangeRate-API Support email: support@exchangerate-api.com x-api-id: exchangerate:exchangerate-api x-provider-name: ExchangeRate-API servers: - url: https://v6.exchangerate-api.com/v6 description: ExchangeRate-API v6 endpoint (API key in URL path) - url: https://v6.exchangerate-api.com/v6 description: ExchangeRate-API v6 endpoint (Bearer token auth — omit key from path) security: - BearerAuth: [] tags: - name: Currencies description: Supported currency codes and metadata paths: /{apiKey}/codes: get: operationId: getSupportedCodes summary: Get all supported currency codes description: Returns a list of all 165 supported currencies with their ISO 4217 codes and full names. tags: - Currencies security: - {} parameters: - $ref: '#/components/parameters/apiKey' responses: '200': description: Successful response with supported currency codes content: application/json: schema: $ref: '#/components/schemas/SupportedCodesResponse' example: result: success documentation: https://www.exchangerate-api.com/docs terms_of_use: https://www.exchangerate-api.com/terms supported_codes: - - AED - UAE Dirham - - AFN - Afghan Afghani - - ARS - Argentine Peso - - AUD - Australian Dollar - - EUR - Euro - - GBP - Pound Sterling - - USD - US Dollar '403': description: Authentication error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' components: schemas: SupportedCodesResponse: allOf: - $ref: '#/components/schemas/BaseMetadata' - type: object required: - result - supported_codes properties: supported_codes: type: array description: 'Array of [currencyCode, currencyName] pairs for all supported currencies ' items: type: array minItems: 2 maxItems: 2 items: type: string example: - - AED - UAE Dirham - - USD - US Dollar - - EUR - Euro BaseMetadata: type: object description: Common metadata fields returned in all successful responses properties: result: $ref: '#/components/schemas/ResultSuccess' documentation: type: string format: uri description: Link to the API documentation example: https://www.exchangerate-api.com/docs terms_of_use: type: string format: uri description: Link to the terms of use example: https://www.exchangerate-api.com/terms ResultSuccess: type: string enum: - success description: Indicates the request was successful ResultError: type: string enum: - error description: Indicates the request failed ErrorResponse: type: object required: - result - error-type properties: result: $ref: '#/components/schemas/ResultError' error-type: type: string description: Machine-readable error code enum: - unsupported-code - malformed-request - invalid-key - inactive-account - quota-reached example: invalid-key parameters: apiKey: name: apiKey in: path required: true description: Your personal API key obtained from the ExchangeRate-API dashboard schema: type: string example: YOUR-API-KEY securitySchemes: BearerAuth: type: http scheme: bearer description: 'Pass API key as a Bearer token in the Authorization header (e.g. Authorization: Bearer YOUR-API-KEY). When using this method, omit the API key from the URL path. The path-key endpoints do not use a security scheme in the OpenAPI sense; the {apiKey} path parameter serves as the credential. ' externalDocs: description: ExchangeRate-API Documentation url: https://www.exchangerate-api.com/docs/overview