[Yelp Search API] Increased Response Time
When using the Yelp Search API to search for "business name" and "address", the response time is significantly increased (90.04 seconds), and the response returns a KeyError: 'organic_results'.
- Call the Yelp Search API using the following parameters:
- find_desc: "business name"
- find_loc: "address"
- Observe the increased response time (90.04 seconds).
- Notice the KeyError: 'organic_results' in the Python traceback.
Expected Behavior: The API should return valid results within a reasonable time frame and include the 'organic_results' field in the response.
Actual Behavior:
- Response time: 90.04 seconds
- Error: KeyError: 'organic_results'
- Full traceback:
Traceback (most recent call last):
File "yelp_placeid.py", line 33, in
getyelpplaceid("business name", "address") File "yelp_placeid.py", line 27, in getyelpplaceid organic_results = results["organic_results"] ~~~~~~~^^^^^^^^^^^^^^^^^^^ KeyError: 'organic_results'
Hi @aakashbohara. Thank you for your report, and we apologize for the issue. We'll investigate it and share an update with you.
Just to update everyone; Yelp has recently made some major changes to the way they handle requests and serve responses that has caused the drop in success rates we have been seeing.
We are currently working on a solution for this, but due to the nature of the change our ETA at this stage is approximately one week. We will provide updates and revisions to the ETA as we know more.
Thank you for your patience, and I'm very sorry for the inconvenience.
Another update; a few different avenues are being explored to resolve this and there has been some great progress with one of them in particular but there is still work to be done to resolve this entirely.
In terms of a revised ETA, I'm estimating that we'll have something by early next week. Once again, thanks everyone for your patience.
We have been able to restore access to the Yelp Search API while we continue on a long term fix.
As this is an interim solution, response times may not be as consistent as prior to the downtime and you may see response times from as little as 1.5s to as high as 30s at this stage.
We will continue to work on improving the response times from this point and will keep this thread updated.
Thanks again everyone for your patience and understanding.
@aakashbohara for visibility: https://github.com/serpapi/public-roadmap/issues/2411#issuecomment-2699366623
Thanks @dsojevic for the update. I've reached out to the customers regarding this temporary fix.
@aakashbohara Thanks for following up on this. Since the fix is only temporary while working on a more long-term solution, we'll keep this thread open for future updates.
I'm closing this issue, as our response times seem to be improved for the Yelp Search API. @aakashbohara or anyone else affected by this issue, can you let us know if you're still experiencing this?
I've updated the title to reflect only the downtime issue. The response times are still elevated, and I've opened a separate issue:
https://github.com/serpapi/public-roadmap/issues/2800
@aakashbohara for visibility