agentdata

One Python client and CLI over 296 public datasets — company registries,
sanctions lists, procurement awards, drug approvals — with no API keys and no
accounts.
Government data holds the decisive facts about companies, but it is scattered
across 186 public APIs, each with its own pagination, rate
limits, and undocumented quirks. agentdata puts 296 of those datasets behind
one interface: a pure-standard-library client and CLI across 36 jurisdictions. Every upstream gotcha we hit live is already pinned — politeness
and caching are built in.
Install
python -m pip install agentdata
For a reproducible install, pin the release: python -m pip install agentdata==0.3.76.
Prefer not to touch PyPI? Install straight from a release tarball:
python -m pip install https://github.com/dicaria/agentdata/archive/refs/tags/v0.3.76.tar.gz
Or via git (pin a tag for reproducible installs):
python -m pip install git+https://github.com/dicaria/agentdata.git@v0.3.76
Or track the latest release (convenience for agents and scripts — a fresh
release does not trigger a reinstall under the same URL, so pass
--force-reinstall when you want the new one):
python -m pip install --force-reinstall https://github.com/dicaria/agentdata/releases/latest/download/agentdata-latest.tar.gz
Two API families
| Family |
Where it runs |
Credentials |
Cost |
| Enrichment |
Locally — the SDK calls public government / open-data APIs from your machine |
none |
free |
| Corpus |
Hosted service operated by dicaria |
credentials issued by dicaria |
per service agreement |
Most commands are enrichment: they need no configuration, no keys, no account.
Corpus commands are marked in the docs and require credentials issued by
dicaria under a separate service agreement — contact contact@dicaria.com.
What can you ask it?
Commands follow <domain> <source>_<dataset> — one command per upstream
dataset, parameters kept under their upstream names. Every row below works as
agentdata <domain> <command> … from the shell, or
c.<domain>.<command>(…) from Python.
| Question |
Commands |
| Is this company sanctioned? |
legal csl_screening_list · legal co_sic_sanctions · legal wb_debarred_firms · legal ca_sema_sanctions · legal ru_cbr_warning_list |
| Do consumers complain about this company? |
legal cfpb_complaints · legal cfpb_suggest_company · legal br_bacen_complaints |
| Who owns or controls it? |
company gleif_direct_parent · company no_brreg_roller · company fr_recherche_search |
| Did it win public contracts? |
procurement br_pncp_contracts · procurement ungm_contract_awards · procurement wb_procnotices |
| Is its drug or device approved — or recalled? |
healthcare fda_drug_approvals · healthcare gb_mhra_alerts · healthcare fda_drug_recalls |
| What does this facility or fleet emit? |
esg climatetrace_sources · transportation thetis_mrv_datasets · transportation paris_mou_detentions |
| Which aircraft does this registration mark belong to? |
transportation ca_ccar_search · transportation ca_ccar_aircraft |
| Pull a company card from a national registry |
company ch_zefix_firm · company co_rues_companies · company kr_hometax_biz_status · company kz_gbd_ul_companies · company cz_ares_ekonomicke_subjekty · company in_sebi_intermediaries · company tr_spk_listed · company tr_bddk_institutions · company ru_cbr_credit_orgs · company br_bacen_institutions · company br_bacen_branches · company br_bacen_domains · company br_bacen_dasfn |
| Has its broker been expelled, or its regulator fined it? |
legal in_sebi_orders · company in_sebi_default_brokers |
| Has the regulator fined it, banned it, or put it under a special regime? |
legal tr_spk_fines · legal tr_spk_bans · legal br_bacen_regimes |
| How big is the country it operates in? |
economy wb_wdi_values · economy eurostat_table · economy fred_series |
| Convert an EUR amount, or read a bilateral trade flow |
economy ecb_fx_rates · economy un_comtrade_trade |
Quick start
from agentdata import Client
c = Client() # zero config: enrichment commands work immediately
c.healthcare.fda_drug_recalls(search='recalling_firm.exact:"SV Labs Toronto Corporation"')
c.company.gleif_lei_records(lei="5493001KJTIIGC8Y1R12") # LEI -> entity identity card (GLEIF)
c.company.ch_zefix_firm_search(name="siemens") # Swiss commercial registry (Zefix)
c.esg.climatetrace_sources(owner_ids="E100000001492", year=2023) # owner -> facility-level emissions
c.transportation.paris_mou_inspections(period_min="01/12/2025", period_max="31/12/2025", ism_company_imo_number="0052193") # port-state inspection flow by management company (Paris MoU; dd/mm/yyyy window up to 3 years)
c.legal.csl_screening_list(name="VTB BANK") # sanctions screening (US CSL)
c.research.openalex_works(search="vaccine", ror="01xdqrp08")
c.procurement.br_pncp_contracts(data_inicial="20260901", data_final="20260930", pagina=1)
c.security.osv_vulns(package="lodash", ecosystem="npm", version="4.17.15")
c.economy.wb_wdi_values(country="CHN", indicator="NY.GDP.MKTP.CD", date="2020:2023") # World Bank indicator values
c.economy.ecb_fx_rates(currency="USD", start="2026-10-01", end="2026-10-31") # euro reference rate (1 EUR = X)
The same commands from the shell — ten entry points, agentdata plus one
per domain:
agentdata healthcare rxnav_rxcui_by_name --name atorvastatin
agentdata company gleif_lei_records_search --filter-entity-legal-name "Siemens" --page-size 3
agentdata legal csl_screening_list --name "VTB BANK"
agentdata esg climatetrace_sources --owner-ids E100000001492 --year 2023
agentdata procurement br_pncp_contracts --data-inicial 20260901 --data-final 20260930 --pagina 1
agentdata economy wb_wdi_values --country CHN --indicator NY.GDP.MKTP.CD --date 2020:2023
If a domain entry-point command (company, legal, …) collides with another
tool on your machine, python -m agentdata <domain> … is the equivalent
invocation.
Corpus commands use the same shape with hosted credentials:
c2 = Client(base_url="https://…", api_key="mk_live_…") # PAT issued by dicaria
c2.company.read(id=1476, level="tier2")
Show me a response
Real output of agentdata healthcare rxnav_rxcui_by_name --name atorvastatin —
every command returns this shape:
{
"ok": true,
"domain": "healthcare",
"tool": "rxnav_rxcui_by_name",
"input": { "name": "atorvastatin" },
"from_cache": false,
"reason": "RxNav normalization: drug name 'atorvastatin' → RxCUI 83367 (ingredient level)",
"result": {
"rxcui": "83367",
"normalized_name": "atorvastatin",
"tty": "IN"
},
"evidence": [
{
"quote": "RxCUI 83367 = atorvastatin",
"url": "https://rxnav.nlm.nih.gov/REST/rxcui/83367/properties.json"
}
],
"source": {
"provider": "rxnav",
"execution": "local",
"observed_at": "2026-11-02T03:28:22.213Z"
},
"request_id": "3f343e2f-3b08-46e8-ac69-8ee05adce548",
"jurisdiction": "US"
}
A plain-language reason, evidence rows with a checkable quote and source
URL, provenance in source, the issuing authority in jurisdiction, and a
request_id for support — your code parses one shape across all datasets.
Cached responses are identical, with from_cache: true.
Why not just call the APIs yourself?
You can — and then you get to rediscover what is already pinned here:
- Quirks are pre-solved, not rediscovered. Every command encodes traps we
hit against the live API: anti-forgery token dances, Socrata parameters that
are silently ignored, registries that clamp your page size without an error.
- One envelope across all 296 commands. Query echo,
reason, evidence,
source metadata, jurisdiction — your code parses one shape.
- Upstream parameter names, verbatim. What the official API docs call a
parameter is what the SDK takes — no invented vocabulary to unlearn.
- Polite by default. Per-source rate limits are enforced before every
request (rate-limits ledger),
and a cache hit costs no rate budget.
- Zero dependencies. Python 3.10+ standard library only.
Coverage
296 datasets · 186 upstream providers · 36 jurisdictions: US 68 · global 40 · UK 29 · EU 20 · Canada 14 · Brazil 10 · France 10 · JP 9 · Switzerland 7 · DE 7 · Korea 7 · ES 6 · HK 6 · India 6 · Türkiye 6 · Australia 5 · IT 5 · New Zealand 5 · AT 3 · Colombia 3 · MX 3 · NL 3 · Czechia 2 · EE 2 · Guernsey 2 · Ireland 2 · LV 2 · Norway 2 · PL 2 · RU 2 · SG 2 · UA 2 · DK 1 · Finland 1 · Jersey 1 · Kazakhstan 1.