Search with tbs

This documentation provides an example of how to send a GET request to the SERP API and interpret the response.

To send a GET request to the SERP API for a news-related query, you can use the following:

  • Bash

  • Javascript

  • Python

  • Go

curl -L 'https://serp-api.netnut.io/search?q=flowers&hl=en&gl=US&udm=2&tbs=ic:gray' \
-H 'Accept: application/json' \
-H 'Authorization: Basic base64(username:password)'

API Responsearrow-up-right

The API will respond with a JSON object containing the search results. Here is an example of the response:

{
"url": "https://www.google.com/search?q=flowers&hl=en&tbs=ic%3Agray&gl=US&start=0&udm=2",
"general": {
    "searchEngine": "google_images",
    "resultsCount": 529000000,
    "searchTime": 0.4,
    "language": "en",
    "device": "desktop",
    "searchType": "text",
    "pageTitle": "flowers - Google Search",
    "timestamp": "2026-01-12T17:02:39.792Z",
    "render": false
},
"input": {
    "originalUrl": "https://www.google.com/search?q=flowers&hl=en&tbs=ic%3Agray&gl=US&start=0&udm=2",
    "jobId": "f797e959-6045-4237-b7c9-b225552f2f08"
},
"images": [
    {
        "title": "Nature draw + outline flowers – COPIC ...",
        "source": "COPIC® Markers",
        "sourceLogo": "https://www.google.com/s2/favicons?domain=copicmarkers.com&sz=64",
        "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQQeMDh9XzRa7so4VO4kW6hzBrgAXiTmxSkiw&s",
        "link": "https://copicmarkers.com/blogs/educational/nature-draw-outline-flowers?srsltid=AfmBOoo04QQyHTm14gqlP88dlkxG_9Vf8DomYYNNiOQGShq_oLwFAINz",
        "original": "http://copicmarkers.com/cdn/shop/articles/nature-draw-outline-flowers.webp?v=1760318806",
        "originalHeight": 900,
        "originalWidth": 1200,
        "rank": 1
    },
    {
        "title": "Dead Flowers' photographs ...",
        "source": "Keith Dotson Photography",
        "sourceLogo": "https://www.google.com/s2/favicons?domain=keithdotson.com&sz=64",
        "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQvEfFOcsMmH7MoZ5TLNnwaqQ8JzPwbMuSQPw&s",
        "link": "https://keithdotson.com/blogs/news/new-photographs-added-to-dead-flowers-portfolio?srsltid=AfmBOoqXvy6f0dyeBmjT3k2Z_N4-XRuRp_feCOTYM0waDZ3Y0WH_WoRi",
        "original": "https://cdn.shopify.com/s/files/1/1417/3230/files/DSC02200-Flower-Blossom-Past-its-Prime-30-x-30-copy.jpg?v=1597233073",
        "originalHeight": 2048,
        "originalWidth": 2048,
        "rank": 2
    },
    .
    .
    .
    {
        "title": "drawing flowers ...",
        "source": "Instagram",
        "sourceLogo": "https://www.google.com/s2/favicons?domain=www.instagram.com&sz=64",
        "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT-uu0b9chYiYJNx5orDlWcVGJf1Qn3Lq_77Q&s",
        "link": "https://www.instagram.com/reel/DQV4JBCiMtS/",
        "original": "https://lookaside.instagram.com/seo/google_widget/crawler/?media_id=3795221937476386168",
        "originalHeight": 960,
        "originalWidth": 540,
        "rank": 100
    }
],
"pagination": {
    "currentPage": 1,
    "nextPage": 2,
    "nextPageLink": "https://www.google.com/search?q=flowers&sca_esv=e9a6b6505834f0c4&hl=en&gl=US&udm=2&tbs=ic:gray&ei=LSllaZT9MdOGwbkP7aDP8Ak&start=10&sa=N",
    "nextPageStart": 10
}

Last updated