# wechatDownload can't get the key (获取密钥失败): what can I do?

wechatDownload reads the key from your logged-in PC WeChat, and it breaks whenever WeChat or the tool changes: issue 161 (July 2024, 40 comments) and issue 484 (March 2026, after tool version 4.2) are both full of users stuck at the key step. What helped: keep the .exe in a folder with no spaces, open the copied article link inside WeChat first, wait (one user said about 5 minutes worked 90% of the time), and update to the newest release. XTikAPI reads an account's articles by its gh_ ID with no WeChat client, $0.02 a page.

Updated 2026-11-24

## Checklist from the two threads

| Symptom | What users tried | Result reported |
|---|---|---|
| Stuck at "getting key" | Wait about 5 minutes | One user: works about 90% of the time |
| Stuck at "getting key" | Open the article link in WeChat first, then batch download | Suggested by the maintainer (issue 484) |
| "Download failed, check the link" | Move the .exe out of a path with spaces | Fixed it for one user on 4.4 |
| Fails on every version | Update to the newest release | Maintainer's answer to 4.1-4.3 reports |

In issue 161 the reporter had already tried a non-C: path, no proxy, two WeChat accounts and two computers on Windows 11, and still got no key.

## Without a WeChat client

1. Get the account's gh_ ID: in an article's page source, `var user_name = "gh_..."`.
2. `wechat_mp.posts.list` with `id` and `cursor` for the article list.
3. `wechat_mp.posts.detail` with `url` for full text, `wechat_mp.posts.metrics` for reads.

Cost: an account's 500 past articles at about 10 a page = 50 list calls + 500 detail calls = 550 × $0.02 = $11. A failed call is not charged.

## Why XTikAPI

- XTikAPI reads WeChat Official Accounts with 7 endpoints from $0.02 a call, and a failed call is not charged.
- Fewer tokens for AI: across 4 recorded live WeChat Official Accounts calls (2026-11-18), raw platform JSON is ~64k tokens vs ~2k via XTikAPI REST (96.4% fewer) and ~2k via MCP (96.3% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (5 of 7 for WeChat Official Accounts).
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [WeChat Official Accounts article list API](https://xtikapi.com/apis/wechat_mp/posts/list) ($0.02 a call): Articles published by one WeChat Official Account.
- [WeChat Official Accounts article details API](https://xtikapi.com/apis/wechat_mp/posts/detail) ($0.02 a call): One WeChat Official Account article by link.
- [WeChat Official Accounts article read count API](https://xtikapi.com/apis/wechat_mp/posts/metrics) ($0.02 a call): Read count, likes, shares, comments and saves of a WeChat Official Account article.

## More about WeChat Official Accounts

- [WeChat Official Accounts API](https://xtikapi.com/apis/wechat_mp)
- [How can an AI agent read WeChat Official Account articles?](https://xtikapi.com/answers/ai-agent-read-wechat-articles)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-24.

- [wechatDownload issue #161 (still can't get the key)](https://github.com/qiye45/wechatDownload/issues/161)
- [wechatDownload issue #484 (no key after 4.2)](https://github.com/qiye45/wechatDownload/issues/484)

## Questions

### Does it depend on my Windows version?

The threads mix Windows 11 22H2 and 23H2 reports with the same failure, so the OS build was not the deciding factor there.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/wechatdownload-cannot-get-key) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
