Skip to content

Reference

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
limitunknownNo20min: 1, max: 100, integerMax entries to return (default 20, max 100)
filterstringNoFilter by URL substring (e.g. “/api/cart”)
methodunknownNo
sinceunknownNo
clearbooleanNofalseClear network buffer instead of reading
deviceunknownNo
cdp_network_log()