No Subscription to this function
GET /csgo/get_competitions
Returns all competitions from an area.
Request URL
https://dsg-api.com/clients/{client_name}/csgo/get_competitions?client={client_name}&authkey={client_authkey}
Parameters
ftype
string
changes feed type from XML to json (ftype=json)
Nodes
Response Headers
200
Success
401
Unauthorized
429
Rate limit exceeded
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/csgo/get_competitions?client={client_name}&authkey={client_authkey}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "User:Password");
$content = curl_exec($ch);
curl_close($ch);
?>
curl GET -u "User:Password" "https://dsg-api.com/clients/{client_name}/csgo/get_competitions?client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/csgo/get_competitions?client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"esport_counterstrikego","lang":"en","method":{"method_id":"162","name":"get_competitions"},"competition":[{"competition_id":"1950","name":"CS:GO Asia Championships","teamtype":"male","type":"club","format":"international_cup","area_id":"2","area_name":"Asia","last_updated":"2018-06-05 17:40:59"},{"competition_id":"2130","name":"CS:GO Asia Summit","teamtype":"male","type":"club","format":"international_cup","area_id":"2","area_name":"Asia","last_updated":"2018-06-05 17:40:59"},{"competition_id":"2144","name":"Asia Minor Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"2","area_name":"Asia","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2142","name":"Europe Minor Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2143","name":"CIS Minor Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:09"},{"competition_id":"1864","name":"Bets.net Masters","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"1865","name":"Bets.net Challenger Series","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"1861","name":"CSGOFAST.COM Cup","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"1874","name":"Hellcase Cup","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"1902","name":"Copenhagen Games","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"1862","name":"EGB Battles","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"1863","name":"ForceDrop.net Cup","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"2162","name":"United Masters League","teamtype":"male","type":"club","format":"tournament","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:23:03"},{"competition_id":"2174","name":"WePlay! Lock and Load","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"2173","name":"OGA Counter PIT","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"2180","name":"ICE Challenge","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-06 18:48:49"},{"competition_id":"2176","name":"LOOT.BET HotShot Series","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"2177","name":"Hunt Wave League","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"2178","name":"CS.Money Premier by EM","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"2179","name":"LOOT.BET\/CS","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"1873","name":"X-Bet.co Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"2193","name":"NoxFire League","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2019-02-01 23:57:58"},{"competition_id":"1927","name":"Thunderpick Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"1928","name":"esportsbetting.com Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"1929","name":"Gamdom Premier","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"1930","name":"Fusion.bet Masters","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-03-07 13:21:43"},{"competition_id":"2128","name":"ESL Meisterschaft","teamtype":"male","type":"club","format":"domestic_league","area_id":"80","area_name":"Germany","last_updated":"2018-12-16 17:08:59"},{"competition_id":"2145","name":"Americas Minor Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"4","area_name":"N\/C America","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2129","name":"ESL Premiership","teamtype":"male","type":"club","format":"domestic_league","area_id":"293","area_name":"United Kingdom","last_updated":"2018-12-16 17:08:59"},{"competition_id":"1044","name":"IEM World Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:19:14"},{"competition_id":"1841","name":"IEM World Championship Qualifiers","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:20:21"},{"competition_id":"1035","name":"ELEAGUE Major","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:35"},{"competition_id":"1046","name":"ESL Pro League","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:33"},{"competition_id":"2127","name":"FACEIT Major","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-12-16 17:08:59"},{"competition_id":"1793","name":"ESL Pro League Relegation","teamtype":"male","type":"club","format":"tournament","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:37"},{"competition_id":"1856","name":"WESG","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:40"},{"competition_id":"1508","name":"PGL Major Krakow","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:41"},{"competition_id":"967","name":"ESL One","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-06-13 13:08:23"},{"competition_id":"1790","name":"EPICENTER","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:46"},{"competition_id":"1846","name":"cs_summit","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:48"},{"competition_id":"2161","name":"ELEAGUE CS:GO Invitational ","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:53"},{"competition_id":"1534","name":"ELEAGUE CS:GO Premier","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:53"},{"competition_id":"1524","name":"ESG Tour","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:55"},{"competition_id":"1525","name":"ESG Tour Closed Qualifiers","teamtype":"male","type":"club","format":"playoff","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:57"},{"competition_id":"1830","name":"StarLadder i-League","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:59"},{"competition_id":"1047","name":"StarLadder i-League Qualifier","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:00"},{"competition_id":"1859","name":"StarLadder i-League Invitational","teamtype":"male","type":"club","format":"tournament","area_id":"1","area_name":"World","last_updated":"2018-03-07 15:24:38"},{"competition_id":"1871","name":"Intel Extreme Masters","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2019-02-14 04:02:37"},{"competition_id":"1872","name":"Intel Extreme Masters Qualifiers","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2019-02-14 04:02:45"},{"competition_id":"1045","name":"DreamHack Masters","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"1879","name":"DreamHack Masters Qualifiers","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"1951","name":"DreamHack Open","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2131","name":"iBUYPOWER Masters","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-12-22 12:21:14"},{"competition_id":"1878","name":"iBUYPOWER Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-12-22 12:21:17"},{"competition_id":"2168","name":"Minor Playoffs","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"1949","name":"Moche XL Esports","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2140","name":"SuperNova Malta","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"2141","name":"TOYOTA Master","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:23:09"},{"competition_id":"1855","name":"V4 Future Sports Festival","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:43"},{"competition_id":"2126","name":"BLAST Pro Series","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:46"},{"competition_id":"1853","name":"Play2Live Cryptomasters","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:46"},{"competition_id":"1868","name":"ECS","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:20"},{"competition_id":"1867","name":"ECS Relegation","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:20"},{"competition_id":"2125","name":"PLG Grand Slam","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:21:20"},{"competition_id":"1531","name":"ECS Challenger Cup","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-15 10:19:28"},{"competition_id":"1955","name":"Adrenaline Cyber League","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:06"},{"competition_id":"1956","name":"Qi Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:06"},{"competition_id":"1814","name":"ESEA MDL","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:06"},{"competition_id":"1533","name":"ELEAGUE Clash for Cash: The Rematch","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-03-07 13:22:09"}]}}