> ## Content Index
> Fetch the complete content index at: https://serpapi.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Filtering Google Images and Google Videos results
- URL: https://serpapi.com/blog/filtering-google-images-and-google-videos-results/
- Published: 2023-06-08T12:54:19.000Z
- Updated: 2024-08-19T11:12:36.000Z
- Description: Explore filtering options for Google Images and Google Videos results
- Author: Bartek Marmolowski
- Tags: Tips&Tricks

##   
Introduction

Similarly to regular Google Search and Google News, Google Images and Video also have multiple filtering options to help users find the results they are looking for. In this blog post, we will try to cover most of them with live examples from our APIs.

## Common filtering options

Several filtering options work for both Google Images and Google Videos APIs. Those include:

- [safe parameter to exclude explicit content](https://serpapi.com/blog/filtering-google-search-and-google-news-results/#extracting-non-adult-results-with-the-safe-filter)
- [nfpr parameter to force Google to show results even when the spelling is considered incorrect](https://serpapi.com/blog/filtering-google-search-and-google-news-results/#showing-precise-results-with-the-nfpr-filter)
- [filter parameter if you don't want Google to exclude or omit similar or duplicate results](https://serpapi.com/blog/filtering-google-search-and-google-news-results/#getting-all-results-for-your-query-with-the-filter-parameter)

The in-depth explanation for each of the mentioned parameters is linked above, as they were covered in the previous blog post about filtering options in Google Search and Google News APIs. You can also test them using our Playground, where you can choose both [Google Images](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en) and [Google Videos](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee) APIs.

## Using `tbs` parameter to display certain results

While we already covered how to [set the date using the tbs parameter](https://serpapi.com/blog/filtering-google-search-and-google-news-results/#common-google-search-and-google-news-tbs-values) in the Google Search and Google News APIs filtering blog, it's the same in Google Images and Google Videos. We will focus on the different values of the `tbs` parameter to get certain results.

### Google Videos `tbs` values

You can filter Google Videos in many ways. Below you can find a couple of them. Please note that Google evolves dynamically, and while writing this blog post, those values are relevant; they might not be in the future if Google decides so.

Google allows filtering videos by duration. Specifically, there are three video durations that you can set for your search:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-5.png)

Options for the duration parameter in Google Videos

- [Short (0-4 min) with the tbs=dur:s parameter](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=dur%3As)
- [Medium (4-20 min) with the tbs=dur:m parameter](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=dur%3Am)
- [Long (20+ min) with the tbs=dur:l parameter](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=dur%3Al)

On top of the duration filter, you can search for high-quality videos or videos with closed captions. Below you can find examples from our Playground with the correct `tbs` parameter used for each:

- [High-quality video with the tbs=hq:h parameter](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=hq%3Ah)
- [Closed-captioned videos with the tbs=cc:1 parameter](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=cc%3A1)

There is one more filter for Google Videos: the source filter. However, using it is more complex, as the `tbs` values are encrypted for each website. The easiest way to get the results from a specific source is to go to search with Google Videos and copy the `tbs` value from the URL once the correct source is set:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-6.png)

How to find source value for the `tbs` parameter

Below you can find a couple of examples with the most popular sources. You can use them as a reference for your API calls with Google Videos API or find the value for another source using the abovementioned method.

- [Videos with YouTube as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAANOuzC8tKU1K1UvOz1Ury0xJzddLLCrRK8hRS07MK0sEC6fn56fnQFSUGxcnZ-Tn5xSDefl5qWClAMy8IOBFAAAA)
- [Videos with Instagram as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAACXHQQqAMAwEwN94EfxTWlIbpK40G6S%5F1F-JtZrfbKeeUcVSMrQP0MGpuIRjlN18jdaa947G20k2qFuDKfKxtU5NOAAAA)
- [Videos with Twitter as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAACXHQQqAMAwEwN94EfxTWlIbpK40G6S%5F1F-Jtxm6nnFPGUTG2DtDDqLmFYJTfO18jdWa847G20k2qFuDKfINx5jROAAAA)
- [Videos with Facebook as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAACXHQQqAMAwEwN94EfxTWlIbpK40G6S%5F1F-Jtxm6nnFPGUTG2DtDDqLmFYJTffI3UmfaOx9pK702qFuDKfTf2kOdOAAAA)
- [Videos with TikTok as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAANMuycwuyc%5F1WS87PVavMLy0pTUoFszPy80uKSzNLILzkvDwonZQMZpSUZ5aUpBaB2QBxDBPWQwAAAA)
- [Videos with Twitch as a source](https://serpapi.com/playground?engine=google%5Fvideos&q=Coffee&tbs=srcf%3AH4sIAAAAAAAAANMuKc8sSc7QKylTq8wvLSlNStVLzs9VA4mWpBaB2eX5RTkp-WkliXnZxXqJxZmJqCKppWrpibmpRYl5JWDlAICDaMZSAAAA)

### Google Images `tbs` values

Just like with Google Videos, you can filter Google Images with the `tbs` filter in various ways. Below you will find examples of valid `tbs` values.

The first filter I'd like to discuss is the size filter. It's commonly used with Google Images, and you can set it generally with small, medium, and large images, but you can also set specific sizes:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-9.png)

Size filter

- [Icon-sized images with the tbs=isz:i parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Ai)
- [Medium images with the tbs=isz:m parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Am)
- [Large images with the tbs=isz:l parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Al)
- [Images larger than 400x300 with the isz:lt,islt:qsvga parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3Aqsvga)
- [Images larger than 640×480 with the isz:lt,islt:vga parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3Avga)
- [Images larger than 800×600 with the isz:lt,islt:svga parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3Asvga)
- [Images larger than 1024×768 with the isz:lt,islt:xga parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3Axga)
- [Images larger than 2 MP with the isz:lt,islt:2mp parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3A2mp)
- [Images larger than 4 MP with the isz:lt,islt:4mp parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3A4mp)
- [Images larger than 8 MP with the isz:lt,islt:8mp parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=isz%3Alt%2Cislt%3A8mp)

Another filter you can use is color. You can set your `tbs` parameter to only search images with a certain color theme or with transparent background:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-8.png)

Color filter

- [Images in full color with the tbs=ic:color parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=ic%3Acolor)
- [Black and white images with the tbs=ic:gray parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=ic%3Agray)
- [Images with transparent backgrounds with the tbs=ic:trans parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=ic%3Atrans)
- [Images in specific colors with the tbs=ic:specific,isc:X, where the X is the color you'd like to use for filtering (e.g., red, yellow, blue). The red color was used in this example](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=ic%3Aspecific%2Cisc%3Ared).

The next filter we're going to discuss is the Type. You can search for specific kinds of images, including GIFs, Clip art, and more. As always, please refer to the examples below to learn more about how to use those filters with SerpApi:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-10.png)

Type filter

- [Clip art-type images with the tbs=itp:clipart parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=itp%3Aclipart)
- [Line Drawing-type images with the tbs=itp:lineart parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=itp%3Alineart)
- [GIF-type images with the tbs=itp:animated parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=itp%3Aanimated)
- [Images focused on the face with the tbs=itp:face parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=itp%3Aface)
- [Photos with the tbs=itp:photo parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=itp%3Aphoto)

The last type of the `tbs` parameter specific to Google Images is Use Rights. There are two options you can choose from; **Creative Common Licenses** and **Commercial & other licenses:**

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-11.png)

Usage Rights filter

- [Images with the Creative Common Licenses with the tbs=sur:cl parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=sur%3Acl)
- [Images with Commercial & other licenses with the tbs=sur:ol parameter](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&tbs=sur%3Aol)

While we discussed examples with each of the `tbs` parameters used alone, you can combine multiple options in one if you'd like to filter results more narrowly. For example, you can search for [blue Football GIFs with Commercial & other licenses](https://serpapi.com/playground?engine=google%5Fimages&q=Football&gl=us&hl=en&tbs=ic%3Aspecific%252Cisc%3Ablue%252Citp%3Aanimated%252Cisz%3Al%252Csur%3Aol).

## Using the `chips` parameter with Google Images

While `tbs` parameter allows you to filter results to your needs, you can also use the `chips` parameter to search images within specific categories:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-12.png)

Categories accessible through `chips` parameter

No list specifies values for all categories, and the easiest way to find categories for your search is to make an API call with SerpApi and see in the JSON response what values are available under the `suggested_searches` block:

![](https://storage.ghost.io/c/a5/00/a5004977-0dd2-4bcd-9292-dd0e05d4c59e/content/images/2023/06/image-13.png)

`suggested_searches` block with specific `chips` values

Below you can find a couple of examples from our Playground:

- [Coffee images from the "Cup" category](https://serpapi.com/playground?engine=google%5Fimages&q=Coffee&gl=us&hl=en&chips=q%3Acoffee%2Cg%5F1%3Acup%3AjpIPjjhbHJw%253D)
- [Football images from the "Soccer" and "World Cup" categories](https://serpapi.com/playground?engine=google%5Fimages&q=Football&gl=us&hl=en&chips=q%3Afootball%2Cg%5F1%3Asoccer%3ApV4rsyUbyoA%253D%2Cg%5F1%3Aworld%2Bcup%3Auzz6e42rt4U%253D%22)

## Conclusion

As mentioned before, we already discussed `tbs` values for Time filters in the [Google Search and Google News blog post](https://serpapi.com/blog/filtering-google-search-and-google-news-results/). If you notice that some filters are not covered by this blog post, please contact us at [**contact@serpapi.com**](https://serpapi.com/blog/filtering-google-search-and-google-news-results/) or report the issue yourself on our [Public Roadmap](https://github.com/serpapi/public-roadmap).

---

> Check our [Tips and Tricks blog post](https://serpapi.com/blog/tips-and-tricks-of-google-search-api/#advanced-search-operators)  
> Use [the Playground](https://serpapi.com/playground) to test our APIs  
> Join us on [Twitter](https://twitter.com/serp%5Fapi) | [YouTube](https://www.youtube.com/channel/UCUgIHlYBOD3yA3yDIRhg%5Fmg)