Website API
The Website endpoint let’s you retrieve all your websites.
https://api.wecantrack.com/api/v1/websites
Request
Header
Content-Type: application/json
Parameters
Integer
Optional
Website ID
String
Optional
Website URL
Response
Header
Content-Type: application/json
200 Body - OK
Response Example
[
{
"id": 2332,
"url": "https://www.website1.com",
"active": 1
},
{
"id": 5213,
"url": "https://www.website2.com",
"active": 1
},
{
"id": 6248,
"url": "https://www.website3.com",
"active": 0
},
...
]
Create Website
POST: https://api.wecantrack.com/api/v1/websites
Request
Header
Content-Type: application/json
Payload
String
Yes
A valid URL
boolean
no
A boolean value indicating whether the field is active or not
string
no
A string following the format “UA-XXXX-Y” where X is a number between 4 and 10 and Y is a number between 1 and 4
integer
no
A numeric value with a minimum of 10 and maximum of 17 digits
string
no
A alphanumeric string with a maximum length of 255 characters
integer
no
A numeric value
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR
string
no
A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR
boolean
no
A boolean value
boolean
no
A boolean value
string
no
A string that must be one of: default, https://wct-2.com, https://wct-1.com, https://offer-go.com/r, custom
string
no
A valid URL
boolean
no
A boolean value indicating whether the links should be modified or not
integer
no
An integer value that must be one of: 0, 1, 2
boolean
no
A boolean value indicating whether auto tagging is enabled or not
Request Example
{
"url" : "https://example.com",
"active" : true,
"wordpress" : true,
"ga_tracking_id" : "UA-1234-Y"
}
Response
200 Body - OK
Response Example
[
{
"id": 2332,
"url": "https://www.website1.com",
"active": 1
},
{
"id": 5213,
"url": "https://www.website2.com",
"active": 1
},
{
"id": 6248,
"url": "https://www.website3.com",
"active": 0
},
...
]
Update Website
PATCH: https://api.wecantrack.com/api/v1/websites
Request
Header
Content-Type: application/json
Parameters
string
yes
Website URL
Payload
boolean
no
A boolean value indicating whether the field is active or not
string
no
A string following the format “UA-XXXX-Y” where X is a number between 4 and 10 and Y is a number between 1 and 4
integer
no
A numeric value with a minimum of 10 and maximum of 17 digits
string
no
A alphanumeric string with a maximum length of 255 characters
integer
no
A numeric value
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
string
no
A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR
string
no
A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR
boolean
no
A boolean value
boolean
no
A boolean value
string
no
A string that must be one of: default, https://wct-2.com, https://wct-1.com, https://offer-go.com/r, custom
string
no
A valid URL
boolean
no
A boolean value indicating whether the links should be modified or not
integer
no
An integer value that must be one of: 0, 1, 2
boolean
no
A boolean value indicating whether auto tagging is enabled or not
Response
Header
Content-Type: application/json
200 Body - OK
Response Example
[
{
"id": 2332,
"url": "https://www.website1.com",
"active": 1
},
{
"id": 5213,
"url": "https://www.website2.com",
"active": 1
},
{
"id": 6248,
"url": "https://www.website3.com",
"active": 0
},
...
]
Delete Website
DELETE: https://api.wecantrack.com/api/v1/websites
Request
Header
Content-Type: application/json
Parameters
string
yes
Website URL
Get script
GET: https://api.wecantrack.com/api/v1/websites/script
Request
Header
Content-Type: application/json
Parameters
string
yes
Website URL
Response
Header
Content-Type: text/javascript
Response
(function(w, c, t, u) {
w._wct = w._wct || {}; w._wct = u;
var s = c.createElement(t);
s.type = 'text/javascript'; s.async = true; s.src = 'https://wct-2.com/wct.js';
var r = c.getElementsByTagName(t)[0];
r.parentNode.insertBefore(s, r);
}(window, document, 'script', {
'uid' : 'xxxx',
'proxy' : 'https://wct-2.com'
}));