glimglim.shdocs
Payments & auth

Pay per call, or from a balance

glim works two ways: pay per call straight from a crypto wallet with no account, or top up a prepaid balance and use an API key. Same endpoints, same prices — pick whichever fits your agent.

Pay per call with a wallet

An unpaid request gets an HTTP 402 challenge listing the price and accepted networks. Your client pays on-chain and retries without signing up. The x402-proxy CLI runs the whole 402 loop for you:

REST — pay per call
# Pay per call with a crypto wallet — no account, no key.
# x402-proxy reads the 402 challenge and auto-pays from your wallet.
npx x402-proxy https://glim.sh/api/v1/twitter/get/cascade_fyi

# Check your wallet balance any time
npx x402-proxy wallet

For MCP clients, the same proxy bridges a stdio server to the paid endpoint, so any wallet-paying agent can connect:

MCP — pay per call
# Same wallet, for MCP clients — bridges stdio to the paid endpoint
npx x402-proxy mcp https://glim.sh/mcp

Price per call

ToolREST routePrice per call (USD)
glim_twitter_searchPOST /api/v1/twitter/search$0.005
glim_twitter_getPOST /api/v1/twitter/get$0.005
glim_reddit_searchPOST /api/v1/reddit/search$0.01
glim_reddit_getPOST /api/v1/reddit/get$0.005
glim_web_searchPOST /api/v1/web/search$0.01
glim_web_fetchPOST /api/v1/web/fetch$0.002
glim_github_searchPOST /api/v1/github/search$0.002
glim_github_getPOST /api/v1/github/get$0.002
glim_amazon_searchPOST /api/v1/amazon/search$0.005
glim_amazon_getPOST /api/v1/amazon/get$0.01
glim_youtube_getPOST /api/v1/youtube/get$0.01
glim_telegram_getPOST /api/v1/telegram/get$0.005
glim_telegram_searchPOST /api/v1/telegram/search$0.01
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/search/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/aggregated_metrics/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/top_pages/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/llm_mentions/cross_aggregated_metrics/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/claude/llm_responses/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/perplexity/llm_responses/liveSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_responses/modelsSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/claude/llm_responses/modelsSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/modelsSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/perplexity/llm_responses/modelsSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/task_postSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/live/advancedSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/task_get/advanced/:idSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/task_postSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/live/advancedSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/ai_optimization/gemini/llm_scraper/task_get/advanced/:idSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/appendix/goto_url_converterSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/backlinks/summary/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/backlinks/referring_domains/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/backlinks/domain_pages_summary/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/backlinks/backlinks/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/backlinks/history/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/business_listings/search/liveSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/business_data/business_listings/categoriesSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/google/questions_and_answers/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/google/my_business_info/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/google/reviews/task_postSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/google/extended_reviews/task_postSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/business_data/google/my_business_updates/task_postSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/business_data/google/reviews/task_get/:idSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/business_data/google/extended_reviews/task_get/:idSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/business_data/google/my_business_updates/task_get/:idSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/keywords_data/google_ads/search_volume/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/keywords_data/google_ads/keywords_for_keywords/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/serp_competitors/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/relevant_pages/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/related_keywords/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/ranked_keywords/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_suggestions/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_overview/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/keyword_ideas/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/dataforseo_labs/google/domain_rank_overview/liveSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/on_page/lighthouse/live/jsonSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/organic/live/advancedSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/organic/task_postSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/serp/google/organic/task_get/advanced/:idSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/maps/live/advancedSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/maps/task_postSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/serp/google/maps/task_get/advanced/:idSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/local_finder/live/advancedSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/live/advancedSee the live 402 challenge
-POST /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/task_postSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/serp/google/ai_mode/task_get/advanced/:idSee the live 402 challenge
-GET /api/providers/api.dataforseo.com/v3/serp/google/locations/:isoSee the live 402 challenge
-GET /api/providers/api.context.dev/v1/web/scrape/html$0.004
-GET /api/v1/twitter/get/:ref$0.005
-GET /api/v1/twitter/search/:query$0.005
-GET /api/v1/reddit/get/:ref$0.005
-GET /api/v1/reddit/search/:query$0.01
-GET /api/v1/web/search/:query$0.01
-GET /api/v1/web/fetch/*$0.002
-GET or POST /api/v1/twitter/tweets/search$0.005
-GET or POST /api/v1/twitter/tweets/:id$0.001
-GET or POST /api/v1/twitter/tweets$0.004
-GET or POST /api/v1/twitter/tweets/:id/replies$0.004
-GET or POST /api/v1/twitter/tweets/:id/quotes$0.004
-GET or POST /api/v1/twitter/tweets/:id/retweeters$0.004
-GET or POST /api/v1/twitter/tweets/:id/thread$0.004
-GET or POST /api/v1/twitter/tweets/:id/article$0.005
-GET or POST /api/v1/twitter/users/search$0.004
-GET or POST /api/v1/twitter/users/relationship$0.001
-GET or POST /api/v1/twitter/users/:ref$0.001
-GET or POST /api/v1/twitter/users$0.004
-GET or POST /api/v1/twitter/users/:ref/tweets$0.004
-GET or POST /api/v1/twitter/users/:ref/mentions$0.004
-GET or POST /api/v1/twitter/users/:ref/followers$0.004
-GET or POST /api/v1/twitter/users/:ref/following$0.004
-GET or POST /api/v1/twitter/users/:ref/verified_followers$0.004
-GET or POST /api/v1/twitter/lists/:id/tweets$0.004
-GET or POST /api/v1/twitter/lists/:id/members$0.004
-GET or POST /api/v1/twitter/trends$0.001
-POST /api/v1/inference/v1/chat/completionsVaries by model and token count
-POST /api/v1/inference/v1/messagesVaries by model and token count

Pay with USDC on Base or Solana through x402, or with USDC.e on Tempo through MPP.

Nothing is hardcoded. The table mirrors the live 402 challenge, which is the source of truth for the price and accepted assets. Read the challenge for your request before paying.

Prepaid balance & API key

Prefer not to attach a wallet per call? Sign in at glim.sh/app, top up a balance, and create an API key. Send it as an x-api-key header (or Authorization: Bearer) on REST, or connect the MCP server over OAuth — calls are billed against your balance:

REST — API key
# Prepaid balance: top up at glim.sh/app, then send your key
curl -X POST https://glim.sh/api/v1/web/search \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"x402 protocol"}'

Full API reference

Every endpoint, parameter, and example response lives in the machine-readable spec:

  • Interactive API reference — browse and try every endpoint in the browser
  • OpenAPI spec — the raw OpenAPI 3.1 document for codegen and tooling
  • llms.txt — a compact, agent-readable index of tools, prices, and the payment flow