All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
fetchAiSearchApiV1ZhihuWebFetchAiSearchGet | GET /api/v1/zhihu/web/fetch_ai_search | 获取知乎AI搜索/Get Zhihu AI Search |
fetchAiSearchApiV1ZhihuWebFetchAiSearchGet_0 | GET /api/v1/zhihu/web/fetch_ai_search | 获取知乎AI搜索/Get Zhihu AI Search |
fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet | GET /api/v1/zhihu/web/fetch_ai_search_result | 获取知乎AI搜索结果/Get Zhihu AI Search Result |
fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet_0 | GET /api/v1/zhihu/web/fetch_ai_search_result | 获取知乎AI搜索结果/Get Zhihu AI Search Result |
fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get | GET /api/v1/zhihu/web/fetch_article_search_v3 | 获取知乎文章搜索V3/Get Zhihu Article Search V3 |
fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_article_search_v3 | 获取知乎文章搜索V3/Get Zhihu Article Search V3 |
fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet | GET /api/v1/zhihu/web/fetch_column_article_detail | 获取知乎专栏文章详情/Get Zhihu Column Article Detail |
fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet_0 | GET /api/v1/zhihu/web/fetch_column_article_detail | 获取知乎专栏文章详情/Get Zhihu Column Article Detail |
fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet | GET /api/v1/zhihu/web/fetch_column_articles | 获取知乎专栏文章列表/Get Zhihu Column Articles |
fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet_0 | GET /api/v1/zhihu/web/fetch_column_articles | 获取知乎专栏文章列表/Get Zhihu Column Articles |
fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet | GET /api/v1/zhihu/web/fetch_column_comment_config | 获取知乎专栏评论区配置/Get Zhihu Column Comment Config |
fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet_0 | GET /api/v1/zhihu/web/fetch_column_comment_config | 获取知乎专栏评论区配置/Get Zhihu Column Comment Config |
fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet | GET /api/v1/zhihu/web/fetch_column_recommend | 获取知乎相似专栏推荐/Get Zhihu Similar Column Recommend |
fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet_0 | GET /api/v1/zhihu/web/fetch_column_recommend | 获取知乎相似专栏推荐/Get Zhihu Similar Column Recommend |
fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet | GET /api/v1/zhihu/web/fetch_column_relationship | 获取知乎专栏文章互动关系/Get Zhihu Column Article Relationship |
fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet_0 | GET /api/v1/zhihu/web/fetch_column_relationship | 获取知乎专栏文章互动关系/Get Zhihu Column Article Relationship |
fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get | GET /api/v1/zhihu/web/fetch_column_search_v3 | 获取知乎专栏搜索V3/Get Zhihu Column Search V3 |
fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_column_search_v3 | 获取知乎专栏搜索V3/Get Zhihu Column Search V3 |
fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get | GET /api/v1/zhihu/web/fetch_comment_v5 | 获取知乎评论区V5/Get Zhihu Comment V5 |
fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get_0 | GET /api/v1/zhihu/web/fetch_comment_v5 | 获取知乎评论区V5/Get Zhihu Comment V5 |
fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get | GET /api/v1/zhihu/web/fetch_ebook_search_v3 | 获取知乎电子书搜索V3/Get Zhihu Ebook Search V3 |
fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_ebook_search_v3 | 获取知乎电子书搜索V3/Get Zhihu Ebook Search V3 |
fetchHotListApiV1ZhihuWebFetchHotListGet | GET /api/v1/zhihu/web/fetch_hot_list | 获取知乎首页热榜/Get Zhihu Hot List |
fetchHotListApiV1ZhihuWebFetchHotListGet_0 | GET /api/v1/zhihu/web/fetch_hot_list | 获取知乎首页热榜/Get Zhihu Hot List |
fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet | GET /api/v1/zhihu/web/fetch_hot_recommend | 获取知乎首页推荐/Get Zhihu Hot Recommend |
fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet_0 | GET /api/v1/zhihu/web/fetch_hot_recommend | 获取知乎首页推荐/Get Zhihu Hot Recommend |
fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet | GET /api/v1/zhihu/web/fetch_preset_search | 获取知乎搜索预设词/Get Zhihu Preset Search |
fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet_0 | GET /api/v1/zhihu/web/fetch_preset_search | 获取知乎搜索预设词/Get Zhihu Preset Search |
fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet | GET /api/v1/zhihu/web/fetch_recommend_followees | 获取知乎推荐关注列表/Get Zhihu Recommend Followees |
fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet_0 | GET /api/v1/zhihu/web/fetch_recommend_followees | 获取知乎推荐关注列表/Get Zhihu Recommend Followees |
fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get | GET /api/v1/zhihu/web/fetch_salt_search_v3 | 获取知乎盐选内容搜索V3/Get Zhihu Salt Search V3 |
fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_salt_search_v3 | 获取知乎盐选内容搜索V3/Get Zhihu Salt Search V3 |
fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post | POST /api/v1/zhihu/web/fetch_scholar_search_v3 | 获取知乎论文搜索V3/Get Zhihu Scholar Search V3 |
fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post_0 | POST /api/v1/zhihu/web/fetch_scholar_search_v3 | 获取知乎论文搜索V3/Get Zhihu Scholar Search V3 |
fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet | GET /api/v1/zhihu/web/fetch_search_recommend | 获取知乎搜索发现/Get Zhihu Search Recommend |
fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet_0 | GET /api/v1/zhihu/web/fetch_search_recommend | 获取知乎搜索发现/Get Zhihu Search Recommend |
fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet | GET /api/v1/zhihu/web/fetch_search_suggest | 知乎搜索预测词/Get Zhihu Search Suggest |
fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet_0 | GET /api/v1/zhihu/web/fetch_search_suggest | 知乎搜索预测词/Get Zhihu Search Suggest |
fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get | GET /api/v1/zhihu/web/fetch_sub_comment_v5 | 获取知乎子评论区V5/Get Zhihu Sub Comment V5 |
fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get_0 | GET /api/v1/zhihu/web/fetch_sub_comment_v5 | 获取知乎子评论区V5/Get Zhihu Sub Comment V5 |
fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get | GET /api/v1/zhihu/web/fetch_topic_search_v3 | 获取知乎话题搜索V3/Get Zhihu Topic Search V3 |
fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_topic_search_v3 | 获取知乎话题搜索V3/Get Zhihu Topic Search V3 |
fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet | GET /api/v1/zhihu/web/fetch_user_follow_collections | 获取知乎用户关注的收藏/Get Zhihu User Follow Collections |
fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet_0 | GET /api/v1/zhihu/web/fetch_user_follow_collections | 获取知乎用户关注的收藏/Get Zhihu User Follow Collections |
fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet | GET /api/v1/zhihu/web/fetch_user_follow_columns | 获取知乎用户订阅的专栏/Get Zhihu User Columns |
fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet_0 | GET /api/v1/zhihu/web/fetch_user_follow_columns | 获取知乎用户订阅的专栏/Get Zhihu User Columns |
fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet | GET /api/v1/zhihu/web/fetch_user_follow_questions | 获取知乎用户关注的问题/Get Zhihu User Follow Questions |
fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet_0 | GET /api/v1/zhihu/web/fetch_user_follow_questions | 获取知乎用户关注的问题/Get Zhihu User Follow Questions |
fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet | GET /api/v1/zhihu/web/fetch_user_follow_topics | 获取知乎用户关注的话题/Get Zhihu User Follow Topics |
fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet_0 | GET /api/v1/zhihu/web/fetch_user_follow_topics | 获取知乎用户关注的话题/Get Zhihu User Follow Topics |
fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet | GET /api/v1/zhihu/web/fetch_user_followees | 获取知乎用户关注列表/Get Zhihu User Following |
fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet_0 | GET /api/v1/zhihu/web/fetch_user_followees | 获取知乎用户关注列表/Get Zhihu User Following |
fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet | GET /api/v1/zhihu/web/fetch_user_followers | 获取知乎用户粉丝列表/Get Zhihu User Followers |
fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet_0 | GET /api/v1/zhihu/web/fetch_user_followers | 获取知乎用户粉丝列表/Get Zhihu User Followers |
fetchUserInfoApiV1ZhihuWebFetchUserInfoGet | GET /api/v1/zhihu/web/fetch_user_info | 获取知乎用户信息/Get Zhihu User Info |
fetchUserInfoApiV1ZhihuWebFetchUserInfoGet_0 | GET /api/v1/zhihu/web/fetch_user_info | 获取知乎用户信息/Get Zhihu User Info |
fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get | GET /api/v1/zhihu/web/fetch_user_search_v3 | 获取知乎用户搜索V3/Get Zhihu User Search V3 |
fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_user_search_v3 | 获取知乎用户搜索V3/Get Zhihu User Search V3 |
fetchVideoListApiV1ZhihuWebFetchVideoListGet | GET /api/v1/zhihu/web/fetch_video_list | 获取知乎首页视频榜/Get Zhihu Video List |
fetchVideoListApiV1ZhihuWebFetchVideoListGet_0 | GET /api/v1/zhihu/web/fetch_video_list | 获取知乎首页视频榜/Get Zhihu Video List |
fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get | GET /api/v1/zhihu/web/fetch_video_search_v3 | 获取知乎视频搜索V3/Get Zhihu Video Search V3 |
fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get_0 | GET /api/v1/zhihu/web/fetch_video_search_v3 | 获取知乎视频搜索V3/Get Zhihu Video Search V3 |
ResponseModel fetchAiSearchApiV1ZhihuWebFetchAiSearchGet(messageContent)
获取知乎AI搜索/Get Zhihu AI Search
[中文] ### 用途: - 获取知乎AI搜索 ### 参数: - message_content: 搜索内容 ### 返回: - 知乎AI搜索消息ID,用于请求搜索结果 # [English] ### Purpose: - Get Zhihu AI Search ### Parameters: - message_content: Search Content ### Returns: - Zhihu AI Search Message ID for requesting search results # [示例/Example] message_content = "deepseek"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String messageContent = "messageContent_example"; // String | 搜索内容/Search Content
try {
ResponseModel result = apiInstance.fetchAiSearchApiV1ZhihuWebFetchAiSearchGet(messageContent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchAiSearchApiV1ZhihuWebFetchAiSearchGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
messageContent | String | 搜索内容/Search Content |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchAiSearchApiV1ZhihuWebFetchAiSearchGet_0(messageContent)
获取知乎AI搜索/Get Zhihu AI Search
[中文] ### 用途: - 获取知乎AI搜索 ### 参数: - message_content: 搜索内容 ### 返回: - 知乎AI搜索消息ID,用于请求搜索结果 # [English] ### Purpose: - Get Zhihu AI Search ### Parameters: - message_content: Search Content ### Returns: - Zhihu AI Search Message ID for requesting search results # [示例/Example] message_content = "deepseek"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String messageContent = "messageContent_example"; // String | 搜索内容/Search Content
try {
ResponseModel result = apiInstance.fetchAiSearchApiV1ZhihuWebFetchAiSearchGet_0(messageContent);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchAiSearchApiV1ZhihuWebFetchAiSearchGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
messageContent | String | 搜索内容/Search Content |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet(messageId)
获取知乎AI搜索结果/Get Zhihu AI Search Result
[中文] ### 用途: - 获取知乎AI搜索结果 ### 参数: - message_id: 消息ID ### 返回: - 知乎AI搜索结果 # [English] ### Purpose: - Get Zhihu AI Search Result ### Parameters: - message_id: Message ID ### Returns: - Zhihu AI Search Result # [示例/Example] message_id = "5f8b4f4a-0b7c-4d1b-8c4f-2e5c0d6c1b9d"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String messageId = "messageId_example"; // String | 消息ID/Message ID
try {
ResponseModel result = apiInstance.fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet(messageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
messageId | String | 消息ID/Message ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet_0(messageId)
获取知乎AI搜索结果/Get Zhihu AI Search Result
[中文] ### 用途: - 获取知乎AI搜索结果 ### 参数: - message_id: 消息ID ### 返回: - 知乎AI搜索结果 # [English] ### Purpose: - Get Zhihu AI Search Result ### Parameters: - message_id: Message ID ### Returns: - Zhihu AI Search Result # [示例/Example] message_id = "5f8b4f4a-0b7c-4d1b-8c4f-2e5c0d6c1b9d"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String messageId = "messageId_example"; // String | 消息ID/Message ID
try {
ResponseModel result = apiInstance.fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet_0(messageId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchAiSearchResultApiV1ZhihuWebFetchAiSearchResultGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
messageId | String | 消息ID/Message ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get(keyword, offset, limit, showAllTopics, searchSource, searchHashId, vertical, sort, timeInterval, verticalInfo)
获取知乎文章搜索V3/Get Zhihu Article Search V3
[中文] ### 用途: - 获取知乎文章搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页文章数量 - show_all_topics: 显示所有主题, - 0 不显示话题 - 1 显示话题 - search_source: 搜索来源 - Filter 过滤参数生效 - Normal 为普通结果 - search_hash_id: 搜索哈希ID,用于过滤重复搜索结果 - vertical: 空 不限类型 - answer 只看回答 - article 只看文章 - zvideo 只看视频 - sort: 空 综合排序 - upvoted_count 最多赞同 - created_time 最新发布 - time_interval: 时间间隔 - 空 不限时间 - a_day 一天内 - a_week 一周内 - a_month 一个月内 - three_months 三个月内 - half_a_year 半年内 - a_year 一年内 - vertical_info: 垂类信息 - 0,0,0,0,0,0,0,0,0,0,0,0 不限类型,不会设置勿填 ### 返回: - 知乎文章搜索V3 # [English] ### Purpose: - Get Zhihu Article Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of articles per page - show_all_topics: Show all topics - 0 Do not show topics - 1 Show topics - search_source: Search Source - Filter parameter takes effect - Normal is normal result - search_hash_id: Search Hash ID, used to filter duplicate search results - vertical: Empty unlimited type - answer only see answers - article only see articles - zvideo only see videos - sort: Empty comprehensive sorting - upvoted_count most upvoted - created_time latest release - time_interval: Time interval - Empty unlimited time - a_day within a day - a_week within a week - a_month within a month - three_months within three months - half_a_year within half a year - a_year within a year - vertical_info: Vertical information - 0,0,0,0,0,0,0,0,0,0,0,0 unlimited type, do not set do not fill ### Returns: - Zhihu Article Search V3 # [示例/Example] # 默认搜索,综合排序,不限时间 keyword = "deepseek" offset = "0" limit = "20" show_all_topics = 0 search_source = "Normal" search_hash_id = "" vertical = "" sort = "" time_interval = "" vertical_info = "" # 只看回答,最多赞同,三月内 keyword = "deepseek" offset = "0" limit = "20" show_all_topics = 0 search_source = "Filter" search_hash_id = "" vertical = "answer" sort = "upvoted_count" time_interval = "three_months" vertical_info = "0,0,0,0,0,0,0,0,0,0,0,0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页文章数量/Number of articles per page
Integer showAllTopics = 0; // Integer | 显示所有主题/Show all topics
String searchSource = "\"Normal\""; // String | 搜索来源/Search Source
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
String vertical = "\"\""; // String | 垂类/Vertical Type
String sort = "\"\""; // String | 排序/Sort
String timeInterval = "\"\""; // String | 时间间隔/Time Interval
String verticalInfo = "\"\""; // String | 垂类信息/Vertical Info
try {
ResponseModel result = apiInstance.fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get(keyword, offset, limit, showAllTopics, searchSource, searchHashId, vertical, sort, timeInterval, verticalInfo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "20"] |
showAllTopics | Integer | 显示所有主题/Show all topics | [optional] [default to 0] |
searchSource | String | 搜索来源/Search Source | [optional] [default to "Normal"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
vertical | String | 垂类/Vertical Type | [optional] [default to ""] |
sort | String | 排序/Sort | [optional] [default to ""] |
timeInterval | String | 时间间隔/Time Interval | [optional] [default to ""] |
verticalInfo | String | 垂类信息/Vertical Info | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get_0(keyword, offset, limit, showAllTopics, searchSource, searchHashId, vertical, sort, timeInterval, verticalInfo)
获取知乎文章搜索V3/Get Zhihu Article Search V3
[中文] ### 用途: - 获取知乎文章搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页文章数量 - show_all_topics: 显示所有主题, - 0 不显示话题 - 1 显示话题 - search_source: 搜索来源 - Filter 过滤参数生效 - Normal 为普通结果 - search_hash_id: 搜索哈希ID,用于过滤重复搜索结果 - vertical: 空 不限类型 - answer 只看回答 - article 只看文章 - zvideo 只看视频 - sort: 空 综合排序 - upvoted_count 最多赞同 - created_time 最新发布 - time_interval: 时间间隔 - 空 不限时间 - a_day 一天内 - a_week 一周内 - a_month 一个月内 - three_months 三个月内 - half_a_year 半年内 - a_year 一年内 - vertical_info: 垂类信息 - 0,0,0,0,0,0,0,0,0,0,0,0 不限类型,不会设置勿填 ### 返回: - 知乎文章搜索V3 # [English] ### Purpose: - Get Zhihu Article Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of articles per page - show_all_topics: Show all topics - 0 Do not show topics - 1 Show topics - search_source: Search Source - Filter parameter takes effect - Normal is normal result - search_hash_id: Search Hash ID, used to filter duplicate search results - vertical: Empty unlimited type - answer only see answers - article only see articles - zvideo only see videos - sort: Empty comprehensive sorting - upvoted_count most upvoted - created_time latest release - time_interval: Time interval - Empty unlimited time - a_day within a day - a_week within a week - a_month within a month - three_months within three months - half_a_year within half a year - a_year within a year - vertical_info: Vertical information - 0,0,0,0,0,0,0,0,0,0,0,0 unlimited type, do not set do not fill ### Returns: - Zhihu Article Search V3 # [示例/Example] # 默认搜索,综合排序,不限时间 keyword = "deepseek" offset = "0" limit = "20" show_all_topics = 0 search_source = "Normal" search_hash_id = "" vertical = "" sort = "" time_interval = "" vertical_info = "" # 只看回答,最多赞同,三月内 keyword = "deepseek" offset = "0" limit = "20" show_all_topics = 0 search_source = "Filter" search_hash_id = "" vertical = "answer" sort = "upvoted_count" time_interval = "three_months" vertical_info = "0,0,0,0,0,0,0,0,0,0,0,0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页文章数量/Number of articles per page
Integer showAllTopics = 0; // Integer | 显示所有主题/Show all topics
String searchSource = "\"Normal\""; // String | 搜索来源/Search Source
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
String vertical = "\"\""; // String | 垂类/Vertical Type
String sort = "\"\""; // String | 排序/Sort
String timeInterval = "\"\""; // String | 时间间隔/Time Interval
String verticalInfo = "\"\""; // String | 垂类信息/Vertical Info
try {
ResponseModel result = apiInstance.fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get_0(keyword, offset, limit, showAllTopics, searchSource, searchHashId, vertical, sort, timeInterval, verticalInfo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchArticleSearchV3ApiV1ZhihuWebFetchArticleSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "20"] |
showAllTopics | Integer | 显示所有主题/Show all topics | [optional] [default to 0] |
searchSource | String | 搜索来源/Search Source | [optional] [default to "Normal"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
vertical | String | 垂类/Vertical Type | [optional] [default to ""] |
sort | String | 排序/Sort | [optional] [default to ""] |
timeInterval | String | 时间间隔/Time Interval | [optional] [default to ""] |
verticalInfo | String | 垂类信息/Vertical Info | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet(articleId)
获取知乎专栏文章详情/Get Zhihu Column Article Detail
[中文] ### 用途: - 获取知乎专栏文章详情 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏文章详情 # [English] ### Purpose: - Get Zhihu Column Article Detail ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Article Detail # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet_0(articleId)
获取知乎专栏文章详情/Get Zhihu Column Article Detail
[中文] ### 用途: - 获取知乎专栏文章详情 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏文章详情 # [English] ### Purpose: - Get Zhihu Column Article Detail ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Article Detail # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet_0(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnArticleDetailApiV1ZhihuWebFetchColumnArticleDetailGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet(columnId, limit, offset)
获取知乎专栏文章列表/Get Zhihu Column Articles
[中文] ### 用途: - 获取知乎专栏文章列表 ### 参数: - column_id: 专栏ID - limit: 每页文章数量 - offset: 偏移量 ### 返回: - 知乎专栏文章列表 # [English] ### Purpose: - Get Zhihu Column Articles ### Parameters: - column_id: Column ID - limit: Number of articles per page - offset: Offset ### Returns: - Zhihu Column Articles # [示例/Example] column_id = "zhangjiawei" limit = "10" offset = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String columnId = "columnId_example"; // String | 专栏ID/Column ID
String limit = "\"10\""; // String | 每页文章数量/Number of articles per page
String offset = "\"0\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet(columnId, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
columnId | String | 专栏ID/Column ID | |
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "10"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet_0(columnId, limit, offset)
获取知乎专栏文章列表/Get Zhihu Column Articles
[中文] ### 用途: - 获取知乎专栏文章列表 ### 参数: - column_id: 专栏ID - limit: 每页文章数量 - offset: 偏移量 ### 返回: - 知乎专栏文章列表 # [English] ### Purpose: - Get Zhihu Column Articles ### Parameters: - column_id: Column ID - limit: Number of articles per page - offset: Offset ### Returns: - Zhihu Column Articles # [示例/Example] column_id = "zhangjiawei" limit = "10" offset = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String columnId = "columnId_example"; // String | 专栏ID/Column ID
String limit = "\"10\""; // String | 每页文章数量/Number of articles per page
String offset = "\"0\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet_0(columnId, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnArticlesApiV1ZhihuWebFetchColumnArticlesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
columnId | String | 专栏ID/Column ID | |
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "10"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet(articleId)
获取知乎专栏评论区配置/Get Zhihu Column Comment Config
[中文] ### 用途: - 获取知乎专栏评论区配置 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏评论区配置 # [English] ### Purpose: - Get Zhihu Column Comment Config ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Comment Config # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet_0(articleId)
获取知乎专栏评论区配置/Get Zhihu Column Comment Config
[中文] ### 用途: - 获取知乎专栏评论区配置 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏评论区配置 # [English] ### Purpose: - Get Zhihu Column Comment Config ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Comment Config # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet_0(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnCommentConfigApiV1ZhihuWebFetchColumnCommentConfigGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet(articleId, limit, offset)
获取知乎相似专栏推荐/Get Zhihu Similar Column Recommend
[中文] ### 用途: - 获取知乎相似专栏推荐 ### 参数: - article_id: 文章ID - limit: 每页专栏数量 - offset: 偏移量 ### 返回: - 知乎相似专栏推荐 # [English] ### Purpose: - Get Zhihu Similar Column Recommend ### Parameters: - article_id: Article ID - limit: Number of columns per page - offset: Offset ### Returns: - Zhihu Similar Column Recommend # [示例/Example] article_id = "669214677" limit = "12" offset = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
String limit = "\"12\""; // String | 每页专栏数量/Number of columns per page
String offset = "\"0\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet(articleId, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID | |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "12"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet_0(articleId, limit, offset)
获取知乎相似专栏推荐/Get Zhihu Similar Column Recommend
[中文] ### 用途: - 获取知乎相似专栏推荐 ### 参数: - article_id: 文章ID - limit: 每页专栏数量 - offset: 偏移量 ### 返回: - 知乎相似专栏推荐 # [English] ### Purpose: - Get Zhihu Similar Column Recommend ### Parameters: - article_id: Article ID - limit: Number of columns per page - offset: Offset ### Returns: - Zhihu Similar Column Recommend # [示例/Example] article_id = "669214677" limit = "12" offset = "0"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
String limit = "\"12\""; // String | 每页专栏数量/Number of columns per page
String offset = "\"0\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet_0(articleId, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnRecommendApiV1ZhihuWebFetchColumnRecommendGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID | |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "12"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet(articleId)
获取知乎专栏文章互动关系/Get Zhihu Column Article Relationship
[中文] ### 用途: - 获取知乎专栏文章互动关系 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏互动关系 # [English] ### Purpose: - Get Zhihu Column Relationship ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Relationship # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet_0(articleId)
获取知乎专栏文章互动关系/Get Zhihu Column Article Relationship
[中文] ### 用途: - 获取知乎专栏文章互动关系 ### 参数: - article_id: 文章ID ### 返回: - 知乎专栏互动关系 # [English] ### Purpose: - Get Zhihu Column Relationship ### Parameters: - article_id: Article ID ### Returns: - Zhihu Column Relationship # [示例/Example] article_id = "669214677"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String articleId = "articleId_example"; // String | 文章ID/Article ID
try {
ResponseModel result = apiInstance.fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet_0(articleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnRelationshipApiV1ZhihuWebFetchColumnRelationshipGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
articleId | String | 文章ID/Article ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get(keyword, offset, limit, searchHashId)
获取知乎专栏搜索V3/Get Zhihu Column Search V3
[中文] ### 用途: - 获取知乎专栏搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页专栏数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎专栏搜索V3 # [English] ### Purpose: - Get Zhihu Column Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of columns per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Column Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页专栏数量/Number of columns per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get_0(keyword, offset, limit, searchHashId)
获取知乎专栏搜索V3/Get Zhihu Column Search V3
[中文] ### 用途: - 获取知乎专栏搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页专栏数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎专栏搜索V3 # [English] ### Purpose: - Get Zhihu Column Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of columns per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Column Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页专栏数量/Number of columns per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get_0(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchColumnSearchV3ApiV1ZhihuWebFetchColumnSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get(answerId, orderBy, limit, offset)
获取知乎评论区V5/Get Zhihu Comment V5
[中文] ### 用途: - 获取知乎评论区V5 ### 参数: - answer_id: 回答ID - order_by: 排序 - score 最热排序 - ts 最新排序 - limit: 每页评论数量 - offset: 偏移量/页码 ### 返回: - 知乎评论区V5 # [English] ### Purpose: - Get Zhihu Comment V5 ### Parameters: - answer_id: Answer ID - order_by: Sort - score Hottest Sort - ts Latest Sort - limit: Number of comments per page - offset: Offset/Page Number ### Returns: - Zhihu Comment V5 # [示例/Example] answer_id = "89226347214" order_by = "score" limit = "20" offset = "" # 1739257701_11108372663_0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String answerId = "answerId_example"; // String | 回答ID/Answer ID
String orderBy = "\"score\""; // String | 排序/Sort
String limit = "\"20\""; // String | 每页评论数量/Number of comments per page
String offset = "\"\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get(answerId, orderBy, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
answerId | String | 回答ID/Answer ID | |
orderBy | String | 排序/Sort | [optional] [default to "score"] |
limit | String | 每页评论数量/Number of comments per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get_0(answerId, orderBy, limit, offset)
获取知乎评论区V5/Get Zhihu Comment V5
[中文] ### 用途: - 获取知乎评论区V5 ### 参数: - answer_id: 回答ID - order_by: 排序 - score 最热排序 - ts 最新排序 - limit: 每页评论数量 - offset: 偏移量/页码 ### 返回: - 知乎评论区V5 # [English] ### Purpose: - Get Zhihu Comment V5 ### Parameters: - answer_id: Answer ID - order_by: Sort - score Hottest Sort - ts Latest Sort - limit: Number of comments per page - offset: Offset/Page Number ### Returns: - Zhihu Comment V5 # [示例/Example] answer_id = "89226347214" order_by = "score" limit = "20" offset = "" # 1739257701_11108372663_0
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String answerId = "answerId_example"; // String | 回答ID/Answer ID
String orderBy = "\"score\""; // String | 排序/Sort
String limit = "\"20\""; // String | 每页评论数量/Number of comments per page
String offset = "\"\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get_0(answerId, orderBy, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchCommentV5ApiV1ZhihuWebFetchCommentV5Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
answerId | String | 回答ID/Answer ID | |
orderBy | String | 排序/Sort | [optional] [default to "score"] |
limit | String | 每页评论数量/Number of comments per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get(keyword, offset, limit, searchHashId)
获取知乎电子书搜索V3/Get Zhihu Ebook Search V3
[中文] ### 用途: - 获取知乎电子书搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页电子书数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎电子书搜索V3 # [English] ### Purpose: - Get Zhihu Ebook Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of ebooks per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Ebook Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页电子书数量/Number of ebooks per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页电子书数量/Number of ebooks per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get_0(keyword, offset, limit, searchHashId)
获取知乎电子书搜索V3/Get Zhihu Ebook Search V3
[中文] ### 用途: - 获取知乎电子书搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页电子书数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎电子书搜索V3 # [English] ### Purpose: - Get Zhihu Ebook Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of ebooks per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Ebook Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页电子书数量/Number of ebooks per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get_0(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchEbookSearchV3ApiV1ZhihuWebFetchEbookSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页电子书数量/Number of ebooks per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotListApiV1ZhihuWebFetchHotListGet(limit, desktop)
获取知乎首页热榜/Get Zhihu Hot List
[中文] ### 用途: - 获取知乎首页热榜 ### 参数: - limit: 每页文章数量 - desktop: 是否为桌面端 ### 返回: - 知乎首页热榜 # [English] ### Purpose: - Get Zhihu Hot List ### Parameters: - limit: Number of articles per page - desktop: Is it a desktop ### Returns: - Zhihu Hot List # [示例/Example] limit = "50" desktop = "true"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String limit = "\"50\""; // String | 每页文章数量/Number of articles per page
String desktop = "\"true\""; // String | 是否为桌面端/Is it a desktop
try {
ResponseModel result = apiInstance.fetchHotListApiV1ZhihuWebFetchHotListGet(limit, desktop);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchHotListApiV1ZhihuWebFetchHotListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "50"] |
desktop | String | 是否为桌面端/Is it a desktop | [optional] [default to "true"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotListApiV1ZhihuWebFetchHotListGet_0(limit, desktop)
获取知乎首页热榜/Get Zhihu Hot List
[中文] ### 用途: - 获取知乎首页热榜 ### 参数: - limit: 每页文章数量 - desktop: 是否为桌面端 ### 返回: - 知乎首页热榜 # [English] ### Purpose: - Get Zhihu Hot List ### Parameters: - limit: Number of articles per page - desktop: Is it a desktop ### Returns: - Zhihu Hot List # [示例/Example] limit = "50" desktop = "true"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String limit = "\"50\""; // String | 每页文章数量/Number of articles per page
String desktop = "\"true\""; // String | 是否为桌面端/Is it a desktop
try {
ResponseModel result = apiInstance.fetchHotListApiV1ZhihuWebFetchHotListGet_0(limit, desktop);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchHotListApiV1ZhihuWebFetchHotListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | String | 每页文章数量/Number of articles per page | [optional] [default to "50"] |
desktop | String | 是否为桌面端/Is it a desktop | [optional] [default to "true"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet(offset, pageNumber, sessionToken)
获取知乎首页推荐/Get Zhihu Hot Recommend
[中文] ### 用途: - 获取知乎首页推荐 ### 参数: - offset: 偏移量 - page_number: 页码 - session_token: 会话令牌 ### 返回: - 知乎首页推荐 # [English] ### Purpose: - Get Zhihu Hot Recommend ### Parameters: - offset: Offset - page_number: Page Number - session_token: Session Token # [示例/Example] offset = "0" page_number = "1" session_token = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String offset = "\"0\""; // String | 偏移量/Offset
String pageNumber = "\"1\""; // String | 页码/Page Number
String sessionToken = "\"\""; // String | 会话令牌/Session Token
try {
ResponseModel result = apiInstance.fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet(offset, pageNumber, sessionToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | String | 偏移量/Offset | [optional] [default to "0"] |
pageNumber | String | 页码/Page Number | [optional] [default to "1"] |
sessionToken | String | 会话令牌/Session Token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet_0(offset, pageNumber, sessionToken)
获取知乎首页推荐/Get Zhihu Hot Recommend
[中文] ### 用途: - 获取知乎首页推荐 ### 参数: - offset: 偏移量 - page_number: 页码 - session_token: 会话令牌 ### 返回: - 知乎首页推荐 # [English] ### Purpose: - Get Zhihu Hot Recommend ### Parameters: - offset: Offset - page_number: Page Number - session_token: Session Token # [示例/Example] offset = "0" page_number = "1" session_token = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String offset = "\"0\""; // String | 偏移量/Offset
String pageNumber = "\"1\""; // String | 页码/Page Number
String sessionToken = "\"\""; // String | 会话令牌/Session Token
try {
ResponseModel result = apiInstance.fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet_0(offset, pageNumber, sessionToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchHotRecommendApiV1ZhihuWebFetchHotRecommendGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | String | 偏移量/Offset | [optional] [default to "0"] |
pageNumber | String | 页码/Page Number | [optional] [default to "1"] |
sessionToken | String | 会话令牌/Session Token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet()
获取知乎搜索预设词/Get Zhihu Preset Search
[中文] ### 用途: - 获取知乎搜索预设词 ### 参数: - 无 ### 返回: - 知乎搜索预设词 # [English] ### Purpose: - Get Zhihu Preset Search ### Parameters: - None ### Returns: - Zhihu Preset Search
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet_0()
获取知乎搜索预设词/Get Zhihu Preset Search
[中文] ### 用途: - 获取知乎搜索预设词 ### 参数: - 无 ### 返回: - 知乎搜索预设词 # [English] ### Purpose: - Get Zhihu Preset Search ### Parameters: - None ### Returns: - Zhihu Preset Search
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchPresetSearchApiV1ZhihuWebFetchPresetSearchGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet()
获取知乎推荐关注列表/Get Zhihu Recommend Followees
[中文] ### 用途: - 获取知乎推荐关注列表 ### 参数: - 无 ### 返回: - 知乎推荐关注列表 # [English] ### Purpose: - Get Zhihu Recommend Followees ### Parameters: - None ### Returns: - Zhihu Recommend Followees
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet_0()
获取知乎推荐关注列表/Get Zhihu Recommend Followees
[中文] ### 用途: - 获取知乎推荐关注列表 ### 参数: - 无 ### 返回: - 知乎推荐关注列表 # [English] ### Purpose: - Get Zhihu Recommend Followees ### Parameters: - None ### Returns: - Zhihu Recommend Followees
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchRecommendFolloweesApiV1ZhihuWebFetchRecommendFolloweesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get(keyword, offset, limit, searchHashId)
获取知乎盐选内容搜索V3/Get Zhihu Salt Search V3
[中文] ### 用途: - 获取知乎盐选内容搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页内容数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎盐选内容搜索V3 # [English] ### Purpose: - Get Zhihu Salt Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of contents per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Salt Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页内容数量/Number of contents per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页内容数量/Number of contents per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get_0(keyword, offset, limit, searchHashId)
获取知乎盐选内容搜索V3/Get Zhihu Salt Search V3
[中文] ### 用途: - 获取知乎盐选内容搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页内容数量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎盐选内容搜索V3 # [English] ### Purpose: - Get Zhihu Salt Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of contents per page - search_hash_id: Search Hash ID ### Returns: - Zhihu Salt Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页内容数量/Number of contents per page
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get_0(keyword, offset, limit, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSaltSearchV3ApiV1ZhihuWebFetchSaltSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页内容数量/Number of contents per page | [optional] [default to "20"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post(keyword, offset, limit, body)
获取知乎论文搜索V3/Get Zhihu Scholar Search V3
[中文] ### 用途: - 获取知乎论文搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页论文数量 - filter_fields: 过滤字段 ### 返回: - 知乎论文搜索V3 # [English] ### Purpose: - Get Zhihu Scholar Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of papers per page - filter_fields: Filter Fields ### Returns: - Zhihu Scholar Search V3 # [示例/Example] keyword = "人工智能" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页论文数量/Number of papers per page
Object body = null; // Object |
try {
ResponseModel result = apiInstance.fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post(keyword, offset, limit, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页论文数量/Number of papers per page | [optional] [default to "25"] |
body | Object | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post_0(keyword, offset, limit, body)
获取知乎论文搜索V3/Get Zhihu Scholar Search V3
[中文] ### 用途: - 获取知乎论文搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页论文数量 - filter_fields: 过滤字段 ### 返回: - 知乎论文搜索V3 # [English] ### Purpose: - Get Zhihu Scholar Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of papers per page - filter_fields: Filter Fields ### Returns: - Zhihu Scholar Search V3 # [示例/Example] keyword = "人工智能" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页论文数量/Number of papers per page
Object body = null; // Object |
try {
ResponseModel result = apiInstance.fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post_0(keyword, offset, limit, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchScholarSearchV3ApiV1ZhihuWebFetchScholarSearchV3Post_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页论文数量/Number of papers per page | [optional] [default to "25"] |
body | Object | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet()
获取知乎搜索发现/Get Zhihu Search Recommend
[中文] ### 用途: - 获取知乎搜索发现 ### 参数: - 无 ### 返回: - 知乎搜索发现 # [English] ### Purpose: - Get Zhihu Search Recommend ### Parameters: - None ### Returns: - Zhihu Search Recommend
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet_0()
获取知乎搜索发现/Get Zhihu Search Recommend
[中文] ### 用途: - 获取知乎搜索发现 ### 参数: - 无 ### 返回: - 知乎搜索发现 # [English] ### Purpose: - Get Zhihu Search Recommend ### Parameters: - None ### Returns: - Zhihu Search Recommend
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSearchRecommendApiV1ZhihuWebFetchSearchRecommendGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet(keyword)
知乎搜索预测词/Get Zhihu Search Suggest
[中文] ### 用途: - 知乎搜索预测词 ### 参数: - keyword: 搜索关键词 ### 返回: - 知乎搜索预测词 # [English] ### Purpose: - Get Zhihu Search Suggest ### Parameters: - keyword: Search Keywords ### Returns: - Zhihu Search Suggest # [示例/Example] keyword = "deepseek"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
try {
ResponseModel result = apiInstance.fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet(keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet_0(keyword)
知乎搜索预测词/Get Zhihu Search Suggest
[中文] ### 用途: - 知乎搜索预测词 ### 参数: - keyword: 搜索关键词 ### 返回: - 知乎搜索预测词 # [English] ### Purpose: - Get Zhihu Search Suggest ### Parameters: - keyword: Search Keywords ### Returns: - Zhihu Search Suggest # [示例/Example] keyword = "deepseek"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
try {
ResponseModel result = apiInstance.fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet_0(keyword);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSearchSuggestApiV1ZhihuWebFetchSearchSuggestGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get(commentId, orderBy, limit, offset)
获取知乎子评论区V5/Get Zhihu Sub Comment V5
[中文] ### 用途: - 获取知乎子评论区V5 ### 参数: - comment_id: 评论ID - order_by: 排序 - score 最热排序 - ts 最新排序 - limit: 每页评论数量 - offset: 偏移量/页码 ### 返回: - 知乎子评论区V5 # [English] ### Purpose: - Get Zhihu Sub Comment V5 ### Parameters: - comment_id: Comment ID - order_by: Sort - score Hottest Sort - ts Latest Sort - limit: Number of comments per page - offset: Offset/Page Number ### Returns: - Zhihu Sub Comment V5 # [示例/Example] comment_id = "11100789728" order_by = "score" limit = "20" offset = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String commentId = "commentId_example"; // String | 评论ID/Comment ID
String orderBy = "\"score\""; // String | 排序/Sort
String limit = "\"20\""; // String | 每页评论数量/Number of comments per page
String offset = "\"\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get(commentId, orderBy, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
commentId | String | 评论ID/Comment ID | |
orderBy | String | 排序/Sort | [optional] [default to "score"] |
limit | String | 每页评论数量/Number of comments per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get_0(commentId, orderBy, limit, offset)
获取知乎子评论区V5/Get Zhihu Sub Comment V5
[中文] ### 用途: - 获取知乎子评论区V5 ### 参数: - comment_id: 评论ID - order_by: 排序 - score 最热排序 - ts 最新排序 - limit: 每页评论数量 - offset: 偏移量/页码 ### 返回: - 知乎子评论区V5 # [English] ### Purpose: - Get Zhihu Sub Comment V5 ### Parameters: - comment_id: Comment ID - order_by: Sort - score Hottest Sort - ts Latest Sort - limit: Number of comments per page - offset: Offset/Page Number ### Returns: - Zhihu Sub Comment V5 # [示例/Example] comment_id = "11100789728" order_by = "score" limit = "20" offset = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String commentId = "commentId_example"; // String | 评论ID/Comment ID
String orderBy = "\"score\""; // String | 排序/Sort
String limit = "\"20\""; // String | 每页评论数量/Number of comments per page
String offset = "\"\""; // String | 偏移量/Offset
try {
ResponseModel result = apiInstance.fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get_0(commentId, orderBy, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchSubCommentV5ApiV1ZhihuWebFetchSubCommentV5Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
commentId | String | 评论ID/Comment ID | |
orderBy | String | 排序/Sort | [optional] [default to "score"] |
limit | String | 每页评论数量/Number of comments per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get(keyword, offset, limit)
获取知乎话题搜索V3/Get Zhihu Topic Search V3
[中文] ### 用途: - 获取知乎话题搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页话题数量 ### 返回: - 知乎话题搜索V3 # [English] ### Purpose: - Get Zhihu Topic Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of topics per page ### Returns: - Zhihu Topic Search V3 # [示例/Example] keyword = "deepseek" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页话题数量/Number of topics per page
try {
ResponseModel result = apiInstance.fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get(keyword, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页话题数量/Number of topics per page | [optional] [default to "25"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get_0(keyword, offset, limit)
获取知乎话题搜索V3/Get Zhihu Topic Search V3
[中文] ### 用途: - 获取知乎话题搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页话题数量 ### 返回: - 知乎话题搜索V3 # [English] ### Purpose: - Get Zhihu Topic Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of topics per page ### Returns: - Zhihu Topic Search V3 # [示例/Example] keyword = "deepseek" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页话题数量/Number of topics per page
try {
ResponseModel result = apiInstance.fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get_0(keyword, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchTopicSearchV3ApiV1ZhihuWebFetchTopicSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页话题数量/Number of topics per page | [optional] [default to "25"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet(userUrlToken, offset, limit)
获取知乎用户关注的收藏/Get Zhihu User Follow Collections
[中文] ### 用途: - 获取知乎用户关注的收藏 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页收藏数量 ### 返回: - 知乎用户关注的收藏 # [English] ### Purpose: - Get Zhihu User Follow Collections ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of collections per page ### Returns: - Zhihu User Follow Collections # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页收藏数量/Number of collections per page
try {
ResponseModel result = apiInstance.fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页收藏数量/Number of collections per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet_0(userUrlToken, offset, limit)
获取知乎用户关注的收藏/Get Zhihu User Follow Collections
[中文] ### 用途: - 获取知乎用户关注的收藏 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页收藏数量 ### 返回: - 知乎用户关注的收藏 # [English] ### Purpose: - Get Zhihu User Follow Collections ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of collections per page ### Returns: - Zhihu User Follow Collections # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页收藏数量/Number of collections per page
try {
ResponseModel result = apiInstance.fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowCollectionsApiV1ZhihuWebFetchUserFollowCollectionsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页收藏数量/Number of collections per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet(userUrlToken, offset, limit)
获取知乎用户订阅的专栏/Get Zhihu User Columns
[中文] ### 用途: - 获取知乎用户订阅的专栏 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页专栏数量 ### 返回: - 知乎用户订阅的专栏 # [English] ### Purpose: - Get Zhihu User Columns ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of columns per page ### Returns: - Zhihu User Columns # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页专栏数量/Number of columns per page
try {
ResponseModel result = apiInstance.fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet_0(userUrlToken, offset, limit)
获取知乎用户订阅的专栏/Get Zhihu User Columns
[中文] ### 用途: - 获取知乎用户订阅的专栏 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页专栏数量 ### 返回: - 知乎用户订阅的专栏 # [English] ### Purpose: - Get Zhihu User Columns ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of columns per page ### Returns: - Zhihu User Columns # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页专栏数量/Number of columns per page
try {
ResponseModel result = apiInstance.fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowColumnsApiV1ZhihuWebFetchUserFollowColumnsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页专栏数量/Number of columns per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet(userUrlToken, offset, limit)
获取知乎用户关注的问题/Get Zhihu User Follow Questions
[中文] ### 用途: - 获取知乎用户关注的问题 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页问题数量 ### 返回: - 知乎用户关注的问题 # [English] ### Purpose: - Get Zhihu User Follow Questions ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of questions per page ### Returns: - Zhihu User Follow Questions # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页问题数量/Number of questions per page
try {
ResponseModel result = apiInstance.fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页问题数量/Number of questions per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet_0(userUrlToken, offset, limit)
获取知乎用户关注的问题/Get Zhihu User Follow Questions
[中文] ### 用途: - 获取知乎用户关注的问题 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页问题数量 ### 返回: - 知乎用户关注的问题 # [English] ### Purpose: - Get Zhihu User Follow Questions ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of questions per page ### Returns: - Zhihu User Follow Questions # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页问题数量/Number of questions per page
try {
ResponseModel result = apiInstance.fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowQuestionsApiV1ZhihuWebFetchUserFollowQuestionsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页问题数量/Number of questions per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet(userUrlToken, offset, limit)
获取知乎用户关注的话题/Get Zhihu User Follow Topics
[中文] ### 用途: - 获取知乎用户关注的话题 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页话题数量 ### 返回: - 知乎用户关注的话题 # [English] ### Purpose: - Get Zhihu User Follow Topics ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of topics per page ### Returns: - Zhihu User Follow Topics # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页话题数量/Number of topics per page
try {
ResponseModel result = apiInstance.fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页话题数量/Number of topics per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet_0(userUrlToken, offset, limit)
获取知乎用户关注的话题/Get Zhihu User Follow Topics
[中文] ### 用途: - 获取知乎用户关注的话题 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页话题数量 ### 返回: - 知乎用户关注的话题 # [English] ### Purpose: - Get Zhihu User Follow Topics ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of topics per page ### Returns: - Zhihu User Follow Topics # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页话题数量/Number of topics per page
try {
ResponseModel result = apiInstance.fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowTopicsApiV1ZhihuWebFetchUserFollowTopicsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页话题数量/Number of topics per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet(userUrlToken, offset, limit)
获取知乎用户关注列表/Get Zhihu User Following
[中文] ### 用途: - 获取知乎用户关注列表 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户关注列表 # [English] ### Purpose: - Get Zhihu User Following ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Following # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet_0(userUrlToken, offset, limit)
获取知乎用户关注列表/Get Zhihu User Following
[中文] ### 用途: - 获取知乎用户关注列表 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户关注列表 # [English] ### Purpose: - Get Zhihu User Following ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Following # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFolloweesApiV1ZhihuWebFetchUserFolloweesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet(userUrlToken, offset, limit)
获取知乎用户粉丝列表/Get Zhihu User Followers
[中文] ### 用途: - 获取知乎用户粉丝列表 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户粉丝列表 # [English] ### Purpose: - Get Zhihu User Followers ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Followers # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet_0(userUrlToken, offset, limit)
获取知乎用户粉丝列表/Get Zhihu User Followers
[中文] ### 用途: - 获取知乎用户粉丝列表 ### 参数: - user_url_token: 用户ID - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户粉丝列表 # [English] ### Purpose: - Get Zhihu User Followers ### Parameters: - user_url_token: User ID - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Followers # [示例/Example] user_url_token = "ming-he-43-93" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"20\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet_0(userUrlToken, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserFollowersApiV1ZhihuWebFetchUserFollowersGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "20"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserInfoApiV1ZhihuWebFetchUserInfoGet(userUrlToken)
获取知乎用户信息/Get Zhihu User Info
[中文] ### 用途: - 获取知乎用户信息 ### 参数: - user_url_token: 用户ID ### 返回: - 知乎用户信息 # [English] ### Purpose: - Get Zhihu User Info ### Parameters: - user_url_token: User ID ### Returns: - Zhihu User Info # [示例/Example] user_url_token = "ming-he-43-93"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
try {
ResponseModel result = apiInstance.fetchUserInfoApiV1ZhihuWebFetchUserInfoGet(userUrlToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserInfoApiV1ZhihuWebFetchUserInfoGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserInfoApiV1ZhihuWebFetchUserInfoGet_0(userUrlToken)
获取知乎用户信息/Get Zhihu User Info
[中文] ### 用途: - 获取知乎用户信息 ### 参数: - user_url_token: 用户ID ### 返回: - 知乎用户信息 # [English] ### Purpose: - Get Zhihu User Info ### Parameters: - user_url_token: User ID ### Returns: - Zhihu User Info # [示例/Example] user_url_token = "ming-he-43-93"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String userUrlToken = "userUrlToken_example"; // String | 用户ID/User ID
try {
ResponseModel result = apiInstance.fetchUserInfoApiV1ZhihuWebFetchUserInfoGet_0(userUrlToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserInfoApiV1ZhihuWebFetchUserInfoGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userUrlToken | String | 用户ID/User ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get(keyword, offset, limit)
获取知乎用户搜索V3/Get Zhihu User Search V3
[中文] ### 用途: - 获取知乎用户搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户搜索V3 # [English] ### Purpose: - Get Zhihu User Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Search V3 # [示例/Example] keyword = "deepseek" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get(keyword, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "25"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get_0(keyword, offset, limit)
获取知乎用户搜索V3/Get Zhihu User Search V3
[中文] ### 用途: - 获取知乎用户搜索V3 ### 参数: - keyword: 搜索关键词 - offset: 偏移量 - limit: 每页用户数量 ### 返回: - 知乎用户搜索V3 # [English] ### Purpose: - Get Zhihu User Search V3 ### Parameters: - keyword: Search Keywords - offset: Offset - limit: Number of users per page ### Returns: - Zhihu User Search V3 # [示例/Example] keyword = "deepseek" offset = "0" limit = "25"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"25\""; // String | 每页用户数量/Number of users per page
try {
ResponseModel result = apiInstance.fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get_0(keyword, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchUserSearchV3ApiV1ZhihuWebFetchUserSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页用户数量/Number of users per page | [optional] [default to "25"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoListApiV1ZhihuWebFetchVideoListGet(offset, limit)
获取知乎首页视频榜/Get Zhihu Video List
[中文] ### 用途: - 获取知乎首页视频榜 ### 参数: - offset: 偏移量 - limit: 每页视频数量 ### 返回: - 知乎首页视频榜 # [English] ### Purpose: - Get Zhihu Video List ### Parameters: - offset: Offset - limit: Number of videos per page ### Returns: - Zhihu Video List # [示例/Example] offset = "" limit = "12"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"12\""; // String | 每页视频数量/Number of videos per page
try {
ResponseModel result = apiInstance.fetchVideoListApiV1ZhihuWebFetchVideoListGet(offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchVideoListApiV1ZhihuWebFetchVideoListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页视频数量/Number of videos per page | [optional] [default to "12"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoListApiV1ZhihuWebFetchVideoListGet_0(offset, limit)
获取知乎首页视频榜/Get Zhihu Video List
[中文] ### 用途: - 获取知乎首页视频榜 ### 参数: - offset: 偏移量 - limit: 每页视频数量 ### 返回: - 知乎首页视频榜 # [English] ### Purpose: - Get Zhihu Video List ### Parameters: - offset: Offset - limit: Number of videos per page ### Returns: - Zhihu Video List # [示例/Example] offset = "" limit = "12"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String offset = "\"0\""; // String | 偏移量/Offset
String limit = "\"12\""; // String | 每页视频数量/Number of videos per page
try {
ResponseModel result = apiInstance.fetchVideoListApiV1ZhihuWebFetchVideoListGet_0(offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchVideoListApiV1ZhihuWebFetchVideoListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
offset | String | 偏移量/Offset | [optional] [default to "0"] |
limit | String | 每页视频数量/Number of videos per page | [optional] [default to "12"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get(keyword, limit, offset, searchHashId)
获取知乎视频搜索V3/Get Zhihu Video Search V3
[中文] ### 用途: - 获取知乎视频搜索V3 ### 参数: - keyword: 搜索关键词 - limit: 每页视频数量 - offset: 偏移量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎视频搜索V3 # [English] ### Purpose: - Get Zhihu Video Search V3 ### Parameters: - keyword: Search Keywords - limit: Number of videos per page - offset: Offset - search_hash_id: Search Hash ID ### Returns: - Zhihu Video Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String limit = "\"20\""; // String | 每页视频数量/Number of videos per page
String offset = "\"0\""; // String | 偏移量/Offset
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get(keyword, limit, offset, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
limit | String | 每页视频数量/Number of videos per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get_0(keyword, limit, offset, searchHashId)
获取知乎视频搜索V3/Get Zhihu Video Search V3
[中文] ### 用途: - 获取知乎视频搜索V3 ### 参数: - keyword: 搜索关键词 - limit: 每页视频数量 - offset: 偏移量 - search_hash_id: 搜索哈希ID ### 返回: - 知乎视频搜索V3 # [English] ### Purpose: - Get Zhihu Video Search V3 ### Parameters: - keyword: Search Keywords - limit: Number of videos per page - offset: Offset - search_hash_id: Search Hash ID ### Returns: - Zhihu Video Search V3 # [示例/Example] keyword = "deepseek" limit = "20" offset = "0" search_hash_id = ""
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.ZhihuWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
ZhihuWebApiApi apiInstance = new ZhihuWebApiApi(defaultClient);
String keyword = "keyword_example"; // String | 搜索关键词/Search Keywords
String limit = "\"20\""; // String | 每页视频数量/Number of videos per page
String offset = "\"0\""; // String | 偏移量/Offset
String searchHashId = "\"\""; // String | 搜索哈希ID/Search Hash ID
try {
ResponseModel result = apiInstance.fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get_0(keyword, limit, offset, searchHashId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ZhihuWebApiApi#fetchVideoSearchV3ApiV1ZhihuWebFetchVideoSearchV3Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键词/Search Keywords | |
limit | String | 每页视频数量/Number of videos per page | [optional] [default to "20"] |
offset | String | 偏移量/Offset | [optional] [default to "0"] |
searchHashId | String | 搜索哈希ID/Search Hash ID | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |