APIs / JB Hi-Fi / Categories

JB Hi-Fi: Categories

Categories from JB Hi-Fi as JSON. 1 credit per successful call.

GET /v1/jbhifi/categories

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
pathstringOptionalUp to 200 characters

Example request

JB Hi-Fi
GET/v1/jbhifi/categories
{
  "success": true,
  "data": {
    "categories": [
      {
        "name": "New",
        "handle": "new-at-jb",
        "url": "https://www.jbhifi.com.au/blogs/new-at-jb"
      },
      {
        "name": "Products",
        "children": [
          {
            "name": "Computers & Tablets",
            "children": [
              "…",
              "…",
              "…"
            ]
          },
          {
            "name": "IT Accessories & PC Parts",
            "children": [
              "…",
              "…",
              "…"
            ]
          },
          {
            "name": "TVs & Home Theatre",
            "children": [
              "…",
              "…",
              "…"
            ]
          }
        ]
      },
      {
        "name": "Brands",
        "children": [
          {
            "name": "All featured brands",
            "handle": "brands",
            "url": "https://www.jbhifi.com.au/pages/brands"
          },
          {},
          {
            "name": "Apple",
            "handle": "apple",
            "url": "https://www.jbhifi.com.au/pages/apple"
          }
        ]
      }
    ],
    "total": 9,
    "source": "navigation"
  },
  "meta": {
    "endpoint_family": "categories",
    "upstream_lookups": 1,
    "request_id": "req_61c6cba83f6a46bfb503edf8f060a908",
    "credits_charged": 1,
    "credits_remaining": 4847
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.categories has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
namestring
handlestring
urlurl
childrenobject[]