Skip to main content
The Go SDK requires Go 1.22 or newer. Use the /v2 module path.

Install the SDK

In a new project directory, initialize a module. Skip this command if the project already has a go.mod:
Install the SDK:

Set your API key

Get a secret API key from the dashboard. Set it in the terminal where you will run the example:
Keep the key in server-side code. Do not expose it in a browser or commit it to source control.

Scrape a webpage

Save this as main.go:
main.go
Run it from the module directory:

Check the result

The example prints the page content as Markdown. Look for the Example Domain heading; the remaining text and formatting may vary.
Expected heading
If you receive an error, check the key and request details in Troubleshooting. See the Markdown API reference for all parameters and response fields.

Retrieve brand data

In main, replace the Markdown request, error check, and print statement with this lookup:
Remove the packages/param import if you no longer use it. The example prints the matched company name. The older unversioned Go module, last checked at v1.5.0, uses a legacy Brand request. Upgrade the dependency and imports to /v2 to use the unified POST /brand/retrieve endpoint, or make a direct HTTP request.

Next steps

Scrape a webpage

Choose which page content to include.

Retrieve brand data

Look up profiles with other company identifiers.