Xianyu Search API

POST

API health

24h health
Normal
24h average time
—
Last checked
September 29, 2026 at 20:58 (UTC)
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Health APINormal
How health is measured
  • Health = the share of calls that returned data, in percent. Empty results, failures and unknown outcomes do not count as returning data.
  • Levels: 90% and above is healthy, 70% and above is available, 40% and above is limited; anything lower is mostly down.
  • A period (the last 24 hours, one hour or one day) gets a score only once it has at least 50 calls. Periods with fewer calls show as normal: a few failures among a handful of calls do not mean the API is down.
  • Calls include real customer calls and our own daily probe calls. Request errors (wrong parameters, no balance) are excluded.
  • Average time counts only calls that completed normally: response time for sync calls, acceptance to completion for async ones.
By period
Time (UTC)StatusHealthAverage time
2026-09-29 20:00 - 20:59Normal——
2026-09-29 19:00 - 19:59Normal——
2026-09-29 18:00 - 18:59Normal——
2026-09-29 17:00 - 17:59Normal——
2026-09-29 16:00 - 16:59Normal——
2026-09-29 15:00 - 15:59Normal——
2026-09-29 14:00 - 14:59Normal——
2026-09-29 13:00 - 13:59Normal——
2026-09-29 12:00 - 12:59Normal——
2026-09-29 11:00 - 11:59Normal——
2026-09-29 10:00 - 10:59Normal——
2026-09-29 09:00 - 09:59Normal——
2026-09-29 08:00 - 08:59Normal——
2026-09-29 07:00 - 07:59Normal——
2026-09-29 06:00 - 06:59Normal——
2026-09-29 05:00 - 05:59Normal——
2026-09-29 04:00 - 04:59Normal——
2026-09-29 03:00 - 03:59Normal——
2026-09-29 02:00 - 02:59Normal——
2026-09-29 01:00 - 01:59Normal——
2026-09-29 00:00 - 00:59Normal——
2026-09-28 23:00 - 23:59Normal——
2026-09-28 22:00 - 22:59Normal——
2026-09-28 21:00 - 21:59Normal——
2026-09-29Normal——
2026-09-28Normal——
2026-09-27Normal——
2026-09-26Normal——
2026-09-25Normal——
2026-09-24Normal——
2026-09-23Normal——
2026-09-22Normal——
2026-09-21Normal——
2026-09-20Normal——
2026-09-19Normal——
2026-09-18Normal——
2026-09-17Normal——
2026-09-16Normal——
2026-09-15Normal——
2026-09-14Normal——
2026-09-13Normal——
2026-09-12Normal——
2026-09-11Normal——
2026-09-10Normal——
2026-09-09Normal——
2026-09-08Normal——
2026-09-07Normal——
2026-09-06Normal——
2026-09-05Normal——
2026-09-04Normal——
2026-09-03Normal——
2026-09-02Normal——
2026-09-01Normal——
2026-08-31Normal——

Search second-hand listings on Xianyu by keyword. Accepts these parameters: keyword. Returns these fields: item_id, title, price, and original_price.

Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

Request parameters

NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesxianyuPlatform identifier, fixed value.
actionbodystringYessearchCapability identifier, fixed value.
keywordbody.paramsNot declaredYes-The Xianyu search phrase for search, 1–100 characters. Chinese terms and model numbers match seller titles more often than English translations. It is not an item ID or a seller name.
limitbody.paramsinteger (1–50)No20

Code samples

bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "xianyu",
  "action": "search",
  "params": {
    "keyword": "iPhone 15"
  }
}'

[OpenAPI definition (JSON)]Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

Field preview

There is no real sample for these example parameters yet: this shows the response shape and fields from the contract, with … as placeholders. It is not the result of a real call.

json
{
  "id": "req_…",
  "platform": "xianyu",
  "action": "search",
  "results": [
    {
      "item_id": …,
      "url": …,
      "title": …,
      "price": …,
      "original_price": …,
      "currency": …,
      "city": …,
      "image_url": …,
      "want_count": …,
      "tags": …,
      "category_id": …,
      "free_shipping": …,
      "is_auction": …,
      "has_video": …,
      "posted_at": …,
      "seller_id": …,
      "seller_name": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": { … },
  "quota": { … }
}

Response fields

Business data is in results. The table lists the fields a record can contain; values the source does not provide are never made up.

FieldMeaning
item_idKeeps the platform's own meaning
urlLink to the record on the source platform.
titleTitle. null when the platform has no titles (for example text-only posts).
pricePrice as a number without a currency symbol; see currency.
original_priceKeeps the platform's own meaning
currencyCurrency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency.
cityPlatform-specificWhere the listing is, at city level as Xianyu shows it; some listings show only the province. No finer location is returned.
image_urlImage link. Capabilities with several images may return an image_urls array.
want_countKeeps the platform's own meaning
tagsArray of tags. An empty array, not null, when there are none.
category_idKeeps the platform's own meaning
free_shippingKeeps the platform's own meaning
is_auctionKeeps the platform's own meaning
has_videoKeeps the platform's own meaning
posted_atPublish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it.
seller_idKeeps the platform's own meaning
seller_nameKeeps the platform's own meaning
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

401
Missing or invalid key. Authentication runs before parameter checks, so unauthenticated requests never see the parameter schema.
422
Wrong parameter name or value. The error lists the parameters and allowed values this capability accepts and the closest match; it happens before any charge.
402
Insufficient balance. Top up first.
429
Per-minute request limit reached. Wait for Retry-After and try again.
503
Could not complete right now. Any charge for the call goes back to your balance automatically, and the billing receipt in the response states the actual outcome, including when it is not yet known. Do not resend blindly.
200 empty
The request completed without data and is not charged (billing.reason = empty_result_refunded).