{"id":22632447,"url":"https://github.com/uploadcare/uploadcare-java","last_synced_at":"2025-09-20T09:48:20.592Z","repository":{"id":6100987,"uuid":"7328331","full_name":"uploadcare/uploadcare-java","owner":"uploadcare","description":"Java API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.","archived":false,"fork":false,"pushed_at":"2025-03-06T18:14:36.000Z","size":858,"stargazers_count":6,"open_issues_count":7,"forks_count":14,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-11T20:11:42.518Z","etag":null,"topics":["api","client","file-upload","image-processing","image-recognition","image-upload","java","processing","sdk","upload","uploadcare","uploader"],"latest_commit_sha":null,"homepage":"https://uploadcare.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uploadcare.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"AUTHORS.txt","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-12-26T15:07:30.000Z","updated_at":"2024-08-31T19:52:38.000Z","dependencies_parsed_at":"2024-03-13T18:53:49.708Z","dependency_job_id":"6128ddf8-423f-4bae-a2ea-f34963698f07","html_url":"https://github.com/uploadcare/uploadcare-java","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/uploadcare/uploadcare-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uploadcare%2Fuploadcare-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uploadcare%2Fuploadcare-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uploadcare%2Fuploadcare-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uploadcare%2Fuploadcare-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uploadcare","download_url":"https://codeload.github.com/uploadcare/uploadcare-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uploadcare%2Fuploadcare-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276077894,"owners_count":25581305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","client","file-upload","image-processing","image-recognition","image-upload","java","processing","sdk","upload","uploadcare","uploader"],"created_at":"2024-12-09T02:17:36.225Z","updated_at":"2025-09-20T09:48:20.560Z","avatar_url":"https://github.com/uploadcare.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uploadcare-java\n\n[![Build Status](https://github.com/uploadcare/uploadcare-java/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/uploadcare/uploadcare-java/actions/workflows/build.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.uploadcare/uploadcare/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.uploadcare/uploadcare)\n[![Javadocs](https://www.javadoc.io/badge/com.uploadcare/uploadcare.svg)](https://www.javadoc.io/doc/com.uploadcare/uploadcare)\n[![Uploadcare stack on StackShare][stack-img]][stack]\n\n[stack-img]: http://img.shields.io/badge/tech-stack-0690fa.svg?style=flat\n[stack]: https://stackshare.io/uploadcare/stacks/\n\nThis is a Java library for Uploadcare.\n\nSupported features:\n\n- Complete file and project APIs v0.6.\n- Paginated resources are fetched as `List\u003cT\u003e`.\n- CDN path builder.\n- File uploading from a local storage, byte arrays, URLs, and signed uploads.\n\nThe minimum requirements to build this project are:\n\n1. Gradle 8.2 (you can use `./gradlew` or `.\\gradlew.bat` which will download it for you).\n2. JDK 1.8 (target is 1.7, so don't use much higher version).\n3. Running `./gradlew build` should run successfully.\n\n## Maven\n\nThe latest stable library version is available at\n[Maven Central](https://central.sonatype.com/artifact/com.uploadcare/uploadcare/).\n\nInclude following dependency into your project's `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.uploadcare\u003c/groupId\u003e\n    \u003cartifactId\u003euploadcare\u003c/artifactId\u003e\n    \u003cversion\u003e3.5.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Gradle\n\nInclude following dependency into your project's `build.gradle`:\n\n```\nimplementation 'com.uploadcare:uploadcare:3.5.1'\n```\n\nIf you are using the kotlin style `build.gradle.kts`:\n\n```\nimplementation(\"com.uploadcare:uploadcare:3.5.1\")\n```\n\n## Examples\n\nGet your [API keys](https://uploadcare.com/docs/start/settings/#keys) to proceed with the examples below.\n\nRead class documentation on [javadoc.io](https://www.javadoc.io/doc/com.uploadcare/uploadcare/latest/index.html).\n\n### Basic API Usage\n\n```java\nClient client = new Client(\"publickey\", \"secretkey\");\nProject project = client.getProject();\nProject.Collaborator owner = project.getOwner();\n\nList\u003cURI\u003e published = new ArrayList\u003cURI\u003e();\nIterable\u003cFile\u003e files = client.getFiles().asIterable();\nfor (File file : files) {\n    if (file.isMadePublic()) {\n        published.add(file.getOriginalFileUrl());\n    }\n}\n```\n\n### Building CDN URLs\n\n```java\nFile file = client.getFile(\"85b5644f-e692-4855-9db0-8c5a83096e25\");\nCdnPathBuilder builder = file.cdnPath()\n        .resizeWidth(200)\n        .cropCenter(200, 200)\n        .grayscale();\nURI url = Urls.cdn(builder);\n```\n\n### File uploads\n\n```java\nClient client = Client.demoClient();\njava.io.File file = new java.io.File(\"olympia.jpg\");\nUploader uploader = new FileUploader(client, sourceFile);\ntry {\n    File file = uploader.upload().save();\n    System.out.println(file.getOriginalFileUrl());\n} catch (UploadFailureException e) {\n    System.out.println(\"Upload failed :(\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuploadcare%2Fuploadcare-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuploadcare%2Fuploadcare-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuploadcare%2Fuploadcare-java/lists"}