Skip to content

CarbonDoomsDay API

by carbondoomsday.com

HTTP BasicHTTPSOpen Data
Open documentation ↗

Overview

A real-time RESTish web API for worldwide carbon dioxide levels.

CarbonDoomsDay is an open data API from carbondoomsday.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Open Data
Base URL
https://api.carbondoomsday.com/api
Version
v1
Endpoints
2
Spec updated
2018-08-24

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.carbondoomsday.com/api/co2/" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://api.carbondoomsday.com/api/co2/", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.carbondoomsday.com/api/co2/",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/co2/CO2 measurements from the Mauna Loa observatory.
GET/co2/{date}/CO2 measurements from the Mauna Loa observatory.

Questions

Does the CarbonDoomsDay API need an API key?

Yes. The CarbonDoomsDay API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the CarbonDoomsDay API support HTTPS?

Yes, the CarbonDoomsDay API is served over HTTPS.

How many endpoints does the CarbonDoomsDay API have?

Its OpenAPI description lists 2 endpoints in version v1. All of them are shown on this page.

What are alternatives to the CarbonDoomsDay API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

Compare alternatives →

Listed from APIs.guru (CC0).