Api Curl Documents

  • Wednesday, 25 January, 2023
  • 09:22 am


Sports List

Name
ID
Name
ID
Football
1
Cricket
66
Basketball
3
Tennis
4
Volleyball
6
Baseball
5
Boxing
9
American Football
13
Handball
8
Rugby League
7
Table Tennis
10
Badminton
16
Ice Hockey
2
Snooker
30

League List

HTTP Request
GET https://redxapi.com/api/v3/leagues
curl "https://redxapi.com/api/v3/leagues?apikey=APIKEY&sportId=1javascript:nicTemp();"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
sportId Yes* Sport ID (INT)
HTTP Response
leagues.json

Prematch List

HTTP Request
GET https://redxapi.com/api/v3/prematch
curl "https://redxapi.com/api/v3/prematch?apikey=APIKEY&sportId=1&leagueId=1"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
sportId Yes* Sport ID (INT)
leagueId Yes* League ID (INT)
HTTP Response

prematch.json

Prematch Event

HTTP Request
GET https://redxapi.com/api/v3/prematchEvent
curl "https://redxapi.com/api/v3/prematchEvent?apikey=APIKEY&eventId=1"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
eventId Yes* Event ID (INT)
HTTP Response

prematchEvent.json

Inplay

HTTP Request
GET https://redxapi.com/api/v3/inplay
curl "https://redxapi.com/api/v3/inplay?apikey=APIKEY&sportId=1"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
sportId Yes* Sport ID (INT)
HTTP Response

inplay.json

Inplay Event

HTTP Request
GET https://redxapi.com/api/v3/inplayEvent
curl "https://redxapi.com/api/v3/inplayEvent?apikey=APIKEY&eventId=1"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
eventId Yes* Event ID (INT)
HTTP Response

inplayEvent.json

Top Match

HTTP Request
GET https://redxapi.com/api/v3/topMatch
curl "https://redxapi.com/api/v3/topMatch?apikey=APIKEY&match=Live"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
match Yes* Match Status [Live,Upcoming] (String)
HTTP Response

topMatchLive.json | topMatchUpcoming.json

Search

HTTP Request
GET https://redxapi.com/api/v3/search
curl "https://redxapi.com/api/v3/search?apikey=APIKEY&match=Upcoming&text=NBA"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
match Yes* Match Status [Live,Upcoming] (String)
text Yes* Search Text (String)
HTTP Response

searchLive.json | searchUpcoming.json

Result By Sport

HTTP Request
GET https://redxapi.com/api/v3/resultBySport
curl "https://redxapi.com/api/v3/resultBySport?apikey=APIKEY&sportId=1&fromDate=27-11-2023&toDate=28-11-2023"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
sportId Yes* Sport ID (INT)
fromDate Yes* Start Date (DATE)
toDate Yes* End Date (DATE)
HTTP Response

resultBySport.json

Result By League

HTTP Request
GET https://redxapi.com/api/v3/resultByLeague
curl "https://redxapi.com/api/v3/resultByLeague?apikey=APIKEY&leagueId=1&fromDate=27-11-2017&toDate=28-11-2095"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
leagueId Yes* League ID (INT)
fromDate Yes* Start Date (DATE)
toDate Yes* End Date (DATE)
HTTP Response

resultByLeague.json

Result By Event

HTTP Request
dfd
GET https://redxapi.com/api/v3/resultByEvent
curl "https://redxapi.com/api/v3/resultByEvent?apikey=APIKEY&eventId=1"
Query Parameters
Parameter Required Description
apikey Yes* Login Access
eventId Yes* Event ID (INT)
HTTP Response
resultByEvent.json

Back