Spiral gives your agent every tool with one account. Browse the tools →

Codex · Web

How to Use Exa similar web pages in Codex

Exa similar web pages finds pages related to a supplied URL, with optional page text, highlights, or generated summaries. Use it to expand a useful article, research paper, or company website into a shortlist of related sources.

Prompts to try with Exa similar web pages in Codex

Copy an example into Codex, or ask in your own words.

Use Exa similar web pages with https://www.anthropic.com/engineering/building-effective-agents to find 10 related pages. Add a reading list with URLs and supporting excerpts to docs/agent-research.md.

Exa similar web pagesCodex
Try asking
  • Use Exa similar web pages with https://arxiv.org/abs/1706.03762 to find related research pages. Draft a bibliography in research/transformers.md using returned titles, URLs, and summaries.

  • Use Exa similar web pages with https://www.postman.com/ to find 10 related product pages. Draft a comparison note in docs/api-tool-options.md using only capabilities supported by returned text.

  • Use Exa similar web pages with https://www.algolia.com/ to find related company websites. Create research/search-vendors.md with each URL and a short summary of its returned page text.

  • Use Exa similar web pages with https://react.dev/learn to find related learning resources. Review their excerpts and suggest five links for our project's contributor guide.

How to set up Exa similar web pages in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Exa similar web pages

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "exa",
        "model": "exa/findSimilar",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: Codex finds Exa similar web pages on Spiral, shows the price and runs it.

Exa similar web pages providers and prices

Spiral runs Exa similar web pages through Exa. Open a card for today's price, with every fee included.

ExaWeb

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Categorycompany, publication, news, personal site, financial report, or people

A data category to focus on. Other strings are accepted and used as category hints. people and company return higher-quality people profiles and company pages. publication returns scholarly publications such as research papers, preprints, and journal articles, with metadata like authors, venue, and citations. With company or people, domain, URL, published-date, and text filters are ignored.

Number of results1 to 10010

Number of results to return. Limits vary by search type. The maximum public limit is 100 results. Contact [email protected] to discuss higher limits.

Exclude source domainon or off

If true, results from the same domain as the source url are excluded.

Every API field of Exa Find Similar · Similar Pages is on its tool page: open its card above.

What can you do with Exa similar web pages in Codex?

Build a related-reading list for your project's documentation from a useful public article. A coding agent can use Exa's returned pages and excerpts to draft additions to your research notes.

Build a competitor shortlist

Start with a company website such as https://www.algolia.com/ and review related company pages. Use the returned text to identify candidates worth comparing.

Expand a paper reading list

Use https://arxiv.org/abs/1706.03762 as a starting point for related reading. Review the returned pages and excerpts before adding papers to a literature review.

Find more sources for an article

Start with a useful technical article and collect related pages. Compare their extracted passages to choose sources that add evidence or a different explanation.

Compare developer tools

Start with https://www.postman.com/ and review related product pages. Build a comparison brief from the capabilities described in returned page text.

Prepare a newsletter reading queue

Use a strong article such as https://www.anthropic.com/engineering/building-effective-agents to discover related material. Select useful pages from their titles, excerpts, and summaries.

Suggest further reading

Use an article's URL to find related pages for a further-reading section. Review each candidate's text for relevance before recommending it.

Questions about Exa similar web pages in Codex

Can Codex use Exa similar web pages?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Exa similar web pages like any built-in tool.

How much does Exa similar web pages cost in Codex?

$0.0052 per search with 10 results. Each result after 10: $0.0013. Summaries: $0.0013 per result. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Exa account to use Exa similar web pages in Codex?

No. Spiral runs Exa similar web pages on its own Exa account. You sign in to Spiral once and never paste a key.

How long does it take to set up Exa similar web pages in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Exa similar web pages runs?

Exa similar web pages runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

What does Exa use to find related pages?

Find Similar starts with a supplied URL and finds similar pages. That makes a specific article, paper, or company page a useful starting point for discovering related sources.

How often does Exa refresh its pages?

Exa discovers and refreshes pages continuously. Refresh timing varies by source and how often the page changes, so there is no single refresh interval for every website.

Can Exa retrieve content behind a login or paywall?

Exa's crawler does not attempt to bypass logins, paywalls, or CAPTCHAs. Its public web index should not be treated as access to restricted content.

Are Exa highlights copied from the page or written by AI?

Highlights are extracted passages from the result page, selected for relevance. Exa summaries are generated with a language model.

Does Exa always return a newly fetched copy?

Exa supports cached content as well as live retrieval. Its content freshness control can request a copy fetched within the last 60 seconds.

Get started

Start using Exa similar web pages in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options