{"id":925,"date":"2024-01-28T13:29:03","date_gmt":"2024-01-28T13:29:03","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=925"},"modified":"2024-01-29T10:14:06","modified_gmt":"2024-01-29T10:14:06","slug":"get-categories","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=925","title":{"rendered":"Get categories"},"content":{"rendered":"\r\n<h2>Get categories<\/h2>\r\n<h5>AUTHORIZATIONS:&gt; <i>access_token<\/i><\/h5>\r\n<h5>QUERY\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"parent_id\">parent_id<\/td>\r\n<td>integer\r\n<p>Parent category ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<h3>Responses<\/h3>\r\n<p><strong>200<\/strong><\/p>\r\n<p>Status 200<\/p>\r\n<h5>RESPONSE SCHEMA:\u00a0application\/json<\/h5>\r\n<p>Array<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"id\">id<\/td>\r\n<td>integer\r\n<p>Category ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"name\">name<\/td>\r\n<td>string\r\n<p>Category name<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"parent_id\">parent_id<\/td>\r\n<td>integer\r\n<p>Parent category ID<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"photos_limit\">photos_limit<\/td>\r\n<td>integer\r\n<p>Information how many photos can be posted for adver in given category<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"is_leaf\">is_leaf<\/td>\r\n<td>boolean\r\n<p>Is this category a leaf in category tree. If true that means that category has no children<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/categories <code>GET\r\n\/categories\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"id\": 1291,\r\n\"name\": \"Akcesoria kuchenne\\\",\r\n\"parent_id\": 1409,\r\n\"photos_limit\": 0,\r\n\"is_leaf\": true\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/categories Response samples 200 Content type application\/json [ { &#8220;id&#8221;: 1291, &#8220;name&#8221;: &#8220;Akcesoria kuchenne\\&#8221;, &#8220;parent_id&#8221;: 1409, &#8220;photos_limit&#8221;: 0, &#8220;is_leaf&#8221;: true } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get categories AUTHORIZATIONS:&gt; access_token QUERY\u00a0PARAMETERS parent_id integer Parent category ID Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json Array id integer Category ID name string Category name parent_id integer Parent category ID photos_limit integer Information how many photos can be posted for adver in given category is_leaf boolean Is this category a leaf in category tree. If&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=925\" title=\"Read Get categories\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/925"}],"collection":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=925"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/925\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}