ItemMetadata

public struct ItemMetadata : Decodable

Internet Archive Item Metadata

This will be returned from itemDetail() and search() requests.

Note: The properties are all type ModelField<T> except identifier, which is a String. This means you need to access all values by their .value or .values properties, except for identifier, which you can access directly.

Some Background: All other fields can be a string or array of strings so we can’t access them directly. See the ModelField class for a more thorough explanation.

For example:

let metadata = ItemMetadata(...some metadata...)
metadata.identifier = "SCIRedRocksConcert" // `identifier` is always a String
metadata.venue.value = "Red Rocks" // other fields can be a string or array of strings so you can't access directly

See the Internet Archive’s Python API Reference for a description of the properties.

Note: This is not an exhaustive list of metadata properties. If you need some that are missing, please open a pull request.