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/ChatGPTApi.md
ADDED
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
# ScrapeBadger::ChatGPTApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**chatgpt_ask_chatgpt_a_question**](ChatGPTApi.md#chatgpt_ask_chatgpt_a_question) | **GET** /v1/chatgpt/ask | Ask ChatGPT a question |
|
|
8
|
+
| [**chatgpt_ask_chatgpt_a_question_post**](ChatGPTApi.md#chatgpt_ask_chatgpt_a_question_post) | **POST** /v1/chatgpt/ask | Ask ChatGPT a question (POST) |
|
|
9
|
+
| [**chatgpt_chatgpt_scraper_health_check**](ChatGPTApi.md#chatgpt_chatgpt_scraper_health_check) | **GET** /v1/chatgpt/health | ChatGPT scraper health check |
|
|
10
|
+
| [**chatgpt_chatgpt_scraper_health_check_head**](ChatGPTApi.md#chatgpt_chatgpt_scraper_health_check_head) | **HEAD** /v1/chatgpt/health | ChatGPT scraper health check |
|
|
11
|
+
| [**chatgpt_list_chatgpt_models**](ChatGPTApi.md#chatgpt_list_chatgpt_models) | **GET** /v1/chatgpt/models | List ChatGPT models |
|
|
12
|
+
| [**chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer**](ChatGPTApi.md#chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer) | **GET** /v1/chatgpt/brand-visibility | Measure a brand's visibility in a ChatGPT answer |
|
|
13
|
+
| [**chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post**](ChatGPTApi.md#chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post) | **POST** /v1/chatgpt/brand-visibility | Measure a brand's visibility in a ChatGPT answer (POST) |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## chatgpt_ask_chatgpt_a_question
|
|
17
|
+
|
|
18
|
+
> Object chatgpt_ask_chatgpt_a_question(prompt, opts)
|
|
19
|
+
|
|
20
|
+
Ask ChatGPT a question
|
|
21
|
+
|
|
22
|
+
Send a prompt to ChatGPT and get the answer plus the web sources it cited.
|
|
23
|
+
|
|
24
|
+
### Examples
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'time'
|
|
28
|
+
require 'scrapebadger'
|
|
29
|
+
# setup authorization
|
|
30
|
+
ScrapeBadger.configure do |config|
|
|
31
|
+
# Configure API key authorization: ApiKeyAuth
|
|
32
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
33
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
34
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
api_instance = ScrapeBadger::ChatGPTApi.new
|
|
38
|
+
prompt = 'prompt_example' # String | The prompt to send to ChatGPT (max 4096 characters).
|
|
39
|
+
opts = {
|
|
40
|
+
country: 'country_example', # String | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'.
|
|
41
|
+
web_search: 'web_search_example' # String | auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened.
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
# Ask ChatGPT a question
|
|
46
|
+
result = api_instance.chatgpt_ask_chatgpt_a_question(prompt, opts)
|
|
47
|
+
p result
|
|
48
|
+
rescue ScrapeBadger::ApiError => e
|
|
49
|
+
puts "Error when calling ChatGPTApi->chatgpt_ask_chatgpt_a_question: #{e}"
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Using the chatgpt_ask_chatgpt_a_question_with_http_info variant
|
|
54
|
+
|
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
|
56
|
+
|
|
57
|
+
> <Array(Object, Integer, Hash)> chatgpt_ask_chatgpt_a_question_with_http_info(prompt, opts)
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
begin
|
|
61
|
+
# Ask ChatGPT a question
|
|
62
|
+
data, status_code, headers = api_instance.chatgpt_ask_chatgpt_a_question_with_http_info(prompt, opts)
|
|
63
|
+
p status_code # => 2xx
|
|
64
|
+
p headers # => { ... }
|
|
65
|
+
p data # => Object
|
|
66
|
+
rescue ScrapeBadger::ApiError => e
|
|
67
|
+
puts "Error when calling ChatGPTApi->chatgpt_ask_chatgpt_a_question_with_http_info: #{e}"
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Type | Description | Notes |
|
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
|
75
|
+
| **prompt** | **String** | The prompt to send to ChatGPT (max 4096 characters). | |
|
|
76
|
+
| **country** | **String** | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. | [optional] |
|
|
77
|
+
| **web_search** | **String** | auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. | [optional][default to 'auto'] |
|
|
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
|
+
## chatgpt_ask_chatgpt_a_question_post
|
|
94
|
+
|
|
95
|
+
> Object chatgpt_ask_chatgpt_a_question_post
|
|
96
|
+
|
|
97
|
+
Ask ChatGPT a question (POST)
|
|
98
|
+
|
|
99
|
+
POST form of `/ask`, for prompts too long for a query string.
|
|
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::ChatGPTApi.new
|
|
115
|
+
|
|
116
|
+
begin
|
|
117
|
+
# Ask ChatGPT a question (POST)
|
|
118
|
+
result = api_instance.chatgpt_ask_chatgpt_a_question_post
|
|
119
|
+
p result
|
|
120
|
+
rescue ScrapeBadger::ApiError => e
|
|
121
|
+
puts "Error when calling ChatGPTApi->chatgpt_ask_chatgpt_a_question_post: #{e}"
|
|
122
|
+
end
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
#### Using the chatgpt_ask_chatgpt_a_question_post_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)> chatgpt_ask_chatgpt_a_question_post_with_http_info
|
|
130
|
+
|
|
131
|
+
```ruby
|
|
132
|
+
begin
|
|
133
|
+
# Ask ChatGPT a question (POST)
|
|
134
|
+
data, status_code, headers = api_instance.chatgpt_ask_chatgpt_a_question_post_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 ChatGPTApi->chatgpt_ask_chatgpt_a_question_post_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
|
+
## chatgpt_chatgpt_scraper_health_check
|
|
162
|
+
|
|
163
|
+
> Object chatgpt_chatgpt_scraper_health_check
|
|
164
|
+
|
|
165
|
+
ChatGPT scraper health check
|
|
166
|
+
|
|
167
|
+
Check health of the ChatGPT scraper service (accepts HEAD).
|
|
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::ChatGPTApi.new
|
|
183
|
+
|
|
184
|
+
begin
|
|
185
|
+
# ChatGPT scraper health check
|
|
186
|
+
result = api_instance.chatgpt_chatgpt_scraper_health_check
|
|
187
|
+
p result
|
|
188
|
+
rescue ScrapeBadger::ApiError => e
|
|
189
|
+
puts "Error when calling ChatGPTApi->chatgpt_chatgpt_scraper_health_check: #{e}"
|
|
190
|
+
end
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
#### Using the chatgpt_chatgpt_scraper_health_check_with_http_info variant
|
|
194
|
+
|
|
195
|
+
This returns an Array which contains the response data, status code and headers.
|
|
196
|
+
|
|
197
|
+
> <Array(Object, Integer, Hash)> chatgpt_chatgpt_scraper_health_check_with_http_info
|
|
198
|
+
|
|
199
|
+
```ruby
|
|
200
|
+
begin
|
|
201
|
+
# ChatGPT scraper health check
|
|
202
|
+
data, status_code, headers = api_instance.chatgpt_chatgpt_scraper_health_check_with_http_info
|
|
203
|
+
p status_code # => 2xx
|
|
204
|
+
p headers # => { ... }
|
|
205
|
+
p data # => Object
|
|
206
|
+
rescue ScrapeBadger::ApiError => e
|
|
207
|
+
puts "Error when calling ChatGPTApi->chatgpt_chatgpt_scraper_health_check_with_http_info: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
This endpoint does not need any parameter.
|
|
214
|
+
|
|
215
|
+
### Return type
|
|
216
|
+
|
|
217
|
+
**Object**
|
|
218
|
+
|
|
219
|
+
### Authorization
|
|
220
|
+
|
|
221
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
222
|
+
|
|
223
|
+
### HTTP request headers
|
|
224
|
+
|
|
225
|
+
- **Content-Type**: Not defined
|
|
226
|
+
- **Accept**: application/json
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
## chatgpt_chatgpt_scraper_health_check_head
|
|
230
|
+
|
|
231
|
+
> Object chatgpt_chatgpt_scraper_health_check_head
|
|
232
|
+
|
|
233
|
+
ChatGPT scraper health check
|
|
234
|
+
|
|
235
|
+
Check health of the ChatGPT scraper service (accepts HEAD).
|
|
236
|
+
|
|
237
|
+
### Examples
|
|
238
|
+
|
|
239
|
+
```ruby
|
|
240
|
+
require 'time'
|
|
241
|
+
require 'scrapebadger'
|
|
242
|
+
# setup authorization
|
|
243
|
+
ScrapeBadger.configure do |config|
|
|
244
|
+
# Configure API key authorization: ApiKeyAuth
|
|
245
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
246
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
247
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
api_instance = ScrapeBadger::ChatGPTApi.new
|
|
251
|
+
|
|
252
|
+
begin
|
|
253
|
+
# ChatGPT scraper health check
|
|
254
|
+
result = api_instance.chatgpt_chatgpt_scraper_health_check_head
|
|
255
|
+
p result
|
|
256
|
+
rescue ScrapeBadger::ApiError => e
|
|
257
|
+
puts "Error when calling ChatGPTApi->chatgpt_chatgpt_scraper_health_check_head: #{e}"
|
|
258
|
+
end
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
#### Using the chatgpt_chatgpt_scraper_health_check_head_with_http_info variant
|
|
262
|
+
|
|
263
|
+
This returns an Array which contains the response data, status code and headers.
|
|
264
|
+
|
|
265
|
+
> <Array(Object, Integer, Hash)> chatgpt_chatgpt_scraper_health_check_head_with_http_info
|
|
266
|
+
|
|
267
|
+
```ruby
|
|
268
|
+
begin
|
|
269
|
+
# ChatGPT scraper health check
|
|
270
|
+
data, status_code, headers = api_instance.chatgpt_chatgpt_scraper_health_check_head_with_http_info
|
|
271
|
+
p status_code # => 2xx
|
|
272
|
+
p headers # => { ... }
|
|
273
|
+
p data # => Object
|
|
274
|
+
rescue ScrapeBadger::ApiError => e
|
|
275
|
+
puts "Error when calling ChatGPTApi->chatgpt_chatgpt_scraper_health_check_head_with_http_info: #{e}"
|
|
276
|
+
end
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Parameters
|
|
280
|
+
|
|
281
|
+
This endpoint does not need any parameter.
|
|
282
|
+
|
|
283
|
+
### Return type
|
|
284
|
+
|
|
285
|
+
**Object**
|
|
286
|
+
|
|
287
|
+
### Authorization
|
|
288
|
+
|
|
289
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
290
|
+
|
|
291
|
+
### HTTP request headers
|
|
292
|
+
|
|
293
|
+
- **Content-Type**: Not defined
|
|
294
|
+
- **Accept**: application/json
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
## chatgpt_list_chatgpt_models
|
|
298
|
+
|
|
299
|
+
> Object chatgpt_list_chatgpt_models(opts)
|
|
300
|
+
|
|
301
|
+
List ChatGPT models
|
|
302
|
+
|
|
303
|
+
Models chatgpt.com currently serves to an anonymous visitor.
|
|
304
|
+
|
|
305
|
+
### Examples
|
|
306
|
+
|
|
307
|
+
```ruby
|
|
308
|
+
require 'time'
|
|
309
|
+
require 'scrapebadger'
|
|
310
|
+
# setup authorization
|
|
311
|
+
ScrapeBadger.configure do |config|
|
|
312
|
+
# Configure API key authorization: ApiKeyAuth
|
|
313
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
314
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
315
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
api_instance = ScrapeBadger::ChatGPTApi.new
|
|
319
|
+
opts = {
|
|
320
|
+
country: 'country_example' # String | ISO-3166 alpha-2 egress country.
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
begin
|
|
324
|
+
# List ChatGPT models
|
|
325
|
+
result = api_instance.chatgpt_list_chatgpt_models(opts)
|
|
326
|
+
p result
|
|
327
|
+
rescue ScrapeBadger::ApiError => e
|
|
328
|
+
puts "Error when calling ChatGPTApi->chatgpt_list_chatgpt_models: #{e}"
|
|
329
|
+
end
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
#### Using the chatgpt_list_chatgpt_models_with_http_info variant
|
|
333
|
+
|
|
334
|
+
This returns an Array which contains the response data, status code and headers.
|
|
335
|
+
|
|
336
|
+
> <Array(Object, Integer, Hash)> chatgpt_list_chatgpt_models_with_http_info(opts)
|
|
337
|
+
|
|
338
|
+
```ruby
|
|
339
|
+
begin
|
|
340
|
+
# List ChatGPT models
|
|
341
|
+
data, status_code, headers = api_instance.chatgpt_list_chatgpt_models_with_http_info(opts)
|
|
342
|
+
p status_code # => 2xx
|
|
343
|
+
p headers # => { ... }
|
|
344
|
+
p data # => Object
|
|
345
|
+
rescue ScrapeBadger::ApiError => e
|
|
346
|
+
puts "Error when calling ChatGPTApi->chatgpt_list_chatgpt_models_with_http_info: #{e}"
|
|
347
|
+
end
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### Parameters
|
|
351
|
+
|
|
352
|
+
| Name | Type | Description | Notes |
|
|
353
|
+
| ---- | ---- | ----------- | ----- |
|
|
354
|
+
| **country** | **String** | ISO-3166 alpha-2 egress country. | [optional] |
|
|
355
|
+
|
|
356
|
+
### Return type
|
|
357
|
+
|
|
358
|
+
**Object**
|
|
359
|
+
|
|
360
|
+
### Authorization
|
|
361
|
+
|
|
362
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
363
|
+
|
|
364
|
+
### HTTP request headers
|
|
365
|
+
|
|
366
|
+
- **Content-Type**: Not defined
|
|
367
|
+
- **Accept**: application/json
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
## chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer
|
|
371
|
+
|
|
372
|
+
> Object chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer(prompt, brand, opts)
|
|
373
|
+
|
|
374
|
+
Measure a brand's visibility in a ChatGPT answer
|
|
375
|
+
|
|
376
|
+
Ask ChatGPT, then report whether the brand is mentioned, cited and how prominently.
|
|
377
|
+
|
|
378
|
+
### Examples
|
|
379
|
+
|
|
380
|
+
```ruby
|
|
381
|
+
require 'time'
|
|
382
|
+
require 'scrapebadger'
|
|
383
|
+
# setup authorization
|
|
384
|
+
ScrapeBadger.configure do |config|
|
|
385
|
+
# Configure API key authorization: ApiKeyAuth
|
|
386
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
387
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
388
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
api_instance = ScrapeBadger::ChatGPTApi.new
|
|
392
|
+
prompt = 'prompt_example' # String | The prompt to ask ChatGPT.
|
|
393
|
+
brand = 'brand_example' # String | Brand name to look for in the answer.
|
|
394
|
+
opts = {
|
|
395
|
+
domain: 'domain_example', # String | Brand domain, for citation matching.
|
|
396
|
+
aliases: 'aliases_example', # String | Comma-separated alternative names.
|
|
397
|
+
competitors: 'competitors_example', # String | Comma-separated competitor names.
|
|
398
|
+
country: 'country_example', # String | ISO-3166 alpha-2 egress country.
|
|
399
|
+
web_search: 'web_search_example' # String | auto | force | off
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
begin
|
|
403
|
+
# Measure a brand's visibility in a ChatGPT answer
|
|
404
|
+
result = api_instance.chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer(prompt, brand, opts)
|
|
405
|
+
p result
|
|
406
|
+
rescue ScrapeBadger::ApiError => e
|
|
407
|
+
puts "Error when calling ChatGPTApi->chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer: #{e}"
|
|
408
|
+
end
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
#### Using the chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_with_http_info variant
|
|
412
|
+
|
|
413
|
+
This returns an Array which contains the response data, status code and headers.
|
|
414
|
+
|
|
415
|
+
> <Array(Object, Integer, Hash)> chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_with_http_info(prompt, brand, opts)
|
|
416
|
+
|
|
417
|
+
```ruby
|
|
418
|
+
begin
|
|
419
|
+
# Measure a brand's visibility in a ChatGPT answer
|
|
420
|
+
data, status_code, headers = api_instance.chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_with_http_info(prompt, brand, opts)
|
|
421
|
+
p status_code # => 2xx
|
|
422
|
+
p headers # => { ... }
|
|
423
|
+
p data # => Object
|
|
424
|
+
rescue ScrapeBadger::ApiError => e
|
|
425
|
+
puts "Error when calling ChatGPTApi->chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_with_http_info: #{e}"
|
|
426
|
+
end
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
### Parameters
|
|
430
|
+
|
|
431
|
+
| Name | Type | Description | Notes |
|
|
432
|
+
| ---- | ---- | ----------- | ----- |
|
|
433
|
+
| **prompt** | **String** | The prompt to ask ChatGPT. | |
|
|
434
|
+
| **brand** | **String** | Brand name to look for in the answer. | |
|
|
435
|
+
| **domain** | **String** | Brand domain, for citation matching. | [optional] |
|
|
436
|
+
| **aliases** | **String** | Comma-separated alternative names. | [optional] |
|
|
437
|
+
| **competitors** | **String** | Comma-separated competitor names. | [optional] |
|
|
438
|
+
| **country** | **String** | ISO-3166 alpha-2 egress country. | [optional] |
|
|
439
|
+
| **web_search** | **String** | auto | force | off | [optional][default to 'force'] |
|
|
440
|
+
|
|
441
|
+
### Return type
|
|
442
|
+
|
|
443
|
+
**Object**
|
|
444
|
+
|
|
445
|
+
### Authorization
|
|
446
|
+
|
|
447
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
448
|
+
|
|
449
|
+
### HTTP request headers
|
|
450
|
+
|
|
451
|
+
- **Content-Type**: Not defined
|
|
452
|
+
- **Accept**: application/json
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
## chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post
|
|
456
|
+
|
|
457
|
+
> Object chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post
|
|
458
|
+
|
|
459
|
+
Measure a brand's visibility in a ChatGPT answer (POST)
|
|
460
|
+
|
|
461
|
+
POST form, for longer prompts and larger competitor sets.
|
|
462
|
+
|
|
463
|
+
### Examples
|
|
464
|
+
|
|
465
|
+
```ruby
|
|
466
|
+
require 'time'
|
|
467
|
+
require 'scrapebadger'
|
|
468
|
+
# setup authorization
|
|
469
|
+
ScrapeBadger.configure do |config|
|
|
470
|
+
# Configure API key authorization: ApiKeyAuth
|
|
471
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
472
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
473
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
api_instance = ScrapeBadger::ChatGPTApi.new
|
|
477
|
+
|
|
478
|
+
begin
|
|
479
|
+
# Measure a brand's visibility in a ChatGPT answer (POST)
|
|
480
|
+
result = api_instance.chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post
|
|
481
|
+
p result
|
|
482
|
+
rescue ScrapeBadger::ApiError => e
|
|
483
|
+
puts "Error when calling ChatGPTApi->chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post: #{e}"
|
|
484
|
+
end
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
#### Using the chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post_with_http_info variant
|
|
488
|
+
|
|
489
|
+
This returns an Array which contains the response data, status code and headers.
|
|
490
|
+
|
|
491
|
+
> <Array(Object, Integer, Hash)> chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post_with_http_info
|
|
492
|
+
|
|
493
|
+
```ruby
|
|
494
|
+
begin
|
|
495
|
+
# Measure a brand's visibility in a ChatGPT answer (POST)
|
|
496
|
+
data, status_code, headers = api_instance.chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post_with_http_info
|
|
497
|
+
p status_code # => 2xx
|
|
498
|
+
p headers # => { ... }
|
|
499
|
+
p data # => Object
|
|
500
|
+
rescue ScrapeBadger::ApiError => e
|
|
501
|
+
puts "Error when calling ChatGPTApi->chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post_with_http_info: #{e}"
|
|
502
|
+
end
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Parameters
|
|
506
|
+
|
|
507
|
+
This endpoint does not need any parameter.
|
|
508
|
+
|
|
509
|
+
### Return type
|
|
510
|
+
|
|
511
|
+
**Object**
|
|
512
|
+
|
|
513
|
+
### Authorization
|
|
514
|
+
|
|
515
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
516
|
+
|
|
517
|
+
### HTTP request headers
|
|
518
|
+
|
|
519
|
+
- **Content-Type**: Not defined
|
|
520
|
+
- **Accept**: application/json
|
|
521
|
+
|