Regional Product Category Search
Regional Product Category Search
Documentation
API Introduction
This API provides agricultural product data retrieval capabilities based on specific regions and product categories. Developers can obtain corresponding market reference information by passing product names, region names, and an optional date, suitable for business systems that need to integrate agricultural market data from multiple locations.
Use Cases
- Agricultural E-commerce Platforms: Recommend local specialty agricultural products or display real-time reference prices based on the user's location.
- Market Monitoring Systems: Automatically collect specific agricultural product data from different regions and generate price trend reports.
- Supply Chain Procurement: Assist procurement personnel in comparing agricultural product supply conditions across different production areas.
Request and Response Details
- Request Method: POST
- Core Parameters:
categoryName(Required): Product name, e.g., "Apple", "Rice".region(Required): Region name, e.g., "Yantai, Shandong", "Heilongjiang".date(Optional): Query date, format yyyy-MM-dd, defaults to today.- Response Result: Returns a data object containing agricultural product information matching the specified region and category. The specific field structure is subject to the actual response.
Integration Recommendations
- Parameter Standardization: It is recommended to use standard administrative divisions or common origin aliases for region names to improve matching accuracy.
- Caching Strategy: For display scenarios with less stringent real-time requirements, it is recommended to short-term cache query results for the same region and category to reduce API call frequency.
- Error Handling: Please handle cases where no data is returned gracefully. The frontend should provide a user-friendly prompt instead of directly reporting an error.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"categoryName": "商品名称",
"region": "地区名称",
"date": "日期,格式:yyyy-MM-dd,默认当天"
}Response Example
{}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |
| properties | object | {...} |
| properties.categoryName | object | {...} |
| properties.categoryName.type | string | string |
| properties.categoryName.description | string | 商品名称 |
| properties.region | object | {...} |
| properties.region.type | string |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | object |