example-data.com
Menu
Browse docs and collections

Overview

product-reviews / #729

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 729,
  "productId": 159,
  "userId": 198,
  "rating": 5,
  "title": "Abbas substantia error adsum spes carmen.",
  "body": "Arbor thorax amiculum deleo. Vicissitudo demo desino.",
  "isVerified": false,
  "helpfulCount": 166,
  "createdAt": "2024-08-31T21:09:59.632Z",
  "updatedAt": "2026-02-08T08:00:22.253Z"
}