example-data.com
Menu
Browse docs and collections

Overview

product-reviews / #21

Caute constans eos.

productId
Refined Plastic Bacon USD160.19
userId
Velma Jerde @velma.jerde56
rating
5
title
Caute constans eos.
body
Tredecim esse nemo vinculum credo varietas timor. Subnecto credo textilis congregatio attonbitus.
isVerified
true
helpfulCount
151
createdAt
updatedAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 21,
  "productId": 4,
  "userId": 93,
  "rating": 5,
  "title": "Caute constans eos.",
  "body": "Tredecim esse nemo vinculum credo varietas timor. Subnecto credo textilis congregatio attonbitus.",
  "isVerified": true,
  "helpfulCount": 151,
  "createdAt": "2025-01-24T03:42:21.134Z",
  "updatedAt": "2025-05-03T15:51:48.779Z"
}