---
title: "Calculate the observed emission data by list of locations for a specified time period."
method: GET
path: "/emissions/bylocations"
tags: ["CarbonAware"]
---

# Calculate the observed emission data by list of locations for a specified time period.

`GET /emissions/bylocations`

## Request

- Base URL: `http://api-server-svc.default.svc.cluster.local`
- URL: `http://api-server-svc.default.svc.cluster.local/emissions/bylocations`
- Auth: none declared

## Query parameters

- `location` string[], required
- `time` string, date-time
- `toTime` string, date-time

## Response `200`

Success

- EmissionsData[]
  - `location` string, nullable
  - `time` string, date-time
  - `rating` number, double
  - `duration` string, time-span

## Other responses

- `204`: No Content
- `400`: Bad Request

---

[API](https://skmtc.dev/azure/apis/carbonaware-webapi-version-1-0-0-0-culture-neutral-publickey.md) - [All operations](https://skmtc.dev/azure/apis/carbonaware-webapi-version-1-0-0-0-culture-neutral-publickey/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/carbonaware-webapi-version-1-0-0-0-culture-neutral-publickey/revisions/5b8513db900a?raw)
