api error

1 "Player Server Information" return {'errors': [{'status': '404', 'title': 'Unknown Server', 'detail': 'There is no server with the given id.'}]} and I'm sure I'm using the right server_id. This api worked fine until Squad was updated 2 "Player Match Identifiers" return empty data such as {'data': []}. I've checked my code.
19 Replies
Hordicus
Hordicus7mo ago
Provide the request
星河
星河7mo ago
server id =23954976
星河
星河7mo ago
player id =1117947939
No description
Hordicus
Hordicus7mo ago
That's not the request
星河
星河7mo ago
I can't send a url
Hordicus
Hordicus7mo ago
Type out your HTTP request in here assuming you've filled out all variables links to our website are not blocked
Hordicus
Hordicus7mo ago
Yeah if you look at the player page itself there's no servers listed, so you're requesting a page with empty data There is some data on sessions though. https://api.battlemetrics.com/sessions?version=^0.1.0&include=server&page[size]=10&filter[players]=1117947939&
Gamblyat
Gamblyat7mo ago
Is this the server you're trying to query? https://www.battlemetrics.com/servers/rust/23954976 Doesn't seem to list players so that's probably why
星河
星河7mo ago
yes
Hordicus
Hordicus7mo ago
Yeah Squad switched to EOS so no longer supports public player lists you'll have to use the sessions endpoint for now instead. That or you need to be an authenticated RCON user
星河
星河7mo ago
so Player Match Identifiers no longer supports Squad server?
Gamblyat
Gamblyat7mo ago
it does if you link server to BM via RCON https://www.battlemetrics.com/subscription/rcon
星河
星河7mo ago
it's a Squad server I link server via RCON but it only return "{'data': []}"
星河
星河7mo ago
It's a Squad server
No description
Gamblyat
Gamblyat7mo ago
Has the player joined since you linked it?
星河
星河7mo ago
yes , I try to use online players’ steamID and it still return "{'data': []}"
星河
星河7mo ago
No description
Gamblyat
Gamblyat7mo ago
Are you sure your server is setup with BM? Still seems to be failing to respond to queries at https://www.battlemetrics.com/servers/squad/23954976