How to check an Instagram hashtag's total post count
Get the total post count for each of 12 candidate Instagram hashtags, then sort the list into broad, niche and worth testing before any tag goes into campaign copy
On this page
You have 12 candidate Instagram hashtags for a launch week and need the total post count for each one before you commit any tag to the post copy. One call to anyapi.instagram.hashtag_analytics per tag returns the count as an integer and as a formatted string, and the worksheet you build from those rows is what separates the broad tags from the niche ones
The table below is the deliverable. Nothing has been run for this article, so the values in it are a design, not a result
Build the hashtag worksheet
Start from the campaign tag list. The example below is invented, apart from streetphotography, which the tool description uses to show the accepted format without the # symbol
| # | Hashtag |
|---|---|
| 1 | streetphotography |
| 2 | smallbakery |
| 3 | launchweek |
| 4 | citywalks |
| 5 | filmonly |
| 6 | coffeebreak |
| 7 | madebyhand |
| 8 | shoplocal |
| 9 | weekendmarket |
| 10 | slowmorning |
| 11 | cornerstore |
| 12 | printshop |
The agent fills one row per hashtag with these columns. Values here are placeholders showing the shape
| Hashtag | Hashtag ID | Total posts | Formatted post count | URL | Found | Reason |
|---|---|---|---|---|---|---|
| streetphotography | (id string) | (integer) | (e.g. 793.54 M) | (url) | true or false | not_found or empty |
What the tool takes
hashtag is the field that carries the tag. It is required, and it accepts the tag with or without the # symbol, so streetphotography and #streetphotography both describe the same lookup
limit is optional and deprecated: the contract states it has no effect. Leave it out of the call. If you supply it anyway, the result does not change, so the count you get belongs to the tag and not to that number. The field still sits in the schema next to a minimum of 1 and a maximum of 20, which makes it look active
Read the fields that drive the decision
The catalog lists the call, and the tool is called through POST /v1/runs with toolId anyapi.instagram.hashtag_analytics. Check found first. When it is true, data holds an items array, and each item carries name, id, postsCount, postsFormatted and url. Sort on postsCount, the integer. postsFormatted repeats the same figure as a string such as 793.54 M, useful for a slide but not for sorting. url is the hashtag page to paste into the campaign doc, and id is the record identifier that keeps two similar tag names apart in the sheet
The item schema requires name and url, while id, postsCount and postsFormatted are marked as populated whenever the provider has data for the entity. A blank count next to a real URL is a data gap, so flag it and check the tag by hand
When found is false, data is null and reason says not_found. The contract notes that a found: false answer is a successful call, not an error, and costUsd is what it actually cost. Write not_found in the Reason column and leave the count blank rather than treating the row as broken
Set your broad and niche bands before the run and write them into the prompt. The tool returns a count per tag; it does not tell you where your own cut-offs sit
If you need the recent posts behind a tag rather than the lifetime count, the companion guide covers latest Instagram posts for a hashtag
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to check the total
post count for the 12 Instagram hashtags below. Check the current inputs
and price of anyapi.instagram.hashtag_analytics before running anything.
Call the tool once per hashtag and pass the tag without the # symbol. Do
not pass limit. Return a table with columns: hashtag, hashtag id, total
posts, formatted post count, url, found, reason. Copy the reason value
when found is false and leave the count blank. Do not invent counts.
streetphotography
smallbakery
launchweek
citywalks
film-only
coffeebreak
madebyhand
shoplocal
weekendmarket
slowmorning
cornerstore
printshopReplace the example tags with your campaign list. Keep the first run to three tags so you can see which columns fill in before spending on the full set
Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026. The tool is listed with the unit max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge." Each total below is a ceiling
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Check one tag | calls x max price | up to $0.0011 per call | 1 | $0.0011 |
| Check 12 tags | calls x max price | up to $0.0011 per call | 12 | $0.0132 |
| Launch-week plan | 12 | $0.0132 |
A single tag costs at most $0.0011 and the full list of 12 costs at most $0.0132. Model fees for the agent are not counted
Run the 12 tags
Open the Instagram hashtag analytics tool, paste your tag list into the prompt above and run the first three rows before the rest
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 Instagram.FAQ
How do I check the total post count for an Instagram hashtag?
Call anyapi.instagram.hashtag_analytics with the tag in the hashtag field, one call per tag. The row comes back with found, and when it is true the count sits in postsCount as an integer and postsFormatted as a string such as 793.54 M.
Does the hashtag need the # symbol?
No. The hashtag field accepts the tag with or without the # symbol, so streetphotography and #streetphotography are both valid forms of the same request.
What does the limit input do in anyapi.instagram.hashtag_analytics?
Nothing. The contract marks limit as deprecated and states it has no effect, so leave it out of the call. The field still appears in the schema with a minimum of 1 and a maximum of 20, which makes it look active.
What does found false mean for a hashtag lookup?
It means the source returned nothing for that tag. data is null, reason is not_found, and the contract says a found: false answer is a successful call, not an error.
Why is postsCount sometimes missing from a row?
The item schema requires name and url. id, postsCount and postsFormatted are marked as populated whenever the provider has data for the entity.
How much does it cost to check 12 Instagram hashtags?
At most $0.0132, since the unit price is up to $0.0011 per call and the plan is 12 calls. A single tag is at most $0.0011.
Can I check several hashtags in one call?
No. The input carries one hashtag, so a list of 12 tags means 12 calls.
Next step
Try this with Instagram
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.