# YouTube comments posted in the last week

**Use case:** 

Recent comments only, sorted newest first and cut to the last seven days. YouTube never returns a real date for a comment, only text such as 5 days ago, so this uses the approximate number of days derived from that text and says so in the column name. Comments whose text cannot be read are kept rather than thrown away, so nothing disappears silently.

## Input

```json
{
  "videoUrls": [
    "https://www.youtube.com/watch?v=psuRGfAaju4"
  ],
  "maxCommentsPerVideo": 60,
  "maxRecords": 40,
  "sortBy": "newest",
  "includeReplies": false,
  "maxRepliesPerComment": 10,
  "keywords": [],
  "keywordMatch": "any",
  "excludeKeywords": [],
  "minLikes": 0,
  "onlyVerifiedAuthors": false,
  "postedWithinDays": 7,
  "monitoringMode": false,
  "resetMonitoringState": false,
  "maxRequests": 60,
  "useProxy": false
}
```

## Output

```json
{
  "text": {
    "label": "Text",
    "format": "string"
  },
  "authorName": {
    "label": "Author Name",
    "format": "string"
  },
  "likeCountText": {
    "label": "Like Count Text",
    "format": "string"
  },
  "likeCount": {
    "label": "Like Count",
    "format": "string"
  },
  "likeCountIsExact": {
    "label": "Like Count Is Exact",
    "format": "string"
  },
  "replyCount": {
    "label": "Reply Count",
    "format": "string"
  },
  "publishedTimeText": {
    "label": "Published Time Text",
    "format": "string"
  },
  "isPinned": {
    "label": "Is Pinned",
    "format": "string"
  },
  "hasCreatorHeart": {
    "label": "Has Creator Heart",
    "format": "string"
  },
  "isReply": {
    "label": "Is Reply",
    "format": "string"
  },
  "videoTitle": {
    "label": "Video Title",
    "format": "string"
  },
  "commentUrl": {
    "label": "Comment Url",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "videoId": {
    "label": "Video Id",
    "format": "string"
  },
  "videoUrl": {
    "label": "Video Url",
    "format": "string"
  },
  "note": {
    "label": "Note",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "string"
  },
  "videoCommentCountText": {
    "label": "Video Comment Count Text",
    "format": "string"
  },
  "videoCommentCount": {
    "label": "Video Comment Count",
    "format": "string"
  },
  "sortedBy": {
    "label": "Sorted By",
    "format": "string"
  },
  "page": {
    "label": "Page",
    "format": "string"
  },
  "rank": {
    "label": "Rank",
    "format": "string"
  },
  "commentId": {
    "label": "Comment Id",
    "format": "string"
  },
  "parentCommentId": {
    "label": "Parent Comment Id",
    "format": "string"
  },
  "replyLevel": {
    "label": "Reply Level",
    "format": "string"
  },
  "textLength": {
    "label": "Text Length",
    "format": "string"
  },
  "authorChannelId": {
    "label": "Author Channel Id",
    "format": "string"
  },
  "authorChannelUrl": {
    "label": "Author Channel Url",
    "format": "string"
  },
  "authorIsVerified": {
    "label": "Author Is Verified",
    "format": "string"
  },
  "authorIsArtist": {
    "label": "Author Is Artist",
    "format": "string"
  },
  "authorIsChannelOwner": {
    "label": "Author Is Channel Owner",
    "format": "string"
  },
  "authorAvatarUrl": {
    "label": "Author Avatar Url",
    "format": "string"
  },
  "replyCountText": {
    "label": "Reply Count Text",
    "format": "string"
  },
  "publishedApproxDaysAgo": {
    "label": "Published Approx Days Ago",
    "format": "string"
  },
  "isEdited": {
    "label": "Is Edited",
    "format": "string"
  },
  "pinnedText": {
    "label": "Pinned Text",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Comments Scraper - Comments, Replies, Likes & Authors](https://apify.com/neverempty/youtube-comments-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/youtube-comments-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/neverempty/youtube-comments-scraper.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
