Discover/12321.cn API
live

12321.cn API12321.cn

Access official notices, anti-fraud warnings, complaint statistics, and phone/SMS complaint lookup from China's 12321 Network Spam Reporting Center via a structured API.

Endpoints
11
Updated
17d ago
Try it
Page number for pagination.
api.parse.bot/scraper/70ef7607-617c-4881-8567-a5dfb4c86ab4/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/70ef7607-617c-4881-8567-a5dfb4c86ab4/get_notices?page=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 11 totalclick to expand

Retrieve the list of official announcements/notices. Returns paginated results with notice titles, dates, and IDs. The site has approximately 2 pages of notices total.

Input
ParamTypeDescription
pageintegerPage number for pagination.
Response
{
  "type": "object",
  "fields": {
    "page": "string, current page number",
    "items": "array of notice objects with id, title, date, and url"
  },
  "sample": {
    "data": {
      "page": "1",
      "items": [
        {
          "id": "33",
          "url": "https://12321.cn/notice_detail?aid=33.html",
          "date": "2016-10-20",
          "title": "Notice title"
        }
      ]
    },
    "status": "success"
  }
}

About the 12321.cn API

The 12321.cn API provides structured access to 11 endpoints covering China's official telecom spam and anti-fraud reporting center, including paginated notices, warning articles, downloadable reports, and live complaint statistics. The search_phone_complaint and search_sms_complaint endpoints let you query complaint handling records for specific phone numbers after solving a captcha via get_captcha. All content originates from 12321.cn, operated under MIIT oversight.

Notices, Warnings, and News

The get_notices and get_warnings endpoints return paginated lists of official announcements and anti-fraud alerts respectively, each item carrying an id, title, date or url. The site currently has approximately 2 pages of notices. Pass those IDs to get_notice_detail or get_warning_detail for the full text — detail endpoints include content, publish_date or update_time, and a source attribution field on warnings. The get_news endpoint follows the same paginated structure for general news articles.

Reports and Homepage Statistics

get_reports returns the full catalogue of downloadable report documents with title, date, and a download_url for each file — no pagination parameters are required. get_homepage_stats returns two things at once: today_complaint_count (a string reflecting the day's total intake) and latest_warnings, an array of recent warning entries each carrying index, id, title, type, time, and url. This endpoint is useful for dashboards that need a live daily pulse from the center.

Captcha-Gated Complaint Search

Searching complaint records for a specific number requires a two-step flow. First call get_captcha, which returns image_base64 — a base64-encoded PNG you decode and solve. Pass the solved code along with the target phone, session_id, and encryption_key to either search_phone_complaint (voice call complaints) or search_sms_complaint (text message complaints). Both return a records array where each entry contains time, type, and status. If the captcha code is wrong or stale, the API returns a stale_input error.

Complaint Agreement Text

get_complaint_notice_sms returns the full content of the pre-complaint agreement users must acknowledge before submitting an SMS complaint. This is useful for applications that replicate or explain the complaint filing process to end users.

Common use cases
  • Monitor today's telecom complaint volume using today_complaint_count from get_homepage_stats for a real-time fraud activity dashboard.
  • Look up the complaint handling status of a suspected spam phone number using search_phone_complaint.
  • Archive and parse official 12321 notices by fetching paginated results from get_notices and retrieving full text via get_notice_detail.
  • Aggregate downloadable annual or quarterly fraud reports from get_reports for compliance or research purposes.
  • Build a Chinese-language anti-fraud news feed using warning article titles and full content from get_warnings and get_warning_detail.
  • Surface the latest warning highlights on a security portal using the latest_warnings array from get_homepage_stats.
  • Verify SMS complaint records for a phone number by chaining get_captcha with search_sms_complaint.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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 12321.cn provide an official public developer API?+
12321.cn does not publish a documented public developer API. The site is operated by the MIIT-affiliated Network Spam and Abuse Reporting Center and its data is accessible only through the web interface.
What does `search_phone_complaint` actually return, and how is it different from `search_sms_complaint`?+
search_phone_complaint returns complaint records for voice call complaints filed against a phone number, while search_sms_complaint returns records for SMS-related complaints against the same number. Both return a records array with time, type, and status per entry, plus a message describing the overall result. The distinction maps directly to the two separate complaint categories on the 12321 platform.
Does the captcha flow expire between calls?+
Yes. The captcha state established by get_captcha is tied to a session and becomes stale if too much time passes or if an incorrect code is submitted — the search endpoints return a stale_input error in that case. You need to call get_captcha again to get a fresh image and solve it before retrying.
Can I retrieve the full text of a news article through the `get_news` endpoint?+
get_news returns only the paginated list of articles with id, title, and url — there is no get_news_detail endpoint analogous to the notice and warning detail endpoints. Full article content is not currently exposed. You can fork this API on Parse and revise it to add a news detail endpoint.
Does the API expose historical complaint statistics beyond today's count?+
Not currently. get_homepage_stats returns only today_complaint_count and the latest warning entries displayed on the homepage. Historical complaint trend data is not exposed. You can fork this API on Parse and revise it to add a historical statistics endpoint if that data becomes available on the site.
Page content last updated . Spec covers 11 endpoints from 12321.cn.
Related APIs in Government PublicSee all →
800notes.com API
Look up phone numbers to retrieve community-submitted scam and unwanted-call reports from 800notes.com. Browse recent reports, search by area code, explore forum discussions, and read articles about phone scams — all sourced from the 800notes public database.
qq.com API
Access the latest news, articles, stock indices, and sports schedules from QQ.com's homepage, and search across multiple news categories to stay informed on hot topics and evening reports. Get real-time data including homepage content, images, links, and live sports schedules all from one unified service.
weather.com.cn API
Get real-time weather conditions, 7-day to 40-day forecasts, air quality data, and weather alerts for any city in China. Track hourly observations and life indices to plan your activities with complete weather intelligence.
zgdypw.cn API
Track China's movie box office performance with daily rankings by movie, cinema, circuit, and city, plus access detailed weekly and monthly reports for comprehensive market analysis. Monitor industry trends through curated market analysis articles and reports to stay informed on the Chinese film industry's performance and growth.
ttbz.org.cn API
Browse Chinese group standards by organization, view detailed standard information, and stay updated with the latest industry news and notices. Access comprehensive organization lists and their associated standards to find relevant regulatory and industry guidelines.
qcc.com API
Access Chinese business registration data from QCC.com. Search for companies by name, registration number, or credit code, and retrieve full company profiles including legal representative, industry, and registration authority details.
shouldianswer.com API
Search phone numbers to get ratings, reviews, and community comments to identify spam calls and unwanted contacts. Access curated blog posts with tips and insights about phone number safety and caller identification.
chinadrugtrials.org.cn API
Search and access detailed information on Chinese clinical trials, including trial phases, statuses, sponsors, dates, and locations to stay informed about ongoing medical research in China. Find specific trials by title or browse comprehensive trial details to track study progress and identify relevant research opportunities.