Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Calls spend data credits: roughly domains x endpoint price x granularity x country filters x months x results. Keep date ranges, countries and limit small; check the balance with similarweb.capabilities.
- Dates are months (YYYY-MM); historical data goes back up to 37 months depending on the subscription. Daily granularity and mtd depend on the plan too.
- A key that was created but not activated answers ‘Invalid API key’. Country filters you can use are listed by similarweb.capabilities.
- v4 endpoints page with limit, offset, sort and asc; v1 endpoints return the whole series.