I am trying get data of this site http://veiculos.fipe.org.br/
the json file I want to get is the one that appears on the right of the image
url = "http://veiculos.fipe.org.br/api/veiculos/ConsultarValorComTodosParametros"
data = {"codigoTabelaReferencia" : "215",
"codigoMarca" : "2",
"codigoModelo" : "4564",
"codigoTipoVeiculo" : "1",
"anoModelo" : "2015",
"codigoTipoCombustivel " : "3",
"tipoVeiculo" : "carro",
"modeloCodigoExterno" : "",
"tipoConsulta" : "tradicional"
}
c = requests.post(url,data=data)
c.json()
when the last line is executed this error meassege return:
JSONDecodeError: Expecting value: line 2 column 1 (char 2)
At the end of the code I want this dictionary to be returned:
{"Valor":"R$ 14.421,00","Marca":"Alfa Romeo","Modelo":"145 Quadrifoglio 2.0","AnoModelo":1999,"Combustivel":"Gasolina","CodigoFipe":"006002-0","MesReferencia":"agosto de 2018 ","Autenticacao":"hsd0d2ycx5","TipoVeiculo":1,"SiglaCombustivel":"G","DataConsulta":"terça-feira, 28 de agosto de 2018 16:10"}