Skip to content

cdp_network_log

Get recent network requests. Shows method, URL, status, duration. On RN 0.83+ uses CDP Network domain. On older versions uses injected fetch/XHR hooks (auto-detected). Buffers are per-device, keyed by Metro port + target id — switching simulators no longer bleeds stale traffic. Pass device: "all" to merge across every device seen this session. Filters AND-combine: filter (URL substring), method (HTTP verb), since (ISO timestamp). When more entries match than limit allows, response includes truncated:true + total_matches.

NameTypeRequiredDefaultConstraintsDescription
limitnumberNo20min: 1, max: 100, integerMax entries to return (default 20, max 100)
filterstringNoFilter by URL substring (e.g. “/api/cart”)
methodunknownNoFilter by HTTP method, case-insensitive (e.g. “POST” or [“POST”,“PUT”]). AND-combined with filter. Use to isolate mutations from follow-up GETs.
sincestringNoISO timestamp — drop entries with timestamp < since before applying limit. Use to pin a checkpoint before an action and ask for everything since.
clearbooleanNofalseClear network buffer instead of reading
devicestringNoScope: a specific device key OR the literal “all” for a chronologically-merged view across every device. Defaults to the active device.
cdp_network_log()