scrapebadger 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +548 -0
  5. data/Rakefile +10 -0
  6. data/docs/AccountApi.md +76 -0
  7. data/docs/AccountInfo.md +28 -0
  8. data/docs/AmazonApi.md +1244 -0
  9. data/docs/ApartmentsApi.md +373 -0
  10. data/docs/BaiduApi.md +447 -0
  11. data/docs/BillingLogListResponse.md +24 -0
  12. data/docs/BillingLogResponse.md +32 -0
  13. data/docs/BingApi.md +610 -0
  14. data/docs/ChatGPTApi.md +521 -0
  15. data/docs/DepopApi.md +542 -0
  16. data/docs/DuckDuckGoApi.md +700 -0
  17. data/docs/EBayApi.md +1019 -0
  18. data/docs/FacebookApi.md +1671 -0
  19. data/docs/FilterRuleCreate.md +28 -0
  20. data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
  21. data/docs/FilterRuleDeliveryLogResponse.md +44 -0
  22. data/docs/FilterRuleListResponse.md +24 -0
  23. data/docs/FilterRuleResponse.md +40 -0
  24. data/docs/FilterRuleUpdate.md +30 -0
  25. data/docs/FilterRuleValidateRequest.md +18 -0
  26. data/docs/FilterRuleValidateResponse.md +22 -0
  27. data/docs/GoogleApi.md +3175 -0
  28. data/docs/HTTPValidationError.md +18 -0
  29. data/docs/IdealistaApi.md +822 -0
  30. data/docs/ImmobiliareApi.md +773 -0
  31. data/docs/InstagramApi.md +1673 -0
  32. data/docs/LeboncoinApi.md +884 -0
  33. data/docs/LinkedInApi.md +925 -0
  34. data/docs/LoopNetApi.md +529 -0
  35. data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
  36. data/docs/RealtorApi.md +474 -0
  37. data/docs/RedditApi.md +1677 -0
  38. data/docs/RedfinApi.md +616 -0
  39. data/docs/StreamMonitorCreate.md +26 -0
  40. data/docs/StreamMonitorListResponse.md +24 -0
  41. data/docs/StreamMonitorResponse.md +42 -0
  42. data/docs/StreamMonitorUpdate.md +28 -0
  43. data/docs/SubscriptionInfo.md +40 -0
  44. data/docs/TikTokApi.md +2104 -0
  45. data/docs/TweetDeliveryLogListResponse.md +24 -0
  46. data/docs/TweetDeliveryLogResponse.md +44 -0
  47. data/docs/TwitterApi.md +4091 -0
  48. data/docs/ValidationError.md +22 -0
  49. data/docs/ValidationErrorLocInner.md +15 -0
  50. data/docs/VintedApi.md +766 -0
  51. data/docs/WalmartApi.md +904 -0
  52. data/docs/WebApi.md +634 -0
  53. data/docs/WebhookCreate.md +22 -0
  54. data/docs/WebhookListItem.md +28 -0
  55. data/docs/WebhookListResponse.md +20 -0
  56. data/docs/WebhookResponse.md +26 -0
  57. data/docs/WebhookTestRequest.md +18 -0
  58. data/docs/WebhookTestResponse.md +24 -0
  59. data/docs/YahooApi.md +602 -0
  60. data/docs/YandexApi.md +450 -0
  61. data/docs/YouTubeApi.md +2872 -0
  62. data/docs/ZillowApi.md +622 -0
  63. data/git_push.sh +57 -0
  64. data/lib/scrapebadger/api/account_api.rb +79 -0
  65. data/lib/scrapebadger/api/amazon_api.rb +1165 -0
  66. data/lib/scrapebadger/api/apartments_api.rb +377 -0
  67. data/lib/scrapebadger/api/baidu_api.rb +436 -0
  68. data/lib/scrapebadger/api/bing_api.rb +580 -0
  69. data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
  70. data/lib/scrapebadger/api/depop_api.rb +518 -0
  71. data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
  72. data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
  73. data/lib/scrapebadger/api/facebook_api.rb +1492 -0
  74. data/lib/scrapebadger/api/google_api.rb +3191 -0
  75. data/lib/scrapebadger/api/idealista_api.rb +864 -0
  76. data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
  77. data/lib/scrapebadger/api/instagram_api.rb +1555 -0
  78. data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
  79. data/lib/scrapebadger/api/linked_in_api.rb +832 -0
  80. data/lib/scrapebadger/api/loop_net_api.rb +503 -0
  81. data/lib/scrapebadger/api/realtor_api.rb +481 -0
  82. data/lib/scrapebadger/api/reddit_api.rb +1601 -0
  83. data/lib/scrapebadger/api/redfin_api.rb +625 -0
  84. data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
  85. data/lib/scrapebadger/api/twitter_api.rb +3696 -0
  86. data/lib/scrapebadger/api/vinted_api.rb +705 -0
  87. data/lib/scrapebadger/api/walmart_api.rb +876 -0
  88. data/lib/scrapebadger/api/web_api.rb +547 -0
  89. data/lib/scrapebadger/api/yahoo_api.rb +560 -0
  90. data/lib/scrapebadger/api/yandex_api.rb +422 -0
  91. data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
  92. data/lib/scrapebadger/api/zillow_api.rb +634 -0
  93. data/lib/scrapebadger/api_client.rb +394 -0
  94. data/lib/scrapebadger/api_error.rb +58 -0
  95. data/lib/scrapebadger/configuration.rb +308 -0
  96. data/lib/scrapebadger/models/account_info.rb +288 -0
  97. data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
  98. data/lib/scrapebadger/models/billing_log_response.rb +334 -0
  99. data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
  100. data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
  101. data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
  102. data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
  103. data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
  104. data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
  105. data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
  106. data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
  107. data/lib/scrapebadger/models/http_validation_error.rb +216 -0
  108. data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
  109. data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
  110. data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
  111. data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
  112. data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
  113. data/lib/scrapebadger/models/subscription_info.rb +352 -0
  114. data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
  115. data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
  116. data/lib/scrapebadger/models/validation_error.rb +255 -0
  117. data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
  118. data/lib/scrapebadger/models/webhook_create.rb +282 -0
  119. data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
  120. data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
  121. data/lib/scrapebadger/models/webhook_response.rb +286 -0
  122. data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
  123. data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
  124. data/lib/scrapebadger/version.rb +15 -0
  125. data/lib/scrapebadger.rb +96 -0
  126. data/scrapebadger.gemspec +39 -0
  127. data/spec/api/account_api_spec.rb +46 -0
  128. data/spec/api/amazon_api_spec.rb +258 -0
  129. data/spec/api/apartments_api_spec.rb +98 -0
  130. data/spec/api/baidu_api_spec.rb +109 -0
  131. data/spec/api/bing_api_spec.rb +141 -0
  132. data/spec/api/chat_gpt_api_spec.rb +123 -0
  133. data/spec/api/depop_api_spec.rb +132 -0
  134. data/spec/api/duck_duck_go_api_spec.rb +162 -0
  135. data/spec/api/e_bay_api_spec.rb +222 -0
  136. data/spec/api/facebook_api_spec.rb +326 -0
  137. data/spec/api/google_api_spec.rb +649 -0
  138. data/spec/api/idealista_api_spec.rb +197 -0
  139. data/spec/api/immobiliare_api_spec.rb +174 -0
  140. data/spec/api/instagram_api_spec.rb +309 -0
  141. data/spec/api/leboncoin_api_spec.rb +184 -0
  142. data/spec/api/linked_in_api_spec.rb +197 -0
  143. data/spec/api/loop_net_api_spec.rb +127 -0
  144. data/spec/api/realtor_api_spec.rb +123 -0
  145. data/spec/api/reddit_api_spec.rb +331 -0
  146. data/spec/api/redfin_api_spec.rb +147 -0
  147. data/spec/api/tik_tok_api_spec.rb +413 -0
  148. data/spec/api/twitter_api_spec.rb +735 -0
  149. data/spec/api/vinted_api_spec.rb +169 -0
  150. data/spec/api/walmart_api_spec.rb +192 -0
  151. data/spec/api/web_api_spec.rb +136 -0
  152. data/spec/api/yahoo_api_spec.rb +137 -0
  153. data/spec/api/yandex_api_spec.rb +111 -0
  154. data/spec/api/you_tube_api_spec.rb +500 -0
  155. data/spec/api/zillow_api_spec.rb +150 -0
  156. data/spec/models/account_info_spec.rb +66 -0
  157. data/spec/models/billing_log_list_response_spec.rb +54 -0
  158. data/spec/models/billing_log_response_spec.rb +78 -0
  159. data/spec/models/filter_rule_create_spec.rb +66 -0
  160. data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
  161. data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
  162. data/spec/models/filter_rule_list_response_spec.rb +54 -0
  163. data/spec/models/filter_rule_response_spec.rb +102 -0
  164. data/spec/models/filter_rule_update_spec.rb +72 -0
  165. data/spec/models/filter_rule_validate_request_spec.rb +36 -0
  166. data/spec/models/filter_rule_validate_response_spec.rb +48 -0
  167. data/spec/models/http_validation_error_spec.rb +36 -0
  168. data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
  169. data/spec/models/stream_monitor_create_spec.rb +60 -0
  170. data/spec/models/stream_monitor_list_response_spec.rb +54 -0
  171. data/spec/models/stream_monitor_response_spec.rb +108 -0
  172. data/spec/models/stream_monitor_update_spec.rb +66 -0
  173. data/spec/models/subscription_info_spec.rb +102 -0
  174. data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
  175. data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
  176. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  177. data/spec/models/validation_error_spec.rb +48 -0
  178. data/spec/models/webhook_create_spec.rb +48 -0
  179. data/spec/models/webhook_list_item_spec.rb +66 -0
  180. data/spec/models/webhook_list_response_spec.rb +42 -0
  181. data/spec/models/webhook_response_spec.rb +60 -0
  182. data/spec/models/webhook_test_request_spec.rb +36 -0
  183. data/spec/models/webhook_test_response_spec.rb +54 -0
  184. data/spec/spec_helper.rb +111 -0
  185. metadata +324 -0
data/docs/TikTokApi.md ADDED
@@ -0,0 +1,2104 @@
1
+ # ScrapeBadger::TikTokApi
2
+
3
+ All URIs are relative to *https://scrapebadger.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**tiktok_general_search**](TikTokApi.md#tiktok_general_search) | **GET** /v1/tiktok/search | General search |
8
+ | [**tiktok_get_comment_replies**](TikTokApi.md#tiktok_get_comment_replies) | **GET** /v1/tiktok/comments/{comment_id}/replies | Get comment replies |
9
+ | [**tiktok_get_comments**](TikTokApi.md#tiktok_get_comments) | **GET** /v1/tiktok/videos/{video_id}/comments | Get comments |
10
+ | [**tiktok_get_followers_deprecated**](TikTokApi.md#tiktok_get_followers_deprecated) | **GET** /v1/tiktok/users/{username}/followers | Get followers (deprecated) |
11
+ | [**tiktok_get_following_deprecated**](TikTokApi.md#tiktok_get_following_deprecated) | **GET** /v1/tiktok/users/{username}/following | Get following (deprecated) |
12
+ | [**tiktok_get_hashtag_detail**](TikTokApi.md#tiktok_get_hashtag_detail) | **GET** /v1/tiktok/hashtags/{name} | Get hashtag detail |
13
+ | [**tiktok_get_hashtag_videos**](TikTokApi.md#tiktok_get_hashtag_videos) | **GET** /v1/tiktok/hashtags/{name}/videos | Get hashtag videos |
14
+ | [**tiktok_get_liked_videos_deprecated**](TikTokApi.md#tiktok_get_liked_videos_deprecated) | **GET** /v1/tiktok/users/{username}/liked | Get liked videos (deprecated) |
15
+ | [**tiktok_get_music_sound_detail**](TikTokApi.md#tiktok_get_music_sound_detail) | **GET** /v1/tiktok/music/{music_id} | Get music/sound detail |
16
+ | [**tiktok_get_music_videos**](TikTokApi.md#tiktok_get_music_videos) | **GET** /v1/tiktok/music/{music_id}/videos | Get music videos |
17
+ | [**tiktok_get_oembed_metadata**](TikTokApi.md#tiktok_get_oembed_metadata) | **GET** /v1/tiktok/oembed | Get oEmbed metadata |
18
+ | [**tiktok_get_related_videos**](TikTokApi.md#tiktok_get_related_videos) | **GET** /v1/tiktok/videos/{video_id}/related | Get related videos |
19
+ | [**tiktok_get_reposts**](TikTokApi.md#tiktok_get_reposts) | **GET** /v1/tiktok/users/{username}/reposts | Get reposts |
20
+ | [**tiktok_get_transcript**](TikTokApi.md#tiktok_get_transcript) | **GET** /v1/tiktok/videos/{video_id}/transcript | Get transcript |
21
+ | [**tiktok_get_user_profile**](TikTokApi.md#tiktok_get_user_profile) | **GET** /v1/tiktok/users/{username} | Get user profile |
22
+ | [**tiktok_get_user_videos**](TikTokApi.md#tiktok_get_user_videos) | **GET** /v1/tiktok/users/{username}/videos | Get user videos |
23
+ | [**tiktok_get_video_detail**](TikTokApi.md#tiktok_get_video_detail) | **GET** /v1/tiktok/videos/{video_id} | Get video detail |
24
+ | [**tiktok_health_check**](TikTokApi.md#tiktok_health_check) | **GET** /v1/tiktok/health | Health check |
25
+ | [**tiktok_health_check_head**](TikTokApi.md#tiktok_health_check_head) | **HEAD** /v1/tiktok/health | Health check |
26
+ | [**tiktok_list_regions**](TikTokApi.md#tiktok_list_regions) | **GET** /v1/tiktok/regions | List regions |
27
+ | [**tiktok_search_hashtags**](TikTokApi.md#tiktok_search_hashtags) | **GET** /v1/tiktok/search/hashtags | Search hashtags |
28
+ | [**tiktok_search_the_tiktok_ad_library**](TikTokApi.md#tiktok_search_the_tiktok_ad_library) | **GET** /v1/tiktok/ads/search | Search the TikTok Ad Library |
29
+ | [**tiktok_search_users**](TikTokApi.md#tiktok_search_users) | **GET** /v1/tiktok/search/users | Search users |
30
+ | [**tiktok_search_videos**](TikTokApi.md#tiktok_search_videos) | **GET** /v1/tiktok/search/videos | Search videos |
31
+ | [**tiktok_trending_hashtags**](TikTokApi.md#tiktok_trending_hashtags) | **GET** /v1/tiktok/trending/hashtags | Trending hashtags |
32
+ | [**tiktok_trending_songs**](TikTokApi.md#tiktok_trending_songs) | **GET** /v1/tiktok/trending/songs | Trending songs |
33
+ | [**tiktok_trending_videos**](TikTokApi.md#tiktok_trending_videos) | **GET** /v1/tiktok/trending/videos | Trending videos |
34
+
35
+
36
+ ## tiktok_general_search
37
+
38
+ > Object tiktok_general_search(query, opts)
39
+
40
+ General search
41
+
42
+ General TikTok search — video results from the Top feed.
43
+
44
+ ### Examples
45
+
46
+ ```ruby
47
+ require 'time'
48
+ require 'scrapebadger'
49
+ # setup authorization
50
+ ScrapeBadger.configure do |config|
51
+ # Configure API key authorization: ApiKeyAuth
52
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
53
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
54
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
55
+ end
56
+
57
+ api_instance = ScrapeBadger::TikTokApi.new
58
+ query = 'query_example' # String | Search keyword
59
+ opts = {
60
+ region: 'region_example', # String |
61
+ count: 56, # Integer |
62
+ cursor: 'cursor_example' # String | Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
63
+ }
64
+
65
+ begin
66
+ # General search
67
+ result = api_instance.tiktok_general_search(query, opts)
68
+ p result
69
+ rescue ScrapeBadger::ApiError => e
70
+ puts "Error when calling TikTokApi->tiktok_general_search: #{e}"
71
+ end
72
+ ```
73
+
74
+ #### Using the tiktok_general_search_with_http_info variant
75
+
76
+ This returns an Array which contains the response data, status code and headers.
77
+
78
+ > <Array(Object, Integer, Hash)> tiktok_general_search_with_http_info(query, opts)
79
+
80
+ ```ruby
81
+ begin
82
+ # General search
83
+ data, status_code, headers = api_instance.tiktok_general_search_with_http_info(query, opts)
84
+ p status_code # => 2xx
85
+ p headers # => { ... }
86
+ p data # => Object
87
+ rescue ScrapeBadger::ApiError => e
88
+ puts "Error when calling TikTokApi->tiktok_general_search_with_http_info: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ | Name | Type | Description | Notes |
95
+ | ---- | ---- | ----------- | ----- |
96
+ | **query** | **String** | Search keyword | |
97
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
98
+ | **count** | **Integer** | | [optional][default to 20] |
99
+ | **cursor** | **String** | Composite pagination cursor (offset.search_id) from a prior page&#39;s pagination.cursor | [optional] |
100
+
101
+ ### Return type
102
+
103
+ **Object**
104
+
105
+ ### Authorization
106
+
107
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ## tiktok_get_comment_replies
116
+
117
+ > Object tiktok_get_comment_replies(comment_id, video_id, opts)
118
+
119
+ Get comment replies
120
+
121
+ Get replies to a TikTok comment (best-effort).
122
+
123
+ ### Examples
124
+
125
+ ```ruby
126
+ require 'time'
127
+ require 'scrapebadger'
128
+ # setup authorization
129
+ ScrapeBadger.configure do |config|
130
+ # Configure API key authorization: ApiKeyAuth
131
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
132
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
133
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
134
+ end
135
+
136
+ api_instance = ScrapeBadger::TikTokApi.new
137
+ comment_id = 'comment_id_example' # String |
138
+ video_id = 'video_id_example' # String | Parent video id
139
+ opts = {
140
+ region: 'region_example', # String |
141
+ count: 56, # Integer |
142
+ cursor: 'cursor_example' # String | Pagination cursor from a prior page's pagination.cursor
143
+ }
144
+
145
+ begin
146
+ # Get comment replies
147
+ result = api_instance.tiktok_get_comment_replies(comment_id, video_id, opts)
148
+ p result
149
+ rescue ScrapeBadger::ApiError => e
150
+ puts "Error when calling TikTokApi->tiktok_get_comment_replies: #{e}"
151
+ end
152
+ ```
153
+
154
+ #### Using the tiktok_get_comment_replies_with_http_info variant
155
+
156
+ This returns an Array which contains the response data, status code and headers.
157
+
158
+ > <Array(Object, Integer, Hash)> tiktok_get_comment_replies_with_http_info(comment_id, video_id, opts)
159
+
160
+ ```ruby
161
+ begin
162
+ # Get comment replies
163
+ data, status_code, headers = api_instance.tiktok_get_comment_replies_with_http_info(comment_id, video_id, opts)
164
+ p status_code # => 2xx
165
+ p headers # => { ... }
166
+ p data # => Object
167
+ rescue ScrapeBadger::ApiError => e
168
+ puts "Error when calling TikTokApi->tiktok_get_comment_replies_with_http_info: #{e}"
169
+ end
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ | Name | Type | Description | Notes |
175
+ | ---- | ---- | ----------- | ----- |
176
+ | **comment_id** | **String** | | |
177
+ | **video_id** | **String** | Parent video id | |
178
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
179
+ | **count** | **Integer** | | [optional][default to 20] |
180
+ | **cursor** | **String** | Pagination cursor from a prior page&#39;s pagination.cursor | [optional] |
181
+
182
+ ### Return type
183
+
184
+ **Object**
185
+
186
+ ### Authorization
187
+
188
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
189
+
190
+ ### HTTP request headers
191
+
192
+ - **Content-Type**: Not defined
193
+ - **Accept**: application/json
194
+
195
+
196
+ ## tiktok_get_comments
197
+
198
+ > Object tiktok_get_comments(video_id, opts)
199
+
200
+ Get comments
201
+
202
+ Get top-level comments on a TikTok video.
203
+
204
+ ### Examples
205
+
206
+ ```ruby
207
+ require 'time'
208
+ require 'scrapebadger'
209
+ # setup authorization
210
+ ScrapeBadger.configure do |config|
211
+ # Configure API key authorization: ApiKeyAuth
212
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
213
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
214
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
215
+ end
216
+
217
+ api_instance = ScrapeBadger::TikTokApi.new
218
+ video_id = 'video_id_example' # String |
219
+ opts = {
220
+ region: 'region_example', # String |
221
+ count: 56, # Integer |
222
+ cursor: 'cursor_example' # String | Pagination cursor from a prior page's pagination.cursor
223
+ }
224
+
225
+ begin
226
+ # Get comments
227
+ result = api_instance.tiktok_get_comments(video_id, opts)
228
+ p result
229
+ rescue ScrapeBadger::ApiError => e
230
+ puts "Error when calling TikTokApi->tiktok_get_comments: #{e}"
231
+ end
232
+ ```
233
+
234
+ #### Using the tiktok_get_comments_with_http_info variant
235
+
236
+ This returns an Array which contains the response data, status code and headers.
237
+
238
+ > <Array(Object, Integer, Hash)> tiktok_get_comments_with_http_info(video_id, opts)
239
+
240
+ ```ruby
241
+ begin
242
+ # Get comments
243
+ data, status_code, headers = api_instance.tiktok_get_comments_with_http_info(video_id, opts)
244
+ p status_code # => 2xx
245
+ p headers # => { ... }
246
+ p data # => Object
247
+ rescue ScrapeBadger::ApiError => e
248
+ puts "Error when calling TikTokApi->tiktok_get_comments_with_http_info: #{e}"
249
+ end
250
+ ```
251
+
252
+ ### Parameters
253
+
254
+ | Name | Type | Description | Notes |
255
+ | ---- | ---- | ----------- | ----- |
256
+ | **video_id** | **String** | | |
257
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
258
+ | **count** | **Integer** | | [optional][default to 20] |
259
+ | **cursor** | **String** | Pagination cursor from a prior page&#39;s pagination.cursor | [optional] |
260
+
261
+ ### Return type
262
+
263
+ **Object**
264
+
265
+ ### Authorization
266
+
267
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
268
+
269
+ ### HTTP request headers
270
+
271
+ - **Content-Type**: Not defined
272
+ - **Accept**: application/json
273
+
274
+
275
+ ## tiktok_get_followers_deprecated
276
+
277
+ > Object tiktok_get_followers_deprecated(username, opts)
278
+
279
+ Get followers (deprecated)
280
+
281
+ DEPRECATED — TikTok followers require an authenticated account session. Returns HTTP 410.
282
+
283
+ ### Examples
284
+
285
+ ```ruby
286
+ require 'time'
287
+ require 'scrapebadger'
288
+ # setup authorization
289
+ ScrapeBadger.configure do |config|
290
+ # Configure API key authorization: ApiKeyAuth
291
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
292
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
293
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
294
+ end
295
+
296
+ api_instance = ScrapeBadger::TikTokApi.new
297
+ username = 'username_example' # String |
298
+ opts = {
299
+ region: 'region_example', # String |
300
+ count: 56 # Integer |
301
+ }
302
+
303
+ begin
304
+ # Get followers (deprecated)
305
+ result = api_instance.tiktok_get_followers_deprecated(username, opts)
306
+ p result
307
+ rescue ScrapeBadger::ApiError => e
308
+ puts "Error when calling TikTokApi->tiktok_get_followers_deprecated: #{e}"
309
+ end
310
+ ```
311
+
312
+ #### Using the tiktok_get_followers_deprecated_with_http_info variant
313
+
314
+ This returns an Array which contains the response data, status code and headers.
315
+
316
+ > <Array(Object, Integer, Hash)> tiktok_get_followers_deprecated_with_http_info(username, opts)
317
+
318
+ ```ruby
319
+ begin
320
+ # Get followers (deprecated)
321
+ data, status_code, headers = api_instance.tiktok_get_followers_deprecated_with_http_info(username, opts)
322
+ p status_code # => 2xx
323
+ p headers # => { ... }
324
+ p data # => Object
325
+ rescue ScrapeBadger::ApiError => e
326
+ puts "Error when calling TikTokApi->tiktok_get_followers_deprecated_with_http_info: #{e}"
327
+ end
328
+ ```
329
+
330
+ ### Parameters
331
+
332
+ | Name | Type | Description | Notes |
333
+ | ---- | ---- | ----------- | ----- |
334
+ | **username** | **String** | | |
335
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
336
+ | **count** | **Integer** | | [optional][default to 30] |
337
+
338
+ ### Return type
339
+
340
+ **Object**
341
+
342
+ ### Authorization
343
+
344
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: application/json
350
+
351
+
352
+ ## tiktok_get_following_deprecated
353
+
354
+ > Object tiktok_get_following_deprecated(username, opts)
355
+
356
+ Get following (deprecated)
357
+
358
+ DEPRECATED — TikTok following requires an authenticated account session. Returns HTTP 410.
359
+
360
+ ### Examples
361
+
362
+ ```ruby
363
+ require 'time'
364
+ require 'scrapebadger'
365
+ # setup authorization
366
+ ScrapeBadger.configure do |config|
367
+ # Configure API key authorization: ApiKeyAuth
368
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
369
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
370
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
371
+ end
372
+
373
+ api_instance = ScrapeBadger::TikTokApi.new
374
+ username = 'username_example' # String |
375
+ opts = {
376
+ region: 'region_example', # String |
377
+ count: 56 # Integer |
378
+ }
379
+
380
+ begin
381
+ # Get following (deprecated)
382
+ result = api_instance.tiktok_get_following_deprecated(username, opts)
383
+ p result
384
+ rescue ScrapeBadger::ApiError => e
385
+ puts "Error when calling TikTokApi->tiktok_get_following_deprecated: #{e}"
386
+ end
387
+ ```
388
+
389
+ #### Using the tiktok_get_following_deprecated_with_http_info variant
390
+
391
+ This returns an Array which contains the response data, status code and headers.
392
+
393
+ > <Array(Object, Integer, Hash)> tiktok_get_following_deprecated_with_http_info(username, opts)
394
+
395
+ ```ruby
396
+ begin
397
+ # Get following (deprecated)
398
+ data, status_code, headers = api_instance.tiktok_get_following_deprecated_with_http_info(username, opts)
399
+ p status_code # => 2xx
400
+ p headers # => { ... }
401
+ p data # => Object
402
+ rescue ScrapeBadger::ApiError => e
403
+ puts "Error when calling TikTokApi->tiktok_get_following_deprecated_with_http_info: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ | Name | Type | Description | Notes |
410
+ | ---- | ---- | ----------- | ----- |
411
+ | **username** | **String** | | |
412
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
413
+ | **count** | **Integer** | | [optional][default to 30] |
414
+
415
+ ### Return type
416
+
417
+ **Object**
418
+
419
+ ### Authorization
420
+
421
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
422
+
423
+ ### HTTP request headers
424
+
425
+ - **Content-Type**: Not defined
426
+ - **Accept**: application/json
427
+
428
+
429
+ ## tiktok_get_hashtag_detail
430
+
431
+ > Object tiktok_get_hashtag_detail(name, opts)
432
+
433
+ Get hashtag detail
434
+
435
+ Get TikTok hashtag/challenge detail.
436
+
437
+ ### Examples
438
+
439
+ ```ruby
440
+ require 'time'
441
+ require 'scrapebadger'
442
+ # setup authorization
443
+ ScrapeBadger.configure do |config|
444
+ # Configure API key authorization: ApiKeyAuth
445
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
446
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
447
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
448
+ end
449
+
450
+ api_instance = ScrapeBadger::TikTokApi.new
451
+ name = 'name_example' # String |
452
+ opts = {
453
+ region: 'region_example' # String |
454
+ }
455
+
456
+ begin
457
+ # Get hashtag detail
458
+ result = api_instance.tiktok_get_hashtag_detail(name, opts)
459
+ p result
460
+ rescue ScrapeBadger::ApiError => e
461
+ puts "Error when calling TikTokApi->tiktok_get_hashtag_detail: #{e}"
462
+ end
463
+ ```
464
+
465
+ #### Using the tiktok_get_hashtag_detail_with_http_info variant
466
+
467
+ This returns an Array which contains the response data, status code and headers.
468
+
469
+ > <Array(Object, Integer, Hash)> tiktok_get_hashtag_detail_with_http_info(name, opts)
470
+
471
+ ```ruby
472
+ begin
473
+ # Get hashtag detail
474
+ data, status_code, headers = api_instance.tiktok_get_hashtag_detail_with_http_info(name, opts)
475
+ p status_code # => 2xx
476
+ p headers # => { ... }
477
+ p data # => Object
478
+ rescue ScrapeBadger::ApiError => e
479
+ puts "Error when calling TikTokApi->tiktok_get_hashtag_detail_with_http_info: #{e}"
480
+ end
481
+ ```
482
+
483
+ ### Parameters
484
+
485
+ | Name | Type | Description | Notes |
486
+ | ---- | ---- | ----------- | ----- |
487
+ | **name** | **String** | | |
488
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
489
+
490
+ ### Return type
491
+
492
+ **Object**
493
+
494
+ ### Authorization
495
+
496
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
497
+
498
+ ### HTTP request headers
499
+
500
+ - **Content-Type**: Not defined
501
+ - **Accept**: application/json
502
+
503
+
504
+ ## tiktok_get_hashtag_videos
505
+
506
+ > Object tiktok_get_hashtag_videos(name, opts)
507
+
508
+ Get hashtag videos
509
+
510
+ Get videos tagged with a TikTok hashtag.
511
+
512
+ ### Examples
513
+
514
+ ```ruby
515
+ require 'time'
516
+ require 'scrapebadger'
517
+ # setup authorization
518
+ ScrapeBadger.configure do |config|
519
+ # Configure API key authorization: ApiKeyAuth
520
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
521
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
522
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
523
+ end
524
+
525
+ api_instance = ScrapeBadger::TikTokApi.new
526
+ name = 'name_example' # String |
527
+ opts = {
528
+ region: 'region_example', # String |
529
+ count: 56, # Integer |
530
+ cursor: 'cursor_example' # String | Pagination cursor from a prior page's pagination.cursor
531
+ }
532
+
533
+ begin
534
+ # Get hashtag videos
535
+ result = api_instance.tiktok_get_hashtag_videos(name, opts)
536
+ p result
537
+ rescue ScrapeBadger::ApiError => e
538
+ puts "Error when calling TikTokApi->tiktok_get_hashtag_videos: #{e}"
539
+ end
540
+ ```
541
+
542
+ #### Using the tiktok_get_hashtag_videos_with_http_info variant
543
+
544
+ This returns an Array which contains the response data, status code and headers.
545
+
546
+ > <Array(Object, Integer, Hash)> tiktok_get_hashtag_videos_with_http_info(name, opts)
547
+
548
+ ```ruby
549
+ begin
550
+ # Get hashtag videos
551
+ data, status_code, headers = api_instance.tiktok_get_hashtag_videos_with_http_info(name, opts)
552
+ p status_code # => 2xx
553
+ p headers # => { ... }
554
+ p data # => Object
555
+ rescue ScrapeBadger::ApiError => e
556
+ puts "Error when calling TikTokApi->tiktok_get_hashtag_videos_with_http_info: #{e}"
557
+ end
558
+ ```
559
+
560
+ ### Parameters
561
+
562
+ | Name | Type | Description | Notes |
563
+ | ---- | ---- | ----------- | ----- |
564
+ | **name** | **String** | | |
565
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
566
+ | **count** | **Integer** | | [optional][default to 30] |
567
+ | **cursor** | **String** | Pagination cursor from a prior page&#39;s pagination.cursor | [optional] |
568
+
569
+ ### Return type
570
+
571
+ **Object**
572
+
573
+ ### Authorization
574
+
575
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
576
+
577
+ ### HTTP request headers
578
+
579
+ - **Content-Type**: Not defined
580
+ - **Accept**: application/json
581
+
582
+
583
+ ## tiktok_get_liked_videos_deprecated
584
+
585
+ > Object tiktok_get_liked_videos_deprecated(username, opts)
586
+
587
+ Get liked videos (deprecated)
588
+
589
+ DEPRECATED — TikTok liked videos require an authenticated account session. Returns HTTP 410.
590
+
591
+ ### Examples
592
+
593
+ ```ruby
594
+ require 'time'
595
+ require 'scrapebadger'
596
+ # setup authorization
597
+ ScrapeBadger.configure do |config|
598
+ # Configure API key authorization: ApiKeyAuth
599
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
600
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
601
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
602
+ end
603
+
604
+ api_instance = ScrapeBadger::TikTokApi.new
605
+ username = 'username_example' # String |
606
+ opts = {
607
+ region: 'region_example', # String |
608
+ count: 56 # Integer |
609
+ }
610
+
611
+ begin
612
+ # Get liked videos (deprecated)
613
+ result = api_instance.tiktok_get_liked_videos_deprecated(username, opts)
614
+ p result
615
+ rescue ScrapeBadger::ApiError => e
616
+ puts "Error when calling TikTokApi->tiktok_get_liked_videos_deprecated: #{e}"
617
+ end
618
+ ```
619
+
620
+ #### Using the tiktok_get_liked_videos_deprecated_with_http_info variant
621
+
622
+ This returns an Array which contains the response data, status code and headers.
623
+
624
+ > <Array(Object, Integer, Hash)> tiktok_get_liked_videos_deprecated_with_http_info(username, opts)
625
+
626
+ ```ruby
627
+ begin
628
+ # Get liked videos (deprecated)
629
+ data, status_code, headers = api_instance.tiktok_get_liked_videos_deprecated_with_http_info(username, opts)
630
+ p status_code # => 2xx
631
+ p headers # => { ... }
632
+ p data # => Object
633
+ rescue ScrapeBadger::ApiError => e
634
+ puts "Error when calling TikTokApi->tiktok_get_liked_videos_deprecated_with_http_info: #{e}"
635
+ end
636
+ ```
637
+
638
+ ### Parameters
639
+
640
+ | Name | Type | Description | Notes |
641
+ | ---- | ---- | ----------- | ----- |
642
+ | **username** | **String** | | |
643
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
644
+ | **count** | **Integer** | | [optional][default to 30] |
645
+
646
+ ### Return type
647
+
648
+ **Object**
649
+
650
+ ### Authorization
651
+
652
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
653
+
654
+ ### HTTP request headers
655
+
656
+ - **Content-Type**: Not defined
657
+ - **Accept**: application/json
658
+
659
+
660
+ ## tiktok_get_music_sound_detail
661
+
662
+ > Object tiktok_get_music_sound_detail(music_id, opts)
663
+
664
+ Get music/sound detail
665
+
666
+ Get TikTok sound/music detail.
667
+
668
+ ### Examples
669
+
670
+ ```ruby
671
+ require 'time'
672
+ require 'scrapebadger'
673
+ # setup authorization
674
+ ScrapeBadger.configure do |config|
675
+ # Configure API key authorization: ApiKeyAuth
676
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
677
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
678
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
679
+ end
680
+
681
+ api_instance = ScrapeBadger::TikTokApi.new
682
+ music_id = 'music_id_example' # String |
683
+ opts = {
684
+ region: 'region_example' # String |
685
+ }
686
+
687
+ begin
688
+ # Get music/sound detail
689
+ result = api_instance.tiktok_get_music_sound_detail(music_id, opts)
690
+ p result
691
+ rescue ScrapeBadger::ApiError => e
692
+ puts "Error when calling TikTokApi->tiktok_get_music_sound_detail: #{e}"
693
+ end
694
+ ```
695
+
696
+ #### Using the tiktok_get_music_sound_detail_with_http_info variant
697
+
698
+ This returns an Array which contains the response data, status code and headers.
699
+
700
+ > <Array(Object, Integer, Hash)> tiktok_get_music_sound_detail_with_http_info(music_id, opts)
701
+
702
+ ```ruby
703
+ begin
704
+ # Get music/sound detail
705
+ data, status_code, headers = api_instance.tiktok_get_music_sound_detail_with_http_info(music_id, opts)
706
+ p status_code # => 2xx
707
+ p headers # => { ... }
708
+ p data # => Object
709
+ rescue ScrapeBadger::ApiError => e
710
+ puts "Error when calling TikTokApi->tiktok_get_music_sound_detail_with_http_info: #{e}"
711
+ end
712
+ ```
713
+
714
+ ### Parameters
715
+
716
+ | Name | Type | Description | Notes |
717
+ | ---- | ---- | ----------- | ----- |
718
+ | **music_id** | **String** | | |
719
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
720
+
721
+ ### Return type
722
+
723
+ **Object**
724
+
725
+ ### Authorization
726
+
727
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
728
+
729
+ ### HTTP request headers
730
+
731
+ - **Content-Type**: Not defined
732
+ - **Accept**: application/json
733
+
734
+
735
+ ## tiktok_get_music_videos
736
+
737
+ > Object tiktok_get_music_videos(music_id, opts)
738
+
739
+ Get music videos
740
+
741
+ Get videos using a given TikTok sound.
742
+
743
+ ### Examples
744
+
745
+ ```ruby
746
+ require 'time'
747
+ require 'scrapebadger'
748
+ # setup authorization
749
+ ScrapeBadger.configure do |config|
750
+ # Configure API key authorization: ApiKeyAuth
751
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
752
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
753
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
754
+ end
755
+
756
+ api_instance = ScrapeBadger::TikTokApi.new
757
+ music_id = 'music_id_example' # String |
758
+ opts = {
759
+ region: 'region_example', # String |
760
+ count: 56, # Integer |
761
+ cursor: 'cursor_example' # String | Pagination cursor from a prior page's pagination.cursor
762
+ }
763
+
764
+ begin
765
+ # Get music videos
766
+ result = api_instance.tiktok_get_music_videos(music_id, opts)
767
+ p result
768
+ rescue ScrapeBadger::ApiError => e
769
+ puts "Error when calling TikTokApi->tiktok_get_music_videos: #{e}"
770
+ end
771
+ ```
772
+
773
+ #### Using the tiktok_get_music_videos_with_http_info variant
774
+
775
+ This returns an Array which contains the response data, status code and headers.
776
+
777
+ > <Array(Object, Integer, Hash)> tiktok_get_music_videos_with_http_info(music_id, opts)
778
+
779
+ ```ruby
780
+ begin
781
+ # Get music videos
782
+ data, status_code, headers = api_instance.tiktok_get_music_videos_with_http_info(music_id, opts)
783
+ p status_code # => 2xx
784
+ p headers # => { ... }
785
+ p data # => Object
786
+ rescue ScrapeBadger::ApiError => e
787
+ puts "Error when calling TikTokApi->tiktok_get_music_videos_with_http_info: #{e}"
788
+ end
789
+ ```
790
+
791
+ ### Parameters
792
+
793
+ | Name | Type | Description | Notes |
794
+ | ---- | ---- | ----------- | ----- |
795
+ | **music_id** | **String** | | |
796
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
797
+ | **count** | **Integer** | | [optional][default to 30] |
798
+ | **cursor** | **String** | Pagination cursor from a prior page&#39;s pagination.cursor | [optional] |
799
+
800
+ ### Return type
801
+
802
+ **Object**
803
+
804
+ ### Authorization
805
+
806
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
807
+
808
+ ### HTTP request headers
809
+
810
+ - **Content-Type**: Not defined
811
+ - **Accept**: application/json
812
+
813
+
814
+ ## tiktok_get_oembed_metadata
815
+
816
+ > Object tiktok_get_oembed_metadata(url, opts)
817
+
818
+ Get oEmbed metadata
819
+
820
+ Get cheap unauthenticated oEmbed metadata for a TikTok URL.
821
+
822
+ ### Examples
823
+
824
+ ```ruby
825
+ require 'time'
826
+ require 'scrapebadger'
827
+ # setup authorization
828
+ ScrapeBadger.configure do |config|
829
+ # Configure API key authorization: ApiKeyAuth
830
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
831
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
832
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
833
+ end
834
+
835
+ api_instance = ScrapeBadger::TikTokApi.new
836
+ url = 'url_example' # String | Full TikTok video or profile URL
837
+ opts = {
838
+ region: 'region_example' # String |
839
+ }
840
+
841
+ begin
842
+ # Get oEmbed metadata
843
+ result = api_instance.tiktok_get_oembed_metadata(url, opts)
844
+ p result
845
+ rescue ScrapeBadger::ApiError => e
846
+ puts "Error when calling TikTokApi->tiktok_get_oembed_metadata: #{e}"
847
+ end
848
+ ```
849
+
850
+ #### Using the tiktok_get_oembed_metadata_with_http_info variant
851
+
852
+ This returns an Array which contains the response data, status code and headers.
853
+
854
+ > <Array(Object, Integer, Hash)> tiktok_get_oembed_metadata_with_http_info(url, opts)
855
+
856
+ ```ruby
857
+ begin
858
+ # Get oEmbed metadata
859
+ data, status_code, headers = api_instance.tiktok_get_oembed_metadata_with_http_info(url, opts)
860
+ p status_code # => 2xx
861
+ p headers # => { ... }
862
+ p data # => Object
863
+ rescue ScrapeBadger::ApiError => e
864
+ puts "Error when calling TikTokApi->tiktok_get_oembed_metadata_with_http_info: #{e}"
865
+ end
866
+ ```
867
+
868
+ ### Parameters
869
+
870
+ | Name | Type | Description | Notes |
871
+ | ---- | ---- | ----------- | ----- |
872
+ | **url** | **String** | Full TikTok video or profile URL | |
873
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
874
+
875
+ ### Return type
876
+
877
+ **Object**
878
+
879
+ ### Authorization
880
+
881
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
882
+
883
+ ### HTTP request headers
884
+
885
+ - **Content-Type**: Not defined
886
+ - **Accept**: application/json
887
+
888
+
889
+ ## tiktok_get_related_videos
890
+
891
+ > Object tiktok_get_related_videos(video_id, opts)
892
+
893
+ Get related videos
894
+
895
+ Get TikTok's related videos for a given video.
896
+
897
+ ### Examples
898
+
899
+ ```ruby
900
+ require 'time'
901
+ require 'scrapebadger'
902
+ # setup authorization
903
+ ScrapeBadger.configure do |config|
904
+ # Configure API key authorization: ApiKeyAuth
905
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
906
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
907
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
908
+ end
909
+
910
+ api_instance = ScrapeBadger::TikTokApi.new
911
+ video_id = 'video_id_example' # String |
912
+ opts = {
913
+ region: 'region_example', # String |
914
+ count: 56 # Integer |
915
+ }
916
+
917
+ begin
918
+ # Get related videos
919
+ result = api_instance.tiktok_get_related_videos(video_id, opts)
920
+ p result
921
+ rescue ScrapeBadger::ApiError => e
922
+ puts "Error when calling TikTokApi->tiktok_get_related_videos: #{e}"
923
+ end
924
+ ```
925
+
926
+ #### Using the tiktok_get_related_videos_with_http_info variant
927
+
928
+ This returns an Array which contains the response data, status code and headers.
929
+
930
+ > <Array(Object, Integer, Hash)> tiktok_get_related_videos_with_http_info(video_id, opts)
931
+
932
+ ```ruby
933
+ begin
934
+ # Get related videos
935
+ data, status_code, headers = api_instance.tiktok_get_related_videos_with_http_info(video_id, opts)
936
+ p status_code # => 2xx
937
+ p headers # => { ... }
938
+ p data # => Object
939
+ rescue ScrapeBadger::ApiError => e
940
+ puts "Error when calling TikTokApi->tiktok_get_related_videos_with_http_info: #{e}"
941
+ end
942
+ ```
943
+
944
+ ### Parameters
945
+
946
+ | Name | Type | Description | Notes |
947
+ | ---- | ---- | ----------- | ----- |
948
+ | **video_id** | **String** | | |
949
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
950
+ | **count** | **Integer** | | [optional][default to 16] |
951
+
952
+ ### Return type
953
+
954
+ **Object**
955
+
956
+ ### Authorization
957
+
958
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
959
+
960
+ ### HTTP request headers
961
+
962
+ - **Content-Type**: Not defined
963
+ - **Accept**: application/json
964
+
965
+
966
+ ## tiktok_get_reposts
967
+
968
+ > Object tiktok_get_reposts(username, opts)
969
+
970
+ Get reposts
971
+
972
+ Get videos a TikTok user has reposted.
973
+
974
+ ### Examples
975
+
976
+ ```ruby
977
+ require 'time'
978
+ require 'scrapebadger'
979
+ # setup authorization
980
+ ScrapeBadger.configure do |config|
981
+ # Configure API key authorization: ApiKeyAuth
982
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
983
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
984
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
985
+ end
986
+
987
+ api_instance = ScrapeBadger::TikTokApi.new
988
+ username = 'username_example' # String |
989
+ opts = {
990
+ region: 'region_example', # String |
991
+ count: 56 # Integer |
992
+ }
993
+
994
+ begin
995
+ # Get reposts
996
+ result = api_instance.tiktok_get_reposts(username, opts)
997
+ p result
998
+ rescue ScrapeBadger::ApiError => e
999
+ puts "Error when calling TikTokApi->tiktok_get_reposts: #{e}"
1000
+ end
1001
+ ```
1002
+
1003
+ #### Using the tiktok_get_reposts_with_http_info variant
1004
+
1005
+ This returns an Array which contains the response data, status code and headers.
1006
+
1007
+ > <Array(Object, Integer, Hash)> tiktok_get_reposts_with_http_info(username, opts)
1008
+
1009
+ ```ruby
1010
+ begin
1011
+ # Get reposts
1012
+ data, status_code, headers = api_instance.tiktok_get_reposts_with_http_info(username, opts)
1013
+ p status_code # => 2xx
1014
+ p headers # => { ... }
1015
+ p data # => Object
1016
+ rescue ScrapeBadger::ApiError => e
1017
+ puts "Error when calling TikTokApi->tiktok_get_reposts_with_http_info: #{e}"
1018
+ end
1019
+ ```
1020
+
1021
+ ### Parameters
1022
+
1023
+ | Name | Type | Description | Notes |
1024
+ | ---- | ---- | ----------- | ----- |
1025
+ | **username** | **String** | | |
1026
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1027
+ | **count** | **Integer** | | [optional][default to 30] |
1028
+
1029
+ ### Return type
1030
+
1031
+ **Object**
1032
+
1033
+ ### Authorization
1034
+
1035
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1036
+
1037
+ ### HTTP request headers
1038
+
1039
+ - **Content-Type**: Not defined
1040
+ - **Accept**: application/json
1041
+
1042
+
1043
+ ## tiktok_get_transcript
1044
+
1045
+ > Object tiktok_get_transcript(video_id, opts)
1046
+
1047
+ Get transcript
1048
+
1049
+ Get subtitle/caption tracks for a TikTok video.
1050
+
1051
+ ### Examples
1052
+
1053
+ ```ruby
1054
+ require 'time'
1055
+ require 'scrapebadger'
1056
+ # setup authorization
1057
+ ScrapeBadger.configure do |config|
1058
+ # Configure API key authorization: ApiKeyAuth
1059
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1060
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1061
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1062
+ end
1063
+
1064
+ api_instance = ScrapeBadger::TikTokApi.new
1065
+ video_id = 'video_id_example' # String |
1066
+ opts = {
1067
+ region: 'region_example' # String |
1068
+ }
1069
+
1070
+ begin
1071
+ # Get transcript
1072
+ result = api_instance.tiktok_get_transcript(video_id, opts)
1073
+ p result
1074
+ rescue ScrapeBadger::ApiError => e
1075
+ puts "Error when calling TikTokApi->tiktok_get_transcript: #{e}"
1076
+ end
1077
+ ```
1078
+
1079
+ #### Using the tiktok_get_transcript_with_http_info variant
1080
+
1081
+ This returns an Array which contains the response data, status code and headers.
1082
+
1083
+ > <Array(Object, Integer, Hash)> tiktok_get_transcript_with_http_info(video_id, opts)
1084
+
1085
+ ```ruby
1086
+ begin
1087
+ # Get transcript
1088
+ data, status_code, headers = api_instance.tiktok_get_transcript_with_http_info(video_id, opts)
1089
+ p status_code # => 2xx
1090
+ p headers # => { ... }
1091
+ p data # => Object
1092
+ rescue ScrapeBadger::ApiError => e
1093
+ puts "Error when calling TikTokApi->tiktok_get_transcript_with_http_info: #{e}"
1094
+ end
1095
+ ```
1096
+
1097
+ ### Parameters
1098
+
1099
+ | Name | Type | Description | Notes |
1100
+ | ---- | ---- | ----------- | ----- |
1101
+ | **video_id** | **String** | | |
1102
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1103
+
1104
+ ### Return type
1105
+
1106
+ **Object**
1107
+
1108
+ ### Authorization
1109
+
1110
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1111
+
1112
+ ### HTTP request headers
1113
+
1114
+ - **Content-Type**: Not defined
1115
+ - **Accept**: application/json
1116
+
1117
+
1118
+ ## tiktok_get_user_profile
1119
+
1120
+ > Object tiktok_get_user_profile(username, opts)
1121
+
1122
+ Get user profile
1123
+
1124
+ Get a TikTok user's full profile.
1125
+
1126
+ ### Examples
1127
+
1128
+ ```ruby
1129
+ require 'time'
1130
+ require 'scrapebadger'
1131
+ # setup authorization
1132
+ ScrapeBadger.configure do |config|
1133
+ # Configure API key authorization: ApiKeyAuth
1134
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1136
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1137
+ end
1138
+
1139
+ api_instance = ScrapeBadger::TikTokApi.new
1140
+ username = 'username_example' # String |
1141
+ opts = {
1142
+ region: 'region_example' # String | Content region (ISO 3166-1 alpha-2)
1143
+ }
1144
+
1145
+ begin
1146
+ # Get user profile
1147
+ result = api_instance.tiktok_get_user_profile(username, opts)
1148
+ p result
1149
+ rescue ScrapeBadger::ApiError => e
1150
+ puts "Error when calling TikTokApi->tiktok_get_user_profile: #{e}"
1151
+ end
1152
+ ```
1153
+
1154
+ #### Using the tiktok_get_user_profile_with_http_info variant
1155
+
1156
+ This returns an Array which contains the response data, status code and headers.
1157
+
1158
+ > <Array(Object, Integer, Hash)> tiktok_get_user_profile_with_http_info(username, opts)
1159
+
1160
+ ```ruby
1161
+ begin
1162
+ # Get user profile
1163
+ data, status_code, headers = api_instance.tiktok_get_user_profile_with_http_info(username, opts)
1164
+ p status_code # => 2xx
1165
+ p headers # => { ... }
1166
+ p data # => Object
1167
+ rescue ScrapeBadger::ApiError => e
1168
+ puts "Error when calling TikTokApi->tiktok_get_user_profile_with_http_info: #{e}"
1169
+ end
1170
+ ```
1171
+
1172
+ ### Parameters
1173
+
1174
+ | Name | Type | Description | Notes |
1175
+ | ---- | ---- | ----------- | ----- |
1176
+ | **username** | **String** | | |
1177
+ | **region** | **String** | Content region (ISO 3166-1 alpha-2) | [optional][default to &#39;US&#39;] |
1178
+
1179
+ ### Return type
1180
+
1181
+ **Object**
1182
+
1183
+ ### Authorization
1184
+
1185
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1186
+
1187
+ ### HTTP request headers
1188
+
1189
+ - **Content-Type**: Not defined
1190
+ - **Accept**: application/json
1191
+
1192
+
1193
+ ## tiktok_get_user_videos
1194
+
1195
+ > Object tiktok_get_user_videos(username, opts)
1196
+
1197
+ Get user videos
1198
+
1199
+ Get a TikTok user's posted videos.
1200
+
1201
+ ### Examples
1202
+
1203
+ ```ruby
1204
+ require 'time'
1205
+ require 'scrapebadger'
1206
+ # setup authorization
1207
+ ScrapeBadger.configure do |config|
1208
+ # Configure API key authorization: ApiKeyAuth
1209
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1210
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1211
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1212
+ end
1213
+
1214
+ api_instance = ScrapeBadger::TikTokApi.new
1215
+ username = 'username_example' # String |
1216
+ opts = {
1217
+ region: 'region_example', # String |
1218
+ count: 56, # Integer |
1219
+ cursor: 'cursor_example' # String | Pagination cursor from a prior page's `pagination.cursor` (signer path only).
1220
+ }
1221
+
1222
+ begin
1223
+ # Get user videos
1224
+ result = api_instance.tiktok_get_user_videos(username, opts)
1225
+ p result
1226
+ rescue ScrapeBadger::ApiError => e
1227
+ puts "Error when calling TikTokApi->tiktok_get_user_videos: #{e}"
1228
+ end
1229
+ ```
1230
+
1231
+ #### Using the tiktok_get_user_videos_with_http_info variant
1232
+
1233
+ This returns an Array which contains the response data, status code and headers.
1234
+
1235
+ > <Array(Object, Integer, Hash)> tiktok_get_user_videos_with_http_info(username, opts)
1236
+
1237
+ ```ruby
1238
+ begin
1239
+ # Get user videos
1240
+ data, status_code, headers = api_instance.tiktok_get_user_videos_with_http_info(username, opts)
1241
+ p status_code # => 2xx
1242
+ p headers # => { ... }
1243
+ p data # => Object
1244
+ rescue ScrapeBadger::ApiError => e
1245
+ puts "Error when calling TikTokApi->tiktok_get_user_videos_with_http_info: #{e}"
1246
+ end
1247
+ ```
1248
+
1249
+ ### Parameters
1250
+
1251
+ | Name | Type | Description | Notes |
1252
+ | ---- | ---- | ----------- | ----- |
1253
+ | **username** | **String** | | |
1254
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1255
+ | **count** | **Integer** | | [optional][default to 30] |
1256
+ | **cursor** | **String** | Pagination cursor from a prior page&#39;s &#x60;pagination.cursor&#x60; (signer path only). | [optional] |
1257
+
1258
+ ### Return type
1259
+
1260
+ **Object**
1261
+
1262
+ ### Authorization
1263
+
1264
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1265
+
1266
+ ### HTTP request headers
1267
+
1268
+ - **Content-Type**: Not defined
1269
+ - **Accept**: application/json
1270
+
1271
+
1272
+ ## tiktok_get_video_detail
1273
+
1274
+ > Object tiktok_get_video_detail(video_id, opts)
1275
+
1276
+ Get video detail
1277
+
1278
+ Get full metadata for a single TikTok video/post.
1279
+
1280
+ ### Examples
1281
+
1282
+ ```ruby
1283
+ require 'time'
1284
+ require 'scrapebadger'
1285
+ # setup authorization
1286
+ ScrapeBadger.configure do |config|
1287
+ # Configure API key authorization: ApiKeyAuth
1288
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1289
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1290
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1291
+ end
1292
+
1293
+ api_instance = ScrapeBadger::TikTokApi.new
1294
+ video_id = 'video_id_example' # String |
1295
+ opts = {
1296
+ region: 'region_example', # String |
1297
+ username: 'username_example' # String | Author handle (skips oEmbed lookup)
1298
+ }
1299
+
1300
+ begin
1301
+ # Get video detail
1302
+ result = api_instance.tiktok_get_video_detail(video_id, opts)
1303
+ p result
1304
+ rescue ScrapeBadger::ApiError => e
1305
+ puts "Error when calling TikTokApi->tiktok_get_video_detail: #{e}"
1306
+ end
1307
+ ```
1308
+
1309
+ #### Using the tiktok_get_video_detail_with_http_info variant
1310
+
1311
+ This returns an Array which contains the response data, status code and headers.
1312
+
1313
+ > <Array(Object, Integer, Hash)> tiktok_get_video_detail_with_http_info(video_id, opts)
1314
+
1315
+ ```ruby
1316
+ begin
1317
+ # Get video detail
1318
+ data, status_code, headers = api_instance.tiktok_get_video_detail_with_http_info(video_id, opts)
1319
+ p status_code # => 2xx
1320
+ p headers # => { ... }
1321
+ p data # => Object
1322
+ rescue ScrapeBadger::ApiError => e
1323
+ puts "Error when calling TikTokApi->tiktok_get_video_detail_with_http_info: #{e}"
1324
+ end
1325
+ ```
1326
+
1327
+ ### Parameters
1328
+
1329
+ | Name | Type | Description | Notes |
1330
+ | ---- | ---- | ----------- | ----- |
1331
+ | **video_id** | **String** | | |
1332
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1333
+ | **username** | **String** | Author handle (skips oEmbed lookup) | [optional] |
1334
+
1335
+ ### Return type
1336
+
1337
+ **Object**
1338
+
1339
+ ### Authorization
1340
+
1341
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1342
+
1343
+ ### HTTP request headers
1344
+
1345
+ - **Content-Type**: Not defined
1346
+ - **Accept**: application/json
1347
+
1348
+
1349
+ ## tiktok_health_check
1350
+
1351
+ > Object tiktok_health_check
1352
+
1353
+ Health check
1354
+
1355
+ Check health of the TikTok scraper service.
1356
+
1357
+ ### Examples
1358
+
1359
+ ```ruby
1360
+ require 'time'
1361
+ require 'scrapebadger'
1362
+ # setup authorization
1363
+ ScrapeBadger.configure do |config|
1364
+ # Configure API key authorization: ApiKeyAuth
1365
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1366
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1367
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1368
+ end
1369
+
1370
+ api_instance = ScrapeBadger::TikTokApi.new
1371
+
1372
+ begin
1373
+ # Health check
1374
+ result = api_instance.tiktok_health_check
1375
+ p result
1376
+ rescue ScrapeBadger::ApiError => e
1377
+ puts "Error when calling TikTokApi->tiktok_health_check: #{e}"
1378
+ end
1379
+ ```
1380
+
1381
+ #### Using the tiktok_health_check_with_http_info variant
1382
+
1383
+ This returns an Array which contains the response data, status code and headers.
1384
+
1385
+ > <Array(Object, Integer, Hash)> tiktok_health_check_with_http_info
1386
+
1387
+ ```ruby
1388
+ begin
1389
+ # Health check
1390
+ data, status_code, headers = api_instance.tiktok_health_check_with_http_info
1391
+ p status_code # => 2xx
1392
+ p headers # => { ... }
1393
+ p data # => Object
1394
+ rescue ScrapeBadger::ApiError => e
1395
+ puts "Error when calling TikTokApi->tiktok_health_check_with_http_info: #{e}"
1396
+ end
1397
+ ```
1398
+
1399
+ ### Parameters
1400
+
1401
+ This endpoint does not need any parameter.
1402
+
1403
+ ### Return type
1404
+
1405
+ **Object**
1406
+
1407
+ ### Authorization
1408
+
1409
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1410
+
1411
+ ### HTTP request headers
1412
+
1413
+ - **Content-Type**: Not defined
1414
+ - **Accept**: application/json
1415
+
1416
+
1417
+ ## tiktok_health_check_head
1418
+
1419
+ > Object tiktok_health_check_head
1420
+
1421
+ Health check
1422
+
1423
+ Check health of the TikTok scraper service.
1424
+
1425
+ ### Examples
1426
+
1427
+ ```ruby
1428
+ require 'time'
1429
+ require 'scrapebadger'
1430
+ # setup authorization
1431
+ ScrapeBadger.configure do |config|
1432
+ # Configure API key authorization: ApiKeyAuth
1433
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1434
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1435
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1436
+ end
1437
+
1438
+ api_instance = ScrapeBadger::TikTokApi.new
1439
+
1440
+ begin
1441
+ # Health check
1442
+ result = api_instance.tiktok_health_check_head
1443
+ p result
1444
+ rescue ScrapeBadger::ApiError => e
1445
+ puts "Error when calling TikTokApi->tiktok_health_check_head: #{e}"
1446
+ end
1447
+ ```
1448
+
1449
+ #### Using the tiktok_health_check_head_with_http_info variant
1450
+
1451
+ This returns an Array which contains the response data, status code and headers.
1452
+
1453
+ > <Array(Object, Integer, Hash)> tiktok_health_check_head_with_http_info
1454
+
1455
+ ```ruby
1456
+ begin
1457
+ # Health check
1458
+ data, status_code, headers = api_instance.tiktok_health_check_head_with_http_info
1459
+ p status_code # => 2xx
1460
+ p headers # => { ... }
1461
+ p data # => Object
1462
+ rescue ScrapeBadger::ApiError => e
1463
+ puts "Error when calling TikTokApi->tiktok_health_check_head_with_http_info: #{e}"
1464
+ end
1465
+ ```
1466
+
1467
+ ### Parameters
1468
+
1469
+ This endpoint does not need any parameter.
1470
+
1471
+ ### Return type
1472
+
1473
+ **Object**
1474
+
1475
+ ### Authorization
1476
+
1477
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1478
+
1479
+ ### HTTP request headers
1480
+
1481
+ - **Content-Type**: Not defined
1482
+ - **Accept**: application/json
1483
+
1484
+
1485
+ ## tiktok_list_regions
1486
+
1487
+ > Object tiktok_list_regions
1488
+
1489
+ List regions
1490
+
1491
+ List supported TikTok content regions.
1492
+
1493
+ ### Examples
1494
+
1495
+ ```ruby
1496
+ require 'time'
1497
+ require 'scrapebadger'
1498
+ # setup authorization
1499
+ ScrapeBadger.configure do |config|
1500
+ # Configure API key authorization: ApiKeyAuth
1501
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1502
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1503
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1504
+ end
1505
+
1506
+ api_instance = ScrapeBadger::TikTokApi.new
1507
+
1508
+ begin
1509
+ # List regions
1510
+ result = api_instance.tiktok_list_regions
1511
+ p result
1512
+ rescue ScrapeBadger::ApiError => e
1513
+ puts "Error when calling TikTokApi->tiktok_list_regions: #{e}"
1514
+ end
1515
+ ```
1516
+
1517
+ #### Using the tiktok_list_regions_with_http_info variant
1518
+
1519
+ This returns an Array which contains the response data, status code and headers.
1520
+
1521
+ > <Array(Object, Integer, Hash)> tiktok_list_regions_with_http_info
1522
+
1523
+ ```ruby
1524
+ begin
1525
+ # List regions
1526
+ data, status_code, headers = api_instance.tiktok_list_regions_with_http_info
1527
+ p status_code # => 2xx
1528
+ p headers # => { ... }
1529
+ p data # => Object
1530
+ rescue ScrapeBadger::ApiError => e
1531
+ puts "Error when calling TikTokApi->tiktok_list_regions_with_http_info: #{e}"
1532
+ end
1533
+ ```
1534
+
1535
+ ### Parameters
1536
+
1537
+ This endpoint does not need any parameter.
1538
+
1539
+ ### Return type
1540
+
1541
+ **Object**
1542
+
1543
+ ### Authorization
1544
+
1545
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1546
+
1547
+ ### HTTP request headers
1548
+
1549
+ - **Content-Type**: Not defined
1550
+ - **Accept**: application/json
1551
+
1552
+
1553
+ ## tiktok_search_hashtags
1554
+
1555
+ > Object tiktok_search_hashtags(query, opts)
1556
+
1557
+ Search hashtags
1558
+
1559
+ Search TikTok hashtags by keyword.
1560
+
1561
+ ### Examples
1562
+
1563
+ ```ruby
1564
+ require 'time'
1565
+ require 'scrapebadger'
1566
+ # setup authorization
1567
+ ScrapeBadger.configure do |config|
1568
+ # Configure API key authorization: ApiKeyAuth
1569
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1570
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1571
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1572
+ end
1573
+
1574
+ api_instance = ScrapeBadger::TikTokApi.new
1575
+ query = 'query_example' # String | Search keyword
1576
+ opts = {
1577
+ region: 'region_example', # String |
1578
+ count: 56, # Integer |
1579
+ cursor: 'cursor_example' # String | Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
1580
+ }
1581
+
1582
+ begin
1583
+ # Search hashtags
1584
+ result = api_instance.tiktok_search_hashtags(query, opts)
1585
+ p result
1586
+ rescue ScrapeBadger::ApiError => e
1587
+ puts "Error when calling TikTokApi->tiktok_search_hashtags: #{e}"
1588
+ end
1589
+ ```
1590
+
1591
+ #### Using the tiktok_search_hashtags_with_http_info variant
1592
+
1593
+ This returns an Array which contains the response data, status code and headers.
1594
+
1595
+ > <Array(Object, Integer, Hash)> tiktok_search_hashtags_with_http_info(query, opts)
1596
+
1597
+ ```ruby
1598
+ begin
1599
+ # Search hashtags
1600
+ data, status_code, headers = api_instance.tiktok_search_hashtags_with_http_info(query, opts)
1601
+ p status_code # => 2xx
1602
+ p headers # => { ... }
1603
+ p data # => Object
1604
+ rescue ScrapeBadger::ApiError => e
1605
+ puts "Error when calling TikTokApi->tiktok_search_hashtags_with_http_info: #{e}"
1606
+ end
1607
+ ```
1608
+
1609
+ ### Parameters
1610
+
1611
+ | Name | Type | Description | Notes |
1612
+ | ---- | ---- | ----------- | ----- |
1613
+ | **query** | **String** | Search keyword | |
1614
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1615
+ | **count** | **Integer** | | [optional][default to 20] |
1616
+ | **cursor** | **String** | Composite pagination cursor (offset.search_id) from a prior page&#39;s pagination.cursor | [optional] |
1617
+
1618
+ ### Return type
1619
+
1620
+ **Object**
1621
+
1622
+ ### Authorization
1623
+
1624
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1625
+
1626
+ ### HTTP request headers
1627
+
1628
+ - **Content-Type**: Not defined
1629
+ - **Accept**: application/json
1630
+
1631
+
1632
+ ## tiktok_search_the_tiktok_ad_library
1633
+
1634
+ > Object tiktok_search_the_tiktok_ad_library(opts)
1635
+
1636
+ Search the TikTok Ad Library
1637
+
1638
+ Search TikTok's Commercial Content Library (ad transparency) by keyword or advertiser.
1639
+
1640
+ ### Examples
1641
+
1642
+ ```ruby
1643
+ require 'time'
1644
+ require 'scrapebadger'
1645
+ # setup authorization
1646
+ ScrapeBadger.configure do |config|
1647
+ # Configure API key authorization: ApiKeyAuth
1648
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1649
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1650
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1651
+ end
1652
+
1653
+ api_instance = ScrapeBadger::TikTokApi.new
1654
+ opts = {
1655
+ query: 'query_example', # String | Keyword (ignored when advertiser_id is set)
1656
+ advertiser_id: 'advertiser_id_example', # String | Advertiser business id(s) for advertiser search
1657
+ region: 'region_example', # String | EU region code (the Ad Library is EU-only)
1658
+ days: 56, # Integer |
1659
+ sort: 'sort_example', # String |
1660
+ offset: 56, # Integer |
1661
+ search_id: 'search_id_example', # String |
1662
+ count: 56 # Integer |
1663
+ }
1664
+
1665
+ begin
1666
+ # Search the TikTok Ad Library
1667
+ result = api_instance.tiktok_search_the_tiktok_ad_library(opts)
1668
+ p result
1669
+ rescue ScrapeBadger::ApiError => e
1670
+ puts "Error when calling TikTokApi->tiktok_search_the_tiktok_ad_library: #{e}"
1671
+ end
1672
+ ```
1673
+
1674
+ #### Using the tiktok_search_the_tiktok_ad_library_with_http_info variant
1675
+
1676
+ This returns an Array which contains the response data, status code and headers.
1677
+
1678
+ > <Array(Object, Integer, Hash)> tiktok_search_the_tiktok_ad_library_with_http_info(opts)
1679
+
1680
+ ```ruby
1681
+ begin
1682
+ # Search the TikTok Ad Library
1683
+ data, status_code, headers = api_instance.tiktok_search_the_tiktok_ad_library_with_http_info(opts)
1684
+ p status_code # => 2xx
1685
+ p headers # => { ... }
1686
+ p data # => Object
1687
+ rescue ScrapeBadger::ApiError => e
1688
+ puts "Error when calling TikTokApi->tiktok_search_the_tiktok_ad_library_with_http_info: #{e}"
1689
+ end
1690
+ ```
1691
+
1692
+ ### Parameters
1693
+
1694
+ | Name | Type | Description | Notes |
1695
+ | ---- | ---- | ----------- | ----- |
1696
+ | **query** | **String** | Keyword (ignored when advertiser_id is set) | [optional][default to &#39;&#39;] |
1697
+ | **advertiser_id** | **String** | Advertiser business id(s) for advertiser search | [optional][default to &#39;&#39;] |
1698
+ | **region** | **String** | EU region code (the Ad Library is EU-only) | [optional][default to &#39;DE&#39;] |
1699
+ | **days** | **Integer** | | [optional][default to 30] |
1700
+ | **sort** | **String** | | [optional][default to &#39;last_shown_date,desc&#39;] |
1701
+ | **offset** | **Integer** | | [optional][default to 0] |
1702
+ | **search_id** | **String** | | [optional][default to &#39;&#39;] |
1703
+ | **count** | **Integer** | | [optional][default to 20] |
1704
+
1705
+ ### Return type
1706
+
1707
+ **Object**
1708
+
1709
+ ### Authorization
1710
+
1711
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1712
+
1713
+ ### HTTP request headers
1714
+
1715
+ - **Content-Type**: Not defined
1716
+ - **Accept**: application/json
1717
+
1718
+
1719
+ ## tiktok_search_users
1720
+
1721
+ > Object tiktok_search_users(query, opts)
1722
+
1723
+ Search users
1724
+
1725
+ Search TikTok users by keyword.
1726
+
1727
+ ### Examples
1728
+
1729
+ ```ruby
1730
+ require 'time'
1731
+ require 'scrapebadger'
1732
+ # setup authorization
1733
+ ScrapeBadger.configure do |config|
1734
+ # Configure API key authorization: ApiKeyAuth
1735
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1736
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1737
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1738
+ end
1739
+
1740
+ api_instance = ScrapeBadger::TikTokApi.new
1741
+ query = 'query_example' # String | Search keyword
1742
+ opts = {
1743
+ region: 'region_example', # String |
1744
+ count: 56, # Integer |
1745
+ cursor: 'cursor_example' # String | Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
1746
+ }
1747
+
1748
+ begin
1749
+ # Search users
1750
+ result = api_instance.tiktok_search_users(query, opts)
1751
+ p result
1752
+ rescue ScrapeBadger::ApiError => e
1753
+ puts "Error when calling TikTokApi->tiktok_search_users: #{e}"
1754
+ end
1755
+ ```
1756
+
1757
+ #### Using the tiktok_search_users_with_http_info variant
1758
+
1759
+ This returns an Array which contains the response data, status code and headers.
1760
+
1761
+ > <Array(Object, Integer, Hash)> tiktok_search_users_with_http_info(query, opts)
1762
+
1763
+ ```ruby
1764
+ begin
1765
+ # Search users
1766
+ data, status_code, headers = api_instance.tiktok_search_users_with_http_info(query, opts)
1767
+ p status_code # => 2xx
1768
+ p headers # => { ... }
1769
+ p data # => Object
1770
+ rescue ScrapeBadger::ApiError => e
1771
+ puts "Error when calling TikTokApi->tiktok_search_users_with_http_info: #{e}"
1772
+ end
1773
+ ```
1774
+
1775
+ ### Parameters
1776
+
1777
+ | Name | Type | Description | Notes |
1778
+ | ---- | ---- | ----------- | ----- |
1779
+ | **query** | **String** | Search keyword | |
1780
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1781
+ | **count** | **Integer** | | [optional][default to 20] |
1782
+ | **cursor** | **String** | Composite pagination cursor (offset.search_id) from a prior page&#39;s pagination.cursor | [optional] |
1783
+
1784
+ ### Return type
1785
+
1786
+ **Object**
1787
+
1788
+ ### Authorization
1789
+
1790
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1791
+
1792
+ ### HTTP request headers
1793
+
1794
+ - **Content-Type**: Not defined
1795
+ - **Accept**: application/json
1796
+
1797
+
1798
+ ## tiktok_search_videos
1799
+
1800
+ > Object tiktok_search_videos(query, opts)
1801
+
1802
+ Search videos
1803
+
1804
+ Search TikTok videos by keyword.
1805
+
1806
+ ### Examples
1807
+
1808
+ ```ruby
1809
+ require 'time'
1810
+ require 'scrapebadger'
1811
+ # setup authorization
1812
+ ScrapeBadger.configure do |config|
1813
+ # Configure API key authorization: ApiKeyAuth
1814
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1815
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1816
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1817
+ end
1818
+
1819
+ api_instance = ScrapeBadger::TikTokApi.new
1820
+ query = 'query_example' # String | Search keyword
1821
+ opts = {
1822
+ region: 'region_example', # String |
1823
+ count: 56, # Integer |
1824
+ cursor: 'cursor_example' # String | Composite pagination cursor (offset.search_id) from a prior page's pagination.cursor
1825
+ }
1826
+
1827
+ begin
1828
+ # Search videos
1829
+ result = api_instance.tiktok_search_videos(query, opts)
1830
+ p result
1831
+ rescue ScrapeBadger::ApiError => e
1832
+ puts "Error when calling TikTokApi->tiktok_search_videos: #{e}"
1833
+ end
1834
+ ```
1835
+
1836
+ #### Using the tiktok_search_videos_with_http_info variant
1837
+
1838
+ This returns an Array which contains the response data, status code and headers.
1839
+
1840
+ > <Array(Object, Integer, Hash)> tiktok_search_videos_with_http_info(query, opts)
1841
+
1842
+ ```ruby
1843
+ begin
1844
+ # Search videos
1845
+ data, status_code, headers = api_instance.tiktok_search_videos_with_http_info(query, opts)
1846
+ p status_code # => 2xx
1847
+ p headers # => { ... }
1848
+ p data # => Object
1849
+ rescue ScrapeBadger::ApiError => e
1850
+ puts "Error when calling TikTokApi->tiktok_search_videos_with_http_info: #{e}"
1851
+ end
1852
+ ```
1853
+
1854
+ ### Parameters
1855
+
1856
+ | Name | Type | Description | Notes |
1857
+ | ---- | ---- | ----------- | ----- |
1858
+ | **query** | **String** | Search keyword | |
1859
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1860
+ | **count** | **Integer** | | [optional][default to 20] |
1861
+ | **cursor** | **String** | Composite pagination cursor (offset.search_id) from a prior page&#39;s pagination.cursor | [optional] |
1862
+
1863
+ ### Return type
1864
+
1865
+ **Object**
1866
+
1867
+ ### Authorization
1868
+
1869
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1870
+
1871
+ ### HTTP request headers
1872
+
1873
+ - **Content-Type**: Not defined
1874
+ - **Accept**: application/json
1875
+
1876
+
1877
+ ## tiktok_trending_hashtags
1878
+
1879
+ > Object tiktok_trending_hashtags(opts)
1880
+
1881
+ Trending hashtags
1882
+
1883
+ Get trending hashtags (mobile Discover surface — view_count + creators).
1884
+
1885
+ ### Examples
1886
+
1887
+ ```ruby
1888
+ require 'time'
1889
+ require 'scrapebadger'
1890
+ # setup authorization
1891
+ ScrapeBadger.configure do |config|
1892
+ # Configure API key authorization: ApiKeyAuth
1893
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1894
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1895
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1896
+ end
1897
+
1898
+ api_instance = ScrapeBadger::TikTokApi.new
1899
+ opts = {
1900
+ region: 'region_example', # String |
1901
+ period: 56, # Integer |
1902
+ count: 56 # Integer |
1903
+ }
1904
+
1905
+ begin
1906
+ # Trending hashtags
1907
+ result = api_instance.tiktok_trending_hashtags(opts)
1908
+ p result
1909
+ rescue ScrapeBadger::ApiError => e
1910
+ puts "Error when calling TikTokApi->tiktok_trending_hashtags: #{e}"
1911
+ end
1912
+ ```
1913
+
1914
+ #### Using the tiktok_trending_hashtags_with_http_info variant
1915
+
1916
+ This returns an Array which contains the response data, status code and headers.
1917
+
1918
+ > <Array(Object, Integer, Hash)> tiktok_trending_hashtags_with_http_info(opts)
1919
+
1920
+ ```ruby
1921
+ begin
1922
+ # Trending hashtags
1923
+ data, status_code, headers = api_instance.tiktok_trending_hashtags_with_http_info(opts)
1924
+ p status_code # => 2xx
1925
+ p headers # => { ... }
1926
+ p data # => Object
1927
+ rescue ScrapeBadger::ApiError => e
1928
+ puts "Error when calling TikTokApi->tiktok_trending_hashtags_with_http_info: #{e}"
1929
+ end
1930
+ ```
1931
+
1932
+ ### Parameters
1933
+
1934
+ | Name | Type | Description | Notes |
1935
+ | ---- | ---- | ----------- | ----- |
1936
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
1937
+ | **period** | **Integer** | | [optional][default to 7] |
1938
+ | **count** | **Integer** | | [optional][default to 20] |
1939
+
1940
+ ### Return type
1941
+
1942
+ **Object**
1943
+
1944
+ ### Authorization
1945
+
1946
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
1947
+
1948
+ ### HTTP request headers
1949
+
1950
+ - **Content-Type**: Not defined
1951
+ - **Accept**: application/json
1952
+
1953
+
1954
+ ## tiktok_trending_songs
1955
+
1956
+ > Object tiktok_trending_songs(opts)
1957
+
1958
+ Trending songs
1959
+
1960
+ Get trending songs/sounds (mobile hot-music feed — ranked by usage).
1961
+
1962
+ ### Examples
1963
+
1964
+ ```ruby
1965
+ require 'time'
1966
+ require 'scrapebadger'
1967
+ # setup authorization
1968
+ ScrapeBadger.configure do |config|
1969
+ # Configure API key authorization: ApiKeyAuth
1970
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
1971
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1972
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
1973
+ end
1974
+
1975
+ api_instance = ScrapeBadger::TikTokApi.new
1976
+ opts = {
1977
+ region: 'region_example', # String |
1978
+ period: 56, # Integer |
1979
+ count: 56 # Integer |
1980
+ }
1981
+
1982
+ begin
1983
+ # Trending songs
1984
+ result = api_instance.tiktok_trending_songs(opts)
1985
+ p result
1986
+ rescue ScrapeBadger::ApiError => e
1987
+ puts "Error when calling TikTokApi->tiktok_trending_songs: #{e}"
1988
+ end
1989
+ ```
1990
+
1991
+ #### Using the tiktok_trending_songs_with_http_info variant
1992
+
1993
+ This returns an Array which contains the response data, status code and headers.
1994
+
1995
+ > <Array(Object, Integer, Hash)> tiktok_trending_songs_with_http_info(opts)
1996
+
1997
+ ```ruby
1998
+ begin
1999
+ # Trending songs
2000
+ data, status_code, headers = api_instance.tiktok_trending_songs_with_http_info(opts)
2001
+ p status_code # => 2xx
2002
+ p headers # => { ... }
2003
+ p data # => Object
2004
+ rescue ScrapeBadger::ApiError => e
2005
+ puts "Error when calling TikTokApi->tiktok_trending_songs_with_http_info: #{e}"
2006
+ end
2007
+ ```
2008
+
2009
+ ### Parameters
2010
+
2011
+ | Name | Type | Description | Notes |
2012
+ | ---- | ---- | ----------- | ----- |
2013
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
2014
+ | **period** | **Integer** | | [optional][default to 7] |
2015
+ | **count** | **Integer** | | [optional][default to 20] |
2016
+
2017
+ ### Return type
2018
+
2019
+ **Object**
2020
+
2021
+ ### Authorization
2022
+
2023
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
2024
+
2025
+ ### HTTP request headers
2026
+
2027
+ - **Content-Type**: Not defined
2028
+ - **Accept**: application/json
2029
+
2030
+
2031
+ ## tiktok_trending_videos
2032
+
2033
+ > Object tiktok_trending_videos(opts)
2034
+
2035
+ Trending videos
2036
+
2037
+ Get trending videos from the TikTok Explore feed.
2038
+
2039
+ ### Examples
2040
+
2041
+ ```ruby
2042
+ require 'time'
2043
+ require 'scrapebadger'
2044
+ # setup authorization
2045
+ ScrapeBadger.configure do |config|
2046
+ # Configure API key authorization: ApiKeyAuth
2047
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
2048
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2049
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
2050
+ end
2051
+
2052
+ api_instance = ScrapeBadger::TikTokApi.new
2053
+ opts = {
2054
+ region: 'region_example', # String |
2055
+ count: 56 # Integer |
2056
+ }
2057
+
2058
+ begin
2059
+ # Trending videos
2060
+ result = api_instance.tiktok_trending_videos(opts)
2061
+ p result
2062
+ rescue ScrapeBadger::ApiError => e
2063
+ puts "Error when calling TikTokApi->tiktok_trending_videos: #{e}"
2064
+ end
2065
+ ```
2066
+
2067
+ #### Using the tiktok_trending_videos_with_http_info variant
2068
+
2069
+ This returns an Array which contains the response data, status code and headers.
2070
+
2071
+ > <Array(Object, Integer, Hash)> tiktok_trending_videos_with_http_info(opts)
2072
+
2073
+ ```ruby
2074
+ begin
2075
+ # Trending videos
2076
+ data, status_code, headers = api_instance.tiktok_trending_videos_with_http_info(opts)
2077
+ p status_code # => 2xx
2078
+ p headers # => { ... }
2079
+ p data # => Object
2080
+ rescue ScrapeBadger::ApiError => e
2081
+ puts "Error when calling TikTokApi->tiktok_trending_videos_with_http_info: #{e}"
2082
+ end
2083
+ ```
2084
+
2085
+ ### Parameters
2086
+
2087
+ | Name | Type | Description | Notes |
2088
+ | ---- | ---- | ----------- | ----- |
2089
+ | **region** | **String** | | [optional][default to &#39;US&#39;] |
2090
+ | **count** | **Integer** | | [optional][default to 20] |
2091
+
2092
+ ### Return type
2093
+
2094
+ **Object**
2095
+
2096
+ ### Authorization
2097
+
2098
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
2099
+
2100
+ ### HTTP request headers
2101
+
2102
+ - **Content-Type**: Not defined
2103
+ - **Accept**: application/json
2104
+