A Spanish 10Y bond yield API returns the 10-year sovereign yield as JSON under the key ES_10Y. On Bonds-API that is GET https://bonds-api.com/api/v1/latest with query api_key (not Bearer). Official docs sample dated 2026-04-14 prints ES_10Y at 3.50.
Starter is $19/mo (1,000 requests) with a 7-day trial. Pro is $49 / 10k. This is not Fed Funds or SOFR (Interest Rates). Docs: bonds-api.com/docs.
Request: latest yields
curl "https://bonds-api.com/api/v1/latest?api_key=YOUR_API_KEY&countries=US,DE,ES&maturities=2Y,10Y"
Params description uses ISO codes such as US,DE,ES. Keys are {CC}_{TENOR}.
Response: official latest sample (14 Apr 2026)
{
"success": true,
"date": "2026-04-14",
"rates": {
"US_2Y": 3.80,
"US_10Y": 4.25,
"DE_2Y": 2.66,
"DE_10Y": 3.00,
"ES_2Y": 2.85,
"ES_10Y": 3.50
}
}
Copy the curl with your key for today’s print. The 2s10s Spain spread in this fixture is 3.50 − 2.85 = 0.65 (65 bp) — that arithmetic is from the sample, not a live tick.
Same key
GET /api/v1/curve?country=ES— the Spanish curve.GET /api/v1/spread?country=ES&benchmark=DE&maturity=10Y— ES–DE 10Y (same family as the Italy–Germany post).
Go live
1. Register — 7-day trial.
2. Copy api_key.
3. GET /api/v1/latest with countries=ES.
4. Read rates.ES_10Y.