Skip to main content
POST
Convert Currency

Request contract

  • Method and path: POST /apis/v1/api-ninjas/convert-currency
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/convert-currency
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
amount
number
required

Amount to convert in the source currency. Must be a positive number.

Examples:

100

5000

1250.5

have
string
required

Source currency code (e.g., USD, EUR, GBP, JPY). The currency you currently have.

Examples:

"USD"

"GBP"

"EUR"

want
string
required

Target currency code (e.g., USD, EUR, GBP, AUD). The currency you want to convert to.

Examples:

"AUD"

"EUR"

"JPY"

Response

Tool result data

new_amount
number
required
new_currency
string
required
old_amount
number
required
old_currency
string
required