Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

III.2.b. Threads

Andrey Bogdanov edited this page Feb 24, 2016 · 5 revisions

Get thread information

Request

/api/threadInfo.json?boardName=<bn>&threadNumber=<tn>

Result

Information about a thread without posts.

Result example

{
    "number": 1,
    "bumpLimit": 500,
    "postLimit": 1000,
    "bumpLimitReached": true,
    "postLimitReached": false,
    "closed": false,
    "fixed": false,
    "postCount": 547,
    "postingEnabled": true
}

Error

On any error, an error object is returned. See Error object for details.

Pages and threads

Get JSON representation of a page

Request

/<bn>/<page>.json

Note: page numbers begin from 0.

Result

JSON representation of a page.

Result example

{
    "threads": [
        {thread},
        ...
    ],
    "pageCount": 1,
    "currentPage": 0,
    "lastPostNumber": 60,
    "postingSpeed": "2.6 post(s) per hour."
}

Note: see Get JSON representation of a thread for {thread} object example, and Get specific board description for {board} object example.

Error

On any error, an error object is returned. See Error object for details.

Get JSON representation of a thread

Request

/<bn>/res/<tn>.json

Result

JSON representation of a thread.

Result example

{
    "thread": {
        "number": 4,
        "bumpLimit": 500,
        "postLimit": 1000,
        "bumpLimitReached": false,
        "postLimitReached": false,
        "closed": false,
        "fixed": false,
        "postCount": 5,
        "postingEnabled": true,
        "opPost": {post},
        "posts": [
            {post},
            ...
        ]
    },
    "lastPostNumber": 60
}

Note: see Get specific post for {post} object example, and Get specific board description for {board} object example.

Error

On any error, an error object is returned. See Error object for details.

Get JSON representation of a board catalog

Request

/<bn>/catalog.json

Result

JSON representation of a board catalog.

Result example

{
    "threads": [
        {thread},
        ...
    ],
    "lastPostNumber": 65,
    "postingSpeed": "2.6 post(s) per hour."
}

Note: see Get JSON representation of a thread for {thread} object example, and Get specific board description for {board} object example.

Error

On any error, an error object is returned. See Error object for details.

Clone this wiki locally