Getting Started with the etoro API (v1)
Learn how to get your API keys, make your first request, and understand etoro API response formats.
etoro Developer Relations
Updated 2 min read
This guide covers an older API version. A newer version (v2) is available.
On this page
Prerequisites
Before you begin, you'll need:
- An etoro account (sign up at etoro.com)
- API credentials from the etoro API Portal
- A basic understanding of REST APIs
- Node.js 18+ or Python 3.8+ installed
Getting Your API Keys
- Visit api-portal.etoro.com and sign in with your etoro account
- Navigate to Settings → Trading → API Key Management and click Create New Key
- Copy your API key (
x-api-key) and User key (x-user-key) - Store them securely — never commit API keys to version control
Your First API Request
Let's fetch a list of available instruments using the etoro API.
Understanding the Response
etoro API responses contain your requested data. Include an x-request-id header on every call so support can trace issues back to specific requests.
Common HTTP status codes:
- 200 — Success
- 400 — Bad request (check your parameters)
- 401 — Unauthorized (check your API key and user key)
- 429 — Rate limited (respect
Retry-Afterheader and slow down) - 500 — Server error (retry with exponential backoff)
Rate Limits
The etoro API enforces rate limits. Exceeding your limit returns 429 Too Many Requests with a Retry-After header. Always respect that header before retrying.
For current rate limit details, see the Rate Limits documentation.
Next Steps
Now that you've made your first request, explore these guides:
- Real-Time Market Data with WebSockets — Stream live prices
- Building an Algo Trading Bot — Automate your strategy
- API Reference — Full endpoint documentation
Was this helpful?
Related guides