1{
2  "expand": [
3    "items"
4  ],
5  "carbon_unit": "tonne",
6  "distance_unit": "kilometer",
7  "items": [
8    {
9      "type": "accommodation",
10      "methodology": "SQUAKE",
11      "external_reference": "string",
12      "number_of_nights": 2,
13      "starts_on": "2020-01-01",
14      "ends_on": "2020-01-01",
15      "country": "DE",
16      "number_of_travelers": 1
17    }
18  ]
19}

The API for
 CO₂ solutions

Made so you can scale and perform.
 Trusted by leading tech companies, the RESTful API ensures easy integrations.

API Documentation
flask
100ms
Response time
code
Postman
Collections available
chip
99,99%
Uptime

What can
 the API do?

Request example
{
   "carbon_unit": "kilogram",
   "items": [
      {
         "type": "flight",
         "methodology": "TIM",
         "origin": "BER",
         "destination": "MAD",
         "booking_class": "business",
         "aircraft_type": "320"
      }
   ]
}
Response example
{
   "carbon_quantity": 149.403,
   "carbon_unit": "kilogram"
}
Request example
curl -X GET "https://api.squake.earth/v2/pricing" \
    -G \
    --data-urlencode "carbon_quantity=149.403" \
    --data-urlencode "carbon_unit=kilogram" \
    --data-urlencode "product=product_026c41"
Response example
{
    "id": "eyJhbGciOiJIUzI1.eyJwI...",
    "valid_until": "2024-03-06",
    "carbon_quantity": 149.403,
    "carbon_unit": "kilogram",
    "currency": "EUR",
    "total": 521,
    "price": "price_vDCDxn",
    "product": "product_026c41"
}
Request example
{
   "carbon_unit": "kilogram",
   "product": "product_026c41",
   "items": [
      {
         "type": "flight",
         "methodology": "TIM",
         "origin": "BER",
         "destination": "MAD",
         "booking_class": "business",
         "aircraft_type": "320"
      }
   ]
}
Response example
{
    "id": "eyJhbGciOiJIUzI1.eyJwI...",
    "valid_until": "2024-03-06",
    "carbon_quantity": 149.403,
    "carbon_unit": "kilogram",
    "currency": "EUR",
    "total": 521,
    "price": "price_vDCDxn",
    "product": "product_026c41"
}
Request example
{
    "pricing": "eyJhbGciOiJIUzI1.eyJwI..."
}
Response example
{
    "id": "purchase_euc1tLAHy2CVu",
    "carbon_quantity": 149403,
    "carbon_unit": "gram",
    "total": 521,
    "currency": "EUR",
    "files": [
        "file_2658d57c-11cc-4e6-886-23379633",
        "file_9bbda4a2-33fd-460-a3f-2311ffb8"
    ],
    "payment_method": "batch_settlement",
    "state": "reserved"
}
Request example
curl \
 -X GET https://api.squake.earth/v2/products
Response example
{
    "id": "product_05f188",
    "title": "Neste Sustainable Aviation Fuel™",
    "prices": {
        "id": "price_GgJcNx"
    }
}
Request example
curl -X GET "https://api.squake.earth/v2/files/file_2658d57c-11cc-4e6e-8861-23379633bed6"
Response example
{
    "id": "file_2658d57c-11cc-4e6-886-23379633",
    "filename": "Confirmation-euc1tLAHy2CVu.pdf",
    "purpose": "confirmation_document",
    "size": 123463,
    "type": "pdf",
    "download_url": "https://api.squake.earth/downloads?token=eyJhbG..."
}
copy
Code snippets
Ready-to-Paste code snippets for quick integration
bookmark
Libraries
Use our custom libraries
and code collections
developer
Developer support
Connect to us via slack whenever you have questions

Build what you want

From transparency over CO₂ emissions to embedding compensation offers the way you want - the SQUAKE API is your wingman.

Embed CO2 compensations as
an ancillary for your customers

Embed CO2 compensations as
an ancillary for your customers

Track, visualise, and analyse your carbon emissions in self-built dashboards.

Track, visualise, and analyse your carbon emissions in self-built dashboards.

Integrate carbon values for client education and easy comparison in your interfaces.

Integrate carbon values for client education and easy comparison in your interfaces.

Embed the price for climate projects into your products, so customers can opt-in for them.

Embed the price for climate projects into your products, so customers can opt-in for them.

Start bringing your carbon targets to life

Get started