PEN to AFN exchange rate API
Sol to Afghani · quoted 2026-10-02
18.6171
▼ +1.31% over 6M
1 PEN = 18.6171 AFN · 1 AFN = 0.05371 PEN · Get this rate via the API
1 PEN buys 18.6171 AFN as of 2026-10-02, so 1 AFN buys 0.05371 PEN. Over the last 6 months, PEN/AFN traded between 17.8992 and 19.8302, averaged 19.0148 and fell 1.31%. 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.
PEN/AFN over 6M: show the values
| Point | PEN/AFN |
|---|---|
| 2026-04-05 | 18.8648 |
| 2026-04-12 | 19.1383 |
| 2026-04-19 | 18.7996 |
| 2026-04-26 | 17.8992 |
| 2026-05-03 | 18.2963 |
| 2026-05-10 | 18.6484 |
| 2026-05-18 | 18.3242 |
| 2026-05-26 | 18.5531 |
| 2026-06-02 | 18.4128 |
| 2026-06-11 | 18.5665 |
| 2026-06-18 | 18.7422 |
| 2026-06-25 | 18.7227 |
| 2026-07-02 | 18.7532 |
| 2026-07-09 | 18.9379 |
| 2026-07-16 | 19.6780 |
| 2026-07-23 | 19.7925 |
| 2026-07-30 | 19.4636 |
| 2026-08-06 | 19.5207 |
| 2026-08-13 | 19.5618 |
| 2026-08-21 | 19.8302 |
| 2026-08-28 | 19.7743 |
| 2026-09-04 | 19.6909 |
| 2026-09-11 | 19.5225 |
| 2026-09-18 | 19.4652 |
| 2026-09-25 | 18.8082 |
High
19.8302
Low
17.8992
Average
19.0148
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.