{
    "version": "ujb.site-guide/v1",
    "site": "Barnes & Noble",
    "domain": "barnesandnoble.com",
    "category": "ecommerce",
    "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": [
                "detail"
            ],
            "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://www.barnesandnoble.com/w/miss-wolcotts-ghost-louise-penny/1149344440",
            "playground": "https://ujeebu.com/playground?endpoint=scrape&url=https%3A%2F%2Fwww.barnesandnoble.com%2Fw%2Fmiss-wolcotts-ghost-louise-penny%2F1149344440&js=true&autosend=0&uj_from=site-guide",
            "recipes": [
                {
                    "page_kind": "detail",
                    "label": "Product pages",
                    "recipe": null,
                    "call": null,
                    "credits": 1,
                    "credits_label": "1 credit",
                    "validated_at": "2026-12-03T15:48:42Z",
                    "params": {
                        "js": false
                    },
                    "extract_rules": {
                        "product": {
                            "type": "fn",
                            "fn": "const all = [...document.querySelectorAll('script[type=\"application/ld+json\"]')].map(e => { try { return JSON.parse(e.textContent); } catch (x) { return null; } }).flat().flatMap(d => d && d['@graph'] ? d['@graph'] : [d]); const p = all.find(d => d && d['@type'] === 'Product'); if (!p) return null; const g = all.find(d => d && d['@type'] === 'ProductGroup') || {}; const o = [].concat(p.offers || [])[0] || {}; const r = p.aggregateRating || {}; const av = String(o.availability || '').split('/').pop() || null; const formats = [].concat(g.hasVariant || []).map(v => ({ format: (v.bookFormat ? String(v.bookFormat).split('/').pop() : null) || (v.name && v.name !== p.name ? v.name : null), sku: v.sku || null, url: v.url || null })).filter(v => v.sku); const dec = v => { const t = document.createElement('textarea'); t.innerHTML = String(v || ''); return t.value.replace(/\\s+/g, ' ').trim(); }; return { title: dec(p.name) || null, price: o.price ? String(o.price) : null, currency: o.priceCurrency || null, availability: av, condition: o.itemCondition ? String(o.itemCondition).split('/').pop() : null, rating: r.ratingValue ? String(r.ratingValue) : null, review_count: r.reviewCount ? String(r.reviewCount) : null, publisher: dec(g.publisher && (g.publisher.name || g.publisher)) || null, published: g.datePublished || null, isbn: (o.url && (o.url.match(/ean=(\\d{13})/) || [])[1]) || null, description: dec(g.description || p.description).slice(0, 1500) || null, image: p.image || g.image || null, formats: formats.length ? formats : null, url: location.href.split('?')[0] };"
                        }
                    },
                    "fields": {
                        "product.availability": "text",
                        "product.condition": "text",
                        "product.currency": "text",
                        "product.description": "text",
                        "product.image": "image URL",
                        "product.isbn": "number (as text)",
                        "product.price": "number (as text)",
                        "product.publisher": "text",
                        "product.rating": "number (as text)",
                        "product.review_count": "number (as text)",
                        "product.title": "text",
                        "product.url": "URL"
                    },
                    "validated_on": [
                        "https://www.barnesandnoble.com/w/miss-wolcotts-ghost-louise-penny/1149344440",
                        "https://www.barnesandnoble.com/w/a-married-little-christmas-abby-jimenez/1149363322"
                    ],
                    "url_pattern": "https://www.barnesandnoble.com/w/{slug}/{id}",
                    "listing_template": null,
                    "pagination": null
                }
            ]
        }
    ],
    "guide_url": "https://ujeebu.com/scrape/barnesandnoble",
    "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"
}