x402

Website Carbon Estimate (x402)

Estimate CO2 emissions per page view using the Website Carbon methodology. Returns rating A-F, annual estimate.

get/x402/v2/website-carbon-estimate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/website-carbon-estimate
  • Auth: none required

Query parameters

urlstring required

Response

Success

ratingstring
page_size_kbnumber
annual_co2_kgnumber
co2_grams_per_viewnumber

Example response

{
  "url": "https://strale.dev",
  "rating": "A",
  "methodology": "Website Carbon / Sustainable Web Design model",
  "page_size_kb": 3,
  "annual_co2_kg": 0.1,
  "green_hosting": "unknown",
  "page_size_bytes": 3239,
  "recommendations": [
    "This page is already lightweight. Maintain current optimization practices."
  ],
  "transfer_encoding": "gzip",
  "co2_grams_per_view": 0.0008,
  "annual_co2_kg_custom": null,
  "cleaner_than_percent": 100
}

Changes

No recorded changes to this operation across all 1 revision of this API.