A
A
Andrey Frolov2018-05-24 17:27:27
In contact with
Andrey Frolov, 2018-05-24 17:27:27

How to find only posts of users (but not communities) in VK using the newsfeed.search method?

Otherwise, all records are returned, most of which are community posts, but somehow I don’t want to sort in the script :)
Maybe there is a necessary analogue to the newsfeed.search method ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur, 2018-05-24
Saifulmulukov @TiersWar

If you add the parameter "extended = 1" and "fields = "type"" to the request, then the response will contain an additional field "type" if it is a community, and not if it is a user.
UPD: I found it even easier: owner_id will be with a minus sign if this is a community.
Or is that what you meant when you said

somehow I don't want to sort in the script
?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question