跳转到主要内容
Access Google search results programmatically using the SERP API.

Quick start

import requests

API_KEY = "YOUR_API_KEY"

response = requests.post(
    "https://api.acedata.cloud/serp/google",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
        "type": "search",
        "query": "best AI APIs 2026",
        "number": 10,
    },
)

results = response.json()
for item in results.get("organic_results", []):
    print(f"{item['title']} - {item['link']}")

Search types

TypeDescription
searchStandard web search results
imagesImage search results
newsNews articles
shoppingProduct listings
videosVideo results
mapsLocation results

Filtering by location and language

response = requests.post(
    "https://api.acedata.cloud/serp/google",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
        "type": "search",
        "query": "AI startups",
        "country": "US",
        "language": "en",
        "range": "month",  # Results from past month
    },
)

Next steps