Retrieve a course student summary
See who bought your courses in a date range, with totals, top students, and top courses.
Count the students, purchases, and orders of your courses between two dates, and see who bought the most. Send start_date and end_date as whole days in the store's timezone; the range can cover at most 366 days. Add course_id to count one course.
A purchase counts when it is paid or completed; refunded and pending purchases do not. A student is a customer, or the order email when a purchase has no customer record.
The summary totals cover every purchase in the range. students and courses list only the top rows, 10 by default and at most 20 with limit. A range without purchases is not an error: it returns zero totals and empty lists, as the empty example shows.
This endpoint returns customer email addresses. It needs the invoice API-key ability, the same one that reads orders, and the invoice permission in your team role.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
start_date*stringThe first day to include, as YYYY-MM-DD in the store's timezone.
dateend_date*stringThe last day to include, as YYYY-MM-DD in the store's timezone. It must not be before start_date, and the range can cover at most 366 days; otherwise the request returns 422 on end_date.
datecourse_id?integerCount one course only: the course id from /v2/courses. Another product, a deleted course, or another store's course returns 422 on course_id.
1 <= valuelimit?integerHow many rows students and courses each return: 10 by default, at most 20. A larger value returns 422 on limit. The summary totals always cover everything.
1 <= value <= 2010X-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
Successful response.
application/json- response
data*curl -X GET 'https://sell.app/api/v2/course-students?start_date=2026-08-01&end_date=2026-08-31' \ -H 'X-STORE: launch-lab'students
{ "data": { "period": { "start_date": "2026-08-01", "end_date": "2026-08-31", "timezone": "Europe/London", "currency": "USD" }, "summary": { "students_count": 2, "multi_course_students_count": 1, "course_purchases_count": 3, "course_units_count": 3, "course_orders_count": 3, "courses_sold_count": 2 }, "students": [ { "customer_id": 812, "email": "maya.chen@example.com", "courses_count": 2, "course_purchases_count": 2, "course_units_count": 2, "orders_count": 2, "latest_purchase_at": "2026-08-04T10:00:00.000000Z", "courses": [ { "course_id": 61, "title": "Brand identity basics", "purchases_count": 1 }, { "course_id": 50, "title": "Design foundations", "purchases_count": 1 } ] }, { "customer_id": 815, "email": "jordan.patel@example.com", "courses_count": 1, "course_purchases_count": 1, "course_units_count": 1, "orders_count": 1, "latest_purchase_at": "2026-08-05T10:00:00.000000Z", "courses": [ { "course_id": 50, "title": "Design foundations", "purchases_count": 1 } ] } ], "courses": [ { "course_id": 50, "title": "Design foundations", "students_count": 2, "course_purchases_count": 2, "course_units_count": 2, "orders_count": 2 }, { "course_id": 61, "title": "Brand identity basics", "students_count": 1, "course_purchases_count": 1, "course_units_count": 1, "orders_count": 1 } ] }}empty
{ "data": { "period": { "start_date": "2026-08-01", "end_date": "2026-08-31", "timezone": "Europe/London", "currency": "USD" }, "summary": { "students_count": 0, "multi_course_students_count": 0, "course_purchases_count": 0, "course_units_count": 0, "course_orders_count": 0, "courses_sold_count": 0 }, "students": [], "courses": [] }}