Twitch API after and pagination

An example from the TwitchCLI

twitch api get 'streams?first=1&language=de&game_id=33214'
{
  "data": [
    {
      "game_id": "33214",
      "game_name": "Fortnite",
      "id": "44565798381",
      "is_mature": false,
      "language": "de",
      "started_at": "2021-11-25T17:22:52Z",
      "tag_ids": [
        "9166ad14-41f1-4b04-a3b8-c8eb838c6be6"
      ],
      "thumbnail_url": "https://static-cdn.jtvnw.net/previews-ttv/live_user_tantechantii-{width}x{height}.jpg",
      "title": "Late Game Arenaa mit Anakin \u0026 Annalena! // !twitter !ova !subrekord",
      "type": "live",
      "user_id": "592513880",
      "user_login": "tantechantii",
      "user_name": "tantechantii",
      "viewer_count": 270
    }
  ],
  "pagination": {
    "cursor": "eyJiIjp7IkN1cnNvciI6ImV5SnpJam95TnpBdU56WTBNalUxTkRJMU5ETTFNalFzSW1RaU9tWmhiSE5sTENKMElqcDBjblZsZlE9PSJ9LCJhIjp7IkN1cnNvciI6ImV5SnpJam95TnpBdU56WTBNalUxTkRJMU5ETTFNalFzSW1RaU9tWmhiSE5sTENKMElqcDBjblZsZlE9PSJ9fQ"
  }
}

You should see that

So the cursor in your code should be

$resp1X->pagination->cursor;

not

$resp1X->data[0]->pagination;