Perkusai AI API
The Ai API from Perkusai — 2 operation(s) for ai.
The Ai API from Perkusai — 2 operation(s) for ai.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/perkusai-com:perkusai-com-ai-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Perkusai Shopping Search AI API
version: 1.0.0
description: 'AI shopping search for the US market (amazon.com). Describe what you want in natural language and get real, in-stock products with prices, ratings and affiliate-tracked buy links. Full integration documentation: https://perkusai.com/for-ai.html . Summary for LLM clients: https://perkusai.com/llms.txt
TWO CATALOGUES. Every search runs against exactly one: `region=US` (amazon.com, USD) or `region=LT` (Lithuanian and EU stores, EUR). With no `region` the host decides - perkusai.com is US, perkusai.lt is LT. Each product states its own `currency`; do not assume USD.'
contact:
name: Perkusai
url: https://perkusai.com/for-ai.html
email: support@perkusai.com
servers:
- url: https://perkusai.com
tags:
- name: AI
paths:
/api/ai/search:
get:
operationId: aiSearch
summary: Search products (compact, agent-friendly response)
description: Returns a summary, a decision guide, product items with affiliate buy_url, and a paste-ready markdown block. Present buy_url as the purchase link (affiliate-tracked).
parameters:
- name: q
in: query
required: true
schema:
type: string
description: The shopper's request in natural language, e.g. 'laptop for work under $700'.
- name: k
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 12
default: 5
description: How many products to return.
- name: lang
in: query
required: false
schema:
type: string
enum:
- en
description: Response/query language hint.
- name: region
in: query
required: false
description: 'Which catalogue to search. LT = Lithuanian and EU stores, prices in EUR. US = amazon.com, prices in USD. Omit it and the HOST decides: perkusai.lt serves LT, perkusai.com serves US. An unknown value falls back to that host''s market rather than searching both - a result is only useful if the caller knows which shop it can be bought in.'
schema:
type: string
enum:
- LT
- US
default: LT
responses:
'200':
description: Search results
content:
application/json:
schema:
$ref: '#/components/schemas/AiSearchResult'
'400':
description: Empty query
'429':
description: Rate limit exceeded
tags:
- AI
/api/ai/stats:
get:
operationId: aiStats
summary: Service status (catalogue, coverage, limits, measured response times)
description: Machine-readable status document. Response times are median/p95 over the last 7 days of production traffic, recomputed once a day - call this at most once per session, not per search.
responses:
'200':
description: Service status
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceStatus'
parameters:
- name: region
in: query
required: false
description: 'Which catalogue to search. LT = Lithuanian and EU stores, prices in EUR. US = amazon.com, prices in USD. Omit it and the HOST decides: perkusai.lt serves LT, perkusai.com serves US. An unknown value falls back to that host''s market rather than searching both - a result is only useful if the caller knows which shop it can be bought in.'
schema:
type: string
enum:
- LT
- US
default: LT
tags:
- AI
components:
schemas:
ServiceStatus:
type: object
properties:
service:
type: string
example: perkusai
status:
type: string
example: ok
catalog:
type: object
properties:
products:
type:
- integer
- 'null'
markets:
type: array
items:
type: string
example:
- US
currency:
type: string
example: USD
languages:
type: array
items:
type: string
example:
- en
performance:
type:
- object
- 'null'
description: Measured server-side, end to end. Null when the sample is too small.
properties:
scope:
type: string
enum:
- agent
- all
description: Which traffic the figures describe.
window_days:
type: integer
example: 7
samples:
type: integer
median_ms:
type: integer
p95_ms:
type: integer
avg_ms:
type: integer
limits:
type: object
properties:
rate_limit_per_min:
type: integer
example: 40
max_k:
type: integer
example: 12
cache_ttl_s:
type: integer
example: 300
Product:
type: object
properties:
title:
type: string
brand:
type:
- string
- 'null'
price:
type:
- number
- 'null'
currency:
type: string
example: USD
original_price:
type:
- number
- 'null'
discount_pct:
type:
- integer
- 'null'
rating:
type:
- number
- 'null'
stock_label:
type:
- string
- 'null'
market:
type: string
example: US
description: Market the product is sold into (currently LT).
reason:
type:
- string
- 'null'
tag:
type:
- string
- 'null'
buy_url:
type: string
description: Affiliate-tracked purchase link. Present this as the buy link.
image_url:
type:
- string
- 'null'
seller:
type:
- string
- 'null'
example: Amazon.com
description: Partner store that sells this product. Results can span several stores - name it when presenting a product.
free_shipping:
type: boolean
description: True when the selling partner delivers this product free at this price. Terms are per partner (e.g. free above a basket threshold), so two results at the same price can differ.
AiSearchResult:
type: object
properties:
query:
type: string
source:
type: string
summary:
type: string
guide:
type:
- string
- 'null'
description: A one-sentence decision tip.
needs_confirmation:
type: boolean
description: True when an exact part/fitment match is not guaranteed.
compat:
type:
- string
- 'null'
description: The device/vehicle a part must fit, if any.
no_match:
type: boolean
supported_categories:
type:
- array
- 'null'
items:
type: string
description: Categories actually carried; returned alongside no_match.
count:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/Product'
bought_together:
type: array
description: Optional accessories for the top pick.
items:
type: object
properties:
title:
type: string
role:
type:
- string
- 'null'
description: What the accessory is for.
price:
type:
- number
- 'null'
currency:
type: string
example: USD
buy_url:
type: string
image_url:
type:
- string
- 'null'
coverage:
type: object
description: Which markets the results are available in, and delivery info.
properties:
markets:
type: array
items:
type: string
example:
- US
note:
type: string
delivery:
type: string
sellers:
type: array
items:
type: string
example:
- Amazon.com
description: Partner stores this result set spans.
markdown:
type: string
description: Paste-ready markdown with clickable affiliate buy links; it also carries the affiliate disclosure.