# cv-cat/XianYuApis

闲鱼算法逆向，闲鱼api，websockets自动运营，咸鱼AI Agent基座

Repository: https://github.com/cv-cat/XianYuApis
Canonical: https://ross.abutalabs.com/products/xianyuapis
Language: JavaScript
License Family: other
Last push: 2026-08-18T15:05:23+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 78, longevity 38
- inputs: {"age_days": 539, "days_push": 15, "days_rel": 148, "gap_med": 0, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1206, forks 285 (observed 2026-08-28T04:03:58.802758+00:00)

## What it is
A reverse-engineered unofficial API library for Xianyu (Goofish, Alibaba's second-hand marketplace) that wraps its HTTP endpoints and WebSocket private-message protocol, including decrypted sign signatures, base64/Protobuf message handling, cookie login, and token refresh. It serves as the foundation for building AI customer-service agents that automatically receive and reply to buyer messages.

## Use cases
- build an AI customer service agent for Xianyu sellers
- automatically reply to Xianyu private messages with an LLM
- send and receive Xianyu chat messages programmatically
- fetch chat history and product details from Xianyu
- upload images and send them as Xianyu messages
- keep a persistent Xianyu login session alive for a bot
- reverse engineer the Xianyu WebSocket messaging protocol

## When to choose
- you need to connect an LLM or rule engine to Xianyu's private messaging
- you want a ready-made, working implementation of the Xianyu sign algorithm and WebSocket protocol
- you are building an auto-reply or AI agent bot on top of Xianyu
- you need programmatic access to Xianyu chat history, product info, and media upload

## When to avoid
- you need an officially supported and ToS-compliant marketplace API
- you target platforms other than Xianyu/Goofish
- you require a maintained release with a license or long-term stability guarantees
- you cannot supply a logged-in browser cookie or run Node.js for the signing scripts

## Facets
- artifact type: library
- maturity: active
- function: websocket, http-client, reverse-engineering, chatbot, agent-framework, sdk, serialization
- domain: e-commerce, chatbots, reverse-engineering, apis
- platform: python, self-hosted
- tags: xianyu, goofish, second-hand-marketplace, im-protocol, sign-algorithm, auto-reply, ai-customer-service, unofficial-api, ai-agents, automation, nodejs, docker

## Member repositories
- cv-cat/XianYuApis (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:58.802758+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:19:17.327189+00:00, confidence not recorded.
  - readme: https://github.com/cv-cat/XianYuApis (fetched 2026-08-28T04:03:58.802758+00:00, sha c9a60d7895ad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
