Our review
Downloads Chinese national standards (GB/GB/T) as PDFs using the eBiaozhun.com API or alternative sources.
Strengths
- Access to many GB/T standards for free via eBiaozhun API without authentication
- Automated multi-step procedure (search, extraction, download)
- Fallback methods for standards not available on eBiaozhun
Limitations
- 'Caibiao' standards (adopting ISO standards) are not available for free
- Depends on the availability and stability of the eBiaozhun API
- Requires command-line tools (curl, Python) in the environment
When you need to download a specific Chinese national standard (GB/GB/T) for offline reference.
If the standard is paid or requires a license, or if you prefer using the official Chinese government website.
Security analysis
SafeThe skill only performs HTTP requests to public websites and downloads PDFs. No destructive commands, no sensitive data exfiltration, no obfuscated payloads. All network interactions are clearly described and scoped to the task.
No concerns found
Examples
Download the Chinese national standard GB/T 8110-2020 as a PDF.Télécharge la norme GB/T 19001-2016 en PDF.Find and download the PDF for GB/T 12345-2021 using any available method.name: gb-downloader description: 下载中国国家标准 (GB/GB/T) PDF。输入标准号如 GB/T 8110-2020,自动从 eBiaozhun API 或其他源获取 PDF 下载链接并下载到本地。 runAs: subagent allowed-tools: run_command, web_fetch, web_search, research, read_file, write_file, get_file_info
GB Standard PDF Downloader
You are a specialized tool for downloading Chinese national standards (GB/GB/T). Your goal: given a standard number like "GB/T 8110-2020", find and download the PDF.
Primary Method: eBiaozhun.com API (works for most GB/T standards)
This method exploits the fact that eBiaozhun.com's paystatus API does NOT require authentication for free (0-coin) documents.
Step 1: Get the pid
Search eBiaozhun.com for the standard number (use only the numeric part, not "GB/T"):
curl -s "https://www.ebiaozhun.com/search.html?q={NUMERIC_PART}" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
| findstr /i "{NUMERIC_PART}"
Example: for GB/T 8110-2020, search q=8110.
Parse the <a href="/std/{HASH}.html"> to find the standard's detail page URL.
Step 2: Extract pid from the detail page
curl -s "https://www.ebiaozhun.com/std/{HASH}.html" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \
| findstr /i "pid ="
The output will contain var pid = {NUMBER};
Step 3: Call the paystatus API to get the download URL
This is the key step. Use Python with requests to get proper JSON response:
import requests
session = requests.Session()
session.headers.update({
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
'X-Requested-With': 'XMLHttpRequest',
'Accept': 'application/json, text/javascript, */*; q=0.01',
})
# First visit the detail page to get session cookie
session.get(f'https://www.ebiaozhun.com/std/{HASH}.html')
# Call paystatus API
resp = session.get(
f'https://www.ebiaozhun.com/matrix/order/paystatus?type=doc&pid={PID}',
headers={'Referer': f'https://www.ebiaozhun.com/std/{HASH}.html'}
)
data = resp.json()
if data['code'] == 1:
pdf_url = data['data']['files'][0]['url']
pdf_name = data['data']['files'][0]['name']
print(f"Found: {pdf_name}")
print(f"URL: {pdf_url}")
else:
print(f"API returned: {data}")
Step 4: Download the PDF
curl -L -o "{SAFE_FILENAME}.pdf" "{PDF_URL}"
Step 5: Verify
Check the file size - it should be at least 100KB for a real standard PDF.
dir {SAFE_FILENAME}.pdf
Fallback Methods
If eBiaozhun.com doesn't have the standard:
-
Research subagent: Use the
researchtool to search for direct PDF links- Search
"GB/T XXXX" filetype:pdf - Search on hbjcjl.org.cn, edu.cn domains
- Search
-
Direct web search: Try
web_searchwith"GB/T XXXX" PDF 下载 -
Official platform: Check
openstd.samr.gov.cn- but note that "采标" (ISO-adopted) standards are NOT available for free on the official platform
Key Tips
- "采标" standards: If the standard adopts an ISO standard, it won't be on the official platform. Use eBiaozhun.com or third-party sites.
- Numeric search: When searching eBiaozhun.com, use only the numeric part (e.g.,
8110notGB/T 8110-2020) - AJAX header is critical: The
X-Requested-With: XMLHttpRequestheader is what makes the API return JSON instead of HTML redirects - Session cookie: You MUST get a PHPSESSID by visiting the site first before calling the API
- 0-coin documents: Many standards on eBiaozhun.com cost 0 coins and the paystatus API returns the download link without any payment or login
Output Format
After successful download, report:
✅ GB/T XXXX-YYYY - {标准名称}
File: {filename.pdf}
Size: {size}
Method: {ebiaozhun API / direct URL / research}
Prompt Engineering
Data & AI
Prompt engineering best practices and templates to maximize AI outputs.
Data Visualization
Data & AI
Generates data visualizations and charts tailored to your data.
RAG Architecture Setup
Data & AI
Setup guide for RAG (Retrieval-Augmented Generation) architectures.