socialtap 1.506.29 → 1.507.29
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/README.md +1 -1
- package/dist/commands.js +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/resources.d.ts +10 -2
- package/dist/tooldefs.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
SocialTap is the social media scraper API for developers and AI agents. Send a public link, a handle or a search and get live data back in one schema. Failed requests are free.
|
|
6
6
|
|
|
7
7
|
The TypeScript SDK for the SocialTap API: a method for every endpoint, typed models and errors, retries and pagination.
|
|
8
|
-
Generated from the SocialTap catalog (version 1.
|
|
8
|
+
Generated from the SocialTap catalog (version 1.507.29). Docs: https://socialtap.dev/docs.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/dist/commands.js
CHANGED
|
@@ -2077,6 +2077,7 @@ export const COMMANDS = [
|
|
|
2077
2077
|
{ name: "sort", type: "string", required: false, description: "Order of the results. relevance (default): Reddit's best match. newest: newest posts first. popular: Reddit's Top order (highest score first). most_comments: Reddit's Comments order (most comments first). One of: relevance, newest, popular, most_comments. Default: relevance.", enum: ["relevance", "newest", "popular", "most_comments"] },
|
|
2078
2078
|
{ name: "since", type: "string", required: false, description: "Only items at or after this time: RFC 3339 (2026-10-01T12:00:00Z) or a date (2026-10-01, midnight UTC). On newest-first lists, paging stops when it is reached, so later pages are not fetched or charged. Reddit's own time filter (past hour, day, week, month or year) is applied when it covers since, so fewer pages are fetched; every page is then filtered by published_at, which is exact. On newest the walk stops at the first older post. Example: 2026-10-01" },
|
|
2079
2079
|
{ name: "until", type: "string", required: false, description: "Only items before this time (exclusive): RFC 3339 or a date (midnight UTC). Example: 2026-10-08" },
|
|
2080
|
+
{ name: "media", type: "string", required: false, description: "Only posts that carry media uploaded to Reddit: image (one image or GIF), video (a Reddit video), carousel (a gallery, several images in one post) or any (all three). Reddit's search applies the filter itself, so pages stay full and it works with subreddit, sort, since and until. query can't use site:, url: or self:yes with it. All posts when omitted. One of: image, video, carousel, any.", enum: ["image", "video", "carousel", "any"] },
|
|
2080
2081
|
{ name: "include_body", type: "boolean", required: false, description: "Also return each post's body (text, mentions) and its exact type, read from Reddit's search feed: a second upstream request per page, at the same price. Needs sort newest, popular or most_comments (the feed does not follow Reddit's relevance order)." },
|
|
2081
2082
|
{ name: "max_age", type: "integer", required: false, description: "Accept a cached response up to this many seconds old. Cache hits cost 0 credits. Omit to always fetch fresh. The Cache-Control: max-age=N request header is equivalent; max_age wins when both are sent. Minimum: 0." },
|
|
2082
2083
|
{ name: "fields", type: "string", required: false, description: "Return only these fields of each item: comma-separated paths in the schema's notation (id,text,metrics.view_count,segments[].text; a parent path keeps the whole object). Unknown paths are rejected. Applied after the cache, so it changes neither the price nor cache hits; page and meta are always returned whole." },
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** SDK version: 1.<contract facts>.<generator revision> (sdk/README.md). */
|
|
2
|
-
export declare const VERSION = "1.
|
|
2
|
+
export declare const VERSION = "1.507.29";
|
|
3
3
|
/** The production API origin. */
|
|
4
4
|
export declare const DEFAULT_BASE_URL = "https://socialtap.dev";
|
|
5
5
|
/** Environment variable the API key is read from. */
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by engine/cmd/gensdk (make gen) from catalog/catalog.gen.json; DO NOT EDIT.
|
|
2
2
|
/** SDK version: 1.<contract facts>.<generator revision> (sdk/README.md). */
|
|
3
|
-
export const VERSION = "1.
|
|
3
|
+
export const VERSION = "1.507.29";
|
|
4
4
|
/** The production API origin. */
|
|
5
5
|
export const DEFAULT_BASE_URL = "https://socialtap.dev";
|
|
6
6
|
/** Environment variable the API key is read from. */
|
package/dist/resources.d.ts
CHANGED
|
@@ -8389,6 +8389,13 @@ export interface RedditSearchPostsParams {
|
|
|
8389
8389
|
since?: string;
|
|
8390
8390
|
/** Only items before this time (exclusive): RFC 3339 or a date (midnight UTC). Example: 2026-10-08 */
|
|
8391
8391
|
until?: string;
|
|
8392
|
+
/**
|
|
8393
|
+
* Only posts that carry media uploaded to Reddit: image (one image or GIF), video (a Reddit video), carousel (a
|
|
8394
|
+
* gallery, several images in one post) or any (all three). Reddit's search applies the filter itself, so pages
|
|
8395
|
+
* stay full and it works with subreddit, sort, since and until. query can't use site:, url: or self:yes with it.
|
|
8396
|
+
* All posts when omitted. One of: image, video, carousel, any.
|
|
8397
|
+
*/
|
|
8398
|
+
media?: "image" | "video" | "carousel" | "any";
|
|
8392
8399
|
/**
|
|
8393
8400
|
* Also return each post's body (text, mentions) and its exact type, read from Reddit's search feed: a second
|
|
8394
8401
|
* upstream request per page, at the same price. Needs sort newest, popular or most_comments (the feed does not
|
|
@@ -8427,8 +8434,9 @@ export declare class RedditSearchPosts {
|
|
|
8427
8434
|
*
|
|
8428
8435
|
* Searches public Reddit posts by keyword, across Reddit or in one subreddit, sorted by best match, newest, top
|
|
8429
8436
|
* or most comments. Each has its link, title, time, exact score and comment count, author, subreddit, NSFW and
|
|
8430
|
-
* spoiler marks, preview image and every image of a gallery. Set
|
|
8431
|
-
* operators work as on Reddit: exact phrases, subreddit:,
|
|
8437
|
+
* spoiler marks, preview image and every image of a gallery. Set media to get only image, video or gallery
|
|
8438
|
+
* posts, and include_body for each post's text. Reddit's operators work as on Reddit: exact phrases, subreddit:,
|
|
8439
|
+
* author:, site: and title:.
|
|
8432
8440
|
*
|
|
8433
8441
|
* Cost per page: 1 credit. Failed requests and cache hits are free.
|
|
8434
8442
|
*
|
package/dist/tooldefs.js
CHANGED
|
@@ -742,9 +742,12 @@ export const TOOLS = [
|
|
|
742
742
|
"type": "string"
|
|
743
743
|
},
|
|
744
744
|
"media": {
|
|
745
|
-
"description": "Only for Facebook posts
|
|
745
|
+
"description": "Only for Facebook posts, Reddit posts. Differs by platform: find_endpoint gives each endpoint's.",
|
|
746
746
|
"enum": [
|
|
747
|
-
"video"
|
|
747
|
+
"video",
|
|
748
|
+
"image",
|
|
749
|
+
"carousel",
|
|
750
|
+
"any"
|
|
748
751
|
],
|
|
749
752
|
"type": "string"
|
|
750
753
|
},
|