recanman / PrivateCh

No-JavaScript privacy-friendly alternate frontend for imageboard.
GNU General Public License v3.0
3 stars 0 forks source link

wip: board/global search #27

Open recanman opened 1 year ago

recanman commented 1 year ago

closes #4

recanman commented 1 year ago

Right now, the search API (GET https://p.4chan.org/api/search?q=${query}&b=${board (optional)}, with header X-Requested-With: p4 f) keeps returning an error.

{
    "errors": ["find.4chan.org: Response status code is not 200, but 403"]
}

Even if I try it on the official client site e.g https://p.4chan.org/_/search?query=example, I still get the same error. I will wait until this merges because I will not assume that this API will return a standard response.