- Takes: Username
- Takes: Image
- Passive: the target is not contacted
Results are limited to 40 pages; narrow with start and end dates to reach more. Rate-limited more strictly than the other endpoints. At least one search field is needed. The ocr and ml parameters are deprecated in favour of the image search endpoint.
Query parameters
textText to search for in comments
boardsBoard shortnames separated by a dot
usernameSearch by poster name
tripcodeSearch by tripcode
subjectSearch in subject / title
filenameSearch by original filename
imageBase64-encoded MD5 hash of a media file
country2-letter ISO 3166 country code
startStart date (YYYY-MM-DD)
endEnd date (YYYY-MM-DD)
orderSort order
resultsSet to thread to group results by thread
pagePage of results; none after page 40
Response fields · 4ShowHide
posts[]
Matching posts, each a post object
total_found
Total matches
max_results
Maximum results the search returns
search_title
Description of the search
curl 'https://archive.4plebs.org/_/api/chan/search/'{
"0": {
"posts": [
{
"doc_id": "1000001",
"num": "2000001",
"thread_num": "2000001",
"op": "1",
"timestamp": 1600000000,
"name": "Anonymous",
"comment": "example comment"
}
],
"meta": {
"total_found": 1,
"max_results": 1000,
"search_title": "Searching for posts that contain example."
}
}
}