@crawlora-org/sdk 1.6.0-sdk.1 → 1.6.0-sdk.3
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/docs/operations.md +3 -1
- package/openapi/public.json +335 -0
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/operations.js +100 -2
- package/src/types.d.ts +79 -0
package/docs/operations.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generated from `openapi/public.json`. Deprecated, admin, and internal operations are excluded from this SDK contract.
|
|
4
4
|
|
|
5
|
-
Total operations: `
|
|
5
|
+
Total operations: `338`
|
|
6
6
|
|
|
7
7
|
| Group | SDK method | Operation ID | HTTP | Params | Auth | Response | Notes |
|
|
8
8
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -105,6 +105,7 @@ Total operations: `336`
|
|
|
105
105
|
| google | `google.jobs` | `google-jobs` | `POST /google/jobs` | `option` (body string required) | `ApiKeyAuth` | `GoogleJobsResponse` | |
|
|
106
106
|
| google | `google.mapPlace` | `google-map-place` | `GET /google/map/place/{place_id}` | `place_id` (path string required) | `ApiKeyAuth` | `GoogleMapPlaceResponse` | |
|
|
107
107
|
| google | `google.mapSearch` | `google-map-search` | `POST /google/map/search` | `mapSearchOption` (body string required) | `ApiKeyAuth` | `GoogleMapSearchResponse` | |
|
|
108
|
+
| google | `google.news` | `google-news` | `GET /google/news` | `q` (query string required)<br>`page` (query number)<br>`count` (query number)<br>`country` (query string)<br>`lang` (query string) | `ApiKeyAuth` | `GoogleNewsResponse` | |
|
|
108
109
|
| google | `google.search` | `google-search` | `POST /google/search` | `searchOption` (body string required) | `ApiKeyAuth` | `GoogleSearchResponse` | |
|
|
109
110
|
| google | `google.suggest` | `google-suggest` | `GET /google/suggest` | `q` (query string required)<br>`count` (query number)<br>`country` (query string)<br>`lang` (query string) | `ApiKeyAuth` | `GoogleSuggestResponse` | |
|
|
110
111
|
| google | `google.trendsCategories` | `google-trends-categories` | `GET /google/trends/categories` | none | `ApiKeyAuth` | `GoogleTrendsCategoriesResponse` | |
|
|
@@ -118,6 +119,7 @@ Total operations: `336`
|
|
|
118
119
|
| google | `google.trendsLocations` | `google-trends-locations` | `GET /google/trends/locations` | none | `ApiKeyAuth` | `GoogleTrendsLocationsResponse` | |
|
|
119
120
|
| google | `google.trendsTrending` | `google-trends-trending` | `GET /google/trends/trending` | `geo` (query "AF" \| "AX" \| "AL" \| "DZ" \| "AS" \| "AD" \| "AO" \| "AI" \| "AQ" \| "AG" \| "AR" \| "AM" \| "AW" \| "AU" \| "AT" \| "AZ" \| "BS" \| "BH" \| "BD" \| "BB" \| "BY" \| "BE" \| "BZ" \| "BJ" \| "BM" \| "BT" \| "BO" \| "BA" \| "BW" \| "BV" \| "BR" \| "IO" \| "VG" \| "BN" \| "BG" \| "BF" \| "BI" \| "KH" \| "CM" \| "CA" \| "CV" \| "BQ" \| "KY" \| "CF" \| "TD" \| "CL" \| "CN" \| "CX" \| "CC" \| "CO" \| "KM" \| "CG" \| "CD" \| "CK" \| "CR" \| "CI" \| "HR" \| "CU" \| "CW" \| "CY" \| "CZ" \| "DK" \| "DJ" \| "DM" \| "DO" \| "EC" \| "EG" \| "SV" \| "GQ" \| "ER" \| "EE" \| "SZ" \| "ET" \| "FK" \| "FO" \| "FJ" \| "FI" \| "FR" \| "GF" \| "PF" \| "TF" \| "GA" \| "GM" \| "GE" \| "DE" \| "GH" \| "GI" \| "GR" \| "GL" \| "GD" \| "GP" \| "GU" \| "GT" \| "GG" \| "GN" \| "GW" \| "GY" \| "HT" \| "HM" \| "HN" \| "HK" \| "HU" \| "IS" \| "IN" \| "ID" \| "IR" \| "IQ" \| "IE" \| "IM" \| "IL" \| "IT" \| "JM" \| "JP" \| "JE" \| "JO" \| "KZ" \| "KE" \| "KI" \| "XK" \| "KW" \| "KG" \| "LA" \| "LV" \| "LB" \| "LS" \| "LR" \| "LY" \| "LI" \| "LT" \| "LU" \| "MO" \| "MG" \| "MW" \| "MY" \| "MV" \| "ML" \| "MT" \| "MH" \| "MQ" \| "MR" \| "MU" \| "YT" \| "MX" \| "FM" \| "MD" \| "MC" \| "MN" \| "ME" \| "MS" \| "MA" \| "MZ" \| "MM" \| "NA" \| "NR" \| "NP" \| "NL" \| "NC" \| "NZ" \| "NI" \| "NE" \| "NG" \| "NU" \| "NF" \| "KP" \| "MK" \| "MP" \| "NO" \| "OM" \| "PK" \| "PW" \| "PS" \| "PA" \| "PG" \| "PY" \| "PE" \| "PH" \| "PN" \| "PL" \| "PT" \| "PR" \| "QA" \| "RE" \| "RO" \| "RU" \| "RW" \| "WS" \| "SM" \| "ST" \| "SA" \| "SN" \| "RS" \| "SC" \| "SL" \| "SG" \| "SX" \| "SK" \| "SI" \| "SB" \| "SO" \| "ZA" \| "GS" \| "KR" \| "SS" \| "ES" \| "LK" \| "BL" \| "SH" \| "KN" \| "LC" \| "MF" \| "PM" \| "VC" \| "SD" \| "SR" \| "SJ" \| "SE" \| "CH" \| "SY" \| "TW" \| "TJ" \| "TZ" \| "TH" \| "TL" \| "TG" \| "TK" \| "TO" \| "TT" \| "TN" \| "TR" \| "TM" \| "TC" \| "TV" \| "UM" \| "VI" \| "UG" \| "UA" \| "AE" \| "GB" \| "US" \| "UY" \| "UZ" \| "VU" \| "VA" \| "VE" \| "VN" \| "WF" \| "EH" \| "YE" \| "ZM" \| "ZW")<br>`hl` (query string)<br>`tz` (query number)<br>`window` (query "4h" \| "24h" \| "48h" \| "7d")<br>`time_range` (query "4h" \| "24h" \| "48h" \| "7d")<br>`category` (query "0" \| "3" \| "47" \| "44" \| "22" \| "12" \| "5" \| "7" \| "71" \| "8" \| "45" \| "65" \| "11" \| "13" \| "958" \| "19" \| "16" \| "299" \| "14" \| "66" \| "29" \| "533" \| "174" \| "18" \| "20" \| "67")<br>`status` (query "all" \| "active" \| "ended")<br>`sort_by` (query "relevance" \| "title" \| "recency" \| "search_volume")<br>`limit` (query number) | `ApiKeyAuth` | `GoogleTrendsTrendingResponse` | |
|
|
120
121
|
| google | `google.trendsTrendingDetail` | `google-trends-trending-detail` | `POST /google/trends/trending/detail` | `request` (body string required) | `ApiKeyAuth` | `GoogleTrendsTrendingDetailResponse` | |
|
|
122
|
+
| google | `google.videos` | `google-videos` | `GET /google/videos` | `q` (query string required)<br>`page` (query number)<br>`count` (query number)<br>`country` (query string)<br>`lang` (query string) | `ApiKeyAuth` | `GoogleVideosResponse` | |
|
|
121
123
|
| googlePlay | `googlePlay.app` | `googleplay-app` | `GET /googleplay/app` | `app_id` (query string required)<br>`country` (query string)<br>`lang` (query string) | `ApiKeyAuth` | `GooglePlayAppResponse` | |
|
|
122
124
|
| googlePlay | `googlePlay.categories` | `googleplay-categories` | `GET /googleplay/categories` | `country` (query string)<br>`lang` (query string) | `ApiKeyAuth` | `GooglePlayCategoriesResponse` | |
|
|
123
125
|
| googlePlay | `googlePlay.datasafety` | `googleplay-datasafety` | `GET /googleplay/datasafety` | `app_id` (query string required)<br>`lang` (query string) | `ApiKeyAuth` | `GooglePlayDatasafetyResponse` | |
|
package/openapi/public.json
CHANGED
|
@@ -8752,6 +8752,53 @@
|
|
|
8752
8752
|
},
|
|
8753
8753
|
"type": "object"
|
|
8754
8754
|
},
|
|
8755
|
+
"google.NewsResponse": {
|
|
8756
|
+
"properties": {
|
|
8757
|
+
"pagination": {
|
|
8758
|
+
"$ref": "#/definitions/google.VerticalPagination"
|
|
8759
|
+
},
|
|
8760
|
+
"results": {
|
|
8761
|
+
"items": {
|
|
8762
|
+
"$ref": "#/definitions/google.NewsResult"
|
|
8763
|
+
},
|
|
8764
|
+
"type": "array"
|
|
8765
|
+
}
|
|
8766
|
+
},
|
|
8767
|
+
"type": "object"
|
|
8768
|
+
},
|
|
8769
|
+
"google.NewsResult": {
|
|
8770
|
+
"properties": {
|
|
8771
|
+
"age": {
|
|
8772
|
+
"example": "2 hours ago",
|
|
8773
|
+
"type": "string"
|
|
8774
|
+
},
|
|
8775
|
+
"description": {
|
|
8776
|
+
"example": "OpenAI announced an update.",
|
|
8777
|
+
"type": "string"
|
|
8778
|
+
},
|
|
8779
|
+
"position": {
|
|
8780
|
+
"example": 1,
|
|
8781
|
+
"type": "integer"
|
|
8782
|
+
},
|
|
8783
|
+
"source": {
|
|
8784
|
+
"example": "Example News",
|
|
8785
|
+
"type": "string"
|
|
8786
|
+
},
|
|
8787
|
+
"thumbnail": {
|
|
8788
|
+
"example": "https://example.com/thumb.jpg",
|
|
8789
|
+
"type": "string"
|
|
8790
|
+
},
|
|
8791
|
+
"title": {
|
|
8792
|
+
"example": "OpenAI announces update",
|
|
8793
|
+
"type": "string"
|
|
8794
|
+
},
|
|
8795
|
+
"url": {
|
|
8796
|
+
"example": "https://example.com/openai-news",
|
|
8797
|
+
"type": "string"
|
|
8798
|
+
}
|
|
8799
|
+
},
|
|
8800
|
+
"type": "object"
|
|
8801
|
+
},
|
|
8755
8802
|
"google.PeopleAlsoAskItem": {
|
|
8756
8803
|
"properties": {
|
|
8757
8804
|
"answer": {
|
|
@@ -8998,6 +9045,74 @@
|
|
|
8998
9045
|
},
|
|
8999
9046
|
"type": "object"
|
|
9000
9047
|
},
|
|
9048
|
+
"google.VerticalPagination": {
|
|
9049
|
+
"properties": {
|
|
9050
|
+
"next_page": {
|
|
9051
|
+
"example": 2,
|
|
9052
|
+
"type": "integer"
|
|
9053
|
+
},
|
|
9054
|
+
"page": {
|
|
9055
|
+
"example": 1,
|
|
9056
|
+
"type": "integer"
|
|
9057
|
+
},
|
|
9058
|
+
"previous_page": {
|
|
9059
|
+
"example": 1,
|
|
9060
|
+
"type": "integer"
|
|
9061
|
+
}
|
|
9062
|
+
},
|
|
9063
|
+
"type": "object"
|
|
9064
|
+
},
|
|
9065
|
+
"google.VideoResult": {
|
|
9066
|
+
"properties": {
|
|
9067
|
+
"age": {
|
|
9068
|
+
"example": "2 days ago",
|
|
9069
|
+
"type": "string"
|
|
9070
|
+
},
|
|
9071
|
+
"description": {
|
|
9072
|
+
"example": "Watch the OpenAI DevDay keynote.",
|
|
9073
|
+
"type": "string"
|
|
9074
|
+
},
|
|
9075
|
+
"duration": {
|
|
9076
|
+
"example": "45:12",
|
|
9077
|
+
"type": "string"
|
|
9078
|
+
},
|
|
9079
|
+
"platform": {
|
|
9080
|
+
"example": "YouTube",
|
|
9081
|
+
"type": "string"
|
|
9082
|
+
},
|
|
9083
|
+
"position": {
|
|
9084
|
+
"example": 1,
|
|
9085
|
+
"type": "integer"
|
|
9086
|
+
},
|
|
9087
|
+
"thumbnail": {
|
|
9088
|
+
"example": "https://example.com/thumb.jpg",
|
|
9089
|
+
"type": "string"
|
|
9090
|
+
},
|
|
9091
|
+
"title": {
|
|
9092
|
+
"example": "OpenAI DevDay keynote - YouTube",
|
|
9093
|
+
"type": "string"
|
|
9094
|
+
},
|
|
9095
|
+
"url": {
|
|
9096
|
+
"example": "https://www.youtube.com/watch?v=openai-devday",
|
|
9097
|
+
"type": "string"
|
|
9098
|
+
}
|
|
9099
|
+
},
|
|
9100
|
+
"type": "object"
|
|
9101
|
+
},
|
|
9102
|
+
"google.VideosResponse": {
|
|
9103
|
+
"properties": {
|
|
9104
|
+
"pagination": {
|
|
9105
|
+
"$ref": "#/definitions/google.VerticalPagination"
|
|
9106
|
+
},
|
|
9107
|
+
"results": {
|
|
9108
|
+
"items": {
|
|
9109
|
+
"$ref": "#/definitions/google.VideoResult"
|
|
9110
|
+
},
|
|
9111
|
+
"type": "array"
|
|
9112
|
+
}
|
|
9113
|
+
},
|
|
9114
|
+
"type": "object"
|
|
9115
|
+
},
|
|
9001
9116
|
"google.mapPlaceResponseDoc": {
|
|
9002
9117
|
"properties": {
|
|
9003
9118
|
"code": {
|
|
@@ -9033,6 +9148,22 @@
|
|
|
9033
9148
|
},
|
|
9034
9149
|
"type": "object"
|
|
9035
9150
|
},
|
|
9151
|
+
"google.newsResponseDoc": {
|
|
9152
|
+
"properties": {
|
|
9153
|
+
"code": {
|
|
9154
|
+
"example": 200,
|
|
9155
|
+
"type": "integer"
|
|
9156
|
+
},
|
|
9157
|
+
"data": {
|
|
9158
|
+
"$ref": "#/definitions/google.NewsResponse"
|
|
9159
|
+
},
|
|
9160
|
+
"msg": {
|
|
9161
|
+
"example": "OK",
|
|
9162
|
+
"type": "string"
|
|
9163
|
+
}
|
|
9164
|
+
},
|
|
9165
|
+
"type": "object"
|
|
9166
|
+
},
|
|
9036
9167
|
"google.searchResponseDoc": {
|
|
9037
9168
|
"properties": {
|
|
9038
9169
|
"code": {
|
|
@@ -9065,6 +9196,22 @@
|
|
|
9065
9196
|
},
|
|
9066
9197
|
"type": "object"
|
|
9067
9198
|
},
|
|
9199
|
+
"google.videosResponseDoc": {
|
|
9200
|
+
"properties": {
|
|
9201
|
+
"code": {
|
|
9202
|
+
"example": 200,
|
|
9203
|
+
"type": "integer"
|
|
9204
|
+
},
|
|
9205
|
+
"data": {
|
|
9206
|
+
"$ref": "#/definitions/google.VideosResponse"
|
|
9207
|
+
},
|
|
9208
|
+
"msg": {
|
|
9209
|
+
"example": "OK",
|
|
9210
|
+
"type": "string"
|
|
9211
|
+
}
|
|
9212
|
+
},
|
|
9213
|
+
"type": "object"
|
|
9214
|
+
},
|
|
9068
9215
|
"googleplay.App": {
|
|
9069
9216
|
"properties": {
|
|
9070
9217
|
"ad_supported": {
|
|
@@ -37870,6 +38017,100 @@
|
|
|
37870
38017
|
]
|
|
37871
38018
|
}
|
|
37872
38019
|
},
|
|
38020
|
+
"/google/news": {
|
|
38021
|
+
"get": {
|
|
38022
|
+
"consumes": [
|
|
38023
|
+
"application/json"
|
|
38024
|
+
],
|
|
38025
|
+
"description": "Returns normalized Google News vertical results (title, source, link, age) parsed from the public Google News results page. Locale defaults to country=us and lang=en. Returns 503 when Google serves a challenge page or unusable HTML.",
|
|
38026
|
+
"operationId": "google-news",
|
|
38027
|
+
"parameters": [
|
|
38028
|
+
{
|
|
38029
|
+
"description": "Search query",
|
|
38030
|
+
"example": "openai",
|
|
38031
|
+
"in": "query",
|
|
38032
|
+
"name": "q",
|
|
38033
|
+
"required": true,
|
|
38034
|
+
"type": "string"
|
|
38035
|
+
},
|
|
38036
|
+
{
|
|
38037
|
+
"description": "1-based page number; defaults to 1",
|
|
38038
|
+
"example": 1,
|
|
38039
|
+
"in": "query",
|
|
38040
|
+
"minimum": 1,
|
|
38041
|
+
"name": "page",
|
|
38042
|
+
"type": "integer"
|
|
38043
|
+
},
|
|
38044
|
+
{
|
|
38045
|
+
"description": "Results per page; defaults to 10, clamped to 1..50",
|
|
38046
|
+
"example": 10,
|
|
38047
|
+
"in": "query",
|
|
38048
|
+
"maximum": 50,
|
|
38049
|
+
"minimum": 1,
|
|
38050
|
+
"name": "count",
|
|
38051
|
+
"type": "integer"
|
|
38052
|
+
},
|
|
38053
|
+
{
|
|
38054
|
+
"description": "Two-letter country code; defaults to us",
|
|
38055
|
+
"example": "us",
|
|
38056
|
+
"in": "query",
|
|
38057
|
+
"name": "country",
|
|
38058
|
+
"type": "string"
|
|
38059
|
+
},
|
|
38060
|
+
{
|
|
38061
|
+
"description": "Google UI language; defaults to en",
|
|
38062
|
+
"example": "en",
|
|
38063
|
+
"in": "query",
|
|
38064
|
+
"name": "lang",
|
|
38065
|
+
"type": "string"
|
|
38066
|
+
}
|
|
38067
|
+
],
|
|
38068
|
+
"produces": [
|
|
38069
|
+
"application/json"
|
|
38070
|
+
],
|
|
38071
|
+
"responses": {
|
|
38072
|
+
"200": {
|
|
38073
|
+
"description": "OK",
|
|
38074
|
+
"schema": {
|
|
38075
|
+
"$ref": "#/definitions/google.newsResponseDoc"
|
|
38076
|
+
}
|
|
38077
|
+
},
|
|
38078
|
+
"400": {
|
|
38079
|
+
"description": "Missing or invalid query parameters",
|
|
38080
|
+
"schema": {
|
|
38081
|
+
"$ref": "#/definitions/app.Response"
|
|
38082
|
+
}
|
|
38083
|
+
},
|
|
38084
|
+
"429": {
|
|
38085
|
+
"description": "Rate limit exceeded",
|
|
38086
|
+
"schema": {
|
|
38087
|
+
"$ref": "#/definitions/app.Response"
|
|
38088
|
+
}
|
|
38089
|
+
},
|
|
38090
|
+
"500": {
|
|
38091
|
+
"description": "Internal server error",
|
|
38092
|
+
"schema": {
|
|
38093
|
+
"$ref": "#/definitions/app.Response"
|
|
38094
|
+
}
|
|
38095
|
+
},
|
|
38096
|
+
"503": {
|
|
38097
|
+
"description": "Google upstream request failed",
|
|
38098
|
+
"schema": {
|
|
38099
|
+
"$ref": "#/definitions/app.Response"
|
|
38100
|
+
}
|
|
38101
|
+
}
|
|
38102
|
+
},
|
|
38103
|
+
"security": [
|
|
38104
|
+
{
|
|
38105
|
+
"ApiKeyAuth": []
|
|
38106
|
+
}
|
|
38107
|
+
],
|
|
38108
|
+
"summary": "Search Google News",
|
|
38109
|
+
"tags": [
|
|
38110
|
+
"Google"
|
|
38111
|
+
]
|
|
38112
|
+
}
|
|
38113
|
+
},
|
|
37873
38114
|
"/google/search": {
|
|
37874
38115
|
"post": {
|
|
37875
38116
|
"consumes": [
|
|
@@ -39002,6 +39243,100 @@
|
|
|
39002
39243
|
]
|
|
39003
39244
|
}
|
|
39004
39245
|
},
|
|
39246
|
+
"/google/videos": {
|
|
39247
|
+
"get": {
|
|
39248
|
+
"consumes": [
|
|
39249
|
+
"application/json"
|
|
39250
|
+
],
|
|
39251
|
+
"description": "Returns normalized Google video vertical results (title, platform, link, duration, age) parsed from the public Google video results page. Locale defaults to country=us and lang=en. Returns 503 when Google serves a challenge page or unusable HTML.",
|
|
39252
|
+
"operationId": "google-videos",
|
|
39253
|
+
"parameters": [
|
|
39254
|
+
{
|
|
39255
|
+
"description": "Search query",
|
|
39256
|
+
"example": "openai",
|
|
39257
|
+
"in": "query",
|
|
39258
|
+
"name": "q",
|
|
39259
|
+
"required": true,
|
|
39260
|
+
"type": "string"
|
|
39261
|
+
},
|
|
39262
|
+
{
|
|
39263
|
+
"description": "1-based page number; defaults to 1",
|
|
39264
|
+
"example": 1,
|
|
39265
|
+
"in": "query",
|
|
39266
|
+
"minimum": 1,
|
|
39267
|
+
"name": "page",
|
|
39268
|
+
"type": "integer"
|
|
39269
|
+
},
|
|
39270
|
+
{
|
|
39271
|
+
"description": "Results per page; defaults to 10, clamped to 1..50",
|
|
39272
|
+
"example": 10,
|
|
39273
|
+
"in": "query",
|
|
39274
|
+
"maximum": 50,
|
|
39275
|
+
"minimum": 1,
|
|
39276
|
+
"name": "count",
|
|
39277
|
+
"type": "integer"
|
|
39278
|
+
},
|
|
39279
|
+
{
|
|
39280
|
+
"description": "Two-letter country code; defaults to us",
|
|
39281
|
+
"example": "us",
|
|
39282
|
+
"in": "query",
|
|
39283
|
+
"name": "country",
|
|
39284
|
+
"type": "string"
|
|
39285
|
+
},
|
|
39286
|
+
{
|
|
39287
|
+
"description": "Google UI language; defaults to en",
|
|
39288
|
+
"example": "en",
|
|
39289
|
+
"in": "query",
|
|
39290
|
+
"name": "lang",
|
|
39291
|
+
"type": "string"
|
|
39292
|
+
}
|
|
39293
|
+
],
|
|
39294
|
+
"produces": [
|
|
39295
|
+
"application/json"
|
|
39296
|
+
],
|
|
39297
|
+
"responses": {
|
|
39298
|
+
"200": {
|
|
39299
|
+
"description": "OK",
|
|
39300
|
+
"schema": {
|
|
39301
|
+
"$ref": "#/definitions/google.videosResponseDoc"
|
|
39302
|
+
}
|
|
39303
|
+
},
|
|
39304
|
+
"400": {
|
|
39305
|
+
"description": "Missing or invalid query parameters",
|
|
39306
|
+
"schema": {
|
|
39307
|
+
"$ref": "#/definitions/app.Response"
|
|
39308
|
+
}
|
|
39309
|
+
},
|
|
39310
|
+
"429": {
|
|
39311
|
+
"description": "Rate limit exceeded",
|
|
39312
|
+
"schema": {
|
|
39313
|
+
"$ref": "#/definitions/app.Response"
|
|
39314
|
+
}
|
|
39315
|
+
},
|
|
39316
|
+
"500": {
|
|
39317
|
+
"description": "Internal server error",
|
|
39318
|
+
"schema": {
|
|
39319
|
+
"$ref": "#/definitions/app.Response"
|
|
39320
|
+
}
|
|
39321
|
+
},
|
|
39322
|
+
"503": {
|
|
39323
|
+
"description": "Google upstream request failed",
|
|
39324
|
+
"schema": {
|
|
39325
|
+
"$ref": "#/definitions/app.Response"
|
|
39326
|
+
}
|
|
39327
|
+
}
|
|
39328
|
+
},
|
|
39329
|
+
"security": [
|
|
39330
|
+
{
|
|
39331
|
+
"ApiKeyAuth": []
|
|
39332
|
+
}
|
|
39333
|
+
],
|
|
39334
|
+
"summary": "Search Google video results",
|
|
39335
|
+
"tags": [
|
|
39336
|
+
"Google"
|
|
39337
|
+
]
|
|
39338
|
+
}
|
|
39339
|
+
},
|
|
39005
39340
|
"/googleplay/app": {
|
|
39006
39341
|
"get": {
|
|
39007
39342
|
"consumes": [
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { operations, groups } from "./operations.js";
|
|
2
2
|
|
|
3
3
|
const DEFAULT_BASE_URL = "https://api.crawlora.net/api/v1";
|
|
4
|
-
export const VERSION = "1.6.0-sdk.
|
|
4
|
+
export const VERSION = "1.6.0-sdk.3";
|
|
5
5
|
const DEFAULT_USER_AGENT = `crawlora-js-sdk/${VERSION}`;
|
|
6
6
|
|
|
7
7
|
export class CrawloraError extends Error {
|
package/src/operations.js
CHANGED
|
@@ -4807,6 +4807,53 @@ export const operations = {
|
|
|
4807
4807
|
"ApiKeyAuth"
|
|
4808
4808
|
]
|
|
4809
4809
|
},
|
|
4810
|
+
"google-news": {
|
|
4811
|
+
"bodyParam": null,
|
|
4812
|
+
"bodyRequired": false,
|
|
4813
|
+
"consumes": [
|
|
4814
|
+
"application/json"
|
|
4815
|
+
],
|
|
4816
|
+
"formParams": [],
|
|
4817
|
+
"id": "google-news",
|
|
4818
|
+
"method": "GET",
|
|
4819
|
+
"paginatable": true,
|
|
4820
|
+
"path": "/google/news",
|
|
4821
|
+
"pathParams": [],
|
|
4822
|
+
"produces": [
|
|
4823
|
+
"application/json"
|
|
4824
|
+
],
|
|
4825
|
+
"queryParams": [
|
|
4826
|
+
{
|
|
4827
|
+
"in": "query",
|
|
4828
|
+
"name": "q",
|
|
4829
|
+
"required": true,
|
|
4830
|
+
"type": "string"
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
"in": "query",
|
|
4834
|
+
"name": "page",
|
|
4835
|
+
"type": "integer"
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
"in": "query",
|
|
4839
|
+
"name": "count",
|
|
4840
|
+
"type": "integer"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
"in": "query",
|
|
4844
|
+
"name": "country",
|
|
4845
|
+
"type": "string"
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
"in": "query",
|
|
4849
|
+
"name": "lang",
|
|
4850
|
+
"type": "string"
|
|
4851
|
+
}
|
|
4852
|
+
],
|
|
4853
|
+
"security": [
|
|
4854
|
+
"ApiKeyAuth"
|
|
4855
|
+
]
|
|
4856
|
+
},
|
|
4810
4857
|
"google-search": {
|
|
4811
4858
|
"bodyParam": "searchOption",
|
|
4812
4859
|
"bodyRequired": true,
|
|
@@ -5419,6 +5466,53 @@ export const operations = {
|
|
|
5419
5466
|
"ApiKeyAuth"
|
|
5420
5467
|
]
|
|
5421
5468
|
},
|
|
5469
|
+
"google-videos": {
|
|
5470
|
+
"bodyParam": null,
|
|
5471
|
+
"bodyRequired": false,
|
|
5472
|
+
"consumes": [
|
|
5473
|
+
"application/json"
|
|
5474
|
+
],
|
|
5475
|
+
"formParams": [],
|
|
5476
|
+
"id": "google-videos",
|
|
5477
|
+
"method": "GET",
|
|
5478
|
+
"paginatable": true,
|
|
5479
|
+
"path": "/google/videos",
|
|
5480
|
+
"pathParams": [],
|
|
5481
|
+
"produces": [
|
|
5482
|
+
"application/json"
|
|
5483
|
+
],
|
|
5484
|
+
"queryParams": [
|
|
5485
|
+
{
|
|
5486
|
+
"in": "query",
|
|
5487
|
+
"name": "q",
|
|
5488
|
+
"required": true,
|
|
5489
|
+
"type": "string"
|
|
5490
|
+
},
|
|
5491
|
+
{
|
|
5492
|
+
"in": "query",
|
|
5493
|
+
"name": "page",
|
|
5494
|
+
"type": "integer"
|
|
5495
|
+
},
|
|
5496
|
+
{
|
|
5497
|
+
"in": "query",
|
|
5498
|
+
"name": "count",
|
|
5499
|
+
"type": "integer"
|
|
5500
|
+
},
|
|
5501
|
+
{
|
|
5502
|
+
"in": "query",
|
|
5503
|
+
"name": "country",
|
|
5504
|
+
"type": "string"
|
|
5505
|
+
},
|
|
5506
|
+
{
|
|
5507
|
+
"in": "query",
|
|
5508
|
+
"name": "lang",
|
|
5509
|
+
"type": "string"
|
|
5510
|
+
}
|
|
5511
|
+
],
|
|
5512
|
+
"security": [
|
|
5513
|
+
"ApiKeyAuth"
|
|
5514
|
+
]
|
|
5515
|
+
},
|
|
5422
5516
|
"googleplay-app": {
|
|
5423
5517
|
"bodyParam": null,
|
|
5424
5518
|
"bodyRequired": false,
|
|
@@ -13518,6 +13612,7 @@ export const groups = {
|
|
|
13518
13612
|
"jobs": "google-jobs",
|
|
13519
13613
|
"mapPlace": "google-map-place",
|
|
13520
13614
|
"mapSearch": "google-map-search",
|
|
13615
|
+
"news": "google-news",
|
|
13521
13616
|
"search": "google-search",
|
|
13522
13617
|
"suggest": "google-suggest",
|
|
13523
13618
|
"trendsCategories": "google-trends-categories",
|
|
@@ -13530,7 +13625,8 @@ export const groups = {
|
|
|
13530
13625
|
"trendsExploreTopQueries": "google-trends-explore-top-queries",
|
|
13531
13626
|
"trendsLocations": "google-trends-locations",
|
|
13532
13627
|
"trendsTrending": "google-trends-trending",
|
|
13533
|
-
"trendsTrendingDetail": "google-trends-trending-detail"
|
|
13628
|
+
"trendsTrendingDetail": "google-trends-trending-detail",
|
|
13629
|
+
"videos": "google-videos"
|
|
13534
13630
|
},
|
|
13535
13631
|
"googlePlay": {
|
|
13536
13632
|
"app": "googleplay-app",
|
|
@@ -13800,7 +13896,7 @@ export const groups = {
|
|
|
13800
13896
|
}
|
|
13801
13897
|
};
|
|
13802
13898
|
|
|
13803
|
-
export const operationCount =
|
|
13899
|
+
export const operationCount = 338;
|
|
13804
13900
|
|
|
13805
13901
|
// PascalCase aliases for every operation id, for discoverable, typo-safe
|
|
13806
13902
|
// dynamic calls: client.request(OperationIds.BingSearch, { q: "coffee" }).
|
|
@@ -13904,6 +14000,7 @@ export const OperationIds = Object.freeze({
|
|
|
13904
14000
|
"GoogleJobs": "google-jobs",
|
|
13905
14001
|
"GoogleMapPlace": "google-map-place",
|
|
13906
14002
|
"GoogleMapSearch": "google-map-search",
|
|
14003
|
+
"GoogleNews": "google-news",
|
|
13907
14004
|
"GooglePlayApp": "googleplay-app",
|
|
13908
14005
|
"GooglePlayCategories": "googleplay-categories",
|
|
13909
14006
|
"GooglePlayDatasafety": "googleplay-datasafety",
|
|
@@ -13927,6 +14024,7 @@ export const OperationIds = Object.freeze({
|
|
|
13927
14024
|
"GoogleTrendsLocations": "google-trends-locations",
|
|
13928
14025
|
"GoogleTrendsTrending": "google-trends-trending",
|
|
13929
14026
|
"GoogleTrendsTrendingDetail": "google-trends-trending-detail",
|
|
14027
|
+
"GoogleVideos": "google-videos",
|
|
13930
14028
|
"InstagramPost": "instagram-post",
|
|
13931
14029
|
"InstagramProfile": "instagram-profile",
|
|
13932
14030
|
"InstagramReels": "instagram-reels",
|
package/src/types.d.ts
CHANGED
|
@@ -2641,6 +2641,21 @@ export interface ModelGoogleMapSearchOption {
|
|
|
2641
2641
|
"language"?: string;
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
+
export interface ModelGoogleNewsResponse {
|
|
2645
|
+
"pagination"?: ModelGoogleVerticalPagination;
|
|
2646
|
+
"results"?: Array<ModelGoogleNewsResult>;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
export interface ModelGoogleNewsResult {
|
|
2650
|
+
"age"?: string;
|
|
2651
|
+
"description"?: string;
|
|
2652
|
+
"position"?: number;
|
|
2653
|
+
"source"?: string;
|
|
2654
|
+
"thumbnail"?: string;
|
|
2655
|
+
"title"?: string;
|
|
2656
|
+
"url"?: string;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2644
2659
|
export interface ModelGooglePeopleAlsoAskItem {
|
|
2645
2660
|
"answer"?: string;
|
|
2646
2661
|
"date"?: string;
|
|
@@ -2703,6 +2718,28 @@ export interface ModelGoogleSuggestionResult {
|
|
|
2703
2718
|
"query"?: string;
|
|
2704
2719
|
}
|
|
2705
2720
|
|
|
2721
|
+
export interface ModelGoogleVerticalPagination {
|
|
2722
|
+
"next_page"?: number;
|
|
2723
|
+
"page"?: number;
|
|
2724
|
+
"previous_page"?: number;
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
export interface ModelGoogleVideoResult {
|
|
2728
|
+
"age"?: string;
|
|
2729
|
+
"description"?: string;
|
|
2730
|
+
"duration"?: string;
|
|
2731
|
+
"platform"?: string;
|
|
2732
|
+
"position"?: number;
|
|
2733
|
+
"thumbnail"?: string;
|
|
2734
|
+
"title"?: string;
|
|
2735
|
+
"url"?: string;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
export interface ModelGoogleVideosResponse {
|
|
2739
|
+
"pagination"?: ModelGoogleVerticalPagination;
|
|
2740
|
+
"results"?: Array<ModelGoogleVideoResult>;
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2706
2743
|
export interface ModelGoogleMapPlaceResponseDoc {
|
|
2707
2744
|
"code"?: number;
|
|
2708
2745
|
"data"?: ModelGooglePlace;
|
|
@@ -2715,6 +2752,12 @@ export interface ModelGoogleMapSearchResponseDoc {
|
|
|
2715
2752
|
"msg"?: string;
|
|
2716
2753
|
}
|
|
2717
2754
|
|
|
2755
|
+
export interface ModelGoogleNewsResponseDoc {
|
|
2756
|
+
"code"?: number;
|
|
2757
|
+
"data"?: ModelGoogleNewsResponse;
|
|
2758
|
+
"msg"?: string;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2718
2761
|
export interface ModelGoogleSearchResponseDoc {
|
|
2719
2762
|
"code"?: number;
|
|
2720
2763
|
"data"?: ModelGoogleSearchResp;
|
|
@@ -2727,6 +2770,12 @@ export interface ModelGoogleSuggestResponseDoc {
|
|
|
2727
2770
|
"msg"?: string;
|
|
2728
2771
|
}
|
|
2729
2772
|
|
|
2773
|
+
export interface ModelGoogleVideosResponseDoc {
|
|
2774
|
+
"code"?: number;
|
|
2775
|
+
"data"?: ModelGoogleVideosResponse;
|
|
2776
|
+
"msg"?: string;
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2730
2779
|
export interface ModelGoogleplayApp {
|
|
2731
2780
|
"ad_supported"?: boolean;
|
|
2732
2781
|
"android_max_version"?: string;
|
|
@@ -9492,6 +9541,15 @@ export interface GoogleMapSearchParams {
|
|
|
9492
9541
|
"mapSearchOption": GoogleMapSearchBody;
|
|
9493
9542
|
}
|
|
9494
9543
|
|
|
9544
|
+
export type GoogleNewsResponse = CrawloraResponse<ModelGoogleNewsResponseDoc>;
|
|
9545
|
+
export interface GoogleNewsParams {
|
|
9546
|
+
"q": string;
|
|
9547
|
+
"page"?: number;
|
|
9548
|
+
"count"?: number;
|
|
9549
|
+
"country"?: string;
|
|
9550
|
+
"lang"?: string;
|
|
9551
|
+
}
|
|
9552
|
+
|
|
9495
9553
|
export type GoogleSearchBody = CrawloraBody<ModelGoogleSearchOption>;
|
|
9496
9554
|
export type GoogleSearchResponse = CrawloraResponse<ModelGoogleSearchResponseDoc>;
|
|
9497
9555
|
export interface GoogleSearchParams {
|
|
@@ -9573,6 +9631,15 @@ export interface GoogleTrendsTrendingDetailParams {
|
|
|
9573
9631
|
"request": GoogleTrendsTrendingDetailBody;
|
|
9574
9632
|
}
|
|
9575
9633
|
|
|
9634
|
+
export type GoogleVideosResponse = CrawloraResponse<ModelGoogleVideosResponseDoc>;
|
|
9635
|
+
export interface GoogleVideosParams {
|
|
9636
|
+
"q": string;
|
|
9637
|
+
"page"?: number;
|
|
9638
|
+
"count"?: number;
|
|
9639
|
+
"country"?: string;
|
|
9640
|
+
"lang"?: string;
|
|
9641
|
+
}
|
|
9642
|
+
|
|
9576
9643
|
export type GooglePlayAppResponse = CrawloraResponse<ModelGoogleplayAppDetailsResponse>;
|
|
9577
9644
|
export interface GooglePlayAppParams {
|
|
9578
9645
|
"app_id": string;
|
|
@@ -11296,6 +11363,7 @@ export interface GoogleService {
|
|
|
11296
11363
|
jobs<T = GoogleJobsResponse>(params: GoogleJobsParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11297
11364
|
mapPlace<T = GoogleMapPlaceResponse>(params: GoogleMapPlaceParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11298
11365
|
mapSearch<T = GoogleMapSearchResponse>(params: GoogleMapSearchParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11366
|
+
news<T = GoogleNewsResponse>(params: GoogleNewsParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11299
11367
|
search<T = GoogleSearchResponse>(params: GoogleSearchParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11300
11368
|
suggest<T = GoogleSuggestResponse>(params: GoogleSuggestParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11301
11369
|
trendsCategories<T = GoogleTrendsCategoriesResponse>(params?: GoogleTrendsCategoriesParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
@@ -11309,6 +11377,7 @@ export interface GoogleService {
|
|
|
11309
11377
|
trendsLocations<T = GoogleTrendsLocationsResponse>(params?: GoogleTrendsLocationsParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11310
11378
|
trendsTrending<T = GoogleTrendsTrendingResponse>(params?: GoogleTrendsTrendingParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11311
11379
|
trendsTrendingDetail<T = GoogleTrendsTrendingDetailResponse>(params: GoogleTrendsTrendingDetailParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11380
|
+
videos<T = GoogleVideosResponse>(params: GoogleVideosParams, options?: import('./index.js').CrawloraRequestOptions): Promise<T>;
|
|
11312
11381
|
}
|
|
11313
11382
|
|
|
11314
11383
|
export interface GooglePlayService {
|
|
@@ -11735,6 +11804,7 @@ export interface OperationParamsMap {
|
|
|
11735
11804
|
"google-jobs": GoogleJobsParams;
|
|
11736
11805
|
"google-map-place": GoogleMapPlaceParams;
|
|
11737
11806
|
"google-map-search": GoogleMapSearchParams;
|
|
11807
|
+
"google-news": GoogleNewsParams;
|
|
11738
11808
|
"google-search": GoogleSearchParams;
|
|
11739
11809
|
"google-suggest": GoogleSuggestParams;
|
|
11740
11810
|
"google-trends-categories": GoogleTrendsCategoriesParams;
|
|
@@ -11748,6 +11818,7 @@ export interface OperationParamsMap {
|
|
|
11748
11818
|
"google-trends-locations": GoogleTrendsLocationsParams;
|
|
11749
11819
|
"google-trends-trending": GoogleTrendsTrendingParams;
|
|
11750
11820
|
"google-trends-trending-detail": GoogleTrendsTrendingDetailParams;
|
|
11821
|
+
"google-videos": GoogleVideosParams;
|
|
11751
11822
|
"googleplay-app": GooglePlayAppParams;
|
|
11752
11823
|
"googleplay-categories": GooglePlayCategoriesParams;
|
|
11753
11824
|
"googleplay-datasafety": GooglePlayDatasafetyParams;
|
|
@@ -12074,6 +12145,7 @@ export interface OperationResponseMap {
|
|
|
12074
12145
|
"google-jobs": GoogleJobsResponse;
|
|
12075
12146
|
"google-map-place": GoogleMapPlaceResponse;
|
|
12076
12147
|
"google-map-search": GoogleMapSearchResponse;
|
|
12148
|
+
"google-news": GoogleNewsResponse;
|
|
12077
12149
|
"google-search": GoogleSearchResponse;
|
|
12078
12150
|
"google-suggest": GoogleSuggestResponse;
|
|
12079
12151
|
"google-trends-categories": GoogleTrendsCategoriesResponse;
|
|
@@ -12087,6 +12159,7 @@ export interface OperationResponseMap {
|
|
|
12087
12159
|
"google-trends-locations": GoogleTrendsLocationsResponse;
|
|
12088
12160
|
"google-trends-trending": GoogleTrendsTrendingResponse;
|
|
12089
12161
|
"google-trends-trending-detail": GoogleTrendsTrendingDetailResponse;
|
|
12162
|
+
"google-videos": GoogleVideosResponse;
|
|
12090
12163
|
"googleplay-app": GooglePlayAppResponse;
|
|
12091
12164
|
"googleplay-categories": GooglePlayCategoriesResponse;
|
|
12092
12165
|
"googleplay-datasafety": GooglePlayDatasafetyResponse;
|
|
@@ -12413,6 +12486,7 @@ export interface OperationRequiredParamsMap {
|
|
|
12413
12486
|
"google-jobs": true;
|
|
12414
12487
|
"google-map-place": true;
|
|
12415
12488
|
"google-map-search": true;
|
|
12489
|
+
"google-news": true;
|
|
12416
12490
|
"google-search": true;
|
|
12417
12491
|
"google-suggest": true;
|
|
12418
12492
|
"google-trends-categories": false;
|
|
@@ -12426,6 +12500,7 @@ export interface OperationRequiredParamsMap {
|
|
|
12426
12500
|
"google-trends-locations": false;
|
|
12427
12501
|
"google-trends-trending": false;
|
|
12428
12502
|
"google-trends-trending-detail": true;
|
|
12503
|
+
"google-videos": true;
|
|
12429
12504
|
"googleplay-app": true;
|
|
12430
12505
|
"googleplay-categories": false;
|
|
12431
12506
|
"googleplay-datasafety": true;
|
|
@@ -12759,6 +12834,7 @@ export type OperationIdLiteral =
|
|
|
12759
12834
|
| "google-jobs"
|
|
12760
12835
|
| "google-map-place"
|
|
12761
12836
|
| "google-map-search"
|
|
12837
|
+
| "google-news"
|
|
12762
12838
|
| "google-search"
|
|
12763
12839
|
| "google-suggest"
|
|
12764
12840
|
| "google-trends-categories"
|
|
@@ -12772,6 +12848,7 @@ export type OperationIdLiteral =
|
|
|
12772
12848
|
| "google-trends-locations"
|
|
12773
12849
|
| "google-trends-trending"
|
|
12774
12850
|
| "google-trends-trending-detail"
|
|
12851
|
+
| "google-videos"
|
|
12775
12852
|
| "googleplay-app"
|
|
12776
12853
|
| "googleplay-categories"
|
|
12777
12854
|
| "googleplay-datasafety"
|
|
@@ -13097,6 +13174,7 @@ export declare const OperationIds: Readonly<{
|
|
|
13097
13174
|
GoogleJobs: "google-jobs";
|
|
13098
13175
|
GoogleMapPlace: "google-map-place";
|
|
13099
13176
|
GoogleMapSearch: "google-map-search";
|
|
13177
|
+
GoogleNews: "google-news";
|
|
13100
13178
|
GooglePlayApp: "googleplay-app";
|
|
13101
13179
|
GooglePlayCategories: "googleplay-categories";
|
|
13102
13180
|
GooglePlayDatasafety: "googleplay-datasafety";
|
|
@@ -13120,6 +13198,7 @@ export declare const OperationIds: Readonly<{
|
|
|
13120
13198
|
GoogleTrendsLocations: "google-trends-locations";
|
|
13121
13199
|
GoogleTrendsTrending: "google-trends-trending";
|
|
13122
13200
|
GoogleTrendsTrendingDetail: "google-trends-trending-detail";
|
|
13201
|
+
GoogleVideos: "google-videos";
|
|
13123
13202
|
InstagramPost: "instagram-post";
|
|
13124
13203
|
InstagramProfile: "instagram-profile";
|
|
13125
13204
|
InstagramReels: "instagram-reels";
|