Skip to content

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

PEN/AFN over 6M: show the values
PointPEN/AFN
2026-04-0518.8648
2026-04-1219.1383
2026-04-1918.7996
2026-04-2617.8992
2026-05-0318.2963
2026-05-1018.6484
2026-05-1818.3242
2026-05-2618.5531
2026-06-0218.4128
2026-06-1118.5665
2026-06-1818.7422
2026-06-2518.7227
2026-07-0218.7532
2026-07-0918.9379
2026-07-1619.6780
2026-07-2319.7925
2026-07-3019.4636
2026-08-0619.5207
2026-08-1319.5618
2026-08-2119.8302
2026-08-2819.7743
2026-09-0419.6909
2026-09-1119.5225
2026-09-1819.4652
2026-09-2518.8082

High

19.8302

Low

17.8992

Average

19.0148

For developers

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
curl -X GET "https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=AFN"
JavaScript
const response = await fetch("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=AFN");
const data = await response.json();
Python
import requests

data = requests.get("https://api.fxfeed.io/v2/latest?api_key=YOUR_API_KEY&base=PEN&currencies=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&currencies=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.