Skip to main content

Unofficial API for zhihu.

Project description

UNOFFICIAL API for zhihu. This package supports only Python 3.x.

A Node.js implementation is also available.


$ pip install zhihuapi

Quich Start

import zhihuapi as api

with open('cookie') as f:

data = api.user('zhihuadmin').profile()

The result is:

    "url_token": "zhihuadmin",
    "avatar_url": "",
    "avatar_url_template": "{size}.jpg",
    "type": "people",
    "name": "知乎小管家",
    "headline": "欢迎反馈问题和建议!",
    "is_org": false,
    "url": "",
    "badge": [
            "type": "identity",
            "description": "知乎官方帐号"
    "user_type": "people",
    "is_advertiser": false,
    "id": "3d198a56310c02c4a83efb9f4a4c027e"



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zhihuapi, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size zhihuapi-0.6.0.tar.gz (10.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page