K5 API
Gateway to Philippines environmental indicators — CO₂ emissions, population statistics, and climate datasets via Django REST Framework on Google Cloud.
Problem
Climate dashboards need authoritative numbers, not scraped headlines. K5 API exposes curated Philippine environmental indicators — population series, emissions proxies, and related datasets — through a cached Django REST surface backed by document storage.
What it covers
- Django REST endpoints for population and emissions projections
- Mongo-backed document store for OWID-style climate series
- Ten-minute HTTP caching on read-heavy routes
- GCP deployment target for grassroots climate tooling
@api_view(['GET'])
@cache_page(600)
def population(request):
projected_documents = get_data_with_projection({'year': 1, 'population': 1})
population = handle_missing_data(projected_documents, 'population')
return Response({"ph_population": population})