Skip to main content

API Documentation

All endpoints are static files. No authentication required. CORS-enabled. Updated monthly.

Endpoints

/dpg-dpi-govstack-map/api/atlas.jsonJSON

Full dataset — projects, organizations, deployments, relationships, and metadata.

Schema: AtlasDataset

Download →
/dpg-dpi-govstack-map/api/projects.jsonJSON

All projects with full metadata, community health scores, and deployment countries.

Schema: Project[]

Download →
/dpg-dpi-govstack-map/api/organizations.jsonJSON

All organizations with coordinates, associated projects, and governance roles.

Schema: Organization[]

Download →
/dpg-dpi-govstack-map/api/relationships.jsonJSON

All relationships between projects and organizations.

Schema: Relationship[]

Download →
/dpg-dpi-govstack-map/api/deployments.jsonJSON

All known project deployments with country and status.

Schema: Deployment[]

Download →
/dpg-dpi-govstack-map/api/map.geojsonGeoJSON

GeoJSON FeatureCollection of organization locations for map rendering.

Schema: GeoJSON FeatureCollection

Download →
/dpg-dpi-govstack-map/api/projects.csvCSV

Flat CSV of all projects — suitable for spreadsheet analysis.

Schema: Tabular

Download →
/dpg-dpi-govstack-map/api/graph.jsonJSON

Graph data with nodes and edges for visualization tools.

Schema: { nodes, edges }

Download →
/dpg-dpi-govstack-map/api/search-index.jsonJSON

Pre-built Lunr.js search index for client-side full-text search.

Schema: Lunr serialized index

Download →

Usage Examples

Fetch all projects (JavaScript)

const res = await fetch("https://mgifford.github.io/dpg-dpi-govstack-map/api/projects.json");
const { projects } = await res.json();
console.log(`${projects.length} projects loaded`);

Load GeoJSON in MapLibre GL JS

map.addSource("atlas-orgs", {
  type: "geojson",
  data: "https://mgifford.github.io/dpg-dpi-govstack-map/api/map.geojson"
});

Download via curl

curl -O https://mgifford.github.io/dpg-dpi-govstack-map/api/projects.csv

Schema Reference

Full Zod-validated TypeScript schemas are available in the source repository atsrc/lib/schema.ts. See docs/SCHEMA.md for annotated documentation.