example-data.com
Menu
Browse docs and collections

Overview

product-reviews / #652

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/product-reviews/652"
);
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/652"
);
const productReview = (await res.json()) as ProductReview;

Python example

import requests

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

Response

{
  "id": 652,
  "productId": 144,
  "userId": 214,
  "rating": 5,
  "title": "Caput auctus theologus cursim officiis usus.",
  "body": "Ducimus substantia curia defluo textilis ulciscor charisma suasoria claustrum vox.",
  "isVerified": true,
  "helpfulCount": 132,
  "createdAt": "2026-01-30T18:38:36.987Z",
  "updatedAt": "2026-05-15T04:30:19.733Z"
}