# 4plebs API reference

> The 4plebs API is the JSON interface of the 4plebs archive of selected 4chan boards (FoolFuuka software). It returns archived posts, whole threads, text search results across boards and image matches by hash. An investigator uses it to find what a username, tripcode, filename, phrase or image hash…

Source: https://osinttools.io/apis/4plebs/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/4plebs/

- Base URL: https://archive.4plebs.org/_/api/chan
- Authentication: No key needed. Free access; send a descriptive User-Agent that names your application.
- Rate limits: A few requests per minute; limits are dynamic and the search endpoint is stricter. Exceeding gives HTTP 429 with a Retry-After header.
- Vendor docs: https://4plebs.org/docs/foolfuuka/

## Overview

The 4plebs API is the JSON interface of the 4plebs archive of selected 4chan boards (FoolFuuka software). It returns archived posts, whole threads, text search results across boards and image matches by hash. An investigator uses it to find what a username, tripcode, filename, phrase or image hash has posted in the archived boards.

All endpoints are under `/_/api/chan/` on `https://archive.4plebs.org`. The docs describe free access with no key. Responses are JSON; errors look like `{ "error": "..." }`.

The docs ask clients to send a clear User-Agent that names the application and does not imitate a browser, to keep to a few requests per minute (the search endpoint is limited more strictly) and not to bulk download; data dumps exist for that. Exceeding the limit gives 429 with a `Retry-After` header; blocked clients get 403. Other documented endpoints (boards, archives, site, index, gallery, statistics, intel, articles and an offsite report POST) are left out here.

## Errors

| Status | Meaning |
| --- | --- |
| 403 | Access blocked for excessive requests or other abuse |
| 422 | A parameter is invalid or no search field was given |
| 429 | Rate limit exceeded; wait for the Retry-After period |

## Search

### Search archived posts across one or more boards by text, name, tripcode, filename, image hash and more.

`GET /search/`

- Takes: Username, Image
- Footprint: passive (the target is not contacted)

Results are limited to 40 pages; narrow with start and end dates to reach more. Rate-limited more strictly than the other endpoints. At least one search field is needed. The ocr and ml parameters are deprecated in favour of the image search endpoint.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | query | string | no | Text to search for in comments Example: test |
| `boards` | query | string | no | Board shortnames separated by a dot Example: adv.tv |
| `username` | query | string | no | Search by poster name Example: Anonymous |
| `tripcode` | query | string | no | Search by tripcode Example: !ExampleTrip |
| `subject` | query | string | no | Search in subject / title Example: example |
| `filename` | query | string | no | Search by original filename Example: photo.jpg |
| `image` | query | string | no | Base64-encoded MD5 hash of a media file Example: AAAAAAAAAAAAAAAAAAAAAA== |
| `country` | query | string | no | 2-letter ISO 3166 country code Example: NL |
| `start` | query | string | no | Start date (YYYY-MM-DD) Example: 2020-01-01 |
| `end` | query | string | no | End date (YYYY-MM-DD) Example: 2020-12-31 |
| `order` | query | string | no | Sort order Example: desc One of: asc, desc |
| `results` | query | string | no | Set to thread to group results by thread Example: thread |
| `page` | query | integer | no | Page of results; none after page 40 Example: 1 |

Response fields:

- `0.posts[]` (object): Matching posts, each a post object
- `0.meta.total_found` (integer): Total matches
- `0.meta.max_results` (integer): Maximum results the search returns
- `0.meta.search_title` (string): Description of the search

```bash
curl 'https://archive.4plebs.org/_/api/chan/search/'
```

Example response (200):

```json
{
  "0": {
    "posts": [
      {
        "doc_id": "1000001",
        "num": "2000001",
        "thread_num": "2000001",
        "op": "1",
        "timestamp": 1600000000,
        "name": "Anonymous",
        "comment": "example comment"
      }
    ],
    "meta": {
      "total_found": 1,
      "max_results": 1000,
      "search_title": "Searching for posts that contain example."
    }
  }
}
```

## Board content

### Retrieve a full thread by the post number of its original post.

`GET /thread/`

- Footprint: passive (the target is not contacted)

The top-level key is the thread number; posts is an object keyed by post number, not an array. Post fields are often returned as strings even when numeric.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `board` | query | string | yes | Board shortname Example: adv |
| `num` | query | integer | yes | Post number of the original post Example: 2000001 |
| `latest_doc_id` | query | integer | no | Latest doc_id to start from, for polling Example: 1000001 |
| `last_limit` | query | integer | no | Limit results to the last x posts Example: 20 |

Response fields:

- `{threadNum}.op` (object): The original post (post object)
- `{threadNum}.posts` (object): Replies keyed by post number (post objects)

```bash
curl 'https://archive.4plebs.org/_/api/chan/thread/?board=adv&num=2000001'
```

Example response (200):

```json
{
  "2000001": {
    "op": {
      "num": "2000001",
      "op": "1",
      "name": "Anonymous",
      "comment": "example opening post"
    },
    "posts": {
      "2000002": {
        "num": "2000002",
        "op": "0",
        "name": "Anonymous",
        "comment": "example reply"
      }
    }
  }
}
```

### Return a single archived post by its number.

`GET /post/`

- Footprint: passive (the target is not contacted)

Returns a full post object, with a media object when a file is attached.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `board` | query | string | yes | Board shortname Example: tv |
| `num` | query | integer | yes | Post number Example: 2000001 |

Response fields:

- `doc_id` (string): Internal document ID
- `num` (string): Post number
- `thread_num` (string): Thread number
- `op` (string): 1 if this is the original post
- `timestamp` (integer): Unix timestamp of the post
- `name` (string): Poster name
- `comment` (string): Raw comment text
- `media.media_hash` (string): Media hash (base64), when a file is attached
- `media.media_link` (string): URL of the full media file
- `media.thumb_link` (string): URL of the thumbnail
- `board.shortname` (string): Board shortname

```bash
curl 'https://archive.4plebs.org/_/api/chan/post/?board=tv&num=2000001'
```

Example response (200):

```json
{
  "doc_id": "1000001",
  "num": "2000001",
  "thread_num": "2000001",
  "op": "1",
  "timestamp": 1600000000,
  "name": "Anonymous",
  "comment": "example comment",
  "media": {
    "media_link": "https://example.com/full.jpg",
    "thumb_link": "https://example.com/thumb.jpg"
  },
  "board": {
    "name": "Television & Film",
    "shortname": "tv"
  }
}
```

## Images

### Search archived images by a text query (modern or OCR mode).

`GET /image_search/`

- Footprint: passive (the target is not contacted)

Returns a paginated list of images matching the text. Each result gives the media hash, links and how many times the file was posted on the board.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | query | string | yes | Text query to search for Example: cute cat |
| `page` | query | integer | no | Page number, starting at 1 Example: 1 |
| `mode` | query | string | no | Search mode; modern is the default Example: modern One of: modern, ocr |

Response fields:

- `meta.page` (integer): Current page
- `meta.last_page` (integer): Total pages
- `meta.per_page` (integer): Items per page
- `meta.text` (string): The search text
- `images[].media_hash` (string): Media hash (base64)
- `images[].thumb_link` (string): Thumbnail URL
- `images[].media_link` (string): Full media URL
- `images[].total` (string): Times posted on this board

```bash
curl 'https://archive.4plebs.org/_/api/chan/image_search/?text=cute%20cat'
```

Example response (200):

```json
{
  "meta": {
    "page": 1,
    "last_page": 1,
    "per_page": 28,
    "text": "cute cat"
  },
  "images": [
    {
      "media_hash": "AAAAAAAAAAAAAAAAAAAAAA==",
      "thumb_link": "https://example.com/thumb.jpg",
      "media_link": "https://example.com/full.jpg",
      "total": "1"
    }
  ]
}
```

### Find archived images similar to an image, given its base64 MD5 media hash.

`GET /similar/`

- Takes: Image
- Footprint: passive (the target is not contacted)

Returns a paginated list of similar images with their media hashes and links.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | query | string | yes | Base64-encoded MD5 media hash Example: AAAAAAAAAAAAAAAAAAAAAA== |
| `page` | query | integer | no | Page number, starting at 1 Example: 1 |

Response fields:

- `meta.page` (integer): Current page
- `meta.last_page` (integer): Total pages
- `meta.per_page` (integer): Items per page
- `images[].media_hash` (string): Media hash (base64)
- `images[].thumb_link` (string): Thumbnail URL
- `images[].media_link` (string): Full media URL
- `images[].total` (string): Times posted on this board

```bash
curl 'https://archive.4plebs.org/_/api/chan/similar/?image=AAAAAAAAAAAAAAAAAAAAAA%3D%3D'
```

Example response (200):

```json
{
  "meta": {
    "page": 1,
    "last_page": 1,
    "per_page": 28
  },
  "images": [
    {
      "media_hash": "BBBBBBBBBBBBBBBBBBBBBB==",
      "thumb_link": "https://example.com/thumb.jpg",
      "media_link": "https://example.com/full.png",
      "total": "1"
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
