---
title: "Answer"
description: "Ask Meta AI a question and get its answer, with its sources."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/answers/llms.txt)

```http
POST /v1/meta-ai/answer
```

Send the inputs as a JSON body. Meta AI often searches the web before it answers: allow up to 120 seconds.

## Request

```bash tab="cURL"
curl -X POST "https://gateway.apinoa.com/v1/meta-ai/answer" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt": "What are the health benefits of green tea?", "country": "US"}'
```

```js tab="JavaScript"
const res = await fetch("https://gateway.apinoa.com/v1/meta-ai/answer", {
  method: "POST",
  headers: { "x-api-key": process.env.APINOA_API_KEY, "content-type": "application/json" },
  body: JSON.stringify({ prompt: "What are the health benefits of green tea?", country: "US" }),
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.post(
    "https://gateway.apinoa.com/v1/meta-ai/answer",
    json={"prompt": "What are the health benefits of green tea?", "country": "US"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
    timeout=120,
)
body = res.json()
```

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `prompt` | string | yes | The question, as a person would type it. |
| `country` | string |  | The market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries. |
| `include` | enum list |  | `page`: also return the answer as a self-contained HTML page, in `page`. |
| `near` | string |  | Ask as if from this place: a city, region or US state ("Austin, Texas", "Austin, TX", "Texas"), or Google's canonical location name ("Austin,Texas,United States"). A name that matches more than one place is refused with the candidates. The place must be in the country asked. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## Response

Returns [`Answer`](/docs/api-reference/answers/response-schema#answer) in `data`. A real response, shortened: arrays keep their first entries and long text is cut.

```json
{
  "success": true,
  "data": {
    "engine": "meta-ai",
    "prompt": "What are the health benefits of green tea?",
    "askedAt": "2026-11-20T22:53:03.096Z",
    "country": "US",
    "title": "Health benefits of green tea",
    "outcome": "answered",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "Green tea is one of the most studied drinks in nutrition research, largely because of its **catechins** — especially **epigallocatechin gall…"
      },
      {
        "type": "paragraph",
        "markdown": "Here’s what the evidence actually supports, and where it’s still mixed:"
      },
      {
        "type": "heading",
        "level": 3,
        "markdown": "Strongest / most consistent evidence"
      }
    ],
    "text": "Green tea is one of the most studied drinks in nutrition research, largely because of its catechins — especially epigallocatechin gallate (E…",
    "markdown": "Green tea is one of the most studied drinks in nutrition research, largely because of its **catechins** — especially **epigallocatechin gall…",
    "citations": [
      {
        "start": 177,
        "end": 301,
        "sources": [
          0
        ]
      },
      {
        "start": 431,
        "end": 561,
        "sources": [
          1
        ]
      },
      {
        "start": 562,
        "end": 690,
        "sources": [
          0
        ]
      }
    ],
    "sources": [
      {
        "url": "https://www.medscape.com/viewarticle/907456_3",
        "title": "Drinking Tea: Are the Health Benefits Real?",
        "site": "medscape.com",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/6448795917664452366?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.medscape.com%26…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      },
      {
        "url": "https://www.cebm.ox.ac.uk/publication/478284",
        "title": "Centre for Evidence-Based Medicine (CEBM), University of Oxford",
        "site": "cebm.ox.ac.uk",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/6952209899073228159?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.cebm.ox.ac.uk%2…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      },
      {
        "url": "https://www.sciencedirect.com/science/article/abs/pii/S0939475322002472",
        "title": "A comprehensive overview on the effects of green tea on anthropometric measures, blood pressure, glycemic and lipidemic status: An umbrella …",
        "site": "sciencedirect.com",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/7447256685806174489?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.sciencedirect.c…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      }
    ],
    "mentions": [],
    "cards": [],
    "suggestions": [],
    "ext": {
      "steps": [
        {
          "header": "Searching green tea benefits",
          "sources": [
            "https://www.sciencedirect.com/science/article/abs/pii/S0939475322002472",
            "https://gradedhealth.org/topics/green-tea",
            "https://www.healthline.com/nutrition/top-10-evidence-based-health-benefits-of-green-tea%239.-May-help-you-lose-weight"
          ]
        }
      ]
    }
  }
}
```

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | A parameter is missing, unknown or out of range, or the engine does not take it. The message names it. |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 402 | `INSUFFICIENT_CREDITS` | Your credits do not cover this call. Choose a plan or top up in the dashboard. |
| 429 | `MARKETPLACE_SATURATED` | Too many concurrent calls. Retry after the `Retry-After` seconds. |
| 502 | `UPSTREAM_ERROR` | The engine answered with something unusable. Retry with backoff. |
| 502 | `UPSTREAM_TIMEOUT` | The engine did not answer in time. Retry. |
| 503 | `SERVICE_UNAVAILABLE` | A temporary failure. Retry with backoff. |

Every code is listed in [Errors](/docs/errors). Failed calls are not billed.

## Pricing

**Price** 1.5 credits per call. [Plans and credits](https://apinoa.com/en/pricing).

## Notes

- Meta AI answers in the language of the prompt. `language` is not taken.
- Each question is asked on its own: there is no `conversation` input, and no `photos` input.
- Meta AI decides by itself whether to search the web. When it does, `citations` marks the text each source supports and `sources` lists the pages it found, with `cited` set on the ones the answer uses. Instagram accounts it names are in `mentions`, places it shows (with coordinates) in `cards`, and `ext` carries its search steps.
- Meta AI declines some prompts, shopping questions among them. Such an answer comes back with `outcome: "refused"` and Meta AI's message in `text`.
- Meta AI is asked from `US`, `CA`, `GB`, `AU`, `DE`, `IN` or `BR`.
- An answer usually takes 5 to 30 seconds.
