Litra.aiLitra.aiv2.22.0-beta
Change language

Developer Documentation

Use Litra.ai's public API and MCP server to search academic papers from your AI agents and applications.

Quick Start

1. Create an Account

Sign up for Litra.ai and subscribe to a paid plan (Mini or higher).

2. Generate an API Key

Go to the API Key Management section on your account page to generate an API key.

3. Call the API

Use your API key to search papers via the REST API or MCP server.

API Reference

Base URL

https://litra-ai.com/api/v1

Authentication

Include your API key as a Bearer token in all requests.

Authorization: Bearer YOUR_API_KEY
POST/api/v1/search

Paper Search

Search papers by keywords or phrases. AI understands the meaning of your query and returns relevant papers.

POST/api/v1/author/search

Author Search

Search papers by author name.

GET/api/v1/credits

Check Credit Balance

Check your current credit balance.

curl -X POST https://litra-ai.com/api/v1/search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "sleep deprivation memory consolidation",
    "max_results": 10
  }'

Error Codes

CodeDescription
401Authentication error: API key is invalid or missing
402Insufficient credits: Your balance is too low
429Rate limit exceeded: Too many requests
500Server error: Please try again later

MCP Server

With MCP (Model Context Protocol), you can search papers from Litra.ai directly from your AI agent. The following clients are supported.

claude mcp add litra \
  -- npx -y @anthropic-ai/mcp-remote \
  https://litra-ai.com/api/v1/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Pricing & Rate Limits

API and MCP usage consumes the same credits as the web app. Rate limits per plan are as follows.

PlanCredits/moRate Limit
Mini3010 req/min
Standard10030 req/min
Pro40060 req/min
Max1200120 req/min

Frequently Asked Questions

How many API keys can I create?

You can create up to 5 API keys per account.

Does API usage consume credits?

Yes. Searches via the API consume the same credits as web app searches.

What happens if I exceed the rate limit?

A 429 error will be returned. Please wait a moment before retrying.

The MCP server configuration is not working.

Please verify that your API key is correctly configured. If the issue persists, contact us.