Skip to main content
Version: 2.0.0

Authentication

REQUIREMENT

You'll need a license key to use OpticOdds' API. You can get one by contacting us at www.opticodds.com.

We offer two ways to pass your api key to the API. You can either pass it as a header or as a query parameter.

X-Api-Key Header

You can pass your api key as a header with the name X-Api-Key.

curl --location 'https://api-external.oddsjam.com/api/v2/leagues?sport=basketball' \
--header 'X-Api-Key: <YOUR API KEY>'

Query Param

You can also pass your api key as a query parameter with the name key.

curl --location 'https://api-external.oddsjam.com/api/v2/leagues?sport=basketball&key=<YOUR API KEY>'