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:Scrape a webpage
Save this asscrape.php beside your vendor directory:
scrape.php
Check the result
The example prints the page content as Markdown. Look for theExample Domain heading; the remaining text and formatting may vary.
Expected heading
Retrieve brand data
PHP SDK2.14.0 requires fields from multiple lookup types in its Brand helper, so it cannot form a valid domain-only lookup. Use the SDK’s low-level request method until the helper is updated. It keeps SDK authentication, retries, and error handling.
Save it separately as brand.php:
brand.php
php brand.php. It prints the company name. Keep the request path relative (brand/retrieve, without a leading slash) so the SDK preserves /v1 in the base URL.
Next steps
Scrape a webpage
Choose which page content to include.
Retrieve brand data
Look up profiles with other company identifiers.