Brazil Tesouro Direto Bonds & Central Bank Rates API
Under maintenancePricing
from $4.00 / 1,000 financial bond or benchmark rate extracteds
Brazil Tesouro Direto Bonds & Central Bank Rates API
Under maintenanceExtract official Brazilian Treasury bond yields & prices (Tesouro Selic, IPCA+, Prefixado, Renda+, Educa+) and Banco Central do Brasil macroeconomic rates (Selic, CDI, IPCA, IGP-M, INCC, TR, Poupança, USD/EUR PTAX).
Pricing
from $4.00 / 1,000 financial bond or benchmark rate extracteds
Rating
0.0
(0)
Developer
BR Data Hub
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Features
Share
Extract official Brazilian Treasury bond yields & prices (Tesouro Selic, IPCA+, Prefixado, Renda+, Educa+) and Banco Central do Brasil macroeconomic rates (Selic, CDI, IPCA, IGP-M, INCC, TR, Poupança, USD/EUR PTAX).
Categories: BUSINESS, AI, AGENTS | Billing Model: Pay-Per-Event ($0.01 start + $0.004 per financial-rate-extracted) | Permissions: LIMITED_PERMISSIONS (Safe for AI Agents & MCP)
Why Use brazil-tesouro-bcb-rates?
Accessing structured Brazilian institutional, financial, regulatory, and B2B datasets normally requires navigating legacy Portuguese portals, handling regional encodings (ISO-8859-1 / Brazilian decimal formats 1.234,56), paginating custom endpoints, and normalizing inconsistent schemas.
brdatahub/brazil-tesouro-bcb-rates turns official public records into a clean, fast, schema-validated JSON/CSV API ready for:
- AI Agents & MCP Workflows: Plug directly into Claude Desktop, Cursor, LangChain, CrewAI, n8n, Make, or Zapier via the official Apify MCP Server.
- Quantitative, Financial & Market Intelligence: Automate daily ingestion into Snowflake, BigQuery, PostgreSQL, Google Sheets, Power BI, or internal ERPs.
- B2B Lead Generation & Compliance Automation: Enrich CRMs, underwrite risk, monitor regulatory changes, and size regional markets programmatically.
Key Capabilities
- Zero-Configuration Start: Includes sensible pre-filled defaults so automated runs and health checks succeed out of the box in seconds.
- Normalized Numeric & Date Fields: Brazilian currency, percentage, and date formats are parsed into clean standard floats and ISO strings alongside raw source fields.
- Low Compute Footprint: Optimized async Python (
httpx) container running on256 MBRAM — minimizing Apify compute unit consumption to fractions of a cent per run. - Spreadsheet & API Ready: Export results with one click as JSON, CSV, Excel (
.xlsx), XML, or Parquet.
Input Parameters
| Field | Type | Default | Description |
|---|---|---|---|
datasetMode | string | "both" | Choose Tesouro Direto bonds, Banco Central rates, or both combined. |
bondTypeFilter | string | "" | Optional filter for Tesouro Direto bonds (e.g. 'IPCA', 'Selic', 'Prefixado', 'Renda+', 'Educa+', '2035'). Leave empty for all active bonds. |
bcbHistoryPoints | integer | 1 | Number of latest observations to return per Banco Central series (1 = latest rate only, up to 60 for historical trend). |
Example Input (JSON)
{"datasetMode": "both","bondTypeFilter": "","bcbHistoryPoints": 1}
Output Schema & Real Sample Record
Each extracted item is pushed to the default Apify Dataset and validated against the Actor's structured dataset_schema.json and output_schema.json.
{"record_type": "bcb_macro_indicator","code": "SELIC_META","bcb_sgs_series": 432,"name": "Taxa Selic Meta (COPOM)","bond_family": null,"maturity_date": null,"reference_date": "12/11/2026","value_or_buy_rate": 13.75,"buy_rate": null,"sell_rate": null,"unit_price_buy_brl": null,"unit_price_sell_brl": null,"unit_price_base_brl": null,"unit": "% a.a.","source": "Banco Central do Brasil (SGS #432)","extracted_at_utc": "2026-11-12T17:29:26.488837+00:00"}
Quick Integration Examples
1. Python (apify-client)
from apify_client import ApifyClientclient = ApifyClient("YOUR_APIFY_API_TOKEN")run = client.actor("brdatahub/brazil-tesouro-bcb-rates").call(run_input={"datasetMode": "both","bondTypeFilter": "","bcbHistoryPoints": 1})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
2. Node.js / TypeScript (apify-client)
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('brdatahub/brazil-tesouro-bcb-rates').call({"datasetMode": "both","bondTypeFilter": "","bcbHistoryPoints": 1});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
3. cURL (Synchronous REST API — Instant JSON)
curl -X POST "https://api.apify.com/v2/acts/brdatahub~brazil-tesouro-bcb-rates/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \-H "Content-Type: application/json" \-d '{"datasetMode": "both", "bondTypeFilter": "", "bcbHistoryPoints": 1}'
4. AI Agents & Apify MCP Server
Add brdatahub/brazil-tesouro-bcb-rates as a tool in https://mcp.apify.com so LLM agents can query live Brazilian data on demand with typed input/output schemas and LIMITED_PERMISSIONS sandboxing.
Pricing & Free-Plan Preview Policy
This Actor uses transparent Pay-Per-Event (PPE) pricing:
apify-actor-start:$0.01per run initializationfinancial-rate-extracted:$0.004per structured record written to the dataset
Note for Apify Free-tier accounts: Users on the Apify Free plan automatically receive a clean preview sample per run and exit gracefully with a status message so you can test schema compatibility before upgrading to a paid Apify plan for full bulk extractions.
Changelog & Maintenance
- v1.0 (2026-11): Initial production release with full
input_schema.json,dataset_schema.jsontyped fields,output_schema.jsonv1 export links, and automated cloud health monitoring. - Support: Open an issue in the Issues tab on Apify Store if you need custom filters, additional fields, or enterprise SLAs.