Skip to content

Instapaper/python-public-api-example

Repository files navigation

Instapaper Public API Python Example

This project has an example InstapaperApiClient that handles OAuth1.0a authentication, and implements /api/1.1/bookmarks/list functionality.

Register API Consumer

Before starting, register your Instapaper API consumer.

Setup

python -m venv venv/
pip install -r requirements.txt

Set Environment Variables

Using your API consumer key and secret, set the required environment variables:

export INSTAPAPER_CLIENT_KEY=<your key>
export INSTAPAPER_CLIENT_SECRET=<your secret>

List your bookmarks

Run the following command to list your bookmarks:

python ./auth_and_fetch_bookmarks.py <login-email>
Enter Password: <enter your password>

You should see as output the JSON response.

LICENSE

Copyright 2025 Instant Paper, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages