---
updatedAt: 2026-11-11T07:32:40.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Raw data

Use this request to return detailed data about every email sent from Yotpo including the email recipient, when the email was received, order information, delivery success or failure, when the email was opened, clicks, unsubscribe, etc.

> 👍 How to use this endpoint
>
> * For example responses, click the relevant status code on the right.

> 🚧 Note:
>
> The `since` and `until` parameters always refer to sent emails, regardless of which metric was requested. Metrics are retrieved from emails which were sent within the date range defined.
>
> For example, if you're requesting data on reviews within the date range of Jan 01 (`since`) - Jan 05 (`until`), note that while the review request emails were sent within the date range, the actual reviews may have only been created after Jan 05 (`until`).

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Reviews API (V1)",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com",
      "description": "Main API server for authenticated and write operations"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Yotpo Authentication](ref:yotpo-authentication) to learn how to generate your token."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid access token",
        "content": {
          "application/json": {
            "examples": {
              "Unauthorized": {
                "value": {
                  "status": {
                    "message": "You are not authorized to access this page.",
                    "code": 401,
                    "error_type": "Exceptions::AccessDenied"
                  }
                }
              }
            },
            "schema": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message"
                    },
                    "code": {
                      "type": "integer",
                      "description": "HTTP status code"
                    },
                    "error_type": {
                      "type": "string",
                      "description": "Internal error class"
                    }
                  },
                  "description": "Error details."
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/analytics/v1/emails/{store_id}/export/raw_data": {
      "get": {
        "summary": "Raw data",
        "description": "Use this request to return detailed data about every email sent from Yotpo including the email recipient, when the email was received, order information, delivery success or failure, when the email was opened, clicks, unsubscribe, etc.",
        "operationId": "raw-data",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The store ID",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "email_type",
            "in": "query",
            "description": "Choose one `email_type` value from the table of [Supported Email Types](ref:about-analytics#supported-email-types) or exclude this parameter to retrieve data for all emails.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reminder_num",
            "in": "query",
            "description": "The number of the MAP reminder email. Must be an integer greater than zero and can only be used when the email type is `product_reminder` or `site_reminder`",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "since",
            "in": "query",
            "description": "Retrieve raw data since and including this date (Default: Last 30 days). Note: `until` is required when using this param.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "until",
            "in": "query",
            "description": "Retrieve raw data until and including this date (Default: Last 30 days). Note: `since` is required when using this param.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sort by sent date: `descending` (newest first, default) or `ascending`. Lowercase only.",
            "schema": {
              "type": "string",
              "default": "descending",
              "enum": [
                "descending",
                "ascending"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Return page number from paginated response. Must be an integer greater than zero.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "The number of items to return in one paginated page. Must be an integer between 1 and 1,000",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 1,
              "maximum": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"records\": [\n    {\n      \"email_address\": \"max@example.com\",\n      \"order_id\": null,\n      \"order_timestamp\": null,\n      \"product_id\": null,\n      \"sku\": null,\n      \"email_type\": \"targeted_site_review_request\",\n      \"reminder_num\": null,\n      \"trr_bundle_id\": \"4b010d38-c3e3-4a35-84c9-7f25cef05a7d\",\n      \"trr_bundle_subject\": \"{store_name} - We would love to hear your thoughts\",\n      \"review_type\": \"site\",\n      \"coupon_code\": null,\n      \"email_sent_timestamp\": \"2017-09-19T15:45:30.000Z\",\n      \"opened_timestamp\": \"2017-09-19T15:46:09.000Z\",\n      \"clicked_through_timestamp\": null,\n      \"content_creation_timestamp\": \"2017-09-19T15:46:57.000Z\",\n      \"platform\": \"desktop\",\n      \"invalid_address_timestamp\": null,\n      \"failed_timestamp\": null,\n      \"unsubscribed_timestamp\": null,\n      \"marked_spam_timestamp\": null,\n      \"arrived_early_timestamp\": null\n    },\n    {\n      \"email_address\": \"moritz@20mm.eu\",\n      \"order_id\": null,\n      \"order_timestamp\": null,\n      \"product_id\": null,\n      \"sku\": null,\n      \"email_type\": \"targeted_site_review_request\",\n      \"reminder_num\": null,\n      \"trr_bundle_id\": \"4b2bba4f-89b5-42a6-b68d-d8fb45e6ff98\",\n      \"trr_bundle_subject\": \"{store_name} - We would love to hear your thoughts\",\n      \"review_type\": \"site\",\n      \"coupon_code\": null,\n      \"email_sent_timestamp\": \"2017-09-19T16:06:17.000Z\",\n      \"opened_timestamp\": \"2017-09-19T16:06:49.000Z\",\n      \"clicked_through_timestamp\": null,\n      \"content_creation_timestamp\": \"2017-09-19T16:07:18.000Z\",\n      \"platform\": \"desktop\",\n      \"invalid_address_timestamp\": null,\n      \"failed_timestamp\": null,\n      \"unsubscribed_timestamp\": null,\n      \"marked_spam_timestamp\": null,\n      \"arrived_early_timestamp\": null\n    },\n    {\n      \"email_address\": \"janschulte@example.com\",\n      \"order_id\": null,\n      \"order_timestamp\": null,\n      \"product_id\": \"9209743056\",\n      \"sku\": null,\n      \"email_type\": \"answer_request\",\n      \"reminder_num\": null,\n      \"trr_bundle_id\": null,\n      \"trr_bundle_subject\": null,\n      \"review_type\": null,\n      \"coupon_code\": null,\n      \"email_sent_timestamp\": \"2017-09-12T07:47:50.000Z\",\n      \"opened_timestamp\": \"2017-09-12T07:49:33.000Z\",\n      \"clicked_through_timestamp\": null,\n      \"content_creation_timestamp\": \"2017-09-12T07:50:03.000Z\",\n      \"platform\": \"desktop\",\n      \"invalid_address_timestamp\": null,\n      \"failed_timestamp\": null,\n      \"unsubscribed_timestamp\": null,\n      \"marked_spam_timestamp\": null,\n      \"arrived_early_timestamp\": null\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "email_address": {
                            "type": "string",
                            "example": "max@greatstore.net",
                            "description": "Recipient email address."
                          },
                          "order_id": {
                            "description": "Your order ID, or `null` when the email isn't tied to an order."
                          },
                          "order_timestamp": {
                            "description": "When the order was placed (ISO 8601), or `null`."
                          },
                          "product_id": {
                            "description": "Your product ID."
                          },
                          "sku": {
                            "description": "Product SKU, or `null`."
                          },
                          "email_type": {
                            "type": "string",
                            "example": "targeted_site_review_request",
                            "description": "Email type, for example `product_map` or `answer_notification`. See Supported email types on the About Email Analytics page."
                          },
                          "reminder_num": {
                            "description": "Reminder number for review request reminders, or `null`."
                          },
                          "trr_bundle_id": {
                            "type": "string",
                            "example": "4b010d38-c3e3-4a35-84c9-7f25cef05a7d",
                            "description": "ID of the CSV upload (targeted review request) that sent the email, or `null`."
                          },
                          "trr_bundle_subject": {
                            "type": "string",
                            "example": "{store_name} - We would love to hear your thoughts",
                            "description": "Subject of that CSV upload, or `null`."
                          },
                          "review_type": {
                            "type": "string",
                            "example": "site",
                            "description": "`product` or `site` for review request emails, or `null` for other email types."
                          },
                          "coupon_code": {
                            "description": "Coupon code included in the email, or `null`."
                          },
                          "email_sent_timestamp": {
                            "type": "string",
                            "example": "2017-09-19T15:45:30.000Z",
                            "description": "When the email was sent (ISO 8601)."
                          },
                          "opened_timestamp": {
                            "type": "string",
                            "example": "2017-09-19T15:46:09.000Z",
                            "description": "When the email was opened (ISO 8601), or `null`."
                          },
                          "clicked_through_timestamp": {
                            "description": "When the recipient clicked through to your site (ISO 8601), or `null`."
                          },
                          "content_creation_timestamp": {
                            "type": "string",
                            "example": "2017-09-19T15:46:57.000Z"
                          },
                          "platform": {
                            "type": "string",
                            "example": "desktop"
                          },
                          "invalid_address_timestamp": {
                            "description": "When the email hard-bounced (ISO 8601), or `null`."
                          },
                          "failed_timestamp": {
                            "description": "When delivery failed for another reason (ISO 8601), or `null`."
                          },
                          "unsubscribed_timestamp": {
                            "description": "When the recipient unsubscribed from this email (ISO 8601), or `null`."
                          },
                          "marked_spam_timestamp": {
                            "description": "When the recipient marked the email as spam (ISO 8601), or `null`."
                          },
                          "arrived_early_timestamp": {
                            "description": "When the recipient clicked \"Did not receive the product\" (ISO 8601), or `null`."
                          }
                        }
                      },
                      "description": "One record per email sent in the requested date range."
                    }
                  }
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            },
            "headers": {
              "ratelimit-limit": {
                "description": "The maximum number of requests allowed in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-remaining": {
                "description": "The number of requests remaining in the current time window",
                "schema": {
                  "type": "integer"
                }
              },
              "ratelimit-reset": {
                "description": "The time (in seconds) until the rate limit resets",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-limit-minute": {
                "description": "The maximum number of requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "x-ratelimit-remaining-minute": {
                "description": "The number of requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "http",
              "code": "GET https://api.yotpo.com/analytics/v1/emails/YOUR_STORE_ID/export/raw_data?since=2017-05-01&until=2017-11-01",
              "name": "Query Params"
            },
            {
              "language": "http",
              "code": "GET https://api.yotpo.com/analytics/v1/emails/YOUR_STORE_ID/export/raw_data",
              "name": "Path Params"
            }
          ],
          "samples-languages": [
            "http"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```