How to search Instagram profiles by keyword
Get matching Instagram user profiles from a keyword search with handles, follower counts, verification status and profile links
On this page
You need 20 Instagram profile candidates for the keyword "coffee roastery" to build a shortlist before manual review
No run has been executed for this guide. The tables below show the design of the output, with placeholder values
Example input and worksheet design
Example input: query is coffee roastery, type is user, and limit is 20. The keyword is a campaign term, not a live account list
| Input | Example value |
|---|---|
query | coffee roastery |
type | user |
limit | 20 |
The catalog describes anyapi.instagram.search as: "Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links." The worksheet has one row per returned profile. Values here are placeholders showing the shape
| id | handle | name | followers | following | postsCount | verified | url | fit_note |
|---|---|---|---|---|---|---|---|---|
| (user id) | (handle) | (display name) | (count) | (count) | (count or null) | true or false | (profile URL) | (your note) |
Set the search inputs
The contract documents query, type, limit and requireFields; this guide sets the first three. query is required and comes from the campaign keyword. Use one or more words without special punctuation, such as coffee roastery. type is optional and defaults to user; hashtag and place are alternatives. limit is optional from 1 to 20 and defaults to 20. For 20 candidates, set limit to 20. The call is POST /v1/runs with toolId anyapi.instagram.search
requireFields is optional. Omit it and routing is unchanged, with the cheapest source serving. Name postsCount in it when that field is mandatory for your shortlist. When the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge
Read the fields that drive the shortlist
Read found first. When found is true, the matching records are in data.items. When found is false, reason is present and its enum value is not_found: the source states the target does not exist, or returned nothing for it. A found value of false is a successful call, not an error, and still has a cost. Do not treat it as a failed request
Each item carries id, handle and url, plus name, bio, followers, following, postsCount, verified and image when the serving source has them. handle, id and url are populated whenever the provider has data for the entity. postsCount is null when the serving source does not report it. followers may be 0 when the lane does not return it in search results. bio, name and image are empty strings when missing
Use followers, verified, postsCount and url as inputs to your review order. A null postsCount is not a zero post count; it says the serving source did not report the field. For a single known handle, the companion Instagram account lookup covers that lookup
Agent prompt
This prompt asks for one search and the worksheet back. The agent checks the current inputs and price before it runs the call
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Instagram
user profiles for the keyword "coffee roastery" and return up to 20
candidates. Check the current inputs and price of
anyapi.instagram.search before running anything. Call
anyapi.instagram.search once with query "coffee roastery", type "user",
and limit 20. Return a table with id, handle, name, followers,
following, postsCount, verified, url and fit_note. Leave fit_note empty
for the reader. If found is false, return an empty table and include
reason. Do not guess profile values.Replace the example keyword with your campaign keyword. Keep limit at 20 or lower for the first run
Estimated tool cost
Prices from the Purrkey catalog, read November 13, 2026, price revision anyapi-catalog-2026-11-05. The tool is listed as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings. Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| 20 user profiles in one search | calls x max price | $0.0418 per call | 1 | $0.0418 |
| 60 user profiles across three keyword searches | calls x max price | $0.0418 per call | 3 | $0.1254 |
The 20 candidate task is one call, at most $0.0418. Three keyword searches for 60 profiles are three calls, at most $0.1254
Start with one keyword
Run the first keyword with limit set to 20. Open Instagram search on Purrkey to start
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 search Instagram profiles by keyword?
Use anyapi.instagram.search with a required query, optional type set to user, and an optional limit from 1 to 20. The output lists matching records in data.items when found is true.
What inputs does anyapi.instagram.search take?
The contract documents query, type, limit and requireFields. query is required; type defaults to user; limit defaults to 20 and accepts 1 to 20; requireFields can name postsCount.
What does found false mean in Instagram search?
A found value of false says no matching profiles were returned for the query, with reason set to not_found when present. It is a successful call, not an error, and still has a cost.
Which Instagram search fields help decide which profiles to review?
Use followers, verified, postsCount and url as inputs to your review order. A null postsCount says the serving source did not report the field; it is not a zero post count.
How much does one Instagram keyword search cost?
One call is at most $0.0418, and three calls for 60 profiles across three keyword searches are at most $0.1254. The totals are ceilings, and model fees for the agent are not counted.
Can I require postsCount in Instagram search results?
requireFields is optional and can name postsCount. When the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price; the field can still be absent on a profile that genuinely lacks it.
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.