Skip to main content
The Python SDK requires Python 3.9 or newer.

Install the SDK

Create and activate a virtual environment:
Then 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 scrape.py:
scrape.py
Run it with the same Python environment:

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

Replace the request and final print with this lookup. It prints the matched company name.

Next steps

Scrape a webpage

Choose which page content to include.

Retrieve brand data

Look up profiles with other company identifiers.