REST API for Pro users to integrate bugX tools into their workflows
All API requests should be made to the following base URL:
https://bugx.in/api/v1
All API requests require an API key passed in the X-API-Key header.
X-API-Key: wot_your_api_key_here
Check HTTP status codes for multiple URLs.
| Parameter | Type | Description |
|---|---|---|
| urls required | array | Array of URLs to check (max 100) |
| concurrency | number | Concurrent requests (default: 5) |
curl -X POST https://bugx.in/api/v1/check-status \
-H "X-API-Key: wot_your_key" \
-H "Content-Type: application/json" \
-d '{
"urls": [
"https://example.com",
"https://google.com"
]
}'
{
"success": true,
"total": 2,
"working": 2,
"broken": 0,
"results": [
{
"url": "https://example.com",
"status": 200,
"ok": true,
"ms": 234
}
]
}
Measure page load times and get performance grades.
| Parameter | Type | Description |
|---|---|---|
| urls required | array | Array of URLs to test (max 50) |
| concurrency | number | Concurrent requests (default: 3) |
{
"success": true,
"total": 1,
"avgTtfb": 245,
"avgTotal": 892,
"grades": { "A": 0, "B": 1, "C": 0, "D": 0, "F": 0 },
"results": [
{
"url": "https://example.com",
"ttfb": 245,
"totalTime": 892,
"grade": "B"
}
]
}
Check SSL certificate validity and expiration.
| Parameter | Type | Description |
|---|---|---|
| domains required | array | Array of domains to check (max 50) |
{
"domains": ["example.com", "google.com"]
}
Analyze SEO meta tags and get optimization scores.
| Parameter | Type | Description |
|---|---|---|
| urls required | array | Array of URLs to analyze (max 20) |
Trace redirect chains and detect loops.
| Parameter | Type | Description |
|---|---|---|
| urls required | array | Array of URLs to check (max 50) |
Check security headers and get security grades.
| Parameter | Type | Description |
|---|---|---|
| urls required | array | Array of URLs to check (max 50) |
Pro users have unlimited API calls. However, each endpoint has limits on batch size:
Errors are returned with appropriate HTTP status codes:
400 - Bad Request (invalid parameters)401 - Unauthorized (missing or invalid API key)403 - Forbidden (not a Pro user)500 - Server Error{
"error": "Description of the error"
}