Historical Chile Bond Yields

Historical Chile Bond Yields

Historical Chilean government bond yields are useful only if you can retrieve observations for the right maturity, distinguish missing market days from data errors, and compare values in consistent units. This guide shows how to request Chile yield history from bonds-api.com, build a curve, calculate spreads, and handle timestamps and missing observations in an application.

Chile yields and the request model

A sovereign bond is debt issued by a government. Its yield summarizes the return implied by its price and cash flows; yield changes are therefore relevant to valuation, borrowing costs and interest-rate risk. A yield curve compares yields across maturities at a particular point in time, while a historical series tracks one maturity across dates.

Bonds-API identifies Chile with the country code CL and maturities with labels such as 2Y and 10Y. The reference also shows curve points from 1M through 30Y. Coverage varies by country and maturity, so an application should work with returned points rather than assume that every tenor is available.

The documented base URL is https://bonds-api.com/api/v1/. The reference specifies GET requests authenticated with an X-API-Key header. The examples below use YOUR_API_KEY; replace it with a key stored outside source control.

Yields such as 4.52 are expressed as percentages, not decimal fractions. One percentage point equals 100 basis points, so a difference of 0.27 percentage points is 27 basis points. The reference does not identify a currency or currency convention for the Chile examples; confirm the instrument convention before comparing its yield with another market.

Latest and historical observations

Latest yields

The latest endpoint requires countries and accepts an optional comma-separated maturities list. Omitting maturities requests all available maturities. This request gets two Chile tenors in one call:

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/latest?countries=CL&maturities=2Y,10Y"
{
"success": true,
"data": {
"CL": {
"2Y": { "yield": 4.25, "date": "2026-11-25", "source": "official" },
"10Y": { "yield": 4.52, "date": "2026-11-25", "source": "official" }
}
}
}

success indicates whether the request succeeded. Under data, each country and maturity identifies an observation; yield is the percentage, date is the observation date in year-month-day format, and source identifies the reported source. Compare the dates before treating points as a same-day curve.

A specific historical date

Use historical when a risk report or research dataset needs one country, maturity and date. All three parameters are required.

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/historical?country=CL&maturity=10Y&date=2025-06-15"
{
"success": true,
"country": "CL",
"maturity": "10Y",
"date": "2025-06-15",
"yield": 4.38,
"source": "official"
}

The response repeats the requested country, maturity and date, followed by the percentage yield and source. This is a reference example, not a guarantee that every calendar date has an observation. A missing country, maturity or date combination can return 404; do not silently substitute a prior business day unless your analysis explicitly calls for it.

Time series and changing yields

Retrieve a historical series

The timeseries endpoint requires country, maturity, start and end. Dates use Y-m-d, and the end date must not precede the start date.

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/timeseries?country=CL&maturity=10Y&start=2025-11-25&end=2026-11-25"
{
"success": true,
"country": "CL",
"maturity": "10Y",
"series": [
{ "date": "2025-01-02", "yield": 4.21 },
{ "date": "2025-01-03", "yield": 4.19 },
{ "date": "2025-01-06", "yield": 4.23 }
]
}

Each series item contains an observation date and a percentage yield. The reference series shown here contains dates outside the range in its accompanying request. Treat it as an illustration of the response shape, not as a valid result for that range; production code should check returned dates against the requested window.

For analytics, retain the observation date alongside the yield and sort explicitly before calculating changes. Weekends, Chilean market holidays and other non-trading days can leave gaps. A gap is not a zero yield, and forward-filling it changes the meaning of a return or volatility calculation.

Summarize a period

Use fluctuation for a period summary. It requires countries, maturity, start and end; the country parameter can be comma-separated.

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/fluctuation?countries=CL&maturity=10Y&start=2025-11-25&end=2026-11-25"
{
"success": true,
"maturity": "10Y",
"start": "2025-11-25",
"end": "2026-11-25",
"data": {
"CL": {
"start_yield": 4.21,
"end_yield": 4.52,
"change": 0.31,
"min": 3.87,
"max": 4.76
}
}
}

The start_yield and end_yield fields are percentage yields. Here change is 0.31 percentage points, or 31 basis points; min and max are the period’s reported extremes. The summary does not include the dates of those extremes, so retrieve the series when those dates matter.

Build a Chile curve and compare spreads

Request the curve

The curve endpoint requires country and accepts an optional date. If omitted, the date defaults to the latest available day with data.

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/curve?country=CL"
{
"success": true,
"country": "CL",
"date": "2026-11-25",
"inverted": false,
"curve": {
"1M": 5.31, "3M": 5.27, "6M": 5.18,
"1Y": 4.98, "2Y": 4.25, "5Y": 4.39,
"10Y": 4.52, "30Y": 4.71
}
}

curve maps each returned maturity to a percentage yield, and date identifies the curve’s observation date. inverted is the API’s inversion indicator. The reference does not specify its detection rule, so do not assume it tests a particular pair of maturities; calculate your own named-tenor slope when your methodology requires one.

Alternatively, request several maturities with latest and assemble the returned country-and-maturity observations. Check that their dates match, sort the tenors by term rather than alphabetically, and leave unavailable points missing. In the latest example, the 10Y minus 2Y slope is 27 basis points; that describes those two returned points, not every segment of the curve.

Compare Chile with a benchmark

The spread endpoint requires country and benchmark. Its optional maturity defaults to 10Y. This documented request compares Chile with the US benchmark:

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/spread?country=CL&benchmark=US&maturity=10Y"
{
"success": true,
"country": "CL",
"benchmark": "US",
"maturity": "10Y",
"spread_bps": 215,
"country_yield": 4.52,
"benchmark_yield": 2.37
}

country_yield and benchmark_yield are percentages; spread_bps is already in basis points. The sample spread is consistent with subtracting the benchmark yield from the Chile yield and multiplying by 100. The response does not show observation dates or currencies, so verify alignment and instrument conventions before interpreting the spread as a risk premium.

Intraday data, freshness and operational handling

Read intraday snapshots

The intraday endpoint takes country, maturity and date. It is useful when a dashboard needs individual snapshots rather than a single daily observation.

curl -H "X-API-Key: YOUR_API_KEY" \
"https://bonds-api.com/api/v1/intraday?country=CL&maturity=10Y&date=2026-11-25"
{
"success": true,
"country": "CL",
"maturity": "10Y",
"date": "2026-11-25",
"snapshots": [
{ "yield": 4.51, "fetched_at": "2026-11-25T09:30:00Z", "source": "market" },
{ "yield": 4.53, "fetched_at": "2026-11-25T12:00:00Z", "source": "market" },
{ "yield": 4.52, "fetched_at": "2026-11-25T15:30:00Z", "source": "market" }
],
"count": 3,
"meta": { "timezone": "UTC" }
}

Each snapshot has a percentage yield, a fetched_at timestamp and a source. The trailing Z denotes UTC, consistent with meta.timezone; convert it for display without discarding the original timestamp. count reports the number of snapshots. A date is not itself a timestamp, and a fetch time should not automatically be treated as a trade time.

Cache deliberately and handle errors

The reference does not specify a fixed update frequency. Choose polling and cache durations according to the freshness your application needs, retain the returned observation date or timestamp, and display it with the value. Historical responses can be cached separately from latest and intraday responses, but allow a way to refresh stored history if the source revises it.

Cache by endpoint and all relevant request parameters, including country, maturity and date range. The reference does not describe pagination, so avoid assuming page parameters or that an undocumented pagination scheme exists. For large research extracts, validate the returned dates and coverage before using the data downstream.

Errors have success=false and an error message. Handle 401 as an authentication problem, 403 as an account quota issue, 404 as unavailable data and 422 as invalid input. For 429 or 500, use bounded retries and backoff rather than retrying continuously; do not cache an error as a yield.

Client implementations

The following Python example calls all seven Chile endpoints with the documented header. It checks the HTTP response and the API’s success field before reading the latest yields. Store the key in the environment rather than embedding it in an application.

import os
import requests

BASE = "https://bonds-api.com/api/v1/"
headers = {"X-API-Key": os.environ["BONDS_API_KEY"]}

def get_data(endpoint, params):
response = requests.get(
BASE + endpoint, headers=headers, params=params, timeout=30
)
response.raise_for_status()
payload = response.json()
if not payload.get("success"):
raise ValueError(payload.get("error", "Request failed"))
return payload

latest = get_data("latest", {
"countries": "CL", "maturities": "2Y,10Y"
})
for maturity, observation in latest["data"]["CL"].items():
print(maturity, observation["yield"], observation["date"])

historical = get_data("historical", {
"country": "CL", "maturity": "10Y", "date": "2025-06-15"
})
series = get_data("timeseries", {
"country": "CL", "maturity": "10Y",
"start": "2025-11-25", "end": "2026-11-25"
})
spread = get_data("spread", {
"country": "CL", "benchmark": "US", "maturity": "10Y"
})
curve = get_data("curve", {"country": "CL"})
intraday = get_data("intraday", {
"country": "CL", "maturity": "10Y", "date": "2026-11-25"
})
fluctuation = get_data("fluctuation", {
"countries": "CL", "maturity": "10Y",
"start": "2025-11-25", "end": "2026-11-25"
})

These calls are independent examples: a missing historical observation can stop this sequential script before later calls run. In a production ingestion job, handle failures per request and record which country, maturity and period need attention.

The same request parameters work with JavaScript fetch. This version also reads the latest observation fields:

const base = "https://bonds-api.com/api/v1/";
const key = process.env.BONDS_API_KEY;

async function getData(endpoint, params) {
const url = new URL(base + endpoint);
url.search = new URLSearchParams(params).toString();
const response = await fetch(url, {
method: "GET",
headers: { "X-API-Key": key }
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const payload = await response.json();
if (!payload.success) throw new Error(payload.error);
return payload;
}

async function main() {
const latest = await getData("latest", {
countries: "CL", maturities: "2Y,10Y"
});
for (const [maturity, point] of Object.entries(latest.data.CL)) {
console.log(maturity, point.yield, point.date);
}

const historical = await getData("historical", {
country: "CL", maturity: "10Y", date: "2025-06-15"
});
const series = await getData("timeseries", {
country: "CL", maturity: "10Y",
start: "2025-11-25", end: "2026-11-25"
});
const spread = await getData("spread", {
country: "CL", benchmark: "US", maturity: "10Y"
});
const curve = await getData("curve", { country: "CL" });
const intraday = await getData("intraday", {
country: "CL", maturity: "10Y", date: "2026-11-25"
});
const fluctuation = await getData("fluctuation", {
countries: "CL", maturity: "10Y",
start: "2025-11-25", end: "2026-11-25"
});
}

main().catch(console.error);

For PHP, file_get_contents can send the same header through a stream context. The example raises an error when the request fails or the decoded payload reports failure.

<?php
$base = 'https://bonds-api.com/api/v1/';
$key = getenv('BONDS_API_KEY');

function getData($endpoint, $params) {
global $base, $key;
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => "X-API-Key: " . $key . "\r\n"
]
]);
$body = file_get_contents(
$base . $endpoint . '?' . http_build_query($params),
false,
$context
);
if ($body === false) {
throw new RuntimeException('Request failed');
}
$data = json_decode($body, true, 512, JSON_THROW_ON_ERROR);
if (empty($data['success'])) {
throw new RuntimeException($data['error'] ?? 'Request failed');
}
return $data;
}

$latest = getData('latest', [
'countries' => 'CL', 'maturities' => '2Y,10Y'
]);
foreach ($latest['data']['CL'] as $maturity => $point) {
echo $maturity . ' ' . $point['yield'] . ' ' . $point['date'] . PHP_EOL;
}
$historical = getData('historical', [
'country' => 'CL', 'maturity' => '10Y', 'date' => '2025-06-15'
]);
$series = getData('timeseries', [
'country' => 'CL', 'maturity' => '10Y',
'start' => '2025-11-25', 'end' => '2026-11-25'
]);
$spread = getData('spread', [
'country' => 'CL', 'benchmark' => 'US', 'maturity' => '10Y'
]);
$curve = getData('curve', ['country' => 'CL']);
$intraday = getData('intraday', [
'country' => 'CL', 'maturity' => '10Y', 'date' => '2026-11-25'
]);
$fluctuation = getData('fluctuation', [
'countries' => 'CL', 'maturity' => '10Y',
'start' => '2025-11-25', 'end' => '2026-11-25'
]);

A separately supplied live sample uses a different authentication method and response schema from the Chile API reference. It is reproduced below for comparison only: its US value is not a Chile yield, and its URL puts the key in a query parameter. Do not put a real key in that URL; use the documented header-based Chile requests above.

curl -s "https://bonds-api.com/api/v1/latest?countries=US&maturities=10Y&api_key=YOUR_API_KEY"
{
"success": true,
"date": "2026-11-25",
"rates": {
"US_10Y": 4.917
},
"dates": {
"US_10Y": "2026-11-25"
},
"currencies": {
"US_10Y": "USD"
},
"meta": {
"request_id": "0208d5ba-c9e9-4399-8e5a-1c86cb38e85c",
"timestamp": "2026-11-25T00:04:05+00:00"
}
}

In that sample, rates holds the yield, dates its observation date, and currencies its currency. The metadata timestamp has a UTC offset of +00:00, while request_id identifies the request. Because this shape differs from the Chile reference’s data structure, verify the schema returned to your account before deploying a parser.

FAQ

How do I request a Chile yield curve for a historical date?

Call curve with country=CL and the optional date in Y-m-d format. Use the returned date and maturity keys to label the curve, and handle unavailable dates or maturities explicitly.

Can I calculate a historical spread?

For a historical analysis, align the relevant yield observations by date and maturity, then subtract the benchmark percentage yield from the Chile percentage yield and multiply by 100. The documented spread endpoint itself does not list a date parameter.

What should I do when a date has no yield?

Keep the observation missing and distinguish non-trading days from request errors. If your model uses prior-day values, apply that rule explicitly and retain the original observation date.

How frequently should I refresh a dashboard?

Set the refresh interval according to the dashboard’s needs and the observations returned. The reference does not state a fixed update cadence; show the observation date or snapshot timestamp so users can assess freshness.

To start building a Chile yield workflow, Register for an API key, or explore MCP for another way to work with Bonds API.

Start building with bond data today

Get your API key and access sovereign bond yields across 60+ countries. 7-day free trial, no credit card required.