Build
Keys and limits, the API guides, embeds, agents, and the open-source Python packages.
The Build tab serves developers writing code against the DFO past the SDK quickstart. It covers keys and limits, calls to the API with or without an SDK, the API guides, chart embeds, agents built on the MCP server, and the open-source Python packages. Patterns show how those parts combine for common jobs, such as putting a live chart in an article.
- Keys and limitsRate limits with and without a free DFO API key, how to create and send one, and how to handle a refused call.
- Call the API directlyCall the DFO API from any language to resolve a question, build and download a dataset, fetch a saved version, and handle errors.
- Embed a chartPut a DFO canvas or card on another website, keep it readable to search engines, and choose between live and snapshot data.
- Use a download in your codeLoad a CSV or Parquet download from /data into pandas or R and keep its citation with your results.
- Build an agentConnect an agent in code to the DFO MCP server with an agent framework or MCP client library, and handle refusals, time limits, and rate limits.
- Open-source packagesOpen-source Python packages from the DFO team for development finance data, from readers for OECD and IMF data to price conversion and entity matching.
API
- How the APIs fit togetherUnderstand how questions, specs, versions, StatVars, series, rows, and facets fit together.
- Resolve a questionResolve a plain-English question into an interpretable DFO spec.
- Get a datasetCreate, retrieve, and download a versioned DFO dataset.
- Look things upResolve names, inspect graph nodes, list what belongs to them, read source documentation, and read and check the graph's model.
- API conventionsReference for DFO API URLs, versioning, response tracing, and errors.
Patterns
- PatternsPatterns that combine DFO features to solve one publishing or engineering problem. A pattern has a diagram, a working example, and the cases where it does not fit.
- A live figure in your articlePut a DFO chart in your page that redraws on current data whenever a reader opens it, with its source written under it.