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/RealtorApi.md
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
# ScrapeBadger::RealtorApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**realtor_get_full_property_detail**](RealtorApi.md#realtor_get_full_property_detail) | **GET** /v1/realtor/properties/{property_id} | Get full property detail |
|
|
8
|
+
| [**realtor_list_markets**](RealtorApi.md#realtor_list_markets) | **GET** /v1/realtor/markets | List markets |
|
|
9
|
+
| [**realtor_location_autocomplete**](RealtorApi.md#realtor_location_autocomplete) | **GET** /v1/realtor/autocomplete | Location autocomplete |
|
|
10
|
+
| [**realtor_realtor_scraper_health_check**](RealtorApi.md#realtor_realtor_scraper_health_check) | **GET** /v1/realtor/health | Realtor scraper health check |
|
|
11
|
+
| [**realtor_realtor_scraper_health_check_head**](RealtorApi.md#realtor_realtor_scraper_health_check_head) | **HEAD** /v1/realtor/health | Realtor scraper health check |
|
|
12
|
+
| [**realtor_search_property_listings**](RealtorApi.md#realtor_search_property_listings) | **GET** /v1/realtor/search | Search property listings |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## realtor_get_full_property_detail
|
|
16
|
+
|
|
17
|
+
> Object realtor_get_full_property_detail(property_id, opts)
|
|
18
|
+
|
|
19
|
+
Get full property detail
|
|
20
|
+
|
|
21
|
+
Full listing detail: features, tax & price history, schools, photos, agents.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'scrapebadger'
|
|
28
|
+
# setup authorization
|
|
29
|
+
ScrapeBadger.configure do |config|
|
|
30
|
+
# Configure API key authorization: ApiKeyAuth
|
|
31
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
33
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
37
|
+
property_id = 'property_id_example' # String |
|
|
38
|
+
opts = {
|
|
39
|
+
market: 'market_example' # String | us (realtor.com) | ca (realtor.ca)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Get full property detail
|
|
44
|
+
result = api_instance.realtor_get_full_property_detail(property_id, opts)
|
|
45
|
+
p result
|
|
46
|
+
rescue ScrapeBadger::ApiError => e
|
|
47
|
+
puts "Error when calling RealtorApi->realtor_get_full_property_detail: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the realtor_get_full_property_detail_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(Object, Integer, Hash)> realtor_get_full_property_detail_with_http_info(property_id, opts)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Get full property detail
|
|
60
|
+
data, status_code, headers = api_instance.realtor_get_full_property_detail_with_http_info(property_id, opts)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => Object
|
|
64
|
+
rescue ScrapeBadger::ApiError => e
|
|
65
|
+
puts "Error when calling RealtorApi->realtor_get_full_property_detail_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **property_id** | **String** | | |
|
|
74
|
+
| **market** | **String** | us (realtor.com) | ca (realtor.ca) | [optional][default to 'us'] |
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
**Object**
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: Not defined
|
|
87
|
+
- **Accept**: application/json
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## realtor_list_markets
|
|
91
|
+
|
|
92
|
+
> Object realtor_list_markets
|
|
93
|
+
|
|
94
|
+
List markets
|
|
95
|
+
|
|
96
|
+
List supported Realtor markets (US = realtor.com, CA = realtor.ca).
|
|
97
|
+
|
|
98
|
+
### Examples
|
|
99
|
+
|
|
100
|
+
```ruby
|
|
101
|
+
require 'time'
|
|
102
|
+
require 'scrapebadger'
|
|
103
|
+
# setup authorization
|
|
104
|
+
ScrapeBadger.configure do |config|
|
|
105
|
+
# Configure API key authorization: ApiKeyAuth
|
|
106
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
108
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
112
|
+
|
|
113
|
+
begin
|
|
114
|
+
# List markets
|
|
115
|
+
result = api_instance.realtor_list_markets
|
|
116
|
+
p result
|
|
117
|
+
rescue ScrapeBadger::ApiError => e
|
|
118
|
+
puts "Error when calling RealtorApi->realtor_list_markets: #{e}"
|
|
119
|
+
end
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
#### Using the realtor_list_markets_with_http_info variant
|
|
123
|
+
|
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
|
125
|
+
|
|
126
|
+
> <Array(Object, Integer, Hash)> realtor_list_markets_with_http_info
|
|
127
|
+
|
|
128
|
+
```ruby
|
|
129
|
+
begin
|
|
130
|
+
# List markets
|
|
131
|
+
data, status_code, headers = api_instance.realtor_list_markets_with_http_info
|
|
132
|
+
p status_code # => 2xx
|
|
133
|
+
p headers # => { ... }
|
|
134
|
+
p data # => Object
|
|
135
|
+
rescue ScrapeBadger::ApiError => e
|
|
136
|
+
puts "Error when calling RealtorApi->realtor_list_markets_with_http_info: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
This endpoint does not need any parameter.
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
**Object**
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## realtor_location_autocomplete
|
|
159
|
+
|
|
160
|
+
> Object realtor_location_autocomplete(query, opts)
|
|
161
|
+
|
|
162
|
+
Location autocomplete
|
|
163
|
+
|
|
164
|
+
Resolve a location query into candidate places to feed /search.
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'scrapebadger'
|
|
171
|
+
# setup authorization
|
|
172
|
+
ScrapeBadger.configure do |config|
|
|
173
|
+
# Configure API key authorization: ApiKeyAuth
|
|
174
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
175
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
176
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
180
|
+
query = 'query_example' # String | Freetext location (city, ZIP/postal, address…)
|
|
181
|
+
opts = {
|
|
182
|
+
market: 'market_example', # String | us (realtor.com) | ca (realtor.ca)
|
|
183
|
+
limit: 56 # Integer |
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
begin
|
|
187
|
+
# Location autocomplete
|
|
188
|
+
result = api_instance.realtor_location_autocomplete(query, opts)
|
|
189
|
+
p result
|
|
190
|
+
rescue ScrapeBadger::ApiError => e
|
|
191
|
+
puts "Error when calling RealtorApi->realtor_location_autocomplete: #{e}"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
#### Using the realtor_location_autocomplete_with_http_info variant
|
|
196
|
+
|
|
197
|
+
This returns an Array which contains the response data, status code and headers.
|
|
198
|
+
|
|
199
|
+
> <Array(Object, Integer, Hash)> realtor_location_autocomplete_with_http_info(query, opts)
|
|
200
|
+
|
|
201
|
+
```ruby
|
|
202
|
+
begin
|
|
203
|
+
# Location autocomplete
|
|
204
|
+
data, status_code, headers = api_instance.realtor_location_autocomplete_with_http_info(query, opts)
|
|
205
|
+
p status_code # => 2xx
|
|
206
|
+
p headers # => { ... }
|
|
207
|
+
p data # => Object
|
|
208
|
+
rescue ScrapeBadger::ApiError => e
|
|
209
|
+
puts "Error when calling RealtorApi->realtor_location_autocomplete_with_http_info: #{e}"
|
|
210
|
+
end
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
| Name | Type | Description | Notes |
|
|
216
|
+
| ---- | ---- | ----------- | ----- |
|
|
217
|
+
| **query** | **String** | Freetext location (city, ZIP/postal, address…) | |
|
|
218
|
+
| **market** | **String** | us (realtor.com) | ca (realtor.ca) | [optional][default to 'us'] |
|
|
219
|
+
| **limit** | **Integer** | | [optional][default to 10] |
|
|
220
|
+
|
|
221
|
+
### Return type
|
|
222
|
+
|
|
223
|
+
**Object**
|
|
224
|
+
|
|
225
|
+
### Authorization
|
|
226
|
+
|
|
227
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
228
|
+
|
|
229
|
+
### HTTP request headers
|
|
230
|
+
|
|
231
|
+
- **Content-Type**: Not defined
|
|
232
|
+
- **Accept**: application/json
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## realtor_realtor_scraper_health_check
|
|
236
|
+
|
|
237
|
+
> Object realtor_realtor_scraper_health_check
|
|
238
|
+
|
|
239
|
+
Realtor scraper health check
|
|
240
|
+
|
|
241
|
+
Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
|
|
242
|
+
|
|
243
|
+
### Examples
|
|
244
|
+
|
|
245
|
+
```ruby
|
|
246
|
+
require 'time'
|
|
247
|
+
require 'scrapebadger'
|
|
248
|
+
# setup authorization
|
|
249
|
+
ScrapeBadger.configure do |config|
|
|
250
|
+
# Configure API key authorization: ApiKeyAuth
|
|
251
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
252
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
253
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
257
|
+
|
|
258
|
+
begin
|
|
259
|
+
# Realtor scraper health check
|
|
260
|
+
result = api_instance.realtor_realtor_scraper_health_check
|
|
261
|
+
p result
|
|
262
|
+
rescue ScrapeBadger::ApiError => e
|
|
263
|
+
puts "Error when calling RealtorApi->realtor_realtor_scraper_health_check: #{e}"
|
|
264
|
+
end
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
#### Using the realtor_realtor_scraper_health_check_with_http_info variant
|
|
268
|
+
|
|
269
|
+
This returns an Array which contains the response data, status code and headers.
|
|
270
|
+
|
|
271
|
+
> <Array(Object, Integer, Hash)> realtor_realtor_scraper_health_check_with_http_info
|
|
272
|
+
|
|
273
|
+
```ruby
|
|
274
|
+
begin
|
|
275
|
+
# Realtor scraper health check
|
|
276
|
+
data, status_code, headers = api_instance.realtor_realtor_scraper_health_check_with_http_info
|
|
277
|
+
p status_code # => 2xx
|
|
278
|
+
p headers # => { ... }
|
|
279
|
+
p data # => Object
|
|
280
|
+
rescue ScrapeBadger::ApiError => e
|
|
281
|
+
puts "Error when calling RealtorApi->realtor_realtor_scraper_health_check_with_http_info: #{e}"
|
|
282
|
+
end
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### Parameters
|
|
286
|
+
|
|
287
|
+
This endpoint does not need any parameter.
|
|
288
|
+
|
|
289
|
+
### Return type
|
|
290
|
+
|
|
291
|
+
**Object**
|
|
292
|
+
|
|
293
|
+
### Authorization
|
|
294
|
+
|
|
295
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
296
|
+
|
|
297
|
+
### HTTP request headers
|
|
298
|
+
|
|
299
|
+
- **Content-Type**: Not defined
|
|
300
|
+
- **Accept**: application/json
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
## realtor_realtor_scraper_health_check_head
|
|
304
|
+
|
|
305
|
+
> Object realtor_realtor_scraper_health_check_head
|
|
306
|
+
|
|
307
|
+
Realtor scraper health check
|
|
308
|
+
|
|
309
|
+
Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
|
|
310
|
+
|
|
311
|
+
### Examples
|
|
312
|
+
|
|
313
|
+
```ruby
|
|
314
|
+
require 'time'
|
|
315
|
+
require 'scrapebadger'
|
|
316
|
+
# setup authorization
|
|
317
|
+
ScrapeBadger.configure do |config|
|
|
318
|
+
# Configure API key authorization: ApiKeyAuth
|
|
319
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
320
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
321
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
325
|
+
|
|
326
|
+
begin
|
|
327
|
+
# Realtor scraper health check
|
|
328
|
+
result = api_instance.realtor_realtor_scraper_health_check_head
|
|
329
|
+
p result
|
|
330
|
+
rescue ScrapeBadger::ApiError => e
|
|
331
|
+
puts "Error when calling RealtorApi->realtor_realtor_scraper_health_check_head: #{e}"
|
|
332
|
+
end
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
#### Using the realtor_realtor_scraper_health_check_head_with_http_info variant
|
|
336
|
+
|
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
|
338
|
+
|
|
339
|
+
> <Array(Object, Integer, Hash)> realtor_realtor_scraper_health_check_head_with_http_info
|
|
340
|
+
|
|
341
|
+
```ruby
|
|
342
|
+
begin
|
|
343
|
+
# Realtor scraper health check
|
|
344
|
+
data, status_code, headers = api_instance.realtor_realtor_scraper_health_check_head_with_http_info
|
|
345
|
+
p status_code # => 2xx
|
|
346
|
+
p headers # => { ... }
|
|
347
|
+
p data # => Object
|
|
348
|
+
rescue ScrapeBadger::ApiError => e
|
|
349
|
+
puts "Error when calling RealtorApi->realtor_realtor_scraper_health_check_head_with_http_info: #{e}"
|
|
350
|
+
end
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
This endpoint does not need any parameter.
|
|
356
|
+
|
|
357
|
+
### Return type
|
|
358
|
+
|
|
359
|
+
**Object**
|
|
360
|
+
|
|
361
|
+
### Authorization
|
|
362
|
+
|
|
363
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
364
|
+
|
|
365
|
+
### HTTP request headers
|
|
366
|
+
|
|
367
|
+
- **Content-Type**: Not defined
|
|
368
|
+
- **Accept**: application/json
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
## realtor_search_property_listings
|
|
372
|
+
|
|
373
|
+
> Object realtor_search_property_listings(opts)
|
|
374
|
+
|
|
375
|
+
Search property listings
|
|
376
|
+
|
|
377
|
+
Search for-sale/for-rent/sold listings with rich filters.
|
|
378
|
+
|
|
379
|
+
### Examples
|
|
380
|
+
|
|
381
|
+
```ruby
|
|
382
|
+
require 'time'
|
|
383
|
+
require 'scrapebadger'
|
|
384
|
+
# setup authorization
|
|
385
|
+
ScrapeBadger.configure do |config|
|
|
386
|
+
# Configure API key authorization: ApiKeyAuth
|
|
387
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
388
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
389
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
api_instance = ScrapeBadger::RealtorApi.new
|
|
393
|
+
opts = {
|
|
394
|
+
location: 'location_example', # String | 'Austin, TX', a ZIP, 'Toronto, ON'…
|
|
395
|
+
market: 'market_example', # String | us (realtor.com) | ca (realtor.ca)
|
|
396
|
+
status: 'status_example', # String | for_sale | for_rent | sold | pending
|
|
397
|
+
price_min: 8.14, # Float |
|
|
398
|
+
price_max: 8.14, # Float |
|
|
399
|
+
beds_min: 56, # Integer |
|
|
400
|
+
baths_min: 56, # Integer |
|
|
401
|
+
sqft_min: 56, # Integer | US only
|
|
402
|
+
sqft_max: 56, # Integer | US only
|
|
403
|
+
property_type: 'property_type_example', # String | US only, CSV of property types
|
|
404
|
+
sort: 'sort_example', # String | relevant | newest | price_low | price_high | photo_count
|
|
405
|
+
page: 56, # Integer |
|
|
406
|
+
limit: 56, # Integer |
|
|
407
|
+
lat_min: 8.14, # Float | CA bbox south
|
|
408
|
+
lat_max: 8.14, # Float | CA bbox north
|
|
409
|
+
lng_min: 8.14, # Float | CA bbox west
|
|
410
|
+
lng_max: 8.14 # Float | CA bbox east
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
begin
|
|
414
|
+
# Search property listings
|
|
415
|
+
result = api_instance.realtor_search_property_listings(opts)
|
|
416
|
+
p result
|
|
417
|
+
rescue ScrapeBadger::ApiError => e
|
|
418
|
+
puts "Error when calling RealtorApi->realtor_search_property_listings: #{e}"
|
|
419
|
+
end
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
#### Using the realtor_search_property_listings_with_http_info variant
|
|
423
|
+
|
|
424
|
+
This returns an Array which contains the response data, status code and headers.
|
|
425
|
+
|
|
426
|
+
> <Array(Object, Integer, Hash)> realtor_search_property_listings_with_http_info(opts)
|
|
427
|
+
|
|
428
|
+
```ruby
|
|
429
|
+
begin
|
|
430
|
+
# Search property listings
|
|
431
|
+
data, status_code, headers = api_instance.realtor_search_property_listings_with_http_info(opts)
|
|
432
|
+
p status_code # => 2xx
|
|
433
|
+
p headers # => { ... }
|
|
434
|
+
p data # => Object
|
|
435
|
+
rescue ScrapeBadger::ApiError => e
|
|
436
|
+
puts "Error when calling RealtorApi->realtor_search_property_listings_with_http_info: #{e}"
|
|
437
|
+
end
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Parameters
|
|
441
|
+
|
|
442
|
+
| Name | Type | Description | Notes |
|
|
443
|
+
| ---- | ---- | ----------- | ----- |
|
|
444
|
+
| **location** | **String** | 'Austin, TX', a ZIP, 'Toronto, ON'… | [optional] |
|
|
445
|
+
| **market** | **String** | us (realtor.com) | ca (realtor.ca) | [optional][default to 'us'] |
|
|
446
|
+
| **status** | **String** | for_sale | for_rent | sold | pending | [optional][default to 'for_sale'] |
|
|
447
|
+
| **price_min** | **Float** | | [optional] |
|
|
448
|
+
| **price_max** | **Float** | | [optional] |
|
|
449
|
+
| **beds_min** | **Integer** | | [optional] |
|
|
450
|
+
| **baths_min** | **Integer** | | [optional] |
|
|
451
|
+
| **sqft_min** | **Integer** | US only | [optional] |
|
|
452
|
+
| **sqft_max** | **Integer** | US only | [optional] |
|
|
453
|
+
| **property_type** | **String** | US only, CSV of property types | [optional] |
|
|
454
|
+
| **sort** | **String** | relevant | newest | price_low | price_high | photo_count | [optional][default to 'relevant'] |
|
|
455
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
456
|
+
| **limit** | **Integer** | | [optional] |
|
|
457
|
+
| **lat_min** | **Float** | CA bbox south | [optional] |
|
|
458
|
+
| **lat_max** | **Float** | CA bbox north | [optional] |
|
|
459
|
+
| **lng_min** | **Float** | CA bbox west | [optional] |
|
|
460
|
+
| **lng_max** | **Float** | CA bbox east | [optional] |
|
|
461
|
+
|
|
462
|
+
### Return type
|
|
463
|
+
|
|
464
|
+
**Object**
|
|
465
|
+
|
|
466
|
+
### Authorization
|
|
467
|
+
|
|
468
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
469
|
+
|
|
470
|
+
### HTTP request headers
|
|
471
|
+
|
|
472
|
+
- **Content-Type**: Not defined
|
|
473
|
+
- **Accept**: application/json
|
|
474
|
+
|