{"id":916,"date":"2024-01-28T13:22:36","date_gmt":"2024-01-28T13:22:36","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=916"},"modified":"2024-01-29T10:12:45","modified_gmt":"2024-01-29T10:12:45","slug":"get-locations","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=916","title":{"rendered":"Get locations"},"content":{"rendered":"\r\n<h2>Get locations<\/h2>\r\n<h5>AUTHORIZATIONS:<\/h5>\r\n<p><i>access_token<\/i><\/p>\r\n<h5>QUERY\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"latitude\">latitude required<\/td>\r\n<td>number\r\n<p>Location latitude<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr>\r\n<td title=\"longitude\">longitude required<\/td>\r\n<td>number\r\n<p>Location longitude<\/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<p>OLX Production Server<\/p>\r\n<p>https:\/\/www.olx.ro\/api\/partner\/locations <code>GET\r\n\/locations\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n[\r\n{\r\n\"city\": {},\r\n\"district\": {}\r\n}\r\n]\t\t\t<\/code> <button>Copy<\/button> GET \/locations Response samples 200 Content type application\/json [ { &#8220;city&#8221;: {}, &#8220;district&#8221;: {} } ] Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get locations AUTHORIZATIONS: access_token QUERY\u00a0PARAMETERS latitude required number Location latitude longitude required number Location longitude Responses 200 Status 200 OLX Production Server https:\/\/www.olx.ro\/api\/partner\/locations GET \/locations Response samples 200 Content type application\/json [ { &#8220;city&#8221;: {}, &#8220;district&#8221;: {} } ] Copy GET \/locations Response samples 200 Content type application\/json [ { &#8220;city&#8221;: {}, &#8220;district&#8221;: {} }&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=916\" title=\"Read Get locations\">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":[79],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/916"}],"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=916"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/916\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}