For the complete documentation index, see llms.txt. This page is also available as Markdown.

Examples

Basic Examples to help you familiarize yourself with the API.

Getting Leaders

Getting the leaderboard for the 2020-21 PF National Circuit

Here's the Javascript we used.

First, we set up our constants - format, circuit, and year. If you need help with these, see API Constants and Schemas.

Next, we grab a reference to a blank div in the DOM so that we can insert our response later.

We use the fetch api to ping the /leaders endpoint with a GET request, and then provide our constants in the query.

After getting the response json, we put it in the div we grabbed earlier.

Getting A Specific Team

Getting Bethesda Chevy Chase GT's Information for the 2020-21 PF National Circuit

Here's the Javascript we used.

First, we set up our constants - format, circuit, and year. If you need help with these, see API Constants and Schemas. This time, I added in the team ID for Bethesda Chevy Chase GT, since we're querying for their data specifically.

Next, we grab a reference to a blank div in the DOM so that we can insert our response later.

We use the fetch api to ping the /query endpoint with a GET request, and then provide our constants in the query.

After getting the response json, we put it in the div we grabbed earlier.

Searching For A School

Querying for all records from "Strake" for the 2020-21 PF National CIrcuit

Here's the Javascript we used.

First, we set up our constants - format, circuit, and year. If you need help with these, see API Constants and Schemas. This time, I added in the term "Strake", since we're querying for their data specifically.

Next, we grab a reference to a blank div in the DOM so that we can insert our response later.

We use the fetch api to ping the /query endpoint with a GET request, and then provide our constants in the query.

After getting the response json, we put it in the div we grabbed earlier.

Last updated