Boards.md

February 25, 2023 ยท View on GitHub

boards.json

Example urlhttps://a.4cdn.org/boards.json
Status 200Content-Type: application/json

The boards.json file is a comprehensive list of all boards and their major settings.

Boards.json Attributes

AttributeTypeAppearsDescriptionPossible values
boardstringalwaysThe directory the board is located in.Any string
titlestringalwaysThe readable title at the top of the board.Any string
ws_boardintegeralwaysIs the board worksafe1 or 0
per_pageintegeralwaysHow many threads are on a single index pageAny positive integer
pagesintegeralwaysHow many index pages does the board haveAny positive integer
max_filesizeintegeralwaysMaximum file size allowed for non .webm attachments (in KB)Any positive integer
max_webm_filesizeintegeralwaysMaximum file size allowed for .webm attachments (in KB)Any positive integer
max_comment_charsintegeralwaysMaximum number of characters allowed in a post commentAny positive integer
max_webm_durationintegeralwaysMaximum duration of a .webm attachment (in seconds)Any positive integer
bump_limitintegeralwaysMaximum number of replies allowed to a thread before the thread stops bumpingAny positive integer
image_limitintegeralwaysMaximum number of image replies per thread before image replies are discardedAny positive integer
cooldownsarrayalways
meta_descriptionstringalwaysSEO meta description content for a boardAny string
spoilersintegeronly if enabledAre spoilers enabled1 or 0
custom_spoilersintegeronly if enabledHow many custom spoilers does the board haveAny positive integer
is_archivedintegeronly if enabledAre archives enabled for the board1 or 0
board_flagsarrayonly if enabledArray of flag codes mapped to flag names
country_flagsintegeronly if enabledAre flags showing the poster's country enabled on the board1 or 0
user_idsintegeronly if enabledAre poster ID tags enabled on the board1 or 0
oekakiintegeronly if enabledCan users submit drawings via browser the Oekaki app1 or 0
sjis_tagsintegeronly if enabledCan users submit sjis drawings using the [sjis] tags1 or 0
code_tagsintegeronly if enabledBoard supports code syntax highlighting using the [code] tags1 or 0
math_tagsintegeronly if enabledBoard supports [math] TeX and [eqn] tags1 or 0
text_onlyintegeronly if enabledIs image posting disabled for the board1 or 0
forced_anonintegeronly if enabledIs the name field disabled on the board1 or 0
webm_audiointegeronly if enabledAre webms with audio allowed?1 or 0
require_subjectintegeronly if enabledDo OPs require a subject1 or 0
min_image_widthintegeronly if enabledWhat is the minimum image width (in pixels)Any positive integer
min_image_heightintegeronly if enabledWhat is the minimum image height (in pixels)Any positive integer
  • integer 1 = (on) or 0 (off)

Example file

{
	"boards": [{
		"board": "a",
		"title": "Anime \u0026 Manga",
		"ws_board": 1,
		"per_page": 15,
		"pages": 10,
		"max_filesize": 4194304,
		"max_webm_filesize": 3145728,
		"max_comment_chars": 2000,
		"max_webm_duration": 120,
		"bump_limit": 500,
		"image_limit": 300,
		"cooldowns": {
			"threads": 600,
			"replies": 60,
			"images": 60
		},
		"meta_description": "\u0026quot;\/a\/ - Anime \u0026amp; Manga\u0026quot; is 4chan's imageboard dedicated to the discussion of Japanese animation and manga.",
		"spoilers": 1,
		"custom_spoilers": 1,
		"is_archived": 1
	}, {
		"board": "b",
		"title": "Random",
		"ws_board": 0,
		"per_page": 15,
		"pages": 10,
		"max_filesize": 2097152,
		"max_webm_filesize": 2097152,
		"max_comment_chars": 2000,
		"max_webm_duration": 120,
		"bump_limit": 300,
		"image_limit": 150,
		"cooldowns": {
			"threads": 60,
			"replies": 15,
			"images": 15
		},
		"meta_description": "\u0026quot;\/b\/ - Random\u0026quot; is the birthplace of Anonymous, and where people go to discuss random topics and create memes on 4chan.",
		"forced_anon": 1,
		"board_flags": {
			"AB": "Flag Name AB",
			"XY": "Flag Name XY"
		}
	}],
}