Answer the question
In order to leave comments, you need to log in
VK api. How to get json of all Olegs from the city of Kukuev?
Show examples of users.search
(I already wrote users.search?q=Oleg&access_token=********** so far it swears at the wrong token, although I inserted the protected key as it is, it’s not clear what to do next
Answer the question
In order to leave comments, you need to log in
Possible Cause of the Error
The users.get() method can be called with one of three key types:
users.get()
is fired, but users.search()
no token error is returned, it is most likely that a Community token or an Application Service Key is being used. users.search()
search only in city N, you will first need to find id
this city N in the Directory of VK cities. There is a database.getCities() method for this - clicking on the link (at the bottom of the page) will perform a search and return several settlements similar to Kukuevo, each with its ownid
. users.search()
you will pass the following parameters to the method:v=5.101
— API version, requiredaccess_token=XXXXX
- User token in any VK applicationcount=1000
- without this parameter will return only 20 resultsq=Олег
- search stringcity=123
— id of the city of Kukuyevo, obtained earlier in database.getCities()sex=2
- male gender (optional)age_from=18
- the desired Oleg graduated from schoolage_to=24
- probably, the desired Oleg has not yet received a pensionDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question