---
schema_version: "1"
id: 8d17d10e7426d05ad804868caccc56188e0537c135d697b8eb2de4aefdfaaf3b
title: Download Email Recommendation Log
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/pb-email-rec-log.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/pb-email-rec-log.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51fb9d57c588b554605b1f2e2aac474d02727c010de415e6d171a117bba62e62
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Download Email Recommendation Log

Marketers can retrieve a report listing the count of email recommendations by product code. For a given date range, this report lists each product code and the number of the times that product was recommended for each email recommendation configuration, and, optionally, job id. To know which job id a recommendation is associated with, the email recommendation image must have a URL parameter named `sfmc_j`. The email job id is the parameter's value.

**note:** Before you attempt to run or download the report, turn it on in Personalization Builder.

## Parameters

To download an email recommendation log, you need these values.

| Value              | Description                                                                                          |
| ------------------ | ---------------------------------------------------------------------------------------------------- |
| MID                | The account MID that contains the data.                                                              |
| api_key            | A valid API Key for that MID.                                                                        |
| start_date         | Start date for the report.                                                                           |
| end_date           | End date for the report.                                                                             |
| aggregation_method | The only option available for this report is `day`. Personalization Builder rolls up counts per day. |

## Example

    curl --header 'Content-Type: application/json' -XPOST https://
    app.igodigital.com/api/v2/reporting/report/displays_by_item.csv -d '{
    "mid": "1314420",
    "api_key": "<redacted>",
    "aggregation_method": "day",
    "start_date": "2017-10-29",
    "end_date": "2017-11-29"
    }' > report.csv

## Related Items

- _Salesforce Help_: [Displays by Item Report](https://help.salesforce.com/s/articleView?id=mktg.mc_pb_displays_by_item.htm)
