{
  "id": "api/rest-api-pagination-token-expired",
  "signature": "HTTP 400: Pagination token expired or invalid",
  "signature_zh": "HTTP 400：分页令牌已过期或无效",
  "regex": "pagination.*token.*expired|cursor.*invalid|page.*token.*not.*found",
  "domain": "api",
  "category": "request_error",
  "subcategory": null,
  "root_cause": "The pagination cursor or token used in the API request has expired or was generated for a different query context, causing the server to reject it.",
  "root_cause_type": "generic",
  "root_cause_zh": "API 请求中使用的分页游标或令牌已过期，或为不同查询上下文生成，导致服务器拒绝。",
  "versions": [
    {
      "version": "REST API v3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "cursor-based pagination",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Twitter API v2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The token is already expired; waiting will not revive it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Tokens are opaque and server-generated; manual modification breaks integrity checks.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Some APIs do not support offset pagination; this may not be an option.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Restart pagination from the beginning by omitting the cursor parameter.",
      "success_rate": 0.9,
      "how": "Restart pagination from the beginning by omitting the cursor parameter.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Cache the initial request and re-fetch from scratch if token expires.",
      "success_rate": 0.85,
      "how": "Cache the initial request and re-fetch from scratch if token expires.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Restart pagination from the beginning by omitting the cursor parameter.",
    "Cache the initial request and re-fetch from scratch if token expires."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.twitter.com/en/docs/twitter-api/pagination",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-03-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}