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,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. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. | [optional] |
77
+ | **web_search** | **String** | auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. | [optional][default to &#39;auto&#39;] |
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 &#39;force&#39;] |
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
+