# WeeklyMoat API > Weekly value-investing signals as JSON. 966 stocks across 6 markets screened every week with Graham & Buffett criteria. Built for developers, quants and AI agents. Free tier: 500 credits/month, no credit card. Base URL: https://weeklymoat.com/api/v1 Auth: `Authorization: Bearer wm_live_...` (free key at https://weeklymoat.com/api-signup.html) Data refreshes weekly. Output is quantitative screening data, not personalised financial advice. ## Endpoints - GET /status — API health and last screener run timestamp. Free, no key needed. - GET /signals/weekly — this week's buy signals ranked by composite score (total_score). Up to 20 results. 5 credits. - GET /signals/watchlist — stocks approaching the buy zone. Up to 50 results. 3 credits. - GET /screener — all 966 stocks with Graham, Buffett and Deep Value scores. Starter plan or higher. 10 credits. - GET /usage — credit balance and recent call history for the current key. ## Response shapes ### /signals/weekly ```json { "generated": "2026-10-09T23:38:05Z", "total_screened": 966, "buy_signals": [ { "ticker": "0762.HK", "exchange": "HK", "total_score": 14, "pe": 9.6, "pb": 0.40, "roe": 0.042, "margin_of_safety": 0.588, "sector": null, "moat_signals": ["PE<15", "PB<1.5", "DE<0.5", "Earnings+3y", "Dividend", "FCF>0"] } ], "watch_count": 334, "_meta": { "credits_used": 5, "credits_remaining": 495, "plan": "starter" } } ``` ### /signals/watchlist ```json { "generated": "2026-10-09T23:38:05Z", "watch_list": [ { "ticker": "MSFT", "total_score": 8, "pe": 28.5, "sector": null } ], "_meta": { "credits_used": 3, "credits_remaining": 492, "plan": "starter" } } ``` ### /screener Returns buy_list (all buy-qualified stocks with full Graham/Buffett/Deep Value scoring breakdown) and watch_list (top 100 watchlist stocks). Starter plan required. ## Scoring - total_score = sum of Graham score + Buffett score + Deep Value score - Graham: PE<15, PB<1.5, current ratio, debt/equity, 3-year positive earnings, dividends (up to 5 pts) - Buffett: ROE>15%, gross margin>40%, positive FCF, FCF/NI ratio, LT debt coverage (up to 4-5 pts) - Deep Value: NCAV vs market cap, EV/EBIT, P/FCF, Piotroski F-score (up to 5 pts) - margin_of_safety: discount to Graham Number (1 - price/graham_number). E.g. 0.59 = 59% below intrinsic value. - moat_signals: array of passing criteria tags ## Error codes - 401: missing or invalid API key — include `Authorization: Bearer wm_live_xxx` - 402: out of credits — upgrade at https://weeklymoat.com/api#pricing - 403: endpoint not on your plan — /screener requires Starter or higher - 503: screener data temporarily unavailable (weekly refresh in progress) ## For AI agents ### MCP server (Claude Desktop, Cursor, Windsurf) ```json { "mcpServers": { "weeklymoat": { "command": "npx", "args": ["-y", "weeklymoat-mcp"], "env": { "WEEKLYMOAT_API_KEY": "wm_live_YOUR_KEY_HERE" } } } } ``` ### Claude Code ```bash claude mcp add weeklymoat -e WEEKLYMOAT_API_KEY=wm_live_YOUR_KEY_HERE -- npx -y weeklymoat-mcp ``` Tools: get_weekly_signals, get_watchlist, get_screener, get_status, get_usage. ## Docs - [API docs and pricing](https://weeklymoat.com/api) - [OpenAPI spec](https://weeklymoat.com/openapi.json) - [MCP server on npm](https://www.npmjs.com/package/weeklymoat-mcp) - [Terms](https://weeklymoat.com/terms.html)