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

# GET /lemmy/posts

`GET /lemmy/posts`

## Request

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

## Query parameters

- `community` string, required
- `sort` 'Hot' | 'Active' | 'New' | 'TopDay' | 'TopWeek' | 'TopMonth' | 'TopYear' | 'TopAll' | 'MostComments' | 'NewComments'
- `type_` 'All' | 'Local' | 'Subscribed'
- `limit` integer
- `page_cursor` string
- `instance` string

## Response `200`

- string

## Other responses

- `401`: Unauthorized - API key is missing or invalid
- `404`: The requested Lemmy community was not found. This response is not billable.
- `422`: The community 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/1e1aa78ff103?raw)
