💻 Environment/Context
- Players
- API
- Players Id
- Company Id
In order for you to get the API key, the Settings > Can view API, permission should be enabled on your account.
If you're unable to follow any of the steps below, kindly reach out to your admin or refer to the Account Type Permissions Overview article for more information.
❓ Issue/Question
- How do I get a player's player_id and company_id using the ScorePlay public API, instead of looking them up manually in the platform?
👌 Resolution/Answer
- ScorePlay's public API (developer.scoreplay.io) lets you fetch these programmatically. Every request needs your organization's API key sent in the
X-ScorePlay-Api-Keyheader, and the base URL ishttps://media.scoreplay.io/v1.
- Find the player and get their player_id + company_id:
- GET https://media.scoreplay.io/v1/players?query={player_name}
- Example:
GET https://media.scoreplay.io/v1/players?query=bradley barcola - To get all players instead (e.g. if you don't have an exact name to search, or want to browse the full list), simply omit the query parameter:
GEThttps://media.scoreplay.io/v1/players
- Both return an array of matching players. Each player object includes:
-
ID→ this is the player_id -
company_id→ this is the company_id
-