Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 3.23 KB

README.md

File metadata and controls

52 lines (42 loc) · 3.23 KB

4chan's API

All URLs listed are clickable examples (watch for potentially NSFW content).

Portions of the URL listed in code blocks are arguments and can be changed.

Endpoint

Default API endpoint: https://a.4cdn.org (accessible over both HTTP and HTTPS)

Operations

CORS is supported with the origin: boards.4chan.org (over both HTTP and HTTPS)

Supported request methods are: GET, HEAD, OPTIONS

Objects

  • BASIC Board
    • Contains information about a board.
    • Used in:
      • /boards.json
  • BASIC Post
    • Describes a post.
  • COMPOUND Page
    • A collection of threads.
    • Uses:
      • Thread
    • Used in:
      • /b/catalog.json
      • /b/threads.json
  • COMPOUND Thread
    • Basically a list of posts.
    • Uses:
      • Post
    • Used in:
      • /b/n.json
      • /b/thread/n.json
      • /b/catalog.json