Open Government, Colombia API

Free to Use Varies (check documentation)

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

Use case: Integrate colombia government open data data into web and mobile applications
Open Government, Colombia data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "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

const url = "https://www.dane.gov.co/";
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

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.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 10/20
🔒 Security 5/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 581ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS NO
CORS UNKNOWN
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →