Consulta FIPE pela placa

PAID
By Mobird | Updated a month ago | Financial
Health Check

N/A

Back to All Discussions

erro na consultando usando Python

import requests
def requestPlaca():

url = f"https://consulta-fipe-pela-placa.p.rapidapi.com/consulta/mkm5e40"

headers = {
    "X-RapidAPI-Key": "ec4f5308f0msh4e4bd0493241ba2p199036jsn79c9c4871715",
    "X-RapidAPI-Host": "consulta-fipe-pela-placa.p.rapidapi.com"
}

response = requests.get(url, headers=headers).text

return response

print(requestPlaca())

ERRO: {“message”: “API Request failed due to Provider configuration error: The API response body transformation failed to parse content-type application/json. Please contact the API Provider”,“info”: “Your Client (working) —> Gateway (working) —> API (not working)”}

Usando postman ou insomnia ta funcionando normalmente

Join in the discussion - add comment below:

Login / Signup to post new comments