{"id":974,"date":"2024-01-28T15:25:44","date_gmt":"2024-01-28T15:25:44","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=974"},"modified":"2024-01-29T11:47:12","modified_gmt":"2024-01-29T11:47:12","slug":"get-advert","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=974","title":{"rendered":"Get advert"},"content":{"rendered":"\r\n<h2>Get advert<\/h2>\r\n<h5>AUTHORIZATIONS: <i>access_token<\/i><\/h5>\r\n<h5>PATH\u00a0PARAMETERS<\/h5>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"advertId\">advertId required<\/td>\r\n<td>integer<\/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<table>\r\n<tbody>\r\n<tr>\r\n<td title=\"data\"><button aria-label=\"expand data\">data<\/button><\/td>\r\n<td>object\u00a0(Advert)<\/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\/adverts\/{advertId} <code>GET\r\n\/adverts\/{advertId}\r\nResponse samples\r\n200\r\nContent type\r\napplication\/json\r\n{\r\n\"data\": {\r\n\"id\": 123,\r\n\"status\": \"active\",\r\n\"url\": \"https:\/\/www.olx.ro\/oferta\/url.html\",\r\n\"created_at\": \"2018-02-02 09:35:16\",\r\n\"activated_at\": \"2018-02-02 09:32:52\",\r\n\"valid_to\": \"2018-03-04 09:32:52\",\r\n\"title\": \"This is title\",\r\n\"description\": \"This is description\",\r\n\"category_id\": 123,\r\n\"advertiser_type\": \"private\",\r\n\"external_id\": 12345,\r\n\"external_url\": \"http:\/\/myshop.com\/advert\/123\",\r\n\"contact\": {},\r\n\"images\": [],\r\n\"price\": {},\r\n\"salary\": null,\r\n\"attributes\": [],\r\n\"courier\": null\r\n}\r\n}\t\t\t<\/code> <button>Copy<\/button> GET \/adverts\/{advertId} Response samples 200 Content type application\/json { &#8220;data&#8221;: { &#8220;id&#8221;: 123, &#8220;status&#8221;: &#8220;active&#8221;, &#8220;url&#8221;: &#8220;https:\/\/www.olx.ro\/oferta\/url.html&#8221;, &#8220;created_at&#8221;: &#8220;2018-02-02 09:35:16&#8221;, &#8220;activated_at&#8221;: &#8220;2018-02-02 09:32:52&#8221;, &#8220;valid_to&#8221;: &#8220;2018-03-04 09:32:52&#8221;, &#8220;title&#8221;: &#8220;This is title&#8221;, &#8220;description&#8221;: &#8220;This is description&#8221;, &#8220;category_id&#8221;: 123, &#8220;advertiser_type&#8221;: &#8220;private&#8221;, &#8220;external_id&#8221;: 12345, &#8220;external_url&#8221;: &#8220;http:\/\/myshop.com\/advert\/123&#8221;, &#8220;contact&#8221;: {}, &#8220;images&#8221;: [], &#8220;price&#8221;: {}, &#8220;salary&#8221;: null, &#8220;attributes&#8221;: [], &#8220;courier&#8221;: null } } Copied to clipboard<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Get advert AUTHORIZATIONS: access_token PATH\u00a0PARAMETERS advertId required integer Responses 200 Status 200 RESPONSE SCHEMA:\u00a0application\/json data object\u00a0(Advert) OLX Production Server https:\/\/www.olx.ro\/api\/partner\/adverts\/{advertId} GET \/adverts\/{advertId} Response samples 200 Content type application\/json { &#8220;data&#8221;: { &#8220;id&#8221;: 123, &#8220;status&#8221;: &#8220;active&#8221;, &#8220;url&#8221;: &#8220;https:\/\/www.olx.ro\/oferta\/url.html&#8221;, &#8220;created_at&#8221;: &#8220;2018-02-02 09:35:16&#8221;, &#8220;activated_at&#8221;: &#8220;2018-02-02 09:32:52&#8221;, &#8220;valid_to&#8221;: &#8220;2018-03-04 09:32:52&#8221;, &#8220;title&#8221;: &#8220;This is title&#8221;, &#8220;description&#8221;: &#8220;This is description&#8221;, &#8220;category_id&#8221;:&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=974\" title=\"Read Get advert\">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":[108],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/974"}],"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=974"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/974\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}