# API Documentation Scan URLs from your own code. Requests authenticate with an API key, and results are grouped into six dimensions. ## Quick Start 1. Create an API key under Settings, API Keys. Your plan must include API access, which the Free plan does not. 2. Send `POST /api/v1/scans` with a URL. The response holds a `linkId`. 3. Read `GET /api/v1/scans/:id` until `status` is `completed` or `failed`, or receive the result through a webhook. Base URL: `https://sidex.id` ## Authentication Send your API key as a bearer token on every request. Keys start with `sidx_`. Header ```http Authorization: Bearer sidx_YOUR_API_KEY ``` | Scope | Allows | | --- | --- | | `read_only` | List and read scans | | `read_and_write` | List, read, create, and delete scans | ## Rate Limits | Requests | Limit | | --- | --- | | `/api/v1/scans` and `/api/v1/scans/:id` | 60 per minute, per API key | | `/api/v1/bulk` | 10 per minute, per API key | Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` (Unix timestamp). Over the limit, the API returns 429 with a `Retry-After` header. Your plan's monthly and hourly scan quotas also return 429 when used up. ## Response Format Every response is JSON with `status` and `msg`. Results are in `data`, lists add `total`, and validation failures add `errors`. A scan groups its results into six dimensions. A dimension your plan does not include is returned as `null`. | Dimension | Contains | Plans | | --- | --- | --- | | `security` | Verdict, threat score, threat confidences, SSL, brand impersonation | All plans | | `trust` | SSL chain, domain WHOIS for the final and original domain | All plans | | `content` | Page title, language, forms, gambling and adult content | Starter, Pro, Enterprise | | `business` | Company, business type, industry | Pro, Enterprise | | `insight` | AI summary, key findings, risk factors, recommendations | Pro, Enterprise | | `technical` | HTTP status, IPs, ASN, network requests, technologies | Enterprise | `security.treatLevel` is the verdict, and `security.threatScore` is the number behind it, from 0 (safest) to 1 (most dangerous). The dashboard shows the same score multiplied by 10. | treatLevel | threatScore | Dashboard | | --- | --- | --- | | `safe` | Below 0.2 | 0.0 to 1.9 | | `warning` | 0.2 to 0.59 | 2.0 to 5.9 | | `danger` | 0.6 and above | 6.0 to 10.0 | ## Endpoints ### Create Single Scan POST `/api/v1/scans` Queue one URL for scanning. The response returns right away, with the id to read the result from. Required scope: `read_and_write` | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `url` | string | Yes | The URL to scan. https:// is added if missing. | | `scanType` | string | No | "quick" (default, URL and domain only) or "deep" (crawls the page) | | `timeout` | number | No | Scan timeout in seconds. Default 30, maximum 60. | Request body ```json { "url": "https://example.com", "scanType": "deep", "timeout": 60 } ``` Response ```json { "msg": "Deep scan started successfully", "data": { "linkId": "65a1f0c2b3d4e5f6a7b8c9d0", "status": "pending", "scanType": "deep", "estimatedDuration": 60000 }, "status": 200 } ``` cURL ```bash curl -X POST https://sidex.id/api/v1/scans \ -H "Authorization: Bearer sidx_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com", "scanType": "deep", "timeout": 60}' ``` ### Create Bulk Scans POST `/api/v1/bulk` Queue up to 100 URLs in one request. Duplicate URLs are rejected. Required scope: `read_and_write` | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `urls` | string\[\] | Yes | The URLs to scan, 1 to 100 unique values. | | `scanType` | string | No | "quick" (default, URL and domain only) or "deep" (crawls the page) | | `timeout` | number | No | Scan timeout in seconds. Default 30, maximum 60. | Request body ```json { "urls": [ "https://example.com", "https://example.org" ], "scanType": "quick" } ``` Response ```json { "msg": "Quick scan started for 2 URL(s)", "data": { "totalRequested": 2, "totalQueued": 2, "scanType": "quick", "estimatedDuration": 30000, "links": [ { "id": "65a1f0c2b3d4e5f6a7b8c9d0", "url": "https://example.com", "status": "pending" }, { "id": "65a1f0c2b3d4e5f6a7b8c9d1", "url": "https://example.org", "status": "pending" } ] }, "status": 200 } ``` cURL ```bash curl -X POST https://sidex.id/api/v1/bulk \ -H "Authorization: Bearer sidx_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"urls": ["https://example.com", "https://example.org"], "scanType": "quick"}' ``` ### List Scans GET `/api/v1/scans` Read your scans, newest first by default, as an array plus the total count. Required scope: `read_only or read_and_write` | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `page` | number | No | Page number. Default 1. | | `perPage` | number | No | Results per page. Default 20, maximum 100. | | `q` | string | No | Search by URL or domain. | | `status` | string | No | pending, scanning, completed, or failed. | | `treatLevel` | string | No | safe, warning, or danger. | | `dateFrom` | string | No | Only scans created on or after this date. | | `dateTo` | string | No | Only scans created on or before this date. | | `sortBy` | string | No | createdAt (default), domain, status, treatLevel, or threatScore. | | `sortOrder` | string | No | asc or desc (default). | Response ```json { "msg": "Success", "data": [ { "id": "65a1f0c2b3d4e5f6a7b8c9d0", "url": "https://www.example.com/", "domain": "example.com", "originalUrl": "https://example.com", "originalDomain": "example.com", "status": "completed", "scanType": "deep", "timeout": false, "redirectChain": [ "https://example.com", "https://www.example.com/" ], "hasScreenshot": true, "redirectHops": [ { "url": "https://example.com", "domain": "example.com", "status": 301, "via": "start", "ip": "93.184.216.34", "country": "United States of America", "asnOrg": "Edgecast Inc." }, { "url": "https://www.example.com/", "domain": "example.com", "status": 200, "via": "redirect", "ip": "93.184.216.34", "country": "United States of America", "asnOrg": "Edgecast Inc." } ], "security": { "treatLevel": "safe", "threatScore": 0.05, "threats": { "phishing": 0, "malware": 0, "scam": 0, "deceptiveContent": 0, "adult": 0, "gambling": 0 }, "ssl": { "valid": true, "issuer": "Let's Encrypt", "issueDate": "2026-09-01T00:00:00.000Z", "expireDate": "2026-11-30T00:00:00.000Z", "ageInDays": 62 }, "brandImpersonation": { "detected": false, "brand": null, "confidence": 0 }, "riskFactors": [], "suspiciousKeywords": [] }, "business": { "category": "technology", "companyName": "Example Inc.", "companyDomain": "example.com", "companyCountry": "US", "businessType": "technology", "industryClassification": "Software" }, "technical": { "httpStatusCode": 200, "contentType": "text/html; charset=UTF-8", "ipAddresses": [ "93.184.216.34" ], "cspHeaders": [], "ipCountry": "US", "ipCountryName": "United States of America", "asn": "15133", "asnOrg": "Edgecast Inc.", "network": { "requests": 12, "httpsRequests": 12, "ips": [ { "ip": "93.184.216.34", "requests": 12, "redirects": 1, "country": "US", "countryName": "United States of America", "region": "California", "city": "Los Angeles", "asn": "15133", "asnOrg": "Edgecast Inc." } ], "hosts": [ { "host": "www.example.com", "parent": null, "requests": 12 } ], "redirects": [] }, "technologies": [ { "name": "Nginx", "category": "Web server", "version": null } ] }, "content": { "pageTitle": "Example Domain", "metaDescription": "This domain is for use in documentation examples.", "language": "en", "forms": { "hasLoginForm": false, "requestsPersonalInfo": false, "requestedInfoTypes": [] }, "gambling": { "related": false, "type": [], "confidence": 0 }, "adult": { "related": false, "type": [], "confidence": 0 }, "suspiciousExternalDomains": [] }, "trust": { "ssl": { "valid": true, "issuer": "Let's Encrypt", "intermediateCas": [ "R13 (Let's Encrypt)" ], "rootCa": "ISRG Root X1 (Internet Security Research Group)", "issueDate": "2026-09-01T00:00:00.000Z", "expireDate": "2026-11-30T00:00:00.000Z", "ageInDays": 62 }, "domain": { "registeredAt": "1995-08-14T00:00:00.000Z", "expireDate": "2027-08-13T00:00:00.000Z", "ageInDays": 11404, "registrar": "RESERVED-Internet Assigned Numbers Authority", "registrantCountry": null, "status": [ "client transfer prohibited" ], "nameservers": [ "a.iana-servers.net", "b.iana-servers.net" ], "abuseEmail": null }, "originalDomain": { "registeredAt": "1995-08-14T00:00:00.000Z", "expireDate": "2027-08-13T00:00:00.000Z", "ageInDays": 11404, "registrar": "RESERVED-Internet Assigned Numbers Authority", "registrantCountry": null, "status": [ "client transfer prohibited" ], "nameservers": [ "a.iana-servers.net", "b.iana-servers.net" ], "abuseEmail": null } }, "insight": { "summary": "Reserved documentation domain with no malicious content.", "keyFindings": [ "Domain is reserved for documentation" ], "riskFactors": [], "positiveIndicators": [ "Valid SSL certificate", "Domain older than 5 years" ], "recommendations": [ "No action needed" ] }, "errorMessage": null, "retryCount": 0, "createdAt": "2026-11-02T03:48:52.023Z", "updatedAt": "2026-11-02T03:49:05.673Z", "startedAt": "2026-11-02T03:48:54.519Z", "completedAt": "2026-11-02T03:49:05.673Z" } ], "total": 1, "status": 200 } ``` cURL ```bash curl "https://sidex.id/api/v1/scans?perPage=20&status=completed&treatLevel=danger" \ -H "Authorization: Bearer sidx_YOUR_API_KEY" ``` ### Get Scan Details GET `/api/v1/scans/:id` Read one scan. Poll this until status is completed or failed, or use webhooks instead. Required scope: `read_only or read_and_write` | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The scan id, the linkId from creation. | Response ```json { "msg": "Success", "data": { "id": "65a1f0c2b3d4e5f6a7b8c9d0", "url": "https://www.example.com/", "domain": "example.com", "originalUrl": "https://example.com", "originalDomain": "example.com", "status": "completed", "scanType": "deep", "timeout": false, "redirectChain": [ "https://example.com", "https://www.example.com/" ], "hasScreenshot": true, "redirectHops": [ { "url": "https://example.com", "domain": "example.com", "status": 301, "via": "start", "ip": "93.184.216.34", "country": "United States of America", "asnOrg": "Edgecast Inc." }, { "url": "https://www.example.com/", "domain": "example.com", "status": 200, "via": "redirect", "ip": "93.184.216.34", "country": "United States of America", "asnOrg": "Edgecast Inc." } ], "security": { "treatLevel": "safe", "threatScore": 0.05, "threats": { "phishing": 0, "malware": 0, "scam": 0, "deceptiveContent": 0, "adult": 0, "gambling": 0 }, "ssl": { "valid": true, "issuer": "Let's Encrypt", "issueDate": "2026-09-01T00:00:00.000Z", "expireDate": "2026-11-30T00:00:00.000Z", "ageInDays": 62 }, "brandImpersonation": { "detected": false, "brand": null, "confidence": 0 }, "riskFactors": [], "suspiciousKeywords": [] }, "business": { "category": "technology", "companyName": "Example Inc.", "companyDomain": "example.com", "companyCountry": "US", "businessType": "technology", "industryClassification": "Software" }, "technical": { "httpStatusCode": 200, "contentType": "text/html; charset=UTF-8", "ipAddresses": [ "93.184.216.34" ], "cspHeaders": [], "ipCountry": "US", "ipCountryName": "United States of America", "asn": "15133", "asnOrg": "Edgecast Inc.", "network": { "requests": 12, "httpsRequests": 12, "ips": [ { "ip": "93.184.216.34", "requests": 12, "redirects": 1, "country": "US", "countryName": "United States of America", "region": "California", "city": "Los Angeles", "asn": "15133", "asnOrg": "Edgecast Inc." } ], "hosts": [ { "host": "www.example.com", "parent": null, "requests": 12 } ], "redirects": [] }, "technologies": [ { "name": "Nginx", "category": "Web server", "version": null } ] }, "content": { "pageTitle": "Example Domain", "metaDescription": "This domain is for use in documentation examples.", "language": "en", "forms": { "hasLoginForm": false, "requestsPersonalInfo": false, "requestedInfoTypes": [] }, "gambling": { "related": false, "type": [], "confidence": 0 }, "adult": { "related": false, "type": [], "confidence": 0 }, "suspiciousExternalDomains": [] }, "trust": { "ssl": { "valid": true, "issuer": "Let's Encrypt", "intermediateCas": [ "R13 (Let's Encrypt)" ], "rootCa": "ISRG Root X1 (Internet Security Research Group)", "issueDate": "2026-09-01T00:00:00.000Z", "expireDate": "2026-11-30T00:00:00.000Z", "ageInDays": 62 }, "domain": { "registeredAt": "1995-08-14T00:00:00.000Z", "expireDate": "2027-08-13T00:00:00.000Z", "ageInDays": 11404, "registrar": "RESERVED-Internet Assigned Numbers Authority", "registrantCountry": null, "status": [ "client transfer prohibited" ], "nameservers": [ "a.iana-servers.net", "b.iana-servers.net" ], "abuseEmail": null }, "originalDomain": { "registeredAt": "1995-08-14T00:00:00.000Z", "expireDate": "2027-08-13T00:00:00.000Z", "ageInDays": 11404, "registrar": "RESERVED-Internet Assigned Numbers Authority", "registrantCountry": null, "status": [ "client transfer prohibited" ], "nameservers": [ "a.iana-servers.net", "b.iana-servers.net" ], "abuseEmail": null } }, "insight": { "summary": "Reserved documentation domain with no malicious content.", "keyFindings": [ "Domain is reserved for documentation" ], "riskFactors": [], "positiveIndicators": [ "Valid SSL certificate", "Domain older than 5 years" ], "recommendations": [ "No action needed" ] }, "errorMessage": null, "retryCount": 0, "createdAt": "2026-11-02T03:48:52.023Z", "updatedAt": "2026-11-02T03:49:05.673Z", "startedAt": "2026-11-02T03:48:54.519Z", "completedAt": "2026-11-02T03:49:05.673Z" }, "status": 200 } ``` cURL ```bash curl https://sidex.id/api/v1/scans/65a1f0c2b3d4e5f6a7b8c9d0 \ -H "Authorization: Bearer sidx_YOUR_API_KEY" ``` ### Delete Scan DELETE `/api/v1/scans/:id` Delete a scan that is still pending. Any other status returns 400. Required scope: `read_and_write` | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `id` | string | Yes | The scan id. | Response ```json { "msg": "Scan deleted successfully", "data": { "linkId": "65a1f0c2b3d4e5f6a7b8c9d0" }, "status": 200 } ``` cURL ```bash curl -X DELETE https://sidex.id/api/v1/scans/65a1f0c2b3d4e5f6a7b8c9d0 \ -H "Authorization: Bearer sidx_YOUR_API_KEY" ``` ## HTTP Status Codes | Status | Meaning | | --- | --- | | `200` | Request successful | | `400` | The request cannot be applied, such as deleting a scan that is not pending | | `401` | Missing, invalid, revoked, inactive, or expired API key | | `403` | Your plan or the key's scope does not allow this | | `404` | Scan not found | | `422` | Validation failed, see errors | | `429` | Rate limit or scan quota exceeded | | `500` | Internal server error | --- Source: http://sidex.id/docs/api-documentation