Discover/Kongfz API
live

Kongfz APIsearch.kongfz.com

Search China's largest used-book marketplace, Kongfz (孔夫子旧书网), by keyword or ISBN. Get pricing, condition, seller details, and category facets via 3 endpoints.

This API takes change requests — .
Endpoint health
verified 5d ago
get_category_facets
get_category_listings
search_books
3/3 passing latest checkself-healing
Endpoints
3
Updated
5d ago

What is the Kongfz API?

The Kongfz API exposes 3 endpoints for querying the 孔夫子旧书网 used-book marketplace. The search_books endpoint accepts any keyword or ISBN and returns structured listings covering title, author, publisher, price in RMB, condition rating (品相), seller name, and a direct listing URL. Results are paginated, and total match counts let you gauge supply depth for any title or ISBN across thousands of sellers.

Try it
Page number for pagination.
Search keyword — can be a book title, author name, or ISBN (e.g. '9787540418250' or '三体').
Number of results per page, between 1 and 50.
api.parse.bot/scraper/09fd851c-4cb5-4831-992c-b905461c7f44/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/09fd851c-4cb5-4831-992c-b905461c7f44/search_books?page=1&keyword=%E4%B8%89%E4%BD%93&page_size=10' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace search-kongfz-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Kongfz Used Book Search — search listings, browse categories, and explore facets."""
from parse_apis.Kongfz_Used_Book_Search_API import Kongfz, Keyword, ParseError

client = Kongfz()

# Search for a book by keyword, iterate with limit cap.
for listing in client.listings.search(keyword=Keyword.__, page_size=10, limit=3):
    print(listing.title, listing.price, listing.condition, listing.shop_name)

# Browse category listings (英文书) sorted by price ascending.
for item in client.category_listings.list(cat_id=6001, sort_type="5", limit=3):
    print(item.title, item.price, item.isbn)

# Drill into a single search result using .first()
hit = client.listings.search(keyword=Keyword._9787540418250, limit=1).first()
if hit:
    print(hit.title, hit.isbn, hit.listing_url)

# Get category facet counts for 图书 (catId=1)
try:
    facets = client.category_facets.get(cat_id=1)
    print(facets.total_found, facets.total_found_text)
    for group in facets.facet_groups:
        print(group.group_name)
        for facet in group.facets[:3]:
            print(f"  {facet.name}: {facet.count}")
except ParseError as e:
    print(f"error: {e.code}")

print("exercised: listings.search, category_listings.list, category_facets.get")
All endpoints · 3 totalmissing one? ·

Search for used book listings by keyword or ISBN. Returns all matching product listings with title, author, publisher, ISBN, price in RMB, condition/品相, seller/shop name, and direct listing URL. Results are paginated. Pagination via integer page counter; each page returns up to page_size items. Empty results are possible for obscure queries.

Input
ParamTypeDescription
pageintegerPage number for pagination.
keywordrequiredstringSearch keyword — can be a book title, author name, or ISBN (e.g. '9787540418250' or '三体').
page_sizeintegerNumber of results per page, between 1 and 50.
Response
{
  "type": "object",
  "fields": {
    "page": "integer — current page number",
    "keyword": "string — the search keyword echoed back",
    "listings": "array of Listing objects with book details, pricing, condition, and seller info",
    "page_size": "integer — number of results per page",
    "total_found": "integer — total number of matching listings across all pages",
    "total_pages": "integer — total number of pages available"
  },
  "sample": {
    "data": {
      "page": 1,
      "keyword": "三体",
      "listings": [
        {
          "isbn": "9787229100605",
          "price": 12.9,
          "title": "三体",
          "author": "刘慈欣  著;姚海军  编",
          "item_id": 6929327279,
          "shop_id": 788052,
          "condition": "九五品",
          "image_url": "https://www0.kfzimg.com/G06/M00/12/8B/p4YBAFqaFJOAAwNuAADZSdO-vJc627_n.jpg",
          "publisher": "重庆出版社",
          "shop_area": "甘肃省白银市",
          "shop_name": "會州舊書鋪",
          "price_text": "12.90",
          "description": "",
          "is_sold_out": false,
          "listed_date": "2024-05-02 上书",
          "listing_url": "https://book.kongfz.com/788052/6929327279",
          "publish_date": "2016-06",
          "condition_score": 95
        }
      ],
      "page_size": 50,
      "total_found": 35140,
      "total_pages": 200
    },
    "status": "success"
  }
}

About the Kongfz API

Search by Keyword or ISBN

The search_books endpoint takes a keyword parameter — a book title, author name, or ISBN string such as 9787540418250 — and returns an array of Listing objects. Each listing includes title, author, publisher, isbn, price (in RMB), condition (品相), seller shop name, and a direct listing_url. The response also echoes back keyword, page, page_size, total_found, and total_pages, so you can drive paginated retrieval by incrementing the integer page parameter up to the returned total_pages value. page_size can be set between 1 and 50.

Category Browsing and Facets

The get_category_listings endpoint returns a page of listings scoped to a specific Kongfz category by cat_id. Useful category IDs include 6001 (英文书), 6002 (日文书), and 6004 (俄文书). Each listing carries item_id, title, author, publisher, isbn, price, and cat_id. An optional sort_type parameter controls ordering — for example '5' for price ascending or '1' for sales rank — though some sort types and deep page numbers require authentication on the source site and will return a limited result set.

Facet Counts by Category

The get_category_facets endpoint takes a single cat_id (e.g. 1 for 图书, 8 for 线装古籍, 9 for 民国旧书) and returns total_found, a human-readable total_found_text, and a facet_groups array. Each facet group has a group_name and an array of facets with name, count, and optionally a sub-category ID. This is useful for understanding the distribution of listings across subcategories, condition grades, and stock status before executing a full listing query.

Reliability & maintenanceVerified

The Kongfz API is a managed, monitored endpoint for search.kongfz.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when search.kongfz.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official search.kongfz.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Look up all used copies of a specific ISBN to compare prices and condition ratings across sellers before purchasing.
  • Monitor price trends for Chinese-language textbooks by periodically querying search_books with a title keyword and recording the price field.
  • Build a cross-border book sourcing tool that queries foreign-language categories (英文书, 日文书) via get_category_listings filtered by cat_id.
  • Aggregate seller inventory counts by category using get_category_facets to identify which subcategories have the most active listings.
  • Catalog availability of rare Republican-era (民国旧书) or thread-bound (线装古籍) books using cat_id values 9 and 8.
  • Check whether a book is available in collectible condition by filtering search_books results by the condition (品相) field.
  • Enumerate sub-category IDs from facet_groups to build a category tree for a used-book discovery interface.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Kongfz (孔夫子旧书网) have an official developer API?+
Kongfz does not publish a public developer API or official API documentation for third-party use.
What does the `search_books` endpoint return, and how do I paginate through results?+
It returns a listings array of objects each containing title, author, publisher, isbn, price, condition, seller, and listing_url, along with total_found and total_pages. Increment the integer page parameter from 1 up to total_pages to retrieve all matching results. Set page_size between 1 and 50 to control how many listings appear per page.
Are there any limitations when browsing category listings with `get_category_listings`?+
Yes. Certain sort_type values and requests for deep page numbers may return limited or empty results because those views require authentication on the Kongfz site. Stick to lower page numbers and default or price-ascending sort types ('4' or '5') for the most reliable responses.
Does the API return seller ratings, seller contact details, or individual book condition descriptions beyond the 品相 grade?+
Not currently. The API returns the seller shop name and the 品相 condition grade, but does not expose seller reputation scores, contact details, or extended condition notes. You can fork this API on Parse and revise it to add an endpoint that fetches individual listing detail pages where additional seller and condition information is available.
Can I retrieve order history, wishlist data, or user account information from Kongfz through this API?+
Not currently. The API covers public search results, category listings, and category facets. User account data, order history, and wishlist contents are behind authentication and are not exposed. You can fork this API on Parse and revise it to add authenticated user-scoped endpoints if your use case requires that data.
Page content last updated . Spec covers 3 endpoints from search.kongfz.com.
Related APIs in MarketplaceSee all →
biblio.com API
Access data from biblio.com.
abebooks.com API
Search for books by title or ISBN, view detailed listing information, and discover available sellers offering new and used copies. Find the best deals by comparing prices across multiple sellers and browsing their inventory.
booksrun.com API
Search millions of books and get instant buyback quotes on BooksRun. Browse bestsellers and categories, view detailed book information, and check condition guidelines to understand buyback prices and acceptance criteria.
valorebooks.com API
Search for books and instantly compare prices across ValoreBooks' inventory while getting real-time buyback quotes for books you want to sell. Access detailed book information including pricing and resale values to find the best deals on textbooks and used books.
alibris.com API
Search for books and retrieve seller listings from Alibris. Access detailed book information including title, author, condition, pricing, and seller data across the platform.
webcat.hkpl.gov.hk API
Search and discover books across Hong Kong's public library system while checking real-time availability, and retrieve detailed book metadata including titles, authors, descriptions, and current stock status. Find exactly what you're looking for and know instantly whether your local library has it in stock.
kobo.com API
Search and browse millions of eBooks and audiobooks from Kobo, discover bestsellers and daily deals across different categories, and get detailed information about specific books and authors. Find free eBooks, explore category collections, and use autocomplete to quickly locate titles that interest you.
book.douban.com API
Discover and search millions of books from Douban's database, access detailed metadata including ratings, reviews, and short comments, and explore curated collections like top 250 books, new releases, and monthly trending titles. Browse books by category tags and find exactly what you're looking for with powerful search and filtering capabilities.