Google Refine By API

For some searches, Google search includes a "Refine by" block. SerpApi is able to scrape, extract and make sense of this information.

API Examples

JSON structure overview

{
  ...
  "refine_by_%category%": [
    {
      "link": "String - Link to item",
      "title": "String - Displayed title",
      "thumbnail": "String - Displayed thumbnail of item",
    },
  ],
  ...
}

Results for: 4k tv

Results for: 4k tv

JSON Example

{
  ...
  "refine_by_brand": [
    {
      "link": "https://www.google.com/search?gl=us&hl=en&q=samsung+4k+tv&sa=X&ved=2ahUKEwjl9uvRmJfmAhXkMn0KHR57Dj0Q_sUBKAAwIHoECBMQAg",
      "title": "Samsung",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcQDun_UXwqti_nu1ETshL-XGMp3X86POayPFfVOJHnp7hvmohgRyf1Wtx8-_llKoewJcgUZhUKqS-kPVBsPvdtexVClLnIUdG7ADJNxDetoBRNGXnKTEV9owA"
    },
    {
      "link": "https://www.google.com/search?gl=us&hl=en&q=lg+4k+tv&sa=X&ved=2ahUKEwjl9uvRmJfmAhXkMn0KHR57Dj0Q_sUBKAEwIHoECBMQAw",
      "title": "LG",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcSgIo_cBrEbRuapbpCnN5lu66zyM8Yr6rvS6xfk7iIExqJSx13vpQgXi0OvOSCWslUdox5mZl26Xu5QUDpsGJxkKG0YZaVwu_QHYq2oH0tzf4LHwx3OlXlPTg"
    },
    {
      "link": "https://www.google.com/search?gl=us&hl=en&q=sony+4k+tv&sa=X&ved=2ahUKEwjl9uvRmJfmAhXkMn0KHR57Dj0Q_sUBKAIwIHoECBMQBA",
      "title": "Sony",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRXa5XcW3uRgtmt7lrq25V5_oExB2NtVvDH3z2mKA5ZcH5G0nliTraVfAUhocTxPdwr4wNbQNFXlmAlQ5f9druNMKTkKIw7NjO5mJDjUU_SayxCDe49324a"
    },
    ...
    ...
  ]
  ...
}

Results for: ps4 in Japan

For non-english searches the result key would be "refine_by_item_types".

Results for: ps4 in Japan

JSON Example

{
  ...
  "refine_by_item_types": [
    {
      "link": "https://www.google.co.jp/search?hl=ja&gl=jp&q=ps4+rpg&sa=X&ved=2ahUKEwjk19GjmrLmAhXMrVkKHexZBUgQ_sUBKAAwFnoECAwQAg",
      "title": "RPG",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcQ8iQT6rK4XQZgCLbuQ7l0EjwV7dTrXU-cevk93eFmBaRZQfSm1d5nKE2upC6_6lXAUGqts6fnuWX5izhMS5cyKbji8vIDZ0iulOSkrYGLRAxIdLWWM9yK4"
    },
    {
      "link": "https://www.google.co.jp/search?hl=ja&gl=jp&q=ps4+%E3%82%A2%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3&sa=X&ved=2ahUKEwjk19GjmrLmAhXMrVkKHexZBUgQ_sUBKAEwFnoECAwQAw",
      "title": "アクションゲーム",
      "thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcTa-k7KjSvBaM0U4VoNJqscbGSw0yUewNR0HxVXxpTo8FgKeYNaI2kwhWlt2fyHqwu0gSPu9yZ9ksrSgc2KiLehY8uoGQFKRoiRxcdg-sQWt7fjWAuH1VZbz0c"
    },
    {
      "link": "https://www.google.co.jp/search?hl=ja&gl=jp&q=ps4+%E3%83%AC%E3%83%BC%E3%82%B9%E3%82%B2%E3%83%BC%E3%83%A0&sa=X&ved=2ahUKEwjk19GjmrLmAhXMrVkKHexZBUgQ_sUBKAIwFnoECAwQBA",
      "title": "レースゲーム",
      "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcSFohK8834FD1hx7UO2XSz83Pyy6n6ynumnkY4LVrOyScyUuYeh4RKYLKptuQHKJSr7upOl87a2aUupDy4srQiNcfKh7fRwQX0WDaLhSqeXiPRkZ47_Dp6Q5A"
    },
    ...
  ]
  ...
}

Results for: spring dresses on top of the page in mobile

Results for: spring dresses on top of the page in mobile

JSON Example

{
  ...
  "refine_by_item_types": [
    {
      "title": "Women",
      "link": "https://www.google.com/search?hl=en&q=women+spring+dresses&gl=us&sa=X&ved=2ahUKEwijuYv32M_4AhWefTABHYpADGgQip4GKAB6BAgDEAM",
      "thumbnail": "https://serpapi.com/searches/62bab7407708440c7b3fdb5c/images/6f5c96310e228bebc14efee40bac51af1c95b088591996c51fb73644598f78e62c6e83ab66f6f466.webp"
    },
    {
      "title": "Girls",
      "link": "https://www.google.com/search?hl=en&q=girls+spring+dresses&gl=us&sa=X&ved=2ahUKEwijuYv32M_4AhWefTABHYpADGgQip4GKAF6BAgDEAQ",
      "thumbnail": "https://serpapi.com/searches/62bab7407708440c7b3fdb5c/images/6f5c96310e228bebc14efee40bac51af7fe0a105f0e6fdeebb9b92aaeb5eef1c1899bf1c745eb0f3.webp"
    },
    {
      "title": "Maxi",
      "link": "https://www.google.com/search?hl=en&q=maxi+spring+dresses&gl=us&sa=X&ved=2ahUKEwijuYv32M_4AhWefTABHYpADGgQip4GKAJ6BAgDEAU",
      "thumbnail": "https://serpapi.com/searches/62bab7407708440c7b3fdb5c/images/6f5c96310e228bebc14efee40bac51af60731257df4c859e93ea2fcd0d7c1a8e14d698ef4e5bd84b.webp"
    },
    ...
  ]
  ...
}