BYTETOOLS

datos.gob.cl API

Free Chilean government open data API with no key: 3,100+ datasets, many CC0, with daily-refresh cadences and organisation IDs that are agency codes. Tested example included.

No API key requiredCORS enabledHTTPSFree tier

Endpoint tested and returned HTTP 200 on 2026-08-21

What is the datos.gob.cl API?

datos.gob.cl is Chile's national open data portal, exposing a free, key-free CKAN API with more than 3,100 datasets. Records carry a machine-readable `frequency` such as `1d` for daily, and a large share are released under CC0, which is unusually permissive for a government catalogue.

Chile's portal is compact and well-tended. An unfiltered search returns the industrial property registry from INAPI — patents, trademarks and design registrations — with eighteen attached resources, a daily refresh cadence and a CC0 licence. That combination of frequency plus genuinely public-domain licensing is rare: most national portals default to CC BY and state cadence in prose, if at all.

Two implementation details are specific to this install. The `frequency` field uses terse codes such as `1d`, `1m` and `1y` rather than ISO 8601 durations or English words, so parse accordingly. And organisation IDs are agency codes like `AY001`, not UUIDs — convenient as stable keys, but they break any assumption that a CKAN `organization.id` is a UUID. Everything is Spanish; there is no English mirror.

Quick facts

Base URL
https://datos.gob.cl/api/3/action
Authentication
No API key for reads. Publishing requires an account tied to a Chilean public body.
Rate limit
No published limit. Some records attach many resources, so keep `rows` low.
Pricing
Free. CC0 and CC BY are both common; check `license_id` per dataset.
CORS
Enabled — callable directly from browser JavaScript
Official docs
Read the docs

How to use the datos.gob.cl API

Every request below was executed against the live API on 2026-08-21, and the response shown is the real body it returned — not an illustration.

1. Search Chilean government datasets

GET https://datos.gob.cl/api/3/action/package_search?rows=1

curl
curl 'https://datos.gob.cl/api/3/action/package_search?rows=1'
JavaScript (fetch)
const res = await fetch("https://datos.gob.cl/api/3/action/package_search?rows=1");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);
Python (requests)
import requests

res = requests.get("https://datos.gob.cl/api/3/action/package_search?rows=1", timeout=20)
res.raise_for_status()
print(res.json())
Response — HTTP 200 (truncated)
{
  "help": "https://datos.gob.cl/api/3/action/help_show?name=package_search",
  "success": true,
  "result": {
    "count": 3187,
    "facets": {},
    "results": [
      {
        "author": "INAPI",
        "author_email": "inapi@inapi.cl",
        "creator_user_id": "c10628f4-72d6-4ed2-b829-4fa542d24231",
        "frequency": "1d",
        "id": "1352aea2-dd82-4311-bd8d-099f922a3426",
        "isopen": true,
        "license_id": "cc-zero",
        "license_title": "Creative Commons CCZero",
        "license_url": "http://www.opendefinition.org/licenses/cc-zero",
        "maintainer": null,
        "maintainer_email": null,
        "metadata_created": "2025-11-24T19:52:14.838114",
        "metadata_modified": "2026-08-20T10:34:46.498453",
        "name": "registros-de-patentes",
        "notes": "Registros de patentes",
        "num_resources": 18,
        "num_tags": 6,
        "organization": {
          "id": "AY001",
          "name": "instituto_nacional_de_propiedad_industrial",
          "title": "Instituto Nacional de Propiedad Industrial",
          "type": "organization",
          "description": "INAPI es el organismo encargado de la administración y atención de los servicios de la propiedad industrial en Chile. Le corresponde, asimismo, promover la protección que brinda la propiedad industrial y difundir el acervo tecnológico y la información de que dispone.\r\n\r\nINAPI contribuye a la estrategia de innovación impulsada por el Gobierno de Chile, generando sistemas eficientes para el uso y protección de los derechos de propiedad industrial, promoviendo la inno

Parameters

ParameterTypeRequiredDescription
qqueryOptionalFree-text Solr query in Spanish across titles, notes and tags. patentes
rowsqueryOptionalDatasets per page. Defaults to 20. 1
startqueryOptionalPagination offset. 0
fqqueryOptionalFilter query, typically by publishing agency. organization:instituto_nacional_de_propiedad_industrial
sortqueryOptionalSort order such as most recently modified. metadata_modified desc

Response fields

successboolean
CKAN's flag; HTTP 200 does not imply success.
result.countinteger
Total matching datasets — 3,187 unfiltered when tested.
results[].frequencystring
Terse cadence code: `1d` daily, `1m` monthly, `1y` yearly. Not ISO 8601.
results[].license_id / license_urlstring
Often `cc-zero` with a link to the Open Definition licence text — public domain, no attribution required.
results[].organization.idstring
An agency code such as `AY001`, not a UUID. Stable, but not the shape other CKAN clients expect.
results[].organization.descriptionstring
A full paragraph describing the agency's remit, in Spanish.
results[].num_resourcesinteger
Attached files. Registry datasets can carry well over a dozen.
results[].isopenboolean
True for the CC0 and CC BY records that make up most of the catalogue.

What you can build with the datos.gob.cl API

  • Track Chilean patent and trademark registry releases
  • Filter to CC0 datasets that need no attribution downstream
  • Schedule harvests using the machine-readable `frequency` code
  • Build a Spanish-language dataset explorer for Chilean agencies

Common errors and how to fix them

HTTP 200 with success false

CKAN rejected your parameters.

Fix: Read `error.message` in the body rather than the status code.

Frequency parser fails

Values are `1d`/`1m`/`1y`, not ISO 8601 durations.

Fix: Parse the short code directly; do not feed it to a duration library expecting `P1D`.

Organisation ID fails UUID validation

Chile uses agency codes like `AY001`.

Fix: Treat `organization.id` as an opaque string across all CKAN portals.

Empty results

The query was in English.

Fix: Search Spanish terms; the index carries no English text.

datos.gob.cl API — frequently asked questions

Is the datos.gob.cl API free?

Yes. All reads are free with no key or registration. Only Chilean public bodies publishing data need an account.

What licence covers Chilean open data?

It varies, but CC0 is common — the industrial property registry returned by an unfiltered search is CC0, meaning public domain with no attribution requirement. Always confirm `license_id` on the individual record.

How often is the data refreshed?

Each record states it in `frequency` using a short code: `1d` for daily, `1m` monthly, `1y` yearly. That is machine-readable, so you can drive your harvest schedule straight from the catalogue.

Is there an English version?

No. Titles, descriptions and agency profiles are Spanish only, so search with Spanish vocabulary and translate on your side if needed.

Tools that pair with this API

datos.gob.cl is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 2026-08-21; always check the official documentation before relying on this API in production, as terms and limits can change.