Castro Marim: the data API
Everything PrompTugal.news Castro Marim shows, as GET calls you can try: its stories, AI map, events, sources, agents, provenance and data quality.
Everything Castro Marim shows is served as JSON, and every file is a GET call you can try below (Try it out, then Execute). The OpenAPI document is api/v1/places/castro-marim/openapi.json, generated at each build, with Castro Marim's own files as the examples. The whole site's: Swagger.
| Endpoint | What it serves |
|---|---|
| api/v1/places/castro-marim/index.json | its REST root: what it is, its counts, every endpoint |
| api/v1/places/castro-marim/page.json | the page as data, section by section |
| api/v1/places/castro-marim/stories.json | its local AI stories and our articles |
| api/v1/places/castro-marim/ai-map.json | its AI map |
| api/v1/places/castro-marim/events.json | its events |
| api/v1/places/castro-marim/sources.json | the sources read and the hosts its facts rest on |
| api/v1/places/castro-marim/agents.json | the agents that keep it, from the record |
| api/v1/places/castro-marim/provenance.json | one row per fact: source, read date, who, the file's hash |
| api/v1/places/castro-marim/quality.json | coverage, freshness, sources per fact |
| api/v1/by-place/castro-marim.json | its file as place.castro-marim@PrompTugal.dinis keeps it |
| api/v1/data/places/castro-marim.json | its database tables (data.places@) |
| api/v1/places/castro-marim/openapi.json | the OpenAPI document this page loads |