MyFonts.net api query

I’m trying to request multiple samples images from myfonts api to use in a dataset for StyleGAN.

This is the API Documentation. So far I’ve been able to generate one sample image, but I have no idea how to download multiple (I need several thousand.)

This is the URL I’m working with now:

https://apicdn.myfonts.net/v1/fontsample?id=65305&text=Automation&width=1024

I’ve got a txt file with all the font 'id’s in this format. Not sure how to delete the repeated values.

"id": "201626
201626
"id": "63781
63781
"id": "98189
98189
"id": "218464
218464
"id": "79387
79387
"id": "35068