PeumeAPI

Search & SEO · ChatGPT

ChatGPT answer with web search — text, sources, entities

Runs a prompt through the live ChatGPT web interface, with its web search, from a chosen country and returns the answer text with its cited sources, citation pills and brand entities as structured fields. For shopping cards and sponsored ads, use.ai-search.chatgpt.shopping. A long research prompt can run past the request timeout; queue it with.ai-search.chatgpt.scrape.task instead.

$0.0042 per lookup, only when foundUsually answers in under a minute

Call it

curl https://api.peume.com/v1/call/chatgpt-answer-with-web-search-text-sources-entities \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "prompt": "best running shoes for flat feet",
    "country": "US",
    "state": "CA"
  }
}'

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-answer-with-web-search-text-sources-entities.

Parameters

promptRequiredstring

1-10,000 characters

Example: best running shoes for flat feet

countryRequiredstring

ISO 3166-1 alpha-2. CN, CZ, HK, IR, MO, RU and VE are refused.

Example: US

statestring

US state code for state-level targeting; adds 2 credits

Example: CA

legacyboolean

serve the desktop UI, where ads and shopping render; free. Defaults to the mobile-web UI.

disableWebSearchboolean

answer from the model alone, without a web search

includeobject

any of markdown, html, rawResponse, searchQueries, ads, shopping. markdown and html are free; setting any of rawResponse / searchQueries / ads / shopping adds 2 credits once, however many of the four are set.

Other ways to do it

Same job, other sources, cheapest first.

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.