Website Carbon Estimate

Estimate the CO2 per page view of a website using the Website Carbon method, with an A to F rating and a yearly figure.

Pay by wallet (x402) website-carbon-estimate

Example

Input
{
  "url": "https://strale.dev"
}
Answer
{
  "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
}

Inputs

FieldTypeRequiredWhat it is
urlstringYes—

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
ratingstringAlways (present in every successful answer)
page_size_kbnumberAlways (present in every successful answer)
annual_co2_kgnumberAlways (present in every successful answer)
co2_grams_per_viewnumberAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "website-carbon-estimate",
    "inputs": {
      "url": "https://strale.dev"
    },
    "max_price_cents": 5
  }'

Limitations

  • Emissions depend on more than page weight

    Carbon estimates based on page weight and transfer size — actual emissions depend on server location, CDN, and energy grid mix

    What to do instead: Compare estimates between pages; obtain a separate assessment for formal carbon reporting.

  • Pages transferring more than 100 MiB are not measured

    Pages transferring more than 100 MiB are refused with a caller_input error rather than measured. The call is not charged.

Related tools