Skip to main content
The AdsCrawl Go SDK works with Go 1.21 and later. It uses only the Go standard library for HTTP, supports context.Context cancellation and deadlines, and provides typed request and response models.
Keep your API key in server-side code. Never expose it in client-side applications.

Install

adscrawl-go on GitHub

View source, runnable examples, and releases.

Authenticate and make your first request

Create an API key in the dashboard and set ADSCRAWL_API_KEY in your server environment. You can also pass the key to adscrawl.NewClient(adscrawl.Config{APIKey: "..."}).

Rendered content and screenshots

client.HTML(ctx, options) returns HTML; Markdown returns Markdown; Article returns a structured Article; Screenshot returns PNG bytes. Page options include Viewport, Locale, Cookies, Proxy, managed CountryCode, Fingerprint, server-side TimeoutMS, and navigation WaitUntil.
A custom Proxy and CountryCode cannot be combined.

Proxy and fingerprint

AdsCrawl uses real browsers with configurable routing and browser fingerprints. Randomized settings are generated as a coherent profile across the operating system, GPU, hardware, fonts, and related signals. This browser workflow has been verified to access and render BrowserScan, Pixelscan, and IPhey and return screenshots.

Structured extraction

client.SPA.Templates(ctx) lists built-in templates. client.SPA.Inspect(ctx, options) suggests fields and schema.

Remote CDP browsers

GetVersion validates the token URL and does not forward the API key.

Persistent cloud browsers

Cloud browser API-key starts and launches require an explicit top-level proxy. A stopping response means shutdown is pending; poll Get until stopped. A failed launch may return a cleanup profile ID in *adscrawl.APIError.

Configuration and errors

Pass Config{Timeout: 75 * time.Second} to change the HTTP deadline. Set PageOptions.TimeoutMS to control the remote browser task separately.
ADSCRAWL_API_KEY supplies the key by default. The base URL defaults to ADSCRAWL_BASE_URL, then ADSCRAWL_API_URL, then https://api.adscrawl.net. Errors include APIError, TimeoutError, ConnectionError, and ResponseError. The HTTP deadline includes response body reading. Cancelling a request does not prove remote browser work stopped.