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:

API Keys.mp4

Follow these steps to generate access to the Public API:

  1. Login to LeagueApps. Within the LeagueApps Admin Dashboard, go to the Top Menu > Connect > API Settings

    Screen Shot 2021-10-27 at 11.32.11 AM.png

  2. Enter a name for the API key, then select "Generate Public API Key"

    Screen Shot 2021-10-27 at 11.32.29 AM.png

  3. A pop-up will emerge. Select "Generate"

    Untitled

  4. The API key will be added to the table. The key is also known as the client ID

    Screen Shot 2021-10-27 at 11.32.58 AM.png

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.