CL

COSMIC LAB API

PUBLIC API
API ONLINE · REST · JSON

Cosmic Lab API.

A REST API with six datasets, readable endpoints, query parameters, filtering, pagination, and JSON responses.

GET /api/v1/airports?state_code=CA&page=1OPEN JSON ↗
{
  "page": 1,
  "pageSize": 3,
  "total": 10,
  "data": [ ... ]
}
AIRPORTS

100 records · US airports

Filter by state codehttps://api.cosmic-lab.workers.dev/api/v1/airports?state_code=CA&page=1
{
  "id": 1,
  "airport_name": "Hartsfield Jackson Atlanta International Airport",
  "iata_code": "ATL",
  "icao_code": "KATL",
  "city": "Atlanta",
  "state_code": "GA",
  "state_name": "Georgia",
  "country_code": "US",
  "country_name": "United States",
  "coordinates": "33.6367,-84.4281"
}
OIL FIELDS

50 records · 25 land / 25 ocean fields

Filter by country codehttps://api.cosmic-lab.workers.dev/api/v1/offshore-oil-fields?country_code=BR&page=1
{
  "id": 1,
  "fieldName": "Ghawar Offshore Extension",
  "locationType": "ocean_based",
  "country": "Saudi Arabia",
  "operator": "Saudi Aramco",
  "latitude": 26.45,
  "longitude": 50.25,
  "wellDepthM": 85,
  "dailyProductionBbl": 4800,
  "discoveryYear": 1948,
  "basin": "Arabian Gulf"
}