-
Notifications
You must be signed in to change notification settings - Fork 4
docs(social): optional posts depth param on both social scrape endpoints
#258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b720585
c82213b
68fe330
be26ce7
639e32a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -538,7 +538,7 @@ | |||||
| }, | ||||||
| "/api/socials/{id}/scrape": { | ||||||
| "post": { | ||||||
| "description": "Trigger a social profile scraping job for a given social profile. Use the [Get Artist Socials](/api-reference/artists/socials) endpoint first to retrieve the social profile id values. The response returns Apify run metadata for polling status and retrieving results via the [Apify Scraper Results API](/api-reference/apify/scraper).", | ||||||
| "description": "Trigger a social profile scraping job for a given social profile. Use the [Get Artist Socials](/api-reference/artists/socials) endpoint first to retrieve the social profile id values. The response returns run metadata for polling status and retrieving results via the [Scraper Results API](/api-reference/apify/scraper).", | ||||||
| "parameters": [ | ||||||
| { | ||||||
| "name": "id", | ||||||
|
|
@@ -549,6 +549,18 @@ | |||||
| "type": "string", | ||||||
| "format": "uuid" | ||||||
| } | ||||||
| }, | ||||||
| { | ||||||
| "name": "posts", | ||||||
| "in": "query", | ||||||
| "description": "Maximum number of recent posts to include in the scrape dataset, with per-post engagement metrics. On X/Twitter this returns the account's latest `posts` timeline items — including retweets and replies — each with like, retweet, reply, quote, bookmark, and view counts. On YouTube the depth applies per content type, so the dataset contains up to `posts` videos plus `posts` Shorts, each with view, like, and comment counts. Other platforms ignore this parameter. When omitted, the scrape returns the legacy profile snapshot (a single latest item).", | ||||||
| "required": false, | ||||||
| "schema": { | ||||||
| "type": "integer", | ||||||
| "minimum": 1, | ||||||
| "maximum": 100 | ||||||
| }, | ||||||
| "example": 10 | ||||||
| } | ||||||
| ], | ||||||
| "responses": { | ||||||
|
|
@@ -1020,7 +1032,7 @@ | |||||
| "type": "object", | ||||||
| "additionalProperties": true | ||||||
| }, | ||||||
| "description": "Array of dataset items returned by the scraper. The structure of each item varies depending on the scraper type (Instagram Profile, Instagram Comments, etc.)", | ||||||
| "description": "Array of dataset items returned by the scraper. The structure of each item varies depending on the scraper type.", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The Prompt for AI agents
Suggested change
|
||||||
| "example": [ | ||||||
| { | ||||||
| "id": "123456789", | ||||||
|
|
@@ -1029,7 +1041,43 @@ | |||||
| "biography": "This is a sample biography", | ||||||
| "followersCount": 1000, | ||||||
| "followsCount": 500, | ||||||
| "profilePicUrl": "https://example.com/profile.jpg" | ||||||
| "profilePicUrl": "https://example.com/profile.jpg", | ||||||
| "latestPosts": [ | ||||||
| { | ||||||
| "shortCode": "AbCdEfGhIjK", | ||||||
| "type": "Video", | ||||||
| "caption": "Example reel caption", | ||||||
| "likesCount": 16, | ||||||
| "commentsCount": 4, | ||||||
| "videoViewCount": 56, | ||||||
| "timestamp": "2026-06-30T00:26:41.000Z" | ||||||
| } | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
| "type": "tweet", | ||||||
| "id": "1234567890123456789", | ||||||
| "url": "https://x.com/example_user/status/1234567890123456789", | ||||||
| "text": "Example tweet text", | ||||||
| "createdAt": "Wed Jul 01 17:38:08 +0000 2026", | ||||||
| "likeCount": 7, | ||||||
| "retweetCount": 2, | ||||||
| "replyCount": 1, | ||||||
| "quoteCount": 0, | ||||||
| "bookmarkCount": 1, | ||||||
| "viewCount": 258 | ||||||
| }, | ||||||
| { | ||||||
| "type": "video", | ||||||
| "id": "aBcDeFgHiJk", | ||||||
| "title": "Example Short", | ||||||
| "url": "https://www.youtube.com/watch?v=aBcDeFgHiJk", | ||||||
| "date": "2026-07-01T17:55:00.000Z", | ||||||
| "viewCount": 26, | ||||||
| "likes": 1, | ||||||
| "commentsCount": 0, | ||||||
| "duration": "00:00:45", | ||||||
| "channelUsername": "examplechannel" | ||||||
| } | ||||||
| ] | ||||||
| } | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.