# Inject a Stylesheet by URL

A capture of example.com with a stylesheet injected from a URL (css_url): the dark theme of a public stylesheet.

Source: https://docs.deepinfo.com/reference/lookup/screenshot/examples/css-url/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fexample.com&css_url=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Fwater.css%402%2Fout%2Fdark.css`

A capture of example.com with a stylesheet injected from a URL (css_url): the dark theme of a public stylesheet.

Example 2 of 2 in **Custom Styles** · [Screenshot Examples](/reference/lookup/screenshot/examples/) · endpoint: [Screenshot](/reference/lookup/screenshot/)

Tags: `param` `css_url` · `value` `https://example.com` · `value` `https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css`

Asks for a capture of `https://example.com` with the stylesheet `https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css` injected (`css_url`).

The browser loads the stylesheet and adds it to the page before the capture, like `css` but from a file: here the dark theme of Water.css, a small public stylesheet for plain HTML pages. The response looks like any capture of `example.com`; the difference is in the image.

## Request

| Parameter | In | Value |
|---|---|---|
| `url` | query | `https://example.com` |
| `css_url` | query | `https://cdn.jsdelivr.net/npm/water.css@2/out/dark.css` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fexample.com&css_url=https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Fwater.css%402%2Fout%2Fdark.css' \
  -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://example.com",
  "redirected_url": "https://example.com/",
  "check_date": "2026-09-24T08:39:40.517Z",
  "connection_status": "success",
  "screenshot_url": "https://diss-999.storage.googleapis.com/202609/24/example-com-n6-FKaWqsGo8pWdoawkoXqPc.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=<redacted>&X-Amz-Date=20260924T083940Z&X-Amz-Expires=604800&X-Amz-Signature=<redacted>&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
```

## Related Examples

- [One Element Only](/reference/lookup/screenshot/examples/selector/)
