Grokking the System Design Interview, Volume II
0% completed
Netflix Recommendations: API Design
Step 4: API Design
The client talks to the backend over a REST API. We define two endpoints: one that reads the home feed, and one that records a user event.
1. Get Home Feed
GET /v1/recommendations/home- Parameters:
user_id(from auth token),device_type(Mobile/TV). - Response:
{ "rows": [ { "type": "continue_watching", "title": "Continue Watching for Jane", "items": [ { "video_id": "vid_123", "progress_sec": 450, "thumbnail": "..." } ] }, { "type": "top_picks", "title": "Top Picks for You",
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%