Mini Project

API Response Analyzer

API Response Analyzer

Simulate analyzing paginated API responses containing user records with nested addresses, order histories, and metadata. Build tools to flatten nested structures, filter by multiple criteria, aggregate statistics, handle missing keys safely, and transform data shapes. Learn dict operations, defaultdict, nested data traversal, error handling, and data pipeline patterns.

EditorPython · JSX
PreviewUpdates on Run Tests
Loading preview…
Tests
Should define PAGES list with nested dict data
Should implement safe_get with *keys and default
Should use .get() method for safe dict access
Should use defaultdict for grouping
Should use nested list comprehension to flatten
Should use sorted() with key lambda
Should filter with list comprehension and if
Should handle missing keys gracefully (no uncaught KeyError)