{"id":13520411,"url":"https://github.com/algolia/algoliasearch-client-scala","last_synced_at":"2026-03-11T15:13:11.201Z","repository":{"id":3099777,"uuid":"46281582","full_name":"algolia/algoliasearch-client-scala","owner":"algolia","description":"⚡️ A fully-featured and blazing-fast Scala API client to interact with Algolia.","archived":false,"fork":false,"pushed_at":"2026-02-18T16:45:48.000Z","size":3557,"stargazers_count":26,"open_issues_count":23,"forks_count":25,"subscribers_count":68,"default_branch":"main","last_synced_at":"2026-02-18T19:59:29.284Z","etag":null,"topics":["algolia","algolia-api","algolia-search","api-client","scala"],"latest_commit_sha":null,"homepage":"https://www.algolia.com/doc/libraries/sdk/install#scala","language":"Scala","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/algolia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2015-11-16T14:57:49.000Z","updated_at":"2026-02-18T16:45:52.000Z","dependencies_parsed_at":"2023-12-12T16:28:25.906Z","dependency_job_id":"7cac8d4c-6718-4622-bfe1-7d48ee3d4da2","html_url":"https://github.com/algolia/algoliasearch-client-scala","commit_stats":null,"previous_names":[],"tags_count":176,"template":false,"template_full_name":null,"purl":"pkg:github/algolia/algoliasearch-client-scala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/algolia","download_url":"https://codeload.github.com/algolia/algoliasearch-client-scala/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/algolia%2Falgoliasearch-client-scala/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30385353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["algolia","algolia-api","algolia-search","api-client","scala"],"created_at":"2024-08-01T05:02:19.686Z","updated_at":"2026-03-11T15:13:11.196Z","avatar_url":"https://github.com/algolia.png","language":"Scala","funding_links":[],"categories":["API Clients","Scala"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.algolia.com\"\u003e\n    \u003cimg alt=\"Algolia for Scala\" src=\"https://user-images.githubusercontent.com/22633119/59600520-a8882400-9101-11e9-8034-2bf6d75bf962.png\" \u003e\n  \u003c/a\u003e\n\n\u003ch4 align=\"center\"\u003eThe perfect starting point to integrate \u003ca href=\"https://algolia.com\" target=\"_blank\"\u003eAlgolia\u003c/a\u003e within your Scala project\u003c/h4\u003e\n\n  \u003cp align=\"center\"\u003e\n      \u003ca href=\"https://central.sonatype.com/artifact/com.algolia/algoliasearch-scala_2.13\"\u003e\u003cimg src=\"https://img.shields.io/maven-central/v/com.algolia/algoliasearch-scala_2.13\" alt=\"Maven Central\"\u003e\u003c/img\u003e\u003c/a\u003e\n      \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"Licence\"\u003e\u003c/img\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.algolia.com/doc/libraries/sdk/install#scala\" target=\"_blank\"\u003eDocumentation\u003c/a\u003e  •\n  \u003ca href=\"https://discourse.algolia.com\" target=\"_blank\"\u003eCommunity Forum\u003c/a\u003e  •\n  \u003ca href=\"https://stackoverflow.com/questions/tagged/algolia\" target=\"_blank\"\u003eStack Overflow\u003c/a\u003e  •\n  \u003ca href=\"https://github.com/algolia/algoliasearch-client-scala/issues\" target=\"_blank\"\u003eReport a bug\u003c/a\u003e  •\n  \u003ca href=\"https://alg.li/support\" target=\"_blank\"\u003eSupport\u003c/a\u003e\n\u003c/p\u003e\n\n## ✨ Features\n\n* Supports Scala 2.13 and 3.3\n* Asynchronous methods to target Algolia's API\n* Json as case class\n\n## 💡 Getting Started\n\n**WARNING:**\nThe JVM has an infinite cache on successful DNS resolution.\nAs our hostnames points to multiple IPs, the load could be not evenly spread among our machines,\nand you might also target a dead machine.\n\nYou should change this TTL by setting the property `networkaddress.cache.ttl`.\nFor example, to set the cache to 60 seconds:\n\n```scala\njava.security.Security.setProperty(\"networkaddress.cache.ttl\", \"60\");\n```\n\nFor debug purposes, you can enable debug logging on the API client.\nIt's using [slf4j](https://www.slf4j.org) so it should be compatible with most java loggers.\n\n## 💡 Getting Started\n\nTo get started, add the algoliasearch-client-scala dependency to your project, with [Maven](https://maven.apache.org/), add the following dependency to your `pom.xml` file:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.algolia\u003c/groupId\u003e\n    \u003cartifactId\u003ealgoliasearch-scala_2.13\u003c/artifactId\u003e\n    \u003cversion\u003e[2,)\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nFor snapshots, add the `sonatype` repository:\n```xml\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003eoss-sonatype\u003c/id\u003e\n        \u003cname\u003eoss-sonatype\u003c/name\u003e\n        \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots/\u003c/url\u003e\n        \u003csnapshots\u003e\n            \u003cenabled\u003etrue\u003c/enabled\u003e\n        \u003c/snapshots\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\nIf you're using `sbt`, add the following dependency to your `build.sbt` file:\n\n```scala\nlibraryDependencies += \"com.algolia\" %% \"algoliasearch-scala\" % \"[2,)\"\n```\n\nFor snapshots, add the `sonatype` repository:\n```scala\nresolvers += \"Sonatype OSS Snapshots\" at \"https://oss.sonatype.org/content/repositories/snapshots\"\n```\n\nYou can now import the Algolia API client in your project and play with it.\n\n```scala\nimport algoliasearch.api.SearchClient\n\nval client = SearchClient(appId = \"YOUR_APP_ID\", apiKey = \"YOUR_API_KEY\")\n\n// Add a new record to your Algolia index\nval response = client.saveObject(\n  indexName = \"\u003cYOUR_INDEX_NAME\u003e\",\n  body = JObject(List(JField(\"objectID\", JString(\"id\")), JField(\"test\", JString(\"val\"))))\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))\n\n// Poll the task status to know when it has been indexed\nclient.waitTask(\"\u003cYOUR_INDEX_NAME\u003e\", response.getTaskID())\n\n// Fetch search results, with typo tolerance\nval response = client.search(\n  searchMethodParams = SearchMethodParams(\n    requests = Seq(\n      SearchForHits(\n        indexName = \"\u003cYOUR_INDEX_NAME\u003e\",\n        query = Some(\"\u003cYOUR_QUERY\u003e\"),\n        hitsPerPage = Some(50)\n      )\n    )\n  )\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))\n```\n\nFor full documentation, visit the **[Algolia Scala API Client](https://www.algolia.com/doc/libraries/sdk/install#scala)**.\n\n## ❓ Troubleshooting\n\nEncountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://support.algolia.com/hc/sections/15061037630609-API-Client-FAQs) where you will find answers for the most common issues and gotchas with the client. You can also open [a GitHub issue](https://github.com/algolia/api-clients-automation/issues/new?assignees=\u0026labels=\u0026projects=\u0026template=Bug_report.md)\n\n## Contributing\n\nThis repository hosts the code of the generated Algolia API client for Scala, if you'd like to contribute, head over to the [main repository](https://github.com/algolia/api-clients-automation). You can also find contributing guides on [our documentation website](https://api-clients-automation.netlify.app/docs/introduction).\n\n## 📄 License\n\nThe Algolia Scala API Client is an open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Falgoliasearch-client-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falgolia%2Falgoliasearch-client-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falgolia%2Falgoliasearch-client-scala/lists"}