sections
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.
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.
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!]{
"type":"json",
"headers":
{"header1":"header1 value",
"header2":"header2 value"}
}[/!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!]{
"type":"json",
"jsondata":<BODY HERE>
}[/!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:
#[!opt!]{
"type":"json",
"headers":
{"header1":"header1 value",
"header2":"header2 value"},
"jsondata":<BODY HERE>
}[/!opt!]
Comments
0 comments
Please sign in to leave a comment.