You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search results dumped all 6 pricing tiers (FREE through DIAMOND) for every
event of every actor, bloating output with no value (e.g. Google Maps Scraper
returned 9 events x 6 tiers = 54 price entries). Only the user's tier matters
in a search listing.
Now search-actors shows only the user's tier price (FREE fallback) plus a
short hint about other tiers. fetch-actor-details is untouched and still
returns full tiered pricing.
- Extend user cache to also return userPlanTier from the same API call
- Add pricingInfoToSimplifiedString and pricingInfoToSimplifiedStructured
- Add userTier to ActorCardOptions, branch in card formatters
- Add pricingNote field to StructuredPricingInfo for the hint
return`This Actor charges per results${customUnitName ? ` (in this case named ${customUnitName})` : ''}; price per 1000 ${unitLabel} for ${picked.tier} tier: $${picked.value.tieredPricePerUnitUsd*1000}. ${SIMPLIFIED_PRICING_NOTE}`;
266
+
}
267
+
return`This Actor charges per results${customUnitName ? ` (in this case named ${customUnitName})` : ''}; the price per 1000 ${unitLabel} is ${(pricingInfo.pricePerUnitUsdasnumber)*1000} USD.`;
return`This Actor is rental; price for ${picked.tier} tier: $${picked.value.tieredPricePerUnitUsd} per month, with a trial period of ${value}${unit}. ${SIMPLIFIED_PRICING_NOTE}`;
274
+
}
275
+
return`This Actor is rental and has a flat price of ${pricingInfo.pricePerUnitUsd} USD per month, with a trial period of ${value}${unit}.`;
return`This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for the following events:\n${lines.join('\n')}${suffix}`;
300
+
}
301
+
return'Pricing information is not available.';
302
+
}
303
+
304
+
/**
305
+
* Simplified structured pricing for search-actors: collapses tiered pricing arrays
306
+
* to a single entry for the user's tier (with FREE fallback) and sets `pricingNote`.
0 commit comments