SteamGridDBSwiftAPI

1.0.0

This package allows you to fetch image resources for video games (such as Steam games).
256Arts/SteamGridDB-Swift-API

What's New

Initial Release

2025-11-10T06:55:23Z

SteamGridDB Swift API

This package allows you to fetch image resources for video games (such as Steam games).

Installation

To use this package, put the following in the dependencies of your Package.swift:

.package(url: "https://github.com/256Arts/SteamGridDB-Swift-API.git", from: "1.0.0")

Contents

import SteamGridDBSwiftAPI

// Configure database
let db = SteamGridDB(apiKey: "<YOUR KEY>")
db.includeAdultContent = true

// Fetch game info
let results = try await db.search(query: "<GAME NAME>")
let gameInfo = try await db.game(id: <GAME ID>)

// Fetch images
// Only game ID parameter is required, but there are many other optional parameters.
let gridImages = try await db.grids(for: <GAME ID>, dimensions: [.x512x512, .x1024x1024])
let heroImages = try await db.heroes(for: <GAME ID>, styles: [.blurred])
let logos = try await db.logos(for: <GAME ID>, limit: 20, page: 2)
let icons = try await db.icons(for: <GAME ID>)

Description

  • Swift Tools 6.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Nov 16 2025 03:10:07 GMT-1000 (Hawaii-Aleutian Standard Time)