{"id":15064472,"url":"https://github.com/ritiek/rafy-rs","last_synced_at":"2026-02-16T23:03:55.140Z","repository":{"id":22541972,"uuid":"95607935","full_name":"ritiek/rafy-rs","owner":"ritiek","description":"Rust library to download YouTube content and retrieve metadata","archived":false,"fork":false,"pushed_at":"2019-08-16T19:04:22.000Z","size":44,"stargazers_count":50,"open_issues_count":7,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T05:38:57.826Z","etag":null,"topics":["content","downloader","library","metadata","rust","youtube"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ritiek.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}},"created_at":"2017-06-27T23:02:21.000Z","updated_at":"2024-08-23T02:59:51.000Z","dependencies_parsed_at":"2022-08-19T05:42:35.277Z","dependency_job_id":null,"html_url":"https://github.com/ritiek/rafy-rs","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritiek%2Frafy-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritiek%2Frafy-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritiek%2Frafy-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ritiek%2Frafy-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ritiek","download_url":"https://codeload.github.com/ritiek/rafy-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217123,"owners_count":21066633,"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":["content","downloader","library","metadata","rust","youtube"],"created_at":"2024-09-25T00:19:05.956Z","updated_at":"2026-02-16T23:03:55.097Z","avatar_url":"https://github.com/ritiek.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rafy\n\n![Rust Toolchain](https://img.shields.io/badge/rust-stable-brightgreen.svg)\n[![Crates.io](https://img.shields.io/crates/v/rafy.svg)](https://crates.io/crates/rafy)\n[![Docs.rs](https://docs.rs/rafy/badge.svg)](https://docs.rs/rafy/)\n[![Build Status](https://travis-ci.org/ritiek/rafy-rs.svg?branch=master)](https://travis-ci.org/ritiek/rafy-rs)\n\nRust library to fetch YouTube content and retrieve metadata. An attempt to mimic [pafy](https://github.com/mps-youtube/pafy) but in Rust.\n\n## Installation\n\nPut the below in your `Cargo.toml`\n\n\u003e [dependencies]\n\u003e\n\u003e rafy = \"0.2\"\n\n## Usage Examples\n\n```rust\nextern crate rafy;\nuse rafy::Rafy;\n\nfn main() {\n    let content = Rafy::new(\"https://www.youtube.com/watch?v=DjMkfARvGE8\").unwrap();\n    println!(\"{}\", content.videoid);\n    println!(\"{}\", content.title);\n    println!(\"{}\", content.rating);\n    println!(\"{}\", content.viewcount);\n}\n```\n\nFor more examples check out the [**Documentation**](https://docs.rs/rafy/).\n\n## Limitations\n\n- This library won't be able to fetch `audiostreams` and `videostreams` for unpopular videos, because YouTube does not generate separate streams for unpopular videos. However, it will still be able to fetch normal `streams`.\n\n- Since this library does not depend on [youtube-dl](https://github.com/rg3/youtube-dl), there are some more things (not mentioning here) that we'll be missing out.\n\n## Running Tests\n\n```\n$ cargo test\n```\n\n## Contributing\n\n- Rust is still new to me. If there is anything that can be improved, please open an issue or even better, send a PR! :smile:\n\n- Documentation improvements are also most welcome!\n\n## Thanks\n\nThe basic method of extracting streams was stolen from [rust-youtube-downloader](https://github.com/smoqadam/rust-youtube-downloader) by [smoqadam](https://github.com/smoqadam).\n\n## License\n\n`The MIT License`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fritiek%2Frafy-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fritiek%2Frafy-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fritiek%2Frafy-rs/lists"}