API Beginner - First API call

What is the easiest command I can type to check connection with the API.

import numpy as np
import pandas as pd
import requests
api_key = ‘xxxxxx’
URL = xxxxxxx
r = requests.get(url=URL, headers={“Authorization”: api_key, ‘filter’:‘active’})