Exa · Arazzo Workflow

Exa Search and Fetch Contents

Version 1.0.0

Run an Exa neural search and pull full page contents for the top result.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceSearchWeb SearchNeural SearchLLMAgentsResearchWebsetsArazzoWorkflows

Provider

exa-ai

Workflows

search-and-fetch-contents
Search Exa, then fetch full contents for the top-ranked result.
Performs an Exa search for the supplied query, selects the highest ranked result, and retrieves its full text, highlights, and summary from the contents endpoint.
2 steps inputs: apiKey, numResults, query, summaryQuery outputs: highlights, summary, text, topResultUrl
1
runSearch
Run an Exa auto search for the query and request a list of relevant results, capturing the id and url of the top match.
2
fetchContents
Retrieve the full text, highlights, and a summary for the top result URL returned by the search.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Exa Search and Fetch Contents
  summary: Run an Exa neural search and pull full page contents for the top result.
  description: >-
    The most common Exa retrieval pattern. The workflow runs a prompt-engineered
    Exa search to find the most relevant documents for a query, captures the
    document id and url of the top result, and then calls the contents endpoint
    to retrieve the full extracted text, highlights, and a summary for that
    document. Every step spells out its request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: contentsApi
  url: ../openapi/exa-ai-contents-api-openapi.yml
  type: openapi
- name: searchApi
  url: ../openapi/exa-ai-search-api-openapi.yml
  type: openapi
workflows:
- workflowId: search-and-fetch-contents
  summary: Search Exa, then fetch full contents for the top-ranked result.
  description: >-
    Performs an Exa search for the supplied query, selects the highest ranked
    result, and retrieves its full text, highlights, and summary from the
    contents endpoint.
  inputs:
    type: object
    required:
    - apiKey
    - query
    properties:
      apiKey:
        type: string
        description: Your Exa API key, sent in the x-api-key header.
      query:
        type: string
        description: The natural-language search query.
      numResults:
        type: integer
        description: How many results the search should return.
        default: 10
      summaryQuery:
        type: string
        description: Optional query guiding the LLM-generated summary of the contents.
        default: Main contributions
  steps:
  - stepId: runSearch
    description: >-
      Run an Exa auto search for the query and request a list of relevant
      results, capturing the id and url of the top match.
    operationId: search
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        query: $inputs.query
        type: auto
        numResults: $inputs.numResults
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      topResultId: $response.body#/results/0/id
      topResultUrl: $response.body#/results/0/url
      requestId: $response.body#/requestId
  - stepId: fetchContents
    description: >-
      Retrieve the full text, highlights, and a summary for the top result URL
      returned by the search.
    operationId: getContents
    parameters:
    - name: x-api-key
      in: header
      value: $inputs.apiKey
    requestBody:
      contentType: application/json
      payload:
        urls:
        - $steps.runSearch.outputs.topResultUrl
        text: true
        highlights: true
        summary:
          query: $inputs.summaryQuery
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      text: $response.body#/results/0/text
      summary: $response.body#/results/0/summary
      highlights: $response.body#/results/0/highlights
  outputs:
    topResultUrl: $steps.runSearch.outputs.topResultUrl
    text: $steps.fetchContents.outputs.text
    summary: $steps.fetchContents.outputs.summary
    highlights: $steps.fetchContents.outputs.highlights

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/exa-ai-search-and-fetch-contents-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.