Xianyu / Goofish API in 2026: Official, GitHub, Paid
Xianyu (Goofish) API options in 2026: official access is for invited vendors, 10 of 15 GitHub tools need your login, paid search is $0.16 per 1,000 rows.

Yes, you can get Xianyu data through an API, but each route serves a different person. EveryInfra, the API vendor that publishes this blog, sells one of the pay-per-call options. The prices and failure billing below come from our own test calls.
Xianyu is Alibaba's second-hand marketplace in China, and its web version runs at goofish.com. The official interfaces give a seller access to that seller's own shop, or let an invited vendor build a mini app inside Xianyu. GitHub tools read the public site, but most of them log in with your own Xianyu account. Pay-per-call APIs read public listings with a vendor key and no Xianyu account.
On November 25, 2026, between 00:14 and 00:24 SGT, we sent four Xianyu requests to EveryInfra and paid $0.049333 in total. One keyword search for "iPhone 15 Pro 256G" returned 50 listings for $0.008, which is $0.16 per 1,000 rows. A detail call for seven item IDs returned six, refunded the fake seventh ID, and cost $0.033333. A request with limit set to 80 came back as a 422 error before any charge. In the two pages of iPhone results, 17 and 14 listings were locked US phones, managed devices, replaced screens or financing dealers. After we removed them, "almost new" iPhone 15 Pro listings had a median of ¥3,500 (about $521.52), and "light scratches" had ¥2,949.5.

Xianyu API options compared
We read the official columns from the Xianyu mini app docs and the Xianguanjia developer docs on 2026-11-25. Star counts and last push dates for the GitHub column come from the GitHub REST API at 00:16 SGT the same day. EveryInfra prices come from the public catalog at 00:13 SGT. We also read TikHub's public price list, but it had no Xianyu endpoint, so it has no column here.
| Question | Xianyu mini app / vendor APIs | Xianguanjia open platform | GitHub tools | EveryInfra |
|---|---|---|---|---|
| Whose data | Orders and basic user facts for sellers who authorize you | Items and orders of shops bound to your Xianguanjia account | Any page your logged-in account can see | Public listings, prices, condition tags, seller profile facts |
| How you get access | Invitation, Taobao enterprise account, Jushita hosting | Paid ERP plan per shop, app must go live | Install, log in, tune | Create a key, add balance |
| Billing unit | No per-call price in the docs | Per-shop plan; 10 QPS and 100,000 calls per API per day | Your servers, proxies and time | Per search call, per listing for details |
| Search, per 1,000 rows | No marketplace search | No marketplace search | Self-hosted | $0.16 at 50 rows per call, $0.40 at the default 20 |
| Item details, per 1,000 | Only items of authorizing sellers | Only your own items | Self-hosted | $5.56 |
| Failed requests | Not applicable | Not applicable | Not applicable | 422 before charge; missing listings refunded |
| Xianyu account or cookie | Enterprise account and Alipay verification | Seller authorization every six months | 10 of 15 need your login | No Xianyu account, only an EveryInfra key |
| MCP for AI tools | None | None | goofish-cli and xianyu-mcp-server | One remote MCP URL |
The rate limit numbers come from question 4 of the Xianguanjia self-build guide. All APIs on one Xianguanjia account share 10 queries per second. Each API allows 100,000 calls per day, and you can buy more QPS from the platform. Question 15 on the same page says a shop authorization lasts six months.
Search is billed per call, so 50 rows cost the same $0.008 as 20 rows. That drops the cost per 1,000 rows from $0.40 to $0.16.
Item details are billed per listing at $0.005556, with up to 20 listings per call. If a listing is gone or the ID is wrong, that listing is refunded. In our 00:20 SGT call, one of the seven IDs was made up. The response showed partial: true and listed that ID in missed. The billing object charged six listings, $0.033333, and the seventh listing ($0.005556) was not charged.
Does Xianyu have an official API?
Xianyu has two official routes, and both serve sellers and invited vendors. The first route is the Xianyu third-party open platform at open.goofish.com. It is for vendors that run mini apps inside the Xianyu mobile app. The second route is Xianguanjia at goofish.pro, a desktop workstation for Xianyu sellers with its own developer API. Both routes return data about sellers who authorize you. Neither route has a marketplace-wide search endpoint.

The quick-start page puts the gate in its first section. Xianyu mini apps are not open to public applications, and uninvited registrations are rejected. Invited vendors then register a Taobao enterprise account and verify it with Alipay. They join the Taobao Open Platform as an app developer and request two app keys, one for consumer apps and one for business apps. The page also says three legal entities must match: the Taobao platform account, the Xianyu account and the contract signer.
The server-side guide adds a hosting rule. User IDs and order data must stay in a database inside Jushita, Alibaba's cloud for app vendors, and the backend must run there too. A seller grants an access token once in the browser, and the token works for 180 days. The default permission pack has 13 APIs, and all of them deal with orders, refunds, shipping and user checks. The FAQ repeats that Jushita hosting is required for mini app vendors.
| Official entry | Whose data | Main limits from the docs | Who it fits |
|---|---|---|---|
| Xianyu mini apps (open.goofish.com) | Buyers who order in your mini app; sellers who authorize you | Invitation only; matching legal entities; Jushita hosting | Invited vendors that sell inside Xianyu |
| Taobao Open Platform, Xianyu category | Sellers who authorize the vendor | Every API page says "authorization required" and "call inside Jushita" | Inspection, consignment and recycling vendors |
| Xianguanjia open platform | Shops on a paid ERP plan under your account | Per-shop plan; six-month authorization; no chat, no views | Sellers who connect ERP and auto-delivery |
| Xianguanjia product list API | Your own items changed in the last six months | Basic fields only; details need a second call | Stock reconciliation |
The Taobao Open Platform also lists a Xianyu API group. It runs from vendor item publishing to shipping without logistics. Each page carries the "authorization required" and "call inside Jushita" labels. The API with the most search-like name is batch item query for vendors, alibaba.idle.isv.item.query.batch. Its only required parameter is item_ids, with up to 50 IDs per batch. You must already know the IDs, and they must belong to sellers who authorized you.
Xianguanjia: a seller tool without market data
Xianguanjia answers its scope in a 15-question self-build guide. Your app must use an inventory-management app key and must be live before any call works. The API only covers Xianyu shops that have an ERP Professional or Platinum plan on your Xianguanjia account. A newly bound shop gets a seven-day trial, and there is no sandbox or test account. Question 11 says chat APIs are "not supported now and will not be supported later".
Question 12 covers market data. Exposure, page views, "want" and favorite counts, inquiry counts and search rank are not available through the API. The endpoint index lists 50 entries in groups for users, items, orders, after-sales, push and digital codes. Requests use MD5 signatures. The product list API returns only items modified in the last six months, with basic fields.
The Xianguanjia user manual says one workstation account can bind up to 30 Xianyu accounts. We did not find the plan prices in the public docs we read on 2026-11-25. Third-party ERP guides, such as the Wangdian Guanjia integration note, say only that the shop must order the Professional plan first.
When the official route is the right call
Xianguanjia writes data. It can create items in bulk, republish them on a schedule, change prices, ship orders and manage digital code stock. The manual says republishing an item helps it collect new exposure and "want" counts. A pay-per-call data API reads public pages only. It cannot see your order amounts, buyer addresses or refund reasons, and it cannot edit your items. Shops that sell digital goods or run an ERP should budget for Xianguanjia.
GitHub projects: most need your login
We searched GitHub through its repository search API with eight queries, such as "xianyu", "goofish", "xianyu mcp" and the Chinese name of the app. We removed repositories that only mention the keyword in passing and kept 15 that work with Xianyu data. At 00:16 SGT on 2026-11-25 we read stars, last push and license through the GitHub REST API for repositories. Then we read each README to see if it needs a login. The largest is ai-goofish-monitor with 20,713 stars under MIT.
| Repository | Stars | Last push | License | Login need (from the README) |
|---|---|---|---|---|
| Usagi-org/ai-goofish-monitor | 20,713 | 2026-10-10 | MIT | Yes, paste an exported login-state JSON |
| shaxiu/XianyuAutoAgent | 9,777 | 2026-06-10 | GPL-3.0 | Yes, COOKIES_STR from the web version |
| zhinianboke/xianyu-auto-reply | 8,384 | 2026-11-24 | AGPL-3.0 | Yes, cookies for many accounts |
| DropsDevopsOrg/ECommerceCrawlers | 5,795 | 2024-05-22 | MIT | No cookie; Xianyu is only an idea |
| cv-cat/XianYuApis | 1,763 | 2026-08-18 | None | Yes, a logged-in cookie |
| superboyyy/xianyu_spider | 923 | 2026-09-18 | None | Optional; falls back to logged-out search |
| pbeenigg/LittleCrawler | 766 | 2026-08-09 | MIT | Yes, QR code, phone or cookie |
| cv-cat/catbus | 651 | 2026-11-24 | MIT | Yes, QR login per platform |
| fancyboi999/goofish-cli | 509 | 2026-11-18 | Apache-2.0 | Yes, cookie import; has MCP |
| FearlessPeople/xianyu_spider | 454 | 2025-06-30 | GPL-3.0 | Author marks it as obsolete |
| XIE7654/goofish_api | 127 | 2026-05-21 | MIT | Xianguanjia SDK with seller app key |
| 11273/goofish-client | 70 | 2026-07-15 | GPL-3.0 | Yes, cookie, QR or password |
| voltwake/xianyu-monitor | 52 | 2026-02-25 | MIT | Optional; logged out sees only older items |
| DoLovya/xianyu-mcp-server | 22 | 2026-08-24 | NOASSERTION | Yes, cookie check; has MCP |
| LENKIN233/xianyu-monitor-skill | 22 | 2026-09-30 | MIT | Yes, QR scan saves a login file |
The 15 repositories fall into three groups. The first group is seller tools for customer chat and delivery. XianyuAutoAgent, xianyu-auto-reply and XianYuApis connect to the Xianyu message service over WebSocket and reply to buyers with the seller's own login. They fill the chat gap that the Xianguanjia FAQ says will stay closed. The second group is buyer tools that watch for underpriced items, such as ai-goofish-monitor and xianyu-monitor. The third group is general scrapers, such as LittleCrawler, catbus and goofish-cli, that put Xianyu next to other Chinese platforms.

Two repositories describe logged-out access in different ways. superboyyy/xianyu_spider says search continues in logged-out mode when the login expires, sorted by newest. voltwake/xianyu-monitor shows a table in the screenshot above. Logged out, you only see items posted more than six hours ago. Its README strongly suggests a spare Xianyu account. For a deal-hunting bot, those first six hours are the whole point, so nearly every monitor treats login as step one.
goofish-cli documents its own throttles in the README. Shop actions run at one per minute and media actions at nine per minute. A risk-control code from Xianyu trips an automatic fuse. Those limits tell you how the tool expects the site to react to heavy traffic from one account.
Licenses need a separate check. The GitHub API reports eight MIT, three GPL-3.0, one AGPL-3.0 and one Apache-2.0 license among the 15. XianYuApis and superboyyy/xianyu_spider have no license file, and DoLovya/xianyu-mcp-server reports NOASSERTION. GitHub's own licensing guide says code without a license keeps all rights with the author. Nobody may copy, distribute or build on it by default. GPL-3.0 and AGPL-3.0 add source-sharing conditions when you distribute changed code, and AGPL-3.0 also covers software that users reach over a network. Before you put this code in a product, check the license text and ask a lawyer.
Activity also varies. By last push date, only three of the 15 repositories had a push in the last 30 days. xianyu-auto-reply and catbus pushed on November 24, 2026, and goofish-cli pushed on November 18, 2026. Thirteen had a push at some point in 2026.
Two stopped earlier: ECommerceCrawlers in May 2024 and FearlessPeople/xianyu_spider in June 2025, which its author marks as obsolete. A repository with no push for months can break when the Xianyu web page changes. Fast updates cause a different problem: old tutorials stop matching the code.
What the videos and their comments add
We ran youtube/search for the Chinese phrase for "Xianyu data scraping crawler". Six of the top ten results were about Xianyu, with view counts from 162 to 5,991. Most titles promise "JS reverse engineering" or "app reverse engineering" of request signatures. The most viewed was a 20-minute AI monitor setup video that walks through ai-goofish-monitor. That video and a search reverse-engineering video had no captions. Both youtube/transcript calls came back empty, were refunded and cost $0.
So we read 40 comments under the monitor video for $0.000556. The problems fall into four groups. Viewers report that one account triggers risk control after a single item, and one posts the tool's own "anti-scraping check detected, program will stop" message. Others ask if the account will be banned, and one wants a refresh interval under three seconds. A reply warns that such a rate will get the account banned. Several report that the tutorial is out of date, or that proxies, container networking and model keys fail during setup.
The comments show that upkeep is daily work. After the tool runs, someone must refresh the login state and clear risk checks by hand. When risk control flags an account, the user must log in with a new account.
Is there a ready-made Xianyu API for public data?
Yes. A pay-per-call API needs no Xianyu account. You call an HTTP endpoint with the vendor's key and pay per call or per row. The EveryInfra catalog listed two Xianyu capabilities at 00:13 SGT on 2026-11-25, and both showed available: true.
| Capability | Price | Max per call | Fields in catalog | Billing notes from the catalog |
|---|---|---|---|---|
xianyu/search | $0.008 per call | 50 rows (default 20) | 20 | Full pages stay cached for one hour; a repeat with the same keyword and limit returns the same rows and is billed again |
xianyu/item_detail | $0.005556 per listing | 20 listings | 46 | Billed per listing; listings not found are refunded; app share links are not accepted |
We also checked TikHub, another vendor that sells pay-per-call social data. At 00:18 SGT we requested its public endpoint price list without a key. It returned 1,488 endpoints. A match on "xianyu", "goofish", "idle" and "fleamarket" found none. Douyin had 424 endpoints, TikTok 246, Instagram 156 and Xiaohongshu 95.
At 00:38 SGT we also fetched the TikHub documentation home page, about 990 KB of HTML, and found no mention of Xianyu or Goofish. Its pricing page says one balance covers 16 platforms from $0.001 per request. Its FAQ says only requests that return status 200 are billed. With no Xianyu price to compare, TikHub has no column in the table. Our general comparison with that company is on the TikHub alternative page.
| What to test | How to test it | What we saw on EveryInfra |
|---|---|---|
| Bad parameters | Send limit: 80 when the maximum is 50 | 422 invalid_value in 0.2 s, no charge |
| Missing listings | Mix one fake ID into a detail call | Six billed, the fake ID refunded |
| Rows per call | Ask for the maximum | 50 rows per search |
| Seller facts | Read the search and detail fields | Search has a seller nickname and credit label; detail adds listing counts |
| Price meaning | Check the field description | price is the asking price, not a sale price |
| Xianyu login | Read the setup steps | None needed |
Two of those tests take minutes and should cost nothing. If a vendor charges for the 422 call or for the fake ID, ask how it bills failures before you build on it. These same questions apply to any other pay-per-call service you consider.
Two fields to understand before you rely on them
want_count is the "N people want this" number on a listing card. The catalog says the field is null when the card does not show it, and null does not mean zero. In our iPhone 15 Pro search, 14 of 50 rows were null. In the Pro Max search, 23 of 50 were null. In the 15 Pro search, the highest of the 36 non-null counts was 605. It belonged to a dealer ad for "wholesale and retail" stock that went live in March 2024.
The median of those 36 counts was only 4, and 20 of them were 5 or less. The next four were 144, 73, 43 and 41. In the Pro Max search, the 27 non-null counts had a median of 3 and a maximum of 59. A few large values pull the mean up, so use the median when you summarize wants.
If you rank by want_count, old listings and dealer ads float to the top. Filter by posted_at first, then rank. Condition needs the same care. The search tags carry platform condition labels such as "almost new", "light scratches" and "some scratches", and 47 of the 50 iPhone 15 Pro rows had one.
The detail field condition_level uses a 10-point scale. All six listings we fetched scored 9, even though their titles said 97%, 98%, 99% new or "a bit worn". That scale is too coarse to split price bands. Use the search condition label, then read title details such as battery health or cycle count.
The tags field has other useful labels. Price-drop tags such as "already cut by 100 yuan" appeared on 19 rows of the 15 Pro page and 16 rows of the Pro Max page. They show that the seller changed the price. Store the cut amount in its own column to see if asking prices for a model still fall.
The "trade-in subsidy" tag appeared on 22 and 31 rows. Two Pro Max rows had a "screen repaired" tag. Their titles also said "locked" or "replaced screen", so the title filter had already removed them. A second check against tags is a cheap way to find gaps in your title rules.
What the fields tell you
The catalog lists 20 fields for xianyu/search. In our 50 rows, 15 fields were filled on every row. free_shipping was filled on 49 rows, want_count on 36, seller_credit_label on 26 and original_price on 2. seller_id was empty on all rows, as the catalog warns, and city gives only the province.
On the 15 Pro page, 26 rows had a seller_credit_label: 14 "excellent", 10 "very good" and 2 "good". On the Pro Max page, only 19 rows had it, and 16 of them were "excellent". The label has three levels, and most filled rows sit at the top level. It does not separate sellers well alone. Read it with the item count and rating from the detail call.
| Field group | Search (50 rows) | Item detail (6 listings) | Use |
|---|---|---|---|
| Price and title | All rows | All listings | Median, quartiles, filter rules |
| Condition | 47 rows with a label | condition_level 9 on all six | Price bands by label |
| Location | Province only | City and district | Shipping origin, local market |
| Demand | want_count on 36 rows | Views, wants, favorites | Interest, not sales |
| Seller | Nickname, credit label on 26 rows | Items for sale, items sold, rating, reply rate, join date | Person or dealer |
| Sales | Not present | sold_count null on all six | Not usable for volume |
The detail call fills in the seller layer. Each of the six listings returned 31 or 32 non-empty fields out of 46 in the catalog. They include city and district, views, wants, favorites, items for sale, items sold, rating, 24-hour reply rate, join date and last visit. Items for sale ranged from 53 to 12,458, a 235-fold spread. The two sellers who wrote "personal use" had 53 and 107 items. A Chongqing dealer with a fixed title template had 12,458 for sale and 13,874 sold.
The Shenzhen seller of locked US phones had 6,171 items for sale. seller_item_count separates individuals from dealers better than the title does. A Wuhan seller listed an iPhone 15 Pro as personal use, with a note about a 1 mm screen leak. That listing had 1,023 views, 26 favorites and 17 wants. A shop in Yiyang with 600 items for sale had 56 views and no wants on its iPhone 15 Pro.
Those are lifetime counts for the listing, not sales. sold_count was null on all six, and the catalog says most Xianyu items do not show that number. A null value does not mean the item did not sell.
Divide lifetime views by days listed before you compare listings. The Wuhan phone went live on November 17, 2026, and had about 145 views per day over 7 days. The Chongqing dealer listing went live on November 12, 2026, and had about 15 views per day. The locked Shenzhen phone went live on July 17, 2025. Its 1,310 views look large, but that is fewer than 3 per day. The Yiyang shop listing had about 1 view per day over 56 days.
The seller fields also help. Five of the six sellers had a positive rating from 98% to 100%. The Zhumadian seller had 75%. The 24-hour reply rate ran from 79% to 100%. The oldest account dated from January 2018 (the Chongqing dealer), and the newest from December 2023 (the Wuhan seller).
Four seller_last_seen values said "just refreshed", which is Xianyu's button that bumps a listing. The three sellers with 600, 6,171 and 12,458 items were all in that group. Five of the six details had seller_other_items, with up to 10 more item IDs from the same seller. Send those IDs to the detail call to see the rest of a dealer's stock.
Which Xianyu API should you choose?
| Your task | Suggested route | Why |
|---|---|---|
| List, reprice and ship items in your own Xianyu shop | Xianguanjia open platform | Only it can write your items and orders |
| Sell inside Xianyu through a mini app | Xianyu open platform, by invitation | Orders go through Xianyu escrow |
| Run inspection, consignment or recycling for Xianyu | Taobao Open Platform, Xianyu category | Contracted vendors report back through authorized APIs |
| Price checks, buy-back quotes or market tracking for tens to hundreds of models a day | A pay-per-call API such as EveryInfra | No Xianyu account; 422 and missing listings are free; fits schedulers and AI tools |
| Catch new deals within minutes for yourself | Open-source monitor with your own account | Your account, your risk, your login upkeep |
| Let AI answer buyers in your own shop | XianyuAutoAgent or xianyu-auto-reply | The official API has no chat endpoint |
One used price check is one search. You fetch 50 rows, remove the listings that do not compare and compute the median and quartiles. That costs $0.008, or $8.00 per 1,000 runs. If you also verify the top three listings with a detail call, each run costs $0.024667, or $24.67 per 1,000.
A buy-back quote, as we ran it at 00:14 and 00:20 SGT, is one search plus six detail lookups. You read the price band, then check items for sale, views and wants on six candidates. That costs $0.041333 per run, or $41.33 per 1,000 runs.
| Plan | Runs | Unit cost | Monthly API cost |
|---|---|---|---|
| 20 phone models, one price check a day | 600 a month | $0.008 | $4.80 |
| 200 model and capacity pairs, one buy-back quote a week | About 867 a month | $0.041333 | About $35.82 |
| Same price check with three details | 600 a month | $0.024667 | About $14.80 |
Those totals cover only the API. A self-built scraper has no such line on the bill, but you pay for proxies, servers and people who refresh logins. You also lose time each time an account hits risk control. If the budget is tight, cut detail calls first. Fetch details only for listings outside the quartiles or with a sudden jump in wants.
Used price checks: remove 17 listings before the median
The iPhone 15 Pro page had 50 rows with asking prices from ¥888 to ¥5,499 and a median of ¥3,100. The ¥888 listing was a Wi-Fi-only phone sold "as a backup". The ¥5,499 listing was a dealer price sheet for sealed locked US phones. We removed listings by keywords in the title and description and kept 33. The range narrowed to ¥2,450 to ¥4,347, and the median stayed at ¥3,100.
At the 2026-11-24 central parity rate from China's foreign exchange administration, 6.7111 yuan per dollar, ¥3,100 is about $461.92. The quartiles were ¥2,900 and ¥3,599, or about $432.12 and $536.28.
| Keyword rule | 15 Pro 256G | 15 Pro Max 256G | Why we remove it |
|---|---|---|---|
| Locked, SIM adapter, US model | 5 | 3 | Needs an adapter to work; sells a tier lower |
| Managed device | 4 | 0 | Logged in to someone else's account |
| Installments, down payment | 0 | 6 | Dealer price includes service and warranty |
| Replaced or third-party screen | 0 | 4 | Not the original screen |
| Screen leak | 3 | 0 | Display defect |
| Replaced back glass, salvaged screen, new battery | 2 | 1 | Replaced parts |
| Wi-Fi only, price sheet, wholesale, several capacities | 3 | 0 | Not one comparable phone |
| Removed / kept | 17 / 33 | 14 / 36 |
The filter changed only the ends. The median (¥3,100) and the interquartile range (¥695 before, ¥699 after) stayed almost the same. The minimum rose from ¥888 to ¥2,450, and the maximum fell from ¥5,499 to ¥4,347. Most removed rows sat in the middle: locked phones at ¥3,099 to ¥3,799 and managed devices at ¥2,699 to ¥3,949.
Only four removed rows sat outside the kept range. These were the ¥888 Wi-Fi phone, a ¥2,400 phone with a replaced back, a ¥4,788 wholesale ad and the ¥5,499 price sheet. If your report says "the cheapest you can buy", this filter step changes the answer more than any other step.
The Pro Max page reacted differently. The seven replaced-screen and locked rows asked ¥2,550 to ¥3,600. The six installment dealers asked ¥3,779 to ¥4,800. More rows left the low side, so the lower quartile rose from ¥3,600 to ¥3,799.75. The interquartile range narrowed from ¥599.75 to ¥524.25, and the median moved from ¥3,994.5 to ¥3,999.5. The same rules changed different parts of the price band for the two models, so check the effect of your rules on each model.
Split by condition label and a price gap shows up. The 14 "almost new" iPhone 15 Pro listings had a median of ¥3,500 ($521.52). The 12 "light scratches" listings had ¥2,949.5 ($439.50), a gap of ¥550.5 ($82.03). For the Pro Max, the two labels gave ¥3,999 from 13 listings and ¥3,799.5 from 10, a gap of ¥199.5 ($29.73).
One page and ten-odd rows per label describe one day of asking prices, not sales. For a stable number, run the same keyword at the same time each day for one or two weeks.
Smaller labels are not reliable. On the 15 Pro page, "some scratches" had only 4 kept rows with a median of ¥3,139.5, above "light scratches". On the Pro Max page, "some scratches" also had 4 rows, with a median of ¥4,349, which is ¥350 above "almost new". Merge any label with fewer than 10 rows into the next label.
A daily price table: the columns to keep
For a daily job, store one row per listing with eight columns. Keep the fetch time with its time zone, the keyword and item_id. Add price, the condition label, posted_at, the province and the filter rule it hit. Do not store seller nicknames or avatars. To separate people from dealers, store the raw seller_item_count. In our six samples, the two sellers who wrote "personal use" had 53 and 107 items, and the dealers had thousands. The Zhumadian seller had 221 items, 104 sold and a 75% rating, and the count alone does not tell which type it is. Set any cut-off from a larger sample.
Run the job again the next day and compare by item_id. A missing listing may have sold, or the seller may have pulled it or reposted it under a new title. Listing data cannot tell those cases apart, so treat the drop-off rate as a weak demand signal. Plot the daily median as a line and the quartiles as a band. Mark days with fewer than 20 rows as gray points and do not connect them.
Buy-back quotes: leave room below the asking price
The iPhone 15 Pro Max page had 50 rows. We removed six installment dealers, four replaced screens, three locked models and one replaced back glass, and kept 36.
The median was ¥3,999.5 ($595.95), with quartiles at ¥3,799.75 and ¥4,324. That is what sellers ask. A recycler's offer must leave room for inspection, refurbishing, shipping and returns. The third-quarter results of ATRenew, the company behind the AiHuiShou recycling brand, show how thin that room is. Revenue was 6.45 billion yuan with a non-GAAP operating margin of 3.3%.
An asking price is the top of what a seller hopes to get. With the median and quartiles for the same model and label, you can compute how far your quote sits below the lower quartile. As an assumed example, a quote 15% below the Pro Max lower quartile of ¥3,799.75 is ¥3,229.79. The 15% is only an assumption. Set your own margin from your inspection, refurbishing and shipping costs.
One test run: four Xianyu calls and four YouTube calls
These are the requests we sent on 2026-11-25 between 00:14 and 00:24 SGT. Four were Xianyu calls. Four were YouTube calls to find the video problems described above. The key lived only in an environment variable.
# 1) Keyword search on Xianyu: 50 rows in one call
curl -s https://api.everyinfra.com/api/v1/social \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"xianyu","action":"search","params":{"keyword":"iPhone 15 Pro 256G","limit":50}}'
# Response: count = 50, billing.charged_usd = 0.008
# 2) Item details: up to 20 per call, billed per listing, missing ones refunded
curl -s https://api.everyinfra.com/api/v1/social \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"xianyu","action":"item_detail","params":{"urls":["1090607634374","1102066704189"]}}'| Time | Capability | HTTP | Rows | Duration | Charged |
|---|---|---|---|---|---|
| 00:14:22 SGT | xianyu/search, iPhone 15 Pro 256G, limit 50 | 200 | 50 | 36.2 s | $0.008 |
| 00:14:58 SGT | xianyu/search, limit 80 | 422 | 0 | 0.2 s | $0 |
| 00:20:01 SGT | xianyu/item_detail, 7 IDs, one fake | 200 | 6 | 34.6 s | $0.033333 |
| 00:21:10 SGT | youtube/search, Xianyu scraping query | 200 | 10 | 1.9 s | $0.000778 |
| 00:21:19 SGT | youtube/transcript, AI monitor video | 200 | 0 | 27.4 s | $0, empty and refunded |
| 00:22:42 SGT | youtube/transcript, search reverse video | 200 | 0 | 39.0 s | $0, empty and refunded |
| 00:23:26 SGT | youtube/comments, AI monitor video | 200 | 40 | 2.8 s | $0.000556 |
| 00:24:11 SGT | xianyu/search, iPhone 15 Pro Max 256G, limit 50 | 200 | 50 | 36.9 s | $0.008 |
The calls cost $0.050667 in total, and the Xianyu share was $0.049333. With limit at 80, the API returned invalid_value with the message "limit must be an integer from 1 to 50 (got 80)". The first item in next_steps said to resend with only the limit changed and that nothing was charged. It also returned a catalog_url.
Some YouTube calls returned 429 from the per-minute rate limit. The response carried retry_after, nothing was charged, and a retry after a few seconds worked. The two Xianyu searches took 36.2 and 36.9 seconds, and the seven-ID detail call took 34.6 seconds. Set your client timeout above 60 seconds, or add "mode": "async" to the body and poll the returned job_id.
The two pages also differed by region. The 15 Pro page had 12 rows from Guangdong, 9 from Chongqing and 7 from Guangxi. Twenty-five were posted after 2026-11-01. Seven were posted before 2026 and still live, and three of those went up in 2024 or earlier. The Pro Max page had 10 rows from Hainan, 7 from Guangdong and 6 from Zhejiang. Seventeen were posted after November 1, and the oldest went up in April 2026.
Each page had eight rows with the same "[memory]" title template. On the 15 Pro page, all eight came from one Chongqing seller. On the Pro Max page, six came from one Zhejiang seller and two from Hainan. One seller filled at most 16% of a page (8 of 50), so remove duplicates by seller before you compute regional shares.
Use it from an AI tool over MCP
The EveryInfra remote MCP endpoint is https://api.everyinfra.com/mcp. Its tools start with everyinfra_. everyinfra_list_capabilities lists capabilities and parameters, everyinfra_call_api sends a request and everyinfra_get_job fetches a slow result. Put this block in the MCP config file of a client that supports remote MCP. Read the key from an environment variable.
{
"mcpServers": {
"everyinfra": {
"type": "http",
"url": "https://api.everyinfra.com/mcp",
"headers": { "Authorization": "Bearer ${EVERYINFRA_API_KEY}" }
}
}
}This is a config example, and we did not run a full chat in an AI tool for this test. After you connect, you can ask for 50 Xianyu results for "iPhone 15 Pro Max 256G". Tell the model to drop locked, managed, replaced-screen and installment listings and to compute the median by condition label. Then ask for detail lookups on the five cheapest listings to check if the sellers are individuals.
At catalog prices, that is one search plus five details, about $0.036. Put the filter rules in the prompt so the model applies the same rules each day. If the rules change, medians from different days stop being comparable. The MCP server page has setup notes for common clients.
Buying from Xianyu outside China
English-speaking buyers usually meet Xianyu through a buying agent. A MandarinDesk guide dated 2026-11-07 says overseas buyers can reach Xianyu only through an agent. The reason is that Xianyu needs a Chinese Alipay account and ships inside China. Agents such as Fishgoo sell that buying service.
A thread on r/taobao shows the login problem. A user could not sign in to Goofish on a PC. Replies said to register in the mobile app first, then scan a QR code.
For an agent or reseller, the data question is simple. What does this model sell for on Xianyu today, and is this seller a person or a dealer? The search and detail calls answer both without a Chinese phone number or a Xianyu account. Price data in yuan also needs a fixed exchange rate per day. We used the central parity rate of 6.7111 from 2026-11-24 for every conversion here.
When another option fits better
Xianguanjia handles writes and pushes. Its push API sends item and order changes to your URL, and it handles digital code delivery and stock updates. A data API can only poll public pages on a schedule. It cannot react the moment an order changes, and it cannot edit your listings. Teams that run a Xianyu shop with digital goods or an ERP should plan around Xianguanjia.
Answering your buyers with AI, shipping orders and watching your saved items all need your login. A pay-per-call API cannot do any of that. If your volume is small and you accept rescanning a QR code now and then, paying per call makes little sense.
For new deals within minutes of posting, a logged-in monitor is also faster. EveryInfra search caches full pages for an hour, so it does not suit second-by-second deal hunting.
Compliance and limits
The 2025 revision of China's Anti-Unfair Competition Law, article 13, paragraph 3, bans unfair ways to get another business's lawful data. Fraud and coercion are on that list. It also bans getting it by bypassing or breaking technical controls. Several top YouTube results on Xianyu scraping teach how to rebuild request signatures and clear risk checks. Compare that kind of method with the text of that provision yourself.
The Network Data Security Management Regulations, article 24, cover personal data that automated collection picks up by accident. If the task does not need it, delete or anonymize it. Most Xianyu sellers are private people. Nicknames, avatars, bios and item locations fall into that group. The daily table above stores price, condition, province and listing count. Nicknames, avatars, bios and locations do not go into it.
These notes list data practices and two regulation texts. They are not legal advice. Ask a lawyer about your own case.
Market news, October and November 2026
- 2026-11-19. Alibaba's September quarter results said Xianyu daily active users grew 23% and paid orders grew 29% year on year. The release lists AI features such as smart pricing and automatic descriptions.
- 2026-11-06. Guandian reported that Xianyu's CEO disclosed 9.816 million AI service orders in the first half, up 157%. Over 12 million users posted over 50 million items with the AI camera.
- 2026-11-20. A report carried by Huxiu says Zhuanzhuan closed its peer-to-peer market in September 2025.
- 2026-11-24. xianyu-auto-reply and catbus both pushed new commits. One is a multi-account chat tool and the other is a command-line tool for AI. Both need a login.
FAQ
Is there an official Xianyu API?
Yes, two official routes exist, and both serve sellers or invited vendors. The open.goofish.com mini app program accepts only invited vendors and requires Jushita hosting. Xianguanjia opens its API to shops on a paid ERP plan and covers only your own items and orders. Neither one has a marketplace-wide search.
What is the Goofish API?
Goofish is the web and international name of Xianyu, so "Goofish API" means the same official and third-party options. The developer docs live at open.goofish.com for mini apps and goofish.pro for Xianguanjia. A Xianyu item ID is the same number on goofish.com and in the app, and EveryInfra's xianyu/item_detail accepts it.
Can I use a GitHub Xianyu scraper without an account?
Some run logged out, with limits. voltwake/xianyu-monitor says logged-out searches only see items older than six hours. superboyyy/xianyu_spider falls back to logged-out search when the login expires. Ten of the 15 repositories we checked need your Xianyu login. Video comments show users hitting the "anti-scraping check detected" stop message.
How much does Xianyu data cost per 1,000 rows?
On EveryInfra at 00:13 SGT on 2026-11-25, search cost $0.008 per call. At 50 rows per call that is $0.16 per 1,000 rows, or $0.40 at the default 20. Item details cost $0.005556 per listing, or $5.56 per 1,000. A 422 parameter error and listings not found are not charged.
Does "Xianyu API key" mean an API key for Xianyu data?
Not always. Search suggestions for "xianyu api" include "xianyu api key" and "xianyu api claude". Those terms sit next to AI tool names, which points to people who look for AI model keys sold on Xianyu. That is a different topic. To read Xianyu listings through an API, you need a key from a data API vendor or a Xianguanjia app key for your own shop.
Can I get view counts and "want" counts through an API?
Xianguanjia question 12 says exposure, views, wants, favorites and search rank are not available. EveryInfra xianyu/search returns want_count when the card shows it, and 14 of 50 rows were null in our test. xianyu/item_detail adds views, favorites and the seller's items for sale.
Get started
- Follow the quick start to create an account and a key, then add a small balance.
- Export the key in your shell as
EVERYINFRA_API_KEY. - Read the free catalog at
https://api.everyinfra.com/api/v1/social/catalog?platform=xianyu. - Send one
xianyu/searchwithlimit50 and a timeout above 60 seconds. - Apply the keyword filter rules, then compute the median and quartiles by condition label.
- Call
xianyu/item_detailfor listings you want to verify, with up to 20 IDs per call. - For a daily job, run the same keyword at the same time, at least one hour apart.
Prices for every platform are on the pricing page. For the Xianyu overview, see the Xianyu scraper API page. For new-goods prices, see Taobao search and the JD scraper API. For a related guide, read the Taobao data API guide. The Qwen Agent MCP price and review analyst puts Taobao, JD and Xianyu in one price table.
References
- Mini app quick start, Xianyu third-party open platform, read 2026-11-25, https://open.goofish.com/doc/quick-start.html
- Server-side integration guide, Xianyu third-party open platform, read 2026-11-25, https://open.goofish.com/doc/development/dev/server.html
- FAQ, Xianyu third-party open platform, read 2026-11-25, https://open.goofish.com/doc/development/other/questions.html
- Vendor Xianyu item publishing (Xianyu API group), Taobao Open Platform, read 2026-11-25, https://open.alitrip.com/docs/api.htm?apiId=56450
- alibaba.idle.order.dummy.send, Taobao Open Platform, read 2026-11-25, https://open.alitrip.com/docs/api.htm?apiId=56251
- alibaba.idle.isv.item.query.batch, Taobao Open Platform, read 2026-11-25, https://developer.alibaba.com/docs/api.htm?apiId=73791
- Xianyu message topics, Taobao Open Platform, read 2026-11-25, https://developer.alibaba.com/docs/topic_list.htm?cid=291
- Xianguanjia home page, read 2026-11-25, https://www.goofish.pro/
- Xianguanjia user manual, read 2026-11-25, https://m.goofish.pro/app/operation.html
- Xianguanjia open platform overview, read 2026-11-25, https://s.apifox.cn/3ac13d69-5a38-4536-ae9b-a54001854ef8/doc-2686716
- Xianguanjia self-build guide (15 questions), read 2026-11-25, https://s.apifox.cn/3ac13d69-5a38-4536-ae9b-a54001854ef8/doc-8472075
- Xianguanjia product list API, read 2026-11-25, https://s.apifox.cn/3ac13d69-5a38-4536-ae9b-a54001854ef8/api-93586381
- Xianyu integration note, Wangdian Guanjia help center, 2024-04-22, https://help.wsgjp.com/5e03/d4b3/a3c1/9107/9d99/9555
- Usagi-org/ai-goofish-monitor, GitHub, read 2026-11-25, https://github.com/Usagi-org/ai-goofish-monitor
- shaxiu/XianyuAutoAgent, GitHub, read 2026-11-25, https://github.com/shaxiu/XianyuAutoAgent
- zhinianboke/xianyu-auto-reply, GitHub, last push 2026-11-24, https://github.com/zhinianboke/xianyu-auto-reply
- DropsDevopsOrg/ECommerceCrawlers, GitHub, read 2026-11-25, https://github.com/DropsDevopsOrg/ECommerceCrawlers
- cv-cat/XianYuApis, GitHub, read 2026-11-25, https://github.com/cv-cat/XianYuApis
- superboyyy/xianyu_spider, GitHub, read 2026-11-25, https://github.com/superboyyy/xianyu_spider
- pbeenigg/LittleCrawler, GitHub, read 2026-11-25, https://github.com/pbeenigg/LittleCrawler
- cv-cat/catbus, GitHub, last push 2026-11-24, https://github.com/cv-cat/catbus
- fancyboi999/goofish-cli, GitHub, last push 2026-11-18, https://github.com/fancyboi999/goofish-cli
- FearlessPeople/xianyu_spider, GitHub, read 2026-11-25, https://github.com/FearlessPeople/xianyu_spider
- XIE7654/goofish_api, GitHub, read 2026-11-25, https://github.com/XIE7654/goofish_api
- 11273/goofish-client, GitHub, read 2026-11-25, https://github.com/11273/goofish-client
- voltwake/xianyu-monitor, GitHub, read 2026-11-25, https://github.com/voltwake/xianyu-monitor
- DoLovya/xianyu-mcp-server, GitHub, read 2026-11-25, https://github.com/DoLovya/xianyu-mcp-server
- LENKIN233/xianyu-monitor-skill, GitHub, read 2026-11-25, https://github.com/LENKIN233/xianyu-monitor-skill
- Repositories REST API, GitHub Docs, read 2026-11-25, https://docs.github.com/en/rest/repos/repos
- Search REST API, GitHub Docs, read 2026-11-25, https://docs.github.com/en/rest/search/search
- Licensing a repository, GitHub Docs, read 2026-11-25, https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository
- EveryInfra Xianyu catalog, EveryInfra, read 2026-11-25 00:13 SGT, https://api.everyinfra.com/api/v1/social/catalog?platform=xianyu
- TikHub endpoint price list, TikHub, read 2026-11-25 00:18 SGT, https://api.tikhub.io/api/v1/tikhub/user/get_all_endpoints_info
- TikHub documentation home, TikHub, read 2026-11-25 00:38 SGT, https://docs.tikhub.io/
- TikHub Pricing, TikHub, read 2026-11-25, https://tikhub.io/pricing
- TikHub FAQ, TikHub, read 2026-11-25, https://tikhub.io/faq
- RMB central parity rate, State Administration of Foreign Exchange, 2026-11-24, https://www.safe.gov.cn/AppStructured/hlw/RMBQuery.do
- Anti-Unfair Competition Law (2025 revision), CNIPA, 2026-05-20, https://www.cnipa.gov.cn/art/2026/5/20/art_104_206437.html
- Network Data Security Management Regulations, Ministry of Ecology and Environment repost, 2024-10-03, https://www.mee.gov.cn/zcwj/gwywj/202410/t20241003_1087417.shtml
- Alibaba Group Announces September Quarter 2026 Results, Yahoo Finance repost, 2026-11-19, https://finance.yahoo.com/markets/stocks/articles/alibaba-group-announces-september-quarter-100200549.html
- Xianyu says over 1.5 million users earn steady income, Guandian, 2026-11-06, https://www.guandian.cn/article/20261106/624600.html
- ATRenew third-quarter 2026 results, East Money, 2026-11-20, https://caifuhao.eastmoney.com/news/20261120111707618239940
- Zhuanzhuan files confidentially for Hong Kong IPO, Huxiu, 2026-11-20, https://www.huxiu.com/article/4906772.html
- Xianyu guide for foreign buyers, MandarinDesk, 2026-11-07, https://mandarindesk.com/xianyu-guide-foreign-buyers
- Xianyu concierge, Fishgoo, read 2026-11-25, https://business.fishgoo.com/xianyu-concierge
- Help with logging on Goofish (Xianyu) from PC, Reddit r/taobao, read 2026-11-25, https://www.reddit.com/r/taobao/comments/1bjpo9l/help_with_logging_on_goofish_xianyu_from_pc_please/
- AI monitor for Xianyu, setup video, YouTube, read 2026-11-25, https://www.youtube.com/watch?v=RRV6pju6b1s
- Xianyu search reverse engineering, video, YouTube, read 2026-11-25, https://www.youtube.com/watch?v=8LEs2jX4djo
Reference BL-232