Official SDKs
AdsCrawl for Go
Use a context-aware Go client for web data, screenshots and browser sessions. Typed requests and responses with context.Context cancellation and deadlines.
What you can do
Rendered web content
Read JavaScript-rendered pages as Markdown, HTML or structured article JSON.
Page screenshots
Capture a viewport or full page through the screenshot API.
Browser workflows
Use Remote CDP for navigation, clicks and form input across multiple steps.
Before you start
- Go 1.21+
- An AdsCrawl account and API key.
- Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
SETUP METHOD 01
Official SDK
Call AdsCrawl directly from your Go application.
Install the package
Run this command in your project. For Go, initialize a module first if the project does not have a go.mod file.
go get github.com/AdsCrawl/adscrawl-go@v0.1.0Configure authentication
Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
Make your first request
Run this example on the server. It reads Example Domain as Markdown using your account key from the environment.
package main import ( "context" "fmt" "log" adscrawl "github.com/AdsCrawl/adscrawl-go" ) func main() { client, err := adscrawl.NewClient(adscrawl.Config{}) if err != nil { log.Fatal(err) } markdown, err := client.Markdown(context.Background(), adscrawl.ContentOptions{ PageOptions: adscrawl.PageOptions{ URL: "https://example.com", WaitUntil: "domcontentloaded", }, }) if err != nil { log.Fatal(err) } fmt.Println(markdown) }
Usage & limits
- API requests and browser sessions use your AdsCrawl account credits. Installing a client does not include a separate usage allowance.
- For interactive CDP sessions, install your browser automation library separately and close each remote session in a finally block. Avoid automatic retries of metered requests.