Skip to content
OSINTtools.io

4plebs API

Community-run archive of selected 4chan boards, including /pol/, with full-text search, image search and a JSON API.

Base URL
https://archive.4plebs.org/_/api/chan
Sign-in
No key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from 4plebs.org · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. No key needed

    The 4plebs API answers without an account or key.

  2. Make your first request

    Search archived posts across one or more boards by text, name, tripcode, filename, image hash and more.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://archive.4plebs.org/_/api/chan/search/'
  3. Read the response

    A 200 response looks like this.

    {
      "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."
        }
      }
    }

Authentication

No key or account: every endpoint answers without one.

Free access; send a descriptive User-Agent that names your application.

Rate limits and pricing

A few requests per minute; limits are dynamic and the search endpoint is stricter. Exceeding gives HTTP 429 with a Retry-After header.

Errors

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

Board content

  • 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.

Query parameters

boardstringrequired

Board shortname

Example: adv
numintegerrequired

Post number of the original post

Example: 2000001
latest_doc_idinteger

Latest doc_id to start from, for polling

Example: 1000001
last_limitinteger

Limit results to the last x posts

Example: 20
Response fields · 2Show

opobject

The original post (post object)

postsobject

Replies keyed by post number (post objects)

curl 'https://archive.4plebs.org/_/api/chan/thread/?board=adv&num=2000001'
No key needed
Response
{
  "2000001": {
    "op": {
      "num": "2000001",
      "op": "1",
      "name": "Anonymous",
      "comment": "example opening post"
    },
    "posts": {
      "2000002": {
        "num": "2000002",
        "op": "0",
        "name": "Anonymous",
        "comment": "example reply"
      }
    }
  }
}
  • Passive: the target is not contacted

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

Query parameters

boardstringrequired

Board shortname

Example: tv
numintegerrequired

Post number

Example: 2000001
Response fields · 11Show

doc_idstring

Internal document ID

numstring

Post number

thread_numstring

Thread number

opstring

1 if this is the original post

timestampinteger

Unix timestamp of the post

namestring

Poster name

commentstring

Raw comment text

media_hashstring

Media hash (base64), when a file is attached

media_linkstring

URL of the full media file

thumb_linkstring

URL of the thumbnail

shortnamestring

Board shortname

curl 'https://archive.4plebs.org/_/api/chan/post/?board=tv&num=2000001'
No key needed
Response
{
  "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

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

Query parameters

imagestringrequiredtakes your image

Base64-encoded MD5 media hash

Example: AAAAAAAAAAAAAAAAAAAAAA==
pageinteger

Page number, starting at 1

Example: 1
Response fields · 7Show

pageinteger

Current page

last_pageinteger

Total pages

per_pageinteger

Items per page

media_hashstring

Media hash (base64)

thumb_linkstring

Thumbnail URL

media_linkstring

Full media URL

totalstring

Times posted on this board

curl 'https://archive.4plebs.org/_/api/chan/similar/?image=AAAAAAAAAAAAAAAAAAAAAA%3D%3D'
No key needed
Response
{
  "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"
    }
  ]
}