Menu

Your review denominator is counting helpful votes
📰

Your review denominator is counting helpful votes

DEV Community: node·Nimbryxo-studio·about 13 hours ago
#8m7UnSFI
#devtonodejs#devto#dev#review#product
Reading 0:00
15s threshold

Your dashboard says a product has thousands of reviews. You trace the tile back to the review rows you just imported, and the arithmetic looks perfectly respectable.

The unit is wrong. A review's totalCount measures combined upvotes and downvotes, not the product's review total.

That mistake survives successful jobs, valid JSON, and tidy charts. Before you pay for another collection run, follow the field feeding the tile.

Example collection input below makes the review settings explicit and retrieves items after the run finishes:

import { ApifyClient } from 'apify-client' ; import { z } from 'zod' ;

const client = new ApifyClient ( { token : process . env . APIFY_TOKEN } ) ;

const input = { mode : 'search' , searchQuery : 'laptop' , includeDetails : true , includeReviews : true , maxReviewsPerProduct : 20 , reviewsSort : 'MOST_HELPFUL' , certifiedBuyersOnly : false , maxItems : 3 , maxPages : 1 , } ;

const run = await client . actor ( 'nimbryxo-studio/flipkart-product-price-and-specs-scraper' ) .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.