# Post del subreddit

**API:** Data API

**Endpoint:** `GET /v1/beta/reddit/subreddit`

**Tags:** Reddit

Restituisce il flusso di post di un subreddit con un token after per paginare. I post hanno gli stessi campi di get_reddit_search, tra cui title, author, selftext, score, ups, upvote_ratio, num_comments, created_utc, created_at_iso, url, permalink e subreddit_subscribers. sort accetta best, hot, new, top e rising. Importante: timeframe è accettato solo insieme a sort=top, e qualsiasi altra combinazione restituisce 400 anziché ignorare il parametro. I nomi dei subreddit distinguono tra maiuscole e minuscole. Per cercare all'interno dello stesso subreddit usa get_reddit_subreddit_search e per i suoi metadati get_reddit_subreddit_details.

### Riferimento prezzi

- Misurazione: numero di risultati misurato.
- Stima di riferimento per richiesta: USD 0.00188.
- Moltiplicatore di riferimento per il cliente: 1.0. Non applicarlo di nuovo a un importo già addebitato al cliente.

Solo metadati di riferimento, non un preventivo dell'account, né un prezzo garantito o un limite di spesa. I crediti delle risorse non sono crediti Felo. Gli addebiti finali seguono le registrazioni di fatturazione Felo.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `after` | query | no | string |  |
| `cache_max_age` | query | no | string |  |
| `sort` | query | no | string |  |
| `subreddit` | query | no | string |  |
| `timeframe` | query | no | string |  |
| `trim` | query | no | string |  |

## Responses

### 200 — Risposta riuscita

Headers:
- `X-Request-Id` (string) — Identificatore della richiesta da includere quando contatti l'assistenza Felo.

**application/json**

Schema: `Response799D183Abaf0_RedditPostsResponse` (`#/components/schemas/Response799D183Abaf0_RedditPostsResponse`)

Example:

```json
{
  "posts": [
    {
      "id": "1lfbo7u",
      "author": "Vetro_Nodulare2",
      "author_fullname": "t2_16syu27ar1",
      "subreddit": "AskReddit",
      "title": "What is a thing you love that lots of people hate?",
      "downs": 0,
      "name": "t3_1lfbo7u",
      "upvote_ratio": 0.9,
      "ups": 45,
      "total_awards_received": 0,
      "score": 45,
      "created": 1750341959,
      "num_comments": 349,
      "url": "https://www.reddit.com/r/AskReddit/comments/1lfbo7u/what_is_a_thing_you_love_that_lots_of_people_hate/",
      "subreddit_subscribers": 56146328,
      "is_video": false,
      "created_utc": 1750341959
    }
  ],
  "after": "t3_1lfogps"
}
```

### 400 — Impossibile elaborare la richiesta. Controlla i parametri della richiesta.

### 401 — È richiesta una chiave API Felo valida.

### 402 — Impossibile procedere con la richiesta perché non è soddisfatto un requisito di fatturazione.

### 403 — L'account non è autorizzato a eseguire questa operazione.

### 429 — È stato raggiunto un limite di richieste o di spesa.

### 502 — Il servizio non è riuscito a completare la richiesta.

### 503 — L'API o il servizio di fatturazione è temporaneamente non disponibile.

### 504 — Si è verificato un timeout durante l'elaborazione della richiesta.

### default — Risposta di errore; le risposte passthrough upstream possono usare formati del provider

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response799D183Abaf0_RedditPost

`#/components/schemas/Response799D183Abaf0_RedditPost`

```json
{
  "type": "object",
  "additionalProperties": true
}
```

### Response799D183Abaf0_RedditPostsResponse

`#/components/schemas/Response799D183Abaf0_RedditPostsResponse`

```json
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "posts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Response799D183Abaf0_RedditPost"
      }
    },
    "after": {
      "type": [
        "string",
        "null"
      ]
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "additionalProperties": true
}
```
