JolpicaKit is a Swift Wrapper for the Jolpica API which is a replacement for the soon deprecated Ergast API. Check out their GitHub Page here!
- iOS 13.0+ / macOS 10.15+ / tvOS 13+ / watchOS 6+ / visionOS 1+
- Xcode 16+
- Swift 6+
If you're using Xcode, follow this guide to JolipcaKit to your Project.
Use https://github.com/fantasia-y/JolpicaKit.git
for the url.
After adding the dependency you'll be able to import the package and initialize the client.
// Jolpica.swift
import JolpicaKit
let jolpica = Jolpica()
Documentation for the API can found at the Jolpica API GitHub Page.
At the moment no configuration is needed, just install the dependency and you're ready to go. This section will change in the future as soon as the Jolpica team finished implementing access tokens.
You can however enable logging
let jolpica = Jolpica(
enableLogging: true
)
- Switch to swift-log for linux support
- Query Parameters (limit, offset)
- More control over caching
- Tests
Coming soon