Create venue without providing ll - foursquare

This url I am hitting for searching the venues
https://api.foursquare.com/v2/venues/search?ll=undefined%2Cundefined&query=A&limit=25&v=20170721&m=foursquare&client_id=CLIENTID&client_secret=CLIENTSECRET
It gives me the near by venues but I need to get overall venues around the world... So when I don't put the ll it throws error must provide ll
How can I search for all the venues ?
Any help would be appriciated

You can use intent=global param.
e.g.
https://api.foursquare.com/v2/venues/search?intent=global&query=A&limit=25&v=20170721&m=foursquare&client_id=CLIENTID&client_secret=CLIENTSECRET

Related

How can I get checkins in a certain location on Foursquare?

I guess the title is pretty self-explanatory. I want to get all the checkins in a certain area given the latitude and longitude.
All I've been able to find is https://developer.foursquare.com/docs/checkins/recent and https://developer.foursquare.com/docs/venues/venues, but neither of them are useful for me.
I'm pretty sure there has to be a way, but I can't find it.
Use this api and filter by "hereNow" count for each venue, this will give you count of people currently in that location
https://api.foursquare.com/v2/venues/search
more details here: https://developer.foursquare.com/docs/venues/search

Foursquare API: Venues visited by a user sort

For the Foursquare api
Venues visited by a user
https://api.foursquare.com/v2/users/USER_ID/venuehistory
I was wondering if we can change the sort of the venues coming back? It appears to be sorted by alpha. It would be helpful to sort by most recent checkin. Or in addition to the beenHere field add a last_checkin_id: or just date would be fine.
Is there a sort query string parameter that i am missing?
The venuehistory endpoint simply returns all the venues that a user has been to. If you're looking to sort venues by most recent check-in, consider using the user/checkins endpoint instead.

Feature request: Add search radius to the Suggestion Complete Venues api method

I'm integrating the suggestion complete venues search into my site. It's pulling back results from places that are way to far away from the city we want to search in. Can you add a search radius param to the api method?
A radius parameter is in fact available, though documentation for this parameter was missing. Thanks for pointing this out, documentation will be added.

searching venues by name only

i'm building a small application for searching on venues by it's name
i'm using the Foursquare API v2 . the venue search interface
https://developer.foursquare.com/docs/venues/search
the problem is you have to state the LL property or the near property
so queires that work now is search for macdonald's near chigaco
but what if i want to search for all venues with that keyword , without satisfying a place near it ?
You currently need to pass a location (ll or near) for venues/search -- foursquare does not support searching for venues without a geographical scope.
There is a highly experimental "global" intent for venues search, but it's not supported in any way.

Foursquare get venue details

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 :) )

Resources