Using your credentials

When querying the API with an external script, you have to provide your login details using a “Basic authentication”, encoded using base64 in the headers of the calls, using the following format:

Here’s the encoded version: ZW1haWxAZW1haWwuY29tOnBhc3N3b3Jk

Here’s the information to be passed in the API call header:

"Authorization: Basic ZW1haWxAZW1haWwuY29tOnBhc3N3b3Jk"


Using an API key

If you don’t have an AT Internet user account, you can still query the API by requesting an API Key to the administrator.

Admins have the capacity to create API feeds with a specific parameter in the URL (&apikey=) to allow the connection.

Here’s an example:{d_source,m_visits}&sort={-m_visits}&space={s:#YourSiteID#}&period={R:{D:'-1'}}&max-results=50&page-num=1&apikey=6f8277f0-4d62-4fb6-ae85-c2c158399dc6

Was this post helpful?
Last update: 31/07/2017