APIReference

Get full paper content

Get full paper content in a single call. Ideal for LLM context injection.

Counts toward paper quota on first access.

GET
/papers/{id}/content

Authorization

ApiKeyAuth
x-api-key<token>

API key for authentication. Get yours at https://sciencestack.ai/settings/api

Format: sk_live_... or sk_test_...

In: header

Path Parameters

id*string

Paper ID — either arXiv ID (e.g., 1706.03762) or internal UUID

Query Parameters

format?string

Output format:

  • raw: JSON AST (Team only)
  • markdown: Formatted markdown (default)
  • latex: Reconstructed LaTeX
  • text: Plain text
Default"markdown"
Value in"raw" | "markdown" | "latex"
styles?boolean

Include text styling (bold, italic). Default false for cleaner LLM input.

Defaultfalse
preserveLabels?boolean

Keep original LaTeX labels (e.g., \ref{lem:HS}) instead of resolving to node IDs (e.g., lem:2.1). Useful for LaTeX export where you want compilable output. Default false (labels resolved to actionable node IDs for API navigation).

Defaultfalse

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://sciencestack.ai/api/v1/papers/1706.03762/content"
{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "title": "string",
    "arxivId": "string",
    "format": "raw",
    "content": null
  },
  "_version": "string"
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key"
  }
}
{
  "error": {
    "code": "UPGRADE_REQUIRED",
    "message": "Pro plan required for raw format. Upgrade at https://sciencestack.ai/pricing"
  }
}
{
  "error": {
    "code": "PAPER_NOT_FOUND",
    "message": "Paper not found: 9999.99999"
  }
}
{
  "error": {
    "code": "PAPER_LIMIT_EXCEEDED",
    "message": "Monthly paper limit reached. Upgrade at https://sciencestack.ai/pricing"
  }
}