# HealthScope Chile API v1 / developer guide

Versioned, read-only JSON snapshots: https://selguetagodoy.github.io/healthscope/api/v1/manifest.json.

Each item has an id, title and source_url. Other fields are optional. `attributes` preserves selected source fields without claiming independent verification. `generated_at` is when this API snapshot was assembled; `source_updated_at` is supplied when known. `record_count` is the count of records published in this collection, not a census of Chile. For large datasets, the main URL includes the first page; enumerate `pages` to retrieve every record (do not double count the preview). No server-side filters, freshness guarantee, medical advice, or redistribution license for third-party sources is implied. Always cite the original source and consult its current status. The English description here is the quick guide; fields and scopes are in the manifest and each collection.

## curl

`curl -s https://selguetagodoy.github.io/healthscope/api/v1/manifest.json`

## Python

`import requests; print(requests.get('https://selguetagodoy.github.io/healthscope/api/v1/manifest.json', timeout=10).json()['collections'])`

## JavaScript

`fetch('https://selguetagodoy.github.io/healthscope/api/v1/manifest.json').then(r => r.json()).then(console.log)`

## Errors and changes

Missing files return GitHub Pages HTTP 404. Invalid JSON indicates a deployment failure. v1 is generated from the repository's published snapshots; breaking field changes require a new major version. Check the manifest `generated_at` and repository history for updates.
