This documentation provides instructions on how to integrate with the TrafficMaster Pro API. This API is available exclusively to our Enterprise Plan subscribers.
API access is authenticated using API keys. You can generate and manage your API keys from your account dashboard.
Include your API key in the x-api-key header of your requests.
POST /api/trafficDescription: Submit a new URL for traffic generation.
Request Body:
{
"url": "https://your-website.com",
"visits": 1000,
"source": "organic"
}
Response:
{
"success": true,
"message": "Traffic generation initiated."
}
GET /api/analyticsDescription: Retrieve analytics data for your website.
Query Parameters:
startDate (optional): The start date for the analytics data (YYYY-MM-DD).endDate (optional): The end date for the analytics data (YYYY-MM-DD).Response:
{
"totalVisits": 12500,
"uniqueVisitors": 8500,
"bounceRate": "45%",
"topSources": [
{ "source": "organic", "visits": 6000 },
{ "source": "social", "visits": 3500 },
{ "source": "direct", "visits": 3000 }
]
}