Get started
API quickstart
Create a Ranqo API key, check it with your first request, find your brand's id and read its visibility over the last 30 days.
This takes about five minutes. You need to be the account owner, on Pro or above.
Create a key
Open Settings and find API keys. Press Create key and fill in:
- Name: something you will recognise later, such as the tool that uses it.
- Brands: every brand, including ones added later, or only the ones you tick.
- Expires: 30, 90, and 365 days, or never.
The key is shown once. Copy it, tick I've saved this key somewhere safe and press Done. Ranqo keeps only a fingerprint of the key and cannot show it again.
Keep it out of your code
Store the key where your tool reads secrets, not in source control. The examples below read it from an environment variable:
Shellexport RANQO_API_KEY="paste-your-key-here"Make your first request
Ask for the account the key belongs to. A working key answers with your plan, its rate limit and the key's own details:
curl https://api.ranqo.ai/v1/account \ -H "Authorization: Bearer $RANQO_API_KEY"Find your brand's id
List the brands the key can read. Each one carries its
id, which every brand endpoint takes in its path:curlcurl https://api.ranqo.ai/v1/brands \ -H "Authorization: Bearer $RANQO_API_KEY"Read its visibility
Ask for the last 30 days, with day boundaries in your own time zone:
curlcurl "https://api.ranqo.ai/v1/brands/BRAND_ID/visibility?period=30d&tz=Europe/Berlin" \ -H "Authorization: Bearer $RANQO_API_KEY"The answer holds visibility, share of voice, average position and sentiment, each as its
currentvalue, itspreviousvalue over the window before and thechangebetween them. A value isnullwhen there was nothing to measure, never a made-up zero.