eToro's social graph is unique in the industry. Copier counts, PI performance, feeds, comments — data no other financial API exposes.
const BASE = "https://public-api.etoro.com/api/v1";
const headers = {
"x-api-key": process.env.ETORO_API_KEY,
"x-user-key": process.env.ETORO_USER_KEY,
"x-request-id": crypto.randomUUID(),
};
// Get Popular Investor data
const pi = await fetch(
`${BASE}/pi-data/copiers/12345678`,
{ headers }
).then(r => r.json());
console.log(`Copiers: ${pi.data.copiers}`);
console.log(`12m Return: ${pi.data.performance12m}%`);
console.log(`Risk Score: ${pi.data.riskScore}/10`);
// Get social feed for an instrument
const feed = await fetch(
`${BASE}/feeds/instruments/1001`,
{ headers }
).then(r => r.json());
for (const post of feed.data.items) {
console.log(`[${post.author}] ${post.text.slice(0, 80)}...`);
}
// Get user performance analytics
const stats = await fetch(
`${BASE}/users/12345678/performance`,
{ headers }
).then(r => r.json());
console.log(`Win rate: ${stats.data.winRate}%`);Access eToro's social layer programmatically — user profiles, social feeds, popular investor stats, and copy trading data through the API.
Learn how to get your API keys, make your first request, and understand eToro API response formats.
Walk through the social and user data endpoints to build a simple trader leaderboard using the eToro API.
Use the eToro Users API to search for traders, pull performance data, and rank them in a real-time leaderboard.