Getting your API key and authenticating
Get your Client ID and Client Secret and send them with your requests.
Every API request needs your Client ID. Requests that use credits (downloads, conversions and AI generation) also need your Client Secret.
How to get your API key
- On your API Dashboard, click Create your first app.
- In the Create API Project form, fill in:
- App/Project Name
- Use case Description: how you plan to use IconScout assets
- Required Asset Types: the asset types you need, for example icons or Lottie animations
- API Products: the services you need, such as AI Generation & Tools or File Converter
- Job Title and Company Website
- Tick "I agree to the API License & Development Agreement".
- Click Generate API Key. Your app opens on the API Key tab.
- Click the copy icon next to Client ID.
- Under Secret keys, click the copy icon next to your key to copy the Client Secret.
Already have an app? Go to your API Dashboard, open the app and copy your keys from the API Key tab. To rename an app, click the pencil icon next to its name.
Building an Enterprise solution? Click Get a custom demo at the bottom of the form.
What else is on the API Dashboard
|
Where |
What you can do |
|---|---|
|
API Key tab |
Copy your Client ID and secret keys, create a second key, regenerate a key |
|
Usage this period |
See credits used and remaining, or click View Usage |
|
Usage Report tab |
See your daily usage |
|
Pricing tab |
See and change your API plan |
Want AI generation or file conversion? Choose AI Generation & Tools and File Converter under API Products when you create the app. If a product isn't turned on for your app, its requests return a 403 error.
Which headers to send
|
Request |
Headers needed |
|---|---|
|
Search ( |
|
|
Item details ( |
|
|
Download, AI generation, conversion |
|
Example
curl "https://api.iconscout.com/v3/search?query=rocket&asset=icon" \ -H "Client-ID: $ICONSCOUT_CLIENT_ID"
Keep your keys safe
- Store your keys as environment variables, for example
ICONSCOUT_CLIENT_IDandICONSCOUT_CLIENT_SECRET. - Never put your Client Secret in front-end code, a mobile app or a public repository. Call credit-using endpoints from your server.
- Need to rotate keys without downtime? Click Create a second key, switch your app to the new key, then remove the old one.
- Think your secret has leaked? Click Regenerate Secret Key on the API Key tab, then update your app with the new key. The old key stops working.