• Icons
  • Docs
  • Lordicon
  • Lordicon
  • Pricing
  • More
  • Log in Sign up
API Documentation
  • Foundations
  • Icon styles
  • Animation
  • Formats
  • Best practices
  • Integrations
  • Web
  • React
  • Flutter
  • WordPress
  • Webflow
  • Other
  • Tools
  • Figma
  • Canva
  • Adobe
  • Presentations
  • Support
  • Licenses
  • Account and Billing
  • Library
  • Troubleshooting
BETA

API Documentation

Our platform enables the creation and management of applications that integrate a collection of animated icons into various projects. With our tools, you can quickly and easily add beautiful, interactive icons directly to your projects.

In this documentation, you will find all the necessary information to start working with our API – from basic operations like creating applications to more advanced features. After creating your project, you will gain access to a demo version that includes an authentication token for secure communication with our server.

We invite you to explore the possibilities offered by the Lordicon API, and we hope that our documentation will help you fully harness the potential of our icons.

Getting Started with the API

To use our API, you first need to create an account on the Lordicon platform. After registering and logging in, you can start creating projects using the API.

Creating a Project

Once logged into your account, navigate to the API section and click on "Register new project". Follow the form instructions to enter a title and description for your project. Your project will be created, and you will gain access to its demo version.

Demo Project

The demo project is a fully functional version of your application, allowing you to test its functionality before deployment to production. As part of the demo version, you will receive an authentication token for secure communication with the Lordicon server via our API. The demo project provides access to a limited portion of our icon collection.

Project Verification

You can submit your created project for verification. This process allows you to upgrade its plan from demo to free or pro. Verified plans enable a higher number of requests to the server, with the pro plan granting full access to premium resources.

API Guidelines

Authentication

Each request to the Lordicon API must include an Authorization header with an authentication token, which you receive upon creating your application. The token ensures the security and authorization of requests.

Example of using the token in the request header:

GET /v1/example-endpoint
Host: api.lordicon.com
Authorization: Bearer YourAuthenticationToken

Query Limits

Requests to the server are subject to limits. You can check how many requests are remaining and when the counter will reset by using the following response headers:

  • X-RateLimit-Limit - the maximum number of requests that can be made within a specific time window.
  • X-RateLimit-Remaining - the number of remaining requests that can be made in the current time window.
  • X-RateLimit-Reset - the time (in seconds) until the request counter resets.

Exceeding these limits will result in the server returning HTTP error code 429.

Various Headers

For some queries, the returned dataset may be too large to process in a single request. In such cases, we provide a pagination mechanism that allows accessing all data by making multiple consecutive requests.

Headers returned in this context:

  • X-Page - The current page number of records.
  • X-Per-Page - The number of records returned per page.
  • X-Total-Count - The total number of available records for the query.
  • Link - This header contains paths to additional results.

Example value of the Link header:

</v1/icons?page=1&per_page=2>; rel="self", </v1/icons?page=1&per_page=2>; rel="first", </v1/icons?page=4753&per_page=2>; rel="last", </v1/icons?page=2&per_page=2>; rel="next"

Methods

Below is a list of methods you can use to communicate with our API.

List of Families and Styles

This method allows you to retrieve a list of available icon families and their styles. This information enables you to dynamically determine the icon sets we provide and the criteria you can use for filtering.

Example Request:

GET /v1/families
Host: api.lordicon.com
Authorization: Bearer YourAuthenticationToken

Example Response:

{
    "wired": [
        "lineal",
        "flat",
        "outline",
        "gradient"
    ],
    "system": [
        "regular",
        "solid"
    ]
}

List of Available Icons

This method returns a collection of available icons that meet specified criteria. It allows for searching and filtering icons based on various parameters.

Example Request:

GET /v1/icons?family=system
Host: api.lordicon.com
Authorization: Bearer YourAuthenticationToken

Example Response:

[
    {
        "family": "system",
        "style": "regular",
        "index": 1,
        "name": "share",
        "title": "Share",
        "premium": false,
        "files": {
            "preview": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MSwibmFtZSI6InNoYXJlIiwidHlwZSI6IlBSRVZJRVdfU1ZHIiwiZXhwIjoxNzIwNTk0ODU4fQ.ypeZxzAara7jxnP-Q8Da9b0Vb8ZIuS-PbIwKsKQ7tm4.svg",
            "svg": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MSwibmFtZSI6InNoYXJlIiwidHlwZSI6IlNWRyIsImV4cCI6MTcyMDU5NDg1OH0.kXrC1zW8NIsGtQvi8Y99TcjduURjwKf1_sAbDRg1PV4.svg",
            "json": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MSwibmFtZSI6InNoYXJlIiwidHlwZSI6IkpTT04iLCJleHAiOjE3MjA1OTQ4NTh9.EBQA88_6-P6WtY3Dda-HcPz4qpxewf-uvm2ucistork.json"
        }
    },
    {
        "family": "system",
        "style": "regular",
        "index": 2,
        "name": "accessibility",
        "title": "Accessibility",
        "premium": false,
        "files": {
            "preview": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MiwibmFtZSI6ImFjY2Vzc2liaWxpdHkiLCJ0eXBlIjoiUFJFVklFV19TVkciLCJleHAiOjE3MjA1OTQ4NTh9.kUdFWo8tXUVLt9_ogynx-f5J8gHJg2cH0xsthbI1xqo.svg",
            "svg": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MiwibmFtZSI6ImFjY2Vzc2liaWxpdHkiLCJ0eXBlIjoiU1ZHIiwiZXhwIjoxNzIwNTk0ODU4fQ.-u7qzvQ7mmppX0huwcy75kZ6Z_zeIig7vLi3OF_EoHY.svg",
            "json": "https://api.lordicon.com/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmYW1pbHkiOiJzeXN0ZW0iLCJzdHlsZSI6InJlZ3VsYXIiLCJpbmRleCI6MiwibmFtZSI6ImFjY2Vzc2liaWxpdHkiLCJ0eXBlIjoiSlNPTiIsImV4cCI6MTcyMDU5NDg1OH0.9Xl3jd2qBHxC1zCfoSsWrd2SpqSqLOHlzBalG5vbQro.json"
        }
    }
]

The links (files) provided in the response are primarily for previewing and downloading (processing) by your project. These links have a limited lifespan, so if you want a resource to be available later, you must download it and host it on your own server.

The response may include three types of links: "preview", "svg", and "json". Access to "svg" and "json" links is only available if the icon is included in your plan. For example, users of free applications will only receive a "preview" link for premium resources, allowing them to preview the entire library of icons before deciding to upgrade to a pro plan.

Available Parameters:

  • search - allows searching within the collection for a specific phrase.
  • family - filters by icon family.
  • style - filters by icon style.
  • premium - filters by the type of icons.
  • index - filters by icon index.
  • page - specifies the page of results.
  • per_page - specifies the number of results per page (up to 100).

Tracking Downloads

This method is used to inform the server about a user downloading a specific icon. We expect that an application utilizing our API will report each resource download by the user when embedded on a website, presentation, or any other medium using our API. Downloads for previewing and adjusting icons before embedding do not require reporting.

Accurate reporting of downloads enables us to properly account for your API usage and associated costs. Downloads of free icons are not considered in the billing for the pro plan.

Actions that require reporting of download:
  • The application processes the icon and continues to serve it as part of its functionality.
  • A user of your application decides to embed the selected icon in a document, project, or artboard.
  • A user of your application embeds the previously embedded icon, but e.g. with a different color scheme or animation type, into a document, project, or artboard.
  • A user of your application reused the same icon in the same project, even if its use had already been reported. For example, the user duplicates a previously added icon in the same document, project, or artboard or decides to move it to another document, project, or artboard (copy/paste functions).
Actions that do not require reporting of download:
  • A user of your application previews a list of icons in the application interface to make a specific selection.
  • A user of your application or their guests invited to a document, project, or artboard display an already reported icon in that document, project, or artboard.
  • A user of your application selects an icon or changes its color or animation but ultimately does not use it in the project.

Any attempts to avoid reporting downloads are prohibited.

Example Request:

POST /v1/download/track
Host: api.lordicon.com
Authorization: Bearer YourAuthenticationToken
Content-Type: application/json

{
    "family": "wired",
    "style": "outline",
    "index": 3
}

Example Response:

HTTP/1.1 201 Created

Download Statistics

This method allows you to retrieve statistics regarding downloaded icons for a given project, including the number of downloads for free and premium icons on a specific day. The returned data may be cached, which means the statistics are not updated in real-time.

You can use this data to limit access to premium icons for your users if you find they are using them excessively within a billing period.

Example Request:

GET /v1/download/stats
Host: api.lordicon.com
Authorization: Bearer YourAuthenticationToken

Example Response:

[
    {
        "date": "2024-01-01",
        "free": 0,
        "premium": 1
    }
]

Available Parameters:

  • page - specifies the page of results.
  • per_page - specifies the number of results per page (maximum 100).
  • Intro
  • Getting Started
  • Authentication
  • Query Limits
  • Various Headers
  • Methods
  • List of Families and Styles
  • List of Available Icons
  • Tracking Downloads
  • Download Statistics