> For the complete documentation index, see [llms.txt](https://docs.pline.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pline.ai/getting-started/extract-data-from-both-listing-and-detail-pages.md).

# Extract Data From Both Listing and Detail Pages

### Step 1: Create a Workflow

Open the pline extension and click **"Build Workflow."**

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2Fcz9WjCVhVusayZIpPfLU%2F1.png?alt=media&amp;token=f6265d9d-098f-410f-b590-96b784a70e9f" alt=""><figcaption></figcaption></figure>

### Step 2: Select Page Type

Webpages can appear as **Vertical, Grid, or Horizontal Layouts.**&#x20;

* Select the layout that matches the Amazon results page (i.e., Grid Layout).

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2F38FHhgJ5mYfRwsTlFJra%2F2.png?alt=media&amp;token=793b319f-4807-4a60-a7d8-6b9e8af7574b" alt=""><figcaption></figcaption></figure>

### Step 3: AI-Driven Field Detection

Pline uses AI to automatically detect and group similar items on the page and **preselect relevant fields**. If the grouping looks correct, click **“Yes, Looks good.”**

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FOvQhLzXIHofr2mGQIWSG%2F3.png?alt=media&amp;token=99da354d-9f4e-424d-8bb1-68c295074869" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If not, select the next group. You can **add, edit, or remove fields** as needed before proceeding.
{% endhint %}

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FK6zwtU8A1QnBVLAfhIMz%2F4.png?alt=media&amp;token=678cc4e7-be5e-4fff-80ca-4047b621e120" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure you extract fields from the product URL or link that will direct to the detail page.
{% endhint %}

### Step 4: Select Pagination Type

Select the appropriate pagination type, then locate it on the page and tag it.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FcwDU6ZEV5kd0pSRn5DDY%2F5.png?alt=media&amp;token=bd2df1f6-7287-4b77-a37a-5ef107945a64" alt=""><figcaption></figcaption></figure>

### Step 5: Select Fields to Extract

* Select the field with the detail page link, click **“Select fields from the detail page,”** and Pline will direct you there automatically.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2F2JAJM3zcn6xiyw76sbX7%2F6.png?alt=media&amp;token=ba7c6045-d9e9-4e6f-8a71-c7716431bf36" alt=""><figcaption></figcaption></figure>

* Click on the data you want to extract, enter a field name, save it, and repeat for all required fields.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2F5oZ6bJYg12veU1ZQCiYF%2F7.png?alt=media&amp;token=5290d889-dc44-48c5-aa85-6e933929a8cc" alt=""><figcaption></figcaption></figure>

* You can easily add, edit, or remove fields based on the data you need.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2Fsx3FKmSnbr9JaHcYDX4H%2F8.png?alt=media&amp;token=f25b831f-032e-467c-9f69-920fc1f32b46" alt=""><figcaption></figcaption></figure>

* Preview the sample data from both the listing page and the detail pages.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FCzGJAu3TSFrUrk7BX611%2F10.png?alt=media&amp;token=9421462c-4a33-4e90-a17a-43fbded3796f" alt=""><figcaption></figcaption></figure>

### Step 6: Run the Workflow

Enter a workflow name and click **"Save & Run"** to start the extraction.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FRYkh9NY3nRDQC8ss7eiq%2F9.png?alt=media&amp;token=de234dbe-fd27-4fd8-bf4c-8bc208eaaae6" alt=""><figcaption></figcaption></figure>

#### Step 7: Access Your Data

* Stop the extraction once you’re done.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2FvqNMYIeYmvVqpcM59U1p%2F11.png?alt=media&amp;token=f14dc751-60e5-43c9-b3b9-656132b61eb5" alt=""><figcaption></figcaption></figure>

* Download the data in CSV or explore it further on Pline’s Platform.

<figure><img src="https://3434687285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyS75Dkg943w0ERQe007K%2Fuploads%2F3WIP4EKz3KlOWQpUEZcr%2F12.png?alt=media&amp;token=2c3261a5-766a-47ba-a8bc-7d2c0a6a915b" alt=""><figcaption></figcaption></figure>
