Threads Keyword Search Without App Review: Monitor in Python
Without app review, Meta's Threads keyword_search endpoint only searches posts owned by the authenticated user. Public posts become searchable only after Meta approves your app for the threads_keyword_search permission. To monitor public keywords before (or instead of) that approval, read the public search page at threads.com/search?q=… and dedupe posts by their code between runs. That is the…
Threads keyword_search function only examines posts created by the account that is signed in. Public posts are only searchable after the Meta app is approved for threads_keyword_search permission. Until then, the only way to monitor those posts is by inspecting the public search page. Once approved, you can use the official keyword_search API endpoint.
It requires two permissions: threads_basic and threads_keyword_search. The endpoint provides date bounds and up to 100 results per page. If you cannot get app approval, you can use the public page as a workaround. The public page serves relevance-ranked and recent-first results for a given keyword. The data is embedded in JSON blocks inside script tags when the request identifies as a link-preview crawler.
The script uses a recursive function to parse the JSON blocks and extract post nodes containing code, caption, pk, and either taken_at or like_count. The script keeps track of previously seen posts using a JSON file and only prints new posts.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.