Friday, 2 July 2021

The difference of the responses between axios and browser in Foursquare Places API for Venue Search

While I opened the following Foursqaure API request in the browser,

https://api.foursquare.com/v2/venues/search?near=tokyo&client_id=LBPXTL2OS0SAYRDFXR3AB0JDZSCQTFHQFTVTI4YATZ0HDFFX&client_secret=0EUYB2ZK4NEPZVFD4JAXFFCVXNW5Q1GSTILY45402QFSPFSF&v=20180323&limit=1&categoryId=4bf58dd8d48988d181941735

I got a venue with checkinsCount = 26788. But when I send a GET request for the same URL through axios like how I have done in the following codesandbox, I get a different response and the venue's checkinsCount = 0.

https://codesandbox.io/s/stoic-morning-8x2xs?file=/src/App.js

Could anyone tell me an explanation why there is a response difference?



from The difference of the responses between axios and browser in Foursquare Places API for Venue Search

No comments:

Post a Comment