Social media5 min readBy Purrkey teamUpdated

Threads API: how to search public posts by keyword and date

Search public Threads posts by keyword or hashtag and return normalized post text, author, engagement counts, timestamp, and URL

On this page

You have a launch hashtag and need to review 60 public Threads posts from the past week, then decide which posts and creators to engage with and which themes are drawing replies

The deliverable is one table with a row per post and ten columns: id, text, username, fullName, likeCount, replyCount, repostCount, quoteCount, createdUtc, url. Nothing in this guide has been run, so each table below is a design

The worksheet the search should fill

Values here are placeholders showing the shape

idtextusernamefullNamelikeCountreplyCountrepostCountquoteCountcreatedUtcurl
(post id)(post text)(handle)(display name)00001762500000(post url)

replyCount is the column that decides where the review starts, because a post with replies is a thread you can read before joining it. likeCount and repostCount show reach with no conversation attached, and quoteCount marks posts that carried the message into another feed. createdUtc is a UTC epoch timestamp in seconds, so multiply by 1000 for a JS Date in milliseconds

Set the query, then bound the window

anyapi.threads.search takes one required field, query, and two optional fields, startDate and endDate, both patterned YYYY-MM-DD

query is a keyword or hashtag and the # prefix is optional. Threads matches text inside posts, so the catalog says to search a brand or topic rather than a URL, and a query that is only a domain is searched by its name. Example values, invented for this guide and replaced by your own hashtag and reporting week:

FieldExample value
query#acmeplumbinglaunch
startDate2026-11-05
endDate2026-11-12

startDate and endDate keep the table inside the days you name. Threads pages backwards in time from endDate, so narrowing that date is how you walk older results, and pinning it makes a weekly check repeatable

One limit sits on this step because it changes what the query can return: only public Threads posts are searchable. Posts behind a private account are outside the search, so a thin table can reflect access rather than silence

Read found, data and reason before the counts

found is true when the search ran. data is the wrapper holding the posts array, present whenever the search ran, with an empty array when nothing matched, and null only when the search could not run. reason appears only when found is false, and the one listed value is not_found

That split changes the follow-up. An empty posts array is an answer: the search completed and nothing matched the query in the window. A found: false answer is a successful call rather than an error, and the contract says costUsd is what it actually cost, so read the reason before retrying or widening the dates

Inside each post record, quoteCount is not in the required field list, so treat a missing value as unknown rather than zero. isVerified and profilePicUrl come back when the provider has data for the entity

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search public
Threads posts for the hashtag #acmeplumbinglaunch between 2026-11-05 and
2026-11-12. Check the current inputs and price of anyapi.threads.search
before running anything. Use query, startDate and endDate for the window.
Return a table with id, text, username, fullName, likeCount, replyCount,
repostCount, quoteCount, createdUtc and url, plus a readable date column
converted from the createdUtc epoch seconds. Leave quoteCount blank if a
post record has no value for it. If found is false, report the reason and
stop. Do not invent posts or fill in counts.

Replace the hashtag and the two dates with your window before running it. The contract does not state how many posts one call returns, so the 60-post review is a target for the table, not a call count

Estimated tool cost

Price from the Purrkey catalog, read November 12, 2026, through POST /v1/runs with toolId anyapi.threads.search. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The totals below are ceilings, and agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
Single search1 call x max price$0.0036 per call1$0.0036
Weekly check25 calls x max price$0.0036 per call25$0.09

The quantity column counts searches, not rows, because the contract does not tie a call to a fixed number of posts. A first run of one call is at most $0.0036, and a 25-call weekly check is at most $0.09

Run one search first

Run the single call against your live hashtag and compare the returned records with the ten columns above before scheduling the 25-call check. The tool page is at Threads search

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Threads.
Explore Threads tools and pricing

FAQ

How do I search public Threads posts by keyword and date?

Pass a keyword or hashtag as query to anyapi.threads.search and set startDate and endDate in YYYY-MM-DD format to bound the window. Each matching post comes back with text, author, engagement counts, a timestamp and a URL.

What inputs does anyapi.threads.search take?

query is required. startDate and endDate are optional date bounds formatted YYYY-MM-DD.

What does found false mean in the Threads search output?

found is true when the search ran. It is false when the upstream could not run the search, and reason then carries the only listed reason value.

What does an empty posts array mean?

It means the search completed and nothing matched, which the contract calls an answer rather than a failure. found is true in that case and data.posts is present as an empty array.

Can the search return private Threads posts?

No. Only public Threads posts are searchable.

How much do 25 Threads searches cost?

At the listed maximum per-call price of $0.0036 per call, 25 calls come to at most $0.09. Successful runs settle at the actual AnyAPI charge, so that figure is a ceiling.

How do I convert createdUtc to a readable date?

createdUtc is a UTC epoch timestamp in seconds. Multiply by 1000 for a JS Date in milliseconds.

Next step

Try this with Threads

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Threads tools

Share this article