Making a first API call

After completing the setup guide, you should verify that you are able to make a successful request.

Use the List available markets endpoint to verify the markets you have access to based on your subscription type.

Test Request via Rapidapi

curl --get --include 'https://football-prediction-api.p.rapidapi.com/api/v2/list-markets' \
  -H 'X-RapidAPI-Key: SIGN-UP-FOR-KEY'

A good request would return a HTTP Status code of 200 and a JSON response looking similar to the one bellow

{
  "data": {
    "allowed_for_your_subscription": [
      "home_over_05",
      "btts",
      "over_35",
      "classic",
      "home_over_15",
      "over_25",
      "away_over_15",
      "away_over_05"
    ],
    "all": [
      "home_over_05",
      "btts",
      "over_35",
      "classic",
      "home_over_15",
      "over_25",
      "away_over_15",
      "away_over_05"
    ]
  }
}

The example above shows that all prediction markets can be accessed . (all markets listed in allowed_for_your_subscription)

The market is a optional parameter that can be specified when requesting predictions.

Available prediction markets

Last updated