Downloading assets through the API
Download assets in the format and size you need.
To download an asset, send its UUID with the format and size you want. You get back a temporary download link. Downloads need your Client ID and Client Secret and use API credits.
How to download
- Find the asset with search and copy its
uuid. - Send
POST /v3/items/{uuid}/api-downloadwithformat,widthandheight. All three are required. - Open or save the file from the download link in the response. The link expires after a short time, so download it straight away.
curl -X POST "https://api.iconscout.com/v3/items/{uuid}/api-download" \ -H "Client-ID: $ICONSCOUT_CLIENT_ID" \ -H "Client-Secret: $ICONSCOUT_CLIENT_SECRET" \ -H "Content-Type: application/json" \ -d '{"format":"png","width":512,"height":512}'
Setting the size
|
Format |
Width and height |
|---|---|
|
PNG |
|
|
SVG, JSON, Lottie |
Set both to |
|
3D formats (glTF and others) |
Ignored |
Formats by asset type
|
Asset |
Formats |
|---|---|
|
Icons |
svg, png |
|
Illustrations |
svg, png, eps |
|
3D icons |
png, gltf, glb, obj, fbx, blend |
|
Lottie animations |
json, lottie, gif, mp4, aep, tgs |
|
AI images |
png, jpg, jpeg |
Not every asset has every format. For example, only some Lottie animations come with an AEP file.
Formats by plan
|
Plan |
Formats you can download |
|---|---|
|
Free |
PNG |
|
Starter |
SVG, PNG |
|
Basic |
SVG, PNG, JSON |
|
Essential |
SVG, PNG, JSON |
|
Custom |
Includes Lottie |
The Free plan covers free assets only.
Downloading several formats at once
Need the same asset as, say, SVG and PNG? Send POST /v3/items/{uuid}/download-files with a list of formats, plus width and height. You get one download link per format. Formats the asset doesn't have are skipped, and the call only fails if none of them exist. [Confirm whether each format uses credits.]
How many credits does a download use?
It depends on the asset type. Icons use fewer credits than illustrations, 3D icons and Lottie animations. See the pricing table for current costs.
Common errors
|
Error |
Reason |
What to do |
|---|---|---|
|
400 |
|
Check |
|
400 |
|
Your plan doesn't cover this asset, for example a premium asset on the Free plan. Upgrade (Article 7). |
|
401 |
|
Send both Client ID and Client Secret |
|
402 |
|
This download would go past your spending limit for the billing period (Article 8) |
|
404 |
|
Check the asset UUID |
|
404 |
|
The asset doesn't come in that format. The message lists the formats it does have. |
|
422 |
|
The app has no active API plan |
|
429 |
|
Wait for the |
For more details, visit IconScout API Docs.