惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
U
Unit 42
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
G
Google Developers Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Jina AI
Jina AI
量子位
宝玉的分享
宝玉的分享
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
美团技术团队
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tailwind CSS Blog
博客园 - 司徒正美
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Forbes - Security
Forbes - Security
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Privacy International News Feed
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
V2EX - 技术
V2EX - 技术

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
JD.com's isJdSelfRun Flag Is the Best Gray-Market Detection Signal in Chinese E-Commerce (Python Scraper Inside)
Sami · 2026-05-16 · via DEV Community

If your brand sells on JD.com (China's #2 e-commerce platform, ~600M annual active users) — or competes against one that does — there's a gray-market problem you can't see without one specific field in JD's data.

That field is isJdSelfRun. It tells you whether a given product listing is fulfilled by JD itself (their warehouses, their warranty, their return logistics) or by a third-party merchant on JD's marketplace. Combined with the seller's sellerType (flagship / franchise / specialty / self-run), it's the single cleanest signal for detecting unauthorized resellers on Chinese e-commerce — and almost no generic scraper surfaces it.

This post walks through:

  • Why JD's hybrid retail model creates the gray-market detection opportunity
  • The exact field signatures (isJdSelfRun, sellerType) and what they mean
  • Three concrete workflows: brand authorization audit, competitive pricing, gray-market detection
  • A 50-line Python integration with the Apify Actor I built around this
  • Honest cost math at indie scale and at hedge-fund scale

If you don't want to read the whole thing: the Actor is at zhorex/jd-scraper, and pricing is $0.008 per product detail + $0.02 per seller store record (pay-per-event, no subscription).

The hybrid retail model that creates the signal

JD.com is structurally different from Tmall and Pinduoduo. Tmall is a marketplace — every SKU is sold by a third-party merchant; Alibaba just runs the platform. JD operates a hybrid: a meaningful chunk of its catalog is sold and shipped by JD itself (JD Logistics, JD Plus warranty, JD's own returns), with the rest fulfilled by marketplace merchants.

That hybrid creates an information asymmetry buyers can exploit. When a consumer searches a brand's SKU on JD, they see all listings — but the trust signal comes from whether it's JD-self-run or a third-party. For a brand monitoring team, the question becomes: of the third-party listings of my SKU, which are authorized resellers and which are gray-market?

The data answers it in two fields:

{
    "productId": "100009082476",
    "sellerName": "Apple产品京东自营旗舰店",
    "isJdSelfRun": true,
    "sellerId": "1000003566",
    ...
}

Enter fullscreen mode Exit fullscreen mode

isJdSelfRun: true means JD is the seller. The other listings — those with isJdSelfRun: false — are where the gray-market questions live, and where you need the seller's type to decide.

The seller type enum

A separate scrape against the seller store endpoint resolves to one of four values:

{
    "sellerId": "1000003566",
    "sellerType": "flagship_store",
    "serviceScore": 4.9,
    "logisticsScore": 4.8,
    "descriptionAccuracyScore": 4.9,
    ...
}

Enter fullscreen mode Exit fullscreen mode

  • flagship_store (官方旗舰店) — the brand's own JD store. There should be exactly one per brand. If you see multiple, you have a counterfeit-or-impersonator problem.
  • franchise_store (品牌专营店) — authorized franchise of the brand. Brands typically maintain a list of these.
  • specialty_store (专卖店) — third-party that specializes in selling the brand. Often authorized via distribution agreement; sometimes gray-market.
  • jd_self_run (京东自营) — JD's direct retail. Always legitimate.

The canonical gray-market signature: a flagship_store listing alongside three specialty_store listings priced 20-40% lower on the same SKU. Those specialty stores are usually moving inventory acquired outside the authorized channel (parallel imports, diverted product, refurbished-as-new). They're flagged the moment your monitoring sees the price gap.

Three workflows the data unlocks

Workflow 1 — Brand authorization audit

Submit your SKU IDs. Get back a record per listing with sellerType resolved. Filter to entries where isJdSelfRun: false AND sellerType is not in your authorized list. That's your unauthorized reseller list, refreshed on whatever cadence you want.

A small brand watching 50 SKUs across 200 listings (4 average sellers per SKU) costs about $2 per refresh: 200 seller records × $0.02 + 50 product details × $0.008 = $4.40 ($2.20 if you skip product detail and only check sellers).

Workflow 2 — Competitive pricing intelligence

The product detail mode returns a realtimePrice field that is fetched fresh at scrape time, not parsed from cached HTML. JD runs flash discounts that move prices within hours; cached scrapers miss them entirely.

Tracking 200 competitor SKUs hourly = 200 × 24 × 30 = 144,000 detail records per month, $1,152 in raw event cost. At hedge-fund-grade refresh rates this is real money, but it's the right order of magnitude for the buyer cohort that already pays $3K-15K/month for alt-data feeds.

Tracking 200 SKUs daily (more realistic for a brand team) = 6,000 records × $0.008 = $48/month. Cheap enough to run as a cron.

Workflow 3 — Gray-market detection at scale

The canonical pattern in code:

for product in products:
    listings = [l for l in product["allListings"] if not l["isJdSelfRun"]]
    cheap_specialty = [
        l for l in listings
        if l["sellerType"] == "specialty_store"
        and l["price"] < product["msrp"] * 0.80
    ]
    if len(cheap_specialty) >= 3 and any(l["sellerType"] == "flagship_store" for l in listings):
        alert(product, cheap_specialty)

Enter fullscreen mode Exit fullscreen mode

That's the brand-monitoring signal: a real flagship store coexisting with three or more sub-MSRP specialty stores on the same SKU. Brand teams pay agencies five-figure annual contracts to surface exactly this kind of alert; running it yourself on this data feed costs cents per check.

The 50-line Python integration

Here's the working integration end-to-end. Replace YOUR_TOKEN with your Apify API token:

from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")

# Scrape product details for your SKU list
run = client.actor("zhorex/jd-scraper").call(run_input={
    "mode": "product_detail",
    "productUrls": [
        "https://item.jd.com/100009082476.html",
        "https://item.jd.com/100012345678.html",
    ],
})

unauthorized_sellers = set()
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if not item["isJdSelfRun"]:
        unauthorized_sellers.add(item["sellerId"])
        print(
            f"Non-self-run listing: {item['productTitle']}\n"
            f"  Seller: {item['sellerName']} (id {item['sellerId']})\n"
            f"  Price: {item['realtimePrice']}\n"
        )

# Now drill into those sellers to classify them
if unauthorized_sellers:
    seller_run = client.actor("zhorex/jd-scraper").call(run_input={
        "mode": "seller_store",
        "sellerUrls": [f"https://mall.jd.com/index-{sid}.html" for sid in unauthorized_sellers],
    })
    for seller in client.dataset(seller_run["defaultDatasetId"]).iterate_items():
        flag = "⚠️ AUDIT" if seller["sellerType"] == "specialty_store" else ""
        print(f"{flag} {seller['sellerName']}{seller['sellerType']} (service: {seller['serviceScore']})")

Enter fullscreen mode Exit fullscreen mode

That's the whole audit. Two API calls, classified output, ready to feed into Slack alerts / spreadsheet exports / BI dashboards.

Honest pricing — what does this cost in production?

Workflow Volume / month Cost / month
Brand watchlist — 50 SKUs daily 1,500 product details ~$12
Brand authorization audit 500 sellers, monthly ~$10
Competitive pricing — 200 SKUs daily 6,000 product details ~$48
Competitive pricing — 200 SKUs hourly 144,000 product details ~$1,152
Gray-market sweep — 200 SKUs + 50 sellers 200 details + 50 sellers ~$2.60

Indie brand teams typically run the daily/monthly workflows ($10-60/month). Hedge-fund alt-data and agency-scale customers run hourly or 15-minute refreshes (low four figures monthly). Both work on the same Actor with the same event-priced billing.

What this Actor doesn't do

Two honesty disclosures:

  1. No search discovery. You bring the SKU list. Discovery requires a different scraping pattern that doesn't survive shared residential proxy pools the way product detail and seller store do.
  2. No review scraping. Same reason — JD's WAF gates the review API at the IP-reputation level on shared pools. If you need review sentiment, the Apify Store has other scrapers, or contact me for a premium-proxy integration.

The README on the Actor page documents this in a "Known limitations" section. If your workflow needs either, this Actor isn't the right tool.

Why I built this

I run a portfolio of six Chinese-platform scrapers on Apify Store (zhorex). Five of them cover sentiment and content: Weibo for trending, RedNote (Xiaohongshu) for lifestyle, Bilibili for video, Douban for long-form reviews, Xueqiu for stock-cashtag discussion. The JD scraper extends the suite into commerce — the missing layer for buyers who already use the social ones for brand monitoring.

The six together are a stack. A consumer-electronics brand can track sentiment on Weibo, video reviews on Bilibili, lifestyle unboxings on RedNote, and gray-market resellers on JD — all on the same vendor, same billing, same API surface.

Try it

The Actor is live: zhorex/jd-scraper. Pay-per-event billing — no subscription, no setup fee. Run a small evaluation batch (the Apify Free plan includes monthly platform credit you can apply to the run) to confirm output quality on your SKU list before scaling up.

The rest of the Chinese Digital Intelligence Suite:

  • Weibo Scraper — pair with JD to catch when a SKU trends socially before stock-outs hit
  • RedNote Scraper — Chinese lifestyle unboxings; useful for fashion, beauty, baby, home brands
  • Bilibili Scraper — video reviews; especially valuable for tech and consumer electronics SKUs
  • Xueqiu Scraper — Chinese retail-investor sentiment; pair if you trade JD stock (NASDAQ:JD) alongside operational metrics
  • Douban Scraper — long-form film / book / music reviews; less relevant for commerce but useful for IP / entertainment teams

If you ship a brand-monitoring workflow on top of any of these, drop a comment with what you're tracking. If this saved you the time of building an integration from scratch, a heart on the post or a follow keeps these writeups coming.