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.
-
Declaration
Swift
public let addeddate: ModelField<IADate>? -
Declaration
Swift
public let adder: ModelField<IAString>? -
Declaration
Swift
public let avgRating: ModelField<IADouble>? -
Declaration
Swift
public let backupLocation: ModelField<IAString>? -
Declaration
Swift
public let collection: ModelField<IAString>? -
Declaration
Swift
public let coverage: ModelField<IAString>? -
Declaration
Swift
public let creator: ModelField<IAString>? -
Declaration
Swift
public let curation: ModelField<IAString>? -
Declaration
Swift
public var date: InternetArchive.ModelField<InternetArchive.IADate>? -
Declaration
Swift
public let description: ModelField<IAString>? -
Declaration
Swift
public let downloads: ModelField<IAInt>? -
Declaration
Swift
public let discs: ModelField<IAString>? -
Declaration
Swift
public let format: ModelField<IAString>? -
Declaration
Swift
public let hasMp3: ModelField<IAString>? -
Declaration
Swift
public let hidden: ModelField<IABool>? -
Declaration
Swift
public let homepage: ModelField<IAURL>? -
Declaration
Swift
public let identifier: String -
Declaration
Swift
public let indexdate: ModelField<IADate>? -
Declaration
Swift
public let indexflag: ModelField<IAString>? -
Declaration
Swift
public let isDark: ModelField<IAString>? -
Declaration
Swift
public let itemSize: ModelField<IAInt>? -
Declaration
Swift
public let lineage: ModelField<IAString>? -
Declaration
Swift
public let limflag: ModelField<IAString>? -
Declaration
Swift
public let md5s: ModelField<IAString>? -
Declaration
Swift
public let mediatype: ModelField<IAString>? -
Declaration
Swift
public let month: ModelField<IAInt>? -
Declaration
Swift
public let notes: ModelField<IAString>? -
Declaration
Swift
public let numericId: ModelField<IAInt>? -
Declaration
Swift
public let numRecentReviews: ModelField<IAInt>? -
Declaration
Swift
public let numTopBa: ModelField<IAInt>? -
Declaration
Swift
public let numTopDl: ModelField<IAInt>? -
Declaration
Swift
public let oaiUpdatedate: ModelField<IADate>? -
Declaration
Swift
public let pick: ModelField<IAString>? -
Declaration
Swift
public let `public`: ModelField<IAString>? -
Declaration
Swift
public let publicdate: ModelField<IADate>? -
Declaration
Swift
public let publisher: ModelField<IAString>? -
Declaration
Swift
public let reviewdate: ModelField<IADate>? -
Declaration
Swift
public let rights: ModelField<IAString>? -
Declaration
Swift
public let runtime: ModelField<IAString>? -
Declaration
Swift
public let shndiscs: ModelField<IAString>? -
Declaration
Swift
public let showSearchByYear: ModelField<IABool>? -
Declaration
Swift
public let showSearchByDate: ModelField<IABool>? -
Declaration
Swift
public let source: ModelField<IAString>? -
Declaration
Swift
public let spotlightIdentifier: ModelField<IAString>? -
Declaration
Swift
public let subject: ModelField<IAString>? -
Declaration
Swift
public let taper: ModelField<IAString>? -
Declaration
Swift
public let tasks: ModelField<IAString>? -
Declaration
Swift
public let title: ModelField<IAString>? -
Declaration
Swift
public let transferer: ModelField<IAString>? -
Declaration
Swift
public let type: ModelField<IAString>? -
Declaration
Swift
public let updated: ModelField<IAString>? -
Declaration
Swift
public let updatedate: ModelField<IADate>? -
Declaration
Swift
public let updater: ModelField<IAString>? -
Declaration
Swift
public let uploader: ModelField<IAString>? -
Declaration
Swift
public let venue: ModelField<IAString>? -
Declaration
Swift
public let week: ModelField<IAInt>? -
Declaration
Swift
public let year: ModelField<IAInt>?
View on GitHub
ItemMetadata Structure Reference