© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
BattleMetricsB
BattleMetrics•2y ago•
8 replies
ArcticParadise

How i extract this data from BM using api?

Im noob and its my first time trying to understand how api works, also im way bellow the "beginner" stage in programming... What im trying to do right now is get the monthly unique players value from a specific server in this case its "https://api.battlemetrics.com/servers/8113868/unique-player-history" i put some code into a php file and the result is this: Array ( [data] => Array ( [0] => Array ( [type] => dataPoint [attributes] => Array ( [timestamp] => 2024-01-01T00:00:00.000Z [value] => 935 ) ) ) ) wich i guess the number of unique players on 1st of january of 2024 was 935, right? If this is true and ive done everything right, the next question is how i store this data for more then 3 months? Do i need a data base? Becouse it seems i can only get information based on the last 3 months, so i think i need to store all these values in a db and sum them up and have them displayed on my web?

I have no ideea if what ive said even make sense but if someone can help me with some suggestions or make me understand this i would highly apreciate it!
image.png
BattleMetricsJoin
4,200Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

BM hashing EOS ID's from shared data?
BattleMetricsBBattleMetrics / support-forum
3y ago
Advanced BM RCON
BattleMetricsBBattleMetrics / support-forum
17mo ago
BM Status page?
BattleMetricsBBattleMetrics / support-forum
3y ago
Lost connection to BM
BattleMetricsBBattleMetrics / support-forum
2y ago