How to Get Cited Web Answers With the Exa API
Get a cited web answer into your agent through Monid, inspect the response, and keep its sources for review.

Get a cited web answer into your agent. Paste this into your agent:
Set up https://monid.ai/SKILL.md, then use Exa to answer a question about the James Webb Space Telescope and return the answer with its source URLs.
One prompt starts a cited research task.
If you are a developer building an agent, the Exa API can give your script a web answer and the sources behind it. Copying a question into a browser and pasting eight source links into a prompt is a fragile way to repeat that job.
A one-off answer without its source list gives the next step no way to check the evidence. Separate integrations also leave you managing credentials and response formats before your agent can use the result.
This guide builds a small cited answer with Monid, the OpenRouter for agent tools: one key and one balance for tools from multiple providers. We'll inspect the input, run a question, and turn the response into a reviewable record. The result below is from a real call on December 1, 2026.
| Result field | Observed value |
|---|---|
| Question | What is the James Webb Space Telescope designed to study? |
| Answer | Cosmic history, galaxies, stars and planetary systems |
| Citations returned | 8 |
| Example source | James Webb Space Telescope, NASA Science |
How to use the Exa API with Monid
Use Monid to discover the Exa answer tool, inspect its inputs, and run one question with your key. An endpoint is a specific operation a program can call; here, exa /answer produces an answer and source citations in one response.
Step 1. Set up your agent or CLI
For an agent, get a key at app.monid.ai and give your agent the setup instruction below. The agent quickstart explains the setup.
set up https://monid.ai/SKILL.md
For a human at a terminal, install the CLI and add your key. The CLI quickstart covers installation and key management.
npm install -g @monid-ai/cli
monid keys add -k <your-api-key> -l main
Keep the key out of source files and logs. A script needs a way to access its configured credentials; the example commands use the CLI's saved key.
Step 2. Find the tool and inspect its inputs
Discover and inspect are free. Run these commands before sending a question so you can read the current input schema and billing information.
monid discover -q "exa api"
monid inspect -p exa -e /answer -j
The inspected JSON schema requires a nonempty query. It also accepts options such as model and text; leave them out for this first call so you can see the default response. The -j option presents the inspection as JSON, which makes the input and pricing fields easy to locate.
Step 3. Ask one specific question
Send a single question with -i, which supplies the JSON request body, and -w, which waits for the run. This is the actual question used for the example.
monid run -p exa -e /answer -w -i '{"query":"What is the James Webb Space Telescope designed to study?"}' -j
The completed run returned one answer and eight citations. Its recorded start and completion timestamps were 2.127 seconds apart; that is one observation, not a response-time guarantee. The response's runId lets you retrieve the run later.
Step 4. Save the answer with its sources
Read output.answer and output.citations together. Save the citation title and url alongside the answer, and keep the run ID and question with your record so a reviewer can trace the result to the original request.
The CLI also gives a retrieval command with the completed run. Substitute your own ID rather than copying the example's ID:
monid runs get -r <your-run-id> -o answer.json
The output file holds the returned response, not a curated research report. Before a person or another agent relies on a statement, open the relevant source and check that it supports the statement. Source titles and URLs are evidence pointers, not proof that every sentence in the generated answer is correct.
Why keep citations with an answer?
Citations make an agent's answer reviewable because the reader can go from a claim to the page used as a source. Without that connection, a fluent summary becomes a piece of text with no clear path back to the underlying evidence.
Keep the question and response together
A question gives the answer its scope. The Webb example asks what the telescope was designed to study; it does not ask for a complete mission history, a current observation schedule, or an inventory of discoveries. Store the exact question so a later reader can judge the answer against the job it was asked to do.
For an application that processes many questions, attach a separate run ID to each request. That makes a later correction specific: you can replace one answer and its citation set without overwriting evidence for an unrelated question. Keep the retrieval date in your own record as well, because the underlying pages and a repeated answer can change.
Treat a citation as a starting point
The sample returned eight citation objects, including NASA pages. The answer contained numbered references, while the citation array contained titles and URLs. A reviewer should follow the relevant source and read it in context before using the answer in a report.
Keep the full source list even when you display only a short preview. The preview helps a reader scan; the stored list preserves the material needed to review the answer. A research workflow should also make room for a reviewer to mark a source as useful, irrelevant, or insufficient, instead of silently treating all returned links as equivalent.
For another cited-answer workflow, see how to use a Brave Search API key in your agent.
What are the ways to get an answer into an agent?
There are several ways to move web evidence into a program. Choose the route based on whether the output you need is a cited answer, a manually selected source, or a direct provider integration.
Use a shared tool layer
Monid gives an agent a common discover, inspect and run workflow across providers. For this task, Exa supplies the answer and citations, while the shared key and balance let the same agent use other catalog tools when its next task needs them. The application still owns the decision about which evidence to trust.
Collect sources by hand
A person can search, read a small set of pages, and write an answer with links. This is a useful route when every source needs close editorial selection. It becomes a repeated manual task when the same question must be answered across many subjects or on a schedule.
Integrate a provider directly
A direct integration is a route when a team wants a provider-specific connection and is prepared to maintain it. It gives the team a separate integration to manage; it does not remove the need to review the claims in a generated answer. The provider here is Exa.
| Route | Billing or effort | Best for | Limitation |
|---|---|---|---|
| Monid with Exa | Pay for the tool call | Agent using a shared key | Generated answer still needs source review |
| Manual research | Researcher time | Close editorial selection | Each new question takes manual work |
| Direct provider integration | Provider arrangement | A dedicated provider connection | Separate integration to maintain |
A broader web search workflow starts with finding pages instead of producing one answer.
How to read and use the response
The response is a small package with a generated answer and a list of citation objects. In the tested call, the answer summarized the telescope's mission, and the citation list supplied source titles and URLs for follow-up.
Read the result as a record, not a verdict
The answer field is text. The citations field is an array; in this run, its objects included id, title and url, and some also included author or image. Optional values were not present on every citation, so code consuming the response should tolerate missing fields.
| Field | What the tested response contained | How to use it |
|---|---|---|
answer | A cited textual summary | Present as a draft answer for review |
citations | Eight source objects | Keep the list with the answer |
title | Source page title | Give reviewers a readable label |
url | Source page URL | Open the source to check a claim |
author | Present on some objects | Keep when present; do not require it |
image | Present on some objects | Treat as optional metadata |
A source page can support one sentence while saying nothing about another. Have the reviewer match each consequential statement to a specific passage, then edit or discard the answer when the source does not support it. This protects the downstream document from inheriting a plausible but unsupported summary.
Design the next step around the reader
For a research assistant, show the answer followed by source titles and links. For an internal report, retain the question, answer, run ID and retrieval date in the record. For a batch of questions, keep each set of citations with its own answer rather than merging all URLs into a single undifferentiated list.
A result list and a synthesized answer serve different jobs. If a user needs to select individual pages before any synthesis, use a route that returns pages for selection. If the immediate job is a concise answer with citations, the tested answer operation provides that starting point. In either case the application decides how to handle missing metadata, source review and presentation.
How much does a cited answer cost?
The Exa tool page lists the current price for exa /answer: $0.005 per call, Verified 2026-12-01. Discover and inspect are free; running the tool is the paid step. The observed test completed with one billed unit and a reported charge of $0.005, Verified 2026-12-01.
Budget for the actual workflow
One question in this example used one call. A workflow that asks ten separate questions should budget for ten answer calls, while retaining each run's own billing record. The example does not establish a charge or refund rule for failed calls or empty results; use the run's billing details to reconcile what happened.
Do not infer the price of a different operation from this answer call. Read its own listing and schema before building it into a workflow. The related guide on evaluating Exa pricing for agent web search examines the buying decision in more depth.
When should you use something else?
Use a direct Exa integration when your project requires a dedicated provider connection. You are reading the Monid blog, and Monid provides access to Exa tools; a team that wants to manage its provider integration directly has a different operational preference.
Choose human review when the stakes require it
The tested output is generated text with citations, not a guarantee that its claims are correct or complete. For work where a mistaken statement has a material consequence, assign a person to read the underlying sources and approve the final wording. If the requested answer cannot be supported by those sources, the correct output is a request for more evidence, not a confident sentence.
Choose source selection when you need a list
This guide tests one cited-answer operation. It does not produce a manually curated list of search results, prove exhaustive coverage, or validate every linked page. When the reader needs to choose pages before writing a summary, start with a search workflow and review its results; the answer workflow shown here is built for a different end state.
Which tool fits this job?
For a cited answer to one question, use the tested Exa answer tool. Its query is the input and its returned answer plus citations are the material to review.
| Use case | Best endpoint | Why? |
|---|---|---|
| Answer one research question with source links | exa /answer | One tested call returns answer and citations; $0.005 per call, Verified 2026-12-01. |
Keep the decision narrow
Choose the tool for the output you need, not just the provider name. A question with a cited answer is a good fit for this operation; an application that needs independently selected pages needs a different workflow. Inspect the current schema and price before incorporating any tool into an automated job.
Conclusion
You now have a repeatable way to send a question to Exa through Monid, save the returned answer and keep its citations together. Start with one question, read the linked sources, and expand only after the record meets your review standard. That gives your agent a research result a person can trace and use.
FAQ
Can I use the Exa API in an agent?
Yes. Use the Exa answer tool through Monid, passing a question and saving the returned answer and citations.
Is the Exa answer tool free to run?
No. The Exa tool page lists $0.005 per call, Verified 2026-12-01; discovery and inspection are free.
Do I need to write code?
No. An agent can follow the opening prompt after you set up the Monid skill and provide a key. The CLI commands are available when you want to run the same task yourself.
How many questions can I send at once?
The inspected answer input requires one query string. Send separate calls when you need separate questions and retain each response with its own question.
Are failed calls charged?
The successful test reported one billed unit. This test did not establish the billing treatment of failed calls, so inspect the billing record for your run.
Can I run the same question on a schedule?
Yes. Your own scheduler can invoke the workflow again and store each result with its retrieval date. Each run is a separate call.
Are the answers always accurate?
No. Open the cited sources and check the claims before using an answer in a decision or publication.
Published December 2026.


