I’m a bit new to this API, and was wondering if someone could help me for the request to get the parent category of a given venue. For instance, I request a venue that is categories as a ‘bar’, its parent category is ‘nightlife spot’.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I am not sure the API can give you that directly (or in other words, there is no /category/id/parent endpoint or something similar)
What you can do, is get all the categories, build the tree and then you can get the parent by yourself.
To get the categories tree use the /venue/categories endpoint.