{"id":20448502,"url":"https://github.com/shadawck/rust-trend","last_synced_at":"2025-04-13T01:27:26.677Z","repository":{"id":47402783,"uuid":"382564565","full_name":"shadawck/rust-trend","owner":"shadawck","description":"Unofficial Rust API for interacting with Google Trend","archived":false,"fork":false,"pushed_at":"2023-06-20T12:58:37.000Z","size":418,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-31T11:57:52.407Z","etag":null,"topics":["google-trends","google-trends-api","library","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/rtrend","language":"Rust","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/shadawck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-03T08:27:01.000Z","updated_at":"2023-12-08T06:32:11.000Z","dependencies_parsed_at":"2022-08-12T13:22:38.068Z","dependency_job_id":null,"html_url":"https://github.com/shadawck/rust-trend","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadawck%2Frust-trend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadawck%2Frust-trend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadawck%2Frust-trend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadawck%2Frust-trend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadawck","download_url":"https://codeload.github.com/shadawck/rust-trend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224766824,"owners_count":17366395,"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":["google-trends","google-trends-api","library","rust"],"created_at":"2024-11-15T10:35:23.517Z","updated_at":"2024-11-15T10:35:24.167Z","avatar_url":"https://github.com/shadawck.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-trend\n\n![rust-trend](./google-trends-rust-api-little.png)\n\n## Overview\n\nUnofficial Rust API for interacting with Google Trend\n\n## Documentation\n\n- [Examples Repository](./examples)\n- [API Documentation](https://docs.rs/rtrend)\n\n## Example\n\nFirst, add the dependency to your project:\n\n```sh\ncargo add rtrend\n```\n\nThen build a client and send the *reqwest* you want :\n\n```rust\nuse rtrend::{Keywords, Country, Client, RegionInterest};\n\nlet country = Country::US;\nlet keywords = Keywords::new(vec![\"Instagram\",\"Facebook\"]);\nlet client = Client::new(keywords, country).build();\n\n// Then select the data you want. The interest of your keywords filtered by region for example:\nlet region_interest = RegionInterest::new(client).get();\nprintln!(\"{}\", region_interest);\n\n// Result :\n//{\n//  \"default\": {\n//    \"geoMapData\": [\n//      {\n//        \"formattedValue\": [\n//          \"100\"\n//        ],\n//        \"geoCode\": \"US-CA\",\n//        \"geoName\": \"California\",\n//        \"hasData\": [\n//          true\n//        ],\n//        \"maxValueIndex\": 0,\n//        \"value\": [\n//          100\n//        ]\n//      },\n//\n//      ...\n//      \n//      {\n//        \"formattedValue\": [\n//          \"46\"\n//        ],\n//        \"geoCode\": \"US-SD\",\n//        \"geoName\": \"South Dakota\",\n//        \"hasData\": [\n//          true\n//        ],\n//        \"maxValueIndex\": 0,\n//        \"value\": [\n//          46\n//        ]\n//      }\n//    ]\n//  }\n//}\n\n```\n\n### More example\n\n- [Simple](./examples/simple.rs)\n- [Region Interest](./examples/region_interest.rs)\n- [Search Interest](./examples/search_interest.rs)\n- [Related Queries](./examples/related_queries.rs)\n- [Related Topics](./examples/related_topics.rs)\n- [Use filters](./examples/filter.rs)\n- [Get response for specific keyword](./examples/select_keyword.rs)\n\n### Roadmap\n\n- [x] Write documentation \u0026 Doc Test\n  [x] Release on crates.io\n- [x] Add examples\n- [x] Add \"TOP\" and \"RISING\" filter\n- [x] Add REGION and CITY filter\n- [ ] Add METRO filter for country like USA or France\n- [ ] Write more tests\n- [ ] Make async feature (currently using Reqwest::blocking)\n\n### License\n\nLicensed under either of\n\n- Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadawck%2Frust-trend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadawck%2Frust-trend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadawck%2Frust-trend/lists"}