---
title: "Search for TypeScript functions and types"
method: GET
path: "/v1/search"
---

# Search for TypeScript functions and types

`GET /v1/search`

## Query parameters

- `q` string, required

## Response `200`

List of search results

- SearchResult[]
  - union
    - Function
      - `type` 'func' | 'type', required
      - `name` string, required
    - Type
      - `type` 'func' | 'type', required
      - `name` string, required

## Other responses

- `404` — No results found
- `422` — Request is not valid

---

[API](https://skmtc.dev/tsearch-io/apis/tsearch-api.md) · [All operations](https://skmtc.dev/tsearch-io/apis/tsearch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tsearch-io/tsearch-api/revisions/74148d01480c/schema)
