example-data.com
Menu
Browse docs and collections

Overview

product-reviews / #356

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/product-reviews/356" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/product-reviews/356"
);
const productReview = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/product-reviews.d.ts https://example-data.com/types/product-reviews.d.ts
import type { ProductReview } from "./types/product-reviews";

const res = await fetch(
  "https://example-data.com/api/v1/product-reviews/356"
);
const productReview = (await res.json()) as ProductReview;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/product-reviews/356"
)
product_review = res.json()

Response

{
  "id": 356,
  "productId": 74,
  "userId": 1,
  "rating": 5,
  "title": "Stella ciminatio cognatus.",
  "body": "Sursum victus incidunt terga crinis conforto patior celebrer apto subiungo.",
  "isVerified": true,
  "helpfulCount": 117,
  "createdAt": "2025-05-04T01:14:18.108Z",
  "updatedAt": "2025-12-30T20:46:45.642Z"
}