SGA Reference
Integrate thousands of unblocked games directly into your frontend using the Sea Games Api (SGA) REST interface.
1. Authentication
Every request to the SGA requires a valid API key passed as a URL parameter. If the key is missing or invalid, the API will return an access denied error.
const API_URL = "https://winter-cake-e4ab.iloveramen661.workers.dev";
// Always append your key
const requestUrl = `${API_URL}?key=SEA_VSH2OKQZ5A`;
2. Endpoints
Fetch All Games (Library Overview)
To get the total count of games and the complete list, make a standard GET request to the base URL with your API key. This is perfect for building a total index or dynamic counters.
/?key=YOUR_KEY
Search Games
To filter games, append the search parameter. The API will return any game where the name partially matches the search string (case-insensitive).
/?key=YOUR_KEY&search=mario
3. The Response Object
The API responds with standard JSON. It includes a success boolean, the total count of games returned, and an array of games containing the metadata and CDN links required to embed them.
4. Quick Start Example
Here is a basic JavaScript fetch template you can drop directly into your frontend to search the library and handle the data.