# EDD REST API V2 - Products

 This document relates specifically to Version 2 of the EDD API. [Documentation for Version 1 is here](https://easydigitaldownloads.com/docs/edd-rest-api-products/).

 The [EDD REST API](https://easydigitaldownloads.com/docs/edd-rest-api-introduction/) provides access to product information via the `/products/` endpoint. You may access multiple products or a single product.

 **NOTE**: The products endpoint does not need a key or token to render publicly available products. If your product is publicly available on the front of your site, it&#039;s available via API without a key or token.

A basic products query looks like this:

```
https://example.com/edd-api/v2/products/
```

 A sample products response looks like this, **notes below**:

```
{
    &quot;products&quot;: [
        {
            &quot;info&quot;: {
                &quot;id&quot;: 45,
                &quot;slug&quot;: &quot;pdf-test&quot;,
                &quot;title&quot;: &quot;PDF Test&quot;,
                &quot;create_date&quot;: &quot;2016-05-23 18:44:51&quot;,
                &quot;modified_date&quot;: &quot;2016-06-08 17:30:54&quot;,
                &quot;status&quot;: &quot;publish&quot;,
                &quot;link&quot;: &quot;https://example.com/?post_type=download&amp;p=45&quot;,
                &quot;content&quot;: &quot;&quot;,
                &quot;excerpt&quot;: &quot;&quot;,
                &quot;thumbnail&quot;: false,
                &quot;category&quot;: [
                    {
                        &quot;term_id&quot;: 3,
                        &quot;name&quot;: &quot;ebooks&quot;,
                        &quot;slug&quot;: &quot;ebooks&quot;,
                        &quot;term_group&quot;: 0,
                        &quot;term_taxonomy_id&quot;: 3,
                        &quot;taxonomy&quot;: &quot;download_category&quot;,
                        &quot;description&quot;: &quot;&quot;,
                        &quot;parent&quot;: 0,
                        &quot;count&quot;: 2,
                        &quot;filter&quot;: &quot;raw&quot;,
                        &quot;object_id&quot;: 45
                    }
                ],
                &quot;tags&quot;: [
                    {
                        &quot;term_id&quot;: 7,
                        &quot;name&quot;: &quot;pdf&quot;,
                        &quot;slug&quot;: &quot;pdf&quot;,
                        &quot;term_group&quot;: 0,
                        &quot;term_taxonomy_id&quot;: 7,
                        &quot;taxonomy&quot;: &quot;download_tag&quot;,
                        &quot;description&quot;: &quot;&quot;,
                        &quot;parent&quot;: 0,
                        &quot;count&quot;: 1,
                        &quot;filter&quot;: &quot;raw&quot;,
                        &quot;object_id&quot;: 45
                    }
                ],
                &quot;sku&quot;: &quot;AAMAM2016&quot;
            },
            &quot;stats&quot;: {
                &quot;total&quot;: {
                    &quot;sales&quot;: &quot;0&quot;,
                    &quot;earnings&quot;: &quot;0.00&quot;
                },
                &quot;monthly_average&quot;: {
                    &quot;sales&quot;: &quot;0&quot;,
                    &quot;earnings&quot;: &quot;0.00&quot;
                }
            },
            &quot;pricing&quot;: {
                &quot;amount&quot;: &quot;1.00&quot;
            },
            &quot;files&quot;: [
                {
                    &quot;index&quot;: &quot;0&quot;,
                    &quot;attachment_id&quot;: &quot;18&quot;,
                    &quot;name&quot;: &quot;WCCHI_2014_page_speed&quot;,
                    &quot;file&quot;: &quot;https://example.com/wp-content/uploads/edd/2016/05/WCCHI_2014_page_speed.pdf&quot;,
                    &quot;condition&quot;: &quot;all&quot;
                }
            ],
            &quot;notes&quot;: &quot;&quot;,
            &quot;licensing&quot;: {
                &quot;enabled&quot;: false,
                &quot;version&quot;: &quot;&quot;,
                &quot;exp_unit&quot;: &quot;days&quot;,
                &quot;exp_length&quot;: &quot;&quot;
            }
        },
        {
            &quot;info&quot;: {
                &quot;id&quot;: 42,
                &quot;slug&quot;: &quot;variable-license&quot;,
                &quot;title&quot;: &quot;Variable license&quot;,
                &quot;create_date&quot;: &quot;2016-05-20 22:21:38&quot;,
                &quot;modified_date&quot;: &quot;2016-05-23 17:32:47&quot;,
                &quot;status&quot;: &quot;publish&quot;,
                &quot;link&quot;: &quot;https://example.com/?post_type=download&amp;p=42&quot;,
                &quot;content&quot;: &quot;&quot;,
                &quot;excerpt&quot;: &quot;&quot;,
                &quot;thumbnail&quot;: false,
                &quot;category&quot;: false,
                &quot;tags&quot;: false,
                &quot;sku&quot;: &quot;-&quot;
            },
            &quot;stats&quot;: {
                &quot;total&quot;: {
                    &quot;sales&quot;: &quot;0&quot;,
                    &quot;earnings&quot;: &quot;0.00&quot;
                },
                &quot;monthly_average&quot;: {
                    &quot;sales&quot;: &quot;0&quot;,
                    &quot;earnings&quot;: &quot;0.00&quot;
                }
            },
            &quot;pricing&quot;: {
                &quot;monthly&quot;: &quot;10.00&quot;,
                &quot;yearly&quot;: &quot;120.00&quot;
            },
            &quot;files&quot;: [
                {
                    &quot;index&quot;: &quot;0&quot;,
                    &quot;attachment_id&quot;: &quot;18&quot;,
                    &quot;name&quot;: &quot;WCCHI_2014_page_speed&quot;,
                    &quot;file&quot;: &quot;https://example.com/wp-content/uploads/edd/2016/05/WCCHI_2014_page_speed.pdf&quot;,
                    &quot;condition&quot;: &quot;all&quot;
                }
            ],
            &quot;notes&quot;: &quot;&quot;,
            &quot;licensing&quot;: {
                &quot;enabled&quot;: true,
                &quot;version&quot;: &quot;&quot;,
                &quot;exp_unit&quot;: &quot;days&quot;,
                &quot;exp_length&quot;: &quot;&quot;
            }
        },
        {
            &quot;info&quot;: {
                &quot;id&quot;: 17,
                &quot;slug&quot;: &quot;i-am-pippin-williamson-and-so-can-you&quot;,
                &quot;title&quot;: &quot;I am Pippin Williamson, and so can YOU&quot;,
                &quot;create_date&quot;: &quot;2016-05-17 14:03:50&quot;,
                &quot;modified_date&quot;: &quot;2016-06-02 19:51:17&quot;,
                &quot;status&quot;: &quot;publish&quot;,
                &quot;link&quot;: &quot;https://example.com/?post_type=download&amp;p=17&quot;,
                &quot;content&quot;: &quot;This is a test&quot;,
                &quot;excerpt&quot;: &quot;&quot;,
                &quot;thumbnail&quot;: false,
                &quot;category&quot;: [
                    {
                        &quot;term_id&quot;: 3,
                        &quot;name&quot;: &quot;ebooks&quot;,
                        &quot;slug&quot;: &quot;ebooks&quot;,
                        &quot;term_group&quot;: 0,
                        &quot;term_taxonomy_id&quot;: 3,
                        &quot;taxonomy&quot;: &quot;download_category&quot;,
                        &quot;description&quot;: &quot;&quot;,
                        &quot;parent&quot;: 0,
                        &quot;count&quot;: 2,
                        &quot;filter&quot;: &quot;raw&quot;,
                        &quot;object_id&quot;: 17
                    }
                ],
                &quot;tags&quot;: false,
                &quot;sku&quot;: &quot;-&quot;
            },
            &quot;stats&quot;: {
                &quot;total&quot;: {
                    &quot;sales&quot;: &quot;4&quot;,
                    &quot;earnings&quot;: &quot;78.000000&quot;
                },
                &quot;monthly_average&quot;: {
                    &quot;sales&quot;: &quot;4&quot;,
                    &quot;earnings&quot;: &quot;78.000000&quot;
                }
            },
            &quot;pricing&quot;: {
                &quot;amount&quot;: &quot;20.00&quot;
            },
            &quot;files&quot;: [
                {
                    &quot;index&quot;: &quot;0&quot;,
                    &quot;attachment_id&quot;: &quot;18&quot;,
                    &quot;name&quot;: &quot;WCCHI_2014_page_speed&quot;,
                    &quot;file&quot;: &quot;https://example.com/wp-content/uploads/edd/2016/05/WCCHI_2014_page_speed.pdf&quot;,
                    &quot;condition&quot;: &quot;all&quot;
                }
            ],
            &quot;notes&quot;: &quot;This is my download note!&quot;,
            &quot;licensing&quot;: {
                &quot;enabled&quot;: false,
                &quot;version&quot;: &quot;&quot;,
                &quot;exp_unit&quot;: &quot;&quot;,
                &quot;exp_length&quot;: &quot;&quot;
            }
        },
    ],
    &quot;request_speed&quot;: 0.0075628757476807
}
```

 If SKUs are turned on, but the field is empty, it will render a hyphen, as in the second product in the example above.

### Filtering Products

##### Specific Products

 If you want to retrieve info for only a specific product, you can pass a product ID via the *product* parameter:

```
https://example.com/edd-api/v2/products/?product=55
```

##### Searching

 If you want to search for a product you can pass a search phrase via the `s` paramenter:

```
https://example.com/edd-api/v2/products/?s=PDF
```

##### Tags and Categories

 You may narrow your search using the keywords category and tag, followed by either a slug or ID. Some examples:

```
https://example.com/edd-api/v2/products/?category=ebooks
```

```
https://example.com/edd-api/v2/products/?category=3
```

```
https://example.com/edd-api/v2/products/?tag=pdf
```

```
https://example.com/edd-api/v2/products/?tag=42
```

 Combined example:

```
https://example.com/edd-api/v2/products/?category=ebooks&amp;tag=pdf
```