Autom

Make your first search request

Call the Google Search endpoint with a keyword.

Call GET /v1/google/search with the query parameter and your API key in the x-api-key header.

import os
import requests

API_KEY = os.environ["AUTOM_API_KEY"]


def get(path, params):
    response = requests.get(f"https://api.autom.dev{path}", headers={"x-api-key": API_KEY}, params=params)
    if not response.ok:
        raise SystemExit(f"Error {response.status_code}: {response.text}")
    return response.json()


data = get("/v1/google/search", {"query": "best python web scraping libraries", "gl": "us", "hl": "en"})
print(data)