Configure a corridor below and run a live request. This is exactly what your platform would receive from the AyaSend API — best option first, ranked alternatives, and a plain-English reason.
Your platform calls one endpoint. AyaSend returns a ranked list of providers with rates, fees, speed, and a recommendation reason. Build any UI on top.
// Response will appear here
Call one endpoint. Get a structured recommendation. Build any experience on top.
import requests
response = requests.get(
"https://ayasend.com/api/v1/compare",
params={
"from_country": "US",
"to_country": "NG",
"send_amount": 200,
"currency": "USD",
},
headers={
"X-API-Key": "aya_live_your_key_here"
}
)
data = response.json()
best = data["best_option"]
print(f"Best: {best['provider']}")
print(f"Receives: {best['receive_amount']} {best['receive_currency']}")
print(f"Why: {best['reason']}")
const res = await fetch(
"https://ayasend.com/api/v1/compare?" + new URLSearchParams({
from_country: "US",
to_country: "NG",
send_amount: 200,
currency: "USD",
}),
{
headers: {
"X-API-Key": "aya_live_your_key_here"
}
}
);
const data = await res.json();
const best = data.best_option;
console.log(`Best: ${best.provider}`);
console.log(`Receives: ${best.receive_amount} ${best.receive_currency}`);
console.log(`Why: ${best.reason}`);