Not able to set value in global variable when my responce has over 4000 results which dynamic hash value appended

I am running and API which in responce gives me list of 4000 project id’s with a dynamic hash value appended everytime. I want to set this value as a global variable. Which i am not able to.
Below is the example of the responce i get running API

2097590$$wbqOTB ! ! ! 2018 AJ WF

What are you going to be doing with those ids? There might be a better solution than the approach you’re taking.

I want to set it to global variable and want to use it in other API’s