Collections - Network
Get commodity graph for a collection
Retrieve a commodity-based network graph for a collection.
This endpoint returns a graph structure showing how targets in the collection are connected through commodity relationships. The graph represents supply chain relationships organized by commodity/product categories.
Use Cases:
- Analyze commodity-based supply chain networks
- Visualize relationships organized by product categories
- Identify commodity-specific supplier connections
Response Format: Returns an array of tree nodes, where each node contains:
- Target information
- Commodity relationships
- Nested supplier structures organized by commodities
Required Permissions: ACCESS_PUBLIC_COMMODITY_GRAPH and READ on the collection
Performance Impact: High
get/public/v2/network/{collectionId}/commodity-graph
Request
- Base URLhttps://api.prewave.com
- AuthAPI key in header X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
collectionIdinteger required
Response
Successfully retrieved commodity graph
Changes
No recorded changes to this operation across all 24 revisions of this API.