owenlero
owenlero

Reputation: 327

See what API calls of a website is making

Is it possible to see what rest calls a page makes when I visit it? Like if I go to google drive, can I see what calls my browser is making to their web servers? If so how? Would something like Wireshark be used in this case? Is there something higher level than that?

Upvotes: 27

Views: 86877

Answers (3)

Penny Liu
Penny Liu

Reputation: 17428

Here is a demonstration on how to obtain the API URL from the ProtonMail pricing page:

  1. Navigate to the ProtonMail pricing page.
  2. Open Chrome DevTools by pressing Ctrl + Shift + I, and then select the Network tab.
  3. Switch to the Fetch/XHR option and click on the desired item in the left panel.
  4. The Request URL can be found in the Headers tab.

enter image description here

Upvotes: 14

Michael Benjamin
Michael Benjamin

Reputation: 2915

In Chrome Ctrl + Shift + I then click network. You can view all network traffic or filter it. AJAX requests generally show up under XHR (XmlHttpRequest) unless the website is using JSONP - in that case they would appear under Scripts.

Upvotes: 22

amalloy
amalloy

Reputation: 91917

Most modern browsers have some sort of developer console you can use. For example, in Chrome you can open the console with Ctrl-Shift-J, and then select the Network tab. After that, all network requests will be logged so that you can inspect them.

Upvotes: 0

Related Questions