PEN to AFN exchange rate API
Sol to Afghani · quoted 2026-10-01
18.7142
▼ +0.91% over 7D
1 PEN = 18.7142 AFN · 1 AFN = 0.05344 PEN · Get this rate via the API
1 PEN buys 18.7142 AFN as of 2026-10-01, so 1 AFN buys 0.05344 PEN. Over the last 7 days, PEN/AFN traded between 18.5818 and 19.1211, averaged 18.8576 and fell 0.91%. The API holds daily PEN/AFN rates from 2024-08-24 — 2 years of history — so any past day, or a whole series, is one request away.
Converting an invoice? Convert an amount on a specific date.
Get this rate via the API
One GET request returns the PEN/AFN rate as JSON. The free plan includes 1,000 requests a month, with no credit card required.
curl -X GET "https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN¤cies=AFN"const response = await fetch("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN¤cies=AFN");
const data = await response.json();import requests
data = requests.get("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN¤cies=AFN").json()Replace YOUR_API_KEY with the key from your dashboard.
PEN/AFN API questions
How do I get the PEN/AFN exchange rate from an API?
Send one GET request to https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN¤cies=AFN, replacing YOUR_API_KEY with your own key. The JSON response carries the date and the latest PEN/AFN rate in rates.AFN.
How far back does PEN/AFN historical data go?
Daily PEN/AFN rates are available from 2024-08-24. Request one day with the /historical endpoint and a date, or a range of days with /timeseries.
Is there a free PEN/AFN exchange rate API?
Yes. The free plan includes 1,000 requests a month, with no credit card required; paid plans raise the limit.
Put these rates in your application
One endpoint, JSON responses, 160+ currencies and history back to 1999. Start on the free plan.