> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xshot.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok token extraction for many tweets

> Runs Grok token extraction for several tweets in parallel (bounded concurrency).



## OpenAPI

````yaml /openapi-spec/xshot.yaml get /twitter/tweet/grok/batch
openapi: 3.0.3
info:
  title: Xshot REST API
  version: 1.0.0
  description: >
    Twitter/X data API. Access user profiles, tweets, communities, lists,
    spaces, and trends.


    All endpoints require authentication via `api_key` query parameter,
    `x-api-key` header, or `Authorization: Bearer` header.
  contact:
    name: Xshot
    url: https://api.xshot.fun
servers:
  - url: https://api.xshot.fun
    description: Production
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /twitter/tweet/grok/batch:
    get:
      tags:
        - Tweets
      summary: Grok token extraction for many tweets
      description: >-
        Runs Grok token extraction for several tweets in parallel (bounded
        concurrency).
      operationId: getTweetGrokBatch
      parameters:
        - name: tweet_ids
          in: query
          required: true
          description: Comma-separated tweet IDs (max 20).
          schema:
            type: string
        - name: concurrency
          in: query
          required: false
          description: Parallel extractions (1–8, default 5).
          schema:
            type: integer
        - name: fast
          in: query
          required: false
          description: 1 = single-turn fast mode per tweet (no on-chain resolution).
          schema:
            type: string
        - name: model
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Per-tweet extraction results
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: integer
                  results:
                    type: array
                    items:
                      type: object
                      description: Per-tweet ExtractResult, or { tweet_id, error }.
components:
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer

````