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 one of the most comprehensive free APIs for accessing Fortnite game data. Whether you're building a stats tracker, a Discord bot, or a full-featured web application, this guide will help you get up and running in minutes.
Step 1: Create Your Account
Head over to api-fortnite.com and click Sign In. We use Discord OAuth for authentication, so you'll need a Discord account. Once logged in, you'll be redirected to your dashboard.
Step 2: Get Your API Key
In your dashboard, you'll find your unique API key. This key is used to authenticate all your requests. Keep it secret — never expose it in client-side code or public repositories.
Step 3: Make Your First Request
Here's a simple example using curl to fetch the current item shop:
curl -H "Authorization: YOUR_API_KEY" https://api-fortnite.com/v1/shop/currentYou should receive a JSON response containing all items currently available in the Fortnite item shop.
Step 4: Explore the Endpoints
The API offers many endpoints covering different aspects of Fortnite:
Best Practices
What's Next?
Now that you're set up, check out our other guides:
Join our Discord community for support and to connect with other developers!