Global Endpoint Standard
#Introducing how it works, its purpose and more.
Introducing GES
If you run a software store, adding a product can mean writing code just to read its version number. GES gives developers a common format for publishing product details at a URL they maintain.
Stores, showcases, and trackers get the official name and screenshots from that endpoint. GES also defines common fields for links to test results and release information.
The problem and the fix
Custom endpoints
Which field holds the version?- The tracker needs a parser for each format.
- These endpoints leave out screenshots, prices, and social links.
- A renamed field can stop updates without an obvious error.
One product calls it ver. Another uses version_name. The third publishes only a build number.
{
"ver": "2.7.8-ish"
}{
"version_name": "v3.1-final-v2",
"version": "3.1",
"download_url": "ask support",
"mirror_url": "ask support (backup)",
"online": "probably",
"updated": "yesterday-ish"
}{
"build": 412,
"up": 0
}
endpoints
The same fields across products- Download links have a standard field.
- Developers can include screenshots, prices, and social links.
- The tracker picks up changes when it fetches the endpoint.
Each developer publishes the product’s name, version, and status in the same format. The tracker can read all three endpoints with one parser.
{
"name": "Alpha",
"builds": { "versions": {
"main": { "version": "2.7.8" }
} },
"status": { "down": false }
}{
"name": "Nova",
"builds": { "versions": {
"main": { "version": "3.1.0" }
} },
"status": { "down": false }
}{
"name": "Pulse",
"builds": { "versions": {
"main": { "version": "4.1.2" }
} },
"status": { "down": true }
}Shop benefits
#What GES gives the stores that list products.
- Stores have quality control over screenshots and features.
Quality control
With GES, a store shows the screenshots the developer publishes in media.captures. Without it, the store uses whatever pictures it can find.
- Outdated images
- Awkward backgrounds
- Missing media
An old version (v1.2.1) with someone else’s script on screen, and a logo instead of the app.
- Full media quality control
- Source for missing media
- Pre-set backgrounds
The current version, the app’s own window, and the developer’s choice of pages.
Tracker benefits
#Getting started
#One JSON file at a URL you host. These docs explain every field in it.
-
1. Write the file
Start from the full example and replace its values with your own product’s.
-
2. Host it
Put the file online, so that opening its URL returns the JSON itself.
-
3. Share the URL
Give the URL to the stores, wikis, trackers and bots that list your product.
A shortened example with one product, for a first look at the shape. It is cut down from the full example, which shows every field and is the one to copy for your own file. Each key is explained in the field reference.
windows is the platform and yoursoftwarename is the product. The product’s own fields start inside yoursoftwarename.
File structure
#platforms holds the product data. Each key names a platform, and inside a platform each key names a product. The example has one of each, windows and yoursoftwarename. Each field under the product links to its page of the field reference.
GlobalEndpointStandardVersion gives the version of the format the file follows. The example uses "1.0.0". EndpointLastUpdated gives the last time the file was updated, in UTC.
Field reference
#Every field in the example is listed here, in the order it appears in the file, with its JSON type. Pick a field to open its card: what it holds and where it goes in the file. Pick a group name to open the whole group.
[] marks a field inside each item of a list. On a group’s page, dashed chips mark a supported platform key, your own product key, or a named group of captures.
Paths in Top level start at the JSON root. In the other groups, paths start inside the product. For example, changelog.date is platforms. in the example.
No matching fields
Try a different word or clear the filter.
Reading an endpoint
#If you build a store, wiki, tracker or bot, load the URL and parse the JSON. Each key in platforms names a platform, and each key inside a platform names a product. The first entry in the published builds.versions object holds the main version. Developers choose the keys. status.down is true or false.
Both samples read one product by its two keys, then every product in the file. Swap in the URL of the endpoint you want to read. Each field is explained in the field reference.
async function main() {
const response = await fetch('https://example.com/ges.json');
const ges = await response.json();
// One product, by its platform key and its product key.
const software = ges.platforms[{platform}][{product}];
console.log(software.name, software.builds.versions, software.status.down);
// Every product in the file.
for (const [platform, products] of Object.entries(ges.platforms)) {
for (const [key, product] of Object.entries(products)) {
console.log(platform, key, product.name, product.builds.versions, product.status.down);
}
}
}
main();
import json
from urllib.request import urlopen
with urlopen("https://example.com/ges.json") as response:
ges = json.load(response)
# One product, by its platform key and its product key.
software = ges["platforms"][{platform}][{product}]
print(software["name"], software["builds"]["versions"], software["status"]["down"])
# Every product in the file.
for platform, products in ges["platforms"].items():
for key, product in products.items():
print(platform, key, product["name"], product["builds"]["versions"], product["status"]["down"])
Version check
#The format itself gets new versions. Your file names the one it follows in GlobalEndpointStandardVersion. Ask /api on this site whether a newer version is out, what changed in it, and whether you have to change your file.
GET /api?version=1.0.0
Send your file’s version as ?version=. The newest version today is 1.0.0, so a file on it gets this answer:
GlobalEndpointStandardVersionandreleased: the newest GES version and the day it came out.version: the version you sent.up_to_date:truewhen your version is the newest.action_needed:truewhen at least one newer version needs a change to your file. When it isfalse, your file still works as it is.versions: only the versions released after yours, newest first. Each one has itsversion,releaseddate,changes(a list of lines) andaction_needed. Whenaction_neededistrue,actionsays what to change. Otherwise it isnull.
GET /api
Without ?version=, /api gives GlobalEndpointStandardVersion, released and every version:
A version that does not exist gets status 404, and a value that is not a version (like ?version=abc) gets 400. Both answers are {"error": "..."}. Any website or script may call /api.
To warn yourself or your users when GES moves on, read your file, ask /api about its version, and show what changed:
async function main() {
const file = await (await fetch('https://example.com/ges.json')).json();
// Ask GES about the version the file follows.
const version = encodeURIComponent(file.GlobalEndpointStandardVersion ?? '');
const response = await fetch('{api}?version=' + version);
const answer = await response.json();
if (!response.ok) {
console.error(answer.error);
return;
}
if (!answer.up_to_date) {
console.log('GES ' + answer.GlobalEndpointStandardVersion + ' is out. This file follows ' + answer.version + '.');
for (const release of answer.versions) {
console.log(release.version, release.changes.join(' '));
if (release.action_needed) console.log('Action needed: ' + release.action);
}
}
}
main();
import json
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen
with urlopen("https://example.com/ges.json") as response:
file = json.load(response)
# Ask GES about the version the file follows.
query = urlencode({"version": file.get("GlobalEndpointStandardVersion", "")})
try:
with urlopen("{api}?" + query) as response:
answer = json.load(response)
except HTTPError as error:
raise SystemExit(json.load(error)["error"])
if not answer["up_to_date"]:
print("GES " + answer["GlobalEndpointStandardVersion"] + " is out. This file follows " + answer["version"] + ".")
for release in answer["versions"]:
print(release["version"], " ".join(release["changes"]))
if release["action_needed"]:
print("Action needed: " + release["action"])
Definitions
#GET /api/definitions
/api/definitions lists the supported platform keys, product types, true/false keys for access and tags, and the links keys readers recognize. Each entry has a description. A file may hold more links keys than these, but readers may not pick them up. Use these definitions to write and validate endpoint files. GES may add entries over time.
GET /api/type
For the types alone, ask /api/type:
Full example
#The complete example file: one platform with one product. Every card in the field reference shows its own piece of this file.
Rules
#What an endpoint has to do to follow the standard.
- Keep the 5 most recent Roblox versions your product supports in
version.
Download
#Take the docs with you, or hand them to an AI assistant.
Docs for AI
The documentation in one Markdown file, including the field reference, the full example and the rules. Give it to an AI assistant so it writes your endpoint in the right shape, or keep it as plain docs.
Example file
The full example endpoint as a JSON file, ready to edit into your own.