{ "openapi": "3.1.0", "info": { "title": "Interzoid Get Currency Rate API", "description": "This API retrieves the latest currency exchange rate, against the US Dollar, for the given three-letter international currency code. These currency rates are compiled from many global sources and are updated several times per day.", "contact": { "name": "API Support", "url": "https://www.interzoid.com", "email": "support@interzoid.com" }, "version": "1.0.0" }, "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "servers": [ { "url": "https://api.interzoid.com", "variables": {} } ], "paths": { "/getcurrencyrate": { "get": { "tags": [ "Currency Rates" ], "summary": "getcurrencyrate", "description": "Use a currency symbol (EUR, GBP, CNY, JPY, AUD, etc.) to obtain a live currency foreign exchange rate for one US Dollar. See the API home page for list of all supported currencies.", "operationId": "getcurrencyrate", "parameters": [ { "name": "license", "in": "query", "description": "Your Interzoid license API key. Register at www.interzoid.com/register-api-account", "required": true, "style": "form", "explode": true, "schema": { "type": "string" } }, { "name": "symbol", "in": "query", "description": "Currency symbol to retrieve current rate for", "required": true, "style": "form", "explode": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Currency rate data to one US Dollar", "headers": {}, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetcurrencyrateResponse" } } } }, "400": { "description": "bad request - insufficient parameters", "headers": {}, "content": {} }, "402": { "description": "credits exhausted", "headers": {}, "content": {} }, "403": { "description": "invalid license API key", "headers": {}, "content": {} }, "404": { "description": "currency symbol not found", "headers": {}, "content": {} }, "405": { "description": "method not allowed", "headers": {}, "content": {} }, "500": { "description": "internal server error", "headers": {}, "content": {} } }, "deprecated": false }, "parameters": [] } }, "components": { "schemas": { "GetcurrencyrateResponse": { "title": "GetcurrencyrateResponse", "type": "object", "properties": { "Symbol": { "type": "string" }, "Name": { "type": "string" }, "Country": { "type": "string" }, "Rate": { "type": "string" }, "Code": { "type": "string" }, "Credits": { "type": "string" } } } } }, "tags": [ { "name": "Currency Rates", "description": "" } ], "externalDocs": { "description": "API home page and documentation", "url": "https://www.interzoid.com/apis/live-currency-exchange-rates" } }