Getting Started with the Fortnite API
A beginner-friendly guide to setting up and making your first requests to the Fortnite API. Learn authentication, endpoints, and best practices.
Introduction
The Fortnite API by Royal Arena is a comprehensive REST API for accessing Fortnite game data. Whether you're building a stats tracker, a Discord bot, or a full-featured web app, this guide will get you up and running in minutes.
The API base URL is:
https://prod.api-fortnite.comStep 1: Create Your Account
Head over to api-fortnite.com and click Sign In. Once logged in, you'll be redirected to your dashboard where you can generate your API key.
Step 2: Authenticate Your Requests
Every request must include your API key in the x-api-key header:
curl -H "x-api-key: YOUR_API_KEY" https://prod.api-fortnite.com/api/v1/shopStep 3: Make Your First Request
Fetch today's item shop:
curl -H "x-api-key: YOUR_API_KEY" https://prod.api-fortnite.com/api/v1/shopYou'll get a JSON response with all items currently in the Fortnite item shop.
Get the current Fortnite season info:
curl -H "x-api-key: YOUR_API_KEY" https://prod.api-fortnite.com/api/v1/seasonStep 4: Explore the Endpoints
The API covers two versioned namespaces:
v1 endpoints:
GET /api/v1/shop — Current item shop (filters: type, rarity, section, search, lang)GET /api/v1/shop/battlepass — Battle Pass content and rewardsGET /api/v1/account/{accountId} — Account info by Epic IDGET /api/v1/account/displayName/{displayName} — Account info by display nameGET /api/v1/news — In-game news (BR, STW, Creative)GET /api/v1/map — Map data with POIsGET /api/v1/season — Current season number and datesGET /api/v1/profile/progress — Player level & XP *(Starter plan+)*GET /api/v1/profile/ranked — Ranked progress *(Starter plan+)*v2 endpoints:
GET /api/v2/stats/{accountId} — Player stats by Epic account IDPOST /api/v2/stats/bulk — Stats for multiple playersGET /api/v2/stats/leaderboard/{stat} — Global leaderboard by stat keyGET /api/v2/cosmetics/all — Full cosmetics catalog (paginated)GET /api/v2/cosmetics/search — Search cosmeticsGET /api/v2/cosmetics/new — Newest cosmeticsGET /api/v2/weapons — Weapon stats (filterable by patch, category, gamemode…)GET /api/v2/weapons/patches — Available weapon patchesGET /api/v2/playlists — All game mode playlistsGET /api/v2/quests/{accountId} — Player quests *(Pro plan+, requires x-fortnite-token)*Best Practices
/api/v1/account/displayName/{name} to resolve a username to its accountId before calling stats endpoints.What's Next?
Join our Discord community for support!