How to search through all the ajax responses in network tab in Chrome?
Asked Answered
P

8

133

How to search through all the ajax responses in network tab in Chrome?

I want to do this is because it is difficult for a JavaScript developer to get to know which information is coming from which service call, especially if you are new to the project and business logic is not clear. Also, opening each service in a network tab and searching in responses of so many service calls is difficult and time consuming.

Priscella answered 7/7, 2015 at 14:29 Comment(3)
Are you trying to filter or search the content of the requests themselves?Indent
I want to search the content of responses from all the ajax calls in network tab. If its not possible let me know if there is any extension available or do I have to make one for myselfPriscella
Edge supports this feature: imgur.com/TOni9xJPrecipitation
D
80

This has now been implemented on the Network tab. Whenever a search criteria is added, Chrome will offer searching through all headers and bodies.

enter image description here

More from offical doc,

Open the Network panel then press Command+F (Mac) or Control+F (Windows, Linux, Chrome OS) to open the new Network Search pane.

search network

Dorsiventral answered 15/6, 2018 at 9:38 Comment(6)
Doesn't work correctly. Sometimes it correctly finds a string in a json response, sometimes it doesn't... which makes it worse than useless. I filed a bug report here: bugs.chromium.org/p/chromium/issues/detail?id=944219Broth
As of Chrome 78, at least, searching for strings within POST request form data doesn't seem to work.Jennie
Is there a way to do this as a live filter that I don't have to keep manually refreshing?Euhemerize
Yes this does not work. Need to find a way to download ALL data inputs outputs everthing as text. Is there a way?Preterhuman
Seemed to work for me, was a bit tricky to bring up the search box but worked in the endWinny
Make sure you use the correct search box--there are at least 3. The one that worked for me was on the far left of DevTools.Snyder
I
28

This is similar to another question this morning to search json responses. The solution is the same, star this issue this issue. Starring is triggered via the star icon in the far left area of the blue title are just under search.

Starring issues let's the developers know what people need. The more stars something has, the more likely it is to get worked on sooner.

Currently this functionality is not provided and extensions are unable to add this type of functionality since the network panel isn't extensible in this way.

Indent answered 7/7, 2015 at 15:43 Comment(3)
done. This can be an extension to that issue if that gets solved.Priscella
This issue relates to search within a single tab (response). It's fixed now, but there's no search through all responses. @BlueRaja-DannyPflughoeftRevenant
@Garbee, can you please update your answer? The issue you pointing to was about searching the content of ONE selected XHR, while the problem in this specific topic is about CTRL+SHIFT+F across all the XHRs. This one: bugs.chromium.org/p/chromium/issues/…Nguyen
I
17

You can save all the responses as a HAR file and then search through the file in a text editor. Chrome may truncate the response. So, use Firefox.

Intertype answered 28/3, 2017 at 3:34 Comment(2)
Also, I found this tool useful for searching in the HAR file toolbox.googleapps.com/apps/har_analyzerDivan
It seems that Chrome can do that too now, I'm in v91, and when I right-click on one of the requests I can select "Save all as HAR with content". (Just generated a 192Mb file)Critchfield
R
5

they changed it

now it is not in the field any longer that got so many upvotes... press CTRL + F and it should open a new search (not CTRL + SHIFT + F)

enter image description here

alternative click on the magnifying glass next to the filter

enter image description here

Runnels answered 30/8, 2023 at 9:52 Comment(1)
This answer should have just instead been an edit of this answer https://mcmap.net/q/172415/-how-to-search-through-all-the-ajax-responses-in-network-tab-in-chromeUrbano
M
4

Inspector of Microsoft Edge browser offer such feature. Useful when you need to search through traffic made by an HTTPS web site that Fiddler cannot inspect (like Facebook web site).

Mysterious answered 16/1, 2017 at 7:16 Comment(1)
Fiddler can inspect websites like facebook, but you need to make & install an enhanced fake ssl cert with fiddlerbook.com/dl/FiddlerCertMaker.exe firstPerlie
F
4

FYI, If you use MS Edge developer tools, use the magnifying glass to search all responses and avoid using the filter textbox.

enter image description here

Finished answered 14/3, 2023 at 10:25 Comment(1)
This also works in Chrome. 1. Click the magnifying glass 2. to the left of the screen a search pane appears 3. Where the is arabic type your input.Urbano
B
1

There doesn't seem to be a way to do this in Chrome or Firefox. My solution has been to use Fiddler, which does support it.

Broth answered 7/10, 2016 at 18:38 Comment(0)
L
-2

Edit: I believe this was working for all resources at the time of writing, but please see comments because people say it is not/no-longer working as expected.


As of Chrome version 91, if you want to search through all resources (not just AJAX/fetched resources), then you need to open DevTools and then press Ctrl+Shift+F to open a search box. If you just type into the "filter" text input then it only searches through the URLs, rather than also searching the contents.

enter image description here

Levkas answered 21/6, 2021 at 3:37 Comment(3)
This doesn't search through network requests though, which is what OP wants to doDratted
Do you have a link to the documentation? I can't seem to get this to work on a Mac.Valma
Hey, this worked for Firefox 97. It can search headers and bodies in network requests. Thank you.Serendipity

© 2022 - 2024 — McMap. All rights reserved.