Skip to main content

Extracting Data From Network Requests

When visiting a website, your browser makes dozens of network requests to render images and text on the page. The requests often contain data that populates information on the website from an external source. Using browser developer tools, we can monitor and replay these network requests to extract data directly from the source rather than the user-facing website.

This webinar will demonstrate how Import.io can extract data from a network request to an API. We will cover what network requests are, how they are used in the web, and how we can monitor and replay them to extract data on a webpage.

tip

We use Postman to replay and modify network requests in this webinar. You can download Postman here.

Video Recording

You can download the recording here.

Webinar Slides

You can access the webinar slides [here](https://drive.google.com/file/d/1ux6AEz6SdXRXQ4VOwEdHEZS7LfpuIgJu/view?usp=sharing.

JSON Tag

When extracting from an API that returns data in JSON format, you'll want to add this to the end of your URL:

#[!opt!]{"type":"json"}[/!opt!]

JSON Tag with Headers

When extracting from an API that requires header values, you'll want to add this to the end of your URL:

#[!opt!]{<br /> "type":"json",<br /> "headers":<br /> {"header1":"header1 value",<br /> "header2":"header2 value"}<br />}[/!opt!]

JSON Tag with Body

When extracting from an API that requires a body, you'll want to add this to the end of your URL:

#[!opt!]{<br /> "type":"json",<br /> "jsondata":<br />}[/!opt!]

JSON Tag with Headers and Body

If the API you're extracting from requires both headers and a body, you'll want to add this to the end of your URL: