[cogny-brave-search] Find where a domain or page ranks on Brave Search for one or more keywords.
Each call uses 1 Cogny credit, however many result pages
it scans and however many keywords it checks (an errored call is
charged too). One call scans at most 10 pages of 20 results: a single
keyword can go 200 deep, while a `keywords` batch shares those pages
(2 keywords: top 100 each, 5: top 40, 10: top 20). A deeper scan is
slower, not more expensive.
Args:
domain: What to find. A domain ("cogny.com") matches any page on
it or its subdomains. A URL with a path
("https://cogny.com/pricing") matches only that page (scheme,
www, query string and trailing slash are ignored), and the
result also reports where the domain first appeared.
query: One keyword to check.
max_results: How many positions to scan per keyword before
giving up (default 100, max 200).
country: 2-letter country code Brave supports, e.g. "US", "GB",
"SE", or "ALL".
search_lang: Language code, e.g. "en", "sv".
keywords: Up to 10 keywords to check in one call, instead of (or
as well as) `query`.
Returns:
One keyword: `found`, `position` (1-based, or null), `match` (what
counted as a match), `matched_result`, `searched_count`,
`top_results` (up to 10 results above you: position, title, url,
domain) and `domains_above` (each domain ranking above you, with
count and best position). Several keywords: `results` rows of
{keyword, position, url, searched_count, top_domain} plus
`domains_above` (each domain with how many of the keywords it
outranks you on, and its best position).