{"id":13705162,"url":"https://github.com/terror/readwise","last_synced_at":"2025-10-04T12:33:16.229Z","repository":{"id":46206588,"uuid":"336892107","full_name":"terror/readwise","owner":"terror","description":"A rust wrapper for the Readwise API","archived":false,"fork":false,"pushed_at":"2022-10-15T15:27:20.000Z","size":91,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T22:03:20.608Z","etag":null,"topics":["api-wrapper","readwise","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-07T21:19:18.000Z","updated_at":"2024-04-29T14:10:41.000Z","dependencies_parsed_at":"2022-09-10T00:31:30.373Z","dependency_job_id":null,"html_url":"https://github.com/terror/readwise","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/terror%2Freadwise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Freadwise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Freadwise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Freadwise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terror","download_url":"https://codeload.github.com/terror/readwise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061382,"owners_count":20554563,"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","readwise","rust"],"created_at":"2024-08-02T22:00:34.802Z","updated_at":"2025-10-04T12:33:11.187Z","avatar_url":"https://github.com/terror.png","language":"Rust","funding_links":[],"categories":["Client Libraries"],"sub_categories":[],"readme":"## Readwise\n\n\u003cp\u003e\n  A rust wrapper for the \u003ca href=\"https://readwise.io/\" target=\"_blank\"\u003eReadwise\u003c/a\u003e API.\n  \u003cbr/\u003e\u003cbr/\u003e\n  \u003ca href=\"https://crates.io/crates/readwise\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://shields.io/crates/v/readwise.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/terror/readwise/blob/master/.github/workflows/rust.yml\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/terror/readwise/actions/workflows/rust.yml/badge.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n### Installation\n\nSimply add readwise to your Cargo.toml file:\n\n```\nreadwise = \"0.4.0\"\n```\n\n### Example\n\nHere is a small example showcasing the main functionality of the library.\n\n```rust\nuse {\n  dotenv::dotenv,\n  readwise::client::Client,\n  std::{collections::HashMap, env},\n};\n\nfn main() {\n  dotenv().ok();\n\n  let client = Client::new(\u0026env::var(\"ACCESS_TOKEN\").unwrap()).unwrap();\n\n  // Fetch all books on page 1\n  for book in client.books(1).unwrap() {\n    println!(\"{}\", book.title);\n  }\n\n  // Fetch all highlights on page 1\n  for highlight in client.highlights(1).unwrap() {\n    println!(\"{}\", highlight.id);\n  }\n\n  // Create highlight(s)\n  let mut new_highlight = HashMap::new();\n  new_highlight.insert(\"text\", \"hello world!\");\n\n  for highlight in client.create_highlights(vec![new_highlight]).unwrap() {\n    println!(\"{}\", highlight.text);\n  }\n\n  // Update a highlight by ID\n  let mut fields = HashMap::new();\n  fields.insert(\"text\", \"hello, world!\");\n  client.update_highlight(138105649, fields).unwrap();\n\n  // Delete a highlight by ID\n  client.delete_highlight(136887156).unwrap();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Freadwise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterror%2Freadwise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Freadwise/lists"}