{"id":935,"date":"2024-01-28T13:39:51","date_gmt":"2024-01-28T13:39:51","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=935"},"modified":"2024-01-29T11:42:40","modified_gmt":"2024-01-29T11:42:40","slug":"get-category-suggestions","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=935","title":{"rendered":"Get category suggestions"},"content":{"rendered":"\r\n<h2>Get category suggestions<\/h2>\r\n<p>&nbsp;<\/p>\r\n<p>Gets category suggestions for a given Ad title<\/p>\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=\"q\">q required<\/td>\r\n<td>string\u00a0&gt;= 3 characters\r\n<p>Ad title<\/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=\"path\"><button aria-label=\"expand path\">path<\/button><\/td>\r\n<td>Array of\u00a0objects\r\n<p>Parent categories in ascending order<\/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\/suggestion <code>GET\r\n\/categories\/suggestion\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"id\": 451,\r\n\"name\": \"Pozosta\u0142a elektronika\",\r\n\"path\": []\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/categories\/suggestion Response samples 200 Content type application\/json [ { &#8220;id&#8221;: 451, &#8220;name&#8221;: &#8220;Pozosta\u0142a elektronika&#8221;, &#8220;path&#8221;: [] } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get category suggestions &nbsp; Gets category suggestions for a given Ad title AUTHORIZATIONS:&gt; access_token QUERY\u00a0PARAMETERS q required string\u00a0&gt;= 3 characters Ad title Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json Array id integer Category ID name string Category name path Array of\u00a0objects Parent categories in ascending order OLX Production Server https:\/\/www.olx.ro\/api\/partner\/categories\/suggestion GET \/categories\/suggestion Response samples 200 Content&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=935\" title=\"Read Get category suggestions\">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\/935"}],"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=935"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/935\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}