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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
data/docs/AmazonApi.md
ADDED
|
@@ -0,0 +1,1244 @@
|
|
|
1
|
+
# ScrapeBadger::AmazonApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**amazon_amazon_scraper_health_check**](AmazonApi.md#amazon_amazon_scraper_health_check) | **GET** /v1/amazon/health | Amazon scraper health check |
|
|
8
|
+
| [**amazon_amazon_scraper_health_check_head**](AmazonApi.md#amazon_amazon_scraper_health_check_head) | **HEAD** /v1/amazon/health | Amazon scraper health check |
|
|
9
|
+
| [**amazon_bestsellers_by_category**](AmazonApi.md#amazon_bestsellers_by_category) | **GET** /v1/amazon/bestsellers | Bestsellers by category |
|
|
10
|
+
| [**amazon_browse_node_category_listing**](AmazonApi.md#amazon_browse_node_category_listing) | **GET** /v1/amazon/category | Browse-node category listing |
|
|
11
|
+
| [**amazon_get_all_seller_offers_buybox**](AmazonApi.md#amazon_get_all_seller_offers_buybox) | **GET** /v1/amazon/products/{asin}/offers | Get all seller offers (buybox) |
|
|
12
|
+
| [**amazon_get_product_detail**](AmazonApi.md#amazon_get_product_detail) | **GET** /v1/amazon/products/{asin} | Get product detail |
|
|
13
|
+
| [**amazon_get_product_reviews**](AmazonApi.md#amazon_get_product_reviews) | **GET** /v1/amazon/products/{asin}/reviews | Get product reviews |
|
|
14
|
+
| [**amazon_get_seller_feedback**](AmazonApi.md#amazon_get_seller_feedback) | **GET** /v1/amazon/sellers/{seller_id}/feedback | Get seller feedback |
|
|
15
|
+
| [**amazon_get_seller_profile**](AmazonApi.md#amazon_get_seller_profile) | **GET** /v1/amazon/sellers/{seller_id} | Get seller profile |
|
|
16
|
+
| [**amazon_get_seller_storefront_products**](AmazonApi.md#amazon_get_seller_storefront_products) | **GET** /v1/amazon/sellers/{seller_id}/products | Get seller storefront products |
|
|
17
|
+
| [**amazon_keyword_suggestions**](AmazonApi.md#amazon_keyword_suggestions) | **GET** /v1/amazon/autocomplete | Keyword suggestions |
|
|
18
|
+
| [**amazon_list_category_aliases**](AmazonApi.md#amazon_list_category_aliases) | **GET** /v1/amazon/categories | List category aliases |
|
|
19
|
+
| [**amazon_list_marketplaces**](AmazonApi.md#amazon_list_marketplaces) | **GET** /v1/amazon/markets | List marketplaces |
|
|
20
|
+
| [**amazon_new_releases_by_category**](AmazonApi.md#amazon_new_releases_by_category) | **GET** /v1/amazon/new-releases | New releases by category |
|
|
21
|
+
| [**amazon_search_amazon_products**](AmazonApi.md#amazon_search_amazon_products) | **GET** /v1/amazon/search | Search Amazon products |
|
|
22
|
+
| [**amazon_today_s_deals**](AmazonApi.md#amazon_today_s_deals) | **GET** /v1/amazon/deals | Today's deals |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## amazon_amazon_scraper_health_check
|
|
26
|
+
|
|
27
|
+
> Object amazon_amazon_scraper_health_check
|
|
28
|
+
|
|
29
|
+
Amazon scraper health check
|
|
30
|
+
|
|
31
|
+
Check health of the Amazon scraper service (accepts HEAD for UptimeRobot).
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
```ruby
|
|
36
|
+
require 'time'
|
|
37
|
+
require 'scrapebadger'
|
|
38
|
+
# setup authorization
|
|
39
|
+
ScrapeBadger.configure do |config|
|
|
40
|
+
# Configure API key authorization: ApiKeyAuth
|
|
41
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
42
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
43
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
47
|
+
|
|
48
|
+
begin
|
|
49
|
+
# Amazon scraper health check
|
|
50
|
+
result = api_instance.amazon_amazon_scraper_health_check
|
|
51
|
+
p result
|
|
52
|
+
rescue ScrapeBadger::ApiError => e
|
|
53
|
+
puts "Error when calling AmazonApi->amazon_amazon_scraper_health_check: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Using the amazon_amazon_scraper_health_check_with_http_info variant
|
|
58
|
+
|
|
59
|
+
This returns an Array which contains the response data, status code and headers.
|
|
60
|
+
|
|
61
|
+
> <Array(Object, Integer, Hash)> amazon_amazon_scraper_health_check_with_http_info
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
begin
|
|
65
|
+
# Amazon scraper health check
|
|
66
|
+
data, status_code, headers = api_instance.amazon_amazon_scraper_health_check_with_http_info
|
|
67
|
+
p status_code # => 2xx
|
|
68
|
+
p headers # => { ... }
|
|
69
|
+
p data # => Object
|
|
70
|
+
rescue ScrapeBadger::ApiError => e
|
|
71
|
+
puts "Error when calling AmazonApi->amazon_amazon_scraper_health_check_with_http_info: #{e}"
|
|
72
|
+
end
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
|
|
77
|
+
This endpoint does not need any parameter.
|
|
78
|
+
|
|
79
|
+
### Return type
|
|
80
|
+
|
|
81
|
+
**Object**
|
|
82
|
+
|
|
83
|
+
### Authorization
|
|
84
|
+
|
|
85
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
86
|
+
|
|
87
|
+
### HTTP request headers
|
|
88
|
+
|
|
89
|
+
- **Content-Type**: Not defined
|
|
90
|
+
- **Accept**: application/json
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
## amazon_amazon_scraper_health_check_head
|
|
94
|
+
|
|
95
|
+
> Object amazon_amazon_scraper_health_check_head
|
|
96
|
+
|
|
97
|
+
Amazon scraper health check
|
|
98
|
+
|
|
99
|
+
Check health of the Amazon scraper service (accepts HEAD for UptimeRobot).
|
|
100
|
+
|
|
101
|
+
### Examples
|
|
102
|
+
|
|
103
|
+
```ruby
|
|
104
|
+
require 'time'
|
|
105
|
+
require 'scrapebadger'
|
|
106
|
+
# setup authorization
|
|
107
|
+
ScrapeBadger.configure do |config|
|
|
108
|
+
# Configure API key authorization: ApiKeyAuth
|
|
109
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
110
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
111
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
115
|
+
|
|
116
|
+
begin
|
|
117
|
+
# Amazon scraper health check
|
|
118
|
+
result = api_instance.amazon_amazon_scraper_health_check_head
|
|
119
|
+
p result
|
|
120
|
+
rescue ScrapeBadger::ApiError => e
|
|
121
|
+
puts "Error when calling AmazonApi->amazon_amazon_scraper_health_check_head: #{e}"
|
|
122
|
+
end
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
#### Using the amazon_amazon_scraper_health_check_head_with_http_info variant
|
|
126
|
+
|
|
127
|
+
This returns an Array which contains the response data, status code and headers.
|
|
128
|
+
|
|
129
|
+
> <Array(Object, Integer, Hash)> amazon_amazon_scraper_health_check_head_with_http_info
|
|
130
|
+
|
|
131
|
+
```ruby
|
|
132
|
+
begin
|
|
133
|
+
# Amazon scraper health check
|
|
134
|
+
data, status_code, headers = api_instance.amazon_amazon_scraper_health_check_head_with_http_info
|
|
135
|
+
p status_code # => 2xx
|
|
136
|
+
p headers # => { ... }
|
|
137
|
+
p data # => Object
|
|
138
|
+
rescue ScrapeBadger::ApiError => e
|
|
139
|
+
puts "Error when calling AmazonApi->amazon_amazon_scraper_health_check_head_with_http_info: #{e}"
|
|
140
|
+
end
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
This endpoint does not need any parameter.
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**Object**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## amazon_bestsellers_by_category
|
|
162
|
+
|
|
163
|
+
> Object amazon_bestsellers_by_category(opts)
|
|
164
|
+
|
|
165
|
+
Bestsellers by category
|
|
166
|
+
|
|
167
|
+
Top-selling products for a category (browse node).
|
|
168
|
+
|
|
169
|
+
### Examples
|
|
170
|
+
|
|
171
|
+
```ruby
|
|
172
|
+
require 'time'
|
|
173
|
+
require 'scrapebadger'
|
|
174
|
+
# setup authorization
|
|
175
|
+
ScrapeBadger.configure do |config|
|
|
176
|
+
# Configure API key authorization: ApiKeyAuth
|
|
177
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
178
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
179
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
183
|
+
opts = {
|
|
184
|
+
domain: 'domain_example', # String |
|
|
185
|
+
category: 'category_example', # String | Bestsellers node id or slug
|
|
186
|
+
page: 56 # Integer |
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
begin
|
|
190
|
+
# Bestsellers by category
|
|
191
|
+
result = api_instance.amazon_bestsellers_by_category(opts)
|
|
192
|
+
p result
|
|
193
|
+
rescue ScrapeBadger::ApiError => e
|
|
194
|
+
puts "Error when calling AmazonApi->amazon_bestsellers_by_category: #{e}"
|
|
195
|
+
end
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
#### Using the amazon_bestsellers_by_category_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)> amazon_bestsellers_by_category_with_http_info(opts)
|
|
203
|
+
|
|
204
|
+
```ruby
|
|
205
|
+
begin
|
|
206
|
+
# Bestsellers by category
|
|
207
|
+
data, status_code, headers = api_instance.amazon_bestsellers_by_category_with_http_info(opts)
|
|
208
|
+
p status_code # => 2xx
|
|
209
|
+
p headers # => { ... }
|
|
210
|
+
p data # => Object
|
|
211
|
+
rescue ScrapeBadger::ApiError => e
|
|
212
|
+
puts "Error when calling AmazonApi->amazon_bestsellers_by_category_with_http_info: #{e}"
|
|
213
|
+
end
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parameters
|
|
217
|
+
|
|
218
|
+
| Name | Type | Description | Notes |
|
|
219
|
+
| ---- | ---- | ----------- | ----- |
|
|
220
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
221
|
+
| **category** | **String** | Bestsellers node id or slug | [optional] |
|
|
222
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
223
|
+
|
|
224
|
+
### Return type
|
|
225
|
+
|
|
226
|
+
**Object**
|
|
227
|
+
|
|
228
|
+
### Authorization
|
|
229
|
+
|
|
230
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
231
|
+
|
|
232
|
+
### HTTP request headers
|
|
233
|
+
|
|
234
|
+
- **Content-Type**: Not defined
|
|
235
|
+
- **Accept**: application/json
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## amazon_browse_node_category_listing
|
|
239
|
+
|
|
240
|
+
> Object amazon_browse_node_category_listing(node, opts)
|
|
241
|
+
|
|
242
|
+
Browse-node category listing
|
|
243
|
+
|
|
244
|
+
List products within an Amazon browse-node category.
|
|
245
|
+
|
|
246
|
+
### Examples
|
|
247
|
+
|
|
248
|
+
```ruby
|
|
249
|
+
require 'time'
|
|
250
|
+
require 'scrapebadger'
|
|
251
|
+
# setup authorization
|
|
252
|
+
ScrapeBadger.configure do |config|
|
|
253
|
+
# Configure API key authorization: ApiKeyAuth
|
|
254
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
255
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
256
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
260
|
+
node = 'node_example' # String | Amazon browse-node id
|
|
261
|
+
opts = {
|
|
262
|
+
domain: 'domain_example', # String |
|
|
263
|
+
page: 56, # Integer |
|
|
264
|
+
sort_by: 'sort_by_example' # String |
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
begin
|
|
268
|
+
# Browse-node category listing
|
|
269
|
+
result = api_instance.amazon_browse_node_category_listing(node, opts)
|
|
270
|
+
p result
|
|
271
|
+
rescue ScrapeBadger::ApiError => e
|
|
272
|
+
puts "Error when calling AmazonApi->amazon_browse_node_category_listing: #{e}"
|
|
273
|
+
end
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
#### Using the amazon_browse_node_category_listing_with_http_info variant
|
|
277
|
+
|
|
278
|
+
This returns an Array which contains the response data, status code and headers.
|
|
279
|
+
|
|
280
|
+
> <Array(Object, Integer, Hash)> amazon_browse_node_category_listing_with_http_info(node, opts)
|
|
281
|
+
|
|
282
|
+
```ruby
|
|
283
|
+
begin
|
|
284
|
+
# Browse-node category listing
|
|
285
|
+
data, status_code, headers = api_instance.amazon_browse_node_category_listing_with_http_info(node, opts)
|
|
286
|
+
p status_code # => 2xx
|
|
287
|
+
p headers # => { ... }
|
|
288
|
+
p data # => Object
|
|
289
|
+
rescue ScrapeBadger::ApiError => e
|
|
290
|
+
puts "Error when calling AmazonApi->amazon_browse_node_category_listing_with_http_info: #{e}"
|
|
291
|
+
end
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### Parameters
|
|
295
|
+
|
|
296
|
+
| Name | Type | Description | Notes |
|
|
297
|
+
| ---- | ---- | ----------- | ----- |
|
|
298
|
+
| **node** | **String** | Amazon browse-node id | |
|
|
299
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
300
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
301
|
+
| **sort_by** | **String** | | [optional] |
|
|
302
|
+
|
|
303
|
+
### Return type
|
|
304
|
+
|
|
305
|
+
**Object**
|
|
306
|
+
|
|
307
|
+
### Authorization
|
|
308
|
+
|
|
309
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
310
|
+
|
|
311
|
+
### HTTP request headers
|
|
312
|
+
|
|
313
|
+
- **Content-Type**: Not defined
|
|
314
|
+
- **Accept**: application/json
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
## amazon_get_all_seller_offers_buybox
|
|
318
|
+
|
|
319
|
+
> Object amazon_get_all_seller_offers_buybox(asin, opts)
|
|
320
|
+
|
|
321
|
+
Get all seller offers (buybox)
|
|
322
|
+
|
|
323
|
+
All third-party offers for an ASIN, including the Buy Box winner.
|
|
324
|
+
|
|
325
|
+
### Examples
|
|
326
|
+
|
|
327
|
+
```ruby
|
|
328
|
+
require 'time'
|
|
329
|
+
require 'scrapebadger'
|
|
330
|
+
# setup authorization
|
|
331
|
+
ScrapeBadger.configure do |config|
|
|
332
|
+
# Configure API key authorization: ApiKeyAuth
|
|
333
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
334
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
335
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
339
|
+
asin = 'asin_example' # String |
|
|
340
|
+
opts = {
|
|
341
|
+
domain: 'domain_example', # String |
|
|
342
|
+
zip: 'zip_example' # String |
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
begin
|
|
346
|
+
# Get all seller offers (buybox)
|
|
347
|
+
result = api_instance.amazon_get_all_seller_offers_buybox(asin, opts)
|
|
348
|
+
p result
|
|
349
|
+
rescue ScrapeBadger::ApiError => e
|
|
350
|
+
puts "Error when calling AmazonApi->amazon_get_all_seller_offers_buybox: #{e}"
|
|
351
|
+
end
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
#### Using the amazon_get_all_seller_offers_buybox_with_http_info variant
|
|
355
|
+
|
|
356
|
+
This returns an Array which contains the response data, status code and headers.
|
|
357
|
+
|
|
358
|
+
> <Array(Object, Integer, Hash)> amazon_get_all_seller_offers_buybox_with_http_info(asin, opts)
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
begin
|
|
362
|
+
# Get all seller offers (buybox)
|
|
363
|
+
data, status_code, headers = api_instance.amazon_get_all_seller_offers_buybox_with_http_info(asin, opts)
|
|
364
|
+
p status_code # => 2xx
|
|
365
|
+
p headers # => { ... }
|
|
366
|
+
p data # => Object
|
|
367
|
+
rescue ScrapeBadger::ApiError => e
|
|
368
|
+
puts "Error when calling AmazonApi->amazon_get_all_seller_offers_buybox_with_http_info: #{e}"
|
|
369
|
+
end
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
### Parameters
|
|
373
|
+
|
|
374
|
+
| Name | Type | Description | Notes |
|
|
375
|
+
| ---- | ---- | ----------- | ----- |
|
|
376
|
+
| **asin** | **String** | | |
|
|
377
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
378
|
+
| **zip** | **String** | | [optional] |
|
|
379
|
+
|
|
380
|
+
### Return type
|
|
381
|
+
|
|
382
|
+
**Object**
|
|
383
|
+
|
|
384
|
+
### Authorization
|
|
385
|
+
|
|
386
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
387
|
+
|
|
388
|
+
### HTTP request headers
|
|
389
|
+
|
|
390
|
+
- **Content-Type**: Not defined
|
|
391
|
+
- **Accept**: application/json
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## amazon_get_product_detail
|
|
395
|
+
|
|
396
|
+
> Object amazon_get_product_detail(asin, opts)
|
|
397
|
+
|
|
398
|
+
Get product detail
|
|
399
|
+
|
|
400
|
+
Full product detail by ASIN (price, variants, badges, buybox, ranks…).
|
|
401
|
+
|
|
402
|
+
### Examples
|
|
403
|
+
|
|
404
|
+
```ruby
|
|
405
|
+
require 'time'
|
|
406
|
+
require 'scrapebadger'
|
|
407
|
+
# setup authorization
|
|
408
|
+
ScrapeBadger.configure do |config|
|
|
409
|
+
# Configure API key authorization: ApiKeyAuth
|
|
410
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
411
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
412
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
416
|
+
asin = 'asin_example' # String |
|
|
417
|
+
opts = {
|
|
418
|
+
domain: 'domain_example', # String |
|
|
419
|
+
zip: 'zip_example', # String | Delivery postal/zip for localized buybox
|
|
420
|
+
language: 'language_example' # String |
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
begin
|
|
424
|
+
# Get product detail
|
|
425
|
+
result = api_instance.amazon_get_product_detail(asin, opts)
|
|
426
|
+
p result
|
|
427
|
+
rescue ScrapeBadger::ApiError => e
|
|
428
|
+
puts "Error when calling AmazonApi->amazon_get_product_detail: #{e}"
|
|
429
|
+
end
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
#### Using the amazon_get_product_detail_with_http_info variant
|
|
433
|
+
|
|
434
|
+
This returns an Array which contains the response data, status code and headers.
|
|
435
|
+
|
|
436
|
+
> <Array(Object, Integer, Hash)> amazon_get_product_detail_with_http_info(asin, opts)
|
|
437
|
+
|
|
438
|
+
```ruby
|
|
439
|
+
begin
|
|
440
|
+
# Get product detail
|
|
441
|
+
data, status_code, headers = api_instance.amazon_get_product_detail_with_http_info(asin, opts)
|
|
442
|
+
p status_code # => 2xx
|
|
443
|
+
p headers # => { ... }
|
|
444
|
+
p data # => Object
|
|
445
|
+
rescue ScrapeBadger::ApiError => e
|
|
446
|
+
puts "Error when calling AmazonApi->amazon_get_product_detail_with_http_info: #{e}"
|
|
447
|
+
end
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### Parameters
|
|
451
|
+
|
|
452
|
+
| Name | Type | Description | Notes |
|
|
453
|
+
| ---- | ---- | ----------- | ----- |
|
|
454
|
+
| **asin** | **String** | | |
|
|
455
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
456
|
+
| **zip** | **String** | Delivery postal/zip for localized buybox | [optional] |
|
|
457
|
+
| **language** | **String** | | [optional] |
|
|
458
|
+
|
|
459
|
+
### Return type
|
|
460
|
+
|
|
461
|
+
**Object**
|
|
462
|
+
|
|
463
|
+
### Authorization
|
|
464
|
+
|
|
465
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
466
|
+
|
|
467
|
+
### HTTP request headers
|
|
468
|
+
|
|
469
|
+
- **Content-Type**: Not defined
|
|
470
|
+
- **Accept**: application/json
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
## amazon_get_product_reviews
|
|
474
|
+
|
|
475
|
+
> Object amazon_get_product_reviews(asin, opts)
|
|
476
|
+
|
|
477
|
+
Get product reviews
|
|
478
|
+
|
|
479
|
+
Customer reviews for an ASIN (featured + paginated, with filters).
|
|
480
|
+
|
|
481
|
+
### Examples
|
|
482
|
+
|
|
483
|
+
```ruby
|
|
484
|
+
require 'time'
|
|
485
|
+
require 'scrapebadger'
|
|
486
|
+
# setup authorization
|
|
487
|
+
ScrapeBadger.configure do |config|
|
|
488
|
+
# Configure API key authorization: ApiKeyAuth
|
|
489
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
490
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
491
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
495
|
+
asin = 'asin_example' # String |
|
|
496
|
+
opts = {
|
|
497
|
+
domain: 'domain_example', # String |
|
|
498
|
+
page: 56, # Integer | Review page (1-100, ~10 reviews/page)
|
|
499
|
+
sort_by: 'sort_by_example', # String | helpful | recent
|
|
500
|
+
star: 'star_example', # String | one_star..five_star | positive | critical
|
|
501
|
+
verified_only: true, # Boolean |
|
|
502
|
+
media_only: true # Boolean |
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
begin
|
|
506
|
+
# Get product reviews
|
|
507
|
+
result = api_instance.amazon_get_product_reviews(asin, opts)
|
|
508
|
+
p result
|
|
509
|
+
rescue ScrapeBadger::ApiError => e
|
|
510
|
+
puts "Error when calling AmazonApi->amazon_get_product_reviews: #{e}"
|
|
511
|
+
end
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
#### Using the amazon_get_product_reviews_with_http_info variant
|
|
515
|
+
|
|
516
|
+
This returns an Array which contains the response data, status code and headers.
|
|
517
|
+
|
|
518
|
+
> <Array(Object, Integer, Hash)> amazon_get_product_reviews_with_http_info(asin, opts)
|
|
519
|
+
|
|
520
|
+
```ruby
|
|
521
|
+
begin
|
|
522
|
+
# Get product reviews
|
|
523
|
+
data, status_code, headers = api_instance.amazon_get_product_reviews_with_http_info(asin, opts)
|
|
524
|
+
p status_code # => 2xx
|
|
525
|
+
p headers # => { ... }
|
|
526
|
+
p data # => Object
|
|
527
|
+
rescue ScrapeBadger::ApiError => e
|
|
528
|
+
puts "Error when calling AmazonApi->amazon_get_product_reviews_with_http_info: #{e}"
|
|
529
|
+
end
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Parameters
|
|
533
|
+
|
|
534
|
+
| Name | Type | Description | Notes |
|
|
535
|
+
| ---- | ---- | ----------- | ----- |
|
|
536
|
+
| **asin** | **String** | | |
|
|
537
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
538
|
+
| **page** | **Integer** | Review page (1-100, ~10 reviews/page) | [optional][default to 1] |
|
|
539
|
+
| **sort_by** | **String** | helpful | recent | [optional][default to 'helpful'] |
|
|
540
|
+
| **star** | **String** | one_star..five_star | positive | critical | [optional] |
|
|
541
|
+
| **verified_only** | **Boolean** | | [optional][default to false] |
|
|
542
|
+
| **media_only** | **Boolean** | | [optional][default to false] |
|
|
543
|
+
|
|
544
|
+
### Return type
|
|
545
|
+
|
|
546
|
+
**Object**
|
|
547
|
+
|
|
548
|
+
### Authorization
|
|
549
|
+
|
|
550
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
551
|
+
|
|
552
|
+
### HTTP request headers
|
|
553
|
+
|
|
554
|
+
- **Content-Type**: Not defined
|
|
555
|
+
- **Accept**: application/json
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## amazon_get_seller_feedback
|
|
559
|
+
|
|
560
|
+
> Object amazon_get_seller_feedback(seller_id, opts)
|
|
561
|
+
|
|
562
|
+
Get seller feedback
|
|
563
|
+
|
|
564
|
+
Buyer feedback entries for a seller.
|
|
565
|
+
|
|
566
|
+
### Examples
|
|
567
|
+
|
|
568
|
+
```ruby
|
|
569
|
+
require 'time'
|
|
570
|
+
require 'scrapebadger'
|
|
571
|
+
# setup authorization
|
|
572
|
+
ScrapeBadger.configure do |config|
|
|
573
|
+
# Configure API key authorization: ApiKeyAuth
|
|
574
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
575
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
576
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
577
|
+
end
|
|
578
|
+
|
|
579
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
580
|
+
seller_id = 'seller_id_example' # String |
|
|
581
|
+
opts = {
|
|
582
|
+
domain: 'domain_example', # String |
|
|
583
|
+
page: 56 # Integer |
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
begin
|
|
587
|
+
# Get seller feedback
|
|
588
|
+
result = api_instance.amazon_get_seller_feedback(seller_id, opts)
|
|
589
|
+
p result
|
|
590
|
+
rescue ScrapeBadger::ApiError => e
|
|
591
|
+
puts "Error when calling AmazonApi->amazon_get_seller_feedback: #{e}"
|
|
592
|
+
end
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
#### Using the amazon_get_seller_feedback_with_http_info variant
|
|
596
|
+
|
|
597
|
+
This returns an Array which contains the response data, status code and headers.
|
|
598
|
+
|
|
599
|
+
> <Array(Object, Integer, Hash)> amazon_get_seller_feedback_with_http_info(seller_id, opts)
|
|
600
|
+
|
|
601
|
+
```ruby
|
|
602
|
+
begin
|
|
603
|
+
# Get seller feedback
|
|
604
|
+
data, status_code, headers = api_instance.amazon_get_seller_feedback_with_http_info(seller_id, opts)
|
|
605
|
+
p status_code # => 2xx
|
|
606
|
+
p headers # => { ... }
|
|
607
|
+
p data # => Object
|
|
608
|
+
rescue ScrapeBadger::ApiError => e
|
|
609
|
+
puts "Error when calling AmazonApi->amazon_get_seller_feedback_with_http_info: #{e}"
|
|
610
|
+
end
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### Parameters
|
|
614
|
+
|
|
615
|
+
| Name | Type | Description | Notes |
|
|
616
|
+
| ---- | ---- | ----------- | ----- |
|
|
617
|
+
| **seller_id** | **String** | | |
|
|
618
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
619
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
620
|
+
|
|
621
|
+
### Return type
|
|
622
|
+
|
|
623
|
+
**Object**
|
|
624
|
+
|
|
625
|
+
### Authorization
|
|
626
|
+
|
|
627
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
628
|
+
|
|
629
|
+
### HTTP request headers
|
|
630
|
+
|
|
631
|
+
- **Content-Type**: Not defined
|
|
632
|
+
- **Accept**: application/json
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
## amazon_get_seller_profile
|
|
636
|
+
|
|
637
|
+
> Object amazon_get_seller_profile(seller_id, opts)
|
|
638
|
+
|
|
639
|
+
Get seller profile
|
|
640
|
+
|
|
641
|
+
Seller profile, ratings and feedback summary.
|
|
642
|
+
|
|
643
|
+
### Examples
|
|
644
|
+
|
|
645
|
+
```ruby
|
|
646
|
+
require 'time'
|
|
647
|
+
require 'scrapebadger'
|
|
648
|
+
# setup authorization
|
|
649
|
+
ScrapeBadger.configure do |config|
|
|
650
|
+
# Configure API key authorization: ApiKeyAuth
|
|
651
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
652
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
653
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
657
|
+
seller_id = 'seller_id_example' # String |
|
|
658
|
+
opts = {
|
|
659
|
+
domain: 'domain_example' # String |
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
begin
|
|
663
|
+
# Get seller profile
|
|
664
|
+
result = api_instance.amazon_get_seller_profile(seller_id, opts)
|
|
665
|
+
p result
|
|
666
|
+
rescue ScrapeBadger::ApiError => e
|
|
667
|
+
puts "Error when calling AmazonApi->amazon_get_seller_profile: #{e}"
|
|
668
|
+
end
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
#### Using the amazon_get_seller_profile_with_http_info variant
|
|
672
|
+
|
|
673
|
+
This returns an Array which contains the response data, status code and headers.
|
|
674
|
+
|
|
675
|
+
> <Array(Object, Integer, Hash)> amazon_get_seller_profile_with_http_info(seller_id, opts)
|
|
676
|
+
|
|
677
|
+
```ruby
|
|
678
|
+
begin
|
|
679
|
+
# Get seller profile
|
|
680
|
+
data, status_code, headers = api_instance.amazon_get_seller_profile_with_http_info(seller_id, opts)
|
|
681
|
+
p status_code # => 2xx
|
|
682
|
+
p headers # => { ... }
|
|
683
|
+
p data # => Object
|
|
684
|
+
rescue ScrapeBadger::ApiError => e
|
|
685
|
+
puts "Error when calling AmazonApi->amazon_get_seller_profile_with_http_info: #{e}"
|
|
686
|
+
end
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
### Parameters
|
|
690
|
+
|
|
691
|
+
| Name | Type | Description | Notes |
|
|
692
|
+
| ---- | ---- | ----------- | ----- |
|
|
693
|
+
| **seller_id** | **String** | | |
|
|
694
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
695
|
+
|
|
696
|
+
### Return type
|
|
697
|
+
|
|
698
|
+
**Object**
|
|
699
|
+
|
|
700
|
+
### Authorization
|
|
701
|
+
|
|
702
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
703
|
+
|
|
704
|
+
### HTTP request headers
|
|
705
|
+
|
|
706
|
+
- **Content-Type**: Not defined
|
|
707
|
+
- **Accept**: application/json
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
## amazon_get_seller_storefront_products
|
|
711
|
+
|
|
712
|
+
> Object amazon_get_seller_storefront_products(seller_id, opts)
|
|
713
|
+
|
|
714
|
+
Get seller storefront products
|
|
715
|
+
|
|
716
|
+
Products listed in a seller's storefront.
|
|
717
|
+
|
|
718
|
+
### Examples
|
|
719
|
+
|
|
720
|
+
```ruby
|
|
721
|
+
require 'time'
|
|
722
|
+
require 'scrapebadger'
|
|
723
|
+
# setup authorization
|
|
724
|
+
ScrapeBadger.configure do |config|
|
|
725
|
+
# Configure API key authorization: ApiKeyAuth
|
|
726
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
727
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
728
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
732
|
+
seller_id = 'seller_id_example' # String |
|
|
733
|
+
opts = {
|
|
734
|
+
domain: 'domain_example', # String |
|
|
735
|
+
page: 56 # Integer |
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
begin
|
|
739
|
+
# Get seller storefront products
|
|
740
|
+
result = api_instance.amazon_get_seller_storefront_products(seller_id, opts)
|
|
741
|
+
p result
|
|
742
|
+
rescue ScrapeBadger::ApiError => e
|
|
743
|
+
puts "Error when calling AmazonApi->amazon_get_seller_storefront_products: #{e}"
|
|
744
|
+
end
|
|
745
|
+
```
|
|
746
|
+
|
|
747
|
+
#### Using the amazon_get_seller_storefront_products_with_http_info variant
|
|
748
|
+
|
|
749
|
+
This returns an Array which contains the response data, status code and headers.
|
|
750
|
+
|
|
751
|
+
> <Array(Object, Integer, Hash)> amazon_get_seller_storefront_products_with_http_info(seller_id, opts)
|
|
752
|
+
|
|
753
|
+
```ruby
|
|
754
|
+
begin
|
|
755
|
+
# Get seller storefront products
|
|
756
|
+
data, status_code, headers = api_instance.amazon_get_seller_storefront_products_with_http_info(seller_id, opts)
|
|
757
|
+
p status_code # => 2xx
|
|
758
|
+
p headers # => { ... }
|
|
759
|
+
p data # => Object
|
|
760
|
+
rescue ScrapeBadger::ApiError => e
|
|
761
|
+
puts "Error when calling AmazonApi->amazon_get_seller_storefront_products_with_http_info: #{e}"
|
|
762
|
+
end
|
|
763
|
+
```
|
|
764
|
+
|
|
765
|
+
### Parameters
|
|
766
|
+
|
|
767
|
+
| Name | Type | Description | Notes |
|
|
768
|
+
| ---- | ---- | ----------- | ----- |
|
|
769
|
+
| **seller_id** | **String** | | |
|
|
770
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
771
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
772
|
+
|
|
773
|
+
### Return type
|
|
774
|
+
|
|
775
|
+
**Object**
|
|
776
|
+
|
|
777
|
+
### Authorization
|
|
778
|
+
|
|
779
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
780
|
+
|
|
781
|
+
### HTTP request headers
|
|
782
|
+
|
|
783
|
+
- **Content-Type**: Not defined
|
|
784
|
+
- **Accept**: application/json
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
## amazon_keyword_suggestions
|
|
788
|
+
|
|
789
|
+
> Object amazon_keyword_suggestions(query, opts)
|
|
790
|
+
|
|
791
|
+
Keyword suggestions
|
|
792
|
+
|
|
793
|
+
Get Amazon search autocomplete suggestions for keyword research.
|
|
794
|
+
|
|
795
|
+
### Examples
|
|
796
|
+
|
|
797
|
+
```ruby
|
|
798
|
+
require 'time'
|
|
799
|
+
require 'scrapebadger'
|
|
800
|
+
# setup authorization
|
|
801
|
+
ScrapeBadger.configure do |config|
|
|
802
|
+
# Configure API key authorization: ApiKeyAuth
|
|
803
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
804
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
805
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
809
|
+
query = 'query_example' # String | Partial search term
|
|
810
|
+
opts = {
|
|
811
|
+
domain: 'domain_example' # String |
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
begin
|
|
815
|
+
# Keyword suggestions
|
|
816
|
+
result = api_instance.amazon_keyword_suggestions(query, opts)
|
|
817
|
+
p result
|
|
818
|
+
rescue ScrapeBadger::ApiError => e
|
|
819
|
+
puts "Error when calling AmazonApi->amazon_keyword_suggestions: #{e}"
|
|
820
|
+
end
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
#### Using the amazon_keyword_suggestions_with_http_info variant
|
|
824
|
+
|
|
825
|
+
This returns an Array which contains the response data, status code and headers.
|
|
826
|
+
|
|
827
|
+
> <Array(Object, Integer, Hash)> amazon_keyword_suggestions_with_http_info(query, opts)
|
|
828
|
+
|
|
829
|
+
```ruby
|
|
830
|
+
begin
|
|
831
|
+
# Keyword suggestions
|
|
832
|
+
data, status_code, headers = api_instance.amazon_keyword_suggestions_with_http_info(query, opts)
|
|
833
|
+
p status_code # => 2xx
|
|
834
|
+
p headers # => { ... }
|
|
835
|
+
p data # => Object
|
|
836
|
+
rescue ScrapeBadger::ApiError => e
|
|
837
|
+
puts "Error when calling AmazonApi->amazon_keyword_suggestions_with_http_info: #{e}"
|
|
838
|
+
end
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
### Parameters
|
|
842
|
+
|
|
843
|
+
| Name | Type | Description | Notes |
|
|
844
|
+
| ---- | ---- | ----------- | ----- |
|
|
845
|
+
| **query** | **String** | Partial search term | |
|
|
846
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
847
|
+
|
|
848
|
+
### Return type
|
|
849
|
+
|
|
850
|
+
**Object**
|
|
851
|
+
|
|
852
|
+
### Authorization
|
|
853
|
+
|
|
854
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
855
|
+
|
|
856
|
+
### HTTP request headers
|
|
857
|
+
|
|
858
|
+
- **Content-Type**: Not defined
|
|
859
|
+
- **Accept**: application/json
|
|
860
|
+
|
|
861
|
+
|
|
862
|
+
## amazon_list_category_aliases
|
|
863
|
+
|
|
864
|
+
> Object amazon_list_category_aliases(opts)
|
|
865
|
+
|
|
866
|
+
List category aliases
|
|
867
|
+
|
|
868
|
+
List common Amazon department/category aliases and bestseller nodes.
|
|
869
|
+
|
|
870
|
+
### Examples
|
|
871
|
+
|
|
872
|
+
```ruby
|
|
873
|
+
require 'time'
|
|
874
|
+
require 'scrapebadger'
|
|
875
|
+
# setup authorization
|
|
876
|
+
ScrapeBadger.configure do |config|
|
|
877
|
+
# Configure API key authorization: ApiKeyAuth
|
|
878
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
879
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
880
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
884
|
+
opts = {
|
|
885
|
+
domain: 'domain_example' # String |
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
begin
|
|
889
|
+
# List category aliases
|
|
890
|
+
result = api_instance.amazon_list_category_aliases(opts)
|
|
891
|
+
p result
|
|
892
|
+
rescue ScrapeBadger::ApiError => e
|
|
893
|
+
puts "Error when calling AmazonApi->amazon_list_category_aliases: #{e}"
|
|
894
|
+
end
|
|
895
|
+
```
|
|
896
|
+
|
|
897
|
+
#### Using the amazon_list_category_aliases_with_http_info variant
|
|
898
|
+
|
|
899
|
+
This returns an Array which contains the response data, status code and headers.
|
|
900
|
+
|
|
901
|
+
> <Array(Object, Integer, Hash)> amazon_list_category_aliases_with_http_info(opts)
|
|
902
|
+
|
|
903
|
+
```ruby
|
|
904
|
+
begin
|
|
905
|
+
# List category aliases
|
|
906
|
+
data, status_code, headers = api_instance.amazon_list_category_aliases_with_http_info(opts)
|
|
907
|
+
p status_code # => 2xx
|
|
908
|
+
p headers # => { ... }
|
|
909
|
+
p data # => Object
|
|
910
|
+
rescue ScrapeBadger::ApiError => e
|
|
911
|
+
puts "Error when calling AmazonApi->amazon_list_category_aliases_with_http_info: #{e}"
|
|
912
|
+
end
|
|
913
|
+
```
|
|
914
|
+
|
|
915
|
+
### Parameters
|
|
916
|
+
|
|
917
|
+
| Name | Type | Description | Notes |
|
|
918
|
+
| ---- | ---- | ----------- | ----- |
|
|
919
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
920
|
+
|
|
921
|
+
### Return type
|
|
922
|
+
|
|
923
|
+
**Object**
|
|
924
|
+
|
|
925
|
+
### Authorization
|
|
926
|
+
|
|
927
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
928
|
+
|
|
929
|
+
### HTTP request headers
|
|
930
|
+
|
|
931
|
+
- **Content-Type**: Not defined
|
|
932
|
+
- **Accept**: application/json
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
## amazon_list_marketplaces
|
|
936
|
+
|
|
937
|
+
> Object amazon_list_marketplaces
|
|
938
|
+
|
|
939
|
+
List marketplaces
|
|
940
|
+
|
|
941
|
+
List all supported Amazon marketplaces.
|
|
942
|
+
|
|
943
|
+
### Examples
|
|
944
|
+
|
|
945
|
+
```ruby
|
|
946
|
+
require 'time'
|
|
947
|
+
require 'scrapebadger'
|
|
948
|
+
# setup authorization
|
|
949
|
+
ScrapeBadger.configure do |config|
|
|
950
|
+
# Configure API key authorization: ApiKeyAuth
|
|
951
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
952
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
953
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
957
|
+
|
|
958
|
+
begin
|
|
959
|
+
# List marketplaces
|
|
960
|
+
result = api_instance.amazon_list_marketplaces
|
|
961
|
+
p result
|
|
962
|
+
rescue ScrapeBadger::ApiError => e
|
|
963
|
+
puts "Error when calling AmazonApi->amazon_list_marketplaces: #{e}"
|
|
964
|
+
end
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
#### Using the amazon_list_marketplaces_with_http_info variant
|
|
968
|
+
|
|
969
|
+
This returns an Array which contains the response data, status code and headers.
|
|
970
|
+
|
|
971
|
+
> <Array(Object, Integer, Hash)> amazon_list_marketplaces_with_http_info
|
|
972
|
+
|
|
973
|
+
```ruby
|
|
974
|
+
begin
|
|
975
|
+
# List marketplaces
|
|
976
|
+
data, status_code, headers = api_instance.amazon_list_marketplaces_with_http_info
|
|
977
|
+
p status_code # => 2xx
|
|
978
|
+
p headers # => { ... }
|
|
979
|
+
p data # => Object
|
|
980
|
+
rescue ScrapeBadger::ApiError => e
|
|
981
|
+
puts "Error when calling AmazonApi->amazon_list_marketplaces_with_http_info: #{e}"
|
|
982
|
+
end
|
|
983
|
+
```
|
|
984
|
+
|
|
985
|
+
### Parameters
|
|
986
|
+
|
|
987
|
+
This endpoint does not need any parameter.
|
|
988
|
+
|
|
989
|
+
### Return type
|
|
990
|
+
|
|
991
|
+
**Object**
|
|
992
|
+
|
|
993
|
+
### Authorization
|
|
994
|
+
|
|
995
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
996
|
+
|
|
997
|
+
### HTTP request headers
|
|
998
|
+
|
|
999
|
+
- **Content-Type**: Not defined
|
|
1000
|
+
- **Accept**: application/json
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
## amazon_new_releases_by_category
|
|
1004
|
+
|
|
1005
|
+
> Object amazon_new_releases_by_category(opts)
|
|
1006
|
+
|
|
1007
|
+
New releases by category
|
|
1008
|
+
|
|
1009
|
+
Newly released products for a category (browse node).
|
|
1010
|
+
|
|
1011
|
+
### Examples
|
|
1012
|
+
|
|
1013
|
+
```ruby
|
|
1014
|
+
require 'time'
|
|
1015
|
+
require 'scrapebadger'
|
|
1016
|
+
# setup authorization
|
|
1017
|
+
ScrapeBadger.configure do |config|
|
|
1018
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1019
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1020
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1021
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
1025
|
+
opts = {
|
|
1026
|
+
domain: 'domain_example', # String |
|
|
1027
|
+
category: 'category_example', # String |
|
|
1028
|
+
page: 56 # Integer |
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
begin
|
|
1032
|
+
# New releases by category
|
|
1033
|
+
result = api_instance.amazon_new_releases_by_category(opts)
|
|
1034
|
+
p result
|
|
1035
|
+
rescue ScrapeBadger::ApiError => e
|
|
1036
|
+
puts "Error when calling AmazonApi->amazon_new_releases_by_category: #{e}"
|
|
1037
|
+
end
|
|
1038
|
+
```
|
|
1039
|
+
|
|
1040
|
+
#### Using the amazon_new_releases_by_category_with_http_info variant
|
|
1041
|
+
|
|
1042
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1043
|
+
|
|
1044
|
+
> <Array(Object, Integer, Hash)> amazon_new_releases_by_category_with_http_info(opts)
|
|
1045
|
+
|
|
1046
|
+
```ruby
|
|
1047
|
+
begin
|
|
1048
|
+
# New releases by category
|
|
1049
|
+
data, status_code, headers = api_instance.amazon_new_releases_by_category_with_http_info(opts)
|
|
1050
|
+
p status_code # => 2xx
|
|
1051
|
+
p headers # => { ... }
|
|
1052
|
+
p data # => Object
|
|
1053
|
+
rescue ScrapeBadger::ApiError => e
|
|
1054
|
+
puts "Error when calling AmazonApi->amazon_new_releases_by_category_with_http_info: #{e}"
|
|
1055
|
+
end
|
|
1056
|
+
```
|
|
1057
|
+
|
|
1058
|
+
### Parameters
|
|
1059
|
+
|
|
1060
|
+
| Name | Type | Description | Notes |
|
|
1061
|
+
| ---- | ---- | ----------- | ----- |
|
|
1062
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
1063
|
+
| **category** | **String** | | [optional] |
|
|
1064
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
1065
|
+
|
|
1066
|
+
### Return type
|
|
1067
|
+
|
|
1068
|
+
**Object**
|
|
1069
|
+
|
|
1070
|
+
### Authorization
|
|
1071
|
+
|
|
1072
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1073
|
+
|
|
1074
|
+
### HTTP request headers
|
|
1075
|
+
|
|
1076
|
+
- **Content-Type**: Not defined
|
|
1077
|
+
- **Accept**: application/json
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
## amazon_search_amazon_products
|
|
1081
|
+
|
|
1082
|
+
> Object amazon_search_amazon_products(query, opts)
|
|
1083
|
+
|
|
1084
|
+
Search Amazon products
|
|
1085
|
+
|
|
1086
|
+
Search the Amazon catalog with filters and sorting.
|
|
1087
|
+
|
|
1088
|
+
### Examples
|
|
1089
|
+
|
|
1090
|
+
```ruby
|
|
1091
|
+
require 'time'
|
|
1092
|
+
require 'scrapebadger'
|
|
1093
|
+
# setup authorization
|
|
1094
|
+
ScrapeBadger.configure do |config|
|
|
1095
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1096
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1097
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1098
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1099
|
+
end
|
|
1100
|
+
|
|
1101
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
1102
|
+
query = 'query_example' # String | Search keywords
|
|
1103
|
+
opts = {
|
|
1104
|
+
domain: 'domain_example', # String | Amazon marketplace TLD or code (com, co.uk, de…)
|
|
1105
|
+
page: 56, # Integer |
|
|
1106
|
+
sort_by: 'sort_by_example', # String | relevance | price_low_to_high | price_high_to_low | avg_review | newest
|
|
1107
|
+
category: 'category_example', # String | Department/category alias (i= param)
|
|
1108
|
+
min_price: 8.14, # Float |
|
|
1109
|
+
max_price: 8.14, # Float |
|
|
1110
|
+
zip: 'zip_example', # String | Delivery postal/zip code for localized pricing
|
|
1111
|
+
language: 'language_example' # String | Locale for results, e.g. en_US, fr_FR
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
begin
|
|
1115
|
+
# Search Amazon products
|
|
1116
|
+
result = api_instance.amazon_search_amazon_products(query, opts)
|
|
1117
|
+
p result
|
|
1118
|
+
rescue ScrapeBadger::ApiError => e
|
|
1119
|
+
puts "Error when calling AmazonApi->amazon_search_amazon_products: #{e}"
|
|
1120
|
+
end
|
|
1121
|
+
```
|
|
1122
|
+
|
|
1123
|
+
#### Using the amazon_search_amazon_products_with_http_info variant
|
|
1124
|
+
|
|
1125
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1126
|
+
|
|
1127
|
+
> <Array(Object, Integer, Hash)> amazon_search_amazon_products_with_http_info(query, opts)
|
|
1128
|
+
|
|
1129
|
+
```ruby
|
|
1130
|
+
begin
|
|
1131
|
+
# Search Amazon products
|
|
1132
|
+
data, status_code, headers = api_instance.amazon_search_amazon_products_with_http_info(query, opts)
|
|
1133
|
+
p status_code # => 2xx
|
|
1134
|
+
p headers # => { ... }
|
|
1135
|
+
p data # => Object
|
|
1136
|
+
rescue ScrapeBadger::ApiError => e
|
|
1137
|
+
puts "Error when calling AmazonApi->amazon_search_amazon_products_with_http_info: #{e}"
|
|
1138
|
+
end
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
### Parameters
|
|
1142
|
+
|
|
1143
|
+
| Name | Type | Description | Notes |
|
|
1144
|
+
| ---- | ---- | ----------- | ----- |
|
|
1145
|
+
| **query** | **String** | Search keywords | |
|
|
1146
|
+
| **domain** | **String** | Amazon marketplace TLD or code (com, co.uk, de…) | [optional][default to 'com'] |
|
|
1147
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
1148
|
+
| **sort_by** | **String** | relevance | price_low_to_high | price_high_to_low | avg_review | newest | [optional] |
|
|
1149
|
+
| **category** | **String** | Department/category alias (i= param) | [optional] |
|
|
1150
|
+
| **min_price** | **Float** | | [optional] |
|
|
1151
|
+
| **max_price** | **Float** | | [optional] |
|
|
1152
|
+
| **zip** | **String** | Delivery postal/zip code for localized pricing | [optional] |
|
|
1153
|
+
| **language** | **String** | Locale for results, e.g. en_US, fr_FR | [optional] |
|
|
1154
|
+
|
|
1155
|
+
### Return type
|
|
1156
|
+
|
|
1157
|
+
**Object**
|
|
1158
|
+
|
|
1159
|
+
### Authorization
|
|
1160
|
+
|
|
1161
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1162
|
+
|
|
1163
|
+
### HTTP request headers
|
|
1164
|
+
|
|
1165
|
+
- **Content-Type**: Not defined
|
|
1166
|
+
- **Accept**: application/json
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
## amazon_today_s_deals
|
|
1170
|
+
|
|
1171
|
+
> Object amazon_today_s_deals(opts)
|
|
1172
|
+
|
|
1173
|
+
Today's deals
|
|
1174
|
+
|
|
1175
|
+
Current Amazon deals (lightning deals, best deals).
|
|
1176
|
+
|
|
1177
|
+
### Examples
|
|
1178
|
+
|
|
1179
|
+
```ruby
|
|
1180
|
+
require 'time'
|
|
1181
|
+
require 'scrapebadger'
|
|
1182
|
+
# setup authorization
|
|
1183
|
+
ScrapeBadger.configure do |config|
|
|
1184
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1185
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1186
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1187
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
api_instance = ScrapeBadger::AmazonApi.new
|
|
1191
|
+
opts = {
|
|
1192
|
+
domain: 'domain_example', # String |
|
|
1193
|
+
category: 'category_example', # String |
|
|
1194
|
+
page: 56 # Integer |
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
begin
|
|
1198
|
+
# Today's deals
|
|
1199
|
+
result = api_instance.amazon_today_s_deals(opts)
|
|
1200
|
+
p result
|
|
1201
|
+
rescue ScrapeBadger::ApiError => e
|
|
1202
|
+
puts "Error when calling AmazonApi->amazon_today_s_deals: #{e}"
|
|
1203
|
+
end
|
|
1204
|
+
```
|
|
1205
|
+
|
|
1206
|
+
#### Using the amazon_today_s_deals_with_http_info variant
|
|
1207
|
+
|
|
1208
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1209
|
+
|
|
1210
|
+
> <Array(Object, Integer, Hash)> amazon_today_s_deals_with_http_info(opts)
|
|
1211
|
+
|
|
1212
|
+
```ruby
|
|
1213
|
+
begin
|
|
1214
|
+
# Today's deals
|
|
1215
|
+
data, status_code, headers = api_instance.amazon_today_s_deals_with_http_info(opts)
|
|
1216
|
+
p status_code # => 2xx
|
|
1217
|
+
p headers # => { ... }
|
|
1218
|
+
p data # => Object
|
|
1219
|
+
rescue ScrapeBadger::ApiError => e
|
|
1220
|
+
puts "Error when calling AmazonApi->amazon_today_s_deals_with_http_info: #{e}"
|
|
1221
|
+
end
|
|
1222
|
+
```
|
|
1223
|
+
|
|
1224
|
+
### Parameters
|
|
1225
|
+
|
|
1226
|
+
| Name | Type | Description | Notes |
|
|
1227
|
+
| ---- | ---- | ----------- | ----- |
|
|
1228
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
1229
|
+
| **category** | **String** | | [optional] |
|
|
1230
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
1231
|
+
|
|
1232
|
+
### Return type
|
|
1233
|
+
|
|
1234
|
+
**Object**
|
|
1235
|
+
|
|
1236
|
+
### Authorization
|
|
1237
|
+
|
|
1238
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1239
|
+
|
|
1240
|
+
### HTTP request headers
|
|
1241
|
+
|
|
1242
|
+
- **Content-Type**: Not defined
|
|
1243
|
+
- **Accept**: application/json
|
|
1244
|
+
|