API reference

Stats

Earnings, views, likes and where people came from.

How your shops are doing

GET/v1/stats
Needs a key with read

Earnings, views, likes, shares, followers, offers and sales for a period, each compared with the period before. Narrow it to one shop with shop. Money is what you made after fees.

Query

shopstring
A shop slug. Leave out for every shop.
period"7d" | "30d" | "90d" | "year"default "30d"
7d, 30d, 90d or year (since January 1).
Request
curl https://api.resell.store/v1/stats?period=7d \
  -H "Authorization: Bearer $RESELL_KEY"
Response
{
  "object": "stats",
  "period": "7d",
  "shop": null,
  "earned": 214,
  "earned_change": 58,
  "things_sold": 4,
  "average_sale": 54,
  "days_to_sell": 6,
  "metrics": [
    {
      "label": "Views",
      "value": 398,
      "note": "61 more than before"
    },
    {
      "label": "Likes",
      "value": 12,
      "note": "48 saved right now"
    },
    {
      "label": "Offers",
      "value": 5,
      "note": "2 turned into sales"
    }
  ],
  "chart": [
    {
      "label": "Mon",
      "dates": "Sep 26",
      "earned": 0
    }
  ],
  "sources": [
    {
      "label": "Your link",
      "percent": 44
    }
  ],
  "most_viewed": [
    {
      "title": "Yellow Le Creuset dutch oven, 5.5 qt",
      "views": 61,
      "note": "12 likes, 1 offer waiting",
      "url": "https://resell.store/listings/8d1e6c2a-…"
    }
  ]
}