Getting a Model Structure

You can use the exact same parameters as the components endpoint to obtain its model structure. You just need to switch to the modelstructure-for-component endpoint.

It is much more convenient to request the model structure as JSON or XML, for a very simple reason: model structures are trees, and XML and JSON support trees natively. However, a CSV and HTML format is available as well, which will list the report elements in a flat way, in the order in which they appear in the tree, and with depth information.