# StackScan API Technology and company intelligence for any domain: what a website is built with, what it used before, and who is behind it, plus product and store lists from online shops. This file is a compact reference for AI agents. Full field-level detail: https://api.stackscan.com/llms-full.txt OpenAPI: https://api.stackscan.com/docs/openapi.json Human docs: https://api.stackscan.com/docs ## Access Base URL: https://api.stackscan.com Auth: two headers on every lookup. Authorization: Bearer from Dashboard -> My Account -> API Tokens X-Tenant-Id: shown on the same page, or GET /v1/me GET /v1/me is the one exception: token only, no X-Tenant-Id. It lists the workspace UUIDs the token can use, so a client never has to be told one. There is no anonymous access and no free tier. Sign up at https://www.stackscan.com/pricing Manage tokens at https://app.stackscan.com/login ## Credits Every successful lookup costs 1 Bulk Lookup Credit. A lookup that finds nothing is NOT charged. Checking your balance is free. Batch endpoints charge per domain that resolves, not per request and not per row returned. History lookups cost the same: 1 Bulk Lookup Credit per query with results. Lists are the exception: technology lists and eCommerce lists cost 1 STANDARD credit each, free again for the same search within the billing period, from a separate wallet. X-Credits-Type names the wallet. POST /v1/ecommerce/lists/count shows what an eCommerce list would match and cost before you start it, free. Every response carries your balance, so you do not need to poll: X-Credits-Used credits this request consumed X-Credits-Remaining wallet balance after this request X-Credits-Cost cost of one successful lookup ## Endpoints GET /v1/me Who this token is, and the workspace IDs it can use. Free, no X-Tenant-Id needed. Start here. GET /v1/tech-lookup/credits Balance and monthly allocation. Free. GET /v1/tech-lookup/domains/lookup Technologies on one domain with first/last seen; filter by price_tier, user_base, trend. Paginated. GET /v1/tech-lookup/technologies/lookup How many sites run a technology, and where. GET /v1/tech-lookup/companies/lookup The company behind one domain. POST /v1/tech-lookup/companies/batch Companies for up to 100 domains in one request. POST /v1/tech-lookup/domains/batch Technologies for up to 100 domains, with optional category filter. POST /v1/tech-lookup/lists Start an export of every website running one technology. 1 standard credit. GET /v1/tech-lookup/lists The workspace's technology lists, newest first. Free. GET /v1/tech-lookup/lists/{id} One list: queued, ready or failed, and the download link once ready. Free. GET /v1/tech-lookup/lists/{id}/download Download a ready list as CSV or XLSX. Free, with a per-list attempt limit. GET /v1/history/domain Technologies one domain used and no longer uses (dropped or site_gone). POST /v1/history/domains/batch Past technologies for up to 100 domains in one request. GET /v1/history/technology Sites that stopped using a technology between two years, optionally now on another. POST /v1/ecommerce/lists/count Products and stores a search matches, rows your plan delivers, cost to start. Free. POST /v1/ecommerce/lists/products Start a CSV of matching products. 1 standard credit. POST /v1/ecommerce/lists/stores Start a CSV of stores selling matching products. 1 standard credit. GET /v1/ecommerce/lists The workspace's eCommerce lists, newest first. Free. GET /v1/ecommerce/lists/{id} One eCommerce list: queued, ready or failed, and the download link. Free. GET /v1/ecommerce/lists/{id}/download Download a ready eCommerce list as CSV. Free, with a per-list attempt limit. ## What comes back Technology rows (domains/lookup, domains/batch): techapi_id, name, website, slug, parent_category, child_category, total_sites. techapi_id (for example shopify-971069) is the stable technology ID: match it as a whole string. stack_id is still accepted as input but never returned. Per domain: premium_technologies (paid products in the stack, and 0 is an answer, not a gap) and monthly_tech_spend_usd (modelled monthly cost of the stack). The batch adds total_technologies and has_more for each domain. Companies (companies/lookup, companies/batch): name, industry, city, country, address, linkedin_url, estimated_revenue_band and total_technologies_tracked. The band is one of under_1m, 1m_10m, 10m_50m, 50m_100m, 100m_500m, 500m_1b, 1b_plus, or null. domains/lookup also gives each technology first_seen and last_seen (YYYY-MM-DD; history back to 2008 where we saw the pair, else the crawl that found it). Technologies (technologies/lookup): techapi_id, stack, parent_category, child_category, total_websites, top_countries, and the technology's labels: kind (product, feature, partner_network, agency, organization), price_tier (free, freemium, paid, premium), user_base (enterprise, general, consumer), trend (growing, stable, declining, new, legacy). Any label can be null. History (history/*): techapi_id, name, first_seen, last_seen, crawls_seen, status, plus dropped_count and site_gone_count. dropped = the site is still crawled and the technology is gone; site_gone = the site is not in the current crawl. A technology detected today is never listed. Certificate issuers, ads.txt partners, robots/llms.txt entries and site-section pages are never reported as dropped (history cannot measure them). eCommerce lists: products CSV (store, platform, country, product name, brand, category, price, regular price, currency, USD price, on sale, in stock, SKU, barcode, product URL, image URL) or stores CSV (store, platform, country, products, matching products, USD price range, currency, top brands and categories, on sale %, in stock %, popularity rank, technologies). ## Conventions that will trip you up 1. A MISS IS A 200, NOT A 404. No data returns HTTP 200 with {"success": false, "error": "No data available"}. Check the `success` field, not the status code. Misses are not charged. 2. Batch responses never fail as a whole for partial problems. Read `results` alongside `not_found`, `invalid` and `skipped_insufficient_credits`. The last of those means the wallet ran out mid-request: those domains DO have data and are worth retrying. The invariant `resolved = served + skipped_insufficient_credits` always holds. 3. Paginated results carry `pagination.has_more`. Check it before assuming you have a complete list. 4. Every FAILING response carries `error_code`, a stable slug to branch on: unauthenticated, workspace_required, workspace_not_found, workspace_forbidden, insufficient_credits, rate_limited, invalid_request, server_error. Match on that, not on `message`. 402/insufficient_credits: stop, do not retry. 429/rate_limited: back off by `retry_after`. 5xx/server_error: retry with backoff. 5. `error` is a DIFFERENT field. It appears on 200s that found nothing (`{"success": false, "error": "No data available"}`), including per domain inside batch results. A 200 with `error` is not a failure. ## Rate limits (per minute) single lookups 500 per API token batch endpoints 30 up to 100 domains each, so 3,000 domains/min start a list 6 poll a list 120 download a list 10 Plan around the BATCH number, not the single-lookup one: one batch call does the work of a hundred. Over the limit is 429 with error_code rate_limited and a Retry-After in seconds. A 429 costs no credits. A shared ceiling per network address also applies, before authentication. It sits well above the per-token limits, so normal use never reaches it. ## MCP A local MCP server wraps these endpoints as tools for Claude, Cursor and other MCP clients: npx -y @stackscan/mcp-server Setup: https://www.stackscan.com/mcp Source (MIT): https://github.com/stackscan/stackscan-mcp