406 Fehler bei ibw Reference Price API Abfrage

41 views
Skip to first unread message

Christian

unread,
May 17, 2016, 3:09:17 PM5/17/16
to immobilienscout24-development
Hallo,

beim Aufruf der Reference Price API erhalte ich einen HTTP 406 Fehlercode. Was ist genau falsch hier?

Hier die genaue URL:

https://rest.immobilienscout24.de/restapi/api/ibw/v2.2/referenceprice/latitude/48.1255476/longitude/11.5415668

Christian

unread,
May 18, 2016, 5:00:35 AM5/18/16
to immobilienscout24-development
wie es scheint, hat die API ein Problem mit dem HTTP Header "Accept: application/xml". Entgegen der Dokumentation funktioniert der Service nur mit JSON. Hierzu muss im Header zwingend "Accept: application/json" stehen. 

Wäre toll, wenn sich das Problem jemand von IS24 anschauen könnte.

Christian

unread,
May 18, 2016, 10:53:39 AM5/18/16
to immobilienscout24-development
Zusatzfrage: In der Dokumentation zu diesem Service steht:

Object category of the real estate. [see Attachment "Objektkategorie2.xls"]

Wo finde ich diese Datei?

Kyle Ott

unread,
May 26, 2016, 10:12:47 AM5/26/16
to immobilienscout24-development
Hey Christian,

Hope it's okay to write in english. I am having similar issues -- did you get this resolved? Even when I try URL's in the playground, I get no results for the reference price -- the result is just blank. Any ideas?

Many thanks,
Kyle

Christian

unread,
May 26, 2016, 10:15:27 AM5/26/16
to immobilienscout24-development
Yes I got it resolved. 

The service only works with JSON not with XML. You have to put "Accept: application/json" in the HTTP header of your request.

Kyle Ott

unread,
May 26, 2016, 10:20:37 AM5/26/16
to immobilienscout24-development
Awesome -- I am a total newbie, so I just want to get an example, like the one you posted to work in the Playground -- is it possible to add an HTTP header there?

Christian

unread,
May 26, 2016, 10:25:28 AM5/26/16
to immobilienscout24-development
select "JSON" from the "Choose Your Representation Format" drop down

Kyle Ott

unread,
May 26, 2016, 10:29:44 AM5/26/16
to immobilienscout24-development
Got it, but I still get errors when I try your simple example (thank you so much for responding so quickly!! you are a lifesaver)

Reply all
Reply to author
Forward
0 new messages