The developer team from a high-volume customer reached out that we should throw a proper error on the `serpapi.search`. I've suggested using a try-catch exception to handle errors. For example: ``` try: search = serpapi.search(q="CoffeeMilk", api_key="", engine="google", location="Austin, Texas", hl="en", gl="us") print(search) print("----------------") except Exception as e: if "429" in str(e): print("You are being rate limited") print(e) else: print("An error occurred") ``` [Intercom](https://app.intercom.com/a/inbox/yzck75jr/inbox/shared/all/conversation/102910000072134?view=List) sidenote: we should probably update our `readme` to show how to handle errors.
Activity
jvmvik commentedon Jul 4, 2025
for high volume workload, I'm in the process of upgrading to aiohttp which x10 faster, and it has a better error handling natively.
jvmvik commentedon Feb 16, 2026
0.2.0 is still under development as of Feb 16.