Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
Google Deactivates Web Search API
11–20 of 132 posts
Re: Google Deactivates Web Search API
#12Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
Say you're making an ajax request to this API, you don't necessarily know the status, especially if you're in an "always" handler or something.
Re: Google Deactivates Web Search API
#13#DuckDuckGoLooksUnprofessional It seems pety, but I really feel the duck look is holding it back.
Re: Google Deactivates Web Search API
#14Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
Re: Google Deactivates Web Search API
#15Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
For example, Microsoft Silverlight only returned 200 or 404 status codes: https://msdn.microsoft.com/en-us/library/system.net.httpstat...
Re: Google Deactivates Web Search API
#16Re: Google Deactivates Web Search API
#17For example: https://www.google.com/#q=related:http:%2F%2Fagiliq.com%2Fbl...
It returns pages related to any given page, and works at the specific page level (not just at the domain level, like SimilarWeb's API).
I've migrated to Bing for all other web search needs (way cheaper and without volume limits like Google Custom Search), but Bing does not offer a "related:..." equivalent as far as I can tell.
Re: Google Deactivates Web Search API
#18Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
Depending on the technology you're using to access the API, the HTTP status code may not be exposed from the underlying stack. For example, Microsoft Silverlight only returned 200 or 404 status codes: https://msdn.microsoft.com/en-us/library/system.net.httpstat...
Re: Google Deactivates Web Search API
#19Why do API developers add a HTTP status code in their JSON response, when the HTTP status code is already in the header?
Re: Google Deactivates Web Search API
#20What are the alternatives for a full web search API? Yahoo BOSS closed down a few weeks ago. Bing seems the last man standing. And, unfortunately, none of the ones I've tried are very good; one project I'm working on needs to prioritize newer results over older ones, and only Google had a sort by date option (which I think was also removed in the past).
I've migrated to Bing, myself -- no volume limits, generous free tier, and much cheaper than Google.