---
title: "Search into a collection"
method: POST
path: "/collections/{collection_id}"
tags: ["collections"]
---

# Search into a collection

`POST /collections/{collection_id}`

## Path parameters

- `collection_id` integer, required

## Request body

- ScholarlySearchRequest
  - `query` object — Json query object
  - `size` integer — Number of items per page
  - `from` integer — Offset from the first result
  - `include` string[] — Fields to be included in result
  - `sort` object[] — Array of object mappings to specify field sorting
  - `exclude` string[] — Fields to be excluded from result
  - `scroll` string — Scroll context time in minute (e.g. 1m)
  - `scroll_id` string — For scroll based pagination, provide scroll_id from previous response body.

## Response `200`

Valid response from the server

## Other responses

- `204` — No Content
- `400` — Malformed request or incorrect fields/values provided
- `401` — Authentication credentials might be incorrect or missing
- `404` — Incorrect Resource URL / Empty Result for supplied queries / Expired scroll_id
- `415` — Request body is not json or Content Type is not application/json
- `429` — You have exceeded the number of allowed calls

---

[API](https://skmtc.net/lens/apis/lens-api.md) · [All operations](https://skmtc.net/lens/apis/lens-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lens/lens-api/revisions/4212453c4c6a/schema)
