DocumentationAuthenticated Pages

Authenticated Pages

Use headers, cookies, or basic auth to access protected pages.

Headers

{
  "url": "https://example.com/account",
  "auth": {
    "headers": ["Authorization: Bearer YOUR_TOKEN"]
  }
}

Cookies

Cookies are supplied as header-style strings.

{
  "url": "https://example.com/account",
  "auth": {
    "cookies": [
      "session=abc123; Domain=example.com; Path=/; Secure; HttpOnly"
    ]
  }
}

Basic auth

{
  "url": "https://example.com/secure",
  "auth": {
    "basic_auth": { "username": "user", "password": "pass" }
  }
}

User agent and locale

{
  "url": "https://example.com",
  "auth": {
    "user_agent": "Mozilla/5.0 ...",
    "timezone": "America/New_York",
    "locale": "en-US"
  }
}
Updated 1 day ago
Did this page help you?