Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: PromptSwing public commerce Shelf API
version: 1.0.0
description: 'Endpoints an agent can call with no client, no account and no authorisation: check a site you have just built before publishing it anywhere, search products across hosted PromptSwing stores, and price an order from one of them. Nothing here creates an account, holds a basket, takes a payment, or keeps anything you send.'
contact:
url: https://www.promptswing.com/contact
servers:
- url: https://api.promptswing.com
description: Production
tags:
- name: Shelf
paths:
/api/shelf:
get:
operationId: searchShelf
summary: Search products across every listed hosted store
description: 'Answers a shopping question across the hosted stores that take a payment. Returns each match with a live price, whether it is in stock, and a link to that merchant''s own checkout.
No match returns "nothing matched" rather than a near miss — "no hosted store sells this" and "the shelf could not be read" are different facts and are reported differently.
Ordering is deterministic and the response states how it ordered. No placement is sold and no ranking is paid for. No model ranks or summarises: the words and numbers are the merchant''s own.'
parameters:
- name: q
in: query
required: true
schema:
type: string
description: What to look for, in plain words.
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 50
description: How many matches to return.
responses:
'200':
description: Matches, or an honest empty answer.
content:
application/json:
schema:
$ref: '#/components/schemas/ShelfResult'
'400':
description: No query was given.
tags:
- Shelf
components:
schemas:
ShelfItem:
type: object
description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
x-ae-placeholder: true
ShelfResult:
type: object
properties:
ok:
type: boolean
query:
type: string
count:
type: integer
results:
type: array
items:
$ref: '#/components/schemas/ShelfItem'
answer:
type: string
description: Present when nothing matched. A true sentence, not an error.
ordering:
type: string
description: How the results were ordered, stated so it can be checked.
as_of:
type: string
format: date-time
about:
type: string
description: What the shelf ...