African Eurobonds

For analysts

The data API

Everything the site shows is served by one small API, and the data room’s downloads are calls to it. This page is the reference: each endpoint, what it takes and returns, and how to pull the data into Python or Excel. No key and no sign-up.

The basics

Endpoints

GET /bonds

Every published bond with its live price: {count, bonds: [...]}. The fields are listed below.

country
optional: a country as /countries lists it

Example /bonds?country=Nigeria

GET /bonds/{isin}

One bond: instrument (its stored terms), live (the same row /bonds serves, or null when the bond is held but not priced) and pricing_history (every daily close: price_date, bid_price, ask_price, bid_yield, ask_yield). 404 for an ISIN the site does not hold or does not price.

Example /bonds/XS1777972511

GET /bonds/{isin}/consideration

What a trade settles for: principal, accrued (with accrued_days, accrued_from, accrued_per_100), total, the yield at that price (yield_pct, basis to maturity or to call, workout_date), factor and current_face for a bond that has repaid part of its principal, and settlement_choices. Never cached. A refusal (bad date, zero nominal, matured bond) is a 422 with a sentence.

nominal
face amount, default 1,000,000
price
clean price per 100; default the live ask (buy) or bid (sell)
settlement
YYYY-MM-DD, a business day up to a year out; default T+2 for an XS line, T+1 for a US line
side
buy (default) or sell

Example /bonds/XS1777972511/consideration?nominal=250000&side=buy

GET /bonds/{isin}/export

The bond’s daily closes as a file, newest first: the data room’s per-bond download.

period
1W, 1M, 3M, 6M, 1Y, YTD or All (default)
format
csv or xlsx (default)

Example /bonds/XS1777972511/export?period=1Y&format=csv

GET /export/prices

The closing-prices file for valuation records, the form at the top of the data room. It opens with a header block: when it was generated (UTC), a file ID (the first 16 hex of the SHA-256 of its price rows: same figures, same ID), the date range and selection, the price source, the basis codes, the price convention, the methodology version, the Terms accepted and the request itself. Then one row per bond per session, newest session first: close_date, isin, issuer, issuer_type, country, currency, coupon_pct, maturity_date, bid_price, ask_price, bid_yield_pct, ask_yield_pct, yield_to, basis, yield_note, factor, accrued_pct, bid_dirty_price, ask_dirty_price, ngn_rate, ngn_rate_date, where basis is market, dmo, model or not recorded. The last six are valuation columns (added 10 Nov 2026): factor is the fraction of original face outstanding, accrued_pct the accrued interest per 100 of current face to the close date on the stored day count and coupon grid (the same maths as the portfolio tool), the dirty prices are clean price plus accrued_pct, and ngn_rate is naira per unit of the bond’s currency on ngn_rate_date (the Central Bank of Nigeria NFEM rate for USD; for EUR that rate divided by the ECB reference rate; empty for other currencies). They are derived and not part of the file ID. The Excel file has three sheets: About this file (the header), By date (one row per session, each bond’s prices, yields and basis side by side under its ISIN) and Closing prices (the rows above). Never cached.

isin, group, all
the selection, combined: isin= one or more ISINs (repeat it, or comma-separate); group= a country as /countries lists it (its sovereign bonds), corporates or supranationals; all=1 every published bond. At least one is required
period
latest, 7d, mtd, lastmonth, ytd, 1y, all or custom. Counted back from the latest session on record, not the calendar date: before the 19:30 UTC capture, latest is the previous session
start, end
YYYY-MM-DD, inclusive, used only with period=custom or no period; both default to the latest session
terms
required: terms=accept records that you accept the Terms, clause 13 (using closing prices in a valuation). Without it the answer is a 400
format
csv (default) or xlsx
by_date
CSV only: bid_price, ask_price, mid_price, bid_yield or ask_yield makes the CSV one row per session (newest first) and one column per ISIN, that one figure in each cell; an empty cell means no close that day. mid_price is (bid + ask) / 2 of the same close. Omitted: one row per bond per session

Example /export/prices?group=NIGERIA&period=mtd&format=csv&terms=accept

GET /export/closes

One long table, a row per bond per day, for whatever the filters select; no filter is the whole history of every published bond. Columns: date, isin, bond, issuer, issuer_type, country, currency, coupon_pct, maturity_date, bid_price, ask_price, bid_yield_pct, ask_yield_pct, yield_to, yield_note. Rebuilt at most every ten minutes.

country
a country as /countries lists it
issuer_type
sovereign, corporate or supranational
start, end
YYYY-MM-DD, inclusive
on
one session: the latest on or before this date, for every bond
format
csv (default) or xlsx

Example /export/closes?country=Kenya&start=2026-01-01&format=csv

GET /export/terms

Reference data: one row per bond with its terms and the document each figure was read from; the repayment ladders of bonds that repay in instalments (each marked documented or inferred); the call schedules of callable bonds.

table
bonds (default), amortisation or calls
format
csv (default) or xlsx

Example /export/terms?table=amortisation&format=csv

GET /countries

{countries: [...]}, the country strings the filters above accept.

Example /countries

GET /excluded

The bonds the site holds but deliberately does not price, each with a summary and the detail behind the decision: the mirror of /bonds.

Example /excluded

GET /health

status, the commit that is serving and an api date that moves when the shape of an answer changes.

Example /health

What a bond row holds

FieldMeaning
isin, isin_144aThe Reg S ISIN, and the Rule 144A ISIN where there is one. Per-ISIN routes take either.
nameThe bond’s name, built from its terms: issuer, coupon, maturity year and currency (Kenya 7% 2027 USD).
ticker, issuer, issuer_nameA company’s or supranational’s issuer code (OCP, AFC; for a sovereign, the same as name) and the issuer.
issuer_typesovereign, supranational, or for the Corporates group corporate, bank or quasi_sovereign.
country, country_of_riskThe country, upper case. For a corporate, the country of risk and the rule that assigned it (country_of_risk_rule).
currency, coupon_rate, coupon_frequency, day_countCoupon as a decimal (0.07 is 7%), coupons per year, the day-count basis.
issue_date, maturity_dateISO dates; maturity_date is null for a perpetual.
amount_outstanding, outstanding_factor, current_outstandingThe original face held by the site, the share of it still outstanding after scheduled repayments, and their product.
wal_yearsYears to maturity for a bullet; the weighted average life of the remaining instalments for a bond that repays in parts.
bid_price, ask_price, prev_close, daily_changeClean prices per 100 of face still outstanding; the close before this bond’s own price_date; the change on it.
bid_yield, ask_yieldDecimals (0.0648 is 6.48%), solved on the stored terms. Null when the yield is withheld or the bond trades on recovery.
bid_workout_date, bid_workout_price (and ask_)Set when the yield is to a call rather than to maturity: the date and price it was worked out to.
price_date, price_time, price_sourceThe session the price belongs to, when it was set (UTC), and where it came from.
stale, rejected, reject_reasonstale: the price rests on an anchor older than the latest session. rejected: the latest close was refused and the reason says why.
distressedMid price below 70: priced on expected recovery, so the yield is for reference only.
yield_status, yield_withheld_reasonpublished, or withheld with the reason (terms not yet read from the offering document, a reset ahead, …).

Files beside the API

These are static files on the site, rebuilt every night from the stored terms and the last close; they need no API call.

URLMeaning
/data/calendar.csvEvery future coupon, repayment and maturity of every bond, from the stored terms (the payment calendar).
/data/cashflows/{ISIN}.jsonOne bond’s future cash flows as cash per 100 of original face: {isin, currency, maturity, frequency, flows: [{d, k, p100, rate}]}. Multiply p100 by your nominal / 100.
/data/curves.jsonThe nightly yield-curve fit per issuer and currency (Nelson–Siegel parameters, tenor span, RMSE) and each bond’s tenor, mid yield, curve yield and residual at the last close (the relative-value chart).
/learn/bondpages.jsonISIN to the bond’s page on this site.

Recipes

Python

import requests, pandas as pd

API = "https://api.africaneurobonds.com"
bonds = pd.DataFrame(requests.get(API + "/bonds", headers={"User-Agent": "my-app"}).json()["bonds"])
print(bonds[["name", "currency", "bid_price", "ask_price", "ask_yield", "wal_years"]].head())

# a bond's whole close history as a frame
hist = pd.read_csv(API + "/bonds/XS1777972511/export?period=All&format=csv", parse_dates=["date"])

# the whole market on one day
day = pd.read_csv(API + "/export/closes?on=2026-10-09")

Excel

In Excel, Data → From Web (or Power Query) with a CSV URL gives a refreshable table; for example the whole market on one day:

https://api.africaneurobonds.com/export/closes?on=2026-10-09

Command line

curl -H "User-Agent: my-app" "https://api.africaneurobonds.com/bonds?country=Nigeria"
curl -o nigeria.csv "https://api.africaneurobonds.com/export/closes?country=Nigeria&format=csv"

Good to know