POST /api/fourchan/threads
Price: 10 credits
Get one 4chan thread by board and thread number: the opening post with its subject, text, attached file and poster flair, plus every reply in posting order with its own text and file
Thread numbers are per board, so the pair must match: a real number on the wrong board is a 412 exactly like a number that never existed. 4chan threads are deleted once they fall off the board, and a deleted thread returns the same 412 as a wrong id, so a not-found here never means the thread was fake. Threads that reached a board's archive keep answering, with `is_archived` and `archived_at` set, but only while they stay inside the board's archive window: the archive is a rolling window, not storage, so a thread that rotates out of it 412s permanently, same as one that was never archived. Boards without an archive lose their threads outright as soon as they fall off the board. Read `text` for plain reply text and `text_html` when the quote links matter.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)board string required — Board slug the thread lives on, or a 4chan URL containing it (examples: "g", "vrpg", "https://boards.4chan.org/g/thread/109781529"; minLength: 1)thread_id string required — Thread number, or a thread URL containing it (examples: "109781529", "https://boards.4chan.org/g/thread/109781529"; minLength: 1)@type string (default: "FourchanThread")id string requiredboard string requiredurl string nullablealias string nullabletext string nullabletext_html string nullablecreated_at integer nullablelast_modified_at integer nullablearchived_at integer nullablereply_count integer nullableimage_count integer nullableomitted_post_count integer nullableomitted_image_count integer nullableis_sticky boolean nullableis_closed boolean nullableis_archived boolean nullableis_bump_limit_reached boolean nullableis_image_limit_reached boolean nullableauthor_name string nullabletripcode string nullablecapcode string nullableposter_id string nullablecountry string nullablecountry_name string nullableboard_flag string nullableboard_flag_name string nullablepass_since_year integer nullabletag string nullablefile object nullable@type string (default: "FourchanFile")name string nullableextension string nullableurl string nullablethumbnail string nullablewidth integer nullableheight integer nullablethumbnail_width integer nullablethumbnail_height integer nullablesize integer nullablemd5 string nullableis_spoiler boolean nullableis_deleted boolean nullablehas_mobile_variant boolean nullablespoiler_id integer nullablereplies array (default: [])@type string (default: "FourchanPost")id string requiredboard string requiredthread_id string requiredurl string nullablecreated_at integer nullabletext string nullabletext_html string nullableauthor_name string nullabletripcode string nullablecapcode string nullableposter_id string nullablecountry string nullablecountry_name string nullableboard_flag string nullableboard_flag_name string nullablepass_since_year integer nullablefile object nullable@type string (default: "FourchanFile")name string nullableextension string nullableurl string nullablethumbnail string nullablewidth integer nullableheight integer nullablethumbnail_width integer nullablethumbnail_height integer nullablesize integer nullablemd5 string nullableis_spoiler boolean nullableis_deleted boolean nullablehas_mobile_variant boolean nullablespoiler_id integer nullable422 — board is not a board slug, or thread_id is not a thread number Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — No thread with that number on that board — wrong pairing, or the thread has been pruned Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.