@scrapecreators/cli 1.0.12 → 1.0.14
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.
- package/api-config/apis.js +177 -9
- package/package.json +1 -1
package/api-config/apis.js
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -28839,6 +28873,140 @@ export const apis = [
|
|
|
28839
28873
|
]
|
|
28840
28874
|
},
|
|
28841
28875
|
},
|
|
28876
|
+
{
|
|
28877
|
+
name: "Search",
|
|
28878
|
+
method: "GET",
|
|
28879
|
+
description: "Search Spotify",
|
|
28880
|
+
fullDescription:
|
|
28881
|
+
"Search Spotify for tracks, artists, albums, episodes, podcasts, and audiobooks. Use type=podcasts when you need podcast ids for the podcast endpoints.",
|
|
28882
|
+
path: "/v1/spotify/search",
|
|
28883
|
+
params: [
|
|
28884
|
+
{
|
|
28885
|
+
name: "query",
|
|
28886
|
+
type: "string",
|
|
28887
|
+
required: true,
|
|
28888
|
+
description: "Search query",
|
|
28889
|
+
placeholder: "joe rogan",
|
|
28890
|
+
},
|
|
28891
|
+
{
|
|
28892
|
+
name: "type",
|
|
28893
|
+
type: "string",
|
|
28894
|
+
required: false,
|
|
28895
|
+
description: "Optional result type. Use one of: all, tracks, artists, albums, episodes, podcasts, audiobooks.",
|
|
28896
|
+
placeholder: "podcasts",
|
|
28897
|
+
},
|
|
28898
|
+
{
|
|
28899
|
+
name: "offset",
|
|
28900
|
+
type: "number",
|
|
28901
|
+
required: false,
|
|
28902
|
+
description: "Result offset for pagination",
|
|
28903
|
+
placeholder: "0",
|
|
28904
|
+
},
|
|
28905
|
+
{
|
|
28906
|
+
name: "limit",
|
|
28907
|
+
type: "number",
|
|
28908
|
+
required: false,
|
|
28909
|
+
description: "Number of results to return",
|
|
28910
|
+
placeholder: "10",
|
|
28911
|
+
},
|
|
28912
|
+
],
|
|
28913
|
+
sampleResponse: {
|
|
28914
|
+
"success": true,
|
|
28915
|
+
"credits_remaining": 49997935401,
|
|
28916
|
+
"query": "joe rogan",
|
|
28917
|
+
"podcasts": [
|
|
28918
|
+
{
|
|
28919
|
+
"id": "4rOoJ6Egrf8K2IrywzwOMk",
|
|
28920
|
+
"uri": "spotify:show:4rOoJ6Egrf8K2IrywzwOMk",
|
|
28921
|
+
"name": "The Joe Rogan Experience",
|
|
28922
|
+
"description": "The official podcast of comedian Joe Rogan."
|
|
28923
|
+
}
|
|
28924
|
+
]
|
|
28925
|
+
},
|
|
28926
|
+
},
|
|
28927
|
+
{
|
|
28928
|
+
name: "Podcast",
|
|
28929
|
+
method: "GET",
|
|
28930
|
+
description: "Get Spotify podcast",
|
|
28931
|
+
fullDescription:
|
|
28932
|
+
"Retrieves detailed information about a Spotify podcast by its id or URL. Spotify calls podcasts shows internally, so Spotify podcast URLs use /show/.",
|
|
28933
|
+
path: "/v1/spotify/podcast",
|
|
28934
|
+
params: [
|
|
28935
|
+
{
|
|
28936
|
+
name: "id",
|
|
28937
|
+
type: "string",
|
|
28938
|
+
required: false,
|
|
28939
|
+
description: "Spotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead.",
|
|
28940
|
+
placeholder: "4rOoJ6Egrf8K2IrywzwOMk",
|
|
28941
|
+
},
|
|
28942
|
+
{
|
|
28943
|
+
name: "url",
|
|
28944
|
+
type: "string",
|
|
28945
|
+
required: false,
|
|
28946
|
+
description: "Spotify podcast URL. If you'd prefer to use the id instead, you can use the id parameter instead.",
|
|
28947
|
+
placeholder: "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk",
|
|
28948
|
+
},
|
|
28949
|
+
],
|
|
28950
|
+
sampleResponse: {
|
|
28951
|
+
"success": true,
|
|
28952
|
+
"credits_remaining": 49997935400,
|
|
28953
|
+
"id": "4rOoJ6Egrf8K2IrywzwOMk",
|
|
28954
|
+
"uri": "spotify:show:4rOoJ6Egrf8K2IrywzwOMk",
|
|
28955
|
+
"name": "The Joe Rogan Experience",
|
|
28956
|
+
"publisher": {
|
|
28957
|
+
"name": "Joe Rogan"
|
|
28958
|
+
},
|
|
28959
|
+
"type": "PODCAST"
|
|
28960
|
+
},
|
|
28961
|
+
},
|
|
28962
|
+
{
|
|
28963
|
+
name: "Podcast Episodes",
|
|
28964
|
+
method: "GET",
|
|
28965
|
+
description: "Get Spotify podcast episodes",
|
|
28966
|
+
fullDescription:
|
|
28967
|
+
"Returns episodes for a Spotify podcast. Pass the cursor returned by a response to get the next page.",
|
|
28968
|
+
path: "/v1/spotify/podcast/episodes",
|
|
28969
|
+
params: [
|
|
28970
|
+
{
|
|
28971
|
+
name: "id",
|
|
28972
|
+
type: "string",
|
|
28973
|
+
required: false,
|
|
28974
|
+
description: "Spotify podcast id. If you'd prefer to use the URL instead, you can use the url parameter instead.",
|
|
28975
|
+
placeholder: "4rOoJ6Egrf8K2IrywzwOMk",
|
|
28976
|
+
},
|
|
28977
|
+
{
|
|
28978
|
+
name: "url",
|
|
28979
|
+
type: "string",
|
|
28980
|
+
required: false,
|
|
28981
|
+
description: "Spotify podcast URL. If you'd prefer to use the id instead, you can use the id parameter instead.",
|
|
28982
|
+
placeholder: "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk",
|
|
28983
|
+
},
|
|
28984
|
+
{
|
|
28985
|
+
name: "cursor",
|
|
28986
|
+
type: "number",
|
|
28987
|
+
required: false,
|
|
28988
|
+
description: "Cursor returned by the previous response. Omit for the first page.",
|
|
28989
|
+
placeholder: "50",
|
|
28990
|
+
},
|
|
28991
|
+
],
|
|
28992
|
+
sampleResponse: {
|
|
28993
|
+
"success": true,
|
|
28994
|
+
"credits_remaining": 49997935399,
|
|
28995
|
+
"data": {
|
|
28996
|
+
"id": "4rOoJ6Egrf8K2IrywzwOMk",
|
|
28997
|
+
"uri": "spotify:show:4rOoJ6Egrf8K2IrywzwOMk",
|
|
28998
|
+
"episodes": [
|
|
28999
|
+
{
|
|
29000
|
+
"id": "46MudXmYxlZldT0NIXjlb6",
|
|
29001
|
+
"uri": "spotify:episode:46MudXmYxlZldT0NIXjlb6",
|
|
29002
|
+
"name": "#2506 - Michelle Thaller"
|
|
29003
|
+
}
|
|
29004
|
+
],
|
|
29005
|
+
"cursor": 50,
|
|
29006
|
+
"totalCount": 2698
|
|
29007
|
+
}
|
|
29008
|
+
},
|
|
29009
|
+
},
|
|
28842
29010
|
],
|
|
28843
29011
|
},
|
|
28844
29012
|
{
|