<commit_before># Losant REST API

Losant is powered by a full REST API that provides access to nearly every feature. The Losant front-end web application itself is built on top of this API, and so almost all the data and functionality in the front end is available through the API itself. In fact, the front-end uses the open-source <a href="https://github.com/Losant/losant-rest-js" target="_blank">losant-rest-js</a> JavaScript client to communicate with the Losant API. If JavaScript is not your language of choice, no need to worry! We have easy to use libraries for a number of different languages:

*   JavaScript with <a href="https://github.com/Losant/losant-rest-js" target="_blank">losant-rest-js</a>  
Available in Node Package Manager: `npm install losant-rest`  
<br/>
*   Python with <a href="https://github.com/Losant/losant-rest-python" target="_blank">losant-rest-python</a>  
Available in the Python Package Index: `pip install losant-rest`  
<br/>
*   Ruby with <a href="https://github.com/Losant/losant-rest-ruby" target="_blank">losant-rest-ruby</a>  
Available in RubyGems: `gem install losant_rest`

Of course, if you are working in a language not listed above, the API is reasonably easy to use directly - if your language has a good HTTP request library and a good JSON library, you should be able to make any API request you need to using the documentation here.

All of the documentation and examples here are aimed at making direct HTTP requests against the Losant API, using curl examples whenever possible. If you plan on using one of the wrapping libraries listed above, the documentation in those repositories will be a much more useful place to learn how to use the particular library.<commit_msg>Fix typo<commit_after># Losant REST API

Losant is powered by a full REST API that provides access to nearly every feature. The Losant front-end web application itself is built on top of this API, and so almost all the data and functionality in the front end is available through the API itself. In fact, the front-end uses the open-source <a href="https://github.com/Losant/losant-rest-js" target="_blank">losant-rest-js</a> JavaScript client to communicate with the Losant API. If JavaScript is not your language of choice, no need to worry! We have easy to use libraries for a number of different languages:

*   JavaScript with <a href="https://github.com/Losant/losant-rest-js" target="_blank">losant-rest-js</a>  
Available in Node Package Manager: `npm install losant-rest`  
<br/>
*   Python with <a href="https://github.com/Losant/losant-rest-python" target="_blank">losant-rest-python</a>  
Available in the Python Package Index: `pip install losant-rest`  
<br/>
*   Ruby with <a href="https://github.com/Losant/losant-rest-ruby" target="_blank">losant-rest-ruby</a>  
Available in RubyGems: `gem install losant_rest`

Of course, if you are working in a language not listed above, the API is reasonably easy to use directly - if your language has a good HTTP request library and a good JSON library, you should be able to make any API request you need using the documentation here.

All of the documentation and examples here are aimed at making direct HTTP requests against the Losant API, using curl examples whenever possible. If you plan on using one of the wrapping libraries listed above, the documentation in those repositories will be a much more useful place to learn how to use the particular library.
{'fraction_non_alphanumeric': 0.07415990730011587, 'fraction_numerical': 0.0, 'mean_word_length': 4.48966613672496, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '630580', 'n_tokens_mistral': 905, 'n_tokens_neox': 886, 'n_words': 473}