api python import requests result=requests.get( code example
Example: python print return code of requests
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404
>>> import requests
>>> r = requests.get('http://httpbin.org/status/404')
>>> r.status_code
404