使用 LunarCrush 构建:API、MCP 与 SDK

The AI Reference serves the same LunarCrush data the way language models prefer it — markdown by default — at https://lunarcrush.ai. It is addressable by topic, category, creator, or post, and reuses the same Bearer API key as the rest of the platform, so there is no separate credential.

Formats

Every endpoint returns LLM-ready markdown by default. Append ?format=json or ?format=csv for structured output. Reach for the AI Reference to ground a prompt with a fast, copy-pasteable snapshot; for programmatic access from your own stack, the API Reference stays the right entry point.

Code sample

# Markdown by default (LLM-ready):
curl -H "Authorization: Bearer <API_KEY>" \
  "https://lunarcrush.ai/topic/bitcoin"

# Structured output:
curl -H "Authorization: Bearer <API_KEY>" \
  "https://lunarcrush.ai/topic/bitcoin?format=json"

Authentication

All requests use HTTPS and return JSON. Authenticate every call with an Authorization: Bearer <API_KEY> header. The base URL is https://lunarcrush.com/api4. The same key powers the webapp, the CLI, and the MCP server. You can hold up to five active keys at once; generate, label, rotate, and revoke them on the API Keys page. Keep keys secret — if one leaks, delete it and generate a new one.

Rate limits and plan gating

Every request counts against your plan's per-minute and daily quota. Limits are set by your plan and match the plans on the pricing page:

PlanAPI access and rate limit
Pay-As-You-GoAll endpoints, 10 requests/min, billed per request
LightAll endpoints, 10 requests/min, 2,000/day
MediumAll endpoints, 100 requests/min, 20,000/day
HeavyAll endpoints, 500 requests/min, 100,000/day
EnterpriseCustom

Every plan, including Pay-As-You-Go, can call all 37 endpoints; plans set the daily and per-minute limits. Enterprise limits are custom — talk to sales.

LunarCrush