{"id":13705152,"url":"https://github.com/floscha/readwise-api","last_synced_at":"2025-04-30T08:24:45.975Z","repository":{"id":172991113,"uuid":"649679027","full_name":"floscha/readwise-api","owner":"floscha","description":"An unofficial Python client for the Readwise Reader API.","archived":false,"fork":false,"pushed_at":"2023-06-12T18:44:15.000Z","size":54,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T01:48:40.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/floscha.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-05T12:00:25.000Z","updated_at":"2024-12-05T23:15:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c1db4e7-3798-4ce5-af5b-0f97045eb4ff","html_url":"https://github.com/floscha/readwise-api","commit_stats":null,"previous_names":["floscha/readwise-api"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Freadwise-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Freadwise-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Freadwise-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floscha%2Freadwise-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floscha","download_url":"https://codeload.github.com/floscha/readwise-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251667549,"owners_count":21624520,"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":[],"created_at":"2024-08-02T22:00:34.665Z","updated_at":"2025-04-30T08:24:45.911Z","avatar_url":"https://github.com/floscha.png","language":"Python","funding_links":[],"categories":["Python","Client Libraries"],"sub_categories":[],"readme":"![logo](https://github.com/floscha/readwise-api/raw/main/logo.png)\n\n# Readwise API\n\nAn unofficial Python client for the [Readwise Reader API](https://readwise.io/reader_api).\n\n## Installation\n\n`pip install readwise-api`\n\n## Usage\n\n### Prerequisites\n\nFirst, you have to obtain a [Readwise access token](https://readwise.io/access_token).\nThen, the token has to be stored, either into an *.env* file or an environment variable using `export READWISE_TOKEN=\u003cyour_token\u003e`.\n\n### Python API\n\n```python\nimport readwise\n```\n\n**List all documents:**\n\n```python\nreadwise.get_documents(location=\"new\")\n```\n\n**Get a single document by its ID:**\n\n```python\nreadwise.get_document_by_id(\"\u003cdocument_id\u003e\")\n```\n\n**Save a document to Readwise Reader**\n\n```python\nreadwise.save_document(\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\")\n```\n\n### CLI\n\n**List all documents:**\n\n```shell\nreadwise list new\n```\n\nNaturally, the output can be saved to a JSON file:\n\n```shell\nreadwise list new \u003e new_documents.json\n```\n\n**Get a single document by its ID:**\n\n```shell\nreadwise get \u003cdocument_id\u003e\n```\n\n**Save a document to Readwise Reader**\n\n```shell\nreadwise save \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Freadwise-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloscha%2Freadwise-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloscha%2Freadwise-api/lists"}