Sportsbook API

ОПЛАЧЕНО
От Sportsbook API | Обновлено 2 mesi fa | Sports
Популярность

9.2 / 10

Задержка

224ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем руководствам (2)

How to use our Swagger documentation

Summary

If you’re looking for a playgroud to try out our API, the RapidAPI playground found here is a great place to start. Unfortunately, RapidAPI offers limited features around documenting request and response types, so we also offer documentation and an API playgorund which we host through Swagger.

Swagger documentation for Sportsbook API can be found here, but it requires authentication to use. This tutorial lays out steps on how set your authentication so that you can use Swagger.

1. Sign up for a free or paid Sportsbook API plan through RapidAPI

Navigate to the pricing page for Sportsbook API and sign up for a plan through RapidAPI

2. Download a browser extension to let you modify request headers

Download and install a browser extension that will allow you to modify request headers. This is how you will set your authentication headers. We reccomend ModHeader or HTTP Header.

3. Get your credentials from the Sportsbook API hub page

Navigate to the Endpoints page for Sportsbook API in RapidAPI to find your authentication headers. The link to the page is here and the values can be found on the right hand side of the page in the “Code Snippets” section. In this section you will want to copy both the name and the value for the headers called “X-RapidAPI-Key” and “X-RapidAPI-Host”.

See Example Here

4. Set your authentication credentials

Once you have the values for the “X-RapidAPI-Key” and “X-RapidAPI-Host” copied, you should use the extension you downloaded to set them.

See Example Here

5. Call Swagger endpoint

Once you have the “X-RapidAPI-Key” and “X-RapidAPI-Host” headers set in the extension you downloaded, you should be able to navigate to our Swagger documentation page here and call any endpoint listed without getting an authentication error. Clicking on the name of an endpoint will open a pannel and on the right side is a “Try it out” button which should allow you to call the endpoint.

When calling endpoints through Swagger your quota limit from RapidAPI will be applied.

See Example Here