# Cookies Set Before Loading

A capture with two cookies set before the page loads (cookies=theme=dark; lang=en).

Source: https://docs.deepinfo.com/reference/lookup/screenshot/examples/cookies/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fwww.deepinfo.com&cookies=theme%3Ddark%3B%20lang%3Den`

A capture with two cookies set before the page loads (cookies=theme=dark; lang=en).

Example 4 of 5 in **Browser Settings** · [Screenshot Examples](/reference/lookup/screenshot/examples/) · endpoint: [Screenshot](/reference/lookup/screenshot/)

Tags: `param` `cookies` · `value` `theme=dark; lang=en`

Asks for a capture with two cookies set in the browser before the page loads (`cookies=theme=dark; lang=en`).

`cookies` takes `name=value` pairs separated by `; `, and the page is loaded with them, as if the visitor had them from an earlier visit. Typical uses are a consent cookie that keeps a banner away or a session cookie for a page behind a login. The two cookies here are only examples: a site that does not read them shows its usual page, and the response looks like the default one.

## Request

| Parameter | In | Value |
|---|---|---|
| `url` | query | `https://www.deepinfo.com` |
| `cookies` | query | `theme=dark; lang=en` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fwww.deepinfo.com&cookies=theme%3Ddark%3B%20lang%3Den' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

## Response

### 200 · OK

`Content-Type: application/json; charset=utf-8` · `ratelimit-limit: 1` · `ratelimit-remaining: 0` · `ratelimit-reset: 1` · `x-ratelimit-limit-second: 1` · `x-ratelimit-remaining-second: 0` · `deepinfo-request-id: 5f0c6a8e-1b2d-4c3e-9f4a-7b8c9d0e1f2a`

```json
{
  "url": "https://www.deepinfo.com",
  "redirected_url": "https://www.deepinfo.com/",
  "check_date": "2026-09-24T08:39:23.879Z",
  "connection_status": "success",
  "screenshot_url": "https://diss-999.storage.googleapis.com/202609/24/www-deepinfo-com-MYresNW7xMwZLPqw4Wf0SiUT.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=<redacted>&X-Amz-Date=20260924T083923Z&X-Amz-Expires=604800&X-Amz-Signature=<redacted>&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
```
