← Crafts
K5 API preview

K5 API

Environment pilot Solo backend engineer

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
GET /population lookup miss projected query documents JSON series K5 client Django REST HTTP cache Document store
API read path
@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})
K5 API response placeholder
Screenshot placeholder — swap for an API explorer or sample JSON chart.