Extracting the platform heading with snapppy?

In this thread it is shown how you can access the metadata of a product:

For the API you can have a look at the Doc of these two classes:
MetadataElement
MetadataAttribute