401 apex api problem

i have this code

import requests

API_KEY = ‘REDACTED’

url = ‘https://public-api.tracker.gg/v2/apex/standard/profile/origin/zheroplayerMdS/sessions

headers = {
‘TRN-Api-Key’: API_KEY,
‘Accept’: ‘application/json’,
‘Accept-Encoding’: ‘gzip’
}

response = requests.get(url, headers=headers)

print(‘Response status code:’, response.status_code)
print(‘Response content:’, response.content.decode())

if response.status_code == 200:
session_data = response.json()
print(‘Success:’, session_data)
elif response.status_code == 401:
print(‘Error: Unauthorized - Check API Key’)
else:
print(‘Error:’, response.status_code)

but it keeps getting back

Response status code: 401
Response content: {“message”:“Invalid authentication credentials”}
Error: Unauthorized - Check API Key

and i also try node.js and same thing, i just create the api key that im using and i also try to create another one but same issue

I’d advise you create a new application and get a new API key. This should be kept a secret, yet it’s been exposed on this forum for over 11 hours.

For further advice regarding our API access, please join our discord. Tracker Network