@scrapecreators/cli 1.0.12 → 1.0.13

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 +43 -9
  2. package/package.json +1 -1
@@ -5651,7 +5651,7 @@ export const apis = [
5651
5651
  name: "Ad Details",
5652
5652
  method: "GET",
5653
5653
  description:
5654
- "Pass the Ad ID and get back details about the ad. Be careful that if an ad has multiple versions, you're actually going to want to get the title from the 'cards' object. If you ask for the transcipt, we will only transcribe the video if it's under 2 minutes.",
5654
+ "Pass the Ad ID and get back details about the ad. Be careful that if an ad has multiple versions, you're actually going to want to get the title from the 'cards' object.",
5655
5655
  fullDescription:
5656
5656
  "Retrieves detailed information about a specific Facebook ad by its ID or URL. Returns adArchiveID, pageName, isActive, startDate, endDate, and a snapshot containing body, images, videos, display_format, link_url, and cta_text. For ads with multiple versions, the ad creative is found in the snapshot.cards array rather than snapshot.body.",
5657
5657
  path: "/v1/facebook/adLibrary/ad",
@@ -5979,14 +5979,6 @@ export const apis = [
5979
5979
  placeholder:
5980
5980
  "https://www.facebook.com/ads/library?id=1185617869915074",
5981
5981
  },
5982
- {
5983
- name: "get_transcript",
5984
- type: "boolean",
5985
- required: false,
5986
- description:
5987
- "Get the transcript of the ad. Only works if the video is under 2 minutes.",
5988
- placeholder: "false",
5989
- },
5990
5982
  {
5991
5983
  name: "trim",
5992
5984
  type: "boolean",
@@ -6004,6 +5996,48 @@ export const apis = [
6004
5996
  },
6005
5997
  ],
6006
5998
  },
5999
+ {
6000
+ name: "Ad Transcript",
6001
+ method: "GET",
6002
+ description:
6003
+ "Get the transcript for a Facebook Ad Library video ad by ad ID or URL. Credits are only charged when a transcript is returned.",
6004
+ fullDescription:
6005
+ "Retrieves a transcript for a single Facebook Ad Library video ad by ID or URL. If Facebook exposes captions, those are used. Otherwise we try to transcribe the public video URL. Credits are only deducted when transcript is returned. If the ad has no video or no transcript is available, transcript will be null and no credit is charged.",
6006
+ path: "/v1/facebook/adLibrary/ad/transcript",
6007
+ sampleResponse: {
6008
+ success: true,
6009
+ credits_remaining: 100,
6010
+ data: {
6011
+ ad_id: "1020359190509080",
6012
+ url: "https://www.facebook.com/ads/library?id=1020359190509080",
6013
+ transcript: "Sample transcript text from the ad video...",
6014
+ transcript_available: true,
6015
+ },
6016
+ },
6017
+ params: [
6018
+ {
6019
+ name: "id",
6020
+ type: "string",
6021
+ required: false,
6022
+ description: "Facebook Ad Id",
6023
+ placeholder: "1020359190509080",
6024
+ },
6025
+ {
6026
+ name: "url",
6027
+ type: "string",
6028
+ required: false,
6029
+ description: "Facebook Ad URL",
6030
+ placeholder:
6031
+ "https://www.facebook.com/ads/library?id=1020359190509080",
6032
+ },
6033
+ ],
6034
+ responseFields: [
6035
+ {
6036
+ path: "data.transcript",
6037
+ description: "Transcript text for the ad video, or null when unavailable.",
6038
+ },
6039
+ ],
6040
+ },
6007
6041
  {
6008
6042
  name: "Search",
6009
6043
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrapecreators/cli",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "CLI for the ScrapeCreators API — scrape 27+ social media platforms from the terminal",
5
5
  "type": "module",
6
6
  "bin": {