Apinoa Docs

Answer

Ask Gemini a question and get its answer, with citations, sources, cards and mentions.

View raw .mdx
POST /v1/gemini/answer

Send the inputs as a JSON body. An answer takes seconds: allow up to 120 seconds.

Request

curl -X POST "https://gateway.apinoa.com/v1/gemini/answer" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt": "What are the best running shoes for beginners?", "country": "US"}'

Parameters

ParameterTypeRequiredNotes
promptstringyesThe question, as a person would type it.
conversationstringAn earlier answer's conversation.id: ask a follow-up in the same conversation.
countrystringThe market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries.
includeenum listpage: also return the answer as a self-contained HTML page, in page.

The same parameters, and every response type, are in the OpenAPI document.

Response

Returns Answer in data. A real response, shortened: arrays keep their first entries and long text is cut.

{
  "success": true,
  "data": {
    "engine": "gemini",
    "outcome": "answered",
    "prompt": "What are the best running shoes for beginners?",
    "askedAt": "2026-10-30T01:00:44.498Z",
    "country": "US",
    "language": "en",
    "title": "Best Running Shoes for Beginners",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "When starting out as a runner, the best shoes share a few key traits: **generous comfort** to protect your joints as your body adapts, a **forgiving fit** that…"
      },
      {
        "type": "paragraph",
        "markdown": "The top-rated, most reliable running shoes for beginners feature several standout models tailored to different preferences:"
      }
    ],
    "text": "When starting out as a runner, the best shoes share a few key traits: generous comfort to protect your joints as your body adapts, a forgiving fit that doesn’t…",
    "markdown": "When starting out as a runner, the best shoes share a few key traits: **generous comfort** to protect your joints as your body adapts, a **forgiving fit** that…",
    "citations": [{"start": 0, "end": 258, "sources": [0]}, {"start": 443, "end": 491, "sources": [0]}],
    "sources": [
      {
        "url": "https://www.fleetfeet.com/running-shoe-buyers-guide/best-running-shoes-women",
        "title": "The 10 Best Women's Running Shoes 2026 - Fleet Feet",
        "site": "Fleet Feet",
        "favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn%3AANd9GcQTW69jHapZCXp40IeOUlcK9pl3Uqjv9AfQz4UK9yWZJzexnB8DlIx8FEp1QlJMdcyn62qSLSzVxWKbjG00g2yeWYdoHkxcWHAPB…",
        "snippet": "The nitrogen-infused DNA Loft v3 cushioning provides soft, protective comfort without feeling overly squishy or unstable — giving you the confidence to run, wal…",
        "cited": true,
        "ext": {
          "quotes": ["The nitrogen-infused DNA Loft v3 cushioning provides … gear as you build your new habit."],
          "snippets": [
            "The nitrogen-infused DNA Loft v3 cushioning provides soft, protective comfort without feeling overly squishy or unstable — giving you the confidence to run, wal…"
          ]
        }
      },
      {
        "url": "https://www.fleetfeet.com/blog/our-top-6-running-shoes-for-beginners-this-summer",
        "title": "Our Top 6 Running Shoes for Beginners This Summer - Fleet Feet",
        "site": "Fleet Feet",
        "favicon": "https://encrypted-tbn2.gstatic.com/favicon-tbn?q=tbn%3AANd9GcQTW69jHapZCXp40IeOUlcK9pl3Uqjv9AfQz4UK9yWZJzexnB8DlIx8FEp1QlJMdcyn62qSLSzVxWKbjG00g2yeWYdoHkxcWHAPB…",
        "snippet": "Plus, it's available in Fleet Feet exclusive colorways, helping you stand out from the crowd. Read the full review. Sale. Women's ASICS Gel-Cumulus 25. Women's…",
        "cited": true,
        "ext": {
          "quotes": ["Plus, it's available in Fleet Feet exclusive … decade, mostly because it's so aptly named."],
          "snippets": [
            "Plus, it's available in Fleet Feet exclusive colorways, helping you stand out from the crowd. Read the full review. Sale. Women's ASICS Gel-Cumulus 25. Women's…"
          ]
        }
      }
    ],
    "mentions": [],
    "cards": [],
    "suggestions": [
      {
        "text": "Compare neutral vs. stability running shoes",
        "prompt": "What is the difference between neutral and stability running shoes, and how do I know which one I need?"
      },
      {
        "text": "Tips for starting a Couch-to-5K running routine",
        "prompt": "Give me a beginner-friendly Couch-to-5K running plan and tips to avoid injury."
      }
    ],
    "ext": {
      "model": "3.5 Flash-Lite",
      "steps": [{"label": "Searched the web", "tool": "Google Search", "pages": 8}],
      "classifier": [
        [{"label": "Academic - Other", "score": 1.2308828e-05}, {"label": "Coding", "score": 8.606076e-06}],
        [
          {"label": "Action Execution / Device Control - Other", "score": 2.9255574e-05},
          {"label": "Advice & Opinion - Other", "score": 0.00015245765}
        ]
      ],
      "modifiers": ["Longer", "Shorter"],
      "suggestionHeading": "To help you narrow down your choice:"
    },
    "conversation": {"id": "c_GLVf-d67JzX_h9UkuWw87Q", "turn": 1, "expiresAt": "2026-10-30T01:30:51.206Z"}
  }
}

Errors

StatusCodeMeaning
400INVALID_PARAMSA parameter is missing, unknown or out of range, or the engine does not take it. The message names it.
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
402INSUFFICIENT_BALANCEThe balance does not cover this call. Top up in the dashboard.
429MARKETPLACE_SATURATEDToo many concurrent calls. Retry after the Retry-After seconds.
502UPSTREAM_ERRORThe engine answered with something unusable. Retry with backoff.
502UPSTREAM_TIMEOUTThe engine did not answer in time. Retry.
503SERVICE_UNAVAILABLEA temporary failure. Retry with backoff.

Every code is listed in Errors. Failed calls are not billed.

Pricing

Price $0.0012 per call. List price; the rate steps down above 1,000 calls a day.

Notes

  • To ask a follow-up, pass the answer's conversation.id as conversation.
  • Gemini answers in the language of the prompt.

On this page