Walmart Category Tree
1 credits/call
ae_walmart_category_tree
Query Walmart's product category structure. The optional node_id input is a string and defaults to an empty string. Leave it unspecified to retrieve top-level and second-level categories, or provide a category node_id to retrieve its child categories.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
When node_id is omitted or an empty string, the query returns top-level and second-level categories. When node_id is specified, it returns that node's child categories. The same fixed fee per call applies to both query scopes.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
node_id | string | No | Optional: if specified, returns the child categories of this node_id; if not specified, returns the top-level and second-level categories. Data type: string. | "" |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_walmart_category_tree' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {}
}'Response exampleresponse.json
{
"data": [
{
"category_name": "Personal Care",
"children": [
{
"category_name": "Deodorant & Antiperspirant |",
"node_id": "1005862_1001487"
}
],
"node_id": "1005862"
}
],
"doc": {
"category_name": "Category name.",
"children": "Array of child categories; each element contains category_name and node_id.",
"children.category_name": "Category name of the child category.",
"children.node_id": "NodeID of the child category.",
"node_id": "Category NodeID, used as input for subsequent category-scoped product/report/trend/keyword queries."
}
}This example shows part of the response. Copied content is valid JSON.

