Tournament API - Glitch

Tournament API

Tournament API system to get all available Tournaments (based on domain name).


Using this API will display:

- tourn_title

- tourn_startdate

- tourn_enddate

- tourn_icon (icon image link)

- tourn_header (header image link)

- register_link


GET API/Tournament:

Output
Type
Description
success
true
On success, return all available Tournament list
errors
false
Return errors

Parameters:

tz: is used for time zone. If send nothing default will be (Europe/London).

Example tz=Asia/Karachi


startfrom: get the tournaments from this date. Send nothing or 0 works as general. Time format must UNIX.

Example startfrom=1695293493


endto: get the tournaments till this date. Send nothing or 0 works as general. Time format must UNIX.

Example endto=1695293493


limit: how many tournaments get by sending limit in number. If send nothing or zero gets all.

Example limit=100


Headers:

XF-Api-Key: Key


Real CURL GET example:

curl --location 'https://domain.name/api/tournament?tz=Asia

%2FKarachi&startfrom=1695293493&endto=1695397893&limit=100' \

--header 'XF-API-KEY: tKOrdhPeo92Rqpgf91lUxoNpCNQpAB-5'


Example integration screenshot: