create_batch
Run one operation for up to 100 targets as a background batch with one job per target, returning the batch immediately so results can be retrieved later.
Instructions
Run one operation for up to 100 targets at once as a background batch with one job per target, and return the batch right away. Uses credits for delivered results at the rate get_operation_guide shows (per result, or a flat amount for a few collections); credits are held at the start and the unused part is released, and failed, cancelled or empty runs are free. Use it instead of repeated extract_now or create_extraction calls when you have a list; for large lists run estimate_credits with target_count first. Returns idempotency_key and the batch (id, status, per-status counts, reserved_credits, billed_credits); follow with get_batch, then read each job with get_extraction_result. Safe to retry with the same idempotency_key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"platform": "<platform>",
"operation": "<operation>",
"targets": "<targets>"
},
"name": "create_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to collect per target, from 1 up to the operation's max_results in discover_platforms. Default 12. Single-item operations (profile, post, video, transcript, playlist, adlibrary_ad, adlibrary_ad_transcript, profile_analytics) always count as 1; Instagram highlights, highlight_items and stories ignore limit. Example: 50 | |
| targets | Yes | Targets to run the operation for, 1-100, each in the same format as target and up to 255 characters; duplicates (ignoring case) are rejected. Example: ["nike", "adidas"] | |
| platform | Yes | Platform name from discover_platforms: instagram, tiktok, youtube, x or facebook. Example: instagram | |
| operation | Yes | Operation name from discover_platforms for the chosen platform, such as profile, posts, comments, followers, hashtag, search or adlibrary_search. Example: posts | |
| include_posts | No | Only for operation profile: also return this many recent posts, 0 up to the posts operation's max_results (200 at most; 50 at most in extract_now), billed at the posts rate. Default 0. Example: 12 | |
| idempotency_key | No | Optional retry key, 1-128 characters. Repeating the call with the same key and identical arguments returns the original request instead of starting and charging a new one. Reusing a key with different arguments is rejected. Leave it out to get a generated key back as idempotency_key. Example: nike-posts-2026-12-01 |