@algolia/n8n-nodes-algolia 0.7.0 → 0.8.1
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.
- package/README.md +74 -13
- package/dist/credentials/AlgoliaApi.credentials.js +1 -41
- package/dist/nodes/Algolia/Algolia.node.js +852 -17921
- package/package.json +10 -11
- package/dist/nodes/Algolia/specs/abtesting-v3.json +0 -1589
- package/dist/nodes/Algolia/specs/abtesting.json +0 -1493
- package/dist/nodes/Algolia/specs/advanced-personalization.json +0 -1493
- package/dist/nodes/Algolia/specs/analytics.json +0 -2879
- package/dist/nodes/Algolia/specs/composition.json +0 -3714
- package/dist/nodes/Algolia/specs/crawler.json +0 -2999
- package/dist/nodes/Algolia/specs/ingestion.json +0 -5621
- package/dist/nodes/Algolia/specs/insights.json +0 -1677
- package/dist/nodes/Algolia/specs/monitoring.json +0 -1223
- package/dist/nodes/Algolia/specs/personalization.json +0 -666
- package/dist/nodes/Algolia/specs/query-suggestions.json +0 -1090
- package/dist/nodes/Algolia/specs/recommend.json +0 -3212
- package/dist/nodes/Algolia/specs/search.json +0 -8489
- /package/dist/{nodes/Algolia/algolia.svg → algolia.svg} +0 -0
|
@@ -1,2879 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"openapi": "3.0.2",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "Analytics API",
|
|
5
|
-
"description": "The Analytics API gives you access to metrics related to your Algolia search experience.\n\n## Base URLs\n\nThe base URLs for requests to the Analytics API are:\n\n- `https://analytics.us.algolia.com`\n- `https://analytics.de.algolia.com`\n- `https://analytics.algolia.com` (alias of `analytics.us.algolia.com`)\n\nUse the URL that matches your [analytics region](https://dashboard.algolia.com/account/infrastructure/analytics).\n\n**All requests must use HTTPS.**\n\n## Availability and authentication\n\nAccess to the Analytics API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing).\n\nTo authenticate your API requests, add these headers:\n\n- `x-algolia-application-id`. Your Algolia application ID.\n- `x-algolia-api-key`. An API key with the necessary permissions to make the request.\n The required access control list (ACL) to make a request is listed in each endpoint's reference.\n\nYou can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account).\n\n## Rate limits\n\nYou can make up to **100 requests per minute per app** to the Analytics API.\nThe response includes headers with information about the limits.\n\n## Parameters\n\nQuery parameters must be [URL-encoded](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding).\nNon-ASCII characters must be UTF-8 encoded.\nPlus characters (`+`) are interpreted as spaces.\n\n## Response status and errors\n\nThe Analytics API returns JSON responses.\nSince JSON doesn't guarantee any specific ordering, don't rely on the order of attributes in the API response.\n\n- Successful responses return a `2xx` status\n- Client errors return a `4xx` status\n- Server errors are indicated by a `5xx` status.\n\nError responses have a `message` property with more information.\n\n## Version\n\nThe current version of the Analytics API is version 2, as indicated by the `/2/` in each endpoint's URL.\n\n## Query aggregation\n\nAlgolia accepts queries on each keystroke.\nTo ensure you have relevant analytics data, however, the series of keystrokes is aggregated to keep only the latest (final) user query.\nThis is called \"prefix\" aggregation.\n\nFor more information, see [Query agggregation and processing](https://www.algolia.com/doc/guides/search-analytics/concepts/query-aggregation).\n\nSee the analytics implementation overview for more information about query aggregation.\n",
|
|
6
|
-
"version": "2.0.0"
|
|
7
|
-
},
|
|
8
|
-
"servers": [
|
|
9
|
-
{
|
|
10
|
-
"url": "https://analytics.{region}.algolia.com",
|
|
11
|
-
"variables": {
|
|
12
|
-
"region": {
|
|
13
|
-
"description": "The region where your Algolia application is hosted.",
|
|
14
|
-
"enum": ["us", "de"],
|
|
15
|
-
"default": "us"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"url": "https://analytics.algolia.com"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"security": [
|
|
24
|
-
{
|
|
25
|
-
"applicationId": [],
|
|
26
|
-
"apiKey": []
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"tags": [
|
|
30
|
-
{
|
|
31
|
-
"name": "click",
|
|
32
|
-
"x-displayName": "Clicks",
|
|
33
|
-
"description": "Metrics related to click and conversion events,\nsuch as click and conversion rates for your search results.\n"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "filter",
|
|
37
|
-
"x-displayName": "Filters",
|
|
38
|
-
"description": "Metrics related to filters.\n"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "revenue",
|
|
42
|
-
"x-displayName": "Revenue",
|
|
43
|
-
"description": "Metrics related to revenue.\n"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "search",
|
|
47
|
-
"x-displayName": "Searches",
|
|
48
|
-
"description": "Metrics related to searches and search results,\nsuch as the no-results rate or the most frequent search queries.\n"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "status",
|
|
52
|
-
"x-displayName": "Status",
|
|
53
|
-
"description": "Check the status of the Analytics API."
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "user",
|
|
57
|
-
"x-displayName": "Users",
|
|
58
|
-
"description": "Metrics related to the users of your search."
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"externalDocs": {
|
|
62
|
-
"url": "https://www.algolia.com/doc/guides/search-analytics/overview",
|
|
63
|
-
"description": "Search analytics."
|
|
64
|
-
},
|
|
65
|
-
"paths": {
|
|
66
|
-
"/{path}": {
|
|
67
|
-
"get": {
|
|
68
|
-
"operationId": "customGet",
|
|
69
|
-
"summary": "Send requests to the Algolia REST API",
|
|
70
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
71
|
-
"parameters": [
|
|
72
|
-
{
|
|
73
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"$ref": "#/components/parameters/Parameters"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"responses": {
|
|
80
|
-
"200": {
|
|
81
|
-
"description": "OK",
|
|
82
|
-
"content": {
|
|
83
|
-
"application/json": {
|
|
84
|
-
"schema": {
|
|
85
|
-
"type": "object"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"400": {
|
|
91
|
-
"$ref": "#/components/responses/BadRequest"
|
|
92
|
-
},
|
|
93
|
-
"402": {
|
|
94
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
95
|
-
},
|
|
96
|
-
"403": {
|
|
97
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
98
|
-
},
|
|
99
|
-
"404": {
|
|
100
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"post": {
|
|
105
|
-
"operationId": "customPost",
|
|
106
|
-
"requestBody": {
|
|
107
|
-
"description": "Parameters to send with the custom request.",
|
|
108
|
-
"content": {
|
|
109
|
-
"application/json": {
|
|
110
|
-
"schema": {
|
|
111
|
-
"type": "object"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"summary": "Send requests to the Algolia REST API",
|
|
117
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
118
|
-
"parameters": [
|
|
119
|
-
{
|
|
120
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"$ref": "#/components/parameters/Parameters"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"responses": {
|
|
127
|
-
"200": {
|
|
128
|
-
"description": "OK",
|
|
129
|
-
"content": {
|
|
130
|
-
"application/json": {
|
|
131
|
-
"schema": {
|
|
132
|
-
"type": "object"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"400": {
|
|
138
|
-
"$ref": "#/components/responses/BadRequest"
|
|
139
|
-
},
|
|
140
|
-
"402": {
|
|
141
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
142
|
-
},
|
|
143
|
-
"403": {
|
|
144
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
145
|
-
},
|
|
146
|
-
"404": {
|
|
147
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"put": {
|
|
152
|
-
"operationId": "customPut",
|
|
153
|
-
"requestBody": {
|
|
154
|
-
"description": "Parameters to send with the custom request.",
|
|
155
|
-
"content": {
|
|
156
|
-
"application/json": {
|
|
157
|
-
"schema": {
|
|
158
|
-
"type": "object"
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"summary": "Send requests to the Algolia REST API",
|
|
164
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
165
|
-
"parameters": [
|
|
166
|
-
{
|
|
167
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"$ref": "#/components/parameters/Parameters"
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"responses": {
|
|
174
|
-
"200": {
|
|
175
|
-
"description": "OK",
|
|
176
|
-
"content": {
|
|
177
|
-
"application/json": {
|
|
178
|
-
"schema": {
|
|
179
|
-
"type": "object"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"400": {
|
|
185
|
-
"$ref": "#/components/responses/BadRequest"
|
|
186
|
-
},
|
|
187
|
-
"402": {
|
|
188
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
189
|
-
},
|
|
190
|
-
"403": {
|
|
191
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
192
|
-
},
|
|
193
|
-
"404": {
|
|
194
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"delete": {
|
|
199
|
-
"operationId": "customDelete",
|
|
200
|
-
"summary": "Send requests to the Algolia REST API",
|
|
201
|
-
"description": "This method lets you send requests to the Algolia REST API.",
|
|
202
|
-
"parameters": [
|
|
203
|
-
{
|
|
204
|
-
"$ref": "#/components/parameters/PathInPath"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"$ref": "#/components/parameters/Parameters"
|
|
208
|
-
}
|
|
209
|
-
],
|
|
210
|
-
"responses": {
|
|
211
|
-
"200": {
|
|
212
|
-
"description": "OK",
|
|
213
|
-
"content": {
|
|
214
|
-
"application/json": {
|
|
215
|
-
"schema": {
|
|
216
|
-
"type": "object"
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
"400": {
|
|
222
|
-
"$ref": "#/components/responses/BadRequest"
|
|
223
|
-
},
|
|
224
|
-
"402": {
|
|
225
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
226
|
-
},
|
|
227
|
-
"403": {
|
|
228
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
229
|
-
},
|
|
230
|
-
"404": {
|
|
231
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"/2/searches": {
|
|
237
|
-
"get": {
|
|
238
|
-
"tags": ["search"],
|
|
239
|
-
"operationId": "getTopSearches",
|
|
240
|
-
"x-mcp-tool": true,
|
|
241
|
-
"x-acl": ["analytics"],
|
|
242
|
-
"summary": "Retrieve top searches",
|
|
243
|
-
"description": "Returns the most popular searches. For each search, it also includes the average number of hits.\n\nIf you set the `clickAnalytics` query parameter to `true`, the response also includes\n\n- Tracked searches count. Tracked searches are Search API requests with the `clickAnalytics` parameter set to `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.\n- Click count\n- Click-through rate (CTR)\n- Conversion count\n- Conversion rate (CR)\n- Average click position\n\nIf you set the `revenueAnalytics` query parameter to `true`, the response also includes:\n\n- Add-to-cart count\n- Add-to-cart rate (ATCR)\n- Purchase count\n- Purchase rate\n- Revenue details for each currency\n\n**There's a difference between 0% rates and null rates:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, the rates (CTR, CR, ATCR, purchase rate) are null.\n- **0% rates** mean there _were_ queries but no [click or conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
244
|
-
"parameters": [
|
|
245
|
-
{
|
|
246
|
-
"$ref": "#/components/parameters/Index"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"$ref": "#/components/parameters/ClickAnalytics"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"$ref": "#/components/parameters/RevenueAnalytics"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"$ref": "#/components/parameters/StartDate"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"$ref": "#/components/parameters/EndDate"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"$ref": "#/components/parameters/OrderBy"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"$ref": "#/components/parameters/Direction"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"$ref": "#/components/parameters/Limit"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"$ref": "#/components/parameters/Offset"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"$ref": "#/components/parameters/Tags"
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"responses": {
|
|
277
|
-
"200": {
|
|
278
|
-
"description": "OK",
|
|
279
|
-
"headers": {
|
|
280
|
-
"x-ratelimit-limit": {
|
|
281
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
282
|
-
},
|
|
283
|
-
"x-ratelimit-remaining": {
|
|
284
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
285
|
-
},
|
|
286
|
-
"x-ratelimit-reset": {
|
|
287
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
"content": {
|
|
291
|
-
"application/json": {
|
|
292
|
-
"schema": {
|
|
293
|
-
"$ref": "#/components/schemas/getTopSearchesResponse"
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
"400": {
|
|
299
|
-
"$ref": "#/components/responses/BadRequest"
|
|
300
|
-
},
|
|
301
|
-
"402": {
|
|
302
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
303
|
-
},
|
|
304
|
-
"403": {
|
|
305
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
306
|
-
},
|
|
307
|
-
"404": {
|
|
308
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
"/2/searches/count": {
|
|
314
|
-
"get": {
|
|
315
|
-
"tags": ["search"],
|
|
316
|
-
"operationId": "getSearchesCount",
|
|
317
|
-
"x-acl": ["analytics"],
|
|
318
|
-
"summary": "Retrieve number of searches",
|
|
319
|
-
"description": "Retrieves the number of searches within a time range, including a daily breakdown.\n\nBy default, the analyzed period includes the last eight days including the current day.\n",
|
|
320
|
-
"parameters": [
|
|
321
|
-
{
|
|
322
|
-
"$ref": "#/components/parameters/Index"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"$ref": "#/components/parameters/StartDate"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"$ref": "#/components/parameters/EndDate"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"$ref": "#/components/parameters/Tags"
|
|
332
|
-
}
|
|
333
|
-
],
|
|
334
|
-
"responses": {
|
|
335
|
-
"200": {
|
|
336
|
-
"description": "OK",
|
|
337
|
-
"headers": {
|
|
338
|
-
"x-ratelimit-limit": {
|
|
339
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
340
|
-
},
|
|
341
|
-
"x-ratelimit-remaining": {
|
|
342
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
343
|
-
},
|
|
344
|
-
"x-ratelimit-reset": {
|
|
345
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"content": {
|
|
349
|
-
"application/json": {
|
|
350
|
-
"schema": {
|
|
351
|
-
"title": "getSearchesCountResponse",
|
|
352
|
-
"type": "object",
|
|
353
|
-
"additionalProperties": false,
|
|
354
|
-
"required": ["dates", "count"],
|
|
355
|
-
"properties": {
|
|
356
|
-
"count": {
|
|
357
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
358
|
-
},
|
|
359
|
-
"dates": {
|
|
360
|
-
"type": "array",
|
|
361
|
-
"description": "Daily number of searches.",
|
|
362
|
-
"items": {
|
|
363
|
-
"title": "dailySearches",
|
|
364
|
-
"type": "object",
|
|
365
|
-
"additionalProperties": false,
|
|
366
|
-
"required": ["date", "count"],
|
|
367
|
-
"properties": {
|
|
368
|
-
"date": {
|
|
369
|
-
"$ref": "#/components/schemas/date"
|
|
370
|
-
},
|
|
371
|
-
"count": {
|
|
372
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
"400": {
|
|
383
|
-
"$ref": "#/components/responses/BadRequest"
|
|
384
|
-
},
|
|
385
|
-
"402": {
|
|
386
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
387
|
-
},
|
|
388
|
-
"403": {
|
|
389
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
390
|
-
},
|
|
391
|
-
"404": {
|
|
392
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"/2/searches/noResults": {
|
|
398
|
-
"get": {
|
|
399
|
-
"tags": ["search"],
|
|
400
|
-
"operationId": "getSearchesNoResults",
|
|
401
|
-
"x-acl": ["analytics"],
|
|
402
|
-
"summary": "Retrieve the most frequent searches without results",
|
|
403
|
-
"description": "Retrieves the 1,000 most frequent searches that produced zero results.",
|
|
404
|
-
"parameters": [
|
|
405
|
-
{
|
|
406
|
-
"$ref": "#/components/parameters/Index"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"$ref": "#/components/parameters/StartDate"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"$ref": "#/components/parameters/EndDate"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"$ref": "#/components/parameters/Limit"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"$ref": "#/components/parameters/Offset"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"$ref": "#/components/parameters/Tags"
|
|
422
|
-
}
|
|
423
|
-
],
|
|
424
|
-
"responses": {
|
|
425
|
-
"200": {
|
|
426
|
-
"description": "OK",
|
|
427
|
-
"headers": {
|
|
428
|
-
"x-ratelimit-limit": {
|
|
429
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
430
|
-
},
|
|
431
|
-
"x-ratelimit-remaining": {
|
|
432
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
433
|
-
},
|
|
434
|
-
"x-ratelimit-reset": {
|
|
435
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
"content": {
|
|
439
|
-
"application/json": {
|
|
440
|
-
"schema": {
|
|
441
|
-
"title": "getSearchesNoResultsResponse",
|
|
442
|
-
"type": "object",
|
|
443
|
-
"additionalProperties": false,
|
|
444
|
-
"required": ["searches"],
|
|
445
|
-
"properties": {
|
|
446
|
-
"searches": {
|
|
447
|
-
"type": "array",
|
|
448
|
-
"description": "Searches without results.",
|
|
449
|
-
"items": {
|
|
450
|
-
"title": "dailySearchesNoResults",
|
|
451
|
-
"type": "object",
|
|
452
|
-
"additionalProperties": false,
|
|
453
|
-
"required": ["search", "count", "withFilterCount"],
|
|
454
|
-
"properties": {
|
|
455
|
-
"search": {
|
|
456
|
-
"$ref": "#/components/schemas/search"
|
|
457
|
-
},
|
|
458
|
-
"count": {
|
|
459
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
460
|
-
},
|
|
461
|
-
"withFilterCount": {
|
|
462
|
-
"$ref": "#/components/schemas/withFilterCount"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"400": {
|
|
473
|
-
"$ref": "#/components/responses/BadRequest"
|
|
474
|
-
},
|
|
475
|
-
"402": {
|
|
476
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
477
|
-
},
|
|
478
|
-
"403": {
|
|
479
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
480
|
-
},
|
|
481
|
-
"404": {
|
|
482
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
"/2/searches/noClicks": {
|
|
488
|
-
"get": {
|
|
489
|
-
"tags": ["click"],
|
|
490
|
-
"operationId": "getSearchesNoClicks",
|
|
491
|
-
"x-acl": ["analytics"],
|
|
492
|
-
"summary": "Retrieve top searches without clicks",
|
|
493
|
-
"description": "Retrieves the most popular searches that didn't lead to any clicks, from the 1,000 most frequent searches.\n\nFor each search, it also returns the number of displayed search results that remained unclicked.\n",
|
|
494
|
-
"parameters": [
|
|
495
|
-
{
|
|
496
|
-
"$ref": "#/components/parameters/Index"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"$ref": "#/components/parameters/StartDate"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"$ref": "#/components/parameters/EndDate"
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"$ref": "#/components/parameters/Limit"
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
"$ref": "#/components/parameters/Offset"
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
"$ref": "#/components/parameters/Tags"
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
"responses": {
|
|
515
|
-
"200": {
|
|
516
|
-
"description": "OK",
|
|
517
|
-
"headers": {
|
|
518
|
-
"x-ratelimit-limit": {
|
|
519
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
520
|
-
},
|
|
521
|
-
"x-ratelimit-remaining": {
|
|
522
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
523
|
-
},
|
|
524
|
-
"x-ratelimit-reset": {
|
|
525
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
526
|
-
}
|
|
527
|
-
},
|
|
528
|
-
"content": {
|
|
529
|
-
"application/json": {
|
|
530
|
-
"schema": {
|
|
531
|
-
"title": "getSearchesNoClicksResponse",
|
|
532
|
-
"type": "object",
|
|
533
|
-
"additionalProperties": false,
|
|
534
|
-
"required": ["searches"],
|
|
535
|
-
"properties": {
|
|
536
|
-
"searches": {
|
|
537
|
-
"type": "array",
|
|
538
|
-
"description": "Searches without any clicks.",
|
|
539
|
-
"items": {
|
|
540
|
-
"title": "dailySearchesNoClicks",
|
|
541
|
-
"type": "object",
|
|
542
|
-
"additionalProperties": false,
|
|
543
|
-
"required": ["search", "count", "nbHits"],
|
|
544
|
-
"properties": {
|
|
545
|
-
"search": {
|
|
546
|
-
"$ref": "#/components/schemas/search"
|
|
547
|
-
},
|
|
548
|
-
"count": {
|
|
549
|
-
"type": "integer",
|
|
550
|
-
"description": "Number of tracked searches.",
|
|
551
|
-
"minimum": 1,
|
|
552
|
-
"example": 7
|
|
553
|
-
},
|
|
554
|
-
"nbHits": {
|
|
555
|
-
"$ref": "#/components/schemas/nbHits"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
"400": {
|
|
566
|
-
"$ref": "#/components/responses/BadRequest"
|
|
567
|
-
},
|
|
568
|
-
"402": {
|
|
569
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
570
|
-
},
|
|
571
|
-
"403": {
|
|
572
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
573
|
-
},
|
|
574
|
-
"404": {
|
|
575
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
"/2/searches/noResultRate": {
|
|
581
|
-
"get": {
|
|
582
|
-
"tags": ["search"],
|
|
583
|
-
"operationId": "getNoResultsRate",
|
|
584
|
-
"x-mcp-tool": true,
|
|
585
|
-
"x-acl": ["analytics"],
|
|
586
|
-
"summary": "Retrieve no results rate",
|
|
587
|
-
"description": "Retrieves the fraction of searches that didn't return any results within a time range, including a daily breakdown.\nIt also returns the count of searches and searches without results used to compute the rates.\n\nBy default, the analyzed period includes the last eight days including the current day.\n",
|
|
588
|
-
"parameters": [
|
|
589
|
-
{
|
|
590
|
-
"$ref": "#/components/parameters/Index"
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"$ref": "#/components/parameters/StartDate"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"$ref": "#/components/parameters/EndDate"
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"$ref": "#/components/parameters/Tags"
|
|
600
|
-
}
|
|
601
|
-
],
|
|
602
|
-
"responses": {
|
|
603
|
-
"200": {
|
|
604
|
-
"description": "OK",
|
|
605
|
-
"headers": {
|
|
606
|
-
"x-ratelimit-limit": {
|
|
607
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
608
|
-
},
|
|
609
|
-
"x-ratelimit-remaining": {
|
|
610
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
611
|
-
},
|
|
612
|
-
"x-ratelimit-reset": {
|
|
613
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
"content": {
|
|
617
|
-
"application/json": {
|
|
618
|
-
"schema": {
|
|
619
|
-
"title": "getNoResultsRateResponse",
|
|
620
|
-
"type": "object",
|
|
621
|
-
"additionalProperties": false,
|
|
622
|
-
"required": ["rate", "count", "noResultCount", "dates"],
|
|
623
|
-
"properties": {
|
|
624
|
-
"rate": {
|
|
625
|
-
"$ref": "#/components/schemas/noResultsRate"
|
|
626
|
-
},
|
|
627
|
-
"count": {
|
|
628
|
-
"$ref": "#/components/schemas/count"
|
|
629
|
-
},
|
|
630
|
-
"noResultCount": {
|
|
631
|
-
"$ref": "#/components/schemas/noResultCount"
|
|
632
|
-
},
|
|
633
|
-
"dates": {
|
|
634
|
-
"type": "array",
|
|
635
|
-
"description": "Daily no results rates.",
|
|
636
|
-
"items": {
|
|
637
|
-
"title": "dailyNoResultsRates",
|
|
638
|
-
"type": "object",
|
|
639
|
-
"additionalProperties": false,
|
|
640
|
-
"required": ["date", "noResultCount", "count", "rate"],
|
|
641
|
-
"properties": {
|
|
642
|
-
"date": {
|
|
643
|
-
"$ref": "#/components/schemas/date"
|
|
644
|
-
},
|
|
645
|
-
"noResultCount": {
|
|
646
|
-
"$ref": "#/components/schemas/noResultCount"
|
|
647
|
-
},
|
|
648
|
-
"count": {
|
|
649
|
-
"$ref": "#/components/schemas/count"
|
|
650
|
-
},
|
|
651
|
-
"rate": {
|
|
652
|
-
"$ref": "#/components/schemas/noResultsRate"
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
},
|
|
662
|
-
"400": {
|
|
663
|
-
"$ref": "#/components/responses/BadRequest"
|
|
664
|
-
},
|
|
665
|
-
"402": {
|
|
666
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
667
|
-
},
|
|
668
|
-
"403": {
|
|
669
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
670
|
-
},
|
|
671
|
-
"404": {
|
|
672
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
"/2/searches/noClickRate": {
|
|
678
|
-
"get": {
|
|
679
|
-
"tags": ["click"],
|
|
680
|
-
"operationId": "getNoClickRate",
|
|
681
|
-
"x-acl": ["analytics"],
|
|
682
|
-
"summary": "Retrieve no click rate",
|
|
683
|
-
"description": "Retrieves the fraction of searches that didn't lead to any click within a time range, including a daily breakdown.\nIt also returns the number of tracked searches and tracked searches without clicks.\n\nBy default, the analyzed period includes the last eight days including the current day.\n",
|
|
684
|
-
"parameters": [
|
|
685
|
-
{
|
|
686
|
-
"$ref": "#/components/parameters/Index"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
"$ref": "#/components/parameters/StartDate"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"$ref": "#/components/parameters/EndDate"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
"$ref": "#/components/parameters/Tags"
|
|
696
|
-
}
|
|
697
|
-
],
|
|
698
|
-
"responses": {
|
|
699
|
-
"200": {
|
|
700
|
-
"description": "OK",
|
|
701
|
-
"headers": {
|
|
702
|
-
"x-ratelimit-limit": {
|
|
703
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
704
|
-
},
|
|
705
|
-
"x-ratelimit-remaining": {
|
|
706
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
707
|
-
},
|
|
708
|
-
"x-ratelimit-reset": {
|
|
709
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
710
|
-
}
|
|
711
|
-
},
|
|
712
|
-
"content": {
|
|
713
|
-
"application/json": {
|
|
714
|
-
"schema": {
|
|
715
|
-
"title": "getNoClickRateResponse",
|
|
716
|
-
"type": "object",
|
|
717
|
-
"additionalProperties": false,
|
|
718
|
-
"required": ["dates", "count", "noClickCount", "rate"],
|
|
719
|
-
"properties": {
|
|
720
|
-
"rate": {
|
|
721
|
-
"$ref": "#/components/schemas/noClickRate"
|
|
722
|
-
},
|
|
723
|
-
"count": {
|
|
724
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
725
|
-
},
|
|
726
|
-
"noClickCount": {
|
|
727
|
-
"$ref": "#/components/schemas/noClickCount"
|
|
728
|
-
},
|
|
729
|
-
"dates": {
|
|
730
|
-
"type": "array",
|
|
731
|
-
"description": "Daily no click rates.",
|
|
732
|
-
"items": {
|
|
733
|
-
"title": "dailyNoClickRates",
|
|
734
|
-
"type": "object",
|
|
735
|
-
"additionalProperties": false,
|
|
736
|
-
"required": ["rate", "count", "noClickCount", "date"],
|
|
737
|
-
"properties": {
|
|
738
|
-
"rate": {
|
|
739
|
-
"$ref": "#/components/schemas/noClickRate"
|
|
740
|
-
},
|
|
741
|
-
"count": {
|
|
742
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
743
|
-
},
|
|
744
|
-
"noClickCount": {
|
|
745
|
-
"$ref": "#/components/schemas/noClickCount"
|
|
746
|
-
},
|
|
747
|
-
"date": {
|
|
748
|
-
"$ref": "#/components/schemas/date"
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
"400": {
|
|
759
|
-
"$ref": "#/components/responses/BadRequest"
|
|
760
|
-
},
|
|
761
|
-
"402": {
|
|
762
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
763
|
-
},
|
|
764
|
-
"403": {
|
|
765
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
766
|
-
},
|
|
767
|
-
"404": {
|
|
768
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
},
|
|
773
|
-
"/2/hits": {
|
|
774
|
-
"get": {
|
|
775
|
-
"tags": ["search"],
|
|
776
|
-
"operationId": "getTopHits",
|
|
777
|
-
"x-mcp-tool": true,
|
|
778
|
-
"x-acl": ["analytics"],
|
|
779
|
-
"summary": "Retrieve top search results",
|
|
780
|
-
"description": "Retrieves the object IDs of the 1,000 most frequent search results.\n\nIf you set the `clickAnalytics` query parameter to true, the response also includes:\n\n- Tracked searches count. Tracked searches are Search API requests with the `clickAnalytics` parameter set to `true`. This differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.\n- Click count\n- Click-through rate (CTR)\n- Conversion count\n- Conversion rate (CR)\n- Average click position\n\nIf you set the `revenueAnalytics` parameter to `true`, the response also includes:\n\n- Add-to-cart count\n- Add-to-cart rate (ATCR)\n- Purchase count\n- Purchase rate\n- Revenue details for each currency\n\n**There's a difference between 0% rates and null rates:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, the rates (CTR, CR, ATCR, purchase rate) are null.\n- **0% rates** mean there _were_ queries but no [click or conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
781
|
-
"parameters": [
|
|
782
|
-
{
|
|
783
|
-
"$ref": "#/components/parameters/Index"
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
"$ref": "#/components/parameters/Search"
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
"$ref": "#/components/parameters/ClickAnalytics"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"$ref": "#/components/parameters/RevenueAnalytics"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"$ref": "#/components/parameters/StartDate"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
"$ref": "#/components/parameters/EndDate"
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
"$ref": "#/components/parameters/Limit"
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
"$ref": "#/components/parameters/Offset"
|
|
805
|
-
},
|
|
806
|
-
{
|
|
807
|
-
"$ref": "#/components/parameters/Tags"
|
|
808
|
-
}
|
|
809
|
-
],
|
|
810
|
-
"responses": {
|
|
811
|
-
"200": {
|
|
812
|
-
"description": "OK",
|
|
813
|
-
"headers": {
|
|
814
|
-
"x-ratelimit-limit": {
|
|
815
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
816
|
-
},
|
|
817
|
-
"x-ratelimit-remaining": {
|
|
818
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
819
|
-
},
|
|
820
|
-
"x-ratelimit-reset": {
|
|
821
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
"content": {
|
|
825
|
-
"application/json": {
|
|
826
|
-
"schema": {
|
|
827
|
-
"$ref": "#/components/schemas/getTopHitsResponse"
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
},
|
|
832
|
-
"400": {
|
|
833
|
-
"$ref": "#/components/responses/BadRequest"
|
|
834
|
-
},
|
|
835
|
-
"402": {
|
|
836
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
837
|
-
},
|
|
838
|
-
"403": {
|
|
839
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
840
|
-
},
|
|
841
|
-
"404": {
|
|
842
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
"/2/users/count": {
|
|
848
|
-
"get": {
|
|
849
|
-
"tags": ["user"],
|
|
850
|
-
"operationId": "getUsersCount",
|
|
851
|
-
"x-acl": ["analytics"],
|
|
852
|
-
"summary": "Retrieve number of users",
|
|
853
|
-
"description": "Retrieves the number of unique users within a time range, including a daily breakdown.\n\nSince it returns the number of unique users, the sum of the daily values might be different from the total number.\n\nBy default:\n\n- Algolia distinguishes search users by their IP address, _unless_ you include a pseudonymous user identifier in your search requests with the `userToken` API parameter or `x-algolia-usertoken` request header.\n- The analyzed period includes the last eight days including the current day.\n",
|
|
854
|
-
"externalDocs": {
|
|
855
|
-
"url": "https://www.algolia.com/doc/guides/search-analytics/guides/usertoken",
|
|
856
|
-
"description": "Distinguish users for analytics."
|
|
857
|
-
},
|
|
858
|
-
"parameters": [
|
|
859
|
-
{
|
|
860
|
-
"$ref": "#/components/parameters/Index"
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
"$ref": "#/components/parameters/StartDate"
|
|
864
|
-
},
|
|
865
|
-
{
|
|
866
|
-
"$ref": "#/components/parameters/EndDate"
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
"$ref": "#/components/parameters/Tags"
|
|
870
|
-
}
|
|
871
|
-
],
|
|
872
|
-
"responses": {
|
|
873
|
-
"200": {
|
|
874
|
-
"description": "OK",
|
|
875
|
-
"headers": {
|
|
876
|
-
"x-ratelimit-limit": {
|
|
877
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
878
|
-
},
|
|
879
|
-
"x-ratelimit-remaining": {
|
|
880
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
881
|
-
},
|
|
882
|
-
"x-ratelimit-reset": {
|
|
883
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
884
|
-
}
|
|
885
|
-
},
|
|
886
|
-
"content": {
|
|
887
|
-
"application/json": {
|
|
888
|
-
"schema": {
|
|
889
|
-
"title": "getUsersCountResponse",
|
|
890
|
-
"type": "object",
|
|
891
|
-
"additionalProperties": false,
|
|
892
|
-
"required": ["dates", "count"],
|
|
893
|
-
"properties": {
|
|
894
|
-
"count": {
|
|
895
|
-
"type": "integer",
|
|
896
|
-
"description": "Number of unique users."
|
|
897
|
-
},
|
|
898
|
-
"dates": {
|
|
899
|
-
"type": "array",
|
|
900
|
-
"description": "Daily number of unique users.",
|
|
901
|
-
"items": {
|
|
902
|
-
"title": "dailyUsers",
|
|
903
|
-
"type": "object",
|
|
904
|
-
"additionalProperties": false,
|
|
905
|
-
"required": ["date", "count"],
|
|
906
|
-
"properties": {
|
|
907
|
-
"date": {
|
|
908
|
-
"$ref": "#/components/schemas/date"
|
|
909
|
-
},
|
|
910
|
-
"count": {
|
|
911
|
-
"type": "integer",
|
|
912
|
-
"description": "Number of unique users."
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
},
|
|
922
|
-
"400": {
|
|
923
|
-
"$ref": "#/components/responses/BadRequest"
|
|
924
|
-
},
|
|
925
|
-
"402": {
|
|
926
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
927
|
-
},
|
|
928
|
-
"403": {
|
|
929
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
930
|
-
},
|
|
931
|
-
"404": {
|
|
932
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
"/2/filters": {
|
|
938
|
-
"get": {
|
|
939
|
-
"tags": ["filter"],
|
|
940
|
-
"operationId": "getTopFilterAttributes",
|
|
941
|
-
"x-acl": ["analytics"],
|
|
942
|
-
"summary": "Retrieve top filters",
|
|
943
|
-
"description": "Retrieves the 1,000 most frequently used filter attributes.\n\nThese are attributes of your records that you included in the `attributesForFaceting` setting.\n",
|
|
944
|
-
"parameters": [
|
|
945
|
-
{
|
|
946
|
-
"$ref": "#/components/parameters/Index"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"$ref": "#/components/parameters/Search"
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"$ref": "#/components/parameters/StartDate"
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
"$ref": "#/components/parameters/EndDate"
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"$ref": "#/components/parameters/Limit"
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
"$ref": "#/components/parameters/Offset"
|
|
962
|
-
},
|
|
963
|
-
{
|
|
964
|
-
"$ref": "#/components/parameters/Tags"
|
|
965
|
-
}
|
|
966
|
-
],
|
|
967
|
-
"responses": {
|
|
968
|
-
"200": {
|
|
969
|
-
"description": "OK",
|
|
970
|
-
"headers": {
|
|
971
|
-
"x-ratelimit-limit": {
|
|
972
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
973
|
-
},
|
|
974
|
-
"x-ratelimit-remaining": {
|
|
975
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
976
|
-
},
|
|
977
|
-
"x-ratelimit-reset": {
|
|
978
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
979
|
-
}
|
|
980
|
-
},
|
|
981
|
-
"content": {
|
|
982
|
-
"application/json": {
|
|
983
|
-
"schema": {
|
|
984
|
-
"$ref": "#/components/schemas/getTopFilterAttributesResponse"
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
|
-
"400": {
|
|
990
|
-
"$ref": "#/components/responses/BadRequest"
|
|
991
|
-
},
|
|
992
|
-
"402": {
|
|
993
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
994
|
-
},
|
|
995
|
-
"403": {
|
|
996
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
997
|
-
},
|
|
998
|
-
"404": {
|
|
999
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
"/2/filters/{attribute}": {
|
|
1005
|
-
"get": {
|
|
1006
|
-
"tags": ["filter"],
|
|
1007
|
-
"operationId": "getTopFilterForAttribute",
|
|
1008
|
-
"x-acl": ["analytics"],
|
|
1009
|
-
"summary": "Retrieve top filter values",
|
|
1010
|
-
"description": "Retrieves the 1,000 most frequent filter (facet) values for a filter attribute.\n\nThese are attributes of your records that you included in the `attributesForFaceting` setting.\n",
|
|
1011
|
-
"parameters": [
|
|
1012
|
-
{
|
|
1013
|
-
"$ref": "#/components/parameters/Attribute"
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
"$ref": "#/components/parameters/Index"
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"$ref": "#/components/parameters/Search"
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"$ref": "#/components/parameters/Limit"
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
"$ref": "#/components/parameters/Offset"
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"$ref": "#/components/parameters/Tags"
|
|
1035
|
-
}
|
|
1036
|
-
],
|
|
1037
|
-
"responses": {
|
|
1038
|
-
"200": {
|
|
1039
|
-
"description": "OK",
|
|
1040
|
-
"headers": {
|
|
1041
|
-
"x-ratelimit-limit": {
|
|
1042
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1043
|
-
},
|
|
1044
|
-
"x-ratelimit-remaining": {
|
|
1045
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1046
|
-
},
|
|
1047
|
-
"x-ratelimit-reset": {
|
|
1048
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1049
|
-
}
|
|
1050
|
-
},
|
|
1051
|
-
"content": {
|
|
1052
|
-
"application/json": {
|
|
1053
|
-
"schema": {
|
|
1054
|
-
"$ref": "#/components/schemas/getTopFilterForAttributeResponse"
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
},
|
|
1059
|
-
"400": {
|
|
1060
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1061
|
-
},
|
|
1062
|
-
"402": {
|
|
1063
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1064
|
-
},
|
|
1065
|
-
"403": {
|
|
1066
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1067
|
-
},
|
|
1068
|
-
"404": {
|
|
1069
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
},
|
|
1074
|
-
"/2/filters/noResults": {
|
|
1075
|
-
"get": {
|
|
1076
|
-
"tags": ["filter"],
|
|
1077
|
-
"operationId": "getTopFiltersNoResults",
|
|
1078
|
-
"x-acl": ["analytics"],
|
|
1079
|
-
"summary": "Retrieve top filters for a search without results",
|
|
1080
|
-
"description": "Retrieves the 1,000 most frequently used filters for a search that didn't return any results.\n\nTo get the most frequent searches without results, use the [Retrieve searches without results](https://www.algolia.com/doc/rest-api/analytics/get-searches-no-results) operation.\n",
|
|
1081
|
-
"parameters": [
|
|
1082
|
-
{
|
|
1083
|
-
"$ref": "#/components/parameters/Index"
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
"$ref": "#/components/parameters/Search"
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
"$ref": "#/components/parameters/Limit"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
"$ref": "#/components/parameters/Offset"
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
"$ref": "#/components/parameters/Tags"
|
|
1102
|
-
}
|
|
1103
|
-
],
|
|
1104
|
-
"responses": {
|
|
1105
|
-
"200": {
|
|
1106
|
-
"description": "OK",
|
|
1107
|
-
"headers": {
|
|
1108
|
-
"x-ratelimit-limit": {
|
|
1109
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1110
|
-
},
|
|
1111
|
-
"x-ratelimit-remaining": {
|
|
1112
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1113
|
-
},
|
|
1114
|
-
"x-ratelimit-reset": {
|
|
1115
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"content": {
|
|
1119
|
-
"application/json": {
|
|
1120
|
-
"schema": {
|
|
1121
|
-
"$ref": "#/components/schemas/getTopFiltersNoResultsResponse"
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
"400": {
|
|
1127
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1128
|
-
},
|
|
1129
|
-
"402": {
|
|
1130
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1131
|
-
},
|
|
1132
|
-
"403": {
|
|
1133
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1134
|
-
},
|
|
1135
|
-
"404": {
|
|
1136
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
},
|
|
1141
|
-
"/2/countries": {
|
|
1142
|
-
"get": {
|
|
1143
|
-
"tags": ["user"],
|
|
1144
|
-
"operationId": "getTopCountries",
|
|
1145
|
-
"x-acl": ["analytics"],
|
|
1146
|
-
"summary": "Retrieve top countries",
|
|
1147
|
-
"description": "Retrieves the countries with the most searches in your index.",
|
|
1148
|
-
"parameters": [
|
|
1149
|
-
{
|
|
1150
|
-
"$ref": "#/components/parameters/Index"
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"$ref": "#/components/parameters/Limit"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
"$ref": "#/components/parameters/Offset"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
"$ref": "#/components/parameters/Tags"
|
|
1166
|
-
}
|
|
1167
|
-
],
|
|
1168
|
-
"responses": {
|
|
1169
|
-
"200": {
|
|
1170
|
-
"description": "OK",
|
|
1171
|
-
"headers": {
|
|
1172
|
-
"x-ratelimit-limit": {
|
|
1173
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1174
|
-
},
|
|
1175
|
-
"x-ratelimit-remaining": {
|
|
1176
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1177
|
-
},
|
|
1178
|
-
"x-ratelimit-reset": {
|
|
1179
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
"content": {
|
|
1183
|
-
"application/json": {
|
|
1184
|
-
"schema": {
|
|
1185
|
-
"title": "getTopCountriesResponse",
|
|
1186
|
-
"type": "object",
|
|
1187
|
-
"additionalProperties": false,
|
|
1188
|
-
"required": ["countries"],
|
|
1189
|
-
"properties": {
|
|
1190
|
-
"countries": {
|
|
1191
|
-
"type": "array",
|
|
1192
|
-
"description": "Countries and number of searches.",
|
|
1193
|
-
"items": {
|
|
1194
|
-
"title": "topCountry",
|
|
1195
|
-
"type": "object",
|
|
1196
|
-
"additionalProperties": false,
|
|
1197
|
-
"required": ["country", "count"],
|
|
1198
|
-
"properties": {
|
|
1199
|
-
"country": {
|
|
1200
|
-
"description": "Country code.",
|
|
1201
|
-
"type": "string",
|
|
1202
|
-
"example": "UK"
|
|
1203
|
-
},
|
|
1204
|
-
"count": {
|
|
1205
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
},
|
|
1215
|
-
"400": {
|
|
1216
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1217
|
-
},
|
|
1218
|
-
"402": {
|
|
1219
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1220
|
-
},
|
|
1221
|
-
"403": {
|
|
1222
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1223
|
-
},
|
|
1224
|
-
"404": {
|
|
1225
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
},
|
|
1230
|
-
"/2/clicks/averageClickPosition": {
|
|
1231
|
-
"get": {
|
|
1232
|
-
"tags": ["click"],
|
|
1233
|
-
"operationId": "getAverageClickPosition",
|
|
1234
|
-
"x-acl": ["analytics"],
|
|
1235
|
-
"summary": "Retrieve average click position",
|
|
1236
|
-
"description": "Retrieves the average click position of your search results, including a daily breakdown.\n\nThe average click position is the average of all clicked search result positions.\nFor example, if users only ever click on the first result for any search, the average click position is 1.\nBy default, the analyzed period includes the last eight days including the current day.\n\nAn average of `null` when `clickAnalytics` is enabled means Algolia didn't receive any [click events](https://www.algolia.com/doc/guides/sending-events/getting-started) for the queries.\nThe average is `null` until Algolia receives at least one click event.\n",
|
|
1237
|
-
"parameters": [
|
|
1238
|
-
{
|
|
1239
|
-
"$ref": "#/components/parameters/Index"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
"$ref": "#/components/parameters/Tags"
|
|
1249
|
-
}
|
|
1250
|
-
],
|
|
1251
|
-
"responses": {
|
|
1252
|
-
"200": {
|
|
1253
|
-
"description": "OK",
|
|
1254
|
-
"headers": {
|
|
1255
|
-
"x-ratelimit-limit": {
|
|
1256
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1257
|
-
},
|
|
1258
|
-
"x-ratelimit-remaining": {
|
|
1259
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1260
|
-
},
|
|
1261
|
-
"x-ratelimit-reset": {
|
|
1262
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1263
|
-
}
|
|
1264
|
-
},
|
|
1265
|
-
"content": {
|
|
1266
|
-
"application/json": {
|
|
1267
|
-
"schema": {
|
|
1268
|
-
"title": "getAverageClickPositionResponse",
|
|
1269
|
-
"type": "object",
|
|
1270
|
-
"additionalProperties": false,
|
|
1271
|
-
"required": ["average", "clickCount", "dates"],
|
|
1272
|
-
"properties": {
|
|
1273
|
-
"average": {
|
|
1274
|
-
"$ref": "#/components/schemas/averageClickPosition"
|
|
1275
|
-
},
|
|
1276
|
-
"clickCount": {
|
|
1277
|
-
"$ref": "#/components/schemas/clickCount"
|
|
1278
|
-
},
|
|
1279
|
-
"dates": {
|
|
1280
|
-
"type": "array",
|
|
1281
|
-
"description": "Daily average click positions.",
|
|
1282
|
-
"items": {
|
|
1283
|
-
"title": "dailyAverageClicks",
|
|
1284
|
-
"type": "object",
|
|
1285
|
-
"additionalProperties": false,
|
|
1286
|
-
"required": ["average", "clickCount", "date"],
|
|
1287
|
-
"properties": {
|
|
1288
|
-
"average": {
|
|
1289
|
-
"$ref": "#/components/schemas/averageClickPosition"
|
|
1290
|
-
},
|
|
1291
|
-
"clickCount": {
|
|
1292
|
-
"$ref": "#/components/schemas/clickCount"
|
|
1293
|
-
},
|
|
1294
|
-
"date": {
|
|
1295
|
-
"$ref": "#/components/schemas/date"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
},
|
|
1305
|
-
"400": {
|
|
1306
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1307
|
-
},
|
|
1308
|
-
"402": {
|
|
1309
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1310
|
-
},
|
|
1311
|
-
"403": {
|
|
1312
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1313
|
-
},
|
|
1314
|
-
"404": {
|
|
1315
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
"/2/clicks/positions": {
|
|
1321
|
-
"get": {
|
|
1322
|
-
"tags": ["click"],
|
|
1323
|
-
"operationId": "getClickPositions",
|
|
1324
|
-
"x-acl": ["analytics"],
|
|
1325
|
-
"summary": "Retrieve click positions",
|
|
1326
|
-
"description": "Retrieves the positions in the search results and their associated number of clicks.\n\nThis lets you check how many clicks the first, second, or tenth search results receive.\n\nAn average of `0` when `clickAnalytics` is enabled means Algolia didn't receive any [click events](https://www.algolia.com/doc/guides/sending-events/getting-started) for the queries.\n",
|
|
1327
|
-
"parameters": [
|
|
1328
|
-
{
|
|
1329
|
-
"$ref": "#/components/parameters/Index"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
"$ref": "#/components/parameters/Tags"
|
|
1339
|
-
}
|
|
1340
|
-
],
|
|
1341
|
-
"responses": {
|
|
1342
|
-
"200": {
|
|
1343
|
-
"description": "OK",
|
|
1344
|
-
"headers": {
|
|
1345
|
-
"x-ratelimit-limit": {
|
|
1346
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1347
|
-
},
|
|
1348
|
-
"x-ratelimit-remaining": {
|
|
1349
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1350
|
-
},
|
|
1351
|
-
"x-ratelimit-reset": {
|
|
1352
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
"content": {
|
|
1356
|
-
"application/json": {
|
|
1357
|
-
"schema": {
|
|
1358
|
-
"title": "getClickPositionsResponse",
|
|
1359
|
-
"type": "object",
|
|
1360
|
-
"additionalProperties": false,
|
|
1361
|
-
"required": ["positions"],
|
|
1362
|
-
"properties": {
|
|
1363
|
-
"positions": {
|
|
1364
|
-
"$ref": "#/components/schemas/clickPositions"
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
},
|
|
1371
|
-
"400": {
|
|
1372
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1373
|
-
},
|
|
1374
|
-
"402": {
|
|
1375
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1376
|
-
},
|
|
1377
|
-
"403": {
|
|
1378
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1379
|
-
},
|
|
1380
|
-
"404": {
|
|
1381
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
"/2/clicks/clickThroughRate": {
|
|
1387
|
-
"get": {
|
|
1388
|
-
"tags": ["click"],
|
|
1389
|
-
"operationId": "getClickThroughRate",
|
|
1390
|
-
"x-acl": ["analytics"],
|
|
1391
|
-
"summary": "Retrieve click-through rate",
|
|
1392
|
-
"description": "Retrieves the click-through rate (CTR) for all your searches with at least one click event, including a daily breakdown.\n\nBy default, the analyzed period includes the last eight days including the current day.\n\n**There's a difference between a 0 and null CTR when `clickAnalytics` is enabled:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, CTR is null.\n- **0** mean there _were_ queries but no [click events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
1393
|
-
"parameters": [
|
|
1394
|
-
{
|
|
1395
|
-
"$ref": "#/components/parameters/Index"
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"$ref": "#/components/parameters/Tags"
|
|
1405
|
-
}
|
|
1406
|
-
],
|
|
1407
|
-
"responses": {
|
|
1408
|
-
"200": {
|
|
1409
|
-
"description": "OK",
|
|
1410
|
-
"headers": {
|
|
1411
|
-
"x-ratelimit-limit": {
|
|
1412
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1413
|
-
},
|
|
1414
|
-
"x-ratelimit-remaining": {
|
|
1415
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1416
|
-
},
|
|
1417
|
-
"x-ratelimit-reset": {
|
|
1418
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
"content": {
|
|
1422
|
-
"application/json": {
|
|
1423
|
-
"schema": {
|
|
1424
|
-
"title": "getClickThroughRateResponse",
|
|
1425
|
-
"type": "object",
|
|
1426
|
-
"additionalProperties": false,
|
|
1427
|
-
"required": ["dates", "clickCount", "trackedSearchCount", "rate"],
|
|
1428
|
-
"properties": {
|
|
1429
|
-
"rate": {
|
|
1430
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
1431
|
-
},
|
|
1432
|
-
"clickCount": {
|
|
1433
|
-
"$ref": "#/components/schemas/clickCount"
|
|
1434
|
-
},
|
|
1435
|
-
"trackedSearchCount": {
|
|
1436
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1437
|
-
},
|
|
1438
|
-
"dates": {
|
|
1439
|
-
"type": "array",
|
|
1440
|
-
"description": "Daily click-through rates.",
|
|
1441
|
-
"items": {
|
|
1442
|
-
"title": "dailyClickThroughRates",
|
|
1443
|
-
"type": "object",
|
|
1444
|
-
"additionalProperties": false,
|
|
1445
|
-
"required": ["rate", "clickCount", "trackedSearchCount", "date"],
|
|
1446
|
-
"properties": {
|
|
1447
|
-
"rate": {
|
|
1448
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
1449
|
-
},
|
|
1450
|
-
"clickCount": {
|
|
1451
|
-
"$ref": "#/components/schemas/clickCount"
|
|
1452
|
-
},
|
|
1453
|
-
"trackedSearchCount": {
|
|
1454
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1455
|
-
},
|
|
1456
|
-
"date": {
|
|
1457
|
-
"$ref": "#/components/schemas/date"
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
},
|
|
1467
|
-
"400": {
|
|
1468
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1469
|
-
},
|
|
1470
|
-
"402": {
|
|
1471
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1472
|
-
},
|
|
1473
|
-
"403": {
|
|
1474
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1475
|
-
},
|
|
1476
|
-
"404": {
|
|
1477
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
},
|
|
1482
|
-
"/2/conversions/conversionRate": {
|
|
1483
|
-
"get": {
|
|
1484
|
-
"tags": ["click"],
|
|
1485
|
-
"operationId": "getConversionRate",
|
|
1486
|
-
"x-acl": ["analytics"],
|
|
1487
|
-
"summary": "Retrieve conversion rate",
|
|
1488
|
-
"description": "Retrieves the conversion rate (CR) for all your searches with at least one conversion event, including a daily breakdown.\n\nBy default, the analyzed period includes the last eight days including the current day.\n\n**There's a difference between a 0 and null CR when `clickAnalytics` is enabled:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, CR is null.\n- **0** mean there _were_ queries but no [conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
1489
|
-
"parameters": [
|
|
1490
|
-
{
|
|
1491
|
-
"$ref": "#/components/parameters/Index"
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
"$ref": "#/components/parameters/Tags"
|
|
1501
|
-
}
|
|
1502
|
-
],
|
|
1503
|
-
"responses": {
|
|
1504
|
-
"200": {
|
|
1505
|
-
"description": "OK",
|
|
1506
|
-
"headers": {
|
|
1507
|
-
"x-ratelimit-limit": {
|
|
1508
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1509
|
-
},
|
|
1510
|
-
"x-ratelimit-remaining": {
|
|
1511
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1512
|
-
},
|
|
1513
|
-
"x-ratelimit-reset": {
|
|
1514
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
"content": {
|
|
1518
|
-
"application/json": {
|
|
1519
|
-
"schema": {
|
|
1520
|
-
"title": "getConversionRateResponse",
|
|
1521
|
-
"type": "object",
|
|
1522
|
-
"additionalProperties": false,
|
|
1523
|
-
"required": ["dates", "trackedSearchCount", "conversionCount", "rate"],
|
|
1524
|
-
"properties": {
|
|
1525
|
-
"rate": {
|
|
1526
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
1527
|
-
},
|
|
1528
|
-
"trackedSearchCount": {
|
|
1529
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1530
|
-
},
|
|
1531
|
-
"conversionCount": {
|
|
1532
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
1533
|
-
},
|
|
1534
|
-
"dates": {
|
|
1535
|
-
"type": "array",
|
|
1536
|
-
"description": "Daily conversion rates.",
|
|
1537
|
-
"items": {
|
|
1538
|
-
"title": "dailyConversionRates",
|
|
1539
|
-
"type": "object",
|
|
1540
|
-
"additionalProperties": false,
|
|
1541
|
-
"required": ["rate", "trackedSearchCount", "conversionCount", "date"],
|
|
1542
|
-
"properties": {
|
|
1543
|
-
"rate": {
|
|
1544
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
1545
|
-
},
|
|
1546
|
-
"trackedSearchCount": {
|
|
1547
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1548
|
-
},
|
|
1549
|
-
"conversionCount": {
|
|
1550
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
1551
|
-
},
|
|
1552
|
-
"date": {
|
|
1553
|
-
"$ref": "#/components/schemas/date"
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
},
|
|
1563
|
-
"400": {
|
|
1564
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1565
|
-
},
|
|
1566
|
-
"402": {
|
|
1567
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1568
|
-
},
|
|
1569
|
-
"403": {
|
|
1570
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1571
|
-
},
|
|
1572
|
-
"404": {
|
|
1573
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
},
|
|
1578
|
-
"/2/conversions/addToCartRate": {
|
|
1579
|
-
"get": {
|
|
1580
|
-
"tags": ["click"],
|
|
1581
|
-
"operationId": "getAddToCartRate",
|
|
1582
|
-
"x-acl": ["analytics"],
|
|
1583
|
-
"summary": "Retrieve add-to-cart rate",
|
|
1584
|
-
"description": "Retrieves the add-to-cart rate for all your searches with at least one add-to-cart event, including a daily breakdown.\n\nBy default, the analyzed period includes the last eight days including the current day.\n\nThe rate is the number of add-to-cart conversion events divided by the number of tracked searches.\nA search is tracked if it returns a queryID (`clickAnalytics` is `true`).\nThis differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.\n\n**There's a difference between a 0 and null add-to-cart rate when `clickAnalytics` is enabled:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, the add-to-cart rate is null.\n- **0** mean there _were_ queries but no [add-to-cart events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
1585
|
-
"parameters": [
|
|
1586
|
-
{
|
|
1587
|
-
"$ref": "#/components/parameters/Index"
|
|
1588
|
-
},
|
|
1589
|
-
{
|
|
1590
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
"$ref": "#/components/parameters/Tags"
|
|
1597
|
-
}
|
|
1598
|
-
],
|
|
1599
|
-
"responses": {
|
|
1600
|
-
"200": {
|
|
1601
|
-
"description": "OK",
|
|
1602
|
-
"headers": {
|
|
1603
|
-
"x-ratelimit-limit": {
|
|
1604
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1605
|
-
},
|
|
1606
|
-
"x-ratelimit-remaining": {
|
|
1607
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1608
|
-
},
|
|
1609
|
-
"x-ratelimit-reset": {
|
|
1610
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1611
|
-
}
|
|
1612
|
-
},
|
|
1613
|
-
"content": {
|
|
1614
|
-
"application/json": {
|
|
1615
|
-
"schema": {
|
|
1616
|
-
"title": "getAddToCartRateResponse",
|
|
1617
|
-
"type": "object",
|
|
1618
|
-
"additionalProperties": false,
|
|
1619
|
-
"required": ["dates", "trackedSearchCount", "addToCartCount", "rate"],
|
|
1620
|
-
"properties": {
|
|
1621
|
-
"rate": {
|
|
1622
|
-
"$ref": "#/components/schemas/addToCartRate"
|
|
1623
|
-
},
|
|
1624
|
-
"trackedSearchCount": {
|
|
1625
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1626
|
-
},
|
|
1627
|
-
"addToCartCount": {
|
|
1628
|
-
"$ref": "#/components/schemas/addToCartCount"
|
|
1629
|
-
},
|
|
1630
|
-
"dates": {
|
|
1631
|
-
"type": "array",
|
|
1632
|
-
"description": "Daily add-to-cart rates.",
|
|
1633
|
-
"items": {
|
|
1634
|
-
"title": "dailyAddToCartRates",
|
|
1635
|
-
"type": "object",
|
|
1636
|
-
"additionalProperties": false,
|
|
1637
|
-
"required": ["rate", "trackedSearchCount", "addToCartCount", "date"],
|
|
1638
|
-
"properties": {
|
|
1639
|
-
"rate": {
|
|
1640
|
-
"$ref": "#/components/schemas/addToCartRate"
|
|
1641
|
-
},
|
|
1642
|
-
"trackedSearchCount": {
|
|
1643
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1644
|
-
},
|
|
1645
|
-
"addToCartCount": {
|
|
1646
|
-
"$ref": "#/components/schemas/addToCartCount"
|
|
1647
|
-
},
|
|
1648
|
-
"date": {
|
|
1649
|
-
"$ref": "#/components/schemas/date"
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
},
|
|
1659
|
-
"400": {
|
|
1660
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1661
|
-
},
|
|
1662
|
-
"402": {
|
|
1663
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1664
|
-
},
|
|
1665
|
-
"403": {
|
|
1666
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1667
|
-
},
|
|
1668
|
-
"404": {
|
|
1669
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
},
|
|
1674
|
-
"/2/conversions/purchaseRate": {
|
|
1675
|
-
"get": {
|
|
1676
|
-
"tags": ["click"],
|
|
1677
|
-
"operationId": "getPurchaseRate",
|
|
1678
|
-
"x-acl": ["analytics"],
|
|
1679
|
-
"summary": "Retrieve purchase rate",
|
|
1680
|
-
"description": "Retrieves the purchase rate for all your searches with at least one purchase event, including a daily breakdown.\n\nBy default, the analyzed period includes the last eight days including the current day.\n\nThe rate is the number of purchase conversion events divided by the number of tracked searches.\nA search is tracked if it returns a query ID (`clickAnalytics` is `true`).\nThis differs from the response's `count`, which shows the overall number of searches, including those where `clickAnalytics` is `false`.\n\n**There's a difference between a 0 and null purchase rate when `clickAnalytics` is enabled:**\n\n- **Null** means there were no queries: since Algolia didn't receive any events, the purchase rate is null.\n- **0** mean there _were_ queries but no [purchase conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n",
|
|
1681
|
-
"parameters": [
|
|
1682
|
-
{
|
|
1683
|
-
"$ref": "#/components/parameters/Index"
|
|
1684
|
-
},
|
|
1685
|
-
{
|
|
1686
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1687
|
-
},
|
|
1688
|
-
{
|
|
1689
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1690
|
-
},
|
|
1691
|
-
{
|
|
1692
|
-
"$ref": "#/components/parameters/Tags"
|
|
1693
|
-
}
|
|
1694
|
-
],
|
|
1695
|
-
"responses": {
|
|
1696
|
-
"200": {
|
|
1697
|
-
"description": "OK",
|
|
1698
|
-
"headers": {
|
|
1699
|
-
"x-ratelimit-limit": {
|
|
1700
|
-
"$ref": "#/components/headers/x-ratelimit-limit"
|
|
1701
|
-
},
|
|
1702
|
-
"x-ratelimit-remaining": {
|
|
1703
|
-
"$ref": "#/components/headers/x-ratelimit-remaining"
|
|
1704
|
-
},
|
|
1705
|
-
"x-ratelimit-reset": {
|
|
1706
|
-
"$ref": "#/components/headers/x-ratelimit-reset"
|
|
1707
|
-
}
|
|
1708
|
-
},
|
|
1709
|
-
"content": {
|
|
1710
|
-
"application/json": {
|
|
1711
|
-
"schema": {
|
|
1712
|
-
"title": "getPurchaseRateResponse",
|
|
1713
|
-
"type": "object",
|
|
1714
|
-
"additionalProperties": false,
|
|
1715
|
-
"required": ["dates", "trackedSearchCount", "purchaseCount", "rate"],
|
|
1716
|
-
"properties": {
|
|
1717
|
-
"rate": {
|
|
1718
|
-
"$ref": "#/components/schemas/purchaseRate"
|
|
1719
|
-
},
|
|
1720
|
-
"trackedSearchCount": {
|
|
1721
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1722
|
-
},
|
|
1723
|
-
"purchaseCount": {
|
|
1724
|
-
"$ref": "#/components/schemas/purchaseCount"
|
|
1725
|
-
},
|
|
1726
|
-
"dates": {
|
|
1727
|
-
"type": "array",
|
|
1728
|
-
"description": "Daily purchase rates.",
|
|
1729
|
-
"items": {
|
|
1730
|
-
"title": "dailyPurchaseRates",
|
|
1731
|
-
"type": "object",
|
|
1732
|
-
"additionalProperties": false,
|
|
1733
|
-
"required": ["rate", "trackedSearchCount", "purchaseCount", "date"],
|
|
1734
|
-
"properties": {
|
|
1735
|
-
"rate": {
|
|
1736
|
-
"$ref": "#/components/schemas/purchaseRate"
|
|
1737
|
-
},
|
|
1738
|
-
"trackedSearchCount": {
|
|
1739
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
1740
|
-
},
|
|
1741
|
-
"purchaseCount": {
|
|
1742
|
-
"$ref": "#/components/schemas/purchaseCount"
|
|
1743
|
-
},
|
|
1744
|
-
"date": {
|
|
1745
|
-
"$ref": "#/components/schemas/date"
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
},
|
|
1755
|
-
"400": {
|
|
1756
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1757
|
-
},
|
|
1758
|
-
"402": {
|
|
1759
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1760
|
-
},
|
|
1761
|
-
"403": {
|
|
1762
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1763
|
-
},
|
|
1764
|
-
"404": {
|
|
1765
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
"/2/conversions/revenue": {
|
|
1771
|
-
"get": {
|
|
1772
|
-
"tags": ["revenue"],
|
|
1773
|
-
"operationId": "getRevenue",
|
|
1774
|
-
"x-acl": ["analytics"],
|
|
1775
|
-
"summary": "Retrieve revenue data",
|
|
1776
|
-
"description": "Retrieves revenue-related metrics, such as the total revenue or the average order value.\n\nTo retrieve revenue-related metrics, send purchase events.\nBy default, the analyzed period includes the last eight days including the current day.\n\nRevenue is based on purchase conversion events (a conversion event with an `eventSubtype` attribute of `purchase`).\nThe revenue is the `price` attribute multiplied by the `quantity` attribute for each object in the event's `objectData` array.\n",
|
|
1777
|
-
"parameters": [
|
|
1778
|
-
{
|
|
1779
|
-
"$ref": "#/components/parameters/Index"
|
|
1780
|
-
},
|
|
1781
|
-
{
|
|
1782
|
-
"$ref": "#/components/parameters/StartDate"
|
|
1783
|
-
},
|
|
1784
|
-
{
|
|
1785
|
-
"$ref": "#/components/parameters/EndDate"
|
|
1786
|
-
},
|
|
1787
|
-
{
|
|
1788
|
-
"$ref": "#/components/parameters/Tags"
|
|
1789
|
-
}
|
|
1790
|
-
],
|
|
1791
|
-
"responses": {
|
|
1792
|
-
"200": {
|
|
1793
|
-
"description": "OK",
|
|
1794
|
-
"content": {
|
|
1795
|
-
"application/json": {
|
|
1796
|
-
"schema": {
|
|
1797
|
-
"title": "getRevenue",
|
|
1798
|
-
"type": "object",
|
|
1799
|
-
"additionalProperties": false,
|
|
1800
|
-
"required": ["currencies", "dates"],
|
|
1801
|
-
"properties": {
|
|
1802
|
-
"currencies": {
|
|
1803
|
-
"$ref": "#/components/schemas/currencies"
|
|
1804
|
-
},
|
|
1805
|
-
"dates": {
|
|
1806
|
-
"type": "array",
|
|
1807
|
-
"description": "Daily revenue.",
|
|
1808
|
-
"items": {
|
|
1809
|
-
"title": "dailyRevenue",
|
|
1810
|
-
"type": "object",
|
|
1811
|
-
"additionalProperties": false,
|
|
1812
|
-
"required": ["currencies", "date"],
|
|
1813
|
-
"properties": {
|
|
1814
|
-
"currencies": {
|
|
1815
|
-
"$ref": "#/components/schemas/currencies"
|
|
1816
|
-
},
|
|
1817
|
-
"date": {
|
|
1818
|
-
"$ref": "#/components/schemas/date"
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
},
|
|
1828
|
-
"400": {
|
|
1829
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1830
|
-
},
|
|
1831
|
-
"402": {
|
|
1832
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1833
|
-
},
|
|
1834
|
-
"403": {
|
|
1835
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1836
|
-
},
|
|
1837
|
-
"404": {
|
|
1838
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
},
|
|
1843
|
-
"/2/status": {
|
|
1844
|
-
"get": {
|
|
1845
|
-
"tags": ["status"],
|
|
1846
|
-
"operationId": "getStatus",
|
|
1847
|
-
"x-acl": ["analytics"],
|
|
1848
|
-
"summary": "Retrieve update status",
|
|
1849
|
-
"description": "Retrieves the time when the Analytics data for the specified index was last updated.\n\nIf the index has been recently created or no search has been performed yet the updated time is `null`.\n\nThe Analytics data is updated every 5 minutes.\n",
|
|
1850
|
-
"parameters": [
|
|
1851
|
-
{
|
|
1852
|
-
"$ref": "#/components/parameters/Index"
|
|
1853
|
-
}
|
|
1854
|
-
],
|
|
1855
|
-
"responses": {
|
|
1856
|
-
"200": {
|
|
1857
|
-
"description": "OK",
|
|
1858
|
-
"content": {
|
|
1859
|
-
"application/json": {
|
|
1860
|
-
"schema": {
|
|
1861
|
-
"title": "getStatusResponse",
|
|
1862
|
-
"type": "object",
|
|
1863
|
-
"additionalProperties": false,
|
|
1864
|
-
"required": ["updatedAt"],
|
|
1865
|
-
"properties": {
|
|
1866
|
-
"updatedAt": {
|
|
1867
|
-
"$ref": "#/components/schemas/updatedAtNullable"
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
},
|
|
1874
|
-
"400": {
|
|
1875
|
-
"$ref": "#/components/responses/BadRequest"
|
|
1876
|
-
},
|
|
1877
|
-
"402": {
|
|
1878
|
-
"$ref": "#/components/responses/FeatureNotEnabled"
|
|
1879
|
-
},
|
|
1880
|
-
"403": {
|
|
1881
|
-
"$ref": "#/components/responses/MethodNotAllowed"
|
|
1882
|
-
},
|
|
1883
|
-
"404": {
|
|
1884
|
-
"$ref": "#/components/responses/IndexNotFound"
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
},
|
|
1889
|
-
"/setClientApiKey": {
|
|
1890
|
-
"get": {
|
|
1891
|
-
"x-helper": true,
|
|
1892
|
-
"x-asynchronous-helper": false,
|
|
1893
|
-
"tags": ["Api Key"],
|
|
1894
|
-
"operationId": "setClientApiKey",
|
|
1895
|
-
"summary": "Switch the API key used to authenticate requests",
|
|
1896
|
-
"description": "Switch the API key used to authenticate requests.\n",
|
|
1897
|
-
"parameters": [
|
|
1898
|
-
{
|
|
1899
|
-
"in": "query",
|
|
1900
|
-
"name": "apiKey",
|
|
1901
|
-
"description": "API key to be used from now on.",
|
|
1902
|
-
"required": true,
|
|
1903
|
-
"schema": {
|
|
1904
|
-
"type": "string"
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
],
|
|
1908
|
-
"responses": {
|
|
1909
|
-
"204": {
|
|
1910
|
-
"description": "No content."
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
}
|
|
1915
|
-
},
|
|
1916
|
-
"components": {
|
|
1917
|
-
"securitySchemes": {
|
|
1918
|
-
"applicationId": {
|
|
1919
|
-
"type": "apiKey",
|
|
1920
|
-
"in": "header",
|
|
1921
|
-
"name": "x-algolia-application-id",
|
|
1922
|
-
"description": "Your Algolia application ID."
|
|
1923
|
-
},
|
|
1924
|
-
"apiKey": {
|
|
1925
|
-
"type": "apiKey",
|
|
1926
|
-
"in": "header",
|
|
1927
|
-
"name": "x-algolia-api-key",
|
|
1928
|
-
"description": "Your Algolia API key with the necessary permissions to make the request.\nPermissions are controlled through access control lists (ACL) and access restrictions.\nThe required ACL to make a request is listed in each endpoint's reference.\n"
|
|
1929
|
-
}
|
|
1930
|
-
},
|
|
1931
|
-
"parameters": {
|
|
1932
|
-
"PathInPath": {
|
|
1933
|
-
"name": "path",
|
|
1934
|
-
"in": "path",
|
|
1935
|
-
"description": "Path of the endpoint, for example `1/newFeature`.",
|
|
1936
|
-
"required": true,
|
|
1937
|
-
"schema": {
|
|
1938
|
-
"type": "string",
|
|
1939
|
-
"example": "/keys"
|
|
1940
|
-
}
|
|
1941
|
-
},
|
|
1942
|
-
"Parameters": {
|
|
1943
|
-
"name": "parameters",
|
|
1944
|
-
"in": "query",
|
|
1945
|
-
"description": "Query parameters to apply to the current query.",
|
|
1946
|
-
"schema": {
|
|
1947
|
-
"type": "object",
|
|
1948
|
-
"additionalProperties": true
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
"Index": {
|
|
1952
|
-
"in": "query",
|
|
1953
|
-
"name": "index",
|
|
1954
|
-
"description": "Index name.",
|
|
1955
|
-
"required": true,
|
|
1956
|
-
"schema": {
|
|
1957
|
-
"type": "string",
|
|
1958
|
-
"example": "ALGOLIA_INDEX_NAME"
|
|
1959
|
-
}
|
|
1960
|
-
},
|
|
1961
|
-
"ClickAnalytics": {
|
|
1962
|
-
"in": "query",
|
|
1963
|
-
"name": "clickAnalytics",
|
|
1964
|
-
"description": "Whether to include metrics related to click and conversion events in the response.",
|
|
1965
|
-
"schema": {
|
|
1966
|
-
"type": "boolean",
|
|
1967
|
-
"default": false
|
|
1968
|
-
}
|
|
1969
|
-
},
|
|
1970
|
-
"RevenueAnalytics": {
|
|
1971
|
-
"in": "query",
|
|
1972
|
-
"name": "revenueAnalytics",
|
|
1973
|
-
"description": "Whether to include metrics related to revenue events in the response.",
|
|
1974
|
-
"schema": {
|
|
1975
|
-
"type": "boolean",
|
|
1976
|
-
"default": false
|
|
1977
|
-
}
|
|
1978
|
-
},
|
|
1979
|
-
"StartDate": {
|
|
1980
|
-
"in": "query",
|
|
1981
|
-
"name": "startDate",
|
|
1982
|
-
"description": "Start date of the period to analyze, in `YYYY-MM-DD` format.",
|
|
1983
|
-
"schema": {
|
|
1984
|
-
"type": "string",
|
|
1985
|
-
"example": "2022-09-19"
|
|
1986
|
-
}
|
|
1987
|
-
},
|
|
1988
|
-
"EndDate": {
|
|
1989
|
-
"in": "query",
|
|
1990
|
-
"name": "endDate",
|
|
1991
|
-
"description": "End date of the period to analyze, in `YYYY-MM-DD` format.",
|
|
1992
|
-
"schema": {
|
|
1993
|
-
"type": "string",
|
|
1994
|
-
"example": "2023-01-21"
|
|
1995
|
-
}
|
|
1996
|
-
},
|
|
1997
|
-
"OrderBy": {
|
|
1998
|
-
"in": "query",
|
|
1999
|
-
"name": "orderBy",
|
|
2000
|
-
"description": "Attribute by which to order the response items.\n\nIf the `clickAnalytics` parameter is false, only `searchCount` is available.\n",
|
|
2001
|
-
"schema": {
|
|
2002
|
-
"$ref": "#/components/schemas/orderBy"
|
|
2003
|
-
}
|
|
2004
|
-
},
|
|
2005
|
-
"Direction": {
|
|
2006
|
-
"in": "query",
|
|
2007
|
-
"name": "direction",
|
|
2008
|
-
"description": "Sorting direction of the results: ascending or descending.\n",
|
|
2009
|
-
"schema": {
|
|
2010
|
-
"$ref": "#/components/schemas/direction"
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
|
-
"Limit": {
|
|
2014
|
-
"in": "query",
|
|
2015
|
-
"name": "limit",
|
|
2016
|
-
"description": "Number of items to return.\n",
|
|
2017
|
-
"required": false,
|
|
2018
|
-
"schema": {
|
|
2019
|
-
"type": "integer",
|
|
2020
|
-
"default": 10,
|
|
2021
|
-
"maximum": 1000
|
|
2022
|
-
}
|
|
2023
|
-
},
|
|
2024
|
-
"Offset": {
|
|
2025
|
-
"in": "query",
|
|
2026
|
-
"name": "offset",
|
|
2027
|
-
"description": "Position of the first item to return.\n",
|
|
2028
|
-
"required": false,
|
|
2029
|
-
"schema": {
|
|
2030
|
-
"type": "integer",
|
|
2031
|
-
"default": 0,
|
|
2032
|
-
"minimum": 0
|
|
2033
|
-
}
|
|
2034
|
-
},
|
|
2035
|
-
"Tags": {
|
|
2036
|
-
"name": "tags",
|
|
2037
|
-
"in": "query",
|
|
2038
|
-
"description": "Tags by which to segment the analytics.\n\nYou can combine multiple tags with `OR` and `AND`.\nTags must be URL-encoded.\nFor more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments).\n",
|
|
2039
|
-
"example": "device:mobile%20phone",
|
|
2040
|
-
"schema": {
|
|
2041
|
-
"type": "string"
|
|
2042
|
-
}
|
|
2043
|
-
},
|
|
2044
|
-
"Search": {
|
|
2045
|
-
"in": "query",
|
|
2046
|
-
"name": "search",
|
|
2047
|
-
"description": "Search query.",
|
|
2048
|
-
"example": "enable ab test",
|
|
2049
|
-
"schema": {
|
|
2050
|
-
"type": "string"
|
|
2051
|
-
}
|
|
2052
|
-
},
|
|
2053
|
-
"Attribute": {
|
|
2054
|
-
"in": "path",
|
|
2055
|
-
"name": "attribute",
|
|
2056
|
-
"description": "Attribute name.",
|
|
2057
|
-
"required": true,
|
|
2058
|
-
"schema": {
|
|
2059
|
-
"type": "string",
|
|
2060
|
-
"example": "brand"
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
},
|
|
2064
|
-
"schemas": {
|
|
2065
|
-
"ErrorBase": {
|
|
2066
|
-
"description": "Error.",
|
|
2067
|
-
"type": "object",
|
|
2068
|
-
"x-keep-model": true,
|
|
2069
|
-
"additionalProperties": true,
|
|
2070
|
-
"properties": {
|
|
2071
|
-
"message": {
|
|
2072
|
-
"type": "string",
|
|
2073
|
-
"example": "Invalid Application-Id or API-Key"
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
},
|
|
2077
|
-
"orderBy": {
|
|
2078
|
-
"type": "string",
|
|
2079
|
-
"description": "Attribute by which to order the response items.\n\nIf the `clickAnalytics` parameter is false, only `searchCount` is available.\n",
|
|
2080
|
-
"enum": ["searchCount", "clickThroughRate", "conversionRate", "averageClickPosition"],
|
|
2081
|
-
"default": "searchCount"
|
|
2082
|
-
},
|
|
2083
|
-
"direction": {
|
|
2084
|
-
"type": "string",
|
|
2085
|
-
"enum": ["asc", "desc"],
|
|
2086
|
-
"default": "asc"
|
|
2087
|
-
},
|
|
2088
|
-
"search": {
|
|
2089
|
-
"description": "Search query.",
|
|
2090
|
-
"example": "separator",
|
|
2091
|
-
"type": "string"
|
|
2092
|
-
},
|
|
2093
|
-
"count": {
|
|
2094
|
-
"description": "Number of searches.",
|
|
2095
|
-
"type": "integer",
|
|
2096
|
-
"example": 504
|
|
2097
|
-
},
|
|
2098
|
-
"nbHits": {
|
|
2099
|
-
"type": "integer",
|
|
2100
|
-
"description": "Number of results (hits).",
|
|
2101
|
-
"example": 20
|
|
2102
|
-
},
|
|
2103
|
-
"topSearchesResponse": {
|
|
2104
|
-
"type": "object",
|
|
2105
|
-
"title": "Top searches",
|
|
2106
|
-
"additionalProperties": false,
|
|
2107
|
-
"required": ["searches"],
|
|
2108
|
-
"properties": {
|
|
2109
|
-
"searches": {
|
|
2110
|
-
"type": "array",
|
|
2111
|
-
"description": "Most popular searches and their number of search results (hits).",
|
|
2112
|
-
"items": {
|
|
2113
|
-
"title": "topSearch",
|
|
2114
|
-
"type": "object",
|
|
2115
|
-
"additionalProperties": false,
|
|
2116
|
-
"required": ["search", "count", "nbHits"],
|
|
2117
|
-
"properties": {
|
|
2118
|
-
"search": {
|
|
2119
|
-
"$ref": "#/components/schemas/search"
|
|
2120
|
-
},
|
|
2121
|
-
"count": {
|
|
2122
|
-
"$ref": "#/components/schemas/count"
|
|
2123
|
-
},
|
|
2124
|
-
"nbHits": {
|
|
2125
|
-
"$ref": "#/components/schemas/nbHits"
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
}
|
|
2131
|
-
},
|
|
2132
|
-
"clickThroughRate": {
|
|
2133
|
-
"oneOf": [
|
|
2134
|
-
{
|
|
2135
|
-
"type": "number",
|
|
2136
|
-
"format": "double",
|
|
2137
|
-
"description": "Click-through rate: calculated as the number of tracked searches with at least one click event divided by the number of tracked searches.\nIf null, Algolia didn't receive any search requests with `clickAnalytics` set to true.\n",
|
|
2138
|
-
"minimum": 0,
|
|
2139
|
-
"maximum": 1,
|
|
2140
|
-
"default": null,
|
|
2141
|
-
"example": 0.49
|
|
2142
|
-
},
|
|
2143
|
-
{
|
|
2144
|
-
"type": "null"
|
|
2145
|
-
}
|
|
2146
|
-
]
|
|
2147
|
-
},
|
|
2148
|
-
"averageClickPosition": {
|
|
2149
|
-
"oneOf": [
|
|
2150
|
-
{
|
|
2151
|
-
"type": "number",
|
|
2152
|
-
"format": "double",
|
|
2153
|
-
"description": "Average position of a clicked search result in the list of search results.\nIf null, Algolia didn't receive any search requests with `clickAnalytics` set to true.\n",
|
|
2154
|
-
"minimum": 1,
|
|
2155
|
-
"example": 2.035,
|
|
2156
|
-
"default": null
|
|
2157
|
-
},
|
|
2158
|
-
{
|
|
2159
|
-
"type": "null"
|
|
2160
|
-
}
|
|
2161
|
-
]
|
|
2162
|
-
},
|
|
2163
|
-
"clickPositions": {
|
|
2164
|
-
"type": "array",
|
|
2165
|
-
"description": "List of positions in the search results and clicks associated with this search.",
|
|
2166
|
-
"minItems": 12,
|
|
2167
|
-
"maxItems": 12,
|
|
2168
|
-
"items": {
|
|
2169
|
-
"title": "clickPosition",
|
|
2170
|
-
"type": "object",
|
|
2171
|
-
"description": "Click position.",
|
|
2172
|
-
"properties": {
|
|
2173
|
-
"position": {
|
|
2174
|
-
"type": "array",
|
|
2175
|
-
"description": "Range of positions in the search results, using the pattern `[start,end]`.\n\nFor positions 11 and up, click events are summed over the specified range.\n`-1` indicates the end of the list of search results.\n",
|
|
2176
|
-
"minItems": 2,
|
|
2177
|
-
"maxItems": 2,
|
|
2178
|
-
"example": [21, -1],
|
|
2179
|
-
"items": {
|
|
2180
|
-
"type": "integer"
|
|
2181
|
-
}
|
|
2182
|
-
},
|
|
2183
|
-
"clickCount": {
|
|
2184
|
-
"type": "integer",
|
|
2185
|
-
"description": "Number of times this search has been clicked at that position.",
|
|
2186
|
-
"example": 24,
|
|
2187
|
-
"minimum": 0,
|
|
2188
|
-
"default": 0
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
},
|
|
2193
|
-
"conversionRate": {
|
|
2194
|
-
"oneOf": [
|
|
2195
|
-
{
|
|
2196
|
-
"type": "number",
|
|
2197
|
-
"format": "double",
|
|
2198
|
-
"description": "Conversion rate: calculated as the number of tracked searches with at least one conversion event divided by the number of tracked searches.\nIf null, Algolia didn't receive any search requests with `clickAnalytics` set to true.\n",
|
|
2199
|
-
"minimum": 0,
|
|
2200
|
-
"maximum": 1,
|
|
2201
|
-
"default": null,
|
|
2202
|
-
"example": 0.05
|
|
2203
|
-
},
|
|
2204
|
-
{
|
|
2205
|
-
"type": "null"
|
|
2206
|
-
}
|
|
2207
|
-
]
|
|
2208
|
-
},
|
|
2209
|
-
"trackedSearchCount": {
|
|
2210
|
-
"type": "integer",
|
|
2211
|
-
"example": 2,
|
|
2212
|
-
"default": 0,
|
|
2213
|
-
"description": "Number of tracked searches. Tracked searches are search requests where the `clickAnalytics` parameter is true."
|
|
2214
|
-
},
|
|
2215
|
-
"clickCount": {
|
|
2216
|
-
"type": "integer",
|
|
2217
|
-
"description": "Number of clicks associated with this search.",
|
|
2218
|
-
"example": 162,
|
|
2219
|
-
"minimum": 0,
|
|
2220
|
-
"default": 0
|
|
2221
|
-
},
|
|
2222
|
-
"conversionCount": {
|
|
2223
|
-
"type": "integer",
|
|
2224
|
-
"description": "Number of conversions from this search.",
|
|
2225
|
-
"example": 10,
|
|
2226
|
-
"minimum": 0,
|
|
2227
|
-
"default": 0
|
|
2228
|
-
},
|
|
2229
|
-
"topSearchesResponseWithAnalytics": {
|
|
2230
|
-
"type": "object",
|
|
2231
|
-
"title": "Top searches with click analytics",
|
|
2232
|
-
"additionalProperties": false,
|
|
2233
|
-
"required": ["searches"],
|
|
2234
|
-
"properties": {
|
|
2235
|
-
"searches": {
|
|
2236
|
-
"type": "array",
|
|
2237
|
-
"description": "Most popular searches and their associated click and conversion metrics.",
|
|
2238
|
-
"items": {
|
|
2239
|
-
"title": "topSearchWithAnalytics",
|
|
2240
|
-
"type": "object",
|
|
2241
|
-
"additionalProperties": false,
|
|
2242
|
-
"required": [
|
|
2243
|
-
"search",
|
|
2244
|
-
"count",
|
|
2245
|
-
"nbHits",
|
|
2246
|
-
"clickThroughRate",
|
|
2247
|
-
"averageClickPosition",
|
|
2248
|
-
"clickPositions",
|
|
2249
|
-
"conversionRate",
|
|
2250
|
-
"trackedSearchCount",
|
|
2251
|
-
"clickCount",
|
|
2252
|
-
"conversionCount"
|
|
2253
|
-
],
|
|
2254
|
-
"properties": {
|
|
2255
|
-
"search": {
|
|
2256
|
-
"$ref": "#/components/schemas/search"
|
|
2257
|
-
},
|
|
2258
|
-
"count": {
|
|
2259
|
-
"$ref": "#/components/schemas/count"
|
|
2260
|
-
},
|
|
2261
|
-
"clickThroughRate": {
|
|
2262
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
2263
|
-
},
|
|
2264
|
-
"averageClickPosition": {
|
|
2265
|
-
"$ref": "#/components/schemas/averageClickPosition"
|
|
2266
|
-
},
|
|
2267
|
-
"clickPositions": {
|
|
2268
|
-
"$ref": "#/components/schemas/clickPositions"
|
|
2269
|
-
},
|
|
2270
|
-
"conversionRate": {
|
|
2271
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
2272
|
-
},
|
|
2273
|
-
"trackedSearchCount": {
|
|
2274
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
2275
|
-
},
|
|
2276
|
-
"clickCount": {
|
|
2277
|
-
"$ref": "#/components/schemas/clickCount"
|
|
2278
|
-
},
|
|
2279
|
-
"conversionCount": {
|
|
2280
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
2281
|
-
},
|
|
2282
|
-
"nbHits": {
|
|
2283
|
-
"$ref": "#/components/schemas/nbHits"
|
|
2284
|
-
}
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
}
|
|
2288
|
-
}
|
|
2289
|
-
},
|
|
2290
|
-
"currencies": {
|
|
2291
|
-
"type": "object",
|
|
2292
|
-
"description": "Revenue associated with this search: broken down by currency.\n",
|
|
2293
|
-
"default": {},
|
|
2294
|
-
"additionalProperties": {
|
|
2295
|
-
"title": "currencyCode",
|
|
2296
|
-
"x-additionalPropertiesName": "currency",
|
|
2297
|
-
"type": "object",
|
|
2298
|
-
"description": "Currency code.",
|
|
2299
|
-
"properties": {
|
|
2300
|
-
"currency": {
|
|
2301
|
-
"type": "string",
|
|
2302
|
-
"description": "Currency code.",
|
|
2303
|
-
"example": "USD"
|
|
2304
|
-
},
|
|
2305
|
-
"revenue": {
|
|
2306
|
-
"type": "number",
|
|
2307
|
-
"format": "float",
|
|
2308
|
-
"description": "Revenue associated with this search in this currency.",
|
|
2309
|
-
"example": 999.98
|
|
2310
|
-
}
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
},
|
|
2314
|
-
"addToCartRate": {
|
|
2315
|
-
"oneOf": [
|
|
2316
|
-
{
|
|
2317
|
-
"type": "number",
|
|
2318
|
-
"format": "double",
|
|
2319
|
-
"description": "Add-to-cart rate: calculated as the number of tracked searches with at least one add-to-cart event divided by the number of tracked searches.\nIf null, Algolia didn't receive any search requests with `clickAnalytics` set to true.\n",
|
|
2320
|
-
"minimum": 0,
|
|
2321
|
-
"maximum": 1,
|
|
2322
|
-
"default": null,
|
|
2323
|
-
"example": 0.1
|
|
2324
|
-
},
|
|
2325
|
-
{
|
|
2326
|
-
"type": "null"
|
|
2327
|
-
}
|
|
2328
|
-
]
|
|
2329
|
-
},
|
|
2330
|
-
"addToCartCount": {
|
|
2331
|
-
"type": "integer",
|
|
2332
|
-
"description": "Number of add-to-cart events from this search.",
|
|
2333
|
-
"minimum": 0,
|
|
2334
|
-
"default": 0,
|
|
2335
|
-
"example": 10
|
|
2336
|
-
},
|
|
2337
|
-
"purchaseRate": {
|
|
2338
|
-
"oneOf": [
|
|
2339
|
-
{
|
|
2340
|
-
"type": "number",
|
|
2341
|
-
"format": "double",
|
|
2342
|
-
"description": "Purchase rate: calculated as the number of tracked searches with at least one purchase event divided by the number of tracked searches.\nIf null, Algolia didn't receive any search requests with `clickAnalytics` set to true.\n",
|
|
2343
|
-
"minimum": 0,
|
|
2344
|
-
"maximum": 1,
|
|
2345
|
-
"default": null,
|
|
2346
|
-
"example": 0.05
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
"type": "null"
|
|
2350
|
-
}
|
|
2351
|
-
]
|
|
2352
|
-
},
|
|
2353
|
-
"purchaseCount": {
|
|
2354
|
-
"type": "integer",
|
|
2355
|
-
"description": "Number of purchase events from this search.",
|
|
2356
|
-
"default": 0,
|
|
2357
|
-
"example": 10
|
|
2358
|
-
},
|
|
2359
|
-
"topSearchesResponseWithRevenueAnalytics": {
|
|
2360
|
-
"type": "object",
|
|
2361
|
-
"title": "Top searches with revenue analytics",
|
|
2362
|
-
"additionalProperties": false,
|
|
2363
|
-
"required": ["searches"],
|
|
2364
|
-
"properties": {
|
|
2365
|
-
"searches": {
|
|
2366
|
-
"type": "array",
|
|
2367
|
-
"description": "Most popular searches, including their click and revenue metrics.",
|
|
2368
|
-
"items": {
|
|
2369
|
-
"title": "topSearchWithRevenueAnalytics",
|
|
2370
|
-
"type": "object",
|
|
2371
|
-
"additionalProperties": false,
|
|
2372
|
-
"required": [
|
|
2373
|
-
"search",
|
|
2374
|
-
"count",
|
|
2375
|
-
"nbHits",
|
|
2376
|
-
"clickThroughRate",
|
|
2377
|
-
"averageClickPosition",
|
|
2378
|
-
"clickPositions",
|
|
2379
|
-
"conversionRate",
|
|
2380
|
-
"trackedSearchCount",
|
|
2381
|
-
"clickCount",
|
|
2382
|
-
"conversionCount",
|
|
2383
|
-
"currencies",
|
|
2384
|
-
"addToCartRate",
|
|
2385
|
-
"addToCartCount",
|
|
2386
|
-
"purchaseRate",
|
|
2387
|
-
"purchaseCount"
|
|
2388
|
-
],
|
|
2389
|
-
"properties": {
|
|
2390
|
-
"search": {
|
|
2391
|
-
"$ref": "#/components/schemas/search"
|
|
2392
|
-
},
|
|
2393
|
-
"count": {
|
|
2394
|
-
"$ref": "#/components/schemas/count"
|
|
2395
|
-
},
|
|
2396
|
-
"clickThroughRate": {
|
|
2397
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
2398
|
-
},
|
|
2399
|
-
"averageClickPosition": {
|
|
2400
|
-
"$ref": "#/components/schemas/averageClickPosition"
|
|
2401
|
-
},
|
|
2402
|
-
"clickPositions": {
|
|
2403
|
-
"$ref": "#/components/schemas/clickPositions"
|
|
2404
|
-
},
|
|
2405
|
-
"conversionRate": {
|
|
2406
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
2407
|
-
},
|
|
2408
|
-
"trackedSearchCount": {
|
|
2409
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
2410
|
-
},
|
|
2411
|
-
"clickCount": {
|
|
2412
|
-
"$ref": "#/components/schemas/clickCount"
|
|
2413
|
-
},
|
|
2414
|
-
"conversionCount": {
|
|
2415
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
2416
|
-
},
|
|
2417
|
-
"nbHits": {
|
|
2418
|
-
"$ref": "#/components/schemas/nbHits"
|
|
2419
|
-
},
|
|
2420
|
-
"currencies": {
|
|
2421
|
-
"$ref": "#/components/schemas/currencies"
|
|
2422
|
-
},
|
|
2423
|
-
"addToCartRate": {
|
|
2424
|
-
"$ref": "#/components/schemas/addToCartRate"
|
|
2425
|
-
},
|
|
2426
|
-
"addToCartCount": {
|
|
2427
|
-
"$ref": "#/components/schemas/addToCartCount"
|
|
2428
|
-
},
|
|
2429
|
-
"purchaseRate": {
|
|
2430
|
-
"$ref": "#/components/schemas/purchaseRate"
|
|
2431
|
-
},
|
|
2432
|
-
"purchaseCount": {
|
|
2433
|
-
"$ref": "#/components/schemas/purchaseCount"
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
}
|
|
2438
|
-
}
|
|
2439
|
-
},
|
|
2440
|
-
"getTopSearchesResponse": {
|
|
2441
|
-
"oneOf": [
|
|
2442
|
-
{
|
|
2443
|
-
"$ref": "#/components/schemas/topSearchesResponse"
|
|
2444
|
-
},
|
|
2445
|
-
{
|
|
2446
|
-
"$ref": "#/components/schemas/topSearchesResponseWithAnalytics"
|
|
2447
|
-
},
|
|
2448
|
-
{
|
|
2449
|
-
"$ref": "#/components/schemas/topSearchesResponseWithRevenueAnalytics"
|
|
2450
|
-
}
|
|
2451
|
-
]
|
|
2452
|
-
},
|
|
2453
|
-
"parameters_count": {
|
|
2454
|
-
"description": "Number of occurrences.",
|
|
2455
|
-
"example": 2,
|
|
2456
|
-
"type": "integer"
|
|
2457
|
-
},
|
|
2458
|
-
"date": {
|
|
2459
|
-
"type": "string",
|
|
2460
|
-
"description": "Date in the format YYYY-MM-DD.",
|
|
2461
|
-
"example": "2023-06-14"
|
|
2462
|
-
},
|
|
2463
|
-
"withFilterCount": {
|
|
2464
|
-
"type": "integer",
|
|
2465
|
-
"description": "Number of searches for this term with applied filters.",
|
|
2466
|
-
"example": 5,
|
|
2467
|
-
"minimum": 0,
|
|
2468
|
-
"default": 0
|
|
2469
|
-
},
|
|
2470
|
-
"noResultsRate": {
|
|
2471
|
-
"type": "number",
|
|
2472
|
-
"format": "double",
|
|
2473
|
-
"description": "No results rate: calculated as the number of searches with zero results divided by the total number of searches.\n",
|
|
2474
|
-
"minimum": 0,
|
|
2475
|
-
"maximum": 1,
|
|
2476
|
-
"example": 0.49
|
|
2477
|
-
},
|
|
2478
|
-
"noResultCount": {
|
|
2479
|
-
"description": "Number of searches without any results.",
|
|
2480
|
-
"type": "integer",
|
|
2481
|
-
"example": 54
|
|
2482
|
-
},
|
|
2483
|
-
"noClickRate": {
|
|
2484
|
-
"type": "number",
|
|
2485
|
-
"format": "double",
|
|
2486
|
-
"description": "No click rate: calculated as the number of tracked searches without clicks divided by the number of tracked searches.\n",
|
|
2487
|
-
"minimum": 0,
|
|
2488
|
-
"maximum": 1,
|
|
2489
|
-
"example": 0.15
|
|
2490
|
-
},
|
|
2491
|
-
"noClickCount": {
|
|
2492
|
-
"type": "integer",
|
|
2493
|
-
"description": "Number of times this search was returned as a result without any click.",
|
|
2494
|
-
"example": 15,
|
|
2495
|
-
"minimum": 1
|
|
2496
|
-
},
|
|
2497
|
-
"hit": {
|
|
2498
|
-
"description": "Object ID of a record returned as a search result.",
|
|
2499
|
-
"type": "string",
|
|
2500
|
-
"example": "method-export-rules-php"
|
|
2501
|
-
},
|
|
2502
|
-
"topHitsResponse": {
|
|
2503
|
-
"type": "object",
|
|
2504
|
-
"title": "Top search results",
|
|
2505
|
-
"additionalProperties": false,
|
|
2506
|
-
"required": ["hits"],
|
|
2507
|
-
"properties": {
|
|
2508
|
-
"hits": {
|
|
2509
|
-
"type": "array",
|
|
2510
|
-
"description": "Most frequent search results.",
|
|
2511
|
-
"items": {
|
|
2512
|
-
"title": "topHit",
|
|
2513
|
-
"type": "object",
|
|
2514
|
-
"additionalProperties": false,
|
|
2515
|
-
"required": ["hit", "count"],
|
|
2516
|
-
"properties": {
|
|
2517
|
-
"hit": {
|
|
2518
|
-
"$ref": "#/components/schemas/hit"
|
|
2519
|
-
},
|
|
2520
|
-
"count": {
|
|
2521
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
},
|
|
2528
|
-
"topHitsResponseWithAnalytics": {
|
|
2529
|
-
"type": "object",
|
|
2530
|
-
"title": "Top search results with click analytics",
|
|
2531
|
-
"additionalProperties": false,
|
|
2532
|
-
"required": ["hits"],
|
|
2533
|
-
"properties": {
|
|
2534
|
-
"hits": {
|
|
2535
|
-
"type": "array",
|
|
2536
|
-
"description": "Most frequent search results with click and conversion metrics.",
|
|
2537
|
-
"items": {
|
|
2538
|
-
"title": "topHitWithAnalytics",
|
|
2539
|
-
"type": "object",
|
|
2540
|
-
"additionalProperties": false,
|
|
2541
|
-
"required": [
|
|
2542
|
-
"hit",
|
|
2543
|
-
"count",
|
|
2544
|
-
"clickThroughRate",
|
|
2545
|
-
"conversionRate",
|
|
2546
|
-
"trackedHitCount",
|
|
2547
|
-
"clickCount",
|
|
2548
|
-
"conversionCount"
|
|
2549
|
-
],
|
|
2550
|
-
"properties": {
|
|
2551
|
-
"hit": {
|
|
2552
|
-
"$ref": "#/components/schemas/hit"
|
|
2553
|
-
},
|
|
2554
|
-
"count": {
|
|
2555
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2556
|
-
},
|
|
2557
|
-
"clickThroughRate": {
|
|
2558
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
2559
|
-
},
|
|
2560
|
-
"conversionRate": {
|
|
2561
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
2562
|
-
},
|
|
2563
|
-
"trackedHitCount": {
|
|
2564
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
2565
|
-
},
|
|
2566
|
-
"clickCount": {
|
|
2567
|
-
"$ref": "#/components/schemas/clickCount"
|
|
2568
|
-
},
|
|
2569
|
-
"conversionCount": {
|
|
2570
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
2571
|
-
}
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
}
|
|
2576
|
-
},
|
|
2577
|
-
"topHitsResponseWithRevenueAnalytics": {
|
|
2578
|
-
"type": "object",
|
|
2579
|
-
"title": "Top search results with revenue analytics",
|
|
2580
|
-
"additionalProperties": false,
|
|
2581
|
-
"required": ["hits"],
|
|
2582
|
-
"properties": {
|
|
2583
|
-
"hits": {
|
|
2584
|
-
"type": "array",
|
|
2585
|
-
"description": "Most frequent search results with click, conversion, and revenue metrics.",
|
|
2586
|
-
"items": {
|
|
2587
|
-
"title": "topHitWithRevenueAnalytics",
|
|
2588
|
-
"type": "object",
|
|
2589
|
-
"additionalProperties": false,
|
|
2590
|
-
"required": [
|
|
2591
|
-
"hit",
|
|
2592
|
-
"count",
|
|
2593
|
-
"clickThroughRate",
|
|
2594
|
-
"conversionRate",
|
|
2595
|
-
"trackedHitCount",
|
|
2596
|
-
"clickCount",
|
|
2597
|
-
"conversionCount",
|
|
2598
|
-
"purchaseCount",
|
|
2599
|
-
"addToCartCount",
|
|
2600
|
-
"purchaseRate",
|
|
2601
|
-
"addToCartRate",
|
|
2602
|
-
"currencies"
|
|
2603
|
-
],
|
|
2604
|
-
"properties": {
|
|
2605
|
-
"hit": {
|
|
2606
|
-
"$ref": "#/components/schemas/hit"
|
|
2607
|
-
},
|
|
2608
|
-
"count": {
|
|
2609
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2610
|
-
},
|
|
2611
|
-
"clickThroughRate": {
|
|
2612
|
-
"$ref": "#/components/schemas/clickThroughRate"
|
|
2613
|
-
},
|
|
2614
|
-
"conversionRate": {
|
|
2615
|
-
"$ref": "#/components/schemas/conversionRate"
|
|
2616
|
-
},
|
|
2617
|
-
"trackedHitCount": {
|
|
2618
|
-
"$ref": "#/components/schemas/trackedSearchCount"
|
|
2619
|
-
},
|
|
2620
|
-
"clickCount": {
|
|
2621
|
-
"$ref": "#/components/schemas/clickCount"
|
|
2622
|
-
},
|
|
2623
|
-
"conversionCount": {
|
|
2624
|
-
"$ref": "#/components/schemas/conversionCount"
|
|
2625
|
-
},
|
|
2626
|
-
"addToCartRate": {
|
|
2627
|
-
"$ref": "#/components/schemas/addToCartRate"
|
|
2628
|
-
},
|
|
2629
|
-
"addToCartCount": {
|
|
2630
|
-
"$ref": "#/components/schemas/addToCartCount"
|
|
2631
|
-
},
|
|
2632
|
-
"purchaseRate": {
|
|
2633
|
-
"$ref": "#/components/schemas/purchaseRate"
|
|
2634
|
-
},
|
|
2635
|
-
"purchaseCount": {
|
|
2636
|
-
"$ref": "#/components/schemas/purchaseCount"
|
|
2637
|
-
},
|
|
2638
|
-
"currencies": {
|
|
2639
|
-
"$ref": "#/components/schemas/currencies"
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
},
|
|
2646
|
-
"getTopHitsResponse": {
|
|
2647
|
-
"oneOf": [
|
|
2648
|
-
{
|
|
2649
|
-
"$ref": "#/components/schemas/topHitsResponse"
|
|
2650
|
-
},
|
|
2651
|
-
{
|
|
2652
|
-
"$ref": "#/components/schemas/topHitsResponseWithAnalytics"
|
|
2653
|
-
},
|
|
2654
|
-
{
|
|
2655
|
-
"$ref": "#/components/schemas/topHitsResponseWithRevenueAnalytics"
|
|
2656
|
-
}
|
|
2657
|
-
]
|
|
2658
|
-
},
|
|
2659
|
-
"attribute": {
|
|
2660
|
-
"description": "Attribute name.",
|
|
2661
|
-
"type": "string",
|
|
2662
|
-
"example": "url"
|
|
2663
|
-
},
|
|
2664
|
-
"getTopFilterAttribute": {
|
|
2665
|
-
"type": "object",
|
|
2666
|
-
"additionalProperties": false,
|
|
2667
|
-
"required": ["attribute", "count"],
|
|
2668
|
-
"properties": {
|
|
2669
|
-
"attribute": {
|
|
2670
|
-
"$ref": "#/components/schemas/attribute"
|
|
2671
|
-
},
|
|
2672
|
-
"count": {
|
|
2673
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
},
|
|
2677
|
-
"getTopFilterAttributesResponse": {
|
|
2678
|
-
"type": "object",
|
|
2679
|
-
"additionalProperties": false,
|
|
2680
|
-
"required": ["attributes"],
|
|
2681
|
-
"properties": {
|
|
2682
|
-
"attributes": {
|
|
2683
|
-
"type": "array",
|
|
2684
|
-
"description": "Most frequent filters.",
|
|
2685
|
-
"items": {
|
|
2686
|
-
"$ref": "#/components/schemas/getTopFilterAttribute"
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
},
|
|
2691
|
-
"operator": {
|
|
2692
|
-
"description": "Character that characterizes how the filter is applied.\n\nFor example, for a facet filter `facet:value`, `:` is the operator.\nFor a numeric filter `count>50`, `>` is the operator.\n",
|
|
2693
|
-
"type": "string",
|
|
2694
|
-
"enum": [":", "<", "<=", "=", "!=", ">", ">="],
|
|
2695
|
-
"example": ":"
|
|
2696
|
-
},
|
|
2697
|
-
"value": {
|
|
2698
|
-
"description": "Attribute value.",
|
|
2699
|
-
"type": "string",
|
|
2700
|
-
"example": "integration"
|
|
2701
|
-
},
|
|
2702
|
-
"getTopFilterForAttribute": {
|
|
2703
|
-
"type": "object",
|
|
2704
|
-
"additionalProperties": false,
|
|
2705
|
-
"required": ["operator", "attribute", "value", "count"],
|
|
2706
|
-
"properties": {
|
|
2707
|
-
"attribute": {
|
|
2708
|
-
"$ref": "#/components/schemas/attribute"
|
|
2709
|
-
},
|
|
2710
|
-
"operator": {
|
|
2711
|
-
"$ref": "#/components/schemas/operator"
|
|
2712
|
-
},
|
|
2713
|
-
"value": {
|
|
2714
|
-
"$ref": "#/components/schemas/value"
|
|
2715
|
-
},
|
|
2716
|
-
"count": {
|
|
2717
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2718
|
-
}
|
|
2719
|
-
}
|
|
2720
|
-
},
|
|
2721
|
-
"getTopFilterForAttributeResponse": {
|
|
2722
|
-
"type": "object",
|
|
2723
|
-
"additionalProperties": false,
|
|
2724
|
-
"required": ["values"],
|
|
2725
|
-
"properties": {
|
|
2726
|
-
"values": {
|
|
2727
|
-
"type": "array",
|
|
2728
|
-
"description": "Filter values for an attribute.",
|
|
2729
|
-
"items": {
|
|
2730
|
-
"$ref": "#/components/schemas/getTopFilterForAttribute"
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
}
|
|
2734
|
-
},
|
|
2735
|
-
"getTopFiltersNoResultsValue": {
|
|
2736
|
-
"type": "object",
|
|
2737
|
-
"additionalProperties": false,
|
|
2738
|
-
"required": ["attribute", "operator", "value"],
|
|
2739
|
-
"properties": {
|
|
2740
|
-
"attribute": {
|
|
2741
|
-
"$ref": "#/components/schemas/attribute"
|
|
2742
|
-
},
|
|
2743
|
-
"operator": {
|
|
2744
|
-
"$ref": "#/components/schemas/operator"
|
|
2745
|
-
},
|
|
2746
|
-
"value": {
|
|
2747
|
-
"$ref": "#/components/schemas/value"
|
|
2748
|
-
}
|
|
2749
|
-
}
|
|
2750
|
-
},
|
|
2751
|
-
"getTopFiltersNoResultsValues": {
|
|
2752
|
-
"type": "object",
|
|
2753
|
-
"additionalProperties": false,
|
|
2754
|
-
"required": ["values", "count"],
|
|
2755
|
-
"properties": {
|
|
2756
|
-
"count": {
|
|
2757
|
-
"$ref": "#/components/schemas/parameters_count"
|
|
2758
|
-
},
|
|
2759
|
-
"values": {
|
|
2760
|
-
"type": "array",
|
|
2761
|
-
"description": "Filters with no results.",
|
|
2762
|
-
"items": {
|
|
2763
|
-
"$ref": "#/components/schemas/getTopFiltersNoResultsValue"
|
|
2764
|
-
}
|
|
2765
|
-
}
|
|
2766
|
-
}
|
|
2767
|
-
},
|
|
2768
|
-
"getTopFiltersNoResultsResponse": {
|
|
2769
|
-
"type": "object",
|
|
2770
|
-
"additionalProperties": false,
|
|
2771
|
-
"required": ["values"],
|
|
2772
|
-
"properties": {
|
|
2773
|
-
"values": {
|
|
2774
|
-
"oneOf": [
|
|
2775
|
-
{
|
|
2776
|
-
"type": "array",
|
|
2777
|
-
"description": "Filters for searches without any results.\nIf null, the search term specified with the `search` parameter isn't a search without results,\nor the `search` parameter is absent from the request.\n",
|
|
2778
|
-
"items": {
|
|
2779
|
-
"$ref": "#/components/schemas/getTopFiltersNoResultsValues"
|
|
2780
|
-
}
|
|
2781
|
-
},
|
|
2782
|
-
{
|
|
2783
|
-
"type": "null"
|
|
2784
|
-
}
|
|
2785
|
-
]
|
|
2786
|
-
}
|
|
2787
|
-
}
|
|
2788
|
-
},
|
|
2789
|
-
"updatedAtNullable": {
|
|
2790
|
-
"oneOf": [
|
|
2791
|
-
{
|
|
2792
|
-
"type": "string",
|
|
2793
|
-
"default": null,
|
|
2794
|
-
"description": "Date and time when the object was updated, in RFC 3339 format.",
|
|
2795
|
-
"example": "2023-07-04T12:49:15Z"
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
"type": "null"
|
|
2799
|
-
}
|
|
2800
|
-
]
|
|
2801
|
-
}
|
|
2802
|
-
},
|
|
2803
|
-
"responses": {
|
|
2804
|
-
"BadRequest": {
|
|
2805
|
-
"description": "Bad request or request arguments.",
|
|
2806
|
-
"content": {
|
|
2807
|
-
"application/json": {
|
|
2808
|
-
"schema": {
|
|
2809
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
2810
|
-
}
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2813
|
-
},
|
|
2814
|
-
"FeatureNotEnabled": {
|
|
2815
|
-
"description": "This feature is not enabled on your Algolia account.",
|
|
2816
|
-
"content": {
|
|
2817
|
-
"application/json": {
|
|
2818
|
-
"schema": {
|
|
2819
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
},
|
|
2824
|
-
"MethodNotAllowed": {
|
|
2825
|
-
"description": "Method not allowed with this API key.",
|
|
2826
|
-
"content": {
|
|
2827
|
-
"application/json": {
|
|
2828
|
-
"schema": {
|
|
2829
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
}
|
|
2833
|
-
},
|
|
2834
|
-
"IndexNotFound": {
|
|
2835
|
-
"description": "Index not found.",
|
|
2836
|
-
"content": {
|
|
2837
|
-
"application/json": {
|
|
2838
|
-
"schema": {
|
|
2839
|
-
"$ref": "#/components/schemas/ErrorBase"
|
|
2840
|
-
}
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
}
|
|
2844
|
-
},
|
|
2845
|
-
"headers": {
|
|
2846
|
-
"x-ratelimit-limit": {
|
|
2847
|
-
"description": "Number of allowed requests per one minute.",
|
|
2848
|
-
"example": 100,
|
|
2849
|
-
"schema": {
|
|
2850
|
-
"type": "integer"
|
|
2851
|
-
}
|
|
2852
|
-
},
|
|
2853
|
-
"x-ratelimit-remaining": {
|
|
2854
|
-
"description": "Number of remaining requests in the current period.",
|
|
2855
|
-
"example": 99,
|
|
2856
|
-
"schema": {
|
|
2857
|
-
"type": "integer"
|
|
2858
|
-
}
|
|
2859
|
-
},
|
|
2860
|
-
"x-ratelimit-reset": {
|
|
2861
|
-
"description": "Timstamp when the rate limit will reset, measured in seconds since the Unix epoch.",
|
|
2862
|
-
"example": 1710682486,
|
|
2863
|
-
"schema": {
|
|
2864
|
-
"type": "integer"
|
|
2865
|
-
}
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
},
|
|
2869
|
-
"x-tagGroups": [
|
|
2870
|
-
{
|
|
2871
|
-
"name": "Metrics",
|
|
2872
|
-
"tags": ["search", "click", "revenue", "filter", "user"]
|
|
2873
|
-
},
|
|
2874
|
-
{
|
|
2875
|
-
"name": "Other",
|
|
2876
|
-
"tags": ["status"]
|
|
2877
|
-
}
|
|
2878
|
-
]
|
|
2879
|
-
}
|