Introduction to LiveChat's API

Jacob Firuta
2 min read
updated: Nov 8, 2019

LiveChat offers a powerful set of tools through its JavaScript API. Using the API, i.e. Application Programming Interface, you can create custom integrations with your own systems. Although it requires a bit of development on your side, the API opens up a lot of customization and reporting options that can be used in many ways.

Here’s an example API request that returns the number of chats for a given time period:

https://api.livechatinc.com/v2/reports/chats?date_from=2014-03-01&group_by=month
When using our API, remember to always use HTTPS certificate, just as in the example above.
When using our API, remember to always use HTTPS certificate, just as in the example above.

After using this request in your browser, you will be asked for your credentials. You need to provide your login, which is the same as your LiveChat login. To get the password, you need to go to the API section and copy your API key. Next, use the key as your password.

Getting your API key

A string of data will be returned when you login successfully. The data contains information about the number of chats by month from the 1st of March 2014.

To display this raw data in a more comprehensible manner, you can use tools like JSONview plugin for Chrome browsers. After you get the plugin, the data is much more clear and easy to understand.
You can also use this online JSON to CSV (Excel) converter to make the raw data more accessible.
To display this raw data in a more comprehensible manner, you can use tools like JSONview plugin for Chrome browsers. After you get the plugin, the data is much more clear and easy to understand.
You can also use this online JSON to CSV (Excel) converter to make the raw data more accessible.

This is just one example of the possibilities that API provides. You can get the full list of available API methods, along with more information on the API itself, via the API documentation page.

Using the API methods, you can create all kinds of custom integrations. For example, you can connect LiveChat to your phone line and change the statuses of agents whenever there is a call pending.

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

RELATED ARTICLES

WordPress: install LiveChat on your website

Integrate LiveChat with your Wordpress with few clicks. Follow the step by step guidelines and make it on your own within few minutes.

Read the article

Shopify: Install LiveChat in your store

How to add LiveChat to your Shopify store page and get instant access to your customers. Offer them immediate help and increase your sales.

Read the article

Start using LiveChat now!

Free 14-day trial Team plan features No credit card required

Still not convinced? Discover all LiveChat features