Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Exa Contents

API दस्तावेज़
https://api.sandbase.ai/v1/api/exa/contents

Extract clean page contents for a list of URLs: full text, highlights, AI summaries and metadata, from cache or with a live crawl.

मूल्य
$0.0045USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 5 वैकल्पिक

प्लेग्राउंड

इनपुट
The URLs (or Exa result ids) to fetch contents for.
Return the full page text.
Return highlighted relevant snippets.
Return an AI-generated summary of the page.
Number of linked subpages to also fetch.
Freshness policy: always live-crawl, fall back to live crawl on cache miss, or never live-crawl.
आउटपुटउदाहरण
प्रतिक्रियाoutputs · 1.2 KB · 28 पंक्तियाँ
{
  "costDollars": {
    "contents": {
      "text": 0.001
    },
    "total": 0.001
  },
  "requestId": "ec080d1037c5ec88affbcae836c0df5d",
  "results": [
    {
      "author": null,
      "favicon": "https://adk.dev/assets/agent-development-kit.png",
      "id": "https://adk.dev/",
      "image": "https://adk.dev/assets/adk-social-card.png",
      "text": "Agent Development Kit (ADK) - Agent Development Kit (ADK) Agent Development Kit (ADK)\n\n# Build production agents, not prototypes.\n\nADK is the open-source agent development framework that lets you build, debug, and deploy reliable AI agents at enterprise scale. Available in Python, TypeScript, Go, Java, and Kotlin.\n\nPython\n\nTypeScript\n\nGo\n\nJava\n\nKotlin\n\n```\nfrom google.adk import Agent\nfrom google.adk.tools import google_search\n\nagent = Agent(\n    name=\"researcher\",\n    model=\"gemini-flash-latest\",\n    instruction=\"You help users research topics thoroughly.\",\n    tools=[google_search],\n)\n```\n\n`…",
      "title": "Agent Development Kit (ADK) - Agent Development Kit (ADK)",
      "url": "https://adk.dev/"
    }
  ],
  "searchTime": 8.82960500009358,
  "statuses": [
    {
      "id": "https://adk.dev/",
      "source": "cached",
      "status": "success"
    }
  ]
}

उदाहरण

प्लेग्राउंड में इसके इनपुट और परिणाम लोड करने के लिए कोई उदाहरण चुनें।

API README

Exa Contents API

Fetch the content of web pages by URL with Exa: full text, highlighted snippets most relevant to a query, or an AI summary, plus title, author, publish date and image. Pages are served from Exa's cache or crawled live.

Use cases

  • Get clean text of pages found by a search API for RAG.
  • Pull only the relevant passages of long pages with highlights.
  • Summarize a list of URLs.

Request

curl -X POST "https://api.sandbase.ai/v1/api/exa/contents" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ids": ["https://developers.openai.com/codex"], "highlights": true}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
idsarrayYesThe URLs (or Exa result ids) to fetch contents for.
highlightsbooleanNoReturn highlighted relevant snippets.
livecrawlstringNoFreshness policy: always live-crawl, fall back to live crawl on cache miss, or never live-crawl.
subpagesintegerNoNumber of linked subpages to also fetch.
summarybooleanNoReturn an AI-generated summary of the page.
textbooleanNoReturn the full page text.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "requestId": "5b59ba53e260d94b59baf3c1436137f1",
  "results": [
    {
      "author": null,
      "highlights": [
        "ChatGPT | ChatGPT Learn\n\n### Suggested\n\nresponses createreasoning_effortrealtime…"
      ],
      "id": "https://developers.openai.com/codex",
      "image": "https://learn.chatgpt.com/og/docs.png",
      "title": "ChatGPT | ChatGPT Learn",
      "url": "https://developers.openai.com/codex"
    }
  ],
  "searchTime": 33.52916099992581,
  "statuses": [
    {
      "id": "https://developers.openai.com/codex",
      "source": "cached",
      "status": "success"
    }
  ]
}

Response fields

FieldMeaning
results[]One entry per URL: url, title, author, publishedDate, image, and text, highlights or summary as requested.
statuses[]Per-URL status: success or an error, and source (cached or live).
searchTimeTime spent in milliseconds.

Notes

  • Pass up to several URLs in ids. Use livecrawl to force a fresh crawl of pages that change often.
  • Pages that cannot be fetched appear in statuses with an error.

Pricing

$0.0045 per successful call. Failed calls, including lookups whose target does not exist, are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Exa Contentsयह API
Exa
$0.0045 प्रति कॉलJSON
Exa$0.0075 प्रति कॉलJSON
Exa$0.0105 प्रति कॉलJSON

गाइड्स:Exa alternatives: compare Tavily and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

प्रश्न

FAQ

Exa Contents API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/exa/contents पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Exa Contents API की लागत कितनी है?

$0.0045 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Exa Contents API कौन-से parameters स्वीकार करती है?

आवश्यक: ids (array)। वैकल्पिक: text (boolean), highlights (boolean), summary (boolean), subpages (integer) और livecrawl (always, fallback, never में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Exa Contents API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Exa developer account या API key चाहिए?

नहीं। Exa Contents SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Exa API access के लिए आवेदन करने की आवश्यकता नहीं है।