import requests def make_api_call(): url = "/api/<!-- gem -->/pesquisar" params = { 'modoConsulta': 'dataexplorer', 'codigo<!-- Mun -->': '', 'dataInicial': '2024-07-12T12:00:00.525Z', 'dataFinal': '2024-07-12T16:00:00.525Z' } headers = { 'accept': 'application/json', 'authorization': '' } response = requests.get(url, headers=headers, params=params) if response.status_code == 200: print("Success:") print(response.json()) else: print(f"Error: {response.status_code}") print(f"Details: {response.text}") if __name__ == "__main__": make_api_call()