requests module is used for REST API call
Example 1:-
import requests r = requests.get('https://api.github.com/events'); print(r.text);