---
title: "Get site by ID"
method: GET
path: "/ecology/api/v1/sites/{site-id}"
tags: ["sites"]
---

# Get site by ID

`GET /ecology/api/v1/sites/{site-id}`

## Request

- Base URL: `https://environment.data.gov.uk` (the document declares no server; this is the origin it was published from)
- URL: `https://environment.data.gov.uk/ecology/api/v1/sites/{site-id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/environment-agency/apis/environment-agency-ecology-and-fish-data-api/docs/ecology/api/v1/sites/:site-id/get.ts> (a function with typed inputs; its response is checked against the schema)

Note that the site ID ends with the the numeric ID you'd recognise from the source data, but _preprended_ with ecology data site URL and `fish/` or `bio/` e.g. `http://environment.data.gov.uk/ecology/site/fish/10060`

Only a single site can be returned using this endpoint.

Example queries:

`/ecology/api/v1/sites/http%3A%2F%2Fenvironment.data.gov.uk%2Fecology%2Fsite%2Ffish%2F10060`

## Path parameters

- `site-id` string, required

## Response `default`

Default response

---

[API](https://skmtc.dev/environment-agency/apis/environment-agency-ecology-and-fish-data-api.md) - [All operations](https://skmtc.dev/environment-agency/apis/environment-agency-ecology-and-fish-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/environment-agency/apis/environment-agency-ecology-and-fish-data-api/revisions/12337a486753?raw)
