x402

Cookie Scan (x402)

Scan a website for cookies, tracking scripts, and consent banners. Categorizes cookies as necessary/analytics/marketing.

get/x402/v2/cookie-scan

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/cookie-scan
  • Auth: none required

Query parameters

urlstring required

Response

Success

total_cookiesnumber
consent_banner_detectedboolean

Example response

{
  "url": "https://google.com",
  "cookies": [
    {
      "name": "__Secure-STRP",
      "path": "/",
      "domain": ".google.com",
      "secure": true,
      "expires": "Fri, 03-Apr-2026 03:43:02 GMT",
      "category": "necessary",
      "httponly": false,
      "samesite": "strict",
      "known_service": null
    },
    {
      "name": "AEC",
      "path": "/",
      "domain": ".google.com",
      "secure": true,
      "expires": "Wed, 30-Sep-2026 03:38:02 GMT",
      "category": "functional",
      "httponly": true,
      "samesite": "lax",
      "known_service": null
    },
    {
      "name": "NID",
      "path": "/",
      "domain": ".google.com",
      "secure": true,
      "expires": "Sat, 03-Oct-2026 03:38:02 GMT",
      "category": "marketing",
      "httponly": true,
      "samesite": "none",
      "known_service": "Google Ads"
    }
  ],
  "total_cookies": 3,
  "potential_issues": [
    "No cookie consent banner visible in provided page text",
    "Google's own tracking mechanisms (kEI, kEXPI parameters) present without explicit consent disclosure in visible content",
    "Privacy policy link present but no consent mechanism shown in page excerpt",
    "Tracking pixels/logging via google.log() function detected in inline scripts without visible consent flow",
    "Missing explicit cookie disclosure for tracking identifiers (kEI, kOPI, cshid parameters)"
  ],
  "tracking_scripts": [],
  "first_party_count": 3,
  "third_party_count": 0,
  "consent_banner_text": null,
  "third_party_domains": [],
  "consent_banner_detected": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.