Felo API PlatformFelo API Platform

Data API / Exa / Search

Run a neural semantic web search.

Search the web by meaning rather than by keyword. query is required; narrow with category, includeDomains, excludeDomains, startPublishedDate, endPublishedDate, and set numResults. Returns requestId, resolvedSearchType, searchTime, costDollars and results[] with id, title and url. id is the URL, and it is what post_exa_contents takes. ⚠️ Results carry no page text unless you ask: pass contents, or follow up with post_exa_contents. Choose it over searchWeb when the query is a description rather than keywords; choose Tavily when you want the text in the same call, and post_exa_answer when you want a written answer rather than a list.

Параметры

Параметров пути, запроса и заголовков нет.

Тело запроса

  • querystringОбязательный

    The natural-language search query.

  • typestringНеобязательный

    Допустимые значения: auto · fast · instant · deep-lite · deep · deep-reasoning

    Search mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.

  • numResultsintegerНеобязательный

    Number of results to return.

  • categorystringНеобязательный

    Допустимые значения: company · research paper · news · personal site · financial report · people

    Optional hint about the kind of pages to prioritize.

  • includeDomainsstring[]Необязательный

    Only return results from these domains.

  • excludeDomainsstring[]Необязательный

    Exclude results from these domains.

  • startPublishedDatestringНеобязательный

    Only return results published on or after this ISO 8601 date.

  • endPublishedDatestringНеобязательный

    Only return results published on or before this ISO 8601 date.

  • contentsobjectНеобязательный

    Content options to return alongside each result.

  • textbooleanНеобязательный

    Return the full page text.

  • highlightsbooleanНеобязательный

    Return highlighted relevant snippets.

  • summarybooleanНеобязательный

    Return an AI-generated summary of the page.

  • outputSchemaobjectНеобязательный

    JSON Schema used to synthesize a structured output from the results.

  • systemPromptstringНеобязательный

    Instruction that guides how the structured output is generated.

Пример запроса

curl -X POST "https://openapi.felo.ai/v1/beta/exa/search" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "<string>",
  "type": "<string>",
  "numResults": 0,
  "category": "<string>",
  "includeDomains": [
    "<string>"
  ],
  "excludeDomains": [
    "<string>"
  ],
  "startPublishedDate": "<string>",
  "endPublishedDate": "<string>"
}'

Ответ

Поля ответа

  • requestIdstringНеобязательный

    Exa request identifier.

  • resultsobject[]Необязательный

    Ranked search results.

  • titlestringНеобязательный
  • urlstringНеобязательный
  • publishedDatestringНеобязательный
  • authorstringНеобязательный
  • idstringНеобязательный
  • outputНеобязательный

    Structured output, present only when outputSchema was supplied.

  • costDollarsНеобязательный

    Upstream Exa cost breakdown. Informational only; customer billing is the flat $0.08.