Compare Servers
curl --request POST \
--url https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare \
--header 'Content-Type: application/json' \
--header 'X-RapidAPI-Key: <api-key>' \
--data '
{
"servers": [
{
"identifier": "public-fivem",
"by": "id"
},
{
"identifier": "cfx-history",
"by": "cfxId"
}
]
}
'const options = {
method: 'POST',
headers: {'X-RapidAPI-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
servers: [
{identifier: 'public-fivem', by: 'id'},
{identifier: 'cfx-history', by: 'cfxId'}
]
})
};
fetch('https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare"
payload = { "servers": [
{
"identifier": "public-fivem",
"by": "id"
},
{
"identifier": "cfx-history",
"by": "cfxId"
}
] }
headers = {
"X-RapidAPI-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"range": "30d",
"data": [
{
"serverId": "public-fivem",
"cfxId": "cfx-public",
"range": "30d",
"currentPlayers": 80,
"averagePlayers": 42.7,
"medianPlayers": 41,
"peakPlayers": 91,
"lowestPlayers": 6,
"growth": {
"players": 12.4,
"percentage": 39.7
},
"uptime": null,
"sampleCount": 2880
},
{
"serverId": "history-redm",
"cfxId": "cfx-history",
"range": "30d",
"currentPlayers": 40,
"averagePlayers": 37.2,
"medianPlayers": 37,
"peakPlayers": 65,
"lowestPlayers": 10,
"growth": {
"players": 8.1,
"percentage": 27.8
},
"uptime": null,
"sampleCount": 2880
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid request"
}
}{
"error": {
"code": "RAPIDAPI_UNAUTHORIZED",
"message": "Unauthorized"
}
}{
"error": {
"code": "FEATURE_NOT_AVAILABLE",
"message": "Feature not available for this subscription"
}
}{
"error": {
"code": "SERVER_NOT_FOUND",
"message": "Server not found"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}Comparison
Compare Servers
Compares 2-5 servers over one analytics range. Use by=id or by=cfxId for each reference. Available on all standard plans.
POST
https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com
/
rapid
/
v1
/
compare
Compare Servers
curl --request POST \
--url https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare \
--header 'Content-Type: application/json' \
--header 'X-RapidAPI-Key: <api-key>' \
--data '
{
"servers": [
{
"identifier": "public-fivem",
"by": "id"
},
{
"identifier": "cfx-history",
"by": "cfxId"
}
]
}
'const options = {
method: 'POST',
headers: {'X-RapidAPI-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
servers: [
{identifier: 'public-fivem', by: 'id'},
{identifier: 'cfx-history', by: 'cfxId'}
]
})
};
fetch('https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://fexmetrics-fivem-redm-server-analytics-api3.p.rapidapi.com/rapid/v1/compare"
payload = { "servers": [
{
"identifier": "public-fivem",
"by": "id"
},
{
"identifier": "cfx-history",
"by": "cfxId"
}
] }
headers = {
"X-RapidAPI-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"range": "30d",
"data": [
{
"serverId": "public-fivem",
"cfxId": "cfx-public",
"range": "30d",
"currentPlayers": 80,
"averagePlayers": 42.7,
"medianPlayers": 41,
"peakPlayers": 91,
"lowestPlayers": 6,
"growth": {
"players": 12.4,
"percentage": 39.7
},
"uptime": null,
"sampleCount": 2880
},
{
"serverId": "history-redm",
"cfxId": "cfx-history",
"range": "30d",
"currentPlayers": 40,
"averagePlayers": 37.2,
"medianPlayers": 37,
"peakPlayers": 65,
"lowestPlayers": 10,
"growth": {
"players": 8.1,
"percentage": 27.8
},
"uptime": null,
"sampleCount": 2880
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid request"
}
}{
"error": {
"code": "RAPIDAPI_UNAUTHORIZED",
"message": "Unauthorized"
}
}{
"error": {
"code": "FEATURE_NOT_AVAILABLE",
"message": "Feature not available for this subscription"
}
}{
"error": {
"code": "SERVER_NOT_FOUND",
"message": "Server not found"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}
}Authorizations
Customer key supplied by RapidAPI.
Body
application/json
Available options:
24h, 7d, 30d, 90d, 1y Response
Derived statistics in caller order.
Available options:
24h, 7d, 30d, 90d, 1y Required array length:
2 - 5 elementsHide child attributes
Hide child attributes
Available options:
24h, 7d, 30d, 90d, 1y Current player count, not the last history point.
Always null in v1. Explicit collection attempts and availability outcomes are not stored, so missing observations cannot be treated as downtime.
Available options:
null Required range:
x >= 0Was this page helpful?
⌘I

.png?fit=max&auto=format&n=WynbxrDMXyS2U53a&q=85&s=f376e17309755dc8ae1d1619ddbcd9ec)