Examples
Basic Examples to help you familiarize yourself with the API.
Getting Leaders
Getting A Specific Team
Searching For A School
Last updated
Basic Examples to help you familiarize yourself with the API.
Last updated
const format = "PF";
const circuit = "National";
const year = "SY_20_21";
const content = document.getElementById("content");
fetch(`https://tournaments.tech/leaders?format=${format}&circuit=${circuit}&year=${year}`).then(response => {
response.json().then(data => {
content.innerText = JSON.stringify(data);
})
});const format = "PF";
const circuit = "National";
const year = "SY_20_21";
const team = "6204506bd1a7e6db5199f014";
const content = document.getElementById("content");
fetch(`https://tournaments.tech/query?format=${format}&circuit=${circuit}&year=${year}&team=${team}`).then(response => {
response.json().then(data => {
content.innerText = JSON.stringify(data);
})
});const format = "PF";
const circuit = "National";
const year = "SY_20_21";
const term = "Strake";
const content = document.getElementById("content");
fetch(`https://tournaments.tech/query?format=${format}&circuit=${circuit}&year=${year}&term=${term}`).then(response => {
response.json().then(data => {
content.innerText = JSON.stringify(data);
})
});