---
title: "Calculate the best emission data by location for a specified time period."
method: GET
path: "/emissions/bylocation"
tags: ["CarbonAware"]
---

# Calculate the best emission data by location for a specified time period.

`GET /emissions/bylocation`

## Request

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

## Query parameters

- `location` string, required
- `startTime` string, date-time
- `endTime` 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)
