The whole source, organized and ready to query: every endpoint on this page answers in milliseconds. Every response carries
as_of: how current the data is. How datasets work.Search the directories
POST /co/dian-trade/directory-search/v1 Dataset
Every year of both directories in one search: by name, flow, year and tariff
code.
as_of (how current the data is), the applied filters, total
(matches across every page), page, per_page, total_pages, count and
results[]: one company’s row in one year’s directory each, newest year first,
then by value, largest first.
DIAN publishes natural persons without their identification or name, as
PERSONA NATURAL; those rows are here with their figures, marked
natural_person: true, and no NIT finds them. The current year’s directory
accumulates as months close (through_month says to when), and DIAN also
revises past years, so a company’s figures for a year can change.Company trade profile
POST /co/dian-trade/profile/v1 Dataset
Every year a company imported or exported, from its NIT.
as_of, found, document_number, name (as the most recent
directory prints it), years[] (every year the company appears in either
directory, newest first), imports[] and exports[]: the company’s row in each
year’s importers and exporters directory, newest first, with the same fields as a
search result.
A NIT that appears in no directory since 2017 returns
found: false with HTTP
200, not an error. A company that only imports has an empty exports, and the
other way around.Full reference
Schemas, all response fields, and an interactive playground.