Last updated
Use this endpoint to retrieve a list of boards. The data retrieved from this endpoint is rarely updated and should be safe to cache. It is possible to include recent topics and its recent posts with query strings (see also #api-board and #api-topic), doing so with this API is not recommended as it will put extra loads on the server.
Array
containing #api-board.
Use this endpoint to retrieve any individual board. By default this endpoint will not include topics and recent posts in the response. It is possible to instruct the API to include those data with query strings listed below. Passing both ?topics=1&posts=1
will make the API effectively returning the same data as board's "Recent topics" page.
Query string | Description |
---|---|
?topics=1 | Include the recent 10 topics in a topics object. |
?posts=1 | Include the recent 30 posts in a posts object. Only if topics is present. |
Object
containing the fields as listed below. Unicode strings are escaped in actual response.
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "board". "type":"board" |
id | Integer |
Internal ID for the board. "id":1 |
agreements | String |
A Markdown-formatted agreements for using the board. "agreements":"* ห้ามมีเนื้อหาเกี่ยวข้องกับการเมืองหรือสถาบันพระมหากษัตริย์โดยเด็ดขาด" |
description | String |
The description of the board. "description":"บอร์ดอิสระสำหรับพูดคุยเรื่องใดก็ได้ที่หมวดที่มีอยู่ไม่ครอบคลุม" |
settings | Object |
The settings for the board. Available options are:
"settings":{ |
slug | String |
The identity slug of the board. "slug":"lounge" |
status | String |
Status string whether the board is still active or not. Available values are:
"status":"open" |
title | String |
The title of the board. "title":"Lounge" |
path | String |
The path to this resource. "path":"/api/1.0/boards/lounge/" |
Use this endpoint to create a new topic in a specific board. Please note that this API will enqueue the topic with the global posting queue and will not guarantee that the topic will be successfully posted. To retrieve the status of topic creation, please see #api-task.
Parameters | Type | Description |
---|---|---|
title | String | Title of the topic. From 5 to 200 characters. |
body | String | Content of the topic. From 5 to 4,000 characters. |
Either an #api-task or an #api-error.
Use this endpoint to retrieve a list of topics associated to the specific board. By default this API will return the same data as board's "All topics" page which includes open topic and topic that are closed (locked and archived) within 1 week of last posted date. It is also possible to include recent posts with query string but doing so with this API is not recommended.
Query string | Description |
---|---|
?board=1 | Include the board in a board object. |
?posts=1 | Include the recent 30 posts in a posts object. |
Array
containing #api-topic.
Use this endpoint to retrieve any individual topic. This endpoint by default will not include any posts but it is possible to instruct the API to include them using query string. Posts retrieved as part of this API is limited to the recent 30 posts. For retrieving a full list of posts, see #api-topic-posts and #api-topic-posts-scoped.
Query string | Description |
---|---|
?board=1 | Include the board in a board object. |
?posts=1 | Include the recent 30 posts in a posts object. |
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "topic". "type":"topic" |
id | Integer |
Internal ID for the topic. "id":1 |
board_id | Integer |
Internal ID of a board the topic is associated with. "board_id":1 |
bumped_at | String |
ISO 8601-formatted datetime of when the topic was last bumped to top of the board. "bumped_at":"2014-05-07T07:22:01.831981-07:00" |
created_at | String |
ISO 8601-formatted datetime of when the topic was created. "created_at":"2013-02-06T16:45:20.275693-08:00" |
post_count | Integer |
Number of posts in the topic. "post_count":693 |
posted_at | String |
ISO 8601-formatted datetime of when a new post was made to the topic regardless of bump status. "posted_at":"2014-05-07T07:52:27.700932-07:00" |
status | String |
Status string whether the topic is still active or not. Available values are:
"status":"open" |
title | String |
The title of the topic entered by the user in new topic form. "title":"ยินดีต้อนรับเข้าสู่ Fanboi Channel 2.0" |
path | String |
The path to this resource. "path":"/api/1.0/topics/1/" |
Use this endpoint to create a new post in a specific topic (i.e. post a reply). Please note that this API will enqueue the post with the global posting queue and will not guarantee that the post will be successful. To retrieve the status of the post, please see #api-task.
Parameters | Type | Description |
---|---|---|
body | String | Content of the topic. From 5 to 4,000 characters. |
bumped | Boolean | A flag whether the post should bump the topic to top of the board. |
Either an #api-task or an #api-error.
Use this endpoint to retrieve a list of posts associated to the specific topic. By default this API will returns all posts. For a more specific query scope, please see #api-topic-posts-scoped.
Query string | Description |
---|---|
?topic=1 | Include the topic in a topic object. |
?board=1 | Include the board in a boards object. Only if topic is present. |
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "post". "type":"post" |
id | Integer |
Internal ID for the post. "id":1 |
body | String |
The post body entered by the user in new topic or reply form. "body":"..." |
body_formatted | String |
Same as body but format it to HTML using internal formatter. "body_formatted":"<p>...</p>" |
bumped | Boolean |
A flag whether the post bumped the topic to top of the board. "bumped":true |
created_at | String |
ISO 8601-formatted datetime of when the post was created. "created_at":"2013-02-06T16:45:20.275693-08:00" |
ident | String |
Unique ID for each user that was generated when the board has use_ident enabled. "ident":"7xFKuAP5G" |
ident_type | String |
The type of the user ident. IPv6 idents are normalized to
"ident_type":"ident" |
name | String |
The name entered for this post. "name":"Nameless Fanboi" |
number | Integer |
Order of the post within the topic. "number":1 |
topic_id | Integer |
Internal ID of a topic the post is associated with. "topic_id":1 |
path | String |
The path to this resource. "path":"/api/1.0/topics/1/posts/" |
Use this endpoint to scope posts with the given queries. The query could be one of the following:
Query | Description |
---|---|
{n} | Query a single post with n number. |
{n1}-{n2} | Query posts from n1 to n2. If n1 or n2 is not given, 0 and last post are assumed respectively. |
l{n} | Query the last n posts, for example, l10 will list the last 10 posts. |
recent | Alias for l30. |
Query string | Description |
---|---|
?topic=1 | Include the topic in a topic object. |
?board=1 | Include the board in a boards object. Only if topic is present. |
Same as #api-topic-posts.
Use this endpoint to retrieve a list of all pages. Usually these pages will contain static content, such as guidelines or help.
Array
containing #api-page.
Use this endpoint to retrieve any individual page.
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "page". "type":"page" |
id | Integer |
Internal ID for the page. "id":1 |
body | String |
The page body. "body":"..." |
body_formatted | String |
Same as body but format it using specified formatter. Note that this field is meant to be rendered in a HTML viewer and will escape the body in case the formatter is "none". If the content will not be displayed in a HTML viewer in case the formatter is "none", body must be used instead. "body_formatted":"<p><em>Hello, world</em></p>\n" |
formatter | String |
Name of a formatter to format this page's body. Available values are:
"formatter":"markdown" |
namespace | String |
Namespace of this page, usually "public". "namespace":"public" |
slug | String |
The identity of this page. "slug":"hello" |
title | String |
The title of this page. "title":"Hello, world!" |
updated_at | String |
ISO 8601-formatted datetime of when the post was updated. "updated_at":"2016-10-29T14:59:12.451212-08:00" |
path | String |
The path to this resource. "page":"/api/1.0/pages/hello/" |
Use this endpoint to retrieve a status of a task.
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "task". "type":"task" |
id | String |
Internal ID for the task. "id":"aff5dede-7f4e-4e48-ad4d-2f6396a5e75c" |
status | String |
Status string of the task. Available values are:
Normally it is safe to ignore all statuses except for success. Note that success only refer to the status of the task processing and not the result. For example, it is normal for task to report success status for a post that is rejected by a spam filter. In all cases, always refer to "status":"open" |
data | Object |
Result of task processing. It could be one of the following objects depending on the type of task. Only available if "data":{ ... } |
path | String |
The path to this resource. "path":"/api/1.0/tasks/aff5dede-7f4e-4e48-ad4d-2f6396a5e75c/" |
An object representing general errors.
Field | Type | Description |
---|---|---|
type | String |
The type of API object. The value is always "error". "type":"error" |
status | String |
Error status. Available statuses are:
In case of post rejection, the following statuses are returned:
"status":"rate_limited" |
message | String |
Description of the error. "message":"Please wait 20 seconds before retrying." |
Be Civil — "Be curious, not judgemental"
All contents are responsibility of its posters.