Connecting to my first API - JSON


#1

Hi, I am new to API’s and have been trying to find a working example ideally using JavaScript / Ajax to GET and POST. I have tried many things online with no success.

The JSON API is to a property booking system. Here is the JSON API Guide https://api.beds24.com/json/ The thing I have been trying to start with is the GET function found here https://api.beds24.com/json/getProperty.

I have an API Key AND PropKey in my account settings that I have to apply to get this data…

Is there any examples that anyone knows of where I can easily edit to use the URL, API Key I have then retrieve the data?

Thanks for looking


#2

I made a live jsonapi demo here: http://thomaxxl.pythonanywhere.com/api#/ .
The frontend is made with OAS (swagger), the backend is python.