Install
What can agents do with it?
Domain traffic
“How many visits did cnn.com get last month? Quote it first.”
Competitors and search
“Who are nike.com’s keyword competitors and which landing pages win?”
Audience and sources
“Show cnn.com’s referral sources and its audience overlap with bbc.com. Ask me before spending.”
Site footprint
Technologies, popular pages, subdomains, top geographies, PPC spend, and ad networks.
Requirements
- Python 3
- An AIsa account with balance; Similarweb calls are pay-as-you-go. The Go-to-Market plan is optional.
- Requests go to
https://api.aisa.one/apis/v1/similarwebwithAuthorization: Bearer $AISA_API_KEY.
Quick start
ROUTE is a path from discover, without the /similarweb prefix. Every name=value comes from describe. call without --max-usd only quotes.
The protocol
Discover at session start, and again whenever a contract-built request is rejected:discoverdownloads the contract fromhttps://aisa.one/docs/openapi/similarweb.jsonand caches it (revalidated with its ETag;--refreshforces a new copy).describe ROUTEshows required and optional parameters, enums, defaults, maximums, and date-window rules.windowfinds the latest complete data month.
- Build the smallest request that answers the question and
checkit. quoteit (free, viaX-AISA-Cost-Mode: quote).- To widen months, metrics, rows, or domains, quote the wider variant too and pick the cheapest one that answers the question.
- Show the quote and get approval against your budget.
call … --max-usd <approved>sendsX-AISA-Max-Price-USDand anIdempotency-Key. The header rejects a call whose pre-execution estimate is above the approved amount; it does not cap the final charge on usage-metered routes (see Quote, review, then execute). Before approving, check the route’s billing rules on its API reference page to confirm the maximum possible charge, and set a spending limit on the key as the hard ceiling.- Report
cost_usd(from thex-aisa-customer-cost-micros-usdheader) anddata_month, and reconcile withusage.
call prints JSON with status, quoted_usd, cost_usd, request_id, latency_s, data_month, note, and data.
Reading responses
Before retrying a
503, check the original request in Usage & Logs or your balance. Retry only once you know it did not complete; keep the same Idempotency-Key and payload unless the endpoint’s rules say otherwise, since a new key can create a second billed call. See Retry guidance.
Never retry a 200. Make paid calls over REST, where the cost header is returned.
When to use
Use this skill when the question is about a website’s traffic, audience, sources, technology, or search footprint. For keyword volumes and difficulty, use SEO Keyword Research (DataForSEO) or the Semrush APIs; for backlinks, use the Ahrefs APIs.Get started
- Sign up at aisa.one, add balance (or optionally subscribe to the Go-to-Market plan), and create an API key in the console.
- Set it in your shell:
export AISA_API_KEY="your-key". - Install the skill with one of the commands under Install, then start a new agent session.
Related
Similarweb API reference
Every Similarweb route with its parameters.
Quotes and charges
Quote mode, price caps, and the cost header.
Product Selection
Uses Similarweb for channel fit in product research.