python get data from REST endpoint function code example Example: api in python import requests import json r = requests.get("URL") j=r.json() print(j)