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

Market

Description

Default

classic

Predictions for final match result (1 - home victory / X - draw / 2 - away victory)

Yes

over_25

Predicts whether there will be more than 2.5 goals scored (yes / no)

No

over_35

Predicts whether there will be more than 3.5 goals scored (yes / no)

No

btts

Predicts whether both teams will score ( yes / no )

No

home_over_05

Predicts whether the home team will score more than 0.5 goals (yes / no)

No

home_over_15

Predicts whether the home team will score more than 1.5 goals (yes / no)

No

away_over_05

Predicts whether the away team will score more than 0.5 goals (yes / no)

No

away_over_15

Predicts whether the away team will score more than 1.5 goals (yes / no)

No

Last updated