Getting started
Set up your environment and make your first OpenDecisions API calls
Getting started
This guide walks you through using the OpenDecisions API and understanding the schema. OpenDecisions exposes decision-relevant facts (institutions, programs, cost, outcomes) and derived "nutrition label" indexes via a read-only API, so you can build tools that help students and counselors compare options with clear provenance and uncertainty.
Prerequisites
- Access to an OpenDecisions API instance (e.g. local:
http://localhost:8000or your deployed URL) - Optional:
curlor a REST client for testing
1. Check API health
curl http://localhost:8000/healthExpected response:
{
"status": "ok",
"schema_version": "odg/v1"
}2. Explore the root and v1 info
curl http://localhost:8000/
curl http://localhost:8000/v1/The root returns API name, version, and links to OpenAPI docs (/api-docs, /api-redoc, /openapi.json).
3. List institutions
curl "http://localhost:8000/v1/institutions?limit=5"Response is paginated: items, total, limit, offset. Each item conforms to the OpenDecisions Institution type.
4. Get a single institution
Use an institution ID from the list (e.g. inst:us:ipeds:166027 for Harvard):
curl "http://localhost:8000/v1/institutions/inst:us:ipeds:166027"5. Other v1 endpoints
| Resource | List endpoint | Single endpoint |
|---|---|---|
| Institutions | GET /v1/institutions | GET /v1/institutions/{id} |
| Programs | GET /v1/programs | GET /v1/programs/{id} |
| Admission cycles | GET /v1/admission-cycles | GET /v1/admission-cycles/{id} |
| Cost profiles | GET /v1/cost-profiles | GET /v1/cost-profiles/{id} |
| Outcome stats | GET /v1/outcome-stats | GET /v1/outcome-stats/{id} |
| Cohort stats | GET /v1/cohort-stats | GET /v1/cohort-stats/{id} |
| Derived indexes | GET /v1/derived-indexes | GET /v1/derived-indexes/{id} |
All list endpoints support limit and offset for pagination.
Next steps
- Read the Schema reference to understand types and fields.
- Use the API reference for detailed endpoint behavior and response shapes.