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

# GET /lemmy/search

`GET /lemmy/search`

## Request

- Base URL: `https://scrappa.co/api`
- URL: `https://scrappa.co/api/lemmy/search`
- Auth: API key in header `X-API-KEY`

## Query parameters

- `q` string, required
- `type_` 'All' | 'Posts' | 'Communities' | 'Users' | 'Comments'
- `sort` 'Active' | 'Hot' | 'New' | 'Old' | 'TopDay' | 'TopWeek' | 'TopMonth' | 'TopYear' | 'TopAll' | 'MostComments' | 'NewComments' | 'TopHour' | 'TopSixHour' | 'TopTwelveHour' | 'TopThreeMonths' | 'TopSixMonths' | 'TopNineMonths' | 'Controversial' | 'Scaled'
- `limit` integer
- `page` integer
- `instance` string

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `422`: The q parameter is missing or a parameter value is invalid. This response is not billable. Lemmy rejected one or more parameter values (for example an unknown sort). This response is not billable.
- `503`: The Lemmy API is temporarily unavailable. This response is not billable.

---

[API](https://skmtc.dev/scrappa/apis/scrappa-api-documentation.md) · [All operations](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/scrappa/apis/scrappa-api-documentation/revisions/2f4af6143d10?raw)
