---
title: "Gets the partitions that match the query"
method: GET
path: "/layers/{layerID}"
tags: ["index"]
---

# Gets the partitions that match the query

`GET /layers/{layerID}`

Queries the index layer for the partitions that match the query. Returns each partition that matches the query, including each partition's data handle, which you use with the `blob` API to retrieve data for each partition.

## Path parameters

- `layerID` string, required

## Query parameters

- `query` string, required
- `part` string

## Response `200`

OK - Query executed successfully

- DataResponse
  - `data` MapStringObject[]

## Other responses

- `400` — Bad Request - The request is invalid. Verify and retry.
- `401` — Unauthorized - The credentials provided do not authorize the user to perform this operation.
- `403` — Forbidden - The user is not authorized to perform the query on the resource specified.
- `404` — Not Found - The criteria set in the query is not valid.

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
