{
  "test": "token",
  "title": "API token in the page",
  "data_version": "1.0.0",
  "seed": 20261102,
  "page": "/hidden/token/",
  "needs": "Needs JS",
  "difficulty": "Medium",
  "what_it_tests": "A table filled from an API that answers 403 unless you send the token an inline script on the page sets.",
  "expect": {
    "rows": 25,
    "endpoint": "/hidden/token/api",
    "method": "GET",
    "header": "X-Api-Token",
    "token": "6427305ccad63153918e84a6f25b7e56",
    "token_lives": "In an inline <script> on /hidden/token/ that sets window.NW_CONFIG.apiToken. It is fixed for this data version.",
    "without_token": {
      "status": 403,
      "content_type": "application/json"
    },
    "wrong_token": {
      "status": 403,
      "content_type": "application/json"
    },
    "in_static_html": 0
  },
  "records": [
    {
      "sku": "NW-TOY-4087",
      "name": "Upwold Quiet Puzzle Box",
      "price": 16.99,
      "stock_count": 10
    },
    {
      "sku": "NW-TOY-4094",
      "name": "Ardley Fen Woven Logic Puzzle",
      "price": 14.99,
      "stock_count": 32
    },
    {
      "sku": "NW-TOY-4101",
      "name": "Marrowdene Folding Puzzle Box",
      "price": 30.99,
      "stock_count": 0
    },
    {
      "sku": "NW-TOY-4108",
      "name": "Quillmere Slim Jigsaw",
      "price": 25.49,
      "stock_count": 30
    },
    {
      "sku": "NW-TOY-4115",
      "name": "Upwold Compact Floor Puzzle",
      "price": 44.49,
      "stock_count": 58
    },
    {
      "sku": "NW-TOY-4122",
      "name": "Fennick & Daw Folding Puzzle Box",
      "price": 45.49,
      "stock_count": 42
    },
    {
      "sku": "NW-TOY-4129",
      "name": "Kestleford Mini Puzzle Box",
      "price": 23,
      "stock_count": 37
    },
    {
      "sku": "NW-TOY-4136",
      "name": "Hollinsgate Low Floor Puzzle",
      "price": 10.99,
      "stock_count": 16
    },
    {
      "sku": "NW-TOY-4143",
      "name": "Quillmere Soft Block Set",
      "price": 136,
      "stock_count": 46
    },
    {
      "sku": "NW-TOY-4150",
      "name": "Orrin Lane Compact Construction Kit",
      "price": 23.49,
      "stock_count": 24
    },
    {
      "sku": "NW-TOY-4157",
      "name": "Marrowdene Soft Construction Kit",
      "price": 42.99,
      "stock_count": 22
    },
    {
      "sku": "NW-TOY-4164",
      "name": "Ardley Fen Travel Magnet Tiles",
      "price": 30.49,
      "stock_count": 60
    },
    {
      "sku": "NW-TOY-4171",
      "name": "Saltgrove Quiet Block Set",
      "price": 75,
      "stock_count": 2
    },
    {
      "sku": "NW-TOY-4178",
      "name": "Pellwick Brushed Magnet Tiles",
      "price": 120.49,
      "stock_count": 5
    },
    {
      "sku": "NW-TOY-4185",
      "name": "Brindlecote Soft Construction Kit",
      "price": 39.99,
      "stock_count": 1
    },
    {
      "sku": "NW-TOY-4192",
      "name": "Kestleford Large Construction Kit",
      "price": 113,
      "stock_count": 0
    },
    {
      "sku": "NW-TOY-4199",
      "name": "Ardley Fen Round Magnet Tiles",
      "price": 76,
      "stock_count": 13
    },
    {
      "sku": "NW-TOY-4206",
      "name": "Pellwick Brushed Block Set",
      "price": 115.99,
      "stock_count": 0
    },
    {
      "sku": "NW-TOY-4213",
      "name": "Tarrowby Woven Block Set",
      "price": 88.49,
      "stock_count": 12
    },
    {
      "sku": "NW-TOY-4220",
      "name": "Orrin Lane Twin Magnet Tiles",
      "price": 142,
      "stock_count": 39
    },
    {
      "sku": "NW-TOY-4227",
      "name": "Brindlecote Studio Construction Kit",
      "price": 83.99,
      "stock_count": 53
    },
    {
      "sku": "NW-TOY-4234",
      "name": "Quillmere Woven Construction Kit",
      "price": 132,
      "stock_count": 31
    },
    {
      "sku": "NW-TOY-4241",
      "name": "Thistlecombe Soft Block Set",
      "price": 135,
      "stock_count": 44
    },
    {
      "sku": "NW-TOY-4248",
      "name": "Quillmere Soft Block Set II",
      "price": 122,
      "stock_count": 11
    },
    {
      "sku": "NW-TOY-4255",
      "name": "Saltgrove Studio Block Set",
      "price": 151.99,
      "stock_count": 48
    }
  ]
}
