Currency Exchange API Documentation
Complete reference for the Currency Exchange API
Authentication
Authorization: Bearer sk_live_your_key_here
GET POST /v1/currency/process
Parameters
| Field | Type | Description |
|---|---|---|
action | string | convert, rates, or list (default: convert) |
from | string | Source currency code (for convert) |
to | string | Target currency code (for convert) |
amount | number | Amount to convert (default: 1) |
base | string | Base currency for rates (default: USD) |
symbols | string | Comma-separated currency codes to filter rates |
Examples
# Convert USD to EUR
curl "https://snapapis.com/api/v1/currency/process?api_key=KEY&action=convert&from=USD&to=EUR&amount=100"
# Get rates with SAR base
curl "https://snapapis.com/api/v1/currency/process?api_key=KEY&action=rates&base=SAR&symbols=USD,EUR,GBP"