Logic for API test inside the class.
def api test(test_api_call, api_call, col_list) run api call to get 10 rows if connection error print error else print(API still connects no errors)
if data == none print(returned blank data check API URL is still maintained)
col_list if cols in col_list == print(Data structure matches) else print(Data structure has changed)
If no errors api_call