instagram_search_enrich
Enrich Instagram search candidates by fetching full profiles, posts, and country; processes ranked subset with progress saving to avoid rate limits.
Instructions
Fetch full profiles, posts and country for the most promising candidates.
This is the expensive stage - roughly three API calls per candidate, so a limit of 40 is around two hundred seconds of deliberate delay before it returns - and it is the one that gets accounts rate limited, so it works on a ranked subset rather than the whole pool. Progress is saved every few candidates and the lock is released between them, so an interruption costs only the candidate in flight and the server stays responsive throughout. Candidates found on several channels go first, since corroboration is the only precision signal available before a profile has been read.
Fetches are best-effort: a candidate whose profile fails is recorded and skipped rather than ending the batch. Nothing already fetched is fetched again, so calling this repeatedly walks further down the pool.
Args: search_id: The search to enrich. limit: How many candidates to fetch. posts_per_user: How many recent posts to read each. include_about: Whether to read the account's country.
Returns: enriched, failed, api_calls, failures[] and next_step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many candidates to fetch. Each costs about three API calls. | |
| search_id | Yes | The search whose candidates to fetch. | |
| include_about | No | Also read Instagram's 'account based in' country. One extra call, and the best location signal there is. | |
| posts_per_user | No | Posts to read per candidate. Twelve is enough to place someone geographically. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||