@getanyapi/sdk 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +58 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +179 -1
- package/dist/index.d.ts +179 -1
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5903,6 +5903,64 @@ var TwitterNamespace = class {
|
|
|
5903
5903
|
options
|
|
5904
5904
|
);
|
|
5905
5905
|
}
|
|
5906
|
+
/**
|
|
5907
|
+
* X / Twitter Community Search
|
|
5908
|
+
*
|
|
5909
|
+
* Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.
|
|
5910
|
+
*
|
|
5911
|
+
* Price: $0.00018 per request plus $0.00018 per result (maximum $0.00198).
|
|
5912
|
+
*
|
|
5913
|
+
* @example
|
|
5914
|
+
* const res = await client.twitter.searchCommunities({ query: "artificial intelligence" });
|
|
5915
|
+
*/
|
|
5916
|
+
searchCommunities(input, options) {
|
|
5917
|
+
return this._core.run("twitter.search_communities", input, options);
|
|
5918
|
+
}
|
|
5919
|
+
/**
|
|
5920
|
+
* Iterate every result of X / Twitter Community Search across pages.
|
|
5921
|
+
*
|
|
5922
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5923
|
+
* result pages instead (each carries its own costUsd).
|
|
5924
|
+
*/
|
|
5925
|
+
iterSearchCommunities(input, options) {
|
|
5926
|
+
return paginate(
|
|
5927
|
+
this._core,
|
|
5928
|
+
"twitter.search_communities",
|
|
5929
|
+
input,
|
|
5930
|
+
"communities",
|
|
5931
|
+
false,
|
|
5932
|
+
options
|
|
5933
|
+
);
|
|
5934
|
+
}
|
|
5935
|
+
/**
|
|
5936
|
+
* X / Twitter User Search
|
|
5937
|
+
*
|
|
5938
|
+
* Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
|
|
5939
|
+
*
|
|
5940
|
+
* Price: $0.00075 per request.
|
|
5941
|
+
*
|
|
5942
|
+
* @example
|
|
5943
|
+
* const res = await client.twitter.searchUsers({ query: "ai agents" });
|
|
5944
|
+
*/
|
|
5945
|
+
searchUsers(input, options) {
|
|
5946
|
+
return this._core.run("twitter.search_users", input, options);
|
|
5947
|
+
}
|
|
5948
|
+
/**
|
|
5949
|
+
* Iterate every result of X / Twitter User Search across pages.
|
|
5950
|
+
*
|
|
5951
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
5952
|
+
* result pages instead (each carries its own costUsd).
|
|
5953
|
+
*/
|
|
5954
|
+
iterSearchUsers(input, options) {
|
|
5955
|
+
return paginate(
|
|
5956
|
+
this._core,
|
|
5957
|
+
"twitter.search_users",
|
|
5958
|
+
input,
|
|
5959
|
+
"users",
|
|
5960
|
+
false,
|
|
5961
|
+
options
|
|
5962
|
+
);
|
|
5963
|
+
}
|
|
5906
5964
|
/**
|
|
5907
5965
|
* X / Twitter Tweet Thread
|
|
5908
5966
|
*
|