{
    "version": "ujb.site-guide/v1",
    "site": "Stock Analysis",
    "domain": "stockanalysis.com",
    "category": "news",
    "lead": "recipe",
    "status": "working",
    "status_label": "Working",
    "success_rate_7d": 100,
    "checks_7d": 7,
    "last_checked_at": "2026-12-03T23:02:43Z",
    "last_ok_at": "2026-12-03T23:02:43Z",
    "page_types": [
        {
            "page_type": "Public pages",
            "page_kinds": [
                "page"
            ],
            "status": "working",
            "success_rate_7d": 100,
            "checks_7d": 7,
            "endpoint": "/scrape",
            "params": {
                "js": true
            },
            "proxy": "default",
            "measured": true,
            "max_credits": 5,
            "learned_settings": null,
            "example_url": "https://stockanalysis.com/stocks/aapl/",
            "playground": "https://ujeebu.com/playground?endpoint=scrape&url=https%3A%2F%2Fstockanalysis.com%2Fstocks%2Faapl%2F&js=true&autosend=0&uj_from=site-guide",
            "recipes": [
                {
                    "page_kind": "page",
                    "label": "Public pages",
                    "recipe": "stockanalysis",
                    "call": "GET https://api.ujeebu.com/scrape?url=https%3A%2F%2Fstockanalysis.com%2Fstocks%2Faapl%2F&recipe=stockanalysis",
                    "credits": 1,
                    "credits_label": "1 credit",
                    "validated_at": "2026-12-03T15:49:45Z",
                    "params": {
                        "js": false
                    },
                    "extract_rules": {
                        "quote": {
                            "type": "fn",
                            "fn": "const t = el => el ? el.textContent.replace(/\\s+/g, ' ').trim() : ''; const h1 = document.querySelector('h1'); if (!h1) return null; const head = t(h1.parentElement); const m = head.match(/([A-Za-z][A-Za-z .]*):\\s*([A-Za-z0-9.\\-]+)\\s*·[^·]*·\\s*([A-Z]{3})/) || []; const pe = document.querySelector('.text-4xl'); const chEl = pe ? pe.nextElementSibling : null; const ch = t(chEl).match(/^([+-]?[\\d.,]+)\\s*\\(([+-]?[\\d.,]+%)\\)/) || []; const stats = {}; document.querySelectorAll('table tr').forEach(r => { const c = r.querySelectorAll('td'); if (c.length === 2) { const k = t(c[0]); if (k && !(k in stats)) stats[k] = t(c[1]); } }); const g = k => stats[k] || null; const asof = pe && pe.parentElement && pe.parentElement.parentElement ? (t(pe.parentElement.parentElement).match(/([A-Z][a-z]{2} \\d{1,2}, \\d{4}[^-]*)/) || [])[1] : null; return { symbol: m[2] || null, name: t(h1).replace(/\\s*\\([^)]*\\)\\s*$/, '') || null, exchange: m[1] ? m[1].trim() : null, currency: m[3] || null, price: t(pe) || null, change: ch[1] || null, change_percent: ch[2] || null, market_cap: (g('Market Cap') || '').split(' ')[0] || null, volume: g('Volume'), open: g('Open'), previous_close: g('Previous Close'), day_range: g(\"Day's Range\"), week_52_range: g('52-Week Range'), pe_ratio: g('PE Ratio'), eps: (g('EPS') || '').split(' ')[0] || null, dividend: g('Dividend'), beta: g('Beta'), earnings_date: g('Earnings Date'), as_of: asof ? asof.trim() : null };"
                        }
                    },
                    "fields": {
                        "quote.beta": "number (as text)",
                        "quote.change": "text",
                        "quote.change_percent": "text",
                        "quote.currency": "text",
                        "quote.day_range": "text",
                        "quote.dividend": "text",
                        "quote.earnings_date": "text",
                        "quote.eps": "number (as text)",
                        "quote.market_cap": "text",
                        "quote.name": "text",
                        "quote.open": "number (as text)",
                        "quote.pe_ratio": "number (as text)",
                        "quote.previous_close": "number (as text)",
                        "quote.price": "number (as text)",
                        "quote.symbol": "text",
                        "quote.volume": "number (as text)",
                        "quote.week_52_range": "text"
                    },
                    "validated_on": [
                        "https://stockanalysis.com/stocks/aapl/",
                        "https://stockanalysis.com/stocks/msft/"
                    ],
                    "url_pattern": "https://stockanalysis.com/stocks/{slug}/",
                    "listing_template": null,
                    "pagination": null
                }
            ]
        }
    ],
    "guide_url": "https://ujeebu.com/scrape/stockanalysis",
    "note": "Ujeebu scrapes any public website. These guides are a selection of popular sites we test every day, with settings that work today; a site that is not listed works with the same API: try any URL in the Playground (https://ujeebu.com/playground) or send us the URL (https://ujeebu.com/contact) and we will check it.",
    "billing": "Only HTTP 200 and 404 responses are billed.",
    "auth": "Header ApiKey: <your key>",
    "api_base": "https://api.ujeebu.com",
    "how_to_use_recipes": "GET https://api.ujeebu.com/scrape?url=<page>&recipe=<recipe>: the API applies the recipe's extract_rules and params (yours win when you send them) and answers {\"result\": {...}} with the headers Ujb-Recipe and Ujb-Credits. A recipe with \"recipe\": null is not served by name: POST /scrape with url, the params and extract_rules. Docs: https://ujeebu.com/docs/apis/scrape/recipes"
}