---
title: "Search Knowledge Base Endpoint"
method: GET
path: "/api/search/local/"
---

# Search Knowledge Base Endpoint

`GET /api/search/local/`

## Request

- Base URL: `https://api.openpaper.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openpaper.ai/api/search/local/`
- Auth: API key in header `Authorization`

Search across papers, annotations, and highlights in the user's knowledge base.

Returns a hierarchical view with matching content organized under paper metadata.
The search looks through:
- Paper titles, abstracts, and raw content
- Highlight text
- Annotation content

Results are organized by paper, with matching highlights and annotations
sub-referenced under each paper's metadata.

## Query parameters

- `q` string, required: Search query string
- `limit` integer: Maximum number of papers to return
- `offset` integer: Number of papers to skip for pagination
- `papers_filter` string: Comma-separated list of paper IDs to filter results by specific papers

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openpaper/apis/open-paper.md) - [All operations](https://skmtc.dev/openpaper/apis/open-paper/llms.txt) - [OpenAPI document](https://skmtc.dev/openpaper/apis/open-paper/revisions/c2ad03216101?raw)
