CopyHero

Get Hit Rate

GET
/api/v1/analytics/hit-rate

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Query Parameters

date_from*Date From

First listing day of the period (inclusive).

Formatdate
date_to*Date To

Last listing day of the period (inclusive); at most tomorrow (UTC); the period is at most 366 days inclusive.

Formatdate
store_ids?array<integer>|

Only these organization stores; an unknown, foreign or deleted id answers 404. Repeated values: ?store_ids=12&store_ids=17

Response Body

Successful Response

application/json
  1. response

Listed and sold link counts per store and listing day; the frontend computes the rates.

stores*array<>
total*array<>

Per-day sum over all stores.

Example Request
curl -X GET 'https://app.copyhero.app/api/v1/analytics/hit-rate?date_from=2019-08-24&date_to=2019-08-24'
Example Response
{  "stores": [    {      "store_id": 0,      "days": [        {          "date": "2019-08-24",          "listed": 0,          "sold": 0        }      ]    }  ],  "total": [    {      "date": "2019-08-24",      "listed": 0,      "sold": 0    }  ]}