@scrapecreators/cli 1.0.28 → 1.0.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.
@@ -8057,7 +8057,7 @@ export const apis = [
8057
8057
  method: "GET",
8058
8058
  description: "Search the LinkedIn Ad Library",
8059
8059
  fullDescription:
8060
- "Searches the LinkedIn Ad Library by company name, keyword, or companyId with optional country and date filters. Each ad includes id, description, headline, adType, advertiser, targeting details, image or video URLs, totalImpressions, and impressionsByCountry. Supports pagination via paginationToken.",
8060
+ "Searches the LinkedIn Ad Library by company name, keyword, or companyId with optional country and date filters. Custom date filtering requires both startDate and endDate. LinkedIn accepts dates from the date one year ago through yesterday. Each ad includes id, description, headline, adType, advertiser, targeting details, image or video URLs, totalImpressions, and impressionsByCountry. Date and impression fields are nullable when LinkedIn does not expose them on the public ad page. Supports pagination via paginationToken.",
8061
8061
  path: "/v1/linkedin/ads/search",
8062
8062
  sampleResponse: {
8063
8063
  success: true,
@@ -8157,15 +8157,17 @@ export const apis = [
8157
8157
  name: "startDate",
8158
8158
  type: "string",
8159
8159
  required: false,
8160
- description: "Start date to search for. Format: YYYY-MM-DD",
8161
- placeholder: "2024-01-01",
8160
+ description:
8161
+ "Start date in YYYY-MM-DD format. Must be used with endDate and cannot be earlier than the date one year ago.",
8162
+ placeholder: "2026-01-01",
8162
8163
  },
8163
8164
  {
8164
8165
  name: "endDate",
8165
8166
  type: "string",
8166
8167
  required: false,
8167
- description: "End date to search for. Format: YYYY-MM-DD",
8168
- placeholder: "2024-01-10",
8168
+ description:
8169
+ "End date in YYYY-MM-DD format. Must be used with startDate and cannot be today or a future date.",
8170
+ placeholder: "2026-09-01",
8169
8171
  },
8170
8172
  {
8171
8173
  name: "paginationToken",
@@ -8181,7 +8183,7 @@ export const apis = [
8181
8183
  method: "GET",
8182
8184
  description: "Get the details for an ad",
8183
8185
  fullDescription:
8184
- "Retrieves detailed information about a specific LinkedIn ad by URL. Returns id, description, headline, adType, advertiser, and targeting with language, location, and audience criteria. Also includes totalImpressions, impressionsByCountry, adDuration, startDate, and endDate.",
8186
+ "Retrieves detailed information about a specific LinkedIn ad by URL. Returns id, description, headline, adType, advertiser, and targeting with language, location, and audience criteria. Also includes totalImpressions, impressionsByCountry, adDuration, startDate, and endDate. Date and impression fields are nullable when LinkedIn does not expose them on the public ad page.",
8185
8187
  path: "/v1/linkedin/ad",
8186
8188
  params: [
8187
8189
  {
@@ -33877,7 +33879,7 @@ export const apis = [
33877
33879
  description:
33878
33880
  "Get products and other details from a creator's Amazon Shop page",
33879
33881
  fullDescription:
33880
- "Scrapes a creator's Amazon Shop page by URL, returning their storefront profile and product collections. Returns avatar, name, description, socials, and lists with title and itemCount. Also includes trendingPicks with price and discount, curations with title and postCount, and a pageToken. Pass that pageToken back with the same URL to retrieve the next page; video pages return videos with an id, title, thumbnail, and attached ASINs.",
33882
+ "Scrapes a creator's Amazon Shop page by URL, returning their storefront profile and product collections. The initial request also returns videos already embedded on the storefront page without requiring a pageToken. Videos include an id, title, thumbnail, and attached ASINs. Pass each returned pageToken back unchanged with the same shop URL. A paginated page can contain lists, videos, or both. Tokens are opaque: known values can begin with amzn1.ideas, amzn1.vse.video, or amzn1.shoppablemedia, but clients should not infer the response type from the prefix.",
33881
33883
  path: "/v1/amazon/shop",
33882
33884
  params: [
33883
33885
  {
@@ -33892,7 +33894,7 @@ export const apis = [
33892
33894
  type: "string",
33893
33895
  required: false,
33894
33896
  description:
33895
- "Page token returned by a previous response for the same shop URL",
33897
+ "Opaque page token returned by a previous response for the same shop URL. Pass it back unchanged and do not infer the response type from its prefix. A page can contain lists, videos, or both.",
33896
33898
  placeholder: "amzn1.vse.video...",
33897
33899
  },
33898
33900
  ],
@@ -33930,6 +33932,15 @@ export const apis = [
33930
33932
  url: "https://www.amazon.com/shop/sydneydelrey/list/3PDR5YVGLMWCO",
33931
33933
  },
33932
33934
  ],
33935
+ videos: [
33936
+ {
33937
+ id: "013f01b238c94b4f9fb63f7a35783f26",
33938
+ title: "So quick and simple - keep your bike from getting stolen thi",
33939
+ thumbnail:
33940
+ "https://m.media-amazon.com/images/I/81XrHZDkc7L._AC_._SX500_SCLZZZZZZZ_.jpg",
33941
+ asins: ["B0B1ZJZRPB"],
33942
+ },
33943
+ ],
33933
33944
  trendingPicks: [
33934
33945
  {
33935
33946
  url: "https://www.amazon.com/shop/sydneydelrey/getProductDetails/B0DDJFFCB5?showRelatedPost=true",
@@ -34006,7 +34017,7 @@ export const apis = [
34006
34017
  url: "https://www.amazon.com/shop/sydneydelrey/curation/b74328f3-11ce-4a55-a844-40f6aff6e467",
34007
34018
  },
34008
34019
  ],
34009
- pageToken: "amzn1.ideas.1S28M0V6I8FUU_0_2025-09-03T01:17:37.837Z",
34020
+ pageToken: "amzn1.vse.video.0f005889de9b46f6b2499537e3ff03b0_0_2026-08-04T00:46:51.887Z",
34010
34021
  },
34011
34022
  },
34012
34023
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "CLI for the ScrapeCreators API — use 180+ endpoints across 30+ platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Command } from "commander";
2
+ import { readFileSync } from "node:fs";
2
3
  import { registerApiCommands } from "./command-registry.js";
3
4
  import { authLogin, authStatus, authLogout } from "./commands/auth.js";
4
5
  import { configSet, configGet, configList } from "./commands/config.js";
@@ -7,13 +8,17 @@ import { listCommand } from "./commands/list.js";
7
8
  import { agentAddCommand } from "./commands/agent.js";
8
9
  import { runInteractive } from "./interactive.js";
9
10
 
11
+ const { version } = JSON.parse(
12
+ readFileSync(new URL("../package.json", import.meta.url), "utf8"),
13
+ );
14
+
10
15
  export function run(argv) {
11
16
  const program = new Command();
12
17
 
13
18
  program
14
19
  .name("scrapecreators")
15
20
  .description("CLI for the ScrapeCreators API — use 180+ endpoints across 30+ platforms")
16
- .version("1.0.28")
21
+ .version(version)
17
22
  .option("--api-key <key>", "API key (overrides env and config)")
18
23
  .option("--format <format>", "output format: json, table, csv, markdown", "auto")
19
24
  .option("--json", "shorthand for compact JSON (default)")