Skip to content
Search Lab
Images · United States · English Change
Country
Language
Type
Color
Shape
Time
SafeSearch
Page
Images · Python
import os

import requests

response = requests.get(
    "https://www.searchapi.io/api/v1/search",
    headers={"Authorization": f"Bearer {os.environ['SEARCHAPI_API_KEY']}"},
    params={
        "engine": "google_images",
        "gl": "us",
        "hl": "en",
        "q": "mid century chair",
    },
)
print(response.json())

The key is read from SEARCHAPI_API_KEY and sent as a Bearer token.