Skip to content

Roxra/Exist.io-Audible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audible to Exist

Sync Audible listening data into Exist with Python. Uses the Audible Python API.

What this does

This script:

  • authorizes with Audible in your browser and stores reusable device credentials locally
  • authorizes with Exist in your browser and stores refreshable OAuth tokens locally
  • creates the required Exist attributes if they do not already exist
  • fetches today's Audible listening stats
  • writes the values into Exist

Attributes created in Exist

  • Audible listening as minutes (Media)
  • Audible books finished as an integer count (Media)

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Make a new Developer API Client on Exist.io (Account Settings -> Developer Clients -> Add a new client)
  • Name = Whatever you want!
  • Support Email = Whatever you want!
  • Redirect URI = http://localhost:8000/
  • OAuth2 client type = Confidential

You will use the resulting client ID and client secret for the OAuth environment variables below.

  1. Copy .env.example values into your shell environment.

Required variables:

First run

Authorize Audible in your browser and save credentials:

python main.py auth

Authorize Exist in your browser and save credentials, this also ensures the required Exist attributes exist and stores their resolved names for future syncs:

python main.py exist-auth

Sync today's and yesterday's data:

python main.py sync

Sync a larger recent window including today:

python main.py sync --days 30

Inspect the Audible daily stats and finished-book count for a specific day:

python main.py inspect --date 2026-05-03

I'd recommend using Task Scheduler (or any equivalent) to run this script once a day just before midnight. The script uses the machine's local timezone when deciding what counts as "today".

About

Sync Audible listening data into Exist.io

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages