Go
Install the Go SDK, scrape a page, look up a brand, and set timeouts and retries.
The Go SDK requires Go 1.22 or later. Import the /v2 module path shown below. SDKs covers the API key and the defaults all SDKs share.
Install
In a new directory, create a module, then add the SDK. Skip go mod init if the project already has a go.mod.
Scrape a page
Save this as main.go and run go run main.go. It prints the page as Markdown, starting with # Example Domain.
main.go
Look up a brand
In main, replace the scrape request, error check, and print statement with this lookup. It prints the company name.