A fixtures and results page lists every match in your season, played and still to play, grouped by date. Visitors can filter it by division, cup or team, and switch between results and upcoming matches.
You don't need to be a developer. An AI assistant such as ChatGPT or Claude can build the page for you from the instructions below.
Before you start
Your league needs the Gold plan with the API switched on. See Getting started with the API.
You need your season ID. How the API works shows how to find it.
How to use the prompt
Copy the prompt from the grey box below.
Fill in your season ID. Replace [MY-SEASON-ID] with your own number.
Say how you want it to look. Describe your colours and style, or attach a screenshot of your website or a design you like. A picture usually works best. If you don't say anything, the AI will pick a plain design.
Paste it into the AI assistant and send it.
Open the file it gives you. Save it, then double-click it to open it in your browser.
Check it against your league website. If something looks wrong, tell the AI in plain words, for example "postponed matches are showing as results". It will fix it.
The prompt
Before you start, read the LeagueRepublic JSON API specification at https://docs.api.leaguerepublic.com/leaguerepublic-read-api.md. Use only the services, web addresses and field names it describes, and follow its rules on the rate limit, empty values, errors and "road" meaning away. If you cannot open that address, stop and ask me to paste the specification in.
Build me a single web page (one HTML file I can open in my browser) that lists every match in my league's season. My season ID is [MY-SEASON-ID].
The page should: 1. Load all the season's matches once, using the Get Fixtures For Season service, and do all the filtering on the page without loading again. 2. Have two tabs: "Results", newest first, and "Fixtures" (matches still to play), soonest first. 3. Group the matches by date, with the date as a heading. 4. For each match, show the home team, the score or kick-off time, the away team, the division or cup name, the cup round if there is one, and the venue. 5. Let me filter by division or cup, and by team, using menus built from the matches themselves. 6. If a match is postponed, show that instead of a time. Put matches whose date is to be confirmed in their own section at the end of the Fixtures tab. If a match date has passed but there is no result yet, show "Awaiting result" instead of a time. 7. Do not reload the data more than once a minute.
Keep the design clean and easy to read on a phone. Explain in simple steps how to open and use the file. Ask me if anything is unclear.
Design: [DESCRIBE THE LOOK YOU WANT, OR ATTACH A SCREENSHOT] |
If something goes wrong
Half-time or penalty scores aren't showing. This list doesn't include that extra detail at the moment. The match hub and team pages do.
A result is missing. Results only appear once the league has approved them.
The page shows an error message. Check your season ID, and that the API is switched on for your league.
The page doesn't work in the AI's preview window. Many previews can't fetch data from other websites. Save the file and open it in your browser instead.
The AI says it can't read the specification. Open the specification address in your browser, select everything, copy it and paste it into the AI.
The full detail of the Get Fixtures For Season service is in the API specification.
