curl --request POST \
--url https://public-api.etoro.com/api/v2/portfolios/rankings/multiple \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <x-user-key>' \
--data '
{
"usernames": [
"investor1",
"investor2"
]
}
'import requests
url = "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple"
payload = { "usernames": ["investor1", "investor2"] }
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<x-api-key>",
"x-user-key": "<x-user-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<x-api-key>',
'x-user-key': '<x-user-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({usernames: ['investor1', 'investor2']})
};
fetch('https://public-api.etoro.com/api/v2/portfolios/rankings/multiple', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'usernames' => [
'investor1',
'investor2'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <x-user-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple"
payload := strings.NewReader("{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-user-key", "<x-user-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.etoro.com/api/v2/portfolios/rankings/multiple")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<x-api-key>")
.header("x-user-key", "<x-user-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v2/portfolios/rankings/multiple")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<x-api-key>'
request["x-user-key"] = '<x-user-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"cid": 123,
"username": "<string>",
"value": {
"cid": 123,
"username": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>",
"tags": [
"<string>"
],
"gain": 123,
"dailyGain": 123,
"thisWeekGain": 123,
"fiveYearGain": 123,
"tenYearGain": 123,
"annualizedReturn": 123,
"riskScore": 123,
"maxDailyRiskScore": 123,
"maxMonthlyRiskScore": 123,
"copiers": 123,
"copiedTrades": 123,
"copyTradesPct": 123,
"copyInvestmentPct": 123,
"baseLineCopiers": 123,
"copiersGain": 123,
"aumTier": 123,
"aumTierDesc": "<string>",
"aumValue": 123,
"virtualCopiers": 123,
"dailyDD": 123,
"weeklyDD": 123,
"profitableWeeksPct": 123,
"profitableMonthsPct": 123,
"peakToValley": 123,
"peakToValleyStart": "2023-11-07T05:31:56Z",
"peakToValleyEnd": "2023-11-07T05:31:56Z",
"trades": 123,
"winRatio": 123,
"velocity": 123,
"exposure": 123,
"avgPosSize": 123,
"optimalCopyPosSize": 123,
"highLeveragePct": 123,
"mediumLeveragePct": 123,
"lowLeveragePct": 123,
"longPosPct": 123,
"topTradedInstrumentId": 123,
"topTradedAssetClassId": 123,
"topTradedInstrumentPct": 123,
"totalTradedInstruments": 123,
"activeWeeks": 123,
"firstActivity": "2023-11-07T05:31:56Z",
"lastActivity": "2023-11-07T05:31:56Z",
"activeWeeksPct": 123,
"weeksSinceRegistration": 123,
"country": "<string>"
}
}
]
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"field": "<string>",
"value": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"field": "<string>",
"value": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}Bulk-fetch ranking rows
Rate limit: 60 requests per 60 seconds. This is the default shared quota — it is shared with every other endpoint that has no dedicated limit, so requests across those endpoints all draw from the same budget.
Returns ranking rows for a list of investors identified by username. Missing, private, or unranked users are silently omitted. Maximum 100 usernames per request.
curl --request POST \
--url https://public-api.etoro.com/api/v2/portfolios/rankings/multiple \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-request-id: <x-request-id>' \
--header 'x-user-key: <x-user-key>' \
--data '
{
"usernames": [
"investor1",
"investor2"
]
}
'import requests
url = "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple"
payload = { "usernames": ["investor1", "investor2"] }
headers = {
"x-request-id": "<x-request-id>",
"x-api-key": "<x-api-key>",
"x-user-key": "<x-user-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-request-id': '<x-request-id>',
'x-api-key': '<x-api-key>',
'x-user-key': '<x-user-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({usernames: ['investor1', 'investor2']})
};
fetch('https://public-api.etoro.com/api/v2/portfolios/rankings/multiple', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'usernames' => [
'investor1',
'investor2'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-request-id: <x-request-id>",
"x-user-key: <x-user-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://public-api.etoro.com/api/v2/portfolios/rankings/multiple"
payload := strings.NewReader("{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-request-id", "<x-request-id>")
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-user-key", "<x-user-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://public-api.etoro.com/api/v2/portfolios/rankings/multiple")
.header("x-request-id", "<x-request-id>")
.header("x-api-key", "<x-api-key>")
.header("x-user-key", "<x-user-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.etoro.com/api/v2/portfolios/rankings/multiple")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-request-id"] = '<x-request-id>'
request["x-api-key"] = '<x-api-key>'
request["x-user-key"] = '<x-user-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"usernames\": [\n \"investor1\",\n \"investor2\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"cid": 123,
"username": "<string>",
"value": {
"cid": 123,
"username": "<string>",
"fullName": "<string>",
"avatarUrl": "<string>",
"tags": [
"<string>"
],
"gain": 123,
"dailyGain": 123,
"thisWeekGain": 123,
"fiveYearGain": 123,
"tenYearGain": 123,
"annualizedReturn": 123,
"riskScore": 123,
"maxDailyRiskScore": 123,
"maxMonthlyRiskScore": 123,
"copiers": 123,
"copiedTrades": 123,
"copyTradesPct": 123,
"copyInvestmentPct": 123,
"baseLineCopiers": 123,
"copiersGain": 123,
"aumTier": 123,
"aumTierDesc": "<string>",
"aumValue": 123,
"virtualCopiers": 123,
"dailyDD": 123,
"weeklyDD": 123,
"profitableWeeksPct": 123,
"profitableMonthsPct": 123,
"peakToValley": 123,
"peakToValleyStart": "2023-11-07T05:31:56Z",
"peakToValleyEnd": "2023-11-07T05:31:56Z",
"trades": 123,
"winRatio": 123,
"velocity": 123,
"exposure": 123,
"avgPosSize": 123,
"optimalCopyPosSize": 123,
"highLeveragePct": 123,
"mediumLeveragePct": 123,
"lowLeveragePct": 123,
"longPosPct": 123,
"topTradedInstrumentId": 123,
"topTradedAssetClassId": 123,
"topTradedInstrumentPct": 123,
"totalTradedInstruments": 123,
"activeWeeks": 123,
"firstActivity": "2023-11-07T05:31:56Z",
"lastActivity": "2023-11-07T05:31:56Z",
"activeWeeksPct": 123,
"weeksSinceRegistration": 123,
"country": "<string>"
}
}
]
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"field": "<string>",
"value": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"field": "<string>",
"value": "<string>"
},
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}Authorizations
eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.
Headers
A unique request identifier.
"14e1bde5-547e-4183-a878-f0f8ededb0fa"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Query Parameters
Rolling time window for performance metrics.
CurrMonth, OneMonthAgo, TwoMonthsAgo, CurrQuarter, ThreeMonthsAgo, SixMonthsAgo, CurrYear, OneYearAgo, LastYear, LastTwoYears Body
1 - 100 elements["investor1", "investor2"]
Response
Successful response (order preserved, missing users omitted)
Show child attributes
Show child attributes