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
@@ -0,0 +1,26 @@
1
+ # ScrapeBadger::WebhookResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **monitor_id** | **String** | | |
9
+ | **url** | **String** | | |
10
+ | **secret** | **String** | | |
11
+ | **created_at** | **Time** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'scrapebadger'
17
+
18
+ instance = ScrapeBadger::WebhookResponse.new(
19
+ id: null,
20
+ monitor_id: null,
21
+ url: null,
22
+ secret: null,
23
+ created_at: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # ScrapeBadger::WebhookTestRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **monitor_id** | **String** | Monitor with webhook to test | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'scrapebadger'
13
+
14
+ instance = ScrapeBadger::WebhookTestRequest.new(
15
+ monitor_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # ScrapeBadger::WebhookTestResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | |
8
+ | **status_code** | **Integer** | | [optional] |
9
+ | **response_time_ms** | **Float** | Round-trip time in milliseconds | |
10
+ | **error** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'scrapebadger'
16
+
17
+ instance = ScrapeBadger::WebhookTestResponse.new(
18
+ success: null,
19
+ status_code: null,
20
+ response_time_ms: null,
21
+ error: null
22
+ )
23
+ ```
24
+
data/docs/YahooApi.md ADDED
@@ -0,0 +1,602 @@
1
+ # ScrapeBadger::YahooApi
2
+
3
+ All URIs are relative to *https://scrapebadger.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**yahoo_image_search**](YahooApi.md#yahoo_image_search) | **GET** /v1/yahoo/images | Image search |
8
+ | [**yahoo_list_supported_markets**](YahooApi.md#yahoo_list_supported_markets) | **GET** /v1/yahoo/markets | List supported markets |
9
+ | [**yahoo_news_search**](YahooApi.md#yahoo_news_search) | **GET** /v1/yahoo/news | News search |
10
+ | [**yahoo_search_suggestions**](YahooApi.md#yahoo_search_suggestions) | **GET** /v1/yahoo/autocomplete | Search suggestions |
11
+ | [**yahoo_video_search**](YahooApi.md#yahoo_video_search) | **GET** /v1/yahoo/videos | Video search |
12
+ | [**yahoo_web_search**](YahooApi.md#yahoo_web_search) | **GET** /v1/yahoo/search | Web search |
13
+ | [**yahoo_yahoo_scraper_health_check**](YahooApi.md#yahoo_yahoo_scraper_health_check) | **GET** /v1/yahoo/health | Yahoo scraper health check |
14
+ | [**yahoo_yahoo_scraper_health_check_head**](YahooApi.md#yahoo_yahoo_scraper_health_check_head) | **HEAD** /v1/yahoo/health | Yahoo scraper health check |
15
+
16
+
17
+ ## yahoo_image_search
18
+
19
+ > Object yahoo_image_search(query, opts)
20
+
21
+ Image search
22
+
23
+ Yahoo Images — thumbnail, full-size and source URL per result.
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'scrapebadger'
30
+ # setup authorization
31
+ ScrapeBadger.configure do |config|
32
+ # Configure API key authorization: ApiKeyAuth
33
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
36
+ end
37
+
38
+ api_instance = ScrapeBadger::YahooApi.new
39
+ query = 'query_example' # String | Search keywords, e.g. 'golden retriever'
40
+ opts = {
41
+ market: 'market_example', # String | Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
42
+ count: 56 # Integer | Results to return
43
+ }
44
+
45
+ begin
46
+ # Image search
47
+ result = api_instance.yahoo_image_search(query, opts)
48
+ p result
49
+ rescue ScrapeBadger::ApiError => e
50
+ puts "Error when calling YahooApi->yahoo_image_search: #{e}"
51
+ end
52
+ ```
53
+
54
+ #### Using the yahoo_image_search_with_http_info variant
55
+
56
+ This returns an Array which contains the response data, status code and headers.
57
+
58
+ > <Array(Object, Integer, Hash)> yahoo_image_search_with_http_info(query, opts)
59
+
60
+ ```ruby
61
+ begin
62
+ # Image search
63
+ data, status_code, headers = api_instance.yahoo_image_search_with_http_info(query, opts)
64
+ p status_code # => 2xx
65
+ p headers # => { ... }
66
+ p data # => Object
67
+ rescue ScrapeBadger::ApiError => e
68
+ puts "Error when calling YahooApi->yahoo_image_search_with_http_info: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ | Name | Type | Description | Notes |
75
+ | ---- | ---- | ----------- | ----- |
76
+ | **query** | **String** | Search keywords, e.g. &#39;golden retriever&#39; | |
77
+ | **market** | **String** | Yahoo market code, e.g. &#39;us&#39;, &#39;uk&#39;, &#39;fr&#39;, &#39;de&#39;. See /markets. | [optional][default to &#39;us&#39;] |
78
+ | **count** | **Integer** | Results to return | [optional][default to 30] |
79
+
80
+ ### Return type
81
+
82
+ **Object**
83
+
84
+ ### Authorization
85
+
86
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: Not defined
91
+ - **Accept**: application/json
92
+
93
+
94
+ ## yahoo_list_supported_markets
95
+
96
+ > Object yahoo_list_supported_markets
97
+
98
+ List supported markets
99
+
100
+ Supported Yahoo market codes. Free — costs no credits.
101
+
102
+ ### Examples
103
+
104
+ ```ruby
105
+ require 'time'
106
+ require 'scrapebadger'
107
+ # setup authorization
108
+ ScrapeBadger.configure do |config|
109
+ # Configure API key authorization: ApiKeyAuth
110
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
111
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
112
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
113
+ end
114
+
115
+ api_instance = ScrapeBadger::YahooApi.new
116
+
117
+ begin
118
+ # List supported markets
119
+ result = api_instance.yahoo_list_supported_markets
120
+ p result
121
+ rescue ScrapeBadger::ApiError => e
122
+ puts "Error when calling YahooApi->yahoo_list_supported_markets: #{e}"
123
+ end
124
+ ```
125
+
126
+ #### Using the yahoo_list_supported_markets_with_http_info variant
127
+
128
+ This returns an Array which contains the response data, status code and headers.
129
+
130
+ > <Array(Object, Integer, Hash)> yahoo_list_supported_markets_with_http_info
131
+
132
+ ```ruby
133
+ begin
134
+ # List supported markets
135
+ data, status_code, headers = api_instance.yahoo_list_supported_markets_with_http_info
136
+ p status_code # => 2xx
137
+ p headers # => { ... }
138
+ p data # => Object
139
+ rescue ScrapeBadger::ApiError => e
140
+ puts "Error when calling YahooApi->yahoo_list_supported_markets_with_http_info: #{e}"
141
+ end
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ This endpoint does not need any parameter.
147
+
148
+ ### Return type
149
+
150
+ **Object**
151
+
152
+ ### Authorization
153
+
154
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+ ## yahoo_news_search
163
+
164
+ > Object yahoo_news_search(query, opts)
165
+
166
+ News search
167
+
168
+ Yahoo News — headline, source, published time and snippet per article.
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'scrapebadger'
175
+ # setup authorization
176
+ ScrapeBadger.configure do |config|
177
+ # Configure API key authorization: ApiKeyAuth
178
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
179
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
180
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
181
+ end
182
+
183
+ api_instance = ScrapeBadger::YahooApi.new
184
+ query = 'query_example' # String | Search keywords, e.g. 'interest rates'
185
+ opts = {
186
+ market: 'market_example' # String | Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
187
+ }
188
+
189
+ begin
190
+ # News search
191
+ result = api_instance.yahoo_news_search(query, opts)
192
+ p result
193
+ rescue ScrapeBadger::ApiError => e
194
+ puts "Error when calling YahooApi->yahoo_news_search: #{e}"
195
+ end
196
+ ```
197
+
198
+ #### Using the yahoo_news_search_with_http_info variant
199
+
200
+ This returns an Array which contains the response data, status code and headers.
201
+
202
+ > <Array(Object, Integer, Hash)> yahoo_news_search_with_http_info(query, opts)
203
+
204
+ ```ruby
205
+ begin
206
+ # News search
207
+ data, status_code, headers = api_instance.yahoo_news_search_with_http_info(query, opts)
208
+ p status_code # => 2xx
209
+ p headers # => { ... }
210
+ p data # => Object
211
+ rescue ScrapeBadger::ApiError => e
212
+ puts "Error when calling YahooApi->yahoo_news_search_with_http_info: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ | Name | Type | Description | Notes |
219
+ | ---- | ---- | ----------- | ----- |
220
+ | **query** | **String** | Search keywords, e.g. &#39;interest rates&#39; | |
221
+ | **market** | **String** | Yahoo market code, e.g. &#39;us&#39;, &#39;uk&#39;, &#39;fr&#39;, &#39;de&#39;. See /markets. | [optional][default to &#39;us&#39;] |
222
+
223
+ ### Return type
224
+
225
+ **Object**
226
+
227
+ ### Authorization
228
+
229
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: Not defined
234
+ - **Accept**: application/json
235
+
236
+
237
+ ## yahoo_search_suggestions
238
+
239
+ > Object yahoo_search_suggestions(query, opts)
240
+
241
+ Search suggestions
242
+
243
+ Yahoo search-box query suggestions.
244
+
245
+ ### Examples
246
+
247
+ ```ruby
248
+ require 'time'
249
+ require 'scrapebadger'
250
+ # setup authorization
251
+ ScrapeBadger.configure do |config|
252
+ # Configure API key authorization: ApiKeyAuth
253
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
254
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
255
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
256
+ end
257
+
258
+ api_instance = ScrapeBadger::YahooApi.new
259
+ query = 'query_example' # String | Partial search term, e.g. 'coff'
260
+ opts = {
261
+ market: 'market_example' # String | Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
262
+ }
263
+
264
+ begin
265
+ # Search suggestions
266
+ result = api_instance.yahoo_search_suggestions(query, opts)
267
+ p result
268
+ rescue ScrapeBadger::ApiError => e
269
+ puts "Error when calling YahooApi->yahoo_search_suggestions: #{e}"
270
+ end
271
+ ```
272
+
273
+ #### Using the yahoo_search_suggestions_with_http_info variant
274
+
275
+ This returns an Array which contains the response data, status code and headers.
276
+
277
+ > <Array(Object, Integer, Hash)> yahoo_search_suggestions_with_http_info(query, opts)
278
+
279
+ ```ruby
280
+ begin
281
+ # Search suggestions
282
+ data, status_code, headers = api_instance.yahoo_search_suggestions_with_http_info(query, opts)
283
+ p status_code # => 2xx
284
+ p headers # => { ... }
285
+ p data # => Object
286
+ rescue ScrapeBadger::ApiError => e
287
+ puts "Error when calling YahooApi->yahoo_search_suggestions_with_http_info: #{e}"
288
+ end
289
+ ```
290
+
291
+ ### Parameters
292
+
293
+ | Name | Type | Description | Notes |
294
+ | ---- | ---- | ----------- | ----- |
295
+ | **query** | **String** | Partial search term, e.g. &#39;coff&#39; | |
296
+ | **market** | **String** | Yahoo market code, e.g. &#39;us&#39;, &#39;uk&#39;, &#39;fr&#39;, &#39;de&#39;. See /markets. | [optional][default to &#39;us&#39;] |
297
+
298
+ ### Return type
299
+
300
+ **Object**
301
+
302
+ ### Authorization
303
+
304
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: Not defined
309
+ - **Accept**: application/json
310
+
311
+
312
+ ## yahoo_video_search
313
+
314
+ > Object yahoo_video_search(query, opts)
315
+
316
+ Video search
317
+
318
+ Yahoo Videos — title, thumbnail, duration, publisher and source per result.
319
+
320
+ ### Examples
321
+
322
+ ```ruby
323
+ require 'time'
324
+ require 'scrapebadger'
325
+ # setup authorization
326
+ ScrapeBadger.configure do |config|
327
+ # Configure API key authorization: ApiKeyAuth
328
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
329
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
330
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
331
+ end
332
+
333
+ api_instance = ScrapeBadger::YahooApi.new
334
+ query = 'query_example' # String | Search keywords, e.g. 'espresso tutorial'
335
+ opts = {
336
+ market: 'market_example', # String | Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
337
+ count: 56 # Integer | Results to return
338
+ }
339
+
340
+ begin
341
+ # Video search
342
+ result = api_instance.yahoo_video_search(query, opts)
343
+ p result
344
+ rescue ScrapeBadger::ApiError => e
345
+ puts "Error when calling YahooApi->yahoo_video_search: #{e}"
346
+ end
347
+ ```
348
+
349
+ #### Using the yahoo_video_search_with_http_info variant
350
+
351
+ This returns an Array which contains the response data, status code and headers.
352
+
353
+ > <Array(Object, Integer, Hash)> yahoo_video_search_with_http_info(query, opts)
354
+
355
+ ```ruby
356
+ begin
357
+ # Video search
358
+ data, status_code, headers = api_instance.yahoo_video_search_with_http_info(query, opts)
359
+ p status_code # => 2xx
360
+ p headers # => { ... }
361
+ p data # => Object
362
+ rescue ScrapeBadger::ApiError => e
363
+ puts "Error when calling YahooApi->yahoo_video_search_with_http_info: #{e}"
364
+ end
365
+ ```
366
+
367
+ ### Parameters
368
+
369
+ | Name | Type | Description | Notes |
370
+ | ---- | ---- | ----------- | ----- |
371
+ | **query** | **String** | Search keywords, e.g. &#39;espresso tutorial&#39; | |
372
+ | **market** | **String** | Yahoo market code, e.g. &#39;us&#39;, &#39;uk&#39;, &#39;fr&#39;, &#39;de&#39;. See /markets. | [optional][default to &#39;us&#39;] |
373
+ | **count** | **Integer** | Results to return | [optional][default to 30] |
374
+
375
+ ### Return type
376
+
377
+ **Object**
378
+
379
+ ### Authorization
380
+
381
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
382
+
383
+ ### HTTP request headers
384
+
385
+ - **Content-Type**: Not defined
386
+ - **Accept**: application/json
387
+
388
+
389
+ ## yahoo_web_search
390
+
391
+ > Object yahoo_web_search(query, opts)
392
+
393
+ Web search
394
+
395
+ Yahoo web SERP — organic results, ads, related searches and total count.
396
+
397
+ ### Examples
398
+
399
+ ```ruby
400
+ require 'time'
401
+ require 'scrapebadger'
402
+ # setup authorization
403
+ ScrapeBadger.configure do |config|
404
+ # Configure API key authorization: ApiKeyAuth
405
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
406
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
407
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
408
+ end
409
+
410
+ api_instance = ScrapeBadger::YahooApi.new
411
+ query = 'query_example' # String | Search keywords, e.g. 'coffee machine'
412
+ opts = {
413
+ market: 'market_example', # String | Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
414
+ offset: 56, # Integer | Zero-based result offset for pagination
415
+ safe_search: 'safe_search_example' # String | off | moderate | strict (default moderate)
416
+ }
417
+
418
+ begin
419
+ # Web search
420
+ result = api_instance.yahoo_web_search(query, opts)
421
+ p result
422
+ rescue ScrapeBadger::ApiError => e
423
+ puts "Error when calling YahooApi->yahoo_web_search: #{e}"
424
+ end
425
+ ```
426
+
427
+ #### Using the yahoo_web_search_with_http_info variant
428
+
429
+ This returns an Array which contains the response data, status code and headers.
430
+
431
+ > <Array(Object, Integer, Hash)> yahoo_web_search_with_http_info(query, opts)
432
+
433
+ ```ruby
434
+ begin
435
+ # Web search
436
+ data, status_code, headers = api_instance.yahoo_web_search_with_http_info(query, opts)
437
+ p status_code # => 2xx
438
+ p headers # => { ... }
439
+ p data # => Object
440
+ rescue ScrapeBadger::ApiError => e
441
+ puts "Error when calling YahooApi->yahoo_web_search_with_http_info: #{e}"
442
+ end
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+ | Name | Type | Description | Notes |
448
+ | ---- | ---- | ----------- | ----- |
449
+ | **query** | **String** | Search keywords, e.g. &#39;coffee machine&#39; | |
450
+ | **market** | **String** | Yahoo market code, e.g. &#39;us&#39;, &#39;uk&#39;, &#39;fr&#39;, &#39;de&#39;. See /markets. | [optional][default to &#39;us&#39;] |
451
+ | **offset** | **Integer** | Zero-based result offset for pagination | [optional][default to 0] |
452
+ | **safe_search** | **String** | off | moderate | strict (default moderate) | [optional] |
453
+
454
+ ### Return type
455
+
456
+ **Object**
457
+
458
+ ### Authorization
459
+
460
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
461
+
462
+ ### HTTP request headers
463
+
464
+ - **Content-Type**: Not defined
465
+ - **Accept**: application/json
466
+
467
+
468
+ ## yahoo_yahoo_scraper_health_check
469
+
470
+ > Object yahoo_yahoo_scraper_health_check
471
+
472
+ Yahoo scraper health check
473
+
474
+ Check health of the Yahoo scraper service (accepts HEAD for UptimeRobot).
475
+
476
+ ### Examples
477
+
478
+ ```ruby
479
+ require 'time'
480
+ require 'scrapebadger'
481
+ # setup authorization
482
+ ScrapeBadger.configure do |config|
483
+ # Configure API key authorization: ApiKeyAuth
484
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
485
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
486
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
487
+ end
488
+
489
+ api_instance = ScrapeBadger::YahooApi.new
490
+
491
+ begin
492
+ # Yahoo scraper health check
493
+ result = api_instance.yahoo_yahoo_scraper_health_check
494
+ p result
495
+ rescue ScrapeBadger::ApiError => e
496
+ puts "Error when calling YahooApi->yahoo_yahoo_scraper_health_check: #{e}"
497
+ end
498
+ ```
499
+
500
+ #### Using the yahoo_yahoo_scraper_health_check_with_http_info variant
501
+
502
+ This returns an Array which contains the response data, status code and headers.
503
+
504
+ > <Array(Object, Integer, Hash)> yahoo_yahoo_scraper_health_check_with_http_info
505
+
506
+ ```ruby
507
+ begin
508
+ # Yahoo scraper health check
509
+ data, status_code, headers = api_instance.yahoo_yahoo_scraper_health_check_with_http_info
510
+ p status_code # => 2xx
511
+ p headers # => { ... }
512
+ p data # => Object
513
+ rescue ScrapeBadger::ApiError => e
514
+ puts "Error when calling YahooApi->yahoo_yahoo_scraper_health_check_with_http_info: #{e}"
515
+ end
516
+ ```
517
+
518
+ ### Parameters
519
+
520
+ This endpoint does not need any parameter.
521
+
522
+ ### Return type
523
+
524
+ **Object**
525
+
526
+ ### Authorization
527
+
528
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
529
+
530
+ ### HTTP request headers
531
+
532
+ - **Content-Type**: Not defined
533
+ - **Accept**: application/json
534
+
535
+
536
+ ## yahoo_yahoo_scraper_health_check_head
537
+
538
+ > Object yahoo_yahoo_scraper_health_check_head
539
+
540
+ Yahoo scraper health check
541
+
542
+ Check health of the Yahoo scraper service (accepts HEAD for UptimeRobot).
543
+
544
+ ### Examples
545
+
546
+ ```ruby
547
+ require 'time'
548
+ require 'scrapebadger'
549
+ # setup authorization
550
+ ScrapeBadger.configure do |config|
551
+ # Configure API key authorization: ApiKeyAuth
552
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
553
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
554
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
555
+ end
556
+
557
+ api_instance = ScrapeBadger::YahooApi.new
558
+
559
+ begin
560
+ # Yahoo scraper health check
561
+ result = api_instance.yahoo_yahoo_scraper_health_check_head
562
+ p result
563
+ rescue ScrapeBadger::ApiError => e
564
+ puts "Error when calling YahooApi->yahoo_yahoo_scraper_health_check_head: #{e}"
565
+ end
566
+ ```
567
+
568
+ #### Using the yahoo_yahoo_scraper_health_check_head_with_http_info variant
569
+
570
+ This returns an Array which contains the response data, status code and headers.
571
+
572
+ > <Array(Object, Integer, Hash)> yahoo_yahoo_scraper_health_check_head_with_http_info
573
+
574
+ ```ruby
575
+ begin
576
+ # Yahoo scraper health check
577
+ data, status_code, headers = api_instance.yahoo_yahoo_scraper_health_check_head_with_http_info
578
+ p status_code # => 2xx
579
+ p headers # => { ... }
580
+ p data # => Object
581
+ rescue ScrapeBadger::ApiError => e
582
+ puts "Error when calling YahooApi->yahoo_yahoo_scraper_health_check_head_with_http_info: #{e}"
583
+ end
584
+ ```
585
+
586
+ ### Parameters
587
+
588
+ This endpoint does not need any parameter.
589
+
590
+ ### Return type
591
+
592
+ **Object**
593
+
594
+ ### Authorization
595
+
596
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
597
+
598
+ ### HTTP request headers
599
+
600
+ - **Content-Type**: Not defined
601
+ - **Accept**: application/json
602
+