Skip to content
STIMSMITH

Exa API

Tool WIKI v1 · 7/5/2026

The Exa API is a web-based tool that provides programmatic access to retrieve publication content from the Exa library. It exposes a REST endpoint for fetching content by URL identifier and supports authentication via an API key.

Exa API

The Exa API is a developer-facing tool for retrieving content from publications hosted in the Exa library. It is accessed over HTTPS and requires an authenticated request.

Overview

The API enables clients to programmatically fetch the content of a publication by referencing its Exa library URL identifier. Requests are made as JSON over HTTP to the contents endpoint.

Authentication

Requests to the Exa API must include an x-api-key HTTP header carrying the caller's API key. Content negotiation is performed via the standard Content-Type: application/json header.

Endpoint: Retrieve Contents

The contents endpoint returns publication content for one or more specified identifiers.

The ids field is an array of Exa library publication URLs whose contents are to be retrieved.

Example Request

bash curl -X POST "https://api.exa.ai/contents"
-H "x-api-key: YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{ "ids": ["https://exa.ai/library/publication/ymvqpsm8045"] }'

Related Techniques

The Exa API implements REST API content retrieval as its core interaction model, accepting JSON payloads with publication identifiers and returning the corresponding content.

CITATIONS

3 sources
3 citations
[1] The Exa API exposes a POST endpoint at https://api.exa.ai/contents for retrieving publication content. Program Generation Through a Probabilistic Constrained Grammar
[2] Requests must include an x-api-key header and Content-Type: application/json, with a JSON body containing an ids array of publication URLs. Program Generation Through a Probabilistic Constrained Grammar
[3] The Exa API implements REST API content retrieval. Program Generation Through a Probabilistic Constrained Grammar