Public content is accessed using a simple key based approach, and supports lightweight client implementations such as Javascript-based fetching of content for inclusion into external websites or apps. The Public API is structured as REST endpoints which return results in JSON format. Every request must include a valid API Key in order to be granted access. Calls to endpoints are made as HTTP GET requests, and the API key is included in the header as la-api-key
.
The following video demonstrates how to generate both a Public API Key and Private API Key:
Follow these steps to generate access to the Public API:
Login to LeagueApps. Within the LeagueApps Admin Dashboard, go to the Top Menu > Connect > API Settings
Enter a name for the API key, then select "Generate Public API Key"
A pop-up will emerge. Select "Generate"
The API key will be added to the table. The key is also known as the client ID
NOTE: This API key can be used to access information across the site. However, if your organization has multiple sites, you will need to generate a new API key on each site.
TIP: If you’ve already created a Private API Key for the Private API, you can use the Client ID provided by that step as the Public API Key for the Public API.