{"id":18465820,"url":"https://github.com/tcgdex/java-sdk","last_synced_at":"2025-04-08T08:32:01.606Z","repository":{"id":38191965,"uuid":"424662887","full_name":"tcgdex/java-sdk","owner":"tcgdex","description":"Communicate with the Open Source TCGdex API in Kotlin/Java using the SDK ","archived":false,"fork":false,"pushed_at":"2025-03-20T14:55:39.000Z","size":138,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T09:48:28.210Z","etag":null,"topics":["api","card","java","kotlin","pokemon","sdk","tcg","tcgdex","trading"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/tcgdex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-11-04T16:23:44.000Z","updated_at":"2025-02-17T03:56:47.000Z","dependencies_parsed_at":"2023-12-28T03:11:45.049Z","dependency_job_id":"213726a7-ccb6-4ae4-8e28-c82ad03a6591","html_url":"https://github.com/tcgdex/java-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcgdex%2Fjava-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcgdex%2Fjava-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcgdex%2Fjava-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcgdex%2Fjava-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcgdex","download_url":"https://codeload.github.com/tcgdex/java-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804623,"owners_count":20999022,"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","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","card","java","kotlin","pokemon","sdk","tcg","tcgdex","trading"],"created_at":"2024-11-06T09:14:15.358Z","updated_at":"2025-04-08T08:32:01.112Z","avatar_url":"https://github.com/tcgdex.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.tcgdex.net\"\u003e\n\t\t\u003cimg src=\"https://www.tcgdex.net/assets/og.png\" width=\"90%\" alt=\"TCGdex Main Image\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://jitpack.io/#net.tcgdex/java-sdk\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/jitpack/v/github/tcgdex/java-sdk?style=flat-square\" alt=\"Package Version\"\u003e\n\t\u003c/a\u003e\n\t\u003c!--\u003ca href=\"http://npmjs.com/@tcgdex/sdk\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/npm/dm/@tcgdex/sdk?style=flat-square\" alt=\"NPM Downloads\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://app.codecov.io/gh/tcgdex/javascript-sdk/\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/codecov/c/github/tcgdex/javascript-sdk?style=flat-square\u0026token=FR4BI94N4Q\" alt=\"coverage\"\u003e\n\t\u003c/a\u003e--\u003e\n\t\t\u003ca href=\"https://github.com/tcgdex/java-sdk/stargazers\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/github/stars/tcgdex/java-sdk?style=flat-square\" alt=\"Github stars\"\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://github.com/tcgdex/javascript-sdk/actions/workflows/build.yml\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/github/workflow/status/tcgdex/javascript-sdk/Build%20\u0026%20Test?style=flat-square\" alt=\"the TCGdex JAvascript SDK is released under the MIT license.\" /\u003e\n\t\u003c/a\u003e\n\t\u003ca href=\"https://discord.gg/NehYTAhsZE\"\u003e\n\t\t\u003cimg src=\"https://img.shields.io/discord/857231041261076491?color=%235865F2\u0026label=Discord\u0026style=flat-square\" alt=\"Discord Link\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n# TCGdex Kotlin/Java SDK\n\nThe Kotlin/Java SDK provides a convenient access with the Open Source TCGdex API.\n\nThe SDK is available both for Kotlin use and Java.\n\n## Documentation\n\n_The full API/SDK documentation in progress at [API Documentation - TCGdex](https://www.tcgdex.dev)_\n\n### Getting Started\n\n#### How To install\n\n**Gradle**\n\n1. add the repository in you `build.gradle`\n\n```gradle\nrepositories {\n  ...\n  maven { url 'https://jitpack.io' }\n}\n```\n\n2. Add the dependency in your `build.gradle`\n\n```gradle\ndependencies {\n        implementation 'net.tcgdex:java-sdk:{Version}'\n}\n```\n  \n**Maven**\n\n1. add the repository in your `pom.xml`\n\n```xml\n\u003crepositories\u003e\n  \u003crepository\u003e\n      \u003cid\u003ejitpack.io\u003c/id\u003e\n      \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n2. Add the depedency in your `pom.xml`\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.tcgdex\u003c/groupId\u003e\n    \u003cartifactId\u003ejava-sdk\u003c/artifactId\u003e\n    \u003cversion\u003e{Version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Usage\n\n_Note: a complete documentation is available at [TCGdex.dev](https://www.tcgdex.dev)_\n\n##### Kotlin\n\n**Example: Fetch a Card**\n\n```kotlin\n// Import the SDK\nimport net.tcgdex.sdk.TCGdex\n\n// Init the library with the language code (see the API REST documentation for the list)\nval api = TCGdex(\"en\")\n\n// returns you a Card Class with every informations filled!\nval card = api.fetchCard(\"swsh1-1\")\n```\n\n**Other Functions**\n\n```kotlin\napi.fetchCard(\"swsh3-136\")\napi.fetchCard(\"swsh3\", \"136\")\napi.fetchSet(\"swsh3\")\napi.fetchSets()\napi.fetchSerie(\"swsh\")\napi.fetchSeries()\napi.fetchTypes()\napi.fetchType(\"Colorless\")\napi.fetchRetreats()\napi.fetchRetreat(\"1\")\napi.fetchRarities()\napi.fetchRarity(\"Uncommon\")\napi.fetchIllustrators()\napi.fetchIllustrator(\"tetsuya koizumi\")\napi.fetchHPs()\napi.fetchHP(\"110\")\napi.fetchCategories()\napi.fetchCategory(\"Pokemon\")\napi.fetchDexIds()\napi.fetchDexId(\"162\")\napi.fetchEnergyTypes()\napi.fetchEnergyType(\"Special\")\napi.fetchRegulationMarks()\napi.fetchRegulationMark(\"D\")\napi.fetchStages()\napi.fetchStage(\"Basic\")\napi.fetchSuffixes()\napi.fetchSuffix(\"EX\")\napi.fetchTrainerTypes()\napi.fetchTrainerType(\"Tool\")\napi.fetchVariants()\napi.fetchVariant(\"holo\")\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/tcgdex/javascript-sdk/blob/master/CONTRIBUTING.md)\n\nTL::DR\n\n- Fork\n\n- Commit your changes\n\n- Pull Request on this Repository\n\n## License\n\nThis project is licensed under the MIT License. A copy of the license is available at [LICENSE.md](https://github.com/tcgdex/javascript-sdk/blob/master/LICENSE.md)\n\nThis is based on the [Maxopoly](https://github.com/Maxopoly) TCGdex Java SDK\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcgdex%2Fjava-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcgdex%2Fjava-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcgdex%2Fjava-sdk/lists"}