{"id":522,"date":"2023-12-11T05:57:01","date_gmt":"2023-12-11T05:57:01","guid":{"rendered":"https:\/\/olxdoc.wpenginepowered.com\/?p=522"},"modified":"2023-12-11T09:03:27","modified_gmt":"2023-12-11T09:03:27","slug":"get-advert-stats","status":"publish","type":"post","link":"https:\/\/doc.olxgroup.com\/api\/?p=522","title":{"rendered":"Get advert stats"},"content":{"rendered":"\n\n\t<p><strong>GET<\/strong>: <a href=\"https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id\/stats\">https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id\/stats<\/a><\/p>\n<p><strong>Permission: <em>read<\/em><\/strong><\/p>\n<h2>Header<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>User-Agent<\/td>\n<td>string<\/td>\n<td>Account email.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h2>Parameter<\/h2>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id<\/td>\n<td>Number<\/td>\n<td>Advert id<\/td>\n<\/tr>\n<tr>\n<td>start<\/td>\n<td>String<\/td>\n<td>Optional Start Date<\/td>\n<\/tr>\n<tr>\n<td>end<\/td>\n<td>String<\/td>\n<td>Optional End Date<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<strong class='bg-tag-blue font-bold tag'>Example request:<\/strong><code>GET \/account\/stats?start=2018-01-01&end=2018-01-30 HTTP\/1.1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN<\/code><button onclick=\"copyJson('copy_19919')\">Copy<\/button>\nGET \/account\/stats?start=2018-01-01&#038;end=2018-01-30 HTTP\/1.1\nUser-Agent: $USER_EMAIL\nContent-Type: application\/json\nAuthorization: Bearer $ACCESS_TOKEN\nCopied to clipboard\n <strong class='text-green font-bold'>Success response:<\/strong><code> HTTP\/1.1 200 OK\n {\n     \"totalAdViews\": {\n         \"description\": \"the description\",\n         \"amountInfo\": \"the amount information\",\n         \"amount\": \"1\",\n         \"variation\": 1,\n         \"showVariationInPercentage\": true,\n         \"formattedVariation\": \"the formatted variation\"\n     },\n...\n }<\/code><button onclick=\"copyJson('copy_20811')\">Copy<\/button>\n HTTP\/1.1 200 OK\n {\n     &#8220;totalAdViews&#8221;: {\n         &#8220;description&#8221;: &#8220;the description&#8221;,\n         &#8220;amountInfo&#8221;: &#8220;the amount information&#8221;,\n         &#8220;amount&#8221;: &#8220;1&#8221;,\n         &#8220;variation&#8221;: 1,\n         &#8220;showVariationInPercentage&#8221;: true,\n         &#8220;formattedVariation&#8221;: &#8220;the formatted variation&#8221;\n     },\n&#8230;\n }\nCopied to clipboard\n \n","protected":false},"excerpt":{"rendered":"<p>GET: https:\/\/www.autovit.ro\/api\/open\/account\/adverts\/:id\/stats Permission: read Header Field Type Description User-Agent string Account email. Parameter Field Type Description id Number Advert id start String Optional Start Date end String Optional End Date &nbsp; Example request:GET \/account\/stats?start=2018-01-01&#038;end=2018-01-30 HTTP\/1.1 User-Agent: $USER_EMAIL Content-Type: application\/json Authorization: Bearer $ACCESS_TOKENCopy GET \/account\/stats?start=2018-01-01&#038;end=2018-01-30 HTTP\/1.1 User-Agent: $USER_EMAIL Content-Type: application\/json Authorization: Bearer $ACCESS_TOKEN Copied to clipboard&#8230;  <a href=\"https:\/\/doc.olxgroup.com\/api\/?p=522\" title=\"Read Get advert stats\">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":[7],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/522"}],"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=522"}],"version-history":[{"count":0,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=\/wp\/v2\/posts\/522\/revisions"}],"wp:attachment":[{"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.olxgroup.com\/api\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}