# 1ClickImpact Environmental Impact API > REST API for programmatic environmental impact - tree planting, ocean cleanup, carbon capture, coral restoration, and charitable donations. Integrate sustainability into any product in minutes. Last verified 2026-08-24. ## Base URLs - Production: https://api.1clickimpact.com - Sandbox: https://sandbox.1clickimpact.com (free, no real-world impact) ## Authentication All requests require an `x-api-key` header. Obtain your API key from your 1ClickImpact dashboard. ## Docs Home - [Full API Documentation](https://docs.1clickimpact.com) - [Quickstart Guide](https://docs.1clickimpact.com/quickstart) - [Authentication](https://docs.1clickimpact.com/authentication) - [SDKs](https://docs.1clickimpact.com/sdks) - [Errors](https://docs.1clickimpact.com/errors) - [Pagination](https://docs.1clickimpact.com/pagination) - [Webhooks](https://docs.1clickimpact.com/webhooks) - Receive real-time, HMAC-signed impact events at your endpoint instead of polling the Track API. Available on the Basic and Pro plans. ## Action Endpoints (POST) - [Plant Trees](https://docs.1clickimpact.com/plant-trees) - POST /v1/plant_tree - Plant trees for your org or on behalf of customers - [Clean Ocean](https://docs.1clickimpact.com/clean-ocean) - POST /v1/clean_ocean - Remove ocean plastic waste (amount in lbs) - [Capture Carbon](https://docs.1clickimpact.com/capture-carbon) - POST /v1/capture_carbon - Offset CO2 emissions (amount in lbs) - [Restore Coral](https://docs.1clickimpact.com/restore-coral) - POST /v1/restore_coral - Fund coral reef restoration by outplanting coral fragments (amount in fragments; ~15 fragments ≈ 1 reef structure, each fragment ≈ 144 cm² / 22.32 in² of reef) - [Donate Money](https://docs.1clickimpact.com/donate-money) - POST /v1/donate_money - Make charitable donations (amount in cents). Supports optional `category` to tag donations with a cause (veterans, animals, hunger, education, climate, water, healthcare, housing, youth, disaster) - [Cancel Impact](https://docs.1clickimpact.com/cancel-impact) - POST /v1/cancel_impact - Cancel and reverse a previously created impact (for refund flows). Requires `user_id` and `time_utc`. Optional `reason` (max 200 chars). Idempotent. Cancelled impacts are not charged. ## Analysis Endpoints - [Website Carbon](https://docs.1clickimpact.com/website-carbon) - GET /v1/carbon - Calculate CO2 emissions per page view for any website URL. Returns carbon rating (A+ to F), green hosting status, transfer size, and energy statistics. Uses Sustainable Web Design Model V4. Results cached for 7 days. Each call counts as 2 API calls. - [AI Energy](https://docs.1clickimpact.com/ai-energy) - POST /v1/ai_energy/calculate - Estimate the electricity (Wh), water (mL), and carbon (gCO2e) of running any AI model (GPT, Claude, Gemini, Llama, DeepSeek, Grok, Kimi) at your usage. Returns honest P5-P95 ranges per query, month, and year, plus breakdown, equivalents, assumptions, and a confidence report. Covers 45+ models across 9 providers. Requires model_id and scale; each call counts as 1 API call. - [AI Energy Options](https://docs.1clickimpact.com/ai-energy) - GET /v1/ai_energy/options - Full catalog of models, providers, regions, workloads, regimes, boundaries, and defaults for building an AI energy request. Counts as 1 API call. ## Free Tools - [Website Carbon Calculator](https://1clickimpact.com/website-carbon) - Free tool to check any website's carbon footprint. Enter a URL and get an instant carbon rating, CO2 per page view, green hosting status, and annual impact equivalents. - [How It Works](https://1clickimpact.com/website-carbon/how-it-works) - Methodology explanation: data transfer measurement, green hosting verification, SWDM V4 calculation, and A+ to F rating system. Includes FAQs. - [AI Energy Calculator](https://1clickimpact.com/ai-energy-calculator) - Free tool to estimate the electricity, water, and carbon of running any AI model. Pick a model (45+ across 9 providers), workload, region, and monthly volume; get honest P5-P95 ranges for energy, water, and CO2, then offset it in one API call. - [AI Energy Methodology](https://1clickimpact.com/ai-energy-calculator/methodology) - How the numbers are built: token-throughput energy model, two-term water model, dual location/market carbon accounting, and Monte-Carlo P5-P95 ranges calibrated against published measurements. Includes an [FAQ](https://1clickimpact.com/ai-energy-calculator/faq). ## Data Endpoints (GET) - [WhoAmI](https://docs.1clickimpact.com/whoami) - GET /v1/whoami - Verify API key and retrieve account details - [Impact](https://docs.1clickimpact.com/impact) - GET /v1/impact - Aggregated lifetime impact totals (own + customer breakdown) - [Daily Impact](https://docs.1clickimpact.com/impact) - GET /v1/impact/daily - Time-series daily impact data with optional date range filtering - [Records](https://docs.1clickimpact.com/records) - GET /v1/records - Your organization's full impact history - [Customer Records](https://docs.1clickimpact.com/records) - GET /v1/customer_records - Per-customer impact history - [Customers](https://docs.1clickimpact.com/customers) - GET /v1/customers - List all onboarded customers - [Track](https://docs.1clickimpact.com/track) - GET /v1/track - Real-time lifecycle tracking for a specific impact event. Includes `cancelled_on` and `cancellation_reason` for cancelled impacts, and `donation_category` for categorized donations. To receive these lifecycle updates pushed to you in real time instead of polling, use [Webhooks](https://docs.1clickimpact.com/webhooks) - [Projects](https://docs.1clickimpact.com/projects) - GET /v1/projects - Browse all verified environmental impact projects (filter by type: trees, ocean, carbon) - [Project](https://docs.1clickimpact.com/projects) - GET /v1/projects/:project_id - Full details for a single project including SDG alignments, images, location, and localized content ## Key Concepts - Impact can be created for your org OR on behalf of customers using `customer_email` in the request body - `user_id` and `time_utc` required for /v1/track can come from the POST action response (plant_tree, clean_ocean, capture_carbon, donate_money) OR from /v1/records / /v1/customer_records - Sandbox environment is free and does not create real-world impact; safe for testing - Trees: unit = number of trees | Ocean/Carbon: unit = lbs | Donations: unit = smallest currency unit (cents for USD) - Use `filter_by` query param on /v1/records: tree_planted | waste_removed | carbon_captured | money_donated - Pagination uses cursor-based approach: `limit` + `start_date` query params, follow `next_cursor` in response - All POST action endpoints accept an optional `metadata` object (string -> string key-value pairs, max 20 pairs, key <= 40 chars, value <= 500 chars; reserved keys `gift` and `widgetID` not allowed). Returned on records that were created with metadata. - Webhooks (Basic and Pro plans): subscribe an endpoint to receive signed, real-time events (`impact.initiated`, `impact.donation_available`, `impact.donation_sent`, `impact.completed`, `impact.cancelled`) instead of polling /v1/track. Each delivery embeds the full /v1/track payload and is signed with the `X-1CI-Signature` header (HMAC-SHA256 of `t.body`). See https://docs.1clickimpact.com/webhooks ## Related Resources (AI / LLM index files) - Main site: https://1clickimpact.com/llms.txt and https://1clickimpact.com/llms-full.txt - Shopify app help: https://help.1clickimpact.com/llms.txt - This API reference: https://docs.1clickimpact.com/llms.txt and https://docs.1clickimpact.com/llms-full.txt