If I add a category ID to my api call nothing returns.
If I remove categoryID from url it then works.
?
EDIT -----
I got it to work again.
removed the following category ids:
4bf58dd8d48988d1db941735,
4bf58dd8d48988d1dc941735,
4bf58dd8d48988d1dd941735,
4bf58dd8d48988d1d9941735,
4bf58dd8d48988d1da941735
POST Call sample (removed my lat/lng)
https://api.foursquare.com/v2/venues/search?ll=MY_LATITUDE,MY_LONGITUDE&v=20111107&radius=250&limit=30&categoryId=4bf58dd8d48988d116941735,4bf58dd8d48988d117941735,4bf58dd8d48988d1d7941735,4bf58dd8d48988d11e941735,4bf58dd8d48988d118941735,4bf58dd8d48988d1d8941735,4bf58dd8d48988d119941735,4bf58dd8d48988d1d5941735,4bf58dd8d48988d1d6941735,4bf58dd8d48988d122941735,4bf58dd8d48988d123941735,4bf58dd8d48988d1cc941735,4bf58dd8d48988d1cf941735,4e0e22f5a56208c4ea9a85a0,4bf58dd8d48988d14b941735,4bf58dd8d48988d110941735,4bf58dd8d48988d111941735,4bf58dd8d48988d1c1941735,4bf58dd8d48988d150941735,4bf58dd8d48988d1d2941735&oauth_token=
The category IDs you gave are not listed on https://developer.foursquare.com/docs/explore#req=venues/categories.
When did this request last work? Category IDs are generally quite stable... I'm not aware of them changing anytime recently.
Related
After checking the Walmart Markeptlace API to retrieve all the items in the catalog, you can see that it will return:
errors (array of objects)
itemResponse (array of objects)
additionalAttributes (object)
totalItems (integer)
nextCursor (string)
In my case I have over 2000 items in the catalog, but by default it will just return 20 items with a nextCursor so I can retrieve the next items. Unfortunately, i'm not getting my nextCursor in the response. I tried contacting walmart and been waiting for a reply over 2 weeks, but never got a single reply.
This is what my response looks like:
Is there anybody running into the same issue as me? I really don't know what to do in order to retrieve the nextCursor.
Walmart's documentation is unclear, and contradictory. They could use some good examples. I was having the same problems as you were.
What worked for me was explicitly passing nextCursor=* for the first page.
I know the documentation says that's the default, but that doesn't seem to be the case.
The response will have the nextCursor value for the next page.
We have been using below end point to fetch the Instagram feeds
https://www.instagram.com/saintgobaingroup/?__a=1&max_id=
Later, for further feeds we use to fill the max_id parameter with last entry's id. It was working fine but now Instagram end point seems to have change the response format.
We are able to update the piece of code to match the response. However the max_id parameter seems to be not working now.
We are getting same 12 records even when we have more than 400 records. We are properly updating the max_id parameter like we use to do earlier. But we are unable to get further records only 12 records being getting repeated.
Any idea on this?
Note : As of now we're not focusing on using the Instagram API. We would like to get it done with end point ?__a=1
The answer doesn't work with ?__a=1, but it does get you pagination here: https://stackoverflow.com/a/49266320/929540
Can I get list of all categories that foursquare could return to me ?
https://developer.foursquare.com/docs/responses/category.html (link to category object description)
I know that the new categories could be created, and some deleted. But I just would like to prepare my app to be able to handle some categories in special way, and I need to know in advance what they could be.
Thanks for time in advance.
This should include all possible Foursquare categories. It's this endpoint: https://developer.foursquare.com/docs/api/venues/categories
Foursquare also provides an up-to-date category hierarchy without using the API. Useful if you just want to take a look at the list without doing a call.
Interestingly on that page, they also provide "Supported Countries" where the category "can only appear on venues in those countries".
https://developer.foursquare.com/categorytree
I don't see anything listed in the changelog about the canonicalUrl field being removed from a Foursquare user object, but I am no longer seeing that field being returned.
Specifically, when running a venue details query, the user object located inside of the tips field is missing. I am using v=20120524 as the version.
No it's no longer available. But you just need the user id to generate it :
https://www.foursquare.com/user/{user_id}
We are planning to use foursquare api to get venue in a particular city. I want data of all the food outlets in a particular city. I have managed to get the categories list but not sure how to get venues from that particular category in a particular city or area.
Please share some tutorials or document which i can check out.
One way of doing what you want will be using the Venues Platform for browsing according to a category ID.
Look at venue search API reference.
Example of using it:
I know that 4bf58dd8d48988d11f941735 is nightlife (just picked the first one I saw)
So I will call the API (the ll is someplace in New York):
https://api.foursquare.com/v2/venues/search?ll=40.7268,-73.9972&categoryId=4bf58dd8d48988d11f941735&limit=50&intent=browse&radius=1500&your ids/oauth
Or use the explorer to see results right away.
Important, read the search API and the parameters used here to alter behavior to your needs.
Another very important thing, the API parameters are case sensitive!! (so if they want categoryId, categoryid will not work :) )