Answer the question
In order to leave comments, you need to log in
How to get information from huge json array?
Hello everybody!
I make a request to the site using its api:
https://api.nike.com/product_feed/threads/v2/?anch... It gives out
a huge array of information from which you need to get just the productid of the desired sneakers, how to do this?
I am writing a discord bot and here is an example:
The user will throw a link to the product to the bot: https://www.nike.com/ru/launch/t/dunk-low-ceramic
And the bot should give him a list (I attach a screenshot)
It contains sizes and links to these sizes of such a plan:
https://www.nike.com/ru/launch/t/dunk-low-veneer?p...
Where:
https://www.nike.com/ru/launch /t/ - constant url
dunk-low-veneer - model name (will be in the thrown url)
?productId=6fc6ef30-5402-54f1-9bff-1e768c397194 - will change depending on the model
&size=9 - will change depending on the size
Answer the question
In order to leave comments, you need to log in
The link contains the following parameters: anchor, count, filter and fields. Use filter, fields to get only the data you need, or anchor and count for pagination.
get information from huge json array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question