PeumeAPI

Search & SEO · ChatGPT

ChatGPT Search

Ask ChatGPT a web-grounded question and receive an answer with source citations. ChatGPT composes each answer per request, so the same prompt returns different wording and a different source set.

From $0.0027 per call

Call it

curl https://api.peume.com/v1/call/chatgpt-search \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "country": "US",
    "requireShoppingCards": false,
    "requirePlaces": false,
    "webSearch": "force",
    "requireEntities": false,
    "prompt": "your prompt"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: chatgpt-search.

Parameters

countrystring

ISO-3166 alpha-2 country to ask from, e.g. US, GB, DE. ChatGPT localizes both the pages it retrieves and the answer it writes, so this is the difference between what a US buyer and a UK buyer are told.

Example: US

requireShoppingCardsboolean

Serve only from a source that can return shopping cards shown with the answer. Leaving this off still returns shopping cards whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs more and has nothing to fall back to if it is unavailable.

Example: false

requirePlacesboolean

Serve only from a source that can return places shown with the answer. Leaving this off still returns places whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs more and has nothing to fall back to if it is unavailable.

Example: false

routestring

Upstream source to run on; omit for "pelican". koala ($0.0018 per call, 59.4% uptime); pelican ($0.0024 per call, 98.2% uptime). Output fields only some routes return: answerPosition (koala); category (koala); cited (koala); createdUtc (koala); description (koala); name (koala); phone (koala); places (koala); position (koala); reviewCount (koala); webSearchTriggered (koala); websiteUrl (koala). A route can refuse an input it cannot apply with a 400 source_unknown (not charged): retry on another route, or omit that input.

koala · pelican

webSearchstring

Whether to insist ChatGPT browses the web. force instructs it to search and is the default; auto lets ChatGPT decide, which is cheaper and answers from memory roughly half the time. Check webSearchTriggered for what actually happened - an answer written without a search is not web-grounded.

force · auto

Example: force

requireEntitiesboolean

Serve only from a source that can return brands and other named entities recognized in the answer. One source currently qualifies, so the request cannot fall back when it is unavailable.

Example: false

promptRequiredstring

Question or research prompt for ChatGPT to answer using web search.

requireAdsboolean

Serve only from a source that can return sponsored placements shown with the answer. One source currently qualifies, so the request cannot fall back when it is unavailable.

Example: false

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.