Images · curl
curl -G https://www.searchapi.io/api/v1/search \ -H "Authorization: Bearer $SEARCHAPI_API_KEY" \ --data-urlencode 'engine=google_images' \ --data-urlencode 'gl=us' \ --data-urlencode 'hl=en' \ --data-urlencode 'q=mid century chair'curl -G https://www.searchapi.io/api/v1/search \ -H "Authorization: Bearer $SEARCHAPI_API_KEY" \ --data-urlencode 'engine=google_images' \ --data-urlencode 'gl=us' \ --data-urlencode 'hl=en' \ --data-urlencode 'q=mid century chair'
The key is read from SEARCHAPI_API_KEY and sent as a Bearer token.