Javascript Library

Attached below examples and tutorial on how to get started with Ever XP Javascript library.

Get Started


Main Script

In order to get started, please install this code right before the </body> tag

<script src='https://api.everxp.com/assets/js/everxp-1.0.js'></script>
API Key

Instructions to get your API Key

Headings


Parameters
Key Type Optional Explaination
api_key Text Required base 64 encode email address:api_key API Key Tutorial
pattern Number Required (only on pattern endpoint) Patterns Ids list
quote Text Required (only on quote endpoint) Quotes Categories list
time Number Required (only on date & time endpoint) Date & Time Ids list
lang Text Required Languages list
style Number Optional Writing Styles list
voice Number Optional Writing Voices list
pull Number Optional Pull Methods options
freshness Number Optional Freshness levels options
min_l Number Optional Minimum number of characters 
max_l Number Optional Maximum number of characters 
div Text Optional Returns result as text inside div id otherwise returned as json response
user_identifier Text Optional Any kind of parameter to identify your customer (IP, User ID, Email, Username, or First and Last name) Example: [email protected].
Patterns

Pull more than 1,000,000 patterns combinations, to any place on your site

<script>
    xp_pattern({
        'api_key': '_YOUR_API_KEY_',
        'pattern': 1,
        'lang': 'en',
        'style': '', // Optional
        'pull': '', // Optional
        'freshness': '', // Optional
        'voice': '', // Optional
        'div': 'selected-div-id', // Optional
        'min_l': 0, // Optional
        'max_l': 9999 // Optional
    });
</script>
Live Example

See the Pen Loading... by Ever XP (@everxp) on CodePen.

Quotes

Pull more than 1,000,000 quotes combinations, to any place on your site

<script>
    xp_quote({
        'api_key': '_YOUR_API_KEY_',
        'quote': 1,
        'lang': 'en',
        'style': '', // Optional
        'pull': '', // Optional
        'freshness': '', // Optional
        'voice': '', // Optional
        'div': 'selected-div-id', // Optional
        'min_l': 0, // Optional
        'max_l': 9999 // Optional
    });
</script>
Date & Time

Pull more than 1,000,000 date & time combinations, to any place on your site

<script>
    xp_time({
        'api_key': '_YOUR_API_KEY_',
        'time': 1,
        'lang': 'en',
        'style': '', // Optional
        'pull': '', // Optional
        'freshness': '', // Optional
        'voice': '', // Optional
        'div': 'selected-div-id', // Optional
        'min_l': 0, // Optional
        'max_l': 9999 // Optional
    });
</script>

Facing an error? Error codes list