apinoa-mcp 0.2.32 → 0.2.34

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.
@@ -139,7 +139,7 @@ const snapshot = [
139
139
  "type": "string"
140
140
  },
141
141
  "id": {
142
- "description": "AliExpress product id, as carried by a search item.",
142
+ "description": "AliExpress product id, as carried by a search item. Pass this or `url`.",
143
143
  "type": "string"
144
144
  },
145
145
  "include": {
@@ -156,11 +156,12 @@ const snapshot = [
156
156
  "region": {
157
157
  "description": "Buyer country (ISO 3166-1 alpha-2).",
158
158
  "type": "string"
159
+ },
160
+ "url": {
161
+ "description": "The product page's address instead of its id, e.g. https://www.aliexpress.com/item/1005006123456789.html (any AliExpress storefront; query string ignored). Pass this or `id`.",
162
+ "type": "string"
159
163
  }
160
164
  },
161
- "required": [
162
- "id"
163
- ],
164
165
  "type": "object"
165
166
  },
166
167
  "search": {
@@ -252,7 +253,33 @@ const snapshot = [
252
253
  "type": "object"
253
254
  }
254
255
  },
255
- "kind": "marketplace"
256
+ "kind": "marketplace",
257
+ "ops": {
258
+ "search": {
259
+ "method": "GET",
260
+ "returns": "SearchResult"
261
+ },
262
+ "browse": {
263
+ "method": "GET",
264
+ "returns": "SearchResult"
265
+ },
266
+ "categories": {
267
+ "method": "GET",
268
+ "returns": "CategoryList"
269
+ },
270
+ "image-search": {
271
+ "method": "POST",
272
+ "returns": "SearchResult"
273
+ },
274
+ "product": {
275
+ "method": "GET",
276
+ "returns": "Product"
277
+ },
278
+ "shipping": {
279
+ "method": "GET",
280
+ "returns": "ShippingQuote"
281
+ }
282
+ }
256
283
  },
257
284
  {
258
285
  "id": "amazon",
@@ -434,9 +461,10 @@ const snapshot = [
434
461
  "price_asc",
435
462
  "price_desc",
436
463
  "newly_listed",
437
- "avg_review"
464
+ "avg_review",
465
+ "best_seller"
438
466
  ],
439
- "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed` or `avg_review`. Defaults to `best_match`, Amazon's own relevance ordering."
467
+ "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `avg_review` or `best_seller`. Defaults to `best_match`, Amazon's own relevance ordering."
440
468
  }
441
469
  },
442
470
  "required": [
@@ -528,9 +556,10 @@ const snapshot = [
528
556
  "price_asc",
529
557
  "price_desc",
530
558
  "newly_listed",
531
- "avg_review"
559
+ "avg_review",
560
+ "best_seller"
532
561
  ],
533
- "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed` or `avg_review`. Defaults to `best_match`, Amazon's own relevance ordering."
562
+ "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `avg_review` or `best_seller`. Defaults to `best_match`, Amazon's own relevance ordering."
534
563
  }
535
564
  },
536
565
  "required": [
@@ -645,9 +674,10 @@ const snapshot = [
645
674
  "price_asc",
646
675
  "price_desc",
647
676
  "newly_listed",
648
- "avg_review"
677
+ "avg_review",
678
+ "best_seller"
649
679
  ],
650
- "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed` or `avg_review`. Defaults to `best_match`, Amazon's own relevance ordering."
680
+ "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `avg_review` or `best_seller`. Defaults to `best_match`, Amazon's own relevance ordering."
651
681
  }
652
682
  },
653
683
  "required": [
@@ -733,6 +763,28 @@ const snapshot = [
733
763
  "additionalProperties": false,
734
764
  "$schema": "http://json-schema.org/draft-07/schema#"
735
765
  }
766
+ },
767
+ "ops": {
768
+ "search": {
769
+ "method": "GET",
770
+ "returns": "SearchResult"
771
+ },
772
+ "image-search": {
773
+ "method": "POST",
774
+ "returns": "SearchResult"
775
+ },
776
+ "browse": {
777
+ "method": "GET",
778
+ "returns": "SearchResult"
779
+ },
780
+ "categories": {
781
+ "method": "GET",
782
+ "returns": "CategoryList"
783
+ },
784
+ "product": {
785
+ "method": "GET",
786
+ "returns": "Product"
787
+ }
736
788
  }
737
789
  },
738
790
  {
@@ -1081,6 +1133,20 @@ const snapshot = [
1081
1133
  "additionalProperties": false,
1082
1134
  "$schema": "http://json-schema.org/draft-07/schema#"
1083
1135
  }
1136
+ },
1137
+ "ops": {
1138
+ "search": {
1139
+ "method": "GET",
1140
+ "returns": "AppsPage"
1141
+ },
1142
+ "app": {
1143
+ "method": "GET",
1144
+ "returns": "App"
1145
+ },
1146
+ "reviews": {
1147
+ "method": "GET",
1148
+ "returns": "AppReviewsPage"
1149
+ }
1084
1150
  }
1085
1151
  },
1086
1152
  {
@@ -1186,6 +1252,16 @@ const snapshot = [
1186
1252
  "additionalProperties": false,
1187
1253
  "$schema": "http://json-schema.org/draft-07/schema#"
1188
1254
  }
1255
+ },
1256
+ "ops": {
1257
+ "search": {
1258
+ "method": "GET",
1259
+ "returns": "ResultsPage"
1260
+ },
1261
+ "suggestions": {
1262
+ "method": "GET",
1263
+ "returns": "Suggestions"
1264
+ }
1189
1265
  }
1190
1266
  },
1191
1267
  {
@@ -1249,6 +1325,12 @@ const snapshot = [
1249
1325
  "additionalProperties": false,
1250
1326
  "$schema": "http://json-schema.org/draft-07/schema#"
1251
1327
  }
1328
+ },
1329
+ "ops": {
1330
+ "answer": {
1331
+ "method": "POST",
1332
+ "returns": "Answer"
1333
+ }
1252
1334
  }
1253
1335
  },
1254
1336
  {
@@ -1407,6 +1489,16 @@ const snapshot = [
1407
1489
  "additionalProperties": false,
1408
1490
  "$schema": "http://json-schema.org/draft-07/schema#"
1409
1491
  }
1492
+ },
1493
+ "ops": {
1494
+ "search": {
1495
+ "method": "GET",
1496
+ "returns": "ResultsPage"
1497
+ },
1498
+ "suggestions": {
1499
+ "method": "GET",
1500
+ "returns": "Suggestions"
1501
+ }
1410
1502
  }
1411
1503
  },
1412
1504
  {
@@ -1498,6 +1590,12 @@ const snapshot = [
1498
1590
  }
1499
1591
  ],
1500
1592
  "description": "`page`: also return the answer as a self-contained HTML page, in `page`."
1593
+ },
1594
+ "near": {
1595
+ "type": "string",
1596
+ "minLength": 1,
1597
+ "maxLength": 200,
1598
+ "description": "Ask as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name (\"Austin,Texas,United States\"). A name that matches more than one place is refused with the candidates. The place must be in the country asked."
1501
1599
  }
1502
1600
  },
1503
1601
  "required": [
@@ -1506,6 +1604,12 @@ const snapshot = [
1506
1604
  "additionalProperties": false,
1507
1605
  "$schema": "http://json-schema.org/draft-07/schema#"
1508
1606
  }
1607
+ },
1608
+ "ops": {
1609
+ "answer": {
1610
+ "method": "POST",
1611
+ "returns": "Answer"
1612
+ }
1509
1613
  }
1510
1614
  },
1511
1615
  {
@@ -1541,6 +1645,12 @@ const snapshot = [
1541
1645
  "additionalProperties": false,
1542
1646
  "$schema": "http://json-schema.org/draft-07/schema#"
1543
1647
  }
1648
+ },
1649
+ "ops": {
1650
+ "technologies": {
1651
+ "method": "GET",
1652
+ "returns": "TechnologiesResult"
1653
+ }
1544
1654
  }
1545
1655
  },
1546
1656
  {
@@ -1627,6 +1737,12 @@ const snapshot = [
1627
1737
  "additionalProperties": false,
1628
1738
  "$schema": "http://json-schema.org/draft-07/schema#"
1629
1739
  }
1740
+ },
1741
+ "ops": {
1742
+ "answer": {
1743
+ "method": "POST",
1744
+ "returns": "Answer"
1745
+ }
1630
1746
  }
1631
1747
  },
1632
1748
  {
@@ -1734,6 +1850,16 @@ const snapshot = [
1734
1850
  "additionalProperties": false,
1735
1851
  "$schema": "http://json-schema.org/draft-07/schema#"
1736
1852
  }
1853
+ },
1854
+ "ops": {
1855
+ "search": {
1856
+ "method": "GET",
1857
+ "returns": "ResultsPage"
1858
+ },
1859
+ "suggestions": {
1860
+ "method": "GET",
1861
+ "returns": "Suggestions"
1862
+ }
1737
1863
  }
1738
1864
  },
1739
1865
  {
@@ -1810,6 +1936,12 @@ const snapshot = [
1810
1936
  "additionalProperties": false,
1811
1937
  "$schema": "http://json-schema.org/draft-07/schema#"
1812
1938
  }
1939
+ },
1940
+ "ops": {
1941
+ "answer": {
1942
+ "method": "POST",
1943
+ "returns": "Answer"
1944
+ }
1813
1945
  }
1814
1946
  },
1815
1947
  {
@@ -1956,15 +2088,23 @@ const snapshot = [
1956
2088
  "additionalProperties": false,
1957
2089
  "$schema": "http://json-schema.org/draft-07/schema#"
1958
2090
  }
2091
+ },
2092
+ "ops": {
2093
+ "search": {
2094
+ "method": "GET",
2095
+ "returns": "ResultsPage"
2096
+ },
2097
+ "suggestions": {
2098
+ "method": "GET",
2099
+ "returns": "Suggestions"
2100
+ }
1959
2101
  }
1960
2102
  },
1961
2103
  {
1962
2104
  "id": "facebook",
1963
2105
  "kind": "sns",
1964
2106
  "operations": [
1965
- "profile",
1966
- "profiles",
1967
- "ads"
2107
+ "profile"
1968
2108
  ],
1969
2109
  "includes": [],
1970
2110
  "regions": [
@@ -1974,14 +2114,6 @@ const snapshot = [
1974
2114
  "profile": {
1975
2115
  "base": 1,
1976
2116
  "max": 1
1977
- },
1978
- "profiles": {
1979
- "base": 1,
1980
- "max": 1
1981
- },
1982
- "ads": {
1983
- "base": 1,
1984
- "max": 1
1985
2117
  }
1986
2118
  },
1987
2119
  "params": {
@@ -1996,141 +2128,12 @@ const snapshot = [
1996
2128
  },
1997
2129
  "additionalProperties": false,
1998
2130
  "$schema": "http://json-schema.org/draft-07/schema#"
1999
- },
2000
- "profiles": {
2001
- "type": "object",
2002
- "properties": {
2003
- "query": {
2004
- "type": "string",
2005
- "minLength": 1,
2006
- "description": "An advertiser's name (or part of it): the Pages the Ad Library's search box suggests for it, each with the `id` that `ads?pageId=` takes."
2007
- },
2008
- "country": {
2009
- "type": "string",
2010
- "description": "Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default)."
2011
- },
2012
- "adType": {
2013
- "type": "string",
2014
- "enum": [
2015
- "all",
2016
- "political",
2017
- "housing",
2018
- "employment",
2019
- "credit"
2020
- ],
2021
- "description": "all (default), or one special category: political (social issues, elections or politics), housing, employment, credit."
2022
- }
2023
- },
2024
- "additionalProperties": false,
2025
- "$schema": "http://json-schema.org/draft-07/schema#"
2026
- },
2027
- "ads": {
2028
- "type": "object",
2029
- "properties": {
2030
- "query": {
2031
- "type": "string",
2032
- "minLength": 1,
2033
- "description": "Keywords to search the Ad Library for."
2034
- },
2035
- "pageId": {
2036
- "type": "string",
2037
- "pattern": "^\\d+$",
2038
- "description": "Every ad one advertiser runs: its numeric Page id (`profile` returns it as `id`; `profiles?query=` finds it by name)."
2039
- },
2040
- "exact": {
2041
- "type": "boolean",
2042
- "description": "query: match the exact phrase instead of any of its words."
2043
- },
2044
- "country": {
2045
- "type": "string",
2046
- "description": "Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default)."
2047
- },
2048
- "status": {
2049
- "type": "string",
2050
- "enum": [
2051
- "active",
2052
- "inactive",
2053
- "all"
2054
- ],
2055
- "description": "active (default), inactive or all."
2056
- },
2057
- "adType": {
2058
- "type": "string",
2059
- "enum": [
2060
- "all",
2061
- "political",
2062
- "housing",
2063
- "employment",
2064
- "credit"
2065
- ],
2066
- "description": "all (default), or one special category: political (social issues, elections or politics), housing, employment, credit."
2067
- },
2068
- "mediaType": {
2069
- "type": "string",
2070
- "enum": [
2071
- "all",
2072
- "image",
2073
- "video",
2074
- "meme",
2075
- "image_and_meme",
2076
- "none"
2077
- ],
2078
- "description": "all (default), image, video, meme, image_and_meme, none."
2079
- },
2080
- "platforms": {
2081
- "anyOf": [
2082
- {
2083
- "type": "string"
2084
- },
2085
- {
2086
- "type": "array",
2087
- "items": {
2088
- "type": "string"
2089
- }
2090
- }
2091
- ],
2092
- "description": "Only ads that ran on these platforms."
2093
- },
2094
- "languages": {
2095
- "anyOf": [
2096
- {
2097
- "type": "string"
2098
- },
2099
- {
2100
- "type": "array",
2101
- "items": {
2102
- "type": "string"
2103
- }
2104
- }
2105
- ],
2106
- "description": "Only ads in these languages (ISO 639-1)."
2107
- },
2108
- "startDate": {
2109
- "type": "string",
2110
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
2111
- "description": "Only ads that started running on or after this day (YYYY-MM-DD)."
2112
- },
2113
- "endDate": {
2114
- "type": "string",
2115
- "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
2116
- "description": "Only ads that started running on or before this day (YYYY-MM-DD)."
2117
- },
2118
- "sort": {
2119
- "type": "string",
2120
- "enum": [
2121
- "relevance",
2122
- "impressions"
2123
- ],
2124
- "description": "relevance (default), or impressions (highest first; Facebook states impressions for political ads)."
2125
- },
2126
- "cursor": {
2127
- "type": "string",
2128
- "minLength": 1,
2129
- "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
2130
- }
2131
- },
2132
- "additionalProperties": false,
2133
- "$schema": "http://json-schema.org/draft-07/schema#"
2131
+ }
2132
+ },
2133
+ "ops": {
2134
+ "profile": {
2135
+ "method": "GET",
2136
+ "returns": "Account"
2134
2137
  }
2135
2138
  }
2136
2139
  },
@@ -2210,6 +2213,12 @@ const snapshot = [
2210
2213
  }
2211
2214
  ],
2212
2215
  "description": "`page`: also return the answer as a self-contained HTML page, in `page`."
2216
+ },
2217
+ "near": {
2218
+ "type": "string",
2219
+ "minLength": 1,
2220
+ "maxLength": 200,
2221
+ "description": "Ask as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name (\"Austin,Texas,United States\"). A name that matches more than one place is refused with the candidates. The place must be in the country asked."
2213
2222
  }
2214
2223
  },
2215
2224
  "required": [
@@ -2218,6 +2227,12 @@ const snapshot = [
2218
2227
  "additionalProperties": false,
2219
2228
  "$schema": "http://json-schema.org/draft-07/schema#"
2220
2229
  }
2230
+ },
2231
+ "ops": {
2232
+ "answer": {
2233
+ "method": "POST",
2234
+ "returns": "Answer"
2235
+ }
2221
2236
  }
2222
2237
  },
2223
2238
  {
@@ -2227,7 +2242,8 @@ const snapshot = [
2227
2242
  "search",
2228
2243
  "suggestions",
2229
2244
  "places",
2230
- "place"
2245
+ "place",
2246
+ "reviews"
2231
2247
  ],
2232
2248
  "includes": [],
2233
2249
  "regions": [
@@ -2253,11 +2269,15 @@ const snapshot = [
2253
2269
  },
2254
2270
  "places": {
2255
2271
  "base": 1,
2256
- "max": 3
2272
+ "max": 5
2257
2273
  },
2258
2274
  "place": {
2259
2275
  "base": 1,
2260
2276
  "max": 1
2277
+ },
2278
+ "reviews": {
2279
+ "base": 1,
2280
+ "max": 1
2261
2281
  }
2262
2282
  },
2263
2283
  "params": {
@@ -2357,6 +2377,12 @@ const snapshot = [
2357
2377
  "maximum": 10,
2358
2378
  "description": "Result pages to read in one call (1-10), returned as one list. Instead of `limit`; each page past the first is charged as one more unit."
2359
2379
  },
2380
+ "page": {
2381
+ "type": "integer",
2382
+ "minimum": 1,
2383
+ "maximum": 10,
2384
+ "description": "The result page to start at (1-10): `page=3` reads page 3 alone, the way Google numbers its pages. With `pages` or `limit`, reading goes on from there (no further than page 10). Not with `cursor`, which already knows its page."
2385
+ },
2360
2386
  "cursor": {
2361
2387
  "type": "string",
2362
2388
  "minLength": 1,
@@ -2452,14 +2478,20 @@ const snapshot = [
2452
2478
  "limit": {
2453
2479
  "type": "integer",
2454
2480
  "minimum": 1,
2455
- "maximum": 60,
2456
- "description": "Results wanted (default 20, at most 60). More than one page is charged per page."
2481
+ "maximum": 100,
2482
+ "description": "Results wanted (default 20, at most 100). More than one page is charged per page."
2457
2483
  },
2458
2484
  "pages": {
2459
2485
  "type": "integer",
2460
2486
  "minimum": 1,
2461
- "maximum": 3,
2462
- "description": "Pages of 20 places to read in one call (1-3), returned as one list. Instead of `limit`; each page past the first is charged as one more unit."
2487
+ "maximum": 5,
2488
+ "description": "Pages of 20 places to read in one call (1-5), returned as one list. Instead of `limit`; each page past the first is charged as one more unit."
2489
+ },
2490
+ "page": {
2491
+ "type": "integer",
2492
+ "minimum": 1,
2493
+ "maximum": 5,
2494
+ "description": "The page of 20 places to start at (1-5): `page=3` reads places 41-60 alone. With `pages` or `limit`, reading goes on from there (no further than page 5). Not with `cursor`, which already knows its page."
2463
2495
  },
2464
2496
  "cursor": {
2465
2497
  "type": "string",
@@ -2492,6 +2524,269 @@ const snapshot = [
2492
2524
  },
2493
2525
  "additionalProperties": false,
2494
2526
  "$schema": "http://json-schema.org/draft-07/schema#"
2527
+ },
2528
+ "reviews": {
2529
+ "type": "object",
2530
+ "properties": {
2531
+ "place": {
2532
+ "type": "string",
2533
+ "pattern": "0x[0-9a-f]{1,16}:0x[0-9a-f]{1,16}",
2534
+ "description": "The place's id, as `places` returns it."
2535
+ },
2536
+ "url": {
2537
+ "type": "string",
2538
+ "format": "uri",
2539
+ "pattern": "0x[0-9a-f]{1,16}:0x[0-9a-f]{1,16}",
2540
+ "description": "A Google Maps place URL."
2541
+ },
2542
+ "sort": {
2543
+ "type": "string",
2544
+ "enum": [
2545
+ "relevant",
2546
+ "newest",
2547
+ "highest",
2548
+ "lowest"
2549
+ ],
2550
+ "description": "Review order: most relevant (default), newest, highest or lowest rated. Each order gives its own five reviews."
2551
+ },
2552
+ "lang": {
2553
+ "type": "string",
2554
+ "pattern": "^[a-z]{2}(-[A-Z]{2})?$",
2555
+ "description": "Interface language."
2556
+ }
2557
+ },
2558
+ "additionalProperties": false,
2559
+ "$schema": "http://json-schema.org/draft-07/schema#"
2560
+ }
2561
+ },
2562
+ "ops": {
2563
+ "search": {
2564
+ "method": "GET",
2565
+ "returns": "ResultsPage"
2566
+ },
2567
+ "suggestions": {
2568
+ "method": "GET",
2569
+ "returns": "Suggestions"
2570
+ },
2571
+ "places": {
2572
+ "method": "GET",
2573
+ "returns": "PlacesPage"
2574
+ },
2575
+ "place": {
2576
+ "method": "GET",
2577
+ "returns": "SerpPlace"
2578
+ },
2579
+ "reviews": {
2580
+ "method": "GET",
2581
+ "returns": "PlaceReviewsPage"
2582
+ }
2583
+ }
2584
+ },
2585
+ {
2586
+ "id": "google-ads",
2587
+ "kind": "ads",
2588
+ "operations": [
2589
+ "advertisers",
2590
+ "advertiser",
2591
+ "ads",
2592
+ "ad"
2593
+ ],
2594
+ "includes": [],
2595
+ "regions": [
2596
+ "US"
2597
+ ],
2598
+ "cost": {
2599
+ "advertisers": {
2600
+ "base": 1,
2601
+ "max": 1
2602
+ },
2603
+ "advertiser": {
2604
+ "base": 1,
2605
+ "max": 1
2606
+ },
2607
+ "ads": {
2608
+ "base": 1,
2609
+ "max": 1
2610
+ },
2611
+ "ad": {
2612
+ "base": 1,
2613
+ "max": 11
2614
+ }
2615
+ },
2616
+ "params": {
2617
+ "advertisers": {
2618
+ "type": "object",
2619
+ "properties": {
2620
+ "query": {
2621
+ "type": "string",
2622
+ "minLength": 1,
2623
+ "description": "An advertiser's name or a website: the advertisers whose name matches, each with the `id` that `ads?advertiser=` takes, and the matching websites (for `ads?domain=`)."
2624
+ },
2625
+ "country": {
2626
+ "type": "string",
2627
+ "description": "Only advertisers whose ads were shown in this country (ISO 3166-1 alpha-2). Default: anywhere."
2628
+ },
2629
+ "limit": {
2630
+ "type": "integer",
2631
+ "minimum": 1,
2632
+ "maximum": 100,
2633
+ "description": "Advertisers per page, 1–100. Up to 10 (the default) also lists matching websites; more pages through every advertiser that matches."
2634
+ },
2635
+ "cursor": {
2636
+ "type": "string",
2637
+ "minLength": 1,
2638
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
2639
+ }
2640
+ },
2641
+ "additionalProperties": false,
2642
+ "$schema": "http://json-schema.org/draft-07/schema#"
2643
+ },
2644
+ "advertiser": {
2645
+ "type": "object",
2646
+ "properties": {
2647
+ "id": {
2648
+ "type": "string",
2649
+ "minLength": 1,
2650
+ "description": "The advertiser id (AR…), or its Transparency Center URL."
2651
+ },
2652
+ "country": {
2653
+ "type": "string",
2654
+ "description": "The country to read the advertiser for (ISO 3166-1 alpha-2). Default: anywhere."
2655
+ }
2656
+ },
2657
+ "additionalProperties": false,
2658
+ "$schema": "http://json-schema.org/draft-07/schema#"
2659
+ },
2660
+ "ads": {
2661
+ "type": "object",
2662
+ "properties": {
2663
+ "advertiser": {
2664
+ "anyOf": [
2665
+ {
2666
+ "type": "string"
2667
+ },
2668
+ {
2669
+ "type": "array",
2670
+ "items": {
2671
+ "type": "string"
2672
+ }
2673
+ }
2674
+ ],
2675
+ "description": "Every ad these advertisers ran: up to 10 advertiser ids (AR…), comma-separated (`advertisers?query=` finds one by name)."
2676
+ },
2677
+ "domain": {
2678
+ "type": "string",
2679
+ "description": "Every ad that leads to this website (nike.com), whichever advertiser ran it."
2680
+ },
2681
+ "country": {
2682
+ "type": "string",
2683
+ "description": "Only ads shown in this country (ISO 3166-1 alpha-2). Default: anywhere."
2684
+ },
2685
+ "platform": {
2686
+ "type": "string",
2687
+ "enum": [
2688
+ "play",
2689
+ "maps",
2690
+ "search",
2691
+ "shopping",
2692
+ "youtube"
2693
+ ],
2694
+ "description": "Only ads shown on this Google platform: search, youtube, shopping, maps or play."
2695
+ },
2696
+ "format": {
2697
+ "type": "string",
2698
+ "enum": [
2699
+ "text",
2700
+ "image",
2701
+ "video"
2702
+ ],
2703
+ "description": "Only ads of this format: text, image or video."
2704
+ },
2705
+ "startDate": {
2706
+ "type": "string",
2707
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
2708
+ "description": "Only ads shown on or after this day (YYYY-MM-DD)."
2709
+ },
2710
+ "endDate": {
2711
+ "type": "string",
2712
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
2713
+ "description": "Only ads shown on or before this day (YYYY-MM-DD)."
2714
+ },
2715
+ "political": {
2716
+ "type": "boolean",
2717
+ "description": "Political ads only (the Transparency Center's political ads report): these state impressions, spend and regions."
2718
+ },
2719
+ "limit": {
2720
+ "type": "integer",
2721
+ "minimum": 1,
2722
+ "maximum": 100,
2723
+ "description": "Ads per page, 1–100 (default 40)."
2724
+ },
2725
+ "cursor": {
2726
+ "type": "string",
2727
+ "minLength": 1,
2728
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
2729
+ }
2730
+ },
2731
+ "additionalProperties": false,
2732
+ "$schema": "http://json-schema.org/draft-07/schema#"
2733
+ },
2734
+ "ad": {
2735
+ "type": "object",
2736
+ "properties": {
2737
+ "id": {
2738
+ "type": "string",
2739
+ "minLength": 1,
2740
+ "description": "The ad's id (CR…) with `advertiser`, or the ad's Transparency Center URL (…/advertiser/AR…/creative/CR…)."
2741
+ },
2742
+ "advertiser": {
2743
+ "type": "string",
2744
+ "pattern": "^AR\\d{10,30}$",
2745
+ "description": "The advertiser id (AR…) that ran the ad; not needed with the ad's URL."
2746
+ },
2747
+ "country": {
2748
+ "type": "string",
2749
+ "description": "The country to read the ad for: it decides which countries come back, and in the EU their impressions. Default: the URL's region, else anywhere."
2750
+ },
2751
+ "political": {
2752
+ "type": "boolean",
2753
+ "description": "Read the ad from the political ads report (as `ads?political=true` lists it)."
2754
+ },
2755
+ "include": {
2756
+ "anyOf": [
2757
+ {
2758
+ "type": "string"
2759
+ },
2760
+ {
2761
+ "type": "array",
2762
+ "items": {
2763
+ "type": "string"
2764
+ }
2765
+ }
2766
+ ],
2767
+ "description": "content: also read each version's preview — the ad's text and pictures as it shows them, in `cards`. Best-effort: one unit per preview read; a preview that cannot be read is not billed and the ad is still returned."
2768
+ }
2769
+ },
2770
+ "additionalProperties": false,
2771
+ "$schema": "http://json-schema.org/draft-07/schema#"
2772
+ }
2773
+ },
2774
+ "ops": {
2775
+ "advertisers": {
2776
+ "method": "GET",
2777
+ "returns": "AdvertiserPage"
2778
+ },
2779
+ "advertiser": {
2780
+ "method": "GET",
2781
+ "returns": "Advertiser"
2782
+ },
2783
+ "ads": {
2784
+ "method": "GET",
2785
+ "returns": "AdPage"
2786
+ },
2787
+ "ad": {
2788
+ "method": "GET",
2789
+ "returns": "Ad"
2495
2790
  }
2496
2791
  }
2497
2792
  },
@@ -2575,6 +2870,12 @@ const snapshot = [
2575
2870
  "additionalProperties": false,
2576
2871
  "$schema": "http://json-schema.org/draft-07/schema#"
2577
2872
  }
2873
+ },
2874
+ "ops": {
2875
+ "answer": {
2876
+ "method": "POST",
2877
+ "returns": "Answer"
2878
+ }
2578
2879
  }
2579
2880
  },
2580
2881
  {
@@ -2651,6 +2952,12 @@ const snapshot = [
2651
2952
  "additionalProperties": false,
2652
2953
  "$schema": "http://json-schema.org/draft-07/schema#"
2653
2954
  }
2955
+ },
2956
+ "ops": {
2957
+ "answer": {
2958
+ "method": "POST",
2959
+ "returns": "Answer"
2960
+ }
2654
2961
  }
2655
2962
  },
2656
2963
  {
@@ -3013,6 +3320,20 @@ const snapshot = [
3013
3320
  "additionalProperties": false,
3014
3321
  "$schema": "http://json-schema.org/draft-07/schema#"
3015
3322
  }
3323
+ },
3324
+ "ops": {
3325
+ "search": {
3326
+ "method": "GET",
3327
+ "returns": "AppsPage"
3328
+ },
3329
+ "app": {
3330
+ "method": "GET",
3331
+ "returns": "App"
3332
+ },
3333
+ "reviews": {
3334
+ "method": "GET",
3335
+ "returns": "AppReviewsPage"
3336
+ }
3016
3337
  }
3017
3338
  },
3018
3339
  {
@@ -3127,6 +3448,17 @@ const snapshot = [
3127
3448
  ],
3128
3449
  "description": "The market, ISO 3166-1 alpha-2: US (default), GB, CA, AU. Sets the shops, prices and currency."
3129
3450
  },
3451
+ "near": {
3452
+ "type": "string",
3453
+ "minLength": 1,
3454
+ "maxLength": 200,
3455
+ "description": "Shop as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name. It must be in the market asked (`region`). A name that matches more than one place is refused with the candidates."
3456
+ },
3457
+ "uule": {
3458
+ "type": "string",
3459
+ "pattern": "^[wa][+ ][A-Za-z0-9+/_-]+={0,2}$",
3460
+ "description": "Search as if from this place, as Google's own `uule` value (`w+…`). Instead of `near`."
3461
+ },
3130
3462
  "cursor": {
3131
3463
  "type": "string",
3132
3464
  "description": "Next page: pass the previous result's `cursor` alone."
@@ -3161,6 +3493,17 @@ const snapshot = [
3161
3493
  "AU"
3162
3494
  ],
3163
3495
  "description": "The market, ISO 3166-1 alpha-2: US (default), GB, CA, AU. Sets the shops, prices and currency."
3496
+ },
3497
+ "near": {
3498
+ "type": "string",
3499
+ "minLength": 1,
3500
+ "maxLength": 200,
3501
+ "description": "Shop as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name. It must be in the market asked (`region`). A name that matches more than one place is refused with the candidates."
3502
+ },
3503
+ "uule": {
3504
+ "type": "string",
3505
+ "pattern": "^[wa][+ ][A-Za-z0-9+/_-]+={0,2}$",
3506
+ "description": "Search as if from this place, as Google's own `uule` value (`w+…`). Instead of `near`."
3164
3507
  }
3165
3508
  },
3166
3509
  "additionalProperties": false,
@@ -3187,6 +3530,20 @@ const snapshot = [
3187
3530
  "additionalProperties": false,
3188
3531
  "$schema": "http://json-schema.org/draft-07/schema#"
3189
3532
  }
3533
+ },
3534
+ "ops": {
3535
+ "search": {
3536
+ "method": "GET",
3537
+ "returns": "SearchResult"
3538
+ },
3539
+ "product": {
3540
+ "method": "GET",
3541
+ "returns": "Product"
3542
+ },
3543
+ "reviews": {
3544
+ "method": "GET",
3545
+ "returns": "ReviewPage"
3546
+ }
3190
3547
  }
3191
3548
  },
3192
3549
  {
@@ -3980,6 +4337,16 @@ const snapshot = [
3980
4337
  "additionalProperties": false,
3981
4338
  "$schema": "http://json-schema.org/draft-07/schema#"
3982
4339
  }
4340
+ },
4341
+ "ops": {
4342
+ "explore": {
4343
+ "method": "GET",
4344
+ "returns": "TrendsExplore"
4345
+ },
4346
+ "trending": {
4347
+ "method": "GET",
4348
+ "returns": "TrendingPage"
4349
+ }
3983
4350
  }
3984
4351
  },
3985
4352
  {
@@ -4195,16 +4562,42 @@ const snapshot = [
4195
4562
  "additionalProperties": false,
4196
4563
  "$schema": "http://json-schema.org/draft-07/schema#"
4197
4564
  }
4198
- }
4199
- },
4200
- {
4201
- "id": "linkedin",
4202
- "kind": "sns",
4203
- "operations": [
4204
- "profile",
4205
- "post",
4206
- "posts",
4207
- "comments",
4565
+ },
4566
+ "ops": {
4567
+ "profile": {
4568
+ "method": "GET",
4569
+ "returns": "Account"
4570
+ },
4571
+ "post": {
4572
+ "method": "GET",
4573
+ "returns": "Post"
4574
+ },
4575
+ "posts": {
4576
+ "method": "GET",
4577
+ "returns": "PostPage"
4578
+ },
4579
+ "comments": {
4580
+ "method": "GET",
4581
+ "returns": "CommentPage"
4582
+ },
4583
+ "group": {
4584
+ "method": "GET",
4585
+ "returns": "Group"
4586
+ },
4587
+ "groups": {
4588
+ "method": "GET",
4589
+ "returns": "GroupPage"
4590
+ }
4591
+ }
4592
+ },
4593
+ {
4594
+ "id": "linkedin",
4595
+ "kind": "sns",
4596
+ "operations": [
4597
+ "profile",
4598
+ "post",
4599
+ "posts",
4600
+ "comments",
4208
4601
  "group",
4209
4602
  "job",
4210
4603
  "jobs"
@@ -4351,6 +4744,311 @@ const snapshot = [
4351
4744
  "minLength": 1,
4352
4745
  "description": "Location name (e.g. United States). Default: worldwide."
4353
4746
  },
4747
+ "postedWithin": {
4748
+ "type": "string",
4749
+ "enum": [
4750
+ "day",
4751
+ "week",
4752
+ "month"
4753
+ ],
4754
+ "description": "Only jobs posted within the past day, week, or month."
4755
+ },
4756
+ "cursor": {
4757
+ "type": "string",
4758
+ "minLength": 1,
4759
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
4760
+ }
4761
+ },
4762
+ "additionalProperties": false,
4763
+ "$schema": "http://json-schema.org/draft-07/schema#"
4764
+ }
4765
+ },
4766
+ "ops": {
4767
+ "profile": {
4768
+ "method": "GET",
4769
+ "returns": "Account"
4770
+ },
4771
+ "post": {
4772
+ "method": "GET",
4773
+ "returns": "Post"
4774
+ },
4775
+ "posts": {
4776
+ "method": "GET",
4777
+ "returns": "PostPage"
4778
+ },
4779
+ "comments": {
4780
+ "method": "GET",
4781
+ "returns": "CommentPage"
4782
+ },
4783
+ "group": {
4784
+ "method": "GET",
4785
+ "returns": "Group"
4786
+ },
4787
+ "job": {
4788
+ "method": "GET",
4789
+ "returns": "Job"
4790
+ },
4791
+ "jobs": {
4792
+ "method": "GET",
4793
+ "returns": "JobPage"
4794
+ }
4795
+ }
4796
+ },
4797
+ {
4798
+ "id": "linkedin-ads",
4799
+ "kind": "ads",
4800
+ "operations": [
4801
+ "ads",
4802
+ "ad"
4803
+ ],
4804
+ "includes": [],
4805
+ "regions": [
4806
+ "US"
4807
+ ],
4808
+ "cost": {
4809
+ "ads": {
4810
+ "base": 1,
4811
+ "max": 1
4812
+ },
4813
+ "ad": {
4814
+ "base": 1,
4815
+ "max": 1
4816
+ }
4817
+ },
4818
+ "params": {
4819
+ "ads": {
4820
+ "type": "object",
4821
+ "properties": {
4822
+ "query": {
4823
+ "type": "string",
4824
+ "minLength": 1,
4825
+ "description": "Keywords to search the Ad Library for."
4826
+ },
4827
+ "advertiser": {
4828
+ "type": "string",
4829
+ "minLength": 1,
4830
+ "description": "Every ad one company runs, by its numeric LinkedIn company id (an ad's `advertiser.id`)."
4831
+ },
4832
+ "company": {
4833
+ "type": "string",
4834
+ "minLength": 1,
4835
+ "description": "Every ad one company runs: its vanity name (e.g. microsoft), its company URL, or its numeric LinkedIn company id."
4836
+ },
4837
+ "advertiserName": {
4838
+ "type": "string",
4839
+ "minLength": 1,
4840
+ "description": "Ads from advertisers whose name matches this one (LinkedIn matches loosely: \"Microsoft\" also finds \"Microsoft Azure\"). For one company exactly, use `advertiser` or `company`."
4841
+ },
4842
+ "payer": {
4843
+ "type": "string",
4844
+ "minLength": 1,
4845
+ "description": "Ads paid for by this payer, as an ad's `paidBy` names it."
4846
+ },
4847
+ "country": {
4848
+ "anyOf": [
4849
+ {
4850
+ "type": "string"
4851
+ },
4852
+ {
4853
+ "type": "array",
4854
+ "items": {
4855
+ "type": "string"
4856
+ }
4857
+ }
4858
+ ],
4859
+ "description": "Only ads shown in these countries: ISO 3166-1 alpha-2 codes, comma-separated (e.g. DE,FR). Default: every country."
4860
+ },
4861
+ "dateOption": {
4862
+ "type": "string",
4863
+ "enum": [
4864
+ "last-30-days",
4865
+ "current-month",
4866
+ "current-year",
4867
+ "last-year"
4868
+ ],
4869
+ "description": "Only ads shown in this window: last-30-days, current-month, current-year or last-year. Default: the last twelve months."
4870
+ },
4871
+ "startDate": {
4872
+ "type": "string",
4873
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
4874
+ "description": "With endDate: only ads shown from this day (YYYY-MM-DD), at most twelve months back."
4875
+ },
4876
+ "endDate": {
4877
+ "type": "string",
4878
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
4879
+ "description": "With startDate: only ads shown up to this day (YYYY-MM-DD)."
4880
+ },
4881
+ "sort": {
4882
+ "type": "string",
4883
+ "enum": [
4884
+ "newest",
4885
+ "oldest"
4886
+ ],
4887
+ "description": "newest first (default) or oldest first."
4888
+ },
4889
+ "cursor": {
4890
+ "type": "string",
4891
+ "minLength": 1,
4892
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
4893
+ }
4894
+ },
4895
+ "additionalProperties": false,
4896
+ "$schema": "http://json-schema.org/draft-07/schema#"
4897
+ },
4898
+ "ad": {
4899
+ "type": "object",
4900
+ "properties": {
4901
+ "id": {
4902
+ "type": "string",
4903
+ "minLength": 1,
4904
+ "description": "The ad's Ad Library id, or its Ad Library URL (linkedin.com/ad-library/detail/<id>)."
4905
+ }
4906
+ },
4907
+ "additionalProperties": false,
4908
+ "$schema": "http://json-schema.org/draft-07/schema#"
4909
+ }
4910
+ },
4911
+ "ops": {
4912
+ "ads": {
4913
+ "method": "GET",
4914
+ "returns": "AdPage"
4915
+ },
4916
+ "ad": {
4917
+ "method": "GET",
4918
+ "returns": "Ad"
4919
+ }
4920
+ }
4921
+ },
4922
+ {
4923
+ "id": "meta-ads",
4924
+ "kind": "ads",
4925
+ "operations": [
4926
+ "ads",
4927
+ "advertisers"
4928
+ ],
4929
+ "includes": [],
4930
+ "regions": [
4931
+ "US"
4932
+ ],
4933
+ "cost": {
4934
+ "ads": {
4935
+ "base": 1,
4936
+ "max": 1
4937
+ },
4938
+ "advertisers": {
4939
+ "base": 1,
4940
+ "max": 1
4941
+ }
4942
+ },
4943
+ "params": {
4944
+ "ads": {
4945
+ "type": "object",
4946
+ "properties": {
4947
+ "query": {
4948
+ "type": "string",
4949
+ "minLength": 1,
4950
+ "description": "Keywords to search the Ad Library for."
4951
+ },
4952
+ "advertiser": {
4953
+ "anyOf": [
4954
+ {
4955
+ "type": "string"
4956
+ },
4957
+ {
4958
+ "type": "array",
4959
+ "items": {
4960
+ "type": "string"
4961
+ }
4962
+ }
4963
+ ],
4964
+ "description": "The advertiser's id, as `advertisers` returns it (or an ad's `advertiser.id`): every ad it runs. With `query`, up to 10 ids, comma-separated, narrow the keyword search to those advertisers."
4965
+ },
4966
+ "exact": {
4967
+ "type": "boolean",
4968
+ "description": "query: match the exact phrase instead of any of its words."
4969
+ },
4970
+ "country": {
4971
+ "type": "string",
4972
+ "description": "Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default)."
4973
+ },
4974
+ "status": {
4975
+ "type": "string",
4976
+ "enum": [
4977
+ "active",
4978
+ "inactive",
4979
+ "all"
4980
+ ],
4981
+ "description": "active (default), inactive or all."
4982
+ },
4983
+ "adType": {
4984
+ "type": "string",
4985
+ "enum": [
4986
+ "all",
4987
+ "political",
4988
+ "housing",
4989
+ "employment",
4990
+ "credit"
4991
+ ],
4992
+ "description": "all (default), or one special category: political (social issues, elections or politics), housing, employment, credit."
4993
+ },
4994
+ "mediaType": {
4995
+ "type": "string",
4996
+ "enum": [
4997
+ "all",
4998
+ "image",
4999
+ "video",
5000
+ "meme",
5001
+ "image_and_meme",
5002
+ "none"
5003
+ ],
5004
+ "description": "all (default), image, video, meme, image_and_meme, none."
5005
+ },
5006
+ "platforms": {
5007
+ "anyOf": [
5008
+ {
5009
+ "type": "string"
5010
+ },
5011
+ {
5012
+ "type": "array",
5013
+ "items": {
5014
+ "type": "string"
5015
+ }
5016
+ }
5017
+ ],
5018
+ "description": "Only ads that ran on these platforms."
5019
+ },
5020
+ "languages": {
5021
+ "anyOf": [
5022
+ {
5023
+ "type": "string"
5024
+ },
5025
+ {
5026
+ "type": "array",
5027
+ "items": {
5028
+ "type": "string"
5029
+ }
5030
+ }
5031
+ ],
5032
+ "description": "Only ads in these languages (ISO 639-1)."
5033
+ },
5034
+ "startDate": {
5035
+ "type": "string",
5036
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
5037
+ "description": "Only ads that started running on or after this day (YYYY-MM-DD)."
5038
+ },
5039
+ "endDate": {
5040
+ "type": "string",
5041
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
5042
+ "description": "Only ads that started running on or before this day (YYYY-MM-DD)."
5043
+ },
5044
+ "sort": {
5045
+ "type": "string",
5046
+ "enum": [
5047
+ "relevance",
5048
+ "impressions"
5049
+ ],
5050
+ "description": "relevance (default), or impressions (highest first; Facebook states impressions for political ads)."
5051
+ },
4354
5052
  "cursor": {
4355
5053
  "type": "string",
4356
5054
  "minLength": 1,
@@ -4359,6 +5057,47 @@ const snapshot = [
4359
5057
  },
4360
5058
  "additionalProperties": false,
4361
5059
  "$schema": "http://json-schema.org/draft-07/schema#"
5060
+ },
5061
+ "advertisers": {
5062
+ "type": "object",
5063
+ "properties": {
5064
+ "query": {
5065
+ "type": "string",
5066
+ "minLength": 1,
5067
+ "maxLength": 200,
5068
+ "description": "An advertiser's name (or part of it): the advertisers the Ad Library's search box suggests, each with the `id` that `ads?advertiser=` takes."
5069
+ },
5070
+ "country": {
5071
+ "type": "string",
5072
+ "description": "Where the ads ran: an ISO 3166-1 alpha-2 code, or ALL (default)."
5073
+ },
5074
+ "adType": {
5075
+ "type": "string",
5076
+ "enum": [
5077
+ "all",
5078
+ "political",
5079
+ "housing",
5080
+ "employment",
5081
+ "credit"
5082
+ ],
5083
+ "description": "all (default), or one special category: political (social issues, elections or politics), housing, employment, credit."
5084
+ }
5085
+ },
5086
+ "required": [
5087
+ "query"
5088
+ ],
5089
+ "additionalProperties": false,
5090
+ "$schema": "http://json-schema.org/draft-07/schema#"
5091
+ }
5092
+ },
5093
+ "ops": {
5094
+ "ads": {
5095
+ "method": "GET",
5096
+ "returns": "AdPage"
5097
+ },
5098
+ "advertisers": {
5099
+ "method": "GET",
5100
+ "returns": "AdvertiserPage"
4362
5101
  }
4363
5102
  }
4364
5103
  },
@@ -4418,6 +5157,12 @@ const snapshot = [
4418
5157
  }
4419
5158
  ],
4420
5159
  "description": "`page`: also return the answer as a self-contained HTML page, in `page`."
5160
+ },
5161
+ "near": {
5162
+ "type": "string",
5163
+ "minLength": 1,
5164
+ "maxLength": 200,
5165
+ "description": "Ask as if from this place: a city, region or US state (\"Austin, Texas\", \"Austin, TX\", \"Texas\"), or Google's canonical location name (\"Austin,Texas,United States\"). A name that matches more than one place is refused with the candidates. The place must be in the country asked."
4421
5166
  }
4422
5167
  },
4423
5168
  "required": [
@@ -4426,6 +5171,12 @@ const snapshot = [
4426
5171
  "additionalProperties": false,
4427
5172
  "$schema": "http://json-schema.org/draft-07/schema#"
4428
5173
  }
5174
+ },
5175
+ "ops": {
5176
+ "answer": {
5177
+ "method": "POST",
5178
+ "returns": "Answer"
5179
+ }
4429
5180
  }
4430
5181
  },
4431
5182
  {
@@ -4646,6 +5397,28 @@ const snapshot = [
4646
5397
  "additionalProperties": false,
4647
5398
  "$schema": "http://json-schema.org/draft-07/schema#"
4648
5399
  }
5400
+ },
5401
+ "ops": {
5402
+ "search": {
5403
+ "method": "GET",
5404
+ "returns": "ResultsPage"
5405
+ },
5406
+ "suggestions": {
5407
+ "method": "GET",
5408
+ "returns": "Suggestions"
5409
+ },
5410
+ "places": {
5411
+ "method": "GET",
5412
+ "returns": "PlacesPage"
5413
+ },
5414
+ "place": {
5415
+ "method": "GET",
5416
+ "returns": "SerpPlace"
5417
+ },
5418
+ "reviews": {
5419
+ "method": "GET",
5420
+ "returns": "PlaceReviewsPage"
5421
+ }
4649
5422
  }
4650
5423
  },
4651
5424
  {
@@ -4706,6 +5479,12 @@ const snapshot = [
4706
5479
  "additionalProperties": false,
4707
5480
  "$schema": "http://json-schema.org/draft-07/schema#"
4708
5481
  }
5482
+ },
5483
+ "ops": {
5484
+ "answer": {
5485
+ "method": "POST",
5486
+ "returns": "Answer"
5487
+ }
4709
5488
  }
4710
5489
  },
4711
5490
  {
@@ -4772,6 +5551,12 @@ const snapshot = [
4772
5551
  "additionalProperties": false,
4773
5552
  "$schema": "http://json-schema.org/draft-07/schema#"
4774
5553
  }
5554
+ },
5555
+ "ops": {
5556
+ "answer": {
5557
+ "method": "POST",
5558
+ "returns": "Answer"
5559
+ }
4775
5560
  }
4776
5561
  },
4777
5562
  {
@@ -4847,6 +5632,12 @@ const snapshot = [
4847
5632
  "additionalProperties": false,
4848
5633
  "$schema": "http://json-schema.org/draft-07/schema#"
4849
5634
  }
5635
+ },
5636
+ "ops": {
5637
+ "answer": {
5638
+ "method": "POST",
5639
+ "returns": "Answer"
5640
+ }
4850
5641
  }
4851
5642
  },
4852
5643
  {
@@ -4887,13 +5678,13 @@ const snapshot = [
4887
5678
  }
4888
5679
  }
4889
5680
  ],
4890
- "description": "Extra fields, comma-separated: `html` (the page as fetched), `contentHtml` (its main content as HTML)."
5681
+ "description": "Extra fields, comma-separated: `html` (the page as fetched), `contentHtml` (its main content as HTML), `text` (its main content as plain text), `links` (the links in its main content), `images` (the images in its main content)."
4891
5682
  },
4892
5683
  "maxChars": {
4893
5684
  "type": "integer",
4894
5685
  "minimum": 100,
4895
5686
  "maximum": 1000000,
4896
- "description": "Cut `markdown` to at most this many characters, at a paragraph break where one is near; `truncated` is then true."
5687
+ "description": "Cut `markdown` (and `text`) to at most this many characters, at a paragraph break where one is near; `truncated` is then true."
4897
5688
  },
4898
5689
  "country": {
4899
5690
  "type": "string",
@@ -4910,6 +5701,12 @@ const snapshot = [
4910
5701
  "additionalProperties": false,
4911
5702
  "$schema": "http://json-schema.org/draft-07/schema#"
4912
5703
  }
5704
+ },
5705
+ "ops": {
5706
+ "page": {
5707
+ "method": "GET",
5708
+ "returns": "ReaderPage"
5709
+ }
4913
5710
  }
4914
5711
  },
4915
5712
  {
@@ -5266,6 +6063,36 @@ const snapshot = [
5266
6063
  "additionalProperties": false,
5267
6064
  "$schema": "http://json-schema.org/draft-07/schema#"
5268
6065
  }
6066
+ },
6067
+ "ops": {
6068
+ "profile": {
6069
+ "method": "GET",
6070
+ "returns": "Account"
6071
+ },
6072
+ "profiles": {
6073
+ "method": "GET",
6074
+ "returns": "AccountPage"
6075
+ },
6076
+ "post": {
6077
+ "method": "GET",
6078
+ "returns": "Post"
6079
+ },
6080
+ "posts": {
6081
+ "method": "GET",
6082
+ "returns": "PostPage"
6083
+ },
6084
+ "comments": {
6085
+ "method": "GET",
6086
+ "returns": "CommentPage"
6087
+ },
6088
+ "group": {
6089
+ "method": "GET",
6090
+ "returns": "Group"
6091
+ },
6092
+ "groups": {
6093
+ "method": "GET",
6094
+ "returns": "GroupPage"
6095
+ }
5269
6096
  }
5270
6097
  },
5271
6098
  {
@@ -5373,6 +6200,16 @@ const snapshot = [
5373
6200
  "additionalProperties": false,
5374
6201
  "$schema": "http://json-schema.org/draft-07/schema#"
5375
6202
  }
6203
+ },
6204
+ "ops": {
6205
+ "search": {
6206
+ "method": "GET",
6207
+ "returns": "ResultsPage"
6208
+ },
6209
+ "suggestions": {
6210
+ "method": "GET",
6211
+ "returns": "Suggestions"
6212
+ }
5376
6213
  }
5377
6214
  },
5378
6215
  {
@@ -5661,6 +6498,28 @@ const snapshot = [
5661
6498
  "additionalProperties": false,
5662
6499
  "$schema": "http://json-schema.org/draft-07/schema#"
5663
6500
  }
6501
+ },
6502
+ "ops": {
6503
+ "search": {
6504
+ "method": "GET",
6505
+ "returns": "SearchResult"
6506
+ },
6507
+ "image-search": {
6508
+ "method": "POST",
6509
+ "returns": "SearchResult"
6510
+ },
6511
+ "catalog": {
6512
+ "method": "GET",
6513
+ "returns": "SearchResult"
6514
+ },
6515
+ "product": {
6516
+ "method": "GET",
6517
+ "returns": "Product"
6518
+ },
6519
+ "reviews": {
6520
+ "method": "GET",
6521
+ "returns": "ReviewPage"
6522
+ }
5664
6523
  }
5665
6524
  },
5666
6525
  {
@@ -5768,6 +6627,16 @@ const snapshot = [
5768
6627
  "additionalProperties": false,
5769
6628
  "$schema": "http://json-schema.org/draft-07/schema#"
5770
6629
  }
6630
+ },
6631
+ "ops": {
6632
+ "search": {
6633
+ "method": "GET",
6634
+ "returns": "ResultsPage"
6635
+ },
6636
+ "suggestions": {
6637
+ "method": "GET",
6638
+ "returns": "Suggestions"
6639
+ }
5771
6640
  }
5772
6641
  },
5773
6642
  {
@@ -5956,6 +6825,24 @@ const snapshot = [
5956
6825
  "additionalProperties": false,
5957
6826
  "$schema": "http://json-schema.org/draft-07/schema#"
5958
6827
  }
6828
+ },
6829
+ "ops": {
6830
+ "profile": {
6831
+ "method": "GET",
6832
+ "returns": "Account"
6833
+ },
6834
+ "post": {
6835
+ "method": "GET",
6836
+ "returns": "Post"
6837
+ },
6838
+ "posts": {
6839
+ "method": "GET",
6840
+ "returns": "PostPage"
6841
+ },
6842
+ "comments": {
6843
+ "method": "GET",
6844
+ "returns": "CommentPage"
6845
+ }
5959
6846
  }
5960
6847
  },
5961
6848
  {
@@ -6061,90 +6948,358 @@ const snapshot = [
6061
6948
  "post": {
6062
6949
  "type": "object",
6063
6950
  "properties": {
6064
- "id": {
6951
+ "id": {
6952
+ "type": "string",
6953
+ "minLength": 1,
6954
+ "description": "Numeric video id, or the video URL / share link (vm.tiktok.com/…)."
6955
+ }
6956
+ },
6957
+ "additionalProperties": false,
6958
+ "$schema": "http://json-schema.org/draft-07/schema#"
6959
+ },
6960
+ "posts": {
6961
+ "type": "object",
6962
+ "properties": {
6963
+ "username": {
6964
+ "type": "string",
6965
+ "minLength": 1,
6966
+ "description": "Creator @handle (with or without @), or the profile URL."
6967
+ },
6968
+ "userId": {
6969
+ "type": "string",
6970
+ "minLength": 1,
6971
+ "description": "Creator secUid. Pass it instead of a username to save the lookup (1 unit instead of 2)."
6972
+ },
6973
+ "type": {
6974
+ "type": "string",
6975
+ "enum": [
6976
+ "posts",
6977
+ "reposts",
6978
+ "likes"
6979
+ ],
6980
+ "description": "username/userId: the creator's posts (default), reposts or likes."
6981
+ },
6982
+ "hashtag": {
6983
+ "type": "string",
6984
+ "minLength": 1,
6985
+ "description": "Videos under a hashtag: its name, or its numeric id (saves the lookup). A hashtag that is itself a number takes its # (#2024)."
6986
+ },
6987
+ "sound": {
6988
+ "type": "string",
6989
+ "minLength": 1,
6990
+ "description": "Videos using a sound: sound id or URL (…/music/-<id>)."
6991
+ },
6992
+ "playlist": {
6993
+ "type": "string",
6994
+ "minLength": 1,
6995
+ "description": "Videos in a playlist: id or URL (…/playlist/-<id>)."
6996
+ },
6997
+ "category": {
6998
+ "type": "string",
6999
+ "minLength": 1,
7000
+ "description": "Default feed only: explore category id (default 120)."
7001
+ },
7002
+ "limit": {
7003
+ "type": "integer",
7004
+ "minimum": 1,
7005
+ "maximum": 30,
7006
+ "description": "Items per page, 1–30."
7007
+ },
7008
+ "cursor": {
7009
+ "type": "string",
7010
+ "minLength": 1,
7011
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
7012
+ }
7013
+ },
7014
+ "additionalProperties": false,
7015
+ "$schema": "http://json-schema.org/draft-07/schema#"
7016
+ },
7017
+ "comments": {
7018
+ "type": "object",
7019
+ "properties": {
7020
+ "post": {
7021
+ "type": "string",
7022
+ "minLength": 1,
7023
+ "description": "The video's comments: numeric video id or URL."
7024
+ },
7025
+ "comment": {
7026
+ "type": "string",
7027
+ "minLength": 1,
7028
+ "description": "With `post`: the comment whose replies to load (its id)."
7029
+ },
7030
+ "limit": {
7031
+ "type": "integer",
7032
+ "minimum": 1,
7033
+ "maximum": 50,
7034
+ "description": "Items per page, 1–50."
7035
+ },
7036
+ "cursor": {
7037
+ "type": "string",
7038
+ "minLength": 1,
7039
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
7040
+ }
7041
+ },
7042
+ "additionalProperties": false,
7043
+ "$schema": "http://json-schema.org/draft-07/schema#"
7044
+ },
7045
+ "group": {
7046
+ "type": "object",
7047
+ "properties": {
7048
+ "hashtag": {
7049
+ "type": "string",
7050
+ "minLength": 1,
7051
+ "description": "A hashtag: its name, or its numeric id. A hashtag that is itself a number takes its # (#2024)."
7052
+ },
7053
+ "sound": {
7054
+ "type": "string",
7055
+ "minLength": 1,
7056
+ "description": "A sound: id or URL (…/music/-<id>)."
7057
+ }
7058
+ },
7059
+ "additionalProperties": false,
7060
+ "$schema": "http://json-schema.org/draft-07/schema#"
7061
+ },
7062
+ "groups": {
7063
+ "type": "object",
7064
+ "properties": {
7065
+ "username": {
7066
+ "type": "string",
7067
+ "minLength": 1,
7068
+ "description": "Creator @handle (with or without @), or the profile URL."
7069
+ },
7070
+ "userId": {
7071
+ "type": "string",
7072
+ "minLength": 1,
7073
+ "description": "Creator secUid. Pass it instead of a username to save the lookup (1 unit instead of 2)."
7074
+ },
7075
+ "type": {
7076
+ "type": "string",
7077
+ "enum": [
7078
+ "playlists"
7079
+ ],
7080
+ "description": "playlists (the only list TikTok has)."
7081
+ },
7082
+ "limit": {
7083
+ "type": "integer",
7084
+ "minimum": 1,
7085
+ "maximum": 30,
7086
+ "description": "Items per page, 1–30."
7087
+ },
7088
+ "cursor": {
7089
+ "type": "string",
7090
+ "minLength": 1,
7091
+ "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
7092
+ }
7093
+ },
7094
+ "additionalProperties": false,
7095
+ "$schema": "http://json-schema.org/draft-07/schema#"
7096
+ },
7097
+ "media": {
7098
+ "type": "object",
7099
+ "properties": {
7100
+ "post": {
7101
+ "type": "string",
7102
+ "minLength": 1,
7103
+ "description": "The post whose file to download: numeric id or URL. A video gives its MP4, a photo post one picture."
7104
+ },
7105
+ "index": {
7106
+ "type": "integer",
7107
+ "minimum": 1,
7108
+ "maximum": 100,
7109
+ "description": "Photo posts: which picture, 1-based (default 1)."
7110
+ }
7111
+ },
7112
+ "additionalProperties": false,
7113
+ "$schema": "http://json-schema.org/draft-07/schema#"
7114
+ }
7115
+ },
7116
+ "ops": {
7117
+ "profile": {
7118
+ "method": "GET",
7119
+ "returns": "Account"
7120
+ },
7121
+ "profiles": {
7122
+ "method": "GET",
7123
+ "returns": "AccountPage"
7124
+ },
7125
+ "post": {
7126
+ "method": "GET",
7127
+ "returns": "Post"
7128
+ },
7129
+ "posts": {
7130
+ "method": "GET",
7131
+ "returns": "PostPage"
7132
+ },
7133
+ "comments": {
7134
+ "method": "GET",
7135
+ "returns": "CommentPage"
7136
+ },
7137
+ "group": {
7138
+ "method": "GET",
7139
+ "returns": "Group"
7140
+ },
7141
+ "groups": {
7142
+ "method": "GET",
7143
+ "returns": "GroupPage"
7144
+ },
7145
+ "media": {
7146
+ "method": "GET",
7147
+ "returns": "MediaFile"
7148
+ }
7149
+ }
7150
+ },
7151
+ {
7152
+ "id": "tiktok-ads",
7153
+ "kind": "ads",
7154
+ "operations": [
7155
+ "ads",
7156
+ "ad",
7157
+ "advertisers"
7158
+ ],
7159
+ "includes": [],
7160
+ "regions": [
7161
+ "AT",
7162
+ "BE",
7163
+ "BG",
7164
+ "HR",
7165
+ "CY",
7166
+ "CZ",
7167
+ "DK",
7168
+ "EE",
7169
+ "FI",
7170
+ "FR",
7171
+ "DE",
7172
+ "GR",
7173
+ "HU",
7174
+ "IE",
7175
+ "IT",
7176
+ "LV",
7177
+ "LT",
7178
+ "LU",
7179
+ "MT",
7180
+ "NL",
7181
+ "PL",
7182
+ "PT",
7183
+ "RO",
7184
+ "SK",
7185
+ "SI",
7186
+ "ES",
7187
+ "SE",
7188
+ "IS",
7189
+ "LI",
7190
+ "NO",
7191
+ "CH",
7192
+ "GB",
7193
+ "TR",
7194
+ "BR"
7195
+ ],
7196
+ "cost": {
7197
+ "ads": {
7198
+ "base": 1,
7199
+ "max": 1
7200
+ },
7201
+ "ad": {
7202
+ "base": 1,
7203
+ "max": 1
7204
+ },
7205
+ "advertisers": {
7206
+ "base": 1,
7207
+ "max": 1
7208
+ }
7209
+ },
7210
+ "params": {
7211
+ "ads": {
7212
+ "type": "object",
7213
+ "properties": {
7214
+ "query": {
6065
7215
  "type": "string",
6066
7216
  "minLength": 1,
6067
- "description": "Numeric video id, or the video URL / share link (vm.tiktok.com/…)."
6068
- }
6069
- },
6070
- "additionalProperties": false,
6071
- "$schema": "http://json-schema.org/draft-07/schema#"
6072
- },
6073
- "posts": {
6074
- "type": "object",
6075
- "properties": {
6076
- "username": {
7217
+ "description": "Keywords to search the library's ads for."
7218
+ },
7219
+ "advertiserName": {
6077
7220
  "type": "string",
6078
7221
  "minLength": 1,
6079
- "description": "Creator @handle (with or without @), or the profile URL."
7222
+ "description": "Every ad one advertiser ran: its name exactly as `advertisers` lists it."
6080
7223
  },
6081
- "userId": {
7224
+ "advertiser": {
6082
7225
  "type": "string",
6083
7226
  "minLength": 1,
6084
- "description": "Creator secUid. Pass it instead of a username to save the lookup (1 unit instead of 2)."
7227
+ "description": "With `advertiserName`: the advertiser's id (`advertisers` and an ad's `advertiser.id` give it), which saves the name lookup. A comma list where the library lists several."
6085
7228
  },
6086
- "type": {
7229
+ "country": {
6087
7230
  "type": "string",
6088
7231
  "enum": [
6089
- "posts",
6090
- "reposts",
6091
- "likes"
7232
+ "AT",
7233
+ "BE",
7234
+ "BG",
7235
+ "HR",
7236
+ "CY",
7237
+ "CZ",
7238
+ "DK",
7239
+ "EE",
7240
+ "FI",
7241
+ "FR",
7242
+ "DE",
7243
+ "GR",
7244
+ "HU",
7245
+ "IE",
7246
+ "IT",
7247
+ "LV",
7248
+ "LT",
7249
+ "LU",
7250
+ "MT",
7251
+ "NL",
7252
+ "PL",
7253
+ "PT",
7254
+ "RO",
7255
+ "SK",
7256
+ "SI",
7257
+ "ES",
7258
+ "SE",
7259
+ "IS",
7260
+ "LI",
7261
+ "NO",
7262
+ "CH",
7263
+ "GB",
7264
+ "TR",
7265
+ "BR"
6092
7266
  ],
6093
- "description": "username/userId: the creator's posts (default), reposts or likes."
6094
- },
6095
- "hashtag": {
6096
- "type": "string",
6097
- "minLength": 1,
6098
- "description": "Videos under a hashtag: its name, or its numeric id (saves the lookup). A hashtag that is itself a number takes its # (#2024)."
7267
+ "description": "Where the ads were shown (required): one of AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, IS, LI, NO, CH, GB, TR, BR — the EU, the EEA, Switzerland, the UK, Turkey and Brazil (not the US), which is what the library covers."
6099
7268
  },
6100
- "sound": {
7269
+ "startDate": {
6101
7270
  "type": "string",
6102
7271
  "minLength": 1,
6103
- "description": "Videos using a sound: sound id or URL (…/music/-<id>)."
7272
+ "description": "First day shown, YYYY-MM-DD (default: 30 days before `endDate`)."
6104
7273
  },
6105
- "playlist": {
7274
+ "endDate": {
6106
7275
  "type": "string",
6107
7276
  "minLength": 1,
6108
- "description": "Videos in a playlist: id or URL (…/playlist/-<id>)."
7277
+ "description": "Last day shown, YYYY-MM-DD (default: today)."
6109
7278
  },
6110
- "category": {
7279
+ "sort": {
6111
7280
  "type": "string",
6112
- "minLength": 1,
6113
- "description": "Default feed only: explore category id (default 120)."
6114
- },
6115
- "limit": {
6116
- "type": "integer",
6117
- "minimum": 1,
6118
- "maximum": 30,
6119
- "description": "Items per page, 1–30."
7281
+ "enum": [
7282
+ "lastShown",
7283
+ "created",
7284
+ "impressions"
7285
+ ],
7286
+ "description": "Order: the day last shown (default), creation, or impressions."
6120
7287
  },
6121
- "cursor": {
6122
- "type": "string",
6123
- "minLength": 1,
6124
- "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
6125
- }
6126
- },
6127
- "additionalProperties": false,
6128
- "$schema": "http://json-schema.org/draft-07/schema#"
6129
- },
6130
- "comments": {
6131
- "type": "object",
6132
- "properties": {
6133
- "post": {
7288
+ "order": {
6134
7289
  "type": "string",
6135
- "minLength": 1,
6136
- "description": "The video's comments: numeric video id or URL."
7290
+ "enum": [
7291
+ "desc",
7292
+ "asc"
7293
+ ],
7294
+ "description": "desc (default) or asc."
6137
7295
  },
6138
- "comment": {
7296
+ "status": {
6139
7297
  "type": "string",
6140
- "minLength": 1,
6141
- "description": "With `post`: the comment whose replies to load (its id)."
6142
- },
6143
- "limit": {
6144
- "type": "integer",
6145
- "minimum": 1,
6146
- "maximum": 50,
6147
- "description": "Items per page, 1–50."
7298
+ "enum": [
7299
+ "all",
7300
+ "active"
7301
+ ],
7302
+ "description": "all ads (default), or only those still running."
6148
7303
  },
6149
7304
  "cursor": {
6150
7305
  "type": "string",
@@ -6155,75 +7310,43 @@ const snapshot = [
6155
7310
  "additionalProperties": false,
6156
7311
  "$schema": "http://json-schema.org/draft-07/schema#"
6157
7312
  },
6158
- "group": {
7313
+ "ad": {
6159
7314
  "type": "object",
6160
7315
  "properties": {
6161
- "hashtag": {
6162
- "type": "string",
6163
- "minLength": 1,
6164
- "description": "A hashtag: its name, or its numeric id. A hashtag that is itself a number takes its # (#2024)."
6165
- },
6166
- "sound": {
7316
+ "id": {
6167
7317
  "type": "string",
6168
7318
  "minLength": 1,
6169
- "description": "A sound: id or URL (…/music/-<id>)."
7319
+ "description": "The ad's id in the library, or its library URL (…/ads/detail/?ad_id=<id>)."
6170
7320
  }
6171
7321
  },
6172
7322
  "additionalProperties": false,
6173
7323
  "$schema": "http://json-schema.org/draft-07/schema#"
6174
7324
  },
6175
- "groups": {
7325
+ "advertisers": {
6176
7326
  "type": "object",
6177
7327
  "properties": {
6178
- "username": {
6179
- "type": "string",
6180
- "minLength": 1,
6181
- "description": "Creator @handle (with or without @), or the profile URL."
6182
- },
6183
- "userId": {
6184
- "type": "string",
6185
- "minLength": 1,
6186
- "description": "Creator secUid. Pass it instead of a username to save the lookup (1 unit instead of 2)."
6187
- },
6188
- "type": {
6189
- "type": "string",
6190
- "enum": [
6191
- "playlists"
6192
- ],
6193
- "description": "playlists (the only list TikTok has)."
6194
- },
6195
- "limit": {
6196
- "type": "integer",
6197
- "minimum": 1,
6198
- "maximum": 30,
6199
- "description": "Items per page, 1–30."
6200
- },
6201
- "cursor": {
7328
+ "query": {
6202
7329
  "type": "string",
6203
7330
  "minLength": 1,
6204
- "description": "Opaque cursor from the previous page's `cursor`. Pass it alone for the next page."
7331
+ "description": "An advertiser's name, or part of it: the advertisers the library's search box suggests, each with the `name` and `id` that `ads?advertiserName=&advertiser=` take."
6205
7332
  }
6206
7333
  },
6207
7334
  "additionalProperties": false,
6208
7335
  "$schema": "http://json-schema.org/draft-07/schema#"
7336
+ }
7337
+ },
7338
+ "ops": {
7339
+ "ads": {
7340
+ "method": "GET",
7341
+ "returns": "AdPage"
6209
7342
  },
6210
- "media": {
6211
- "type": "object",
6212
- "properties": {
6213
- "post": {
6214
- "type": "string",
6215
- "minLength": 1,
6216
- "description": "The post whose file to download: numeric id or URL. A video gives its MP4, a photo post one picture."
6217
- },
6218
- "index": {
6219
- "type": "integer",
6220
- "minimum": 1,
6221
- "maximum": 100,
6222
- "description": "Photo posts: which picture, 1-based (default 1)."
6223
- }
6224
- },
6225
- "additionalProperties": false,
6226
- "$schema": "http://json-schema.org/draft-07/schema#"
7343
+ "ad": {
7344
+ "method": "GET",
7345
+ "returns": "Ad"
7346
+ },
7347
+ "advertisers": {
7348
+ "method": "GET",
7349
+ "returns": "AdvertiserPage"
6227
7350
  }
6228
7351
  }
6229
7352
  },
@@ -6380,6 +7503,32 @@ const snapshot = [
6380
7503
  "additionalProperties": false,
6381
7504
  "$schema": "http://json-schema.org/draft-07/schema#"
6382
7505
  }
7506
+ },
7507
+ "ops": {
7508
+ "search": {
7509
+ "method": "GET",
7510
+ "returns": "SearchResult"
7511
+ },
7512
+ "browse": {
7513
+ "method": "GET",
7514
+ "returns": "SearchResult"
7515
+ },
7516
+ "categories": {
7517
+ "method": "GET",
7518
+ "returns": "CategoryList"
7519
+ },
7520
+ "catalog": {
7521
+ "method": "GET",
7522
+ "returns": "SearchResult"
7523
+ },
7524
+ "product": {
7525
+ "method": "GET",
7526
+ "returns": "Product"
7527
+ },
7528
+ "reviews": {
7529
+ "method": "GET",
7530
+ "returns": "ReviewPage"
7531
+ }
6383
7532
  }
6384
7533
  },
6385
7534
  {
@@ -6596,6 +7745,20 @@ const snapshot = [
6596
7745
  "additionalProperties": false,
6597
7746
  "$schema": "http://json-schema.org/draft-07/schema#"
6598
7747
  }
7748
+ },
7749
+ "ops": {
7750
+ "places": {
7751
+ "method": "GET",
7752
+ "returns": "PlacesPage"
7753
+ },
7754
+ "place": {
7755
+ "method": "GET",
7756
+ "returns": "SerpPlace"
7757
+ },
7758
+ "reviews": {
7759
+ "method": "GET",
7760
+ "returns": "PlaceReviewsPage"
7761
+ }
6599
7762
  }
6600
7763
  },
6601
7764
  {
@@ -6680,6 +7843,12 @@ const snapshot = [
6680
7843
  "additionalProperties": false,
6681
7844
  "$schema": "http://json-schema.org/draft-07/schema#"
6682
7845
  }
7846
+ },
7847
+ "ops": {
7848
+ "request": {
7849
+ "method": "POST",
7850
+ "returns": "UnlockResult"
7851
+ }
6683
7852
  }
6684
7853
  },
6685
7854
  {
@@ -6814,9 +7983,10 @@ const snapshot = [
6814
7983
  "price_asc",
6815
7984
  "price_desc",
6816
7985
  "newly_listed",
6817
- "best_seller"
7986
+ "best_seller",
7987
+ "avg_review"
6818
7988
  ],
6819
- "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed` or `best_seller`. Defaults to `best_match`, Walmart's own relevance ordering."
7989
+ "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `best_seller` or `avg_review` (highest rated). Defaults to `best_match`, Walmart's own relevance ordering."
6820
7990
  }
6821
7991
  },
6822
7992
  "required": [
@@ -6915,9 +8085,10 @@ const snapshot = [
6915
8085
  "price_asc",
6916
8086
  "price_desc",
6917
8087
  "newly_listed",
6918
- "best_seller"
8088
+ "best_seller",
8089
+ "avg_review"
6919
8090
  ],
6920
- "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed` or `best_seller`. Defaults to `best_match`, Walmart's own relevance ordering."
8091
+ "description": "Result ordering: `best_match`, `price_asc`, `price_desc`, `newly_listed`, `best_seller` or `avg_review` (highest rated). Defaults to `best_match`, Walmart's own relevance ordering."
6921
8092
  }
6922
8093
  },
6923
8094
  "required": [
@@ -6988,6 +8159,28 @@ const snapshot = [
6988
8159
  "additionalProperties": false,
6989
8160
  "$schema": "http://json-schema.org/draft-07/schema#"
6990
8161
  }
8162
+ },
8163
+ "ops": {
8164
+ "search": {
8165
+ "method": "GET",
8166
+ "returns": "SearchResult"
8167
+ },
8168
+ "browse": {
8169
+ "method": "GET",
8170
+ "returns": "SearchResult"
8171
+ },
8172
+ "categories": {
8173
+ "method": "GET",
8174
+ "returns": "CategoryList"
8175
+ },
8176
+ "product": {
8177
+ "method": "GET",
8178
+ "returns": "Product"
8179
+ },
8180
+ "reviews": {
8181
+ "method": "GET",
8182
+ "returns": "ReviewPage"
8183
+ }
6991
8184
  }
6992
8185
  },
6993
8186
  {
@@ -7086,6 +8279,24 @@ const snapshot = [
7086
8279
  "additionalProperties": false,
7087
8280
  "$schema": "http://json-schema.org/draft-07/schema#"
7088
8281
  }
8282
+ },
8283
+ "ops": {
8284
+ "profile": {
8285
+ "method": "GET",
8286
+ "returns": "Account"
8287
+ },
8288
+ "post": {
8289
+ "method": "GET",
8290
+ "returns": "Post"
8291
+ },
8292
+ "posts": {
8293
+ "method": "GET",
8294
+ "returns": "PostPage"
8295
+ },
8296
+ "group": {
8297
+ "method": "GET",
8298
+ "returns": "Group"
8299
+ }
7089
8300
  }
7090
8301
  },
7091
8302
  {
@@ -7237,6 +8448,16 @@ const snapshot = [
7237
8448
  "additionalProperties": false,
7238
8449
  "$schema": "http://json-schema.org/draft-07/schema#"
7239
8450
  }
8451
+ },
8452
+ "ops": {
8453
+ "search": {
8454
+ "method": "GET",
8455
+ "returns": "ResultsPage"
8456
+ },
8457
+ "suggestions": {
8458
+ "method": "GET",
8459
+ "returns": "Suggestions"
8460
+ }
7240
8461
  }
7241
8462
  },
7242
8463
  {
@@ -7344,6 +8565,16 @@ const snapshot = [
7344
8565
  "additionalProperties": false,
7345
8566
  "$schema": "http://json-schema.org/draft-07/schema#"
7346
8567
  }
8568
+ },
8569
+ "ops": {
8570
+ "search": {
8571
+ "method": "GET",
8572
+ "returns": "ResultsPage"
8573
+ },
8574
+ "suggestions": {
8575
+ "method": "GET",
8576
+ "returns": "Suggestions"
8577
+ }
7347
8578
  }
7348
8579
  },
7349
8580
  {
@@ -7606,6 +8837,28 @@ const snapshot = [
7606
8837
  "additionalProperties": false,
7607
8838
  "$schema": "http://json-schema.org/draft-07/schema#"
7608
8839
  }
8840
+ },
8841
+ "ops": {
8842
+ "search": {
8843
+ "method": "GET",
8844
+ "returns": "ResultsPage"
8845
+ },
8846
+ "suggestions": {
8847
+ "method": "GET",
8848
+ "returns": "Suggestions"
8849
+ },
8850
+ "places": {
8851
+ "method": "GET",
8852
+ "returns": "PlacesPage"
8853
+ },
8854
+ "place": {
8855
+ "method": "GET",
8856
+ "returns": "SerpPlace"
8857
+ },
8858
+ "reviews": {
8859
+ "method": "GET",
8860
+ "returns": "PlaceReviewsPage"
8861
+ }
7609
8862
  }
7610
8863
  },
7611
8864
  {
@@ -7713,7 +8966,7 @@ const snapshot = [
7713
8966
  }
7714
8967
  }
7715
8968
  ],
7716
- "description": "Extra reads to attach under `ext`: transcript (the video's captions as timed segments, with every caption track it ships; +1 unit)."
8969
+ "description": "Extra reads to attach under `ext`: transcript (the video's captions as timed segments, with every caption track it ships; +1 unit) · related (the videos YouTube recommends beside it, ext.related; no extra cost)."
7717
8970
  },
7718
8971
  "lang": {
7719
8972
  "anyOf": [
@@ -7732,6 +8985,11 @@ const snapshot = [
7732
8985
  "generated": {
7733
8986
  "type": "boolean",
7734
8987
  "description": "include=transcript only: true for the auto-generated (speech recognition) track, false for a track the creator supplied. Default: the creator's first."
8988
+ },
8989
+ "trackName": {
8990
+ "type": "string",
8991
+ "minLength": 1,
8992
+ "description": "include=transcript only: read the caption track of this name, when several share a language (a track's `ext.trackName` or `ext.name` in `ext.transcript.tracks`, case-insensitive)."
7735
8993
  }
7736
8994
  },
7737
8995
  "additionalProperties": false,
@@ -7774,15 +9032,17 @@ const snapshot = [
7774
9032
  "live",
7775
9033
  "community"
7776
9034
  ],
7777
- "description": "username/userId: which channel tab — videos (default), shorts, live or community · query: only videos, only shorts or only movies (omitted: YouTube's mixed results page, Shorts shelves included)."
9035
+ "description": "username/userId: which channel tab — videos (default), shorts, live or community · query: only videos, only shorts or only movies (omitted: YouTube's mixed results page, Shorts shelves included) · hashtag: shorts (the hashtag's Shorts tab; omitted: all its videos)."
7778
9036
  },
7779
9037
  "sort": {
7780
9038
  "type": "string",
7781
9039
  "enum": [
7782
9040
  "relevance",
7783
- "top"
9041
+ "top",
9042
+ "recent",
9043
+ "oldest"
7784
9044
  ],
7785
- "description": "query only: relevance (default) or top (YouTube's Popularity order, which leans on views; not a strict view-count sort)."
9045
+ "description": "query: relevance (default) or top (YouTube's Popularity order, which leans on views; not a strict view-count sort) · username/userId (videos, shorts or live): recent (default, newest first), top (the channel's Popular order) or oldest."
7786
9046
  },
7787
9047
  "period": {
7788
9048
  "type": "string",
@@ -7825,7 +9085,7 @@ const snapshot = [
7825
9085
  "country": {
7826
9086
  "type": "string",
7827
9087
  "minLength": 1,
7828
- "description": "query: the country YouTube ranks the search for (ISO alpha-2, default US; it biases the ranking, it does not restrict it) · default feed: the country whose trending feed to read (default US)."
9088
+ "description": "query, hashtag, relatedTo: the country YouTube ranks the results for (ISO alpha-2, default US; it biases the ranking, it does not restrict it) · default feed: the country whose trending feed to read (default US)."
7829
9089
  },
7830
9090
  "cursor": {
7831
9091
  "type": "string",
@@ -7909,6 +9169,32 @@ const snapshot = [
7909
9169
  "additionalProperties": false,
7910
9170
  "$schema": "http://json-schema.org/draft-07/schema#"
7911
9171
  }
9172
+ },
9173
+ "ops": {
9174
+ "profile": {
9175
+ "method": "GET",
9176
+ "returns": "Account"
9177
+ },
9178
+ "profiles": {
9179
+ "method": "GET",
9180
+ "returns": "AccountPage"
9181
+ },
9182
+ "post": {
9183
+ "method": "GET",
9184
+ "returns": "Post"
9185
+ },
9186
+ "posts": {
9187
+ "method": "GET",
9188
+ "returns": "PostPage"
9189
+ },
9190
+ "comments": {
9191
+ "method": "GET",
9192
+ "returns": "CommentPage"
9193
+ },
9194
+ "groups": {
9195
+ "method": "GET",
9196
+ "returns": "GroupPage"
9197
+ }
7912
9198
  }
7913
9199
  }
7914
9200
  ];