# BRAINIAC Scope 2 Emissions Calculator

> BRAINIAC Scope 2 Emissions Calculator is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-12).

Calculates Scope 2 (purchased electricity) greenhouse gas emissions from activity data using disclosed emission factors, returning itemized CO2e figures per facility and period.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/environmental-intelligence/scope-2-emissions-calculate?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-scope-2-emissions-calculator-a7f84d6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YcEVy68I41KWXgzh1-SVV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-scope-2-emissions-calculator-a7f84d6f -d '<json body>'
```

Example prompt: Calculate our Scope 2 emissions for January 2026 — here's the electricity usage data for our UK plant PLANT-1: 50,000 kWh purchased from the grid. Use DEFRA 2024 emission factors and give me the total kgCO2e broken down by facility.

## When to prefer this

Use this endpoint when you need automated, auditable Scope 2 (purchased electricity) GHG calculations with transparent emission factor sourcing — especially for ESG reporting, GHG Protocol compliance, or sustainability disclosures. It is preferred over manual spreadsheet approaches because it enforces factor provenance (source, version, asOf) and flags whether paid databases were used. Ideal for AI agents performing carbon accounting without an ESG platform subscription, since it requires no account and charges per call in USDC via x402.

## Known failure modes

- Missing or malformed activity data — no electricity consumption records provided, calculation cannot proceed
- Unsupported media type in file upload — returns validation error
- Emission factor not found for the specified region/activity key — result may use fallback public reference factor with disclosure
- Invalid date format for asOf or period fields — schema validation error
- Input exceeds size limits (CSV/JSON over 200,000 chars or more than 20 files) — request rejected
- No matching scope 2 activity rows detected in supplied data — returns empty items array

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object with an array of itemized emission line items (each with facility ID, period, quantity, unit, emission factor metadata, and calculated kgCO2e), total Scope 2 kgCO2e, calculation status, activity count, findings list, limitations disclosure, and flags indicating whether paid ESG databases or external APIs were used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "factors": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "asOf": {
      "type": "string",
      "maxLength": 40
     },
     "name": {
      "type": "string",
      "maxLength": 160
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "region": {
      "type": "string",
      "maxLength": 80
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "version": {
      "type": "string",
      "maxLength": 80
     },
     "scopeHint": {
      "enum": [
       "1",
       "2",
       "3",
       "any"
      ],
      "type": "string"
     },
     "activityKey": {
      "type": "string",
      "maxLength": 120
     },
     "gCo2ePerUnit": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "kgCo2ePerUnit": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     }
    },
    "additionalProperties":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "A2",
    "name": "",
    "unit": "kWh",
    "scope": "2",
    "kgCo2e": 10352.5,
    "source": "Caller-supplied bill",
    "factorId": "F2",
    "quantity": 50000,
    "periodEnd": "2026-01-31",
    "facilityId": "PLANT-1",
    "factorAsOf": "2024-06-01T00:00:00.000Z",
    "factorUnit": "kWh",
    "activityKey": "electricity_uk_kwh",
    "periodStart": "2026-01-01",
    "factorSource": "UK DESNZ/DEFRA GHG Conversion Factors",
    "factorVersion": "2024",
    "kgCo2eSupplied": true,
    "factorActivityKey": "electricity_uk_kwh",
    "factorKgCo2ePerUnit": 0.20705,
    "paidEsgDatabaseUsed": false,
    "publicReferenceFactorUsed": false
   }
  ],
  "scope": "2",
  "status": "calculated",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Emission factors, activities, supplier rows, carbon reports, water records, permits, and waste manifests are copied only from labeled fields supplied by the caller, or from key-free Carbon Intensity API / disclosed public-style factor references when explicitly used.",
   "No paid ESG database is used and no API key is required.",
   "Emission outputs always echo factor source, version, and timestamp/asOf when a factor is applied. Missing values are not invented.",
   "Disclosed public-style DEFRA/eGRID reference factors are used only when the caller does not supply a matching factor.",
   "Evidence reports aggregate only sections for which records were supplied or optionally fetched."
  ],
  "totalKgCo2e": 10352.5,
  "activityCount": 1,
  "apiKeyRequired": false,
  "paidProviderUsed": false,
  "paidEsgDatabaseUsed": false,
  "carbonIntensityFetched": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-scope-2-emissions-calculator-a7f84d6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
