import requests
url = "https://icanhazdad.joke.com/"
response = requests.get(url,headers={"Accept":"application/json"})
data = response.json()
print(data["joke"])
print(data["status"])
8ee91989fff2f564b73e4578e1c3d9717a345dd3
<mask token>

<mask token>
print(data['joke'])
print(data['status'])

<mask token>
url = 'https://icanhazdad.joke.com/'
response = requests.get(url, headers={'Accept': 'application/json'})
data = response.json()
print(data['joke'])
print(data['status'])

import requests
url = 'https://icanhazdad.joke.com/'
response = requests.get(url, headers={'Accept': 'application/json'})
data = response.json()
print(data['joke'])
print(data['status'])

import requests
url = "https://icanhazdad.joke.com/"
response = requests.get(url,headers={"Accept":"application/json"})
data = response.json()
print(data["joke"])
print(data["status"])