@scrapecreators/cli 1.0.22 → 1.0.24

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.
Files changed (2) hide show
  1. package/api-config/apis.js +88 -1
  2. package/package.json +1 -1
@@ -164,6 +164,14 @@ export const apis = [
164
164
  "Continuation token to get more videos. Get 'continuationToken' from previous response.",
165
165
  placeholder: "4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB",
166
166
  },
167
+ {
168
+ name: "is_paid_promotions",
169
+ type: "string",
170
+ required: false,
171
+ description:
172
+ "Set to 'true' to search YouTube's public paid product placement / sponsorship / endorsement search surface. This returns normal YouTube videos where the creator declared paid promotion. Cannot be combined with filter, uploadDate, sortBy, type, duration, or includeExtras.",
173
+ placeholder: "false",
174
+ },
167
175
  {
168
176
  name: "includeExtras",
169
177
  type: "string",
@@ -729,13 +737,70 @@ export const apis = [
729
737
  language: "English",
730
738
  },
731
739
  },
740
+ {
741
+ name: "Video Sponsors",
742
+ method: "GET",
743
+ description: "Experimental: Find suspected sponsors/promoted brands for a YouTube video. This is inferred from public evidence, not an official YouTube sponsor field. Feedback welcome: support@scrapecreators.com",
744
+ fullDescription:
745
+ "Experimental endpoint. Checks a YouTube video for the paid-promotion disclosure and infers likely sponsors/promoted brands from the public description, description links, promo-code text, and transcript. YouTube tells us that a video contains paid promotion, but it does not always tell us the sponsor directly, so this endpoint returns suspected sponsors with confidence and evidence. This is inferred, not an official YouTube sponsor field. Feedback welcome: support@scrapecreators.com",
746
+ path: "/v1/youtube/video/sponsors",
747
+ params: [
748
+ {
749
+ name: "url",
750
+ type: "string",
751
+ required: true,
752
+ description: "YouTube video or short URL",
753
+ placeholder: "https://www.youtube.com/watch?v=AVO0ifle-OU",
754
+ },
755
+ {
756
+ name: "language",
757
+ type: "string",
758
+ required: false,
759
+ description: "2 letter language code used for transcript lookup, ie 'en', 'es', 'fr' etc.",
760
+ placeholder: "en",
761
+ },
762
+ ],
763
+ sampleResponse: {
764
+ video: {
765
+ id: "AVO0ifle-OU",
766
+ url: "https://www.youtube.com/watch?v=AVO0ifle-OU",
767
+ title: "Why You Should Meal Prep Like A Restaurant",
768
+ channel: {
769
+ id: "UC3vQEjRhwgH2HAOBKwLjxNA",
770
+ url: "https://www.youtube.com/@letsKWOOWK",
771
+ handle: "letsKWOOWK",
772
+ title: "KWOOWK",
773
+ },
774
+ isPaidPromotion: true,
775
+ },
776
+ suspectedSponsors: [
777
+ {
778
+ name: "Betterhelp",
779
+ website: "betterhelp.com",
780
+ confidence: "medium",
781
+ evidence: [
782
+ {
783
+ source: "description_link",
784
+ text: "If you're struggling, consider therapy with our sponsor BetterHelp. Click https://betterhelp.com/KWOOWK for a 10% discount...",
785
+ },
786
+ ],
787
+ },
788
+ ],
789
+ sponsorDetection: {
790
+ status: "found",
791
+ methods: ["paid promotion badge", "description", "description links", "transcript"],
792
+ transcriptAvailable: true,
793
+ note: "Sponsors are inferred from public description, links, promo-code text, and transcript evidence.",
794
+ },
795
+ },
796
+ },
732
797
  {
733
798
  name: "Search",
734
799
  method: "GET",
735
800
  description:
736
801
  "Search YouTube and get matching videos, channels, playlists, shorts, lives, etc. Video explaining the response format: https://www.tella.tv/video/explaining-youtube-search-results-payload-353a",
737
802
  fullDescription:
738
- "Searches YouTube by keyword query and returns matching videos, channels, playlists, shorts, shelves, and live streams. Each video result includes title, URL, thumbnail, view count (views), publish date, duration, channel info, and badges. Supports filtering by upload date, sorting by relevance or popularity, and paginating with continuationToken.",
803
+ "Searches YouTube by keyword query and returns matching videos, channels, playlists, shorts, shelves, and live streams. Each video result includes title, URL, thumbnail, view count (views), publish date, duration, channel info, and badges. Supports filtering by upload date, sorting by relevance or popularity, and paginating with continuationToken. Set is_paid_promotions=true to search YouTube videos with the paid product placement / sponsorship disclosure.",
739
804
  path: "/v1/youtube/search",
740
805
  paginationField: "continuationToken",
741
806
  sampleResponse: {
@@ -6812,6 +6877,28 @@ export const apis = [
6812
6877
  description: "End date to search for. Format: YYYY-MM-DD",
6813
6878
  placeholder: "2025-08-11",
6814
6879
  },
6880
+ {
6881
+ name: "platform",
6882
+ type: "select",
6883
+ required: false,
6884
+ description: "Platform to search for.",
6885
+ options: [
6886
+ "google_maps",
6887
+ "google_play",
6888
+ "google_search",
6889
+ "google_shopping",
6890
+ "youtube",
6891
+ ],
6892
+ placeholder: "youtube",
6893
+ },
6894
+ {
6895
+ name: "format",
6896
+ type: "select",
6897
+ required: false,
6898
+ description: "Ad format to search for.",
6899
+ options: ["text", "image", "video"],
6900
+ placeholder: "video",
6901
+ },
6815
6902
  {
6816
6903
  name: "get_ad_details",
6817
6904
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "CLI for the ScrapeCreators API — scrape 27+ social media platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {