yields
Bond yields history
https://docs.economicsapi.com/endpoints/getyieldhistory
gethttps://api.economicsapi.com/v1/yields/{slug}/history
Dated source observations, oldest first. Returns the latest 5,000 observations within the requested date window by default.
curl -X GET "https://api.economicsapi.com/v1/yields/example/history" \
-H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"Authorization
AuthorizationstringheaderrequiredBearer token. API key from your economicsapi dashboard Format: `Bearer sk_live_xxxxxxxxxxxxxxxxxxxx`.
Path parameters
slugstringrequiredQuery parameters
fromstring<date> | nullStart date, YYYY-MM-DD
tostring<date> | nullEnd date, YYYY-MM-DD
limitintegerdefault 5000Maximum observations; use date windows for longer histories
min 1 · max 5000
Response
200Successful Response
application/jsondataMarketPointOut[]required401Missing or invalid API key
application/jsonerrorstringmessagestringrequest_idstring422Validation Error
application/jsondetailValidationError[]429Rate limit exceeded
application/jsonerrorstringmessagestringrequest_idstring