How to obtain a player's player_id and company_id via API?

💻 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-Key header, and the base URL is https://media.scoreplay.io/v1.
     
  • Find the player and get their player_id + company_id:
  • Both return an array of matching players. Each player object includes:
    • ID → this is the player_id
    • company_id → this is the company_id

 

🔖 Notes