Advertisement
robjones90

api example

Apr 15th, 2021
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. import requests
  2. import json
  3.  
  4. url = "https://pokeapi.co/api/v2/pokemon"
  5.  
  6. response = requests.get(url)
  7. my_dict = response.json()
  8.  
  9. for item in my_dict['results']:
  10.     print(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement