How to use DevTools in Firefox to find JSON data in EpicGames.com
Movie shows Devtools in Firefox, tab Network, filter XHR.
You can access DevTools using menu Web Developer or key shortcut F12.
After clicking link in DevTools it shows also tabs Headers and Response with JSON data.
Using context menu on link (right mouse click) you can also use Open In New Tab.
Used URL: https://www.epicgames.com/store/en-US/free-games
This way I found JSON data in GET request to url https://store-site-backend-static.ak.epicgames.com/freeGamesPromotions which I can use with Python and Requests to get these data
import requests url = 'https://store-site-backend-static.ak.epicgames.com/freeGamesPromotions' payload = { 'locale': 'en-US', #'country': 'PL', #'allowCountries': 'PL', } response = requests.get(url, params=payload) data = response.json() elements = data['data']['Catalog']['searchStore']['elements'] for item in elements: print('title:', item['title'])
Notes:
- Mozilla Doc: Network request list
If you like it
Buy a Coffee
Buy a Coffee