Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question