bee-inquiry-read
Version: 2.0.4
Overview
Use the Bee Website Builder Open API to read inquiry data and generate a structured analysis report.
Supports full-field retrieval, on-demand field selection (fields), multi-language filtering, and paginated queries.
Input Parameters
api_key (string, Required)
API authentication key used for caller identity verification and interface access control.
- Get it from: https://open.tradew.com
- Recommended configuration: Inject it via
skills.entries.env.BEE_API_KEYto avoid passing it in plaintext on every call.
language (string, Optional)
Site language filter.
⚠️ Constraint: If this parameter is provided, it must be selected manually from the list returned by the
bee-languages-getskill. AI inference is not allowed.
recent_days (integer, Optional)
Time-range filter for inquiries.
⚠️ Constraint: Returns inquiry data from the most recent specified number of days, with a range of 0-36500. The default value is
0, meaning no time limit and all inquiries are returned.
fields (array of strings, Optional)
Field whitelist. Specifies which inquiry fields to return. If omitted, all fields are returned.
Available values:
| Field | Description |
|---|---|
inquiry_id |
Unique inquiry ID |
language |
Language |
is_read |
Whether it has been read |
title |
Inquiry title |
content |
Inquiry content |
country_code |
Country code |
ip |
IP address |
contact |
Contact information object |
source |
Source channel |
target_products |
Related product list |
create_time |
Creation time |
pagination (object, Required)
Pagination configuration parameters.
current_page (integer)
- Default: 1
- Minimum: 1
- Pagination rules:
- Must rely on
data.pagination.has_next_page - Use
data.pagination.next_pageas the next page number - Do not infer pages based on
total_pageor manual increments - Requests must stop when
has_next_page=false
- Must rely on
page_size (integer)
- Default: 10
- Range: 10 ~ 50
Output Structure
Top-Level Fields
| Field | Type | Description |
|---|---|---|
| status | boolean | Request status, true for success / false for failure |
| msg | string | Response message |
| data | object | null | Response data, null on failure |
data.pagination
| Field | Type | Description |
|---|---|---|
| current_page | integer | Current page number |
| page_size | integer | Items per page |
| total_page | integer | Total pages |
| total_count | integer | Total records |
| has_next_page | boolean | Whether a next page exists |
| next_page | integer/null | Next page number |
data.list[] (array of objects)
Each inquiry record contains the following fields:
| Field | Type | Description |
|---|---|---|
| inquiry_id | integer | Unique inquiry ID |
| language | string | Site language |
| is_read | boolean | Whether it has been read |
| title | string | Inquiry title |
| content | string | Inquiry content, which may contain an HTML form |
| country_code | string | Country code (ISO 3166-1) |
| ip | string | IPv4 or IPv6 address |
| contact | object | Contact information |
| source | string | Inquiry source channel |
| target_products | array of objects | Related product list |
| create_time | string (datetime) | Creation time (ISO 8601 format) |
contact Object
| Field | Type | Description |
|---|---|---|
| name | string | Contact name |
| string | Email address | |
| tel | string | Contact phone |
| address | string | Contact address |
target_products[] Object
| Field | Type | Description |
|---|---|---|
| products_id | integer | Product ID |
| product_name | string | Product name |
| products_url | string | Product URL |
Dependencies
| Parameter | Dependency skill | Related field | Mode |
|---|---|---|---|
| language | bee-languages-get |
list[].language |
select |
The value of the language parameter must be selected manually from the list returned by bee-languages-get.
Usage Examples
Basic Query (first page, 10 items per page)
{
"api_key": "your-api-key",
"pagination": {
"current_page": 1,
"page_size": 10
}
}
With Language Filter and Field Restriction
{
"api_key": "your-api-key",
"language": "en",
"fields": ["inquiry_id", "country_code", "source", "contact", "create_time"],
"pagination": {
"current_page": 1,
"page_size": 50
}
}
Return Inquiry Data from the Last 7 Days
{
"api_key": "your-api-key",
"recent_days": 7,
"fields": ["inquiry_id", "country_code", "source", "contact", "create_time"],
"pagination": {
"current_page": 1,
"page_size": 50
}
}
Notes
api_keyis required and can be obtained from https://open.tradew.compaginationmust comply with the allowed range (page_size10-50,current_page>= 1)languagemust be manually selected frombee-languages-getand must not be inferred by the system- Pagination rules:
data.pagination.has_next_pageindicates whether a next page exists;data.pagination.next_pageprovides the next page number and isnullif there is no next page; whether to continue is decided by the user fieldsis optional. If omitted, all fields are returned; if provided, only the specified fields are returned
Applicable Scenarios
- Foreign trade inquiry data retrieval
- Customer source channel statistics
- Product popularity and conversion analysis
- Customer profiling and identity tag analysis
- Paginated export and CRM data synchronization
