Che168.com Parser Quick Start Guide - Get Started in Minutes
Get started with Che168.com parser in minutes. Extract Chinese automotive data with just a few lines of code.
What You'll Learn
- Set up API authentication in under 5 minutes
- Make your first request to extract Chinese vehicle data
- Understand API responses and data structure
- Handle common use cases for Chinese market analysis
- Troubleshoot issues and get help when needed
Prerequisitesâ
Before You Begin
- API Key: Get your API key from the Carapis Dashboard
- Programming Language: Choose your preferred language (JavaScript, Python, cURL)
- Internet Connection: Stable connection for API requests
- Chinese Market Knowledge: Basic understanding of the Chinese automotive market
System Requirements
Requirement | Minimum | Recommended |
---|---|---|
API Key | Valid Carapis key | Che168.com parser access |
Programming | Any language | JavaScript, Python, cURL |
Network | Stable internet | High-speed connection |
Knowledge | Basic API concepts | Chinese automotive market |
Step 1: Get Your API Keyâ
Sign Up for Carapisâ
- Visit Carapis Dashboard
- Create account with your email and password
- Verify email to activate your account
- Complete profile with your business information
Generate API Keyâ
- Navigate to the API Keys section in your dashboard
- Select Che168.com parser from available parsers
- Create a new API key with appropriate permissions
- Copy your API key and store it securely
API Key Format
Your API key will look like this: che168_parser_sk_1234567890abcdef1234567890abcdef
Security Best Practices
- Never share your API key publicly
- Store securely in environment variables
- Rotate regularly for enhanced security
- Monitor usage to prevent abuse
Step 2: Make Your First Requestâ
JavaScript Exampleâ
const che168Parser = new CarapisParser({
platform: 'che168.com',
apiKey: 'che168_parser_sk_1234567890abcdef1234567890abcdef',
region: 'china',
options: {
dataFields: ['price', 'specifications', 'location'],
maxResults: 10,
},
});
// Extract vehicle listings
async function getVehicles() {
try {
const vehicles = await che168Parser.extractListings({
filters: {
brand: 'BYD',
yearFrom: 2022,
priceMax: 400000,
location: 'Beijing',
},
});
console.log(`Found ${vehicles.length} BYD vehicles from 2022+ under 400K CNY`);
console.log('First vehicle:', vehicles[0]);
} catch (error) {
console.error('Error:', error.message);
}
}
getVehicles();
Python Exampleâ
from carapis import Che168Parser
# Initialize parser
parser = Che168Parser(
api_key="che168_parser_sk_1234567890abcdef1234567890abcdef",
region="china",
data_fields=["price", "specifications", "market_data"]
)
# Extract market data
try:
vehicles = parser.extract_listings(
filters={
"brand": "NIO",
"body_type": "SUV",
"price_min": 300000,
"location": "Shanghai"
},
limit=10
)
print(f"Found {len(vehicles)} NIO SUVs above 300K CNY in Shanghai")
print("Sample vehicle:", vehicles[0] if vehicles else "No vehicles found")
except Exception as e:
print(f"Error: {e}")
cURL Exampleâ
curl -X POST "https://api.carapis.com/v1/parsers/che168.com/extract" \
-H "Authorization: Bearer che168_parser_sk_1234567890abcdef1234567890abcdef" \
-H "Content-Type: application/json" \
-d '{
"filters": {
"brand": "BYD",
"yearFrom": 2022,
"priceMax": 400000
},
"options": {
"limit": 10,
"dataFields": ["price", "specifications", "location"]
}
}'
Step 3: Understand the Responseâ
Response Structure
The API returns structured JSON data with comprehensive vehicle information:
{
"success": true,
"data": {
"vehicles": [
{
"id": "che168_12345",
"title": "2023 æ¯äºè¿ªæ± EV åäžç",
"english_title": "2023 BYD Han EV Creation Edition",
"brand": "BYD",
"model": "Han",
"trim": "Creation Edition",
"year": 2023,
"engine": "Electric",
"transmission": "Single-speed",
"fuel_type": "Electric",
"mileage": {
"value": 8000,
"unit": "km",
"formatted": "8,000 km"
},
"price": {
"amount": 280000,
"currency": "CNY",
"formatted": "Â¥280,000",
"negotiable": true
},
"location": {
"city": "Beijing",
"region": "Chaoyang District",
"address": "æé³åºå»ºåœéšå€å€§è¡1å·",
"coordinates": {
"lat": 39.9042,
"lng": 116.4074
}
},
"seller": {
"type": "dealer",
"name": "å京æ¯äºè¿ª4Såº",
"english_name": "Beijing BYD 4S Store",
"rating": 4.6,
"reviews_count": 89,
"certified": true,
"phone": "+86-10-1234-5678"
},
"specifications": {
"battery_capacity": "85.4kWh",
"range": "715km",
"power": "380kW",
"torque": "700Nm",
"acceleration": "3.9s (0-100km/h)",
"seats": 5,
"doors": 4,
"color": "Dragon Red",
"interior_color": "Black"
},
"features": ["Electric Vehicle", "Long Range Battery", "Fast Charging", "Autonomous Driving", "Premium Sound System", "Panoramic Sunroof"],
"history": {
"accident_free": true,
"owners_count": 1,
"import_type": "domestic",
"warranty": "8 years battery warranty"
},
"market_data": {
"days_listed": 5,
"views": 75,
"price_trend": "stable",
"market_position": "competitive"
}
}
],
"pagination": {
"total": 2500,
"page": 1,
"per_page": 50,
"has_more": true
},
"metadata": {
"extraction_time": "2024-01-15T10:30:00Z",
"region": "china",
"filters_applied": {
"brand": "BYD",
"yearFrom": 2022,
"priceMax": 400000
}
}
}
}
Step 4: Common Use Casesâ
Extract BYD Vehicles in Beijingâ
Beijing Market Analysis
const beijingVehicles = await che168Parser.extractListings({
filters: {
brand: 'BYD',
location: 'Beijing',
yearFrom: 2021,
},
options: {
sortBy: 'price',
sortOrder: 'asc',
},
});
Get SUV Market Analysis for Chinaâ
SUV Market Data
suv_data = parser.extract_listings(
filters={
"body_type": "SUV",
"price_min": 200000,
"year_from": 2020
},
options={
"group_by": "brand",
"include_stats": True
}
)
Monitor Dealer Inventory Across Regionsâ
Regional Monitoring
const regionalData = await che168Parser.extractListings({
filters: {
sellerType: 'dealer',
},
options: {
groupBy: 'location',
includeStats: true,
},
});
Troubleshooting Common Issuesâ
Authentication Errorsâ
API Key Issues
- Invalid API key: Check your key format and validity
- Expired key: Generate a new API key from dashboard
- Insufficient permissions: Ensure Che168.com parser access
- Rate limiting: Check your usage limits and quotas
Data Extraction Issuesâ
Common Problems
Issue | Cause | Solution |
---|---|---|
No results | Filters too restrictive | Broaden search criteria |
Partial data | Rate limiting | Reduce request frequency |
Timeout errors | Network issues | Check connection stability |
Invalid filters | Wrong parameter names | Check API documentation |
Performance Optimizationâ
Best Practices
- Use appropriate limits to avoid overwhelming the API
- Implement caching for frequently requested data
- Batch requests when possible for better efficiency
- Monitor rate limits to stay within quotas
Next Stepsâ
Ready to Go Deeper?
- View Features - Explore all available capabilities
- API Reference - Complete API documentation
- Market Analysis - Chinese market insights
- FAQ - Common questions and solutions
Need Help?
- Support - Technical assistance and troubleshooting
- Examples - Live API examples and demos
- Community - Connect with other developers
- Documentation - Complete parser guide
Pro Tipsâ
For Production Use
- Implement error handling for robust applications
- Use environment variables for API key management
- Add logging for debugging and monitoring
- Set up alerts for API failures and rate limits
- Test thoroughly before deploying to production
Chinese Market Insights
- Focus on major brands like BYD, NIO, XPeng, and Tesla
- Consider regional preferences across Chinese provinces
- Monitor EV market trends in the Chinese automotive market
- Track import vehicle demand and pricing
Start extracting Chinese automotive data with the Che168.com parser today!