---
title: "ankiweb-cli: reconstructing AnkiWeb's protobuf card API"
url: https://awesomerea.org/resources/ankiweb-cli-case/
updated: 2026-11-08
type: resource
---

# ankiweb-cli: reconstructing AnkiWeb's protobuf card API

> ankiweb-cli reconstructs AnkiWeb's internal protobuf service requests for deck and card operations. Its Python CLI obtains separate cookies for ankiweb.net and ankiuser.net, encodes length-delimited messages with a small codec, and offers deck creation, card editing and search through those endpoints.

- Type: Case study
- Targets: Protocol · Website
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-08
- Added to the catalog: 2026-11-08
- Original resource: <https://github.com/htlin222/ankiweb-add-card>
- Primary source: <https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/CLAUDE.md>
- Catalog page: <https://awesomerea.org/resources/ankiweb-cli-case/>
- Record JSON: <https://awesomerea.org/resources/ankiweb-cli-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/ankiweb-cli-case/index.md)

## Requirements & limits

- **Prerequisites:** Python 3.10 or later and the owner's AnkiWeb credentials are required.
- **Limits:** The endpoints are private and may change.
- **License:** MIT License.

## Primary sources

1. <https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/CLAUDE.md>
2. <https://github.com/htlin222/ankiweb-add-card/blob/49b68949ca055f69edf71cc67b32cc4f86cc9ef0/README.md>

## More in Websites

- [aqi-liberator: decoding aqicn.org historical air-quality data](https://awesomerea.org/resources/aqi-liberator-case/index.md) · Case study
- [Webtoon API: reconstructing Android request signing](https://awesomerea.org/resources/webtoon-api-case/index.md) · Case study
- [WeHeartIt API Endpoints: recovering paths from the Android app](https://awesomerea.org/resources/weheartit-api-endpoints-case/index.md) · Case study
- [FacebookUnsentMessage: reconstructing Messenger history sync](https://awesomerea.org/resources/facebook-unsent-message-case/index.md) · Case study
- [Dih Pinterest: reconstructing a Pinterest search site's page and data flow](https://awesomerea.org/resources/dih-pinterest-case/index.md) · Case study
- [urja-api: reconstructing the Urja Meter Ops portal API](https://awesomerea.org/resources/urja-api-meter-ops-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
