{"id":32150684,"url":"https://github.com/recombee/swift-api-client","last_synced_at":"2026-02-21T17:04:04.247Z","repository":{"id":286089189,"uuid":"959856160","full_name":"recombee/swift-api-client","owner":"recombee","description":"Swift client for easy use of the Recombee recommendation API in iOS applications","archived":false,"fork":false,"pushed_at":"2025-10-23T13:53:09.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-29T04:40:27.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.recombee.com/swift_client","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/recombee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-03T13:14:39.000Z","updated_at":"2025-10-23T13:53:05.000Z","dependencies_parsed_at":"2025-04-04T09:33:49.619Z","dependency_job_id":"3bb834b2-dd62-407a-8221-632076f834d8","html_url":"https://github.com/recombee/swift-api-client","commit_stats":null,"previous_names":["recombee/swift-api-client"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/recombee/swift-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fswift-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fswift-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fswift-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fswift-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recombee","download_url":"https://codeload.github.com/recombee/swift-api-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fswift-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29688218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-21T10:15:33.795Z","updated_at":"2026-02-21T17:04:04.241Z","avatar_url":"https://github.com/recombee.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"  \u003cdiv align=\"center\"\u003e\n  \u003cimg\n    src=\"https://raw.githubusercontent.com/recombee/.github/refs/heads/main/assets/mark.svg\"\n    width=\"64px\"\n    align=\"center\"\n    alt=\"Recombee\"\n  /\u003e\n  \u003cbr /\u003e\n  \u003ch1\u003eRecombee Swift API Client\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://swiftpackageindex.com/recombee/swift-api-client\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg\" alt=\"SwiftPM\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/github/license/recombee/swift-api-client\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://docs.recombee.com/swift_client\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/recombee/swift-api-client/issues/new\"\u003eIssues\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"mailto:support@recombee.com\"\u003eSupport\u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n## ✨ Features\n\n- Thin Swift wrapper around the Recombee API\n- Supports following endpoints: [Interactions](https://docs.recombee.com/api#user-item-interactions), [Recommendations](https://docs.recombee.com/api#recommendations), [Search](https://docs.recombee.com/api#search), and more\n- Fully async/await enabled for modern iOS development\n- Typed request/response interfaces with JSON decoding helpers\n\n## 🚀 Getting Started\n\nAdd the dependency to your Xcode project using **Swift Package Manager**:\n\n1. In Xcode, go to `File → Add Packages`\n2. Enter the repository URL:\n\n```\nhttps://github.com/recombee/swift-api-client\n```\n\n3. Choose the latest version and confirm\n\nAlternatively, in `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/recombee/swift-api-client\", from: \"6.1.0\")\n```\n\nThen add to your target dependencies:\n\n```swift\n.target(\n  name: \"MyApp\",\n  dependencies: [\"RecombeeClient\"]\n)\n```\n\n## 🏗️ Example\n\nYou can send user-item interactions and receive recommendations like this:\n\n```swift\nimport RecombeeClient\n\n// Initialize the API client with the ID of your database and the associated PUBLIC token\nlet client = RecombeeClient(\n    databaseId: \"your-database-id\",\n    publicToken: \"...db-public-token...\",\n    region: .euWest // the region of your database\n)\n\ndo {\n    // Send interactions\n    try await client.send(\n        AddDetailView(\n            userId: \"user-4395\",\n            itemId: \"item-129\",\n            recommId: \"23eaa09b-0e24-4487-ba9c-8e255feb01bb\"\n        )\n    )\n\n    // Request recommendations\n    let response = try await client.send(\n        RecommendItemsToUser(\n            userId: \"user-x\",\n            count: 10,\n            scenario: \"homepage-top-for-you\",\n            returnProperties: true,\n            includedProperties: [\"title\"]\n        )\n    )\n\n    // `recommId` needs to be sent with interactions based on recommendations\n    print(\"recommId: \\(response.recommId)\")\n\n    // The `recomms` object contains the `id` (and `values` if `returnProperties` is true)\n    for item in response.recomms {\n        let title = item.values?[\"title\"] as? String ?? \"(unknown)\"\n        print(\"ID: \\(item.id), Title: \\(title)\")\n    }\n\n} catch let error as ClientError {\n    print(\"ClientError: \\(error.errorDescription ?? \"Unknown error\")\")\n    // Ideally, provide a fallback if an error occurs...\n} catch {\n    print(\"Unexpected error: \\(error.localizedDescription)\")\n}\n```\n\n\u003e [!TIP]\n\u003e We also published a simple [example iOS app](https://github.com/recombee/ios-demo) to help you with the integration. Feel free to use it as a reference.\n\u003e\n\u003e ![iOS Demo app](https://raw.githubusercontent.com/recombee/ios-demo/refs/heads/main/images/screenshots.png)\n\n## 📝 Documentation\n\nDiscover the full [Swift API Client documentation](https://docs.recombee.com/swift_client) for comprehensive guides and examples.\n\nFor a complete breakdown of all endpoints and their responses, check out our [API Reference](https://docs.recombee.com/api).\n\n## 🤝 Contributing\n\nWe welcome all contributions—whether it’s fixing a bug, improving documentation, or suggesting a new feature.\n\nTo contribute, simply fork the repository, make your changes, and submit a pull request. Be sure to provide a clear description of your changes.\n\nThanks for helping make this project better!\n\n## 🔧 Troubleshooting\n\nAre you having issues? We recommend checking [our documentation](https://docs.recombee.com/swift_client) to see if it contains a possible solution.\n\nIf you want to reach out, you can either [open a GitHub issue](https://github.com/recombee/swift-api-client/issues/new) or send an email to support@recombee.com.\n\n\nWe're happy to help!\n\n## 📄 License\n\nThe Recombee Swift API Client is provided under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecombee%2Fswift-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecombee%2Fswift-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecombee%2Fswift-api-client/lists"}