# Look up a Community

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

GET `/v1/communities/{platform}/{id}`

A subreddit's or public Facebook Group's details: description, rules, activity and nsfw. `members` is null where the Platform gives no count. A private Group is `not_found`. `include=threads` adds the first page of its Threads.

[Open in Playground](https://www.shortsintel.com/console/playground?op=getCommunity&platform=reddit&id=SkincareAddiction&include=threads&sort=hot&timeframe=day) (no API Key needed)

## Price

3 credits, the same when a read under 24 h old can answer; 6 credits with `include=threads`.

Supports `estimate=true`: the reply is the price in Credits and whether it would be `cached`, with no Run created and nothing charged.

A cached result costs the same as a fresh one; `cached` says which you got.

## Parameters

| Name | In | Type | Required | Default | Description |
| --- | --- | --- | --- | --- | --- |
| `platform` | path | `string` one of `reddit`, `facebook` | Required | — | Platform the subject lives on. |
| `id` | path | `string` | Required | — | Subreddit name (`AskReddit`), `r/AskReddit`, URL (URL-encoded) or `t5_` id once read. Facebook: a public Group's id or URL. |
| `include` | query | `string` one of `threads` | Optional | — | `threads` adds the first page of Threads, taking `sort`, `timeframe` and `query` as `/threads` does. |
| `sort` | query | `string` one of `hot`, `new`, `top`, `rising`, `relevance`, `active` | Optional | — | `hot` (default), `new`, `top` or `rising`; with `query`: `relevance` (default), `hot`, `new` or `top`. Facebook: `top` (default), `new` or `active` (recent activity), 3 Threads a page. |
| `timeframe` | query | `string` one of `day`, `week`, `month`, `year`, `all` | Optional | — | Window for `top` and for a search. Reddit only. |
| `query` | query | `string` | Optional | — | Search inside the Community instead of listing it. Reddit only. |
| `wait` | query | `integer` min 0; max 120 | Optional | `30` | Seconds to hold the response open before handing back a running Run to poll. Default 30, max 120. A POST may send it in the body instead; different values in both places are a 400. |
| `max_credits` | query | `integer` min 0 | Optional | — | Most Credits the call may cost. A higher quote is a 402 `max_credits_exceeded`, no Run. Where `x-price.max_credits` is null, the Run stops at it and settles `partial`. |
| `estimate` | query | `boolean` | Optional | — | `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. Nothing is charged. If a source the call would read is unavailable and the cache cannot answer, the estimate adds `unavailable` (the `{ platform, capability }` parts it cannot reach), or is a 503 `source_unavailable` when it can reach none. Only `true` or `false`, else a 400. A POST may send it in the body instead; different values in both places are a 400. |
| `Idempotency-Key` | header | `string` | Optional | — | 1-255 printable ASCII characters. The same key and payload returns the original Run (202 while running); a different payload or operation is a 409 `idempotency_conflict`. |

## Responses

### 200 OK

The Run finished inside the wait budget: `{ run, result }`. With `estimate=true`, `{ estimate_credits, cached }` instead.

any of 2 shapes

- Option 1 object The envelope every charged operation answers with: `{ run }` while the Run is running (plus `poll_url` on the 202), joined by `result` once it completes or `error` once it fails.
  - `run` object required Every charged operation creates a Run; the envelope is the same inline or polled.
    - `id` string required
    - `kind` string required What was run, e.g. `video_lookup`.
    - `status` string required one of `running`, `completed`, `partial`, `failed` `partial` keeps the completed items and charges for them, up to what the Balance covers; `failed` charges nothing.
    - `created_at` string required RFC 3339.
    - `completed_at` string required nullable Null while the Run is still running.
    - `charge_credits` integer required What this Run actually cost, in Credits. A stored answer costs the same as a fresh one.
    - `list_price_credits` integer required The full price of the work asked for, in Credits. Equal to `charge_credits` unless the Run charged for only part of it.
    - `cached` boolean required True when a stored result answered without a fresh fetch.
    - `progress` object A running Research's `stage` and counts so far, such as `analysed` of `shortlisted`; a count is absent until known. Absent once the Run settles and on other kinds.
      - `stage` string required one of `keywords`, `searching`, `reading_creators`, `filtering`, `analysing`, `writing_digest`
      - `keywords` integer value at least 0
      - `creators` integer value at least 0
      - `creators_read` integer value at least 0
      - `searches` integer value at least 0
      - `found` integer value at least 0
      - `judged` integer value at least 0
      - `kept` integer value at least 0
      - `dropped_off_topic` integer value at least 0
      - `dropped_unsure` integer value at least 0
      - `shortlisted` integer value at least 0
      - `analysed` integer value at least 0
      - `updated_at` string required
  - `result` object required
    - `platform` string required
    - `id` string required The Platform's own id: a subreddit's `t5_` id, a Group's numeric id.
    - `url` string required
    - `name` string required
    - `description` string required nullable
    - `rules` array of object required In the Platform's order. Reddit gives one block of text: one rule, title null.
      - `title` string required nullable
      - `text` string required
    - `icon` string required nullable
    - `members` number required nullable Null where the Platform gives no count (Reddit today), never 0. Facebook gives the exact total.
    - `activity` object required
      - `weekly_visitors` number required nullable
      - `weekly_contributions` number required nullable
      - `posts_last_day` number required nullable
      - `posts_last_month` number required nullable
    - `nsfw` boolean required
    - `extras` map of map of any required A Community's's Platform-only fields, under exactly one key: its own Platform. `reddit`: `created_at`, `header_url`.
    - `threads` object With `include=threads`: the first page, as `/threads` answers it.
      - `next_cursor` string required nullable Pass back as `cursor`. Null on the last page.
      - `sort` string required
      - `timeframe` string required nullable
      - `query` string required nullable
      - `items` array of object required
        - `platform` string required
        - `id` string required The Platform's own id (a Reddit post's base-36 id, a Group post's numeric id).
        - `url` string required
        - `community` object required
          - `platform` string required
          - `id` string required nullable The Platform's own id; null only before any Thread or details read named it.
          - `name` string required
        - `author` object required nullable Exactly as the Platform shows it; null when deleted or not given (a Reddit search).
          - `name` string required
          - `id` string required nullable
        - `title` string required nullable Null where the Platform has none (Facebook).
        - `text` string required The body; empty for a link or media post, a removed post, or a search hit.
        - `posted_at` string required nullable
        - `score` number required nullable Upvotes on Reddit, total reactions on Facebook; null when not given.
        - `comment_count` number required nullable
        - `media` object required nullable Null for a text-only Thread. Facebook's video URLs are signed and expire.
          - `type` string required nullable `image`, `video`, `gallery`, as the Platform types it.
          - `thumbnail_url` string required nullable
          - `video_url` string required nullable
        - `nsfw` boolean required
        - `removed` boolean required True once a read showed it removed or deleted.
        - `extras` map of map of any required A Thread's's Platform-only fields, under exactly one key: its own Platform. `reddit`: `upvote_ratio` (null from a search), `flair`, `spoiler`.
- Option 2 object Returned instead of a Run when `estimate=true`. Nothing is charged; some operations add members.
  - `estimate_credits` integer required What the call would be charged, in Credits.
  - `cached` boolean required Whether a stored result can already answer. It does not change the price.

### 202 Accepted

Still running: `{ run }`. Poll `GET /v1/runs/{id}`.

object

Still running. Poll `poll_url` (`GET /v1/runs/{id}`), waiting the 202's `Retry-After` seconds between polls.

- `run` object required Every charged operation creates a Run; the envelope is the same inline or polled. Its fields are on [Poll or re-read a run](https://www.shortsintel.com/docs/reference/runs/get-run#response-200).
- `poll_url` string required format `uri` Absolute URL of `GET /v1/runs/{id}`, the body's copy of the `Location` header (for MCP). Present only while `running`.

202 · Example

```json
{
  "run": {
    "id": "run_8f2c1ad04b",
    "kind": "community_lookup",
    "status": "running",
    "created_at": "2026-09-08T09:14:02.418Z",
    "completed_at": null,
    "charge_credits": 0,
    "list_price_credits": 0,
    "cached": false
  },
  "poll_url": "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b"
}
```

### 400 Bad Request

`invalid_request` (a malformed id, `wait`, `estimate` or Idempotency-Key) or `unsupported_platform`, refused before any Run opens. Nothing is charged.

Codes: `invalid_request`, `unsupported_platform`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 401 Unauthorized

Codes: `missing_authorization`, `invalid_key`, `key_revoked`, `key_expired`, `invalid_token`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 402 Payment Required

`insufficient_balance`: the Balance cannot cover the quoted price (the worst case for Research and enriched search). No Run opens and nothing is charged; a multi-item Run that runs short later charges its completed items up to the Balance and ends `partial`.

Code: `insufficient_balance`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 409 Conflict

`idempotency_conflict` — the same Idempotency-Key with a different payload.

Code: `idempotency_conflict`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 429 Too Many Requests

`rate_limit_exceeded` or `concurrency_limit_exceeded`, with `Retry-After`.

Codes: `rate_limit_exceeded`, `concurrency_limit_exceeded`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 502 Bad Gateway

A Run that opened and then failed answers `application/problem+json` with its problem's status (`vendor_error` here, `not_found` as 404) and the Run envelope, keeping the Run id. Never charged. The example is a Video lookup's.

Code: `vendor_error`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

### 503 Service Unavailable

`source_unavailable`: every source this Run reads failed or is switched off. The Run fails uncharged, envelope alongside; `endpoints` names the source. Retry after `retry_after_seconds` (also `Retry-After`); it does not mean empty. The example is a Video lookup's.

Code: `source_unavailable`. The problem body and every code are on [Errors](https://www.shortsintel.com/docs/reference/errors).

## Related guides

This call creates a Run. With `wait` it holds the response open until the Run finishes or the wait runs out, then answers with the finished result or `202` and the running Run. Poll [`GET /v1/runs/{id}`](https://www.shortsintel.com/docs/reference/runs/get-run) until it settles; re-reading a Run is free.

- [Runs](https://www.shortsintel.com/docs/concepts/runs): How a call becomes a Run, waiting inline, polling and free re-reads.
- [Pricing and estimates](https://www.shortsintel.com/docs/concepts/pricing-and-estimates): Credits, estimates and why a cached result costs the same as a fresh one.
- [Addressing videos and creators](https://www.shortsintel.com/docs/concepts/addressing): Naming a video, creator, hashtag or sound.

## Request samples

curl:

```bash
curl "https://www.shortsintel.com/v1/communities/reddit/SkincareAddiction?include=threads&sort=hot&timeframe=day&wait=30" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/communities/reddit/SkincareAddiction?include=threads&sort=hot&timeframe=day&wait=30",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/communities/reddit/SkincareAddiction?include=threads&sort=hot&timeframe=day&wait=30",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

200 · The Run finished inside the wait budget: `{ run, result }`. With `estimate=true`, `{ estimate_credits, cached }` instead.

```json
{
  "run": {
    "id": "run_8f2c1ad04b",
    "kind": "community_lookup",
    "status": "completed",
    "created_at": "2026-09-08T09:14:02.418Z",
    "completed_at": "2026-09-08T09:14:04.930Z",
    "charge_credits": 3,
    "list_price_credits": 3,
    "cached": false
  },
  "result": {
    "platform": "reddit",
    "id": "t5_2tbbg",
    "url": "https://www.reddit.com/r/SkincareAddiction/",
    "name": "SkincareAddiction",
    "description": "Skincare questions, routines and reviews.",
    "rules": [
      {
        "title": null,
        "text": "Be kind. No self-promotion. No medical advice."
      }
    ],
    "icon": "https://styles.redditmedia.com/t5_2tbbg/styles/communityIcon.png",
    "members": null,
    "activity": {
      "weekly_visitors": 1428398,
      "weekly_contributions": 8923,
      "posts_last_day": null,
      "posts_last_month": null
    },
    "nsfw": false,
    "extras": {
      "reddit": {
        "created_at": "2012-04-02T10:35:24.000Z",
        "header_url": null
      }
    },
    "threads": {
      "sort": "hot",
      "timeframe": null,
      "query": null,
      "items": [
        {
          "platform": "reddit",
          "id": "1lfbo7u",
          "url": "https://www.reddit.com/r/SkincareAddiction/comments/1lfbo7u/retinol_purging_or_breakout/",
          "community": {
            "platform": "reddit",
            "id": "t5_2tbbg",
            "name": "SkincareAddiction"
          },
          "author": {
            "name": "dewy_mornings",
            "id": "t2_16syu27ar1"
          },
          "title": "Retinol purging or a breakout? Week 3 and I'm losing hope",
          "text": "Started 0.3% retinol three weeks ago and my chin is worse than ever.",
          "posted_at": "2026-11-19T14:05:59.000Z",
          "score": 412,
          "comment_count": 138,
          "media": null,
          "nsfw": false,
          "removed": false,
          "extras": {
            "reddit": {
              "upvote_ratio": 0.97,
              "flair": "Acne",
              "spoiler": false
            }
          }
        }
      ],
      "next_cursor": "eyJjIjoiZXlKd0lqb2lZeUo5IiwibyI6MH0"
    }
  }
}
```

200 · With `estimate=true`: the price, no Run, no charge.

```json
{
  "estimate_credits": 3,
  "cached": false
}
```

[Next Page a Community's Threads](https://www.shortsintel.com/docs/reference/communities/list-community-threads)
