---
title: "GET /search"
method: GET
path: "/search"
tags: ["Search"]
---

# GET /search

`GET /search`

Search both professors and courses with a query string. This will match professors and courses which have the query string as a substring of their name.

## Query parameters

- `query` string, required
- `limit` integer
- `offset` integer

## Response `200`

Returns professors and courses matching the query

- SearchResult[]
  - `name` string, required
  - `slug` string, required
  - `type` 'professor' | 'course', required

## Other responses

- `400` — bad input parameter

---

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