AI용

Zhihu API: 검색, 질문, 답변, 사용자

18 Zhihu endpoints covering posts, questions, answers, comments, articles, columns, pins, hot lists, accounts, topics and keywords, from $0.002 a call. No Zhihu account or cookie needed.

무료로 시작 Try Zhihu 검색
AI에 연결

이 문장을 AI 에이전트에 붙여 넣으세요

https://okdata.online/agents.md을 읽고 okdata를 설정해 줘. 키는 환경 변수 OKDATA_API_KEY에 있어.

Claude Code, Cursor, Codex처럼 링크를 열 수 있는 AI 에이전트는 읽고 나서 스스로 설정합니다.

MCP 서버https://api.okdata.online/mcp

Claude, Cursor 등 에이전트에서 Zhihu에 대해 물어보세요: Zhihu MCP 페이지

엔드포인트
엔드포인트 18개
11개 그룹, 하나의 응답 형식 · 4 곧 지원 예정
최저가
$0.002부터
선불 잔액에서 결제되는 호출
최신성
라이브
순위는 최대 10분 전의 공유 스냅샷입니다
월 요금
$0
구독이나 최소 사용 금액 없음

Zhihu 전체 엔드포인트

엔드포인트별 한 행: 요청, 반환 내용, 호출 1회 비용.

Zhihu 데이터 활용 사례

작업마다 사용하는 엔드포인트, 실행 예시, 비용을 담은 별도 페이지가 있습니다.

세 단계로 시작하기

The example is Zhihu 검색; every Zhihu endpoint is called the same way and answers in the same shape.

  1. 키 받기

    콘솔에서 계정과 키를 만드세요. 새 키에는 $0.20 체험 크레딧이 제공되며 카드가 필요 없습니다.

    콘솔 열기

  2. AI에 연결하거나 직접 호출하세요

    이 문장을 Claude Code, Cursor, Codex 등 링크를 열 수 있는 에이전트에 붙여 넣으면 자동으로 설정됩니다. 또는 Authorization 헤더에 키를 넣어 아래 요청을 보내세요.

    https://okdata.online/agents.md를 따라 okdata를 설정해 줘. 내 okdata API 키는 다음과 같아: okd_…. 안전하게 보관하고 모든 okdata 호출에 사용하세요.

    플레이스홀더를 내 키로 바꾸거나, 로그인해 키가 채워진 상태로 복사하세요.

  3. 첫 호출 해보기

    항목은 data.items(단일 객체는 data.item)에, 다음 페이지는 page.next_cursor에, 과금액은 meta.billing.amount에 담겨 반환됩니다.

    cURL

    curl -G "https://api.okdata.online/v1/zhihu/posts/search" \
      -H "Authorization: Bearer $OKDATA_API_KEY" \
      --data-urlencode 'query=咖啡机推荐'

    Python

    import os
    import requests
    
    resp = requests.get(
        "https://api.okdata.online/v1/zhihu/posts/search",
        headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"},
        params={"query": "咖啡机推荐"},
        timeout=60,
    )
    body = resp.json()
    if body["code"] != "ok":
        raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})")
    
    for row in body["data"]["items"]:
        print(row["id"], row["metrics"]["likes"], row["text"][:60])
    print("cost: $" + body["meta"]["billing"]["amount"])

    TypeScript

    const url = new URL('https://api.okdata.online/v1/zhihu/posts/search');
    url.searchParams.set('query', "咖啡机推荐");
    
    const res = await fetch(url, {
      headers: {
        Authorization: `Bearer ${process.env.OKDATA_API_KEY}`,
      },
    });
    const body = await res.json();
    if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`);
    
    for (const row of body.data.items) {
      console.log(row.id, row.metrics.likes, row.text.slice(0, 60));
    }
    console.log('cost: $' + body.meta.billing.amount);

    MCPtools/call

    {
      "name": "call",
      "arguments": {
        "capability": "zhihu.posts.search",
        "query": "咖啡机推荐"
      }
    }

Zhihu API 관련 질문

Zhihu API 비용은 얼마인가요?

Each of the 18 endpoints has its own price, from $0.002 to $0.02 a call; the cheapest is Zhihu 답변 댓글 at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.

Zhihu 계정이나 쿠키가 필요한가요?

아니요. 하나의 okdata 키로 https://api.okdata.online을 호출해 공개 Zhihu 데이터를 받습니다. 본인의 Zhihu 계정, 쿠키, QR 로그인은 전혀 사용하지 않습니다.

데이터는 얼마나 최신인가요?

요청하는 시점에 Zhihu에서 읽어 옵니다. 다만 같은 요청에 대한 응답이 얼마 전에 있었다면 결과 캐시에서 응답할 수 있으며, 이때 meta.cached: true와 함께 meta.fetched_at에 읽어 온 시각이 표시됩니다(목록·검색은 최대 30분, 게시물·상품 단건은 최대 1시간, 프로필은 최대 6시간 전 데이터). 인기 목록은 최대 10분 전의 공유 스냅샷에서 제공됩니다.

AI 에이전트가 Zhihu API를 사용할 수 있나요?

네. https://api.okdata.online/mcp 에서 MCP 서버를 연결하세요. find 도구가 이 엔드포인트 18개를 가격과 함께 보여 주고, call 도구가 내 키로 실행합니다.

무료로 체험할 수 있나요?

New accounts get $0.20 of trial credit with no card: enough for 100 calls to Zhihu 답변 댓글.

한 번 연결하면, 그다음엔 묻기만 하세요.

새 키에는 $0.20 무료 크레딧이 들어 있습니다. AI에 한 문장만 붙여 넣으면 연결됩니다.

무료로 시작
AI에 연결

이 문장을 AI 에이전트에 붙여 넣으세요

https://okdata.online/agents.md을 읽고 okdata를 설정해 줘. 키는 환경 변수 OKDATA_API_KEY에 있어.

Claude Code, Cursor, Codex처럼 링크를 열 수 있는 AI 에이전트는 읽고 나서 스스로 설정합니다.

MCP 서버https://api.okdata.online/mcp