Abstract API Convert API

The Convert API from Abstract API — 1 operation(s) for convert.

Operations 2

GET /convert Convert an amount from one currency to another #
POST /convert Convert an amount from one currency to another #

Documentation

📖
Documentation
https://docs.abstractapi.com/api/email-reputation.md
📖
Documentation
https://docs.abstractapi.com/api/phone-intelligence.md
📖
Documentation
https://www.abstractapi.com/api/ip-geolocation-api
📖
Documentation
https://docs.abstractapi.com/api/ip-intelligence.md
📖
Documentation
https://docs.abstractapi.com/api/company-enrichment.md
📖
Documentation
https://docs.abstractapi.com/api/exchange-rates.md
📖
Documentation
https://docs.abstractapi.com/api/holidays.md
📖
Documentation
https://docs.abstractapi.com/api/timezones.md
📖
Documentation
https://docs.abstractapi.com/api/vat-validation.md
📖
Documentation
https://docs.abstractapi.com/api/iban-validation.md
📖
Documentation
https://docs.abstractapi.com/api/screenshot.md
📖
Documentation
https://docs.abstractapi.com/api/images.md
📖
Documentation
https://docs.abstractapi.com/api/scrape.md
📖
Documentation
https://docs.abstractapi.com/api/avatars.md
📖
APIReference
https://docs.abstractapi.com/api/avatars
📖
APIReference
https://docs.abstractapi.com/api/company-enrichment
📖
APIReference
https://docs.abstractapi.com/api/email-reputation
📖
APIReference
https://docs.abstractapi.com/api/exchange-rates
📖
APIReference
https://docs.abstractapi.com/api/iban-validation
📖
APIReference
https://docs.abstractapi.com/api/images
📖
APIReference
https://www.abstractapi.com/api/ip-geolocation-api
📖
APIReference
https://docs.abstractapi.com/api/ip-intelligence
📖
APIReference
https://docs.abstractapi.com/api/phone-intelligence
📖
APIReference
https://docs.abstractapi.com/api/holidays
📖
APIReference
https://docs.abstractapi.com/api/timezones
📖
APIReference
https://docs.abstractapi.com/api/scrape
📖
APIReference
https://docs.abstractapi.com/api/screenshot

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/email-reputation-breach-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/phone-intelligence-phone-country-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-geolocation-currency-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-intelligence-asn-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/company-enrichment-company-enrichment-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/exchange-rates-convert-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/public-holidays-holiday-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/timezones-convert-time-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/vat-validation-vat-calculate-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/iban-validation-iban-validation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/image-processing-image-processing-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/web-scraping-web-scraping-response-schema.json

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/email-reputation-breach-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/phone-intelligence-phone-country-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-geolocation-currency-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-intelligence-asn-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/company-enrichment-company-enrichment-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/exchange-rates-convert-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/public-holidays-holiday-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/timezones-convert-time-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/vat-validation-vat-calculate-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/iban-validation-iban-validation-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/image-processing-image-processing-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/web-scraping-web-scraping-response-example.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/abstract-api-convert-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

abstract-api-convert-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Abstract Exchange Rates Convert API
  description: 'Get live, convert, and historical foreign-exchange and cryptocurrency rates for 80+ fiat and cryptocurrency rates (fiat uses ISO 4217 codes) in a single request. Authenticate with your API key as the `api_key` query parameter, or as an `Authorization: Bearer ` header. GET and POST (form-encoded or JSON) are both supported.'
  version: 1.0.0
  termsOfService: https://www.abstractapi.com/legal/legal
  contact:
    name: Abstract API
    url: https://www.abstractapi.com/api/exchange-rate-api
  license:
    name: Commercial — see Terms of Service
    url: https://www.abstractapi.com/legal/legal
servers:
- url: https://exchange-rates.abstractapi.com/v1
security:
- ApiKeyQuery: []
- BearerAuth: []
tags:
- name: Convert
paths:
  /convert:
    get:
      operationId: getConvertExchangeRate
      summary: Convert an amount from one currency to another
      parameters:
      - name: base
        in: query
        required: true
        description: The base (source) currency to convert from. Uses the ISO 4217 currency standard.
        schema:
          type: string
        example: USD
      - name: target
        in: query
        required: true
        description: The target (destination) currency to convert to. Uses the ISO 4217 currency standard. A single target is accepted.
        schema:
          type: string
        example: EUR
      - name: date
        in: query
        required: false
        description: The historical date to get the conversion rate from, in YYYY-MM-DD format. If omitted, the most recent rate is used.
        schema:
          type: string
          format: date
        example: '2024-01-01'
      - name: base_amount
        in: query
        required: false
        description: The amount of the base currency to convert to the target currency. Defaults to 1 when omitted.
        schema:
          type: number
          format: float
        example: 100
      responses:
        '200':
          description: The converted amount and the exchange rate used.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
              example:
                base: USD
                target: EUR
                base_amount: 1
                converted_amount: 0.923361
                exchange_rate: 0.923361
                last_updated: 1716297300
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/QuotaReached'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      tags:
      - Convert
    post:
      operationId: postConvertExchangeRate
      summary: Convert an amount from one currency to another
      description: 'Same as the GET operation. The API key may be supplied in the request body, as the `api_key` query parameter, or as an `Authorization: Bearer ` header.'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ConvertRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertRequest'
      responses:
        '200':
          description: The converted amount and the exchange rate used.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversion'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/QuotaReached'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      tags:
      - Convert
components:
  schemas:
    Conversion:
      type: object
      properties:
        base:
          type: string
          description: The base (source) currency (echoes the request).
          example: USD
        target:
          type: string
          description: The target (destination) currency (echoes the request).
          example: EUR
        base_amount:
          type: number
          format: float
          description: The amount of the base currency that was converted.
          example: 1
        converted_amount:
          type:
          - number
          - 'null'
          format: float
          description: The resulting amount in the target currency; null when it cannot be computed.
          example: 0.923361
        exchange_rate:
          type:
          - number
          - 'null'
          format: float
          description: The exchange rate used for the conversion; null when unavailable.
          example: 0.923361
        date:
          type:
          - string
          - 'null'
          format: date
          description: The date the rates were pulled from (present when a date was requested); echoes the request.
          example: '2024-01-01'
        last_updated:
          type:
          - integer
          - 'null'
          description: Unix timestamp (seconds) of when the rate was last updated; null when unavailable.
          example: 1716297300
    ConvertRequest:
      type: object
      required:
      - base
      - target
      properties:
        base:
          type: string
          description: The base (source) currency to convert from. Uses the ISO 4217 currency standard.
          example: USD
        target:
          type: string
          description: The target (destination) currency to convert to. Uses the ISO 4217 currency standard. A single target is accepted.
          example: EUR
        date:
          type: string
          format: date
          description: The historical date to get the conversion rate from, in YYYY-MM-DD format. If omitted, the most recent rate is used.
          example: '2024-01-01'
        base_amount:
          type: number
          format: float
          description: The amount of the base currency to convert to the target currency. Defaults to 1 when omitted.
          example: 100
        api_key:
          type: string
          description: 'Your API key. Optional here if supplied as the `api_key` query parameter or an `Authorization: Bearer <key>` header.'
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - code
          properties:
            message:
              type: string
              description: Human-readable description of the error.
              example: A validation error occurred.
            code:
              type: string
              description: Machine-readable error code, e.g. validation_error or unauthorized.
              example: validation_error
            details:
              type:
              - object
              - 'null'
              description: Field-keyed validation messages for validation_error responses; null for other error types.
              additionalProperties:
                type: array
                items:
                  type: string
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid API key provided.
              code: unauthorized
              details: null
    ServerError:
      description: Internal server error. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Bad request — a required parameter is missing or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: A validation error occurred.
              code: validation_error
              details:
                base:
                - This is a required argument.
    TooManyRequests:
      description: Too Many Requests — rate limit exceeded. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QuotaReached:
      description: Unprocessable — monthly quota reached or insufficient API credits. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Your unique Exchange Rates API key.
    BearerAuth:
      type: http
      scheme: bearer
      description: Send your API key as a Bearer token; omit `api_key` from the query string.
externalDocs:
  description: Official documentation
  url: https://docs.abstractapi.com/api/exchange-rates