Websites

Websites#

In ABtesting.ai the information is organized with the following criteria: Website -> Webpage -> Experiment

A Website groups all the web pages under a single domain. So, if I'm running 2 A/B tests on my website, one under abtesting.ai/test1 and another one under abtesting.ai/test2 they will both be web pages under the abtesting.ai website.

You can list all of your websites doing a GET to the endpoint https://api.abtesting.ai/v1.0/websites/.

Remember that you will need to set the Authentication-Token header with the API Token that you acquired in the previous step.

Python Example#

import requests token = 'Your token goes here' res = requests.get('https://api.abtesting.ai/v1.0/websites/', headers={'Authentication-Token': token}) print(res.json())

Response Example#

[ { "domain":"abtesting.ai", "id":2940, "user_id":1234, "verified":true, "web_pages":[ 3442, 3443 ] }, { "domain":"google.com", "id":2941, "user_id":1234, "verified":true, "web_pages":[ 3444, 3445 ] } ]
Websites