Count reviews
Number of reviews by status and star rating, for a product or a date range.
GET https://cotlet.dev/api/v1/judge-me/reviews/count
read
Returns the total and the split by star rating for the filters you give. Use it to check the size of a job before listing, for example how many pending reviews wait or how large an export will be. It reads counts only and returns no review text.
Parameters
| Name | Type | Description |
|---|---|---|
| status enum | enum | published, to_curate, hidden or archived. Default: all statuses. |
| product string | string | Product title or handle. |
| since date | date | Only reviews created on or after this date. |
Request
curl https://cotlet.dev/api/v1/judge-me/reviews/count \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("judge-me", "count_reviews") const result = await cotlet.call('judge-me', 'count_reviews'); cotlet call judge-me count_reviews Example response
{
"total": 14,
"by_rating": {
"1": 3,
"2": 1,
"3": 2,
"4": 3,
"5": 5
},
"status": "to_curate"
}