instagram_search_gate
Filter an Instagram search pool by privacy, shop status, media count, and follower range to keep only qualified candidates, with drop reasons and next step.
Instructions
Cut the pool down using only data already fetched. Costs nothing.
Run it straight after recall, and again after enrichment - the first pass can only see privacy and handles, while the second can see follower counts and bios. The under-18 floor does not depend on this: it is applied the moment age becomes readable and again at every exit, so no ordering of stages can let a minor through.
Every drop is counted by reason, so a gate that removes too much can be loosened deliberately rather than guessed at.
Args: search_id: The search to filter. exclude_private: Drop private accounts. exclude_shops: Drop apparent businesses. min_media: Minimum post count. follower_min: Follower floor. follower_max: Follower ceiling. max_pool: Maximum candidates to keep.
Returns: kept, dropped, reasons (a count per drop reason) and next_step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_pool | No | Cap the surviving pool, keeping the best-corroborated candidates. | |
| min_media | No | Minimum posts an account must have. | |
| search_id | Yes | The search to filter. | |
| follower_max | No | Highest acceptable follower count. Omit for no ceiling. | |
| follower_min | No | Lowest acceptable follower count. Omit for no floor. | |
| exclude_shops | No | Drop accounts that look like shops or brands rather than people. | |
| exclude_private | No | Drop private accounts. They cannot be verified, so they are dead weight. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||