exa-contents

exa-contents is a skill for Claude Code, Codex from exa-labs/agent-skills. It costs 58 tokens per session (2,297 once invoked), scanned A, original, MIT.

A direct way to call Exa’s Contents endpoint using cURL or raw HTTP requests. Exa Contents extracts information from web pages when you already have their URLs.

In plain words
What is it for?
Use it to fetch and process content from known URLs, control crawl freshness, and handle the status of each URL.
Why use it?
It avoids needing an Exa software development kit when an agent only needs to send web-page URLs and receive their contents. It also supports extracting text, highlights, summaries, links, images, and subpages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fetch and process content from known URLs, control crawl freshness, and handle the status of each URL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/exa-labs/agent-skills/exa-contents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add exa-labs/agent-skills --skill exa-contents
Clone the repo
git clone --depth 1 https://github.com/exa-labs/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for exa-contents

README.md
[![agentmods](https://agentmods.dev/badge/skills/exa-labs/agent-skills/exa-contents/github.svg)](https://agentmods.dev/skills/exa-labs/agent-skills/exa-contents)
Your own site
<a href="https://agentmods.dev/skills/exa-labs/agent-skills/exa-contents"><img src="https://agentmods.dev/badge/skills/exa-labs/agent-skills/exa-contents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for exa-contents

Your own site · 80×15
<a href="https://agentmods.dev/skills/exa-labs/agent-skills/exa-contents"><img src="https://agentmods.dev/badge/skills/exa-labs/agent-skills/exa-contents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,297 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 21 Jul 2026
  • Snyk warn 21 Jul 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.02297
Opus 5.5 $0.00023 $0.00919
Sonnet 5.5 $0.00012 $0.00459
Haiku 4.5 $0.00006 $0.00230

Measured 2mo ago against content hash 3cab67afe227, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

exa-contents scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS -X POST "https://api.exa.ai/contents" \
skills/exa-contents/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Exa Contents

Requires API key: Get one at https://dashboard.exa.ai/api-keys

Header: x-api-key: $EXA_API_KEY

Use POST https://api.exa.ai/contents when the agent already knows the URLs and needs clean, LLM-ready extraction without running a new search. Start with one content mode: highlights for compact agent context, text for broad page context, or summary for Exa-side compression.

Quick Start (cURL)

Basic text extraction

curl -sS -X POST "https://api.exa.ai/contents" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $EXA_API_KEY" \
  -d '{
    "urls": ["https://example.com"],
    "text": true
  }'

Highlights with freshness control

curl -sS -X POST "https://api.exa.ai/contents" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $EXA_API_KEY" \
  -d '{
    "urls": ["https://arxiv.org/abs/2307.06435"],
    "highlights": {
      "query": "methodology and results"
    },
    "maxAgeHours": 24,
    "livecrawlTimeout": 12000
  }'

Endpoint

POST https://api.exa.ai/contents

Authentication: x-api-key: <API_KEY> header. Exa also accepts Authorization: Bearer <API_KEY>, but prefer x-api-key in cURL examples for consistency.

Use this endpoint for known-URL extraction. If the agent needs discovery or ranking first, use POST /search.

Parameters

Core request parameters

Parameter Type Required Default Description
urls string[] Yes - URLs to extract content from. Use this for known URLs.
text boolean or object No - Return full page text as markdown. Object form supports maxCharacters, includeHtmlTags, verbosity, includeSections, and excludeSections.
highlights boolean or object No - Return key excerpts. Prefer true for agent workflows unless a custom focus is needed.
summary boolean or object No - Return per-page LLM summaries. Use when the caller wants Exa-side compression or structured extraction.
maxAgeHours integer No - Freshness control. 0 always live crawls; -1 uses cache only; omit for default cache-first behavior with crawl fallback.
livecrawlTimeout integer No 10000 Timeout for live crawling in milliseconds. Use 10000 to 15000 for most freshness-sensitive calls.
subpages integer No 0 Number of linked subpages to crawl from each URL.
subpageTarget string or string[] No - Terms used to prioritize which subpages matter, such as ["api", "reference", "pricing"].
extras.links integer No 0 Number of links to extract from each page.
extras.imageLinks integer No 0 Number of image URLs to extract from each page.
compliance string No - Enterprise-only compliance mode, such as hipaa, when enabled for the account.

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 195 lines · 58 tokens per session scan A 3cab67afe227

Subscribe to this mod's changes

exa-contents is a skill published in the GitHub repository exa-labs/agent-skills (65 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 2,297 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

exa-contents compared with skills from other repositories

exa-contents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
exa-contentsexa-labs/agent-skillsSkill65yesterdayMITA58Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code