{"id":15293081,"url":"https://github.com/a-k-o-r-a/crates_api","last_synced_at":"2026-04-20T03:36:32.701Z","repository":{"id":64932691,"uuid":"578719511","full_name":"A-K-O-R-A/crates_api","owner":"A-K-O-R-A","description":"Dart package to access the crates.io api.","archived":false,"fork":false,"pushed_at":"2022-12-18T16:15:33.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T17:44:40.245Z","etag":null,"topics":["api-wrapper","crates-io","dart","dart-library","rust"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/A-K-O-R-A.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":null,"support":null}},"created_at":"2022-12-15T18:10:31.000Z","updated_at":"2022-12-17T13:21:09.000Z","dependencies_parsed_at":"2022-12-19T12:46:51.814Z","dependency_job_id":null,"html_url":"https://github.com/A-K-O-R-A/crates_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-K-O-R-A%2Fcrates_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-K-O-R-A%2Fcrates_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-K-O-R-A%2Fcrates_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A-K-O-R-A%2Fcrates_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A-K-O-R-A","download_url":"https://codeload.github.com/A-K-O-R-A/crates_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245273127,"owners_count":20588526,"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-wrapper","crates-io","dart","dart-library","rust"],"created_at":"2024-09-30T16:39:43.866Z","updated_at":"2026-04-20T03:36:32.666Z","avatar_url":"https://github.com/A-K-O-R-A.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/crates_api.svg)](https://pub.dev/packages/crates_api)\n[![package publisher](https://img.shields.io/pub/publisher/crates_api.svg)](https://pub.dev/packages/crates_api/publisher)\n\n## Crates.io API Wrapper for Dart\n\nThis wrapper lets you easily interact with the crates.io api.\n\n- Exposes all API types\n- Simple dart api\n- _soon_ 100% API Coverage\n\nNote: Before using this package you should read the [Crates.io Package Policies](https://crates.io/policies#crawlers).\n\n## Example\n\nSee `example/example.dart`\n\n```dart\nimport 'package:crates_api/crates_api.dart';\nimport 'package:crates_api/types/v1/error.dart';\n\nvoid main() async {\n  var api = CratesAPI(\"crates_api.dart testing\");\n\n  var versionR = api.crate(\"diesel\").version(\"2.0.2\");\n\n  try {\n    var versionMetadata = await versionR.metadata();\n    var versionDownloads = await versionR.downloads();\n    var checksum = versionMetadata.checksum;\n    print(\n      \"Checksum of diesel version 2.0.2 $checksum\",\n    );\n\n    var downloadEntry = versionDownloads[0];\n    var entryVersion = downloadEntry.version;\n    var entryDate = downloadEntry.date;\n    var entryDownloads = downloadEntry.downloads;\n    print(\n        \"Version $entryVersion was downloaded $entryDownloads times on $entryDate\");\n  } on APIException catch (e) {\n    print(e.errors.map((e) =\u003e e.detail));\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-k-o-r-a%2Fcrates_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-k-o-r-a%2Fcrates_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-k-o-r-a%2Fcrates_api/lists"}