I am currently working through a project where I am pulling all archived profiles. In order to do so we are using the after_id parameter which returns an archived flag. Currently I have the script written to where it parses the response, then filters “archivedprofiles” based on archived = true and then stores it into an environment variable “archivedProfiles” (See Image). This returns a limit of 500 users. Using this metadata we can see there are 33121 users total as well as it gives me the next URL to use. How can I set up a loop to run until there are no more users left? Or no longer an after_id value? I tried to look up some pagination examples but not getting much
enter image description here
enter image description here
I have tried to look up some pagination examples but nothing that was somewhat similar.
