Skip to content

federicocappelli/AppInfoFetcher

Repository files navigation

AppInfoFetcher

Version License Platform

AppInfoFetcher is a simple, Swift library for performing App store connect metadata lookup for iOS apps present on the Apple app store. Given an app's bundle identifier the library returns all the app's metadata in a complete model.

Features

  • Fully typed model
  • Optional data Cache
  • Custom store country support

Example

AppInfoFetcher is available as Cocoapod and Swift Package and the repository contains example projects for both with a rudimentary UI compatible with iOS, iPadOS and macOS.

AppInfoFetcher macOS example app AppInfoFetcher example app

Installation

Cocoapods

pod 'AppInfoFetcher'

Swift package manager

Add you github account to Xcode and search for AppInfoFetcher or add it directly:

git@github.com:federicocappelli/AppInfoFetcher.git

Usage

let bundleID = "com.burbn.instagram"
AppInfoFetcher().fetchInfo(bundleIdentifier: bundleID, useCache: true, countryCode: "GB") { result in
    switch result {
    case.success(let appsInfo):
         // Use the array of AppInfo here
    case .failure(let error):
        print(error)
    }
}
  • Cache: If the cache is used only one API call is performed for a bundle identifier
  • Country code: If not specified the country code is extracted from the Locale.current

Using AppInfo

The AppInfo model contains a lot of informations like:

  • App name: .trackCensoredName
  • App store URL: .trackViewURL
  • App icon URL: .artworkUrl100

Author

Federico Cappelli

License

AppInfoFetcher is available under the Apache 2.0 license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published