API Documentation

API Usage

By using our API you accept to follow our terms of service, and respect the API limits. Since our API always return your full data, and there is no pagination, you can make up to 10 requests per minute. Our API will always return data in JSON format.

Your websites

This endpoint will return current data from your own websites.

For this endpoint, use post request with api_key and api_secret parameters.

https://api.sitetracked.com/v1/my-websites

Competitors

This endpoint will return current data from your competitors.

For this endpoint, use post request with api_key and api_secret parameters.

https://api.sitetracked.com/v1/competitors

Example JSON return from API

API returns data always in JSON format.

{
  "success": true,
  "data": [
    {
      "stock": "http://schema.org/InStock",
      "price": "48.70",
      "currency": "EUR",
      "title": "Example product - 48,70 €",
      "description": "Example description of product.",
      "time": "1738760334",
      "url": "https://example.com/product/example",
      "localization": "en"
    }
  ]
}

CURL

You can make CURL request using the following parameters. Remember to replace API key and secret.

curl --request POST --data "api_key=YOUR_API_KEY&api_secret=YOUR_API_SECRET" https://api.sitetracked.com/v1/competitors

PHP

Use the code below to make a POST request in PHP.

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.sitetracked.com/v1/competitors');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "api_key=YOUR_API_KEY&api_secret=YOUR_API_SECRET");

$headers = array();
$headers[] = 'Content-Type: application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close($ch);

Python

Use the code below to make post request in Python.

import requests
url = 'https://api.sitetracked.com/v1/competitors'
test = requests.post(url, data={'api_key': 'YOUR_API_KEY', 'api_secret': 'YOUR_API_SECRET'})
print(test.text)
notifications