Shopify Best-Seller Rank Movement Tracker
Pricing
from $20.00 / 1,000 rank movement reports
Shopify Best-Seller Rank Movement Tracker
Enter one Shopify store URL. The first run saves a best-selling rank baseline; every later run reports rank climbers, fallers, new entrants and drop-offs with severity, plus a CSV rank history.
Pricing
from $20.00 / 1,000 rank movement reports
Rating
0.0
(0)
Developer
Practical AI Lab
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
Merchandising and competitive teams cannot see a rival Shopify brand's sales. The one public signal is the order of the store's collection feeds, which for many collections follows Shopify's best-selling sort. This Actor turns that signal into a repeatable report:
- First run: you enter one store URL. The Actor saves a rank baseline and shows a sample of the current top ranks.
- Every later run: it compares against the saved baseline and reports rank climbers, fallers, new entrants and drop-offs in one severity-ranked action list, plus a CSV rank history with source URLs.
Rank is a demand proxy, not sales proof. The Actor never shows revenue, units sold or conversion. Treat every result as a lead to verify on the storefront.
Quick start: one URL
The only required input is storeUrl.
{"storeUrl": "https://your-rival-store.com"}
Replace the example with the public HTTPS storefront you want to watch. The pre-filled sample URL in the Console is only a placeholder for a first test; use the rival you actually track.
What happens on the first run:
- Output status is
BASELINE_CREATED. No movements are reported yet because nothing exists to compare against. - The baseline is stored per store domain in a named key-value store (default
pal-shopify-rank-tracker-state). - You still receive a
rank_sampleset (the current top 10 of the store-wide collection) and aREPORTandRANK_HISTORY_CSVso you can check the data before relying on it.
Scheduling later runs
Movement can only be detected when a run happens. This Actor does not monitor continuously and does not send alerts.
To get regular comparisons:
- Save your input as an Apify Task for this Actor.
- In the Apify Console open Schedules, create a schedule (for example daily) and add the task.
- Keep the same
stateStoreNameon every run so each run finds the previous baseline.
Compare runs on a steady cadence. A daily or weekly schedule gives more interpretable movement than irregular manual runs. If you want notifications, connect your own Apify integration or webhook to the dataset; that is not part of this Actor.
The four buyer outcomes
Every action record has an outcome, a severity (high, medium, low), a numeric priority_score and a plain-language recommended_action.
| Outcome | What it means | Typical use |
|---|---|---|
climber | Product moved up by at least minRankChange positions. | Push detection: check the rival's price, stock and promotion; decide whether to match or bundle. |
faller | Product moved down by at least minRankChange positions. | Cooling detection: look for stock-outs or discounting and consider promoting your equivalent. |
new_entrant | Product entered the tracked window. | Launch radar: review emerging products for assortment decisions. |
drop_off | Product left the tracked window. | Exit watch: verify whether it was retired, sold out or just pushed deeper. |
One product appearing in several collections is joined into a single action. Additional signals add to the score:
sold_out_while_climbing,price_cut_while_climbing,price_increase_while_climbingdiscounting_while_falling,sold_out_while_fallingsold_out_on_entryconfirmed_in_N_collections
Severity scoring
- Climbers and fallers: size of the move relative to the collection (at least 40 positions as the base), plus a bonus when the product enters or leaves the top tier (
topTierSize, default 10) or sits in the top 3. - New entrants and drop-offs: scored by the rank position (top 3 highest, then top tier, then twice the top tier).
- Score 60 and above is
high, 35 to 59 ismedium, below 35 islow. confidence(low,medium,high) is lowered for small collections (fewer than 20 ranked products), fewer than 3 stored snapshots, possible bulk re-orders, and rank sources other than the best-selling sort. The reasons are listed in each action'scaveats.
Output
Dataset (overview view): one run_summary record first, then severity-ranked action records (up to 200), then rank_sample records.
Run statuses:
| Status | Meaning |
|---|---|
BASELINE_CREATED | Snapshot saved; no comparable earlier snapshot yet. |
CHANGES_DETECTED | At least one movement action was found. |
NO_CHANGES | Comparison done, nothing moved by the minimum threshold. |
NO_DATA | Nothing could be read (errors, empty or malformed feeds). State is left untouched. |
ROBOTS_BLOCKED | robots.txt does not allow the requested feeds. |
ROBOTS_UNAVAILABLE | robots.txt could not be read reliably, so no store page was requested. |
UNSAFE_TARGET | The host resolved to a non-public address. |
Key-value store (default run store):
OUTPUT: the run summary.REPORT: the complete JSON action report (priority actions, outcome lists, per-collection status, skipped items, limitations).RANK_HISTORY_CSV: one row per snapshot, collection and ranked product withrank,previous_rank,rank_change, price, availability,product_urland the exact feedsource_url. Text cells starting with spreadsheet formula characters are prefixed with an apostrophe.
Positive rank_change always means the product moved up the ranking (rank 12 to rank 1 is +11).
Illustrative action record (not from a real run)
{"record_type": "action","outcome": "climber","severity": "high","priority_score": 85,"confidence": "low","product_title": "Item 12","collection": "all","rank_basis": "best_selling_sort","previous_rank": 12,"current_rank": 1,"rank_change": 11,"price_change_percent": -25.0,"signals": ["price_cut_while_climbing"],"recommended_action": "Review this rival product now: check its price, stock and promotion, ...","caveats": ["Small sample: only 12 ranked products in this collection, so rank moves are noisy."]}
Input options
| Field | Default | Purpose |
|---|---|---|
storeUrl (required) | none | One public HTTPS storefront URL. Only the host is used. |
collectionHandles | empty | Specific collections to track. Empty means store-wide all plus the largest public collections. |
maxCollections | 5 | Collections per run (1 to 20). |
maxProductsPerCollection | 100 | Top positions ranked per collection (10 to 500). |
maxRequests | 30 | Hard request cap per run, including robots.txt (5 to 100). |
minRankChange | 3 | Smaller moves are ignored. |
topTierSize | 10 | Top-tier boundary used for severity. |
rankBasisPolicy | auto | auto, best_selling_only or default_order_only. |
historySnapshots | 8 | Snapshots kept per store (2 to 12). |
requestDelaySeconds | 1 | Pause between requests (0.5 to 10). |
stateStoreName | pal-shopify-rank-tracker-state | Named key-value store holding baselines. |
About the rank source
Shopify's default robots.txt normally disallows URLs containing sort_by, which includes the best-selling sort. The Actor checks robots.txt before every request and never overrides it:
auto(default): use the best-selling sort when permitted; otherwise use the collection's default order for that collection. Each record states itsrank_basis:best_selling_sortorcollection_default_order. A merchant may set the default order to best-selling, manual, newest or anything else, so default-order ranks reflect merchant placement, not necessarily demand, and confidence is capped.best_selling_only: never fall back; stores that block the sort returnROBOTS_BLOCKED.default_order_only: track merchant placement only.
If a collection's rank basis changes between runs, it is not compared; a new baseline is created and the report says so.
Safety and public-data rules
- Only
https://store URLs on the default port. IP addresses, credentials, internal and reserved host names are rejected. - DNS answers must all be public addresses; the connection is pinned to the validated address, TLS certificates are verified, redirects are not followed (robots.txt may only redirect between the bare domain and its
www.twin). - robots.txt is read first and checked before every request. Missing robots.txt (HTTP 404/410) means allowed; any other failure, an HTML page instead of rules, or a block means refusal.
- Only public JSON feeds are read: the collection list and collection product feeds. No logins, no cart or checkout paths, no personal data, no proxies.
- Bounded pagination, per-response size limit, request budget, delay between requests, and a full stop after HTTP 429.
- Product handles and titles are stored only as product data. No customer, contact or reviewer data is read.
Pricing event
The code defines one pay-per-event name, rank-movement-report (src/pricing.py), charged once through Actor.charge only when a repeat run delivers at least one rank movement action. Baseline runs, runs without changes, refused runs, runs without data and failed runs are never charged. No payable plan or price is configured in this project; pricing must be set up separately on the platform.
Limitations and sample-size caveats
- Rank is a proxy. Public feeds show an ordering, not sales, and the ordering may be influenced by merchant settings, pinned products, promotions or stock status.
- Many stores block the best-selling sort in robots.txt. In that case results describe default order, not best-selling.
- Only the configured top window is ranked. A
drop_offmeans the product left that window, not that it was discontinued. If a run's window differs from the previous one, only positions both runs could see are compared. - Small collections (fewer than 20 ranked products) and short histories (fewer than 3 snapshots) produce noisy moves. Collections where most products shift at once are flagged as possible bulk re-orders.
- The first comparison covers one interval. Wait for several snapshots before judging a trend.
- Hidden products, variant-level and market-specific ordering are not visible.
- State is one record per domain. Two overlapping runs for the same store can overwrite each other's baseline. Run them one after another.
- A feed that returns zero products is treated as missing data, not as every product dropping off.
- The Actor reads Shopify-style public JSON endpoints. Stores that disable or customize them (headless storefronts, password pages) return
NO_DATA. - This build was written and unit-tested offline only. It has not been run against a live Shopify store or on the Apify platform.
State storage note
Baselines are kept with the Apify SDK key-value store get_value and set_value calls, one record per store domain. A named store is used because each run's default store is discarded or isolated per run on the platform; the named store is what allows a later run to find the previous baseline. Deleting the named store resets all baselines.
Local checks
Tests are fully offline and use only the Python standard library plus mocks:
$python -m unittest discover -s tests -t .