Repository navigation
Releases
ClipParse iOS SDK 1.6.0
An update that adds extract(_:), deprecates the caption parameter, and makes TikTok extraction more reliable.
- New
extract(_:), which takes only the post URL. extract(_:caption:)is deprecated: itscaptionparameter has no effect. Switch toextract(_:); the deprecated method will be removed in 2.0.- More reliable TikTok extraction.
ClipParseError.tiktokPhotoPostsUnsupportedis deprecated and no longer thrown, since TikTok photo posts are supported.- Otherwise a drop-in update from 1.5.0, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.5.0
An update that separates rate limits from spent allowances, and changes the SDK's license.
- New
ClipParseError.rateLimited(retryAfter:), thrown when too many requests were sent in a short time. Wait forretryAfterseconds, then retry. ClipParseError.quotaExceededis now thrown only when the API key's allowance is spent. A rate limit previously threw it too, so if you catchquotaExceeded, handlerateLimitedas well; otherwise it falls into your generic error branch.isRetryableis nowtruefor any 5xx response, not only a 500.- Requests to the ClipParse API now include an
X-SDK-Platformheader with the valueios. - The SDK is now distributed under the ClipParse SDK License, in place of the MIT License. It remains free to embed in your apps and to ship with them.
- Otherwise a drop-in update from 1.4.0, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.4.0
A small update that adds the two ends of an ingredient amount given as a range.
- New
Ingredient.quantityMinandIngredient.quantityMax. When a post gives an amount as a range, such as "3-4 tbsp", they hold 3 and 4. Both arenilfor a single amount. Ingredient.quantityis unchanged: for a range it is still the midpoint (3.5).- Otherwise a drop-in update from 1.3.0, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.3.0
A small update that adds US liquid units and makes ingredient units future-proof.
- New
Unit.pt,Unit.qtandUnit.galfor pints, quarts and gallons. If you switch overUnit, handle them explicitly; otherwise they fall into your@unknown defaultbranch. - An ingredient unit your SDK version doesn't recognize now comes back as a
nilunit, with the original text inIngredient.raw, instead of failing the whole extraction. Future units won't break apps on older SDK versions. - Otherwise a drop-in update from 1.2.0, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.2.0
A small update to error handling for posts that can't be reached.
- New
ClipParseError.postUnavailable, thrown when a post was deleted, is private, or doesn't exist. ItsisRetryableisfalse: retrying the same link won't succeed. - Otherwise a drop-in update from 1.1.0, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.1.0
A small update to how "no recipe" outcomes are reported.
- New
NoRecipeReason.noRecipeFound, returned when a post contains no recipe to extract. NoRecipeReason.noRecipeInCaptionis deprecated and no longer returned. If you handle it, switch to.noRecipeFound; Xcode's rename fix-it does it in one click. It will be removed in 2.0.- Otherwise a drop-in update from 1.0.1, with no other public API changes.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
ClipParse iOS SDK 1.0.1
Instagram recipes now come back with their thumbnail.
- Instagram extractions now include the post's thumbnail:
Recipe.thumbnailUrl, previously alwaysnilfor Instagram links, is now populated whenever the server doesn't provide one. - No public API changes; a drop-in update from 1.0.0.
Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
1.0.0
ClipParse iOS SDK 1.0.0
First stable release. The public API — ClipParseClient, async extract(_:), and typed ClipParseError — is now covered by semantic versioning: no breaking changes until 2.0.
Changes since 0.2.0
- Privacy improvements to the SDK's internal networking.
- The bundled privacy manifest (
PrivacyInfo.xcprivacy) is now complete — it declares no tracking, no required-reason API usage, and the submitted video URL as the only collected data (unlinked, used for app functionality only). Ready for App Store privacy-report ingestion.
Installation
.package(url: "https://github.com/clipparse/clipparse-ios-sdk.git", from: "1.0.0")Requires iOS 15+ / macOS 12+. Full history in CHANGELOG.md.
0.2.0
ClipParse iOS SDK 0.2.0
- ClipParseError.quotaExceeded now carries retryAfter: TimeInterval?, the back-off in seconds from the server's Retry-After header. A 429 means a per-key rate limit tripped, so use this to schedule a retry. isRetryable stays false since retrying immediately won't succeed.
- API requests now send
X-SDK-VersionandX-Bundle-Idheaders, so the server can tie API keys to apps and tell SDK traffic from raw requests.
0.1.0
Initial public release of the ClipParse iOS SDK.
What's included
- Recipe extraction from TikTok and Instagram video links — structured title, ingredients, quantities, and steps
- Async/await Swift API
- Distributed as a binary XCFramework via Swift Package Manager
Requirements
- iOS 15+ / macOS 12+
- A ClipParse API key — get one at clipparse.com
Installation
In Xcode: File → Add Package Dependencies →
https://github.com/clipparse/clipparse-ios-sdk
Or in Package.swift:
.package(url: "https://github.com/clipparse/clipparse-ios-sdk.git", from: "0.1.0")
See the README for a quickstart.