I want to search images using google API under specific licenses. But looking on the API documentation I can't understand how to use it properly. I want to search:
In the documentation I see
https://developers.google.com/custom-search/json-api/v1/reference/cse/list
Can someone tell me what my request should be look like?
Official site of creative commons contain a description of each CC license types.
You can use "cc_publicdomain", "cc_attribute" and "cc_sharealike" like "free to use, share or modify, even commercially"
and "cc_nonderived" like "free to use or share, even commercially".
To set license in the request you can use "rights" parameter and pass target license types by url encoded comma.
Like in this request:
GET https://www.googleapis.com/customsearch/v1?q=swollen+members+night+vision&cx=004646395488064118990%3Aachgbwsn6na&rights=cc_publicdomain%2Ccc_attribute&searchType=image&fields=items&key={YOUR_API_KEY}
Also you can try online "any" google service here and create usable to you requests here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With