latestOpenAPI 3.0.12026-08-20112309904.6 KB

466169815b78

Collections - Network

Get commodity graph for a commodity tree

Retrieve a commodity-based network graph using a commodity tree ID.

This endpoint is similar to the collection-based commodity graph endpoint but uses a commodity tree ID to identify the collection. The commodity tree represents a hierarchical organization of commodity categories.

Use Cases:

  • Analyze commodity-based networks using commodity tree identifiers
  • Visualize relationships for specific commodity hierarchies
  • Integrate with systems that use commodity tree IDs

Response Format: Returns an array of tree nodes organized by commodity relationships.

Required Permission: ACCESS_PUBLIC_COMMODITY_GRAPH

Performance Impact: High

get/public/v2/network/tree/{commodityTreeId}/commodity-graph

Path parameters

commodityTreeIdinteger required

Response

Successfully retrieved commodity graph

targetinteger required

The target id of the supplier

edgeSourcestring required

Allowed values "Public Media", "Public Customs", "Private", "Shared", "Prewave Prediction"

merged_targetsinteger[]

Target ids of past targets that were merged into this current target