Overview

The Open Government Colombia API (DANE) offers free access to official Colombian statistical and government data, including census figures, economic indicators, and demographic information. No authentication is required to query the available datasets. DANE (National Administrative Department of Statistics) is Colombia's primary source of official statistics.

Beginner Tip

DANE publishes datasets through its CKAN-compatible portal; start by browsing https://www.dane.gov.co/index.php/estadisticas-por-tema to understand available topics before querying the API.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

Use case: Integrate colombia government open data data into web and mobile applications
Open Government, Colombia data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "status": "success",
  "data": {
    "result": "Data from Open Government, Colombia",
    "description": "Colombia Government Open Data",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

success True if the CKAN API processed the request successfully.
result Contains the dataset list or details depending on the action called.
count Total datasets matching the query (in package_search calls).
title Dataset name in Spanish.
resources Files or endpoints where the dataset content can be downloaded.
notes Description of the dataset content and methodology, in Spanish.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.dane.gov.co/api/3/action/package_search?q=censo&rows=5";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Spanish-only metadata All dataset titles and descriptions are in Spanish.
Use Spanish keywords in searches; for example use censo for census, salud for health, and economia for economics.
Slow API response The DANE portal can have higher latency than other government portals.
Implement request timeouts of at least 30 seconds in your code and add retry logic for failed requests.
Resource URL returns HTML instead of data Some resource links point to web pages rather than direct file downloads.
Check the format field of each resource object and prefer CSV or JSON formats for programmatic access.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS NO
CORS UNKNOWN
Category Government
Difficulty Beginner
Listing details not endpoint-verified

Similar APIs

View All →