I manage to do the query and get the data from the stream in the case of your example and I get the cursor, the problem is that from there I don’t know how I can work with the cursor to get new paginations
{
id: '44820029260',
user_id: '34711476',
user_login: 'jesusavgn',
user_name: 'JesusAVGN',
game_id: '515214',
game_name: 'Politics',
type: 'live',
title: '!", ' !", https://t.me/jesusavgntwitch',
viewer_count: 23246,
started_at: '2022-02-26T19:32:50Z',
language: 'ru',
thumbnail_url: 'https://static-cdn.jtvnw.net/previews-ttv/live_user_jesusavgn-{width}x{height}.jpg',
tag_ids: [Array],
is_mature: false
}
],
pagination: {
cursor: 'eyJiIjp7IkN1cnNvciI6ImV5SnpJam95TkRJM05qRXVORFExTnpRMk5EWTJPRGNzSW1RaU9tWmhiSE5sTENKMElqcDBjblZsZlE9PSJ9LCJhIjp7IkN1cnNvciI6ImV5SnpJam95TXpJME5pNDRNRFUxTkRBeU16QTJNU3dpWkNJNlptRnNjMlVzSW5RaU9uUnlkV1Y5In19'
}
}
axios.get(`https://api.twitch.tv/helix/streams/?first=20&after=${cursor}`,options);
cursor = get.data.pagination.cursor;
eyJiIjp7IkN1cnNvciI6ImV5SnpJam95TXpVeE1qQXVORFExTnpRMk5EWTJPRGNzSW1RaU9tWmhiSE5sTENKMElqcDBjblZsZlE9PSJ9LCJhIjp7IkN1cnNvciI6ImV5SnpJam95TXpjMk9TNHlOekV6TWpBeU16SXdPQ3dpWkNJNlptRnNjMlVzSW5RaU9uUnlkV1Y5In19
I’m trying to save the cursor value and use it in the following query but I’m not doing it right. If you can provide me with a code that is making use of the cursor and making the query so I can see how it is done, I would appreciate it.
I only manage to make it functional by manually making the call