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,822 @@
1
+ # ScrapeBadger::IdealistaApi
2
+
3
+ All URIs are relative to *https://scrapebadger.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**idealista_agency_by_phone**](IdealistaApi.md#idealista_agency_by_phone) | **GET** /v1/idealista/agency/by-phone/{phone} | Agency by phone |
8
+ | [**idealista_agency_profile_listings**](IdealistaApi.md#idealista_agency_profile_listings) | **GET** /v1/idealista/agency/{short_name} | Agency profile + listings |
9
+ | [**idealista_get_listing_engagement_stats**](IdealistaApi.md#idealista_get_listing_engagement_stats) | **GET** /v1/idealista/properties/{property_code}/stats | Get listing engagement stats |
10
+ | [**idealista_get_property_detail**](IdealistaApi.md#idealista_get_property_detail) | **GET** /v1/idealista/properties/{property_code} | Get property detail |
11
+ | [**idealista_idealista_scraper_health_check**](IdealistaApi.md#idealista_idealista_scraper_health_check) | **GET** /v1/idealista/health | Idealista scraper health check |
12
+ | [**idealista_idealista_scraper_health_check_head**](IdealistaApi.md#idealista_idealista_scraper_health_check_head) | **HEAD** /v1/idealista/health | Idealista scraper health check |
13
+ | [**idealista_list_markets**](IdealistaApi.md#idealista_list_markets) | **GET** /v1/idealista/markets | List markets |
14
+ | [**idealista_resolve_locations**](IdealistaApi.md#idealista_resolve_locations) | **GET** /v1/idealista/suggest | Resolve locations |
15
+ | [**idealista_search_all_beats_result_cap**](IdealistaApi.md#idealista_search_all_beats_result_cap) | **GET** /v1/idealista/search/all | Search all (beats result cap) |
16
+ | [**idealista_search_listings**](IdealistaApi.md#idealista_search_listings) | **GET** /v1/idealista/search | Search listings |
17
+
18
+
19
+ ## idealista_agency_by_phone
20
+
21
+ > Object idealista_agency_by_phone(phone, opts)
22
+
23
+ Agency by phone
24
+
25
+ Reverse-lookup the agency behind a contact phone (national number), with its listings.
26
+
27
+ ### Examples
28
+
29
+ ```ruby
30
+ require 'time'
31
+ require 'scrapebadger'
32
+ # setup authorization
33
+ ScrapeBadger.configure do |config|
34
+ # Configure API key authorization: ApiKeyAuth
35
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
36
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
38
+ end
39
+
40
+ api_instance = ScrapeBadger::IdealistaApi.new
41
+ phone = 'phone_example' # String |
42
+ opts = {
43
+ market: 'market_example', # String | es|it|pt
44
+ operation: 'operation_example', # String | sale|rent
45
+ property_type: 'property_type_example', # String | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms
46
+ page: 56, # Integer |
47
+ max_items: 56, # Integer |
48
+ include_listings: true # Boolean |
49
+ }
50
+
51
+ begin
52
+ # Agency by phone
53
+ result = api_instance.idealista_agency_by_phone(phone, opts)
54
+ p result
55
+ rescue ScrapeBadger::ApiError => e
56
+ puts "Error when calling IdealistaApi->idealista_agency_by_phone: #{e}"
57
+ end
58
+ ```
59
+
60
+ #### Using the idealista_agency_by_phone_with_http_info variant
61
+
62
+ This returns an Array which contains the response data, status code and headers.
63
+
64
+ > <Array(Object, Integer, Hash)> idealista_agency_by_phone_with_http_info(phone, opts)
65
+
66
+ ```ruby
67
+ begin
68
+ # Agency by phone
69
+ data, status_code, headers = api_instance.idealista_agency_by_phone_with_http_info(phone, opts)
70
+ p status_code # => 2xx
71
+ p headers # => { ... }
72
+ p data # => Object
73
+ rescue ScrapeBadger::ApiError => e
74
+ puts "Error when calling IdealistaApi->idealista_agency_by_phone_with_http_info: #{e}"
75
+ end
76
+ ```
77
+
78
+ ### Parameters
79
+
80
+ | Name | Type | Description | Notes |
81
+ | ---- | ---- | ----------- | ----- |
82
+ | **phone** | **String** | | |
83
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
84
+ | **operation** | **String** | sale|rent | [optional] |
85
+ | **property_type** | **String** | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms | [optional] |
86
+ | **page** | **Integer** | | [optional][default to 1] |
87
+ | **max_items** | **Integer** | | [optional][default to 30] |
88
+ | **include_listings** | **Boolean** | | [optional][default to true] |
89
+
90
+ ### Return type
91
+
92
+ **Object**
93
+
94
+ ### Authorization
95
+
96
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
97
+
98
+ ### HTTP request headers
99
+
100
+ - **Content-Type**: Not defined
101
+ - **Accept**: application/json
102
+
103
+
104
+ ## idealista_agency_profile_listings
105
+
106
+ > Object idealista_agency_profile_listings(short_name, opts)
107
+
108
+ Agency profile + listings
109
+
110
+ An agency's microsite profile plus a page of its listings (by URL-slug shortName).
111
+
112
+ ### Examples
113
+
114
+ ```ruby
115
+ require 'time'
116
+ require 'scrapebadger'
117
+ # setup authorization
118
+ ScrapeBadger.configure do |config|
119
+ # Configure API key authorization: ApiKeyAuth
120
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
121
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
122
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
123
+ end
124
+
125
+ api_instance = ScrapeBadger::IdealistaApi.new
126
+ short_name = 'short_name_example' # String |
127
+ opts = {
128
+ market: 'market_example', # String | es|it|pt
129
+ operation: 'operation_example', # String | sale|rent
130
+ property_type: 'property_type_example', # String | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms
131
+ page: 56, # Integer |
132
+ max_items: 56, # Integer |
133
+ include_listings: true # Boolean |
134
+ }
135
+
136
+ begin
137
+ # Agency profile + listings
138
+ result = api_instance.idealista_agency_profile_listings(short_name, opts)
139
+ p result
140
+ rescue ScrapeBadger::ApiError => e
141
+ puts "Error when calling IdealistaApi->idealista_agency_profile_listings: #{e}"
142
+ end
143
+ ```
144
+
145
+ #### Using the idealista_agency_profile_listings_with_http_info variant
146
+
147
+ This returns an Array which contains the response data, status code and headers.
148
+
149
+ > <Array(Object, Integer, Hash)> idealista_agency_profile_listings_with_http_info(short_name, opts)
150
+
151
+ ```ruby
152
+ begin
153
+ # Agency profile + listings
154
+ data, status_code, headers = api_instance.idealista_agency_profile_listings_with_http_info(short_name, opts)
155
+ p status_code # => 2xx
156
+ p headers # => { ... }
157
+ p data # => Object
158
+ rescue ScrapeBadger::ApiError => e
159
+ puts "Error when calling IdealistaApi->idealista_agency_profile_listings_with_http_info: #{e}"
160
+ end
161
+ ```
162
+
163
+ ### Parameters
164
+
165
+ | Name | Type | Description | Notes |
166
+ | ---- | ---- | ----------- | ----- |
167
+ | **short_name** | **String** | | |
168
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
169
+ | **operation** | **String** | sale|rent | [optional] |
170
+ | **property_type** | **String** | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms | [optional] |
171
+ | **page** | **Integer** | | [optional][default to 1] |
172
+ | **max_items** | **Integer** | | [optional][default to 30] |
173
+ | **include_listings** | **Boolean** | | [optional][default to true] |
174
+
175
+ ### Return type
176
+
177
+ **Object**
178
+
179
+ ### Authorization
180
+
181
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
182
+
183
+ ### HTTP request headers
184
+
185
+ - **Content-Type**: Not defined
186
+ - **Accept**: application/json
187
+
188
+
189
+ ## idealista_get_listing_engagement_stats
190
+
191
+ > Object idealista_get_listing_engagement_stats(property_code, opts)
192
+
193
+ Get listing engagement stats
194
+
195
+ Engagement counters for a listing: views, email contacts, sent-to-friend, favourites.
196
+
197
+ ### Examples
198
+
199
+ ```ruby
200
+ require 'time'
201
+ require 'scrapebadger'
202
+ # setup authorization
203
+ ScrapeBadger.configure do |config|
204
+ # Configure API key authorization: ApiKeyAuth
205
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
206
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
207
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
208
+ end
209
+
210
+ api_instance = ScrapeBadger::IdealistaApi.new
211
+ property_code = 'property_code_example' # String |
212
+ opts = {
213
+ market: 'market_example', # String | es|it|pt
214
+ locale: 'locale_example' # String | Language for stat labels
215
+ }
216
+
217
+ begin
218
+ # Get listing engagement stats
219
+ result = api_instance.idealista_get_listing_engagement_stats(property_code, opts)
220
+ p result
221
+ rescue ScrapeBadger::ApiError => e
222
+ puts "Error when calling IdealistaApi->idealista_get_listing_engagement_stats: #{e}"
223
+ end
224
+ ```
225
+
226
+ #### Using the idealista_get_listing_engagement_stats_with_http_info variant
227
+
228
+ This returns an Array which contains the response data, status code and headers.
229
+
230
+ > <Array(Object, Integer, Hash)> idealista_get_listing_engagement_stats_with_http_info(property_code, opts)
231
+
232
+ ```ruby
233
+ begin
234
+ # Get listing engagement stats
235
+ data, status_code, headers = api_instance.idealista_get_listing_engagement_stats_with_http_info(property_code, opts)
236
+ p status_code # => 2xx
237
+ p headers # => { ... }
238
+ p data # => Object
239
+ rescue ScrapeBadger::ApiError => e
240
+ puts "Error when calling IdealistaApi->idealista_get_listing_engagement_stats_with_http_info: #{e}"
241
+ end
242
+ ```
243
+
244
+ ### Parameters
245
+
246
+ | Name | Type | Description | Notes |
247
+ | ---- | ---- | ----------- | ----- |
248
+ | **property_code** | **String** | | |
249
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
250
+ | **locale** | **String** | Language for stat labels | [optional][default to &#39;en&#39;] |
251
+
252
+ ### Return type
253
+
254
+ **Object**
255
+
256
+ ### Authorization
257
+
258
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
259
+
260
+ ### HTTP request headers
261
+
262
+ - **Content-Type**: Not defined
263
+ - **Accept**: application/json
264
+
265
+
266
+ ## idealista_get_property_detail
267
+
268
+ > Object idealista_get_property_detail(property_code, opts)
269
+
270
+ Get property detail
271
+
272
+ Get a single Idealista listing's full detail (energy cert, characteristics, media).
273
+
274
+ ### Examples
275
+
276
+ ```ruby
277
+ require 'time'
278
+ require 'scrapebadger'
279
+ # setup authorization
280
+ ScrapeBadger.configure do |config|
281
+ # Configure API key authorization: ApiKeyAuth
282
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
283
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
284
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
285
+ end
286
+
287
+ api_instance = ScrapeBadger::IdealistaApi.new
288
+ property_code = 'property_code_example' # String |
289
+ opts = {
290
+ market: 'market_example', # String | es|it|pt
291
+ locale: 'locale_example' # String | Response language (en, es, it, pt)
292
+ }
293
+
294
+ begin
295
+ # Get property detail
296
+ result = api_instance.idealista_get_property_detail(property_code, opts)
297
+ p result
298
+ rescue ScrapeBadger::ApiError => e
299
+ puts "Error when calling IdealistaApi->idealista_get_property_detail: #{e}"
300
+ end
301
+ ```
302
+
303
+ #### Using the idealista_get_property_detail_with_http_info variant
304
+
305
+ This returns an Array which contains the response data, status code and headers.
306
+
307
+ > <Array(Object, Integer, Hash)> idealista_get_property_detail_with_http_info(property_code, opts)
308
+
309
+ ```ruby
310
+ begin
311
+ # Get property detail
312
+ data, status_code, headers = api_instance.idealista_get_property_detail_with_http_info(property_code, opts)
313
+ p status_code # => 2xx
314
+ p headers # => { ... }
315
+ p data # => Object
316
+ rescue ScrapeBadger::ApiError => e
317
+ puts "Error when calling IdealistaApi->idealista_get_property_detail_with_http_info: #{e}"
318
+ end
319
+ ```
320
+
321
+ ### Parameters
322
+
323
+ | Name | Type | Description | Notes |
324
+ | ---- | ---- | ----------- | ----- |
325
+ | **property_code** | **String** | | |
326
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
327
+ | **locale** | **String** | Response language (en, es, it, pt) | [optional][default to &#39;en&#39;] |
328
+
329
+ ### Return type
330
+
331
+ **Object**
332
+
333
+ ### Authorization
334
+
335
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
336
+
337
+ ### HTTP request headers
338
+
339
+ - **Content-Type**: Not defined
340
+ - **Accept**: application/json
341
+
342
+
343
+ ## idealista_idealista_scraper_health_check
344
+
345
+ > Object idealista_idealista_scraper_health_check
346
+
347
+ Idealista scraper health check
348
+
349
+ Check health of the Idealista scraper service (accepts HEAD for UptimeRobot).
350
+
351
+ ### Examples
352
+
353
+ ```ruby
354
+ require 'time'
355
+ require 'scrapebadger'
356
+ # setup authorization
357
+ ScrapeBadger.configure do |config|
358
+ # Configure API key authorization: ApiKeyAuth
359
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
360
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
361
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
362
+ end
363
+
364
+ api_instance = ScrapeBadger::IdealistaApi.new
365
+
366
+ begin
367
+ # Idealista scraper health check
368
+ result = api_instance.idealista_idealista_scraper_health_check
369
+ p result
370
+ rescue ScrapeBadger::ApiError => e
371
+ puts "Error when calling IdealistaApi->idealista_idealista_scraper_health_check: #{e}"
372
+ end
373
+ ```
374
+
375
+ #### Using the idealista_idealista_scraper_health_check_with_http_info variant
376
+
377
+ This returns an Array which contains the response data, status code and headers.
378
+
379
+ > <Array(Object, Integer, Hash)> idealista_idealista_scraper_health_check_with_http_info
380
+
381
+ ```ruby
382
+ begin
383
+ # Idealista scraper health check
384
+ data, status_code, headers = api_instance.idealista_idealista_scraper_health_check_with_http_info
385
+ p status_code # => 2xx
386
+ p headers # => { ... }
387
+ p data # => Object
388
+ rescue ScrapeBadger::ApiError => e
389
+ puts "Error when calling IdealistaApi->idealista_idealista_scraper_health_check_with_http_info: #{e}"
390
+ end
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+ This endpoint does not need any parameter.
396
+
397
+ ### Return type
398
+
399
+ **Object**
400
+
401
+ ### Authorization
402
+
403
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
404
+
405
+ ### HTTP request headers
406
+
407
+ - **Content-Type**: Not defined
408
+ - **Accept**: application/json
409
+
410
+
411
+ ## idealista_idealista_scraper_health_check_head
412
+
413
+ > Object idealista_idealista_scraper_health_check_head
414
+
415
+ Idealista scraper health check
416
+
417
+ Check health of the Idealista scraper service (accepts HEAD for UptimeRobot).
418
+
419
+ ### Examples
420
+
421
+ ```ruby
422
+ require 'time'
423
+ require 'scrapebadger'
424
+ # setup authorization
425
+ ScrapeBadger.configure do |config|
426
+ # Configure API key authorization: ApiKeyAuth
427
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
428
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
429
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
430
+ end
431
+
432
+ api_instance = ScrapeBadger::IdealistaApi.new
433
+
434
+ begin
435
+ # Idealista scraper health check
436
+ result = api_instance.idealista_idealista_scraper_health_check_head
437
+ p result
438
+ rescue ScrapeBadger::ApiError => e
439
+ puts "Error when calling IdealistaApi->idealista_idealista_scraper_health_check_head: #{e}"
440
+ end
441
+ ```
442
+
443
+ #### Using the idealista_idealista_scraper_health_check_head_with_http_info variant
444
+
445
+ This returns an Array which contains the response data, status code and headers.
446
+
447
+ > <Array(Object, Integer, Hash)> idealista_idealista_scraper_health_check_head_with_http_info
448
+
449
+ ```ruby
450
+ begin
451
+ # Idealista scraper health check
452
+ data, status_code, headers = api_instance.idealista_idealista_scraper_health_check_head_with_http_info
453
+ p status_code # => 2xx
454
+ p headers # => { ... }
455
+ p data # => Object
456
+ rescue ScrapeBadger::ApiError => e
457
+ puts "Error when calling IdealistaApi->idealista_idealista_scraper_health_check_head_with_http_info: #{e}"
458
+ end
459
+ ```
460
+
461
+ ### Parameters
462
+
463
+ This endpoint does not need any parameter.
464
+
465
+ ### Return type
466
+
467
+ **Object**
468
+
469
+ ### Authorization
470
+
471
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
472
+
473
+ ### HTTP request headers
474
+
475
+ - **Content-Type**: Not defined
476
+ - **Accept**: application/json
477
+
478
+
479
+ ## idealista_list_markets
480
+
481
+ > Object idealista_list_markets
482
+
483
+ List markets
484
+
485
+ List supported Idealista markets (ES, IT, PT).
486
+
487
+ ### Examples
488
+
489
+ ```ruby
490
+ require 'time'
491
+ require 'scrapebadger'
492
+ # setup authorization
493
+ ScrapeBadger.configure do |config|
494
+ # Configure API key authorization: ApiKeyAuth
495
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
496
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
497
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
498
+ end
499
+
500
+ api_instance = ScrapeBadger::IdealistaApi.new
501
+
502
+ begin
503
+ # List markets
504
+ result = api_instance.idealista_list_markets
505
+ p result
506
+ rescue ScrapeBadger::ApiError => e
507
+ puts "Error when calling IdealistaApi->idealista_list_markets: #{e}"
508
+ end
509
+ ```
510
+
511
+ #### Using the idealista_list_markets_with_http_info variant
512
+
513
+ This returns an Array which contains the response data, status code and headers.
514
+
515
+ > <Array(Object, Integer, Hash)> idealista_list_markets_with_http_info
516
+
517
+ ```ruby
518
+ begin
519
+ # List markets
520
+ data, status_code, headers = api_instance.idealista_list_markets_with_http_info
521
+ p status_code # => 2xx
522
+ p headers # => { ... }
523
+ p data # => Object
524
+ rescue ScrapeBadger::ApiError => e
525
+ puts "Error when calling IdealistaApi->idealista_list_markets_with_http_info: #{e}"
526
+ end
527
+ ```
528
+
529
+ ### Parameters
530
+
531
+ This endpoint does not need any parameter.
532
+
533
+ ### Return type
534
+
535
+ **Object**
536
+
537
+ ### Authorization
538
+
539
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
540
+
541
+ ### HTTP request headers
542
+
543
+ - **Content-Type**: Not defined
544
+ - **Accept**: application/json
545
+
546
+
547
+ ## idealista_resolve_locations
548
+
549
+ > Object idealista_resolve_locations(query, opts)
550
+
551
+ Resolve locations
552
+
553
+ Resolve a free-text query into Idealista location codes for a search.
554
+
555
+ ### Examples
556
+
557
+ ```ruby
558
+ require 'time'
559
+ require 'scrapebadger'
560
+ # setup authorization
561
+ ScrapeBadger.configure do |config|
562
+ # Configure API key authorization: ApiKeyAuth
563
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
564
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
565
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
566
+ end
567
+
568
+ api_instance = ScrapeBadger::IdealistaApi.new
569
+ query = 'query_example' # String | Free-text location, e.g. 'sagrada familia'
570
+ opts = {
571
+ operation: 'operation_example', # String | sale|rent
572
+ property_type: 'property_type_example', # String | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms
573
+ market: 'market_example', # String | es|it|pt
574
+ locale: 'locale_example' # String | Response language (en, es, it, pt)
575
+ }
576
+
577
+ begin
578
+ # Resolve locations
579
+ result = api_instance.idealista_resolve_locations(query, opts)
580
+ p result
581
+ rescue ScrapeBadger::ApiError => e
582
+ puts "Error when calling IdealistaApi->idealista_resolve_locations: #{e}"
583
+ end
584
+ ```
585
+
586
+ #### Using the idealista_resolve_locations_with_http_info variant
587
+
588
+ This returns an Array which contains the response data, status code and headers.
589
+
590
+ > <Array(Object, Integer, Hash)> idealista_resolve_locations_with_http_info(query, opts)
591
+
592
+ ```ruby
593
+ begin
594
+ # Resolve locations
595
+ data, status_code, headers = api_instance.idealista_resolve_locations_with_http_info(query, opts)
596
+ p status_code # => 2xx
597
+ p headers # => { ... }
598
+ p data # => Object
599
+ rescue ScrapeBadger::ApiError => e
600
+ puts "Error when calling IdealistaApi->idealista_resolve_locations_with_http_info: #{e}"
601
+ end
602
+ ```
603
+
604
+ ### Parameters
605
+
606
+ | Name | Type | Description | Notes |
607
+ | ---- | ---- | ----------- | ----- |
608
+ | **query** | **String** | Free-text location, e.g. &#39;sagrada familia&#39; | |
609
+ | **operation** | **String** | sale|rent | [optional][default to &#39;sale&#39;] |
610
+ | **property_type** | **String** | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms | [optional][default to &#39;homes&#39;] |
611
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
612
+ | **locale** | **String** | Response language (en, es, it, pt) | [optional] |
613
+
614
+ ### Return type
615
+
616
+ **Object**
617
+
618
+ ### Authorization
619
+
620
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
621
+
622
+ ### HTTP request headers
623
+
624
+ - **Content-Type**: Not defined
625
+ - **Accept**: application/json
626
+
627
+
628
+ ## idealista_search_all_beats_result_cap
629
+
630
+ > Object idealista_search_all_beats_result_cap(location, opts)
631
+
632
+ Search all (beats result cap)
633
+
634
+ Full inventory for a location, beating Idealista's ~1800 per-search cap via price-range tiling (deduped). Billed per page fetched.
635
+
636
+ ### Examples
637
+
638
+ ```ruby
639
+ require 'time'
640
+ require 'scrapebadger'
641
+ # setup authorization
642
+ ScrapeBadger.configure do |config|
643
+ # Configure API key authorization: ApiKeyAuth
644
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
645
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
646
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
647
+ end
648
+
649
+ api_instance = ScrapeBadger::IdealistaApi.new
650
+ location = 'location_example' # String | Idealista location code (from /suggest)
651
+ opts = {
652
+ operation: 'operation_example', # String | sale|rent
653
+ property_type: 'property_type_example', # String | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms
654
+ market: 'market_example', # String | es|it|pt
655
+ max_results: 56, # Integer |
656
+ min_price: 8.14, # Float |
657
+ max_price: 8.14, # Float |
658
+ min_size: 8.14, # Float |
659
+ max_size: 8.14, # Float |
660
+ min_rooms: 56, # Integer |
661
+ max_rooms: 56, # Integer |
662
+ locale: 'locale_example' # String | Response language (en, es, it, pt)
663
+ }
664
+
665
+ begin
666
+ # Search all (beats result cap)
667
+ result = api_instance.idealista_search_all_beats_result_cap(location, opts)
668
+ p result
669
+ rescue ScrapeBadger::ApiError => e
670
+ puts "Error when calling IdealistaApi->idealista_search_all_beats_result_cap: #{e}"
671
+ end
672
+ ```
673
+
674
+ #### Using the idealista_search_all_beats_result_cap_with_http_info variant
675
+
676
+ This returns an Array which contains the response data, status code and headers.
677
+
678
+ > <Array(Object, Integer, Hash)> idealista_search_all_beats_result_cap_with_http_info(location, opts)
679
+
680
+ ```ruby
681
+ begin
682
+ # Search all (beats result cap)
683
+ data, status_code, headers = api_instance.idealista_search_all_beats_result_cap_with_http_info(location, opts)
684
+ p status_code # => 2xx
685
+ p headers # => { ... }
686
+ p data # => Object
687
+ rescue ScrapeBadger::ApiError => e
688
+ puts "Error when calling IdealistaApi->idealista_search_all_beats_result_cap_with_http_info: #{e}"
689
+ end
690
+ ```
691
+
692
+ ### Parameters
693
+
694
+ | Name | Type | Description | Notes |
695
+ | ---- | ---- | ----------- | ----- |
696
+ | **location** | **String** | Idealista location code (from /suggest) | |
697
+ | **operation** | **String** | sale|rent | [optional][default to &#39;sale&#39;] |
698
+ | **property_type** | **String** | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms | [optional][default to &#39;homes&#39;] |
699
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
700
+ | **max_results** | **Integer** | | [optional][default to 500] |
701
+ | **min_price** | **Float** | | [optional] |
702
+ | **max_price** | **Float** | | [optional] |
703
+ | **min_size** | **Float** | | [optional] |
704
+ | **max_size** | **Float** | | [optional] |
705
+ | **min_rooms** | **Integer** | | [optional] |
706
+ | **max_rooms** | **Integer** | | [optional] |
707
+ | **locale** | **String** | Response language (en, es, it, pt) | [optional] |
708
+
709
+ ### Return type
710
+
711
+ **Object**
712
+
713
+ ### Authorization
714
+
715
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
716
+
717
+ ### HTTP request headers
718
+
719
+ - **Content-Type**: Not defined
720
+ - **Accept**: application/json
721
+
722
+
723
+ ## idealista_search_listings
724
+
725
+ > Object idealista_search_listings(location, opts)
726
+
727
+ Search listings
728
+
729
+ Search Idealista real-estate listings by location code.
730
+
731
+ ### Examples
732
+
733
+ ```ruby
734
+ require 'time'
735
+ require 'scrapebadger'
736
+ # setup authorization
737
+ ScrapeBadger.configure do |config|
738
+ # Configure API key authorization: ApiKeyAuth
739
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
740
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
741
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
742
+ end
743
+
744
+ api_instance = ScrapeBadger::IdealistaApi.new
745
+ location = 'location_example' # String | Idealista location code (from /suggest)
746
+ opts = {
747
+ operation: 'operation_example', # String | sale|rent
748
+ property_type: 'property_type_example', # String | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms
749
+ market: 'market_example', # String | es|it|pt
750
+ page: 56, # Integer |
751
+ max_items: 56, # Integer |
752
+ sort_by: 'sort_by_example', # String | distance|size|rooms|floor|ratioeurm2|price|street|photos|modificationDate|publicationDate|weigh|priceDown|preservationTypeAndPrice|privateAds
753
+ sort_order: 'sort_order_example', # String | asc|desc
754
+ min_price: 8.14, # Float |
755
+ max_price: 8.14, # Float |
756
+ min_size: 8.14, # Float |
757
+ max_size: 8.14, # Float |
758
+ min_rooms: 56, # Integer |
759
+ max_rooms: 56, # Integer |
760
+ locale: 'locale_example' # String | Response language (en, es, it, pt)
761
+ }
762
+
763
+ begin
764
+ # Search listings
765
+ result = api_instance.idealista_search_listings(location, opts)
766
+ p result
767
+ rescue ScrapeBadger::ApiError => e
768
+ puts "Error when calling IdealistaApi->idealista_search_listings: #{e}"
769
+ end
770
+ ```
771
+
772
+ #### Using the idealista_search_listings_with_http_info variant
773
+
774
+ This returns an Array which contains the response data, status code and headers.
775
+
776
+ > <Array(Object, Integer, Hash)> idealista_search_listings_with_http_info(location, opts)
777
+
778
+ ```ruby
779
+ begin
780
+ # Search listings
781
+ data, status_code, headers = api_instance.idealista_search_listings_with_http_info(location, opts)
782
+ p status_code # => 2xx
783
+ p headers # => { ... }
784
+ p data # => Object
785
+ rescue ScrapeBadger::ApiError => e
786
+ puts "Error when calling IdealistaApi->idealista_search_listings_with_http_info: #{e}"
787
+ end
788
+ ```
789
+
790
+ ### Parameters
791
+
792
+ | Name | Type | Description | Notes |
793
+ | ---- | ---- | ----------- | ----- |
794
+ | **location** | **String** | Idealista location code (from /suggest) | |
795
+ | **operation** | **String** | sale|rent | [optional][default to &#39;sale&#39;] |
796
+ | **property_type** | **String** | homes|offices|premises|garages|newDevelopments|lands|storageRooms|buildings|bedrooms | [optional][default to &#39;homes&#39;] |
797
+ | **market** | **String** | es|it|pt | [optional][default to &#39;es&#39;] |
798
+ | **page** | **Integer** | | [optional][default to 1] |
799
+ | **max_items** | **Integer** | | [optional][default to 30] |
800
+ | **sort_by** | **String** | distance|size|rooms|floor|ratioeurm2|price|street|photos|modificationDate|publicationDate|weigh|priceDown|preservationTypeAndPrice|privateAds | [optional] |
801
+ | **sort_order** | **String** | asc|desc | [optional][default to &#39;desc&#39;] |
802
+ | **min_price** | **Float** | | [optional] |
803
+ | **max_price** | **Float** | | [optional] |
804
+ | **min_size** | **Float** | | [optional] |
805
+ | **max_size** | **Float** | | [optional] |
806
+ | **min_rooms** | **Integer** | | [optional] |
807
+ | **max_rooms** | **Integer** | | [optional] |
808
+ | **locale** | **String** | Response language (en, es, it, pt) | [optional] |
809
+
810
+ ### Return type
811
+
812
+ **Object**
813
+
814
+ ### Authorization
815
+
816
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
817
+
818
+ ### HTTP request headers
819
+
820
+ - **Content-Type**: Not defined
821
+ - **Accept**: application/json
822
+