{ "openapi": "3.0.4", "info": { "title": "Analytics API", "description": "## Base URLs\n\nBase URLs for the Analytics API:\n\n- \u0060https://analytics.us.algolia.com\u0060\n- \u0060https://analytics.de.algolia.com\u0060\n- \u0060https://analytics.algolia.com\u0060 (alias of \u0060analytics.us.algolia.com\u0060)\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\nAdd these headers to authenticate requests:\n\n- \u0060x-algolia-application-id\u0060. Your Algolia application ID.\n- \u0060x-algolia-api-key\u0060. 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\u0027s reference.\n\nYou can find your application ID and API key in the [Algolia dashboard](https://dashboard.algolia.com/account/api-keys).\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 (\u0060\u002B\u0060) are interpreted as spaces.\n\n## Response status and errors\n\nThe Analytics API returns JSON responses.\nSince JSON doesn\u0027t guarantee any specific ordering, don\u0027t rely on the order of attributes in the API response.\n\n- Successful responses return a \u00602xx\u0060 status.\n- Client errors return a \u00604xx\u0060 status.\n- Server errors are indicated by a \u00605xx\u0060 status.\n\nError responses have a \u0060message\u0060 property with more information.\n\n## Version\n\nThe current version of the Analytics API is version 2, indicated by the \u0060/2/\u0060 in each endpoint\u0027s URL.\n\nA semantic patterns framework is also available under \u0060/3/patterns/*\u0060 for building custom\nanalytics queries.\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 \u0022prefix\u0022 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", "version": "2.0.0" }, "servers": [ { "url": "https://analytics.{region}.algolia.com", "variables": { "region": { "default": "us", "description": "The region where your Algolia application is hosted.", "enum": [ "us", "de" ] } } } ], "paths": { "/{path}": { "get": { "tags": [ "analytics" ], "summary": "Send requests to the Algolia REST API", "description": "This method lets you send requests to the Algolia REST API.", "operationId": "CustomGet", "parameters": [ { "name": "path", "in": "path", "description": "Path of the endpoint, for example \u00601/newFeature\u0060.", "required": true, "schema": { "type": "string", "example": "/keys" } }, { "$ref": "#/components/parameters/Parameters" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomGet200ResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } } }, "post": { "tags": [ "analytics" ], "summary": "Send requests to the Algolia REST API", "description": "This method lets you send requests to the Algolia REST API.", "operationId": "CustomPost", "parameters": [ { "name": "path", "in": "path", "description": "Path of the endpoint, for example \u00601/newFeature\u0060.", "required": true, "schema": { "type": "string", "example": "/keys" } }, { "$ref": "#/components/parameters/Parameters" } ], "requestBody": { "description": "Parameters to send with the custom request.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomPostRequestRequestBody" } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomPost200ResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } } }, "put": { "tags": [ "analytics" ], "summary": "Send requests to the Algolia REST API", "description": "This method lets you send requests to the Algolia REST API.", "operationId": "CustomPut", "parameters": [ { "name": "path", "in": "path", "description": "Path of the endpoint, for example \u00601/newFeature\u0060.", "required": true, "schema": { "type": "string", "example": "/keys" } }, { "$ref": "#/components/parameters/Parameters" } ], "requestBody": { "description": "Parameters to send with the custom request.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomPutRequestRequestBody" } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomPut200ResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } } }, "delete": { "tags": [ "analytics" ], "summary": "Send requests to the Algolia REST API", "description": "This method lets you send requests to the Algolia REST API.", "operationId": "CustomDelete", "parameters": [ { "name": "path", "in": "path", "description": "Path of the endpoint, for example \u00601/newFeature\u0060.", "required": true, "schema": { "type": "string", "example": "/keys" } }, { "$ref": "#/components/parameters/Parameters" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomDelete200ResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } } } }, "/2/searches": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top searches", "description": "Returns the most popular searches. For each search, it also includes the average number of hits.\n\nIf you set the \u0060clickAnalytics\u0060 query parameter to \u0060true\u0060, the response also includes:\n\n- Tracked searches count\n Tracked searches are Search API requests with \u0060clickAnalytics\u0060 set to \u0060true\u0060.\n This differs from the response\u0027s \u0060count\u0060, which includes searches where \u0060clickAnalytics\u0060 is \u0060false\u0060.\n- Click count\n- Click-through rate (CTR)\n- Conversion count\n- Conversion rate (CR)\n- Average click position\n\nIf you set the \u0060revenueAnalytics\u0060 query parameter to \u0060true\u0060, 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\u0027s a difference between 0% rates and null rates:**\n\n- **Null** means there were no queries. Algolia didn\u0027t receive any events, so rates 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", "operationId": "GetTopSearches", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/ClickAnalytics" }, { "$ref": "#/components/parameters/RevenueAnalytics" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/OrderBy" }, { "$ref": "#/components/parameters/Direction" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopSearchesResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-mcp-tool": true, "x-acl": [ "analytics" ] } }, "/2/searches/count": { "get": { "tags": [ "analytics" ], "summary": "Retrieve number of searches", "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", "operationId": "GetSearchesCount", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetSearchesCountResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/searches/noResults": { "get": { "tags": [ "analytics" ], "summary": "Retrieve the most frequent searches without results", "description": "Retrieves the 1,000 most frequent searches that produced zero results.", "operationId": "GetSearchesNoResults", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetSearchesNoResultsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/searches/noClicks": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top searches without clicks", "description": "Retrieves the most popular searches that didn\u0027t 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", "operationId": "GetSearchesNoClicks", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetSearchesNoClicksResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/searches/noResultRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve no results rate", "description": "Retrieves the fraction of searches that didn\u0027t 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", "operationId": "GetNoResultsRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetNoResultsRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-mcp-tool": true, "x-acl": [ "analytics" ] } }, "/2/searches/noClickRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve no click rate", "description": "Retrieves the fraction of searches whose query didn\u0027t lead to any click within a time range, including a daily breakdown.\nOnly tracked searches with at least one result are counted.\nA search counts as a search without clicks only when no search for the same query got a click in the time range,\nso the rate for a whole time range is usually lower than its daily rates.\nIt also returns the number of these searches and of searches without clicks.\n\nBy default, the analyzed period includes the last eight days including the current day.\n", "operationId": "GetNoClickRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetNoClickRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/hits": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top search results", "description": "Retrieves the object IDs of the 1,000 most frequent search results.\n\nIf you set the \u0060clickAnalytics\u0060 query parameter to \u0060true\u0060, the response also includes:\n\n- Tracked searches count.\n Tracked searches are Search API requests with \u0060clickAnalytics\u0060 set to \u0060true\u0060.\n This differs from the response\u0027s \u0060count\u0060, which includes searches where \u0060clickAnalytics\u0060 is \u0060false\u0060.\n- Click count\n- Click-through rate (CTR)\n- Conversion count\n- Conversion rate (CR)\n- Average click position\n\nIf you set the \u0060revenueAnalytics\u0060 parameter to \u0060true\u0060, 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\u0027s a difference between 0% rates and null rates:**\n\n- **Null** means there were no queries. Algolia didn\u0027t receive any events, so rates 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", "operationId": "GetTopHits", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/Search" }, { "$ref": "#/components/parameters/ClickAnalytics" }, { "$ref": "#/components/parameters/RevenueAnalytics" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopHitsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-mcp-tool": true, "x-acl": [ "analytics" ] } }, "/2/users/count": { "get": { "tags": [ "analytics" ], "summary": "Retrieve number of users", "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 \u0060userToken\u0060 API parameter or \u0060x-algolia-usertoken\u0060 request header.\n- The analyzed period includes the last eight days including the current day.\n", "externalDocs": { "description": "Distinguish users for analytics.", "url": "https://www.algolia.com/doc/guides/search-analytics/guides/usertoken" }, "operationId": "GetUsersCount", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetUsersCountResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/filters": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top filters", "description": "Retrieves the 1,000 most frequently used filter attributes.\n\nThese are attributes of your records that you included in the \u0060attributesForFaceting\u0060 setting.\n", "operationId": "GetTopFilterAttributes", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/Search" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopFilterAttributesResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/filters/{attribute}": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top filter values", "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 \u0060attributesForFaceting\u0060 setting.\n", "operationId": "GetTopFilterForAttribute", "parameters": [ { "name": "attribute", "in": "path", "description": "Attribute name.", "required": true, "schema": { "type": "string", "example": "brand" } }, { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/Search" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopFilterForAttributeResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/filters/noResults": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top filters for a search without results", "description": "Retrieves the 1,000 most frequently used filters for a search that didn\u0027t 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", "operationId": "GetTopFiltersNoResults", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/Search" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopFiltersNoResultsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/countries": { "get": { "tags": [ "analytics" ], "summary": "Retrieve top countries", "description": "Retrieves the countries with the most searches in your index.", "operationId": "GetTopCountries", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Limit" }, { "$ref": "#/components/parameters/Offset" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetTopCountriesResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/clicks/averageClickPosition": { "get": { "tags": [ "analytics" ], "summary": "Retrieve average click position", "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 \u0060null\u0060 when \u0060clickAnalytics\u0060 is enabled means Algolia didn\u0027t receive any [click events](https://www.algolia.com/doc/guides/sending-events/getting-started) for the queries.\nThe average is \u0060null\u0060 until Algolia receives at least one click event.\n", "operationId": "GetAverageClickPosition", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetAverageClickPositionResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/clicks/positions": { "get": { "tags": [ "analytics" ], "summary": "Retrieve click positions", "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 \u00600\u0060 when \u0060clickAnalytics\u0060 is enabled means Algolia didn\u0027t receive any [click events](https://www.algolia.com/doc/guides/sending-events/getting-started) for the queries.\n", "operationId": "GetClickPositions", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetClickPositionsResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/clicks/clickThroughRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve click-through rate", "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\u0027s a difference between a 0 and null CTR when \u0060clickAnalytics\u0060 is enabled:**\n\n- **Null** means there were no queries: since Algolia didn\u0027t 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", "operationId": "GetClickThroughRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetClickThroughRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/conversions/conversionRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve conversion rate", "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\u0027s a difference between a 0 and null CR when \u0060clickAnalytics\u0060 is enabled:**\n\n- **Null** means there were no queries: since Algolia didn\u0027t 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", "operationId": "GetConversionRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetConversionRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/conversions/addToCartRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve add-to-cart rate", "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 (\u0060clickAnalytics\u0060 is \u0060true\u0060).\nThis differs from the response\u0027s \u0060count\u0060, which shows the overall number of searches, including those where \u0060clickAnalytics\u0060 is \u0060false\u0060.\n\n**There\u0027s a difference between a 0 and null add-to-cart rate when \u0060clickAnalytics\u0060 is enabled:**\n\n- **Null** means there were no queries: since Algolia didn\u0027t 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", "operationId": "GetAddToCartRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetAddToCartRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/conversions/purchaseRate": { "get": { "tags": [ "analytics" ], "summary": "Retrieve purchase rate", "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 purchase conversion events divided by tracked searches.\nA search is tracked if it returns a query ID (\u0060clickAnalytics\u0060 is \u0060true\u0060).\nThis differs from the response\u0027s \u0060count\u0060, which includes searches where \u0060clickAnalytics\u0060 is \u0060false\u0060.\n\n**There\u0027s a difference between a 0 and null purchase rate when \u0060clickAnalytics\u0060 is enabled:**\n\n- **Null** means there were no queries. Algolia didn\u0027t receive any events, so the purchase rate is null.\n- **0** means there were queries but no [purchase conversion events](https://www.algolia.com/doc/guides/sending-events/getting-started) were received.\n", "operationId": "GetPurchaseRate", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetPurchaseRateResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/conversions/revenue": { "get": { "tags": [ "analytics" ], "summary": "Retrieve revenue data", "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 \u0060eventSubtype\u0060 attribute of \u0060purchase\u0060).\nThe revenue is the \u0060price\u0060 attribute multiplied by the \u0060quantity\u0060 attribute for each object in the event\u0027s \u0060objectData\u0060 array.\n", "operationId": "GetRevenue", "parameters": [ { "$ref": "#/components/parameters/Index" }, { "$ref": "#/components/parameters/StartDate" }, { "$ref": "#/components/parameters/EndDate" }, { "$ref": "#/components/parameters/Tags" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetRevenue" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/2/status": { "get": { "tags": [ "analytics" ], "summary": "Retrieve update status", "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 \u0060null\u0060.\n\nThe Analytics data is updated every 5\u0026nbsp;minutes.\n", "operationId": "GetStatus", "parameters": [ { "$ref": "#/components/parameters/Index" } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GetStatusResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-acl": [ "analytics" ] } }, "/3/patterns/fields": { "get": { "tags": [ "analytics" ], "summary": "Retrieve the field catalog", "description": "Returns the static catalog of analytics fields, grouped by domain and usage (metrics, filters,\ngroups, distributions). No authentication is required. Use it to discover valid \u0060(domain, kind)\u0060\npairs before building the other \u0060/3/patterns/*\u0060 queries; two fields are combinable in one query\nonly when their \u0060roots\u0060 intersect. Each entry\u0027s \u0060requires\u0060 lists the ACLs needed when that field\nis actually used in a query.\n", "operationId": "GetPatternsFields", "responses": { "200": { "description": "OK", "headers": { "ETag": { "description": "Strong entity tag over the catalog; stable per release.", "schema": { "type": "string" } }, "Cache-Control": { "description": "Caching directives for the catalog response.", "schema": { "type": "string" } } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Catalog" } } } }, "400": { "$ref": "#/components/responses/BadRequest" } }, "security": [], "x-beta": true, "x-acl": [] } }, "/3/patterns/timeseries": { "post": { "tags": [ "analytics" ], "summary": "Query a metrics time series", "description": "Returns one time series per \u0060groupBy\u0060 combination, each with period \u0060totals\u0060 and a per-day metric\nbreakdown. \u0060metrics\u0060 and \u0060parameters\u0060 are required; \u0060groupBy\u0060 and \u0060filters\u0060 are optional. Discover\nvalid field kinds per domain with \u0060/3/patterns/fields\u0060.\n", "operationId": "QueryPatternsTimeseries", "parameters": [ { "$ref": "#/components/parameters/IndexQuery" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TimeseriesPayload" } } }, "required": true }, "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TimeseriesResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-beta": true, "x-acl": [ "analytics" ] } }, "/3/patterns/scalar": { "post": { "tags": [ "analytics" ], "summary": "Query single-row aggregates", "description": "Aggregates the requested \u0060metrics\u0060 over the whole period and returns a single object keyed by metric\nkind. \u0060metrics\u0060 and \u0060parameters\u0060 are required; \u0060filters\u0060 is optional. Discover valid field kinds per\ndomain with \u0060/3/patterns/fields\u0060.\n", "operationId": "QueryPatternsScalar", "parameters": [ { "$ref": "#/components/parameters/IndexQuery" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScalarPayload" } } }, "required": true }, "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScalarResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-beta": true, "x-acl": [ "analytics" ] } }, "/3/patterns/table": { "post": { "tags": [ "analytics" ], "summary": "Query a grouped table", "description": "Returns \u0060rows\u0060, each a flat object of the requested fields. \u0060metrics\u0060 and \u0060parameters\u0060 are required;\n\u0060groupBy\u0060, \u0060filters\u0060, and \u0060orderBy\u0060 are optional, though \u0060orderBy\u0060 is required when \u0060groupBy\u0060 is set.\nDiscover valid field kinds per domain with \u0060/3/patterns/fields\u0060.\n", "operationId": "QueryPatternsTable", "parameters": [ { "$ref": "#/components/parameters/IndexQuery" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TablePayload" } } }, "required": true }, "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TableResponse" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-beta": true, "x-acl": [ "analytics" ] } }, "/3/patterns/distribution": { "post": { "tags": [ "analytics" ], "summary": "Query a numeric distribution", "description": "Buckets one or more numeric fields into histograms and returns an object keyed by \u0060histogram\u003CField\u003E\u0060,\neach mapping a bin label to a count. \u0060distributions\u0060 and \u0060parameters\u0060 are required; \u0060filters\u0060 is\noptional. Discover valid field kinds per domain with \u0060/3/patterns/fields\u0060.\n", "operationId": "QueryPatternsDistribution", "parameters": [ { "$ref": "#/components/parameters/IndexQuery" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DistributionPayload" } } }, "required": true }, "responses": { "200": { "description": "OK", "headers": { "x-ratelimit-limit": { "$ref": "#/components/headers/x-ratelimit-limit" }, "x-ratelimit-remaining": { "$ref": "#/components/headers/x-ratelimit-remaining" }, "x-ratelimit-reset": { "$ref": "#/components/headers/x-ratelimit-reset" } }, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DistributionResponseSchema" } } } }, "400": { "$ref": "#/components/responses/BadRequest" }, "402": { "$ref": "#/components/responses/FeatureNotEnabled" }, "403": { "$ref": "#/components/responses/MethodNotAllowed" }, "404": { "$ref": "#/components/responses/IndexNotFound" } }, "x-beta": true, "x-acl": [ "analytics" ] } }, "/setClientApiKey": { "get": { "tags": [ "analytics" ], "summary": "Switch the API key used to authenticate requests", "description": "Switch the API key used to authenticate requests.\n", "operationId": "SetClientApiKey", "parameters": [ { "name": "apiKey", "in": "query", "description": "API key to use for subsequent requests.", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No content." } }, "x-helper": true, "x-asynchronous-helper": false, "x-acl": [] } } }, "components": { "schemas": { "ErrorBase": { "type": "object", "properties": { "message": { "type": "string", "example": "Invalid Application-Id or API-Key" } }, "description": "Error.", "x-keep-model": true }, "OrderBy": { "enum": [ "searchCount", "clickThroughRate", "conversionRate", "averageClickPosition" ], "type": "string", "description": "Attribute by which to order the response items.\n\nIf the \u0060clickAnalytics\u0060 parameter is false, only \u0060searchCount\u0060 is available.\n", "x-ms-enum": { "name": "OrderBy", "modelAsString": false, "values": [ { "value": "searchCount", "name": "SearchCount" }, { "value": "clickThroughRate", "name": "ClickThroughRate" }, { "value": "conversionRate", "name": "ConversionRate" }, { "value": "averageClickPosition", "name": "AverageClickPosition" } ] } }, "Direction": { "enum": [ "asc", "desc" ], "type": "string", "x-ms-enum": { "name": "Direction", "modelAsString": false, "values": [ { "value": "asc", "name": "Asc" }, { "value": "desc", "name": "Desc" } ] } }, "TopSearchesResponse": { "title": "Top searches", "required": [ "searches" ], "type": "object", "properties": { "searches": { "type": "array", "items": { "$ref": "#/components/schemas/TopSearchesResponseSearchesItem" }, "description": "Most popular searches and their number of search results (hits)." } }, "additionalProperties": false }, "ClickThroughRate": { "maximum": 1, "exclusiveMaximum": false, "minimum": 0, "exclusiveMinimum": false, "type": "number", "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\u0027t receive any search requests with \u0060clickAnalytics\u0060 set to true.\n", "format": "double", "default": null, "nullable": true, "example": 0.49 }, "AverageClickPosition": { "minimum": 1, "exclusiveMinimum": false, "type": "number", "description": "Average position of a clicked search result in the list of search results.\nIf null, Algolia didn\u0027t receive any search requests with \u0060clickAnalytics\u0060 set to true.\n", "format": "double", "default": null, "nullable": true, "example": 2.035 }, "ConversionRate": { "maximum": 1, "exclusiveMaximum": false, "minimum": 0, "exclusiveMinimum": false, "type": "number", "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\u0027t receive any search requests with \u0060clickAnalytics\u0060 set to true.\n", "format": "double", "default": null, "nullable": true, "example": 0.05 }, "TopSearchesResponseWithAnalytics": { "title": "Top searches with click analytics", "required": [ "searches" ], "type": "object", "properties": { "searches": { "type": "array", "items": { "$ref": "#/components/schemas/TopSearchesResponseWithAnalyticsSearchesItem" }, "description": "Most popular searches and their associated click and conversion metrics." } }, "additionalProperties": false }, "AddToCartRate": { "maximum": 1, "exclusiveMaximum": false, "minimum": 0, "exclusiveMinimum": false, "type": "number", "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\u0027t receive any search requests with \u0060clickAnalytics\u0060 set to true.\n", "format": "double", "default": null, "nullable": true, "example": 0.1 }, "PurchaseRate": { "maximum": 1, "exclusiveMaximum": false, "minimum": 0, "exclusiveMinimum": false, "type": "number", "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\u0027t receive any search requests with \u0060clickAnalytics\u0060 set to true.\n", "format": "double", "default": null, "nullable": true, "example": 0.05 }, "TopSearchesResponseWithRevenueAnalytics": { "title": "Top searches with revenue analytics", "required": [ "searches" ], "type": "object", "properties": { "searches": { "type": "array", "items": { "$ref": "#/components/schemas/TopSearchesResponseWithRevenueAnalyticsSearchesItem" }, "description": "Most popular searches, including their click and revenue metrics." } }, "additionalProperties": false }, "GetTopSearchesResponse": { "oneOf": [ { "$ref": "#/components/schemas/TopSearchesResponse" }, { "$ref": "#/components/schemas/TopSearchesResponseWithAnalytics" }, { "$ref": "#/components/schemas/TopSearchesResponseWithRevenueAnalytics" } ] }, "TopHitsResponse": { "title": "Top search results", "required": [ "hits" ], "type": "object", "properties": { "hits": { "type": "array", "items": { "$ref": "#/components/schemas/TopHitsResponseHitsItem" }, "description": "Most frequent search results." } }, "additionalProperties": false }, "TopHitsResponseWithAnalytics": { "title": "Top search results with click analytics", "required": [ "hits" ], "type": "object", "properties": { "hits": { "type": "array", "items": { "$ref": "#/components/schemas/TopHitsResponseWithAnalyticsHitsItem" }, "description": "Most frequent search results with click and conversion metrics." } }, "additionalProperties": false }, "TopHitsResponseWithRevenueAnalytics": { "title": "Top search results with revenue analytics", "required": [ "hits" ], "type": "object", "properties": { "hits": { "type": "array", "items": { "$ref": "#/components/schemas/TopHitsResponseWithRevenueAnalyticsHitsItem" }, "description": "Most frequent search results with click, conversion, and revenue metrics." } }, "additionalProperties": false }, "GetTopHitsResponse": { "oneOf": [ { "$ref": "#/components/schemas/TopHitsResponse" }, { "$ref": "#/components/schemas/TopHitsResponseWithAnalytics" }, { "$ref": "#/components/schemas/TopHitsResponseWithRevenueAnalytics" } ] }, "GetTopFilterAttribute": { "required": [ "attribute", "count" ], "type": "object", "properties": { "attribute": { "type": "string", "description": "Attribute name.", "example": "url" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 } }, "additionalProperties": false }, "GetTopFilterAttributesResponse": { "required": [ "attributes" ], "type": "object", "properties": { "attributes": { "type": "array", "items": { "$ref": "#/components/schemas/GetTopFilterAttribute" }, "description": "Most frequent filters." } }, "additionalProperties": false }, "OperatorType": { "enum": [ ":", "\u003C", "\u003C=", "=", "!=", "\u003E", "\u003E=" ], "type": "string", "description": "Character that characterizes how the filter is applied.\n\nFor example, for a facet filter \u0060facet:value\u0060, \u0060:\u0060 is the operator.\nFor a numeric filter \u0060count\u003E50\u0060, \u0060\u003E\u0060 is the operator.\n", "example": ":", "x-ms-enum": { "name": "OperatorType", "modelAsString": false, "values": [ { "value": ":", "name": "Colon" }, { "value": "\u003C", "name": "LessThan" }, { "value": "\u003C=", "name": "LessThanOrEqual" }, { "value": "=", "name": "Equal" }, { "value": "!=", "name": "ExclamationEqual" }, { "value": "\u003E", "name": "GreaterThan" }, { "value": "\u003E=", "name": "GreaterThanOrEqual" } ] } }, "GetTopFilterForAttributeBody": { "required": [ "operator", "attribute", "value", "count" ], "type": "object", "properties": { "attribute": { "type": "string", "description": "Attribute name.", "example": "url" }, "operator": { "$ref": "#/components/schemas/OperatorType" }, "value": { "type": "string", "description": "Attribute value.", "example": "integration" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 } }, "additionalProperties": false }, "GetTopFilterForAttributeResponse": { "required": [ "values" ], "type": "object", "properties": { "values": { "type": "array", "items": { "$ref": "#/components/schemas/GetTopFilterForAttributeBody" }, "description": "Filter values for an attribute." } }, "additionalProperties": false }, "GetTopFiltersNoResultsValue": { "required": [ "attribute", "operator", "value" ], "type": "object", "properties": { "attribute": { "type": "string", "description": "Attribute name.", "example": "url" }, "operator": { "$ref": "#/components/schemas/OperatorType" }, "value": { "type": "string", "description": "Attribute value.", "example": "integration" } }, "additionalProperties": false }, "GetTopFiltersNoResultsValues": { "required": [ "values", "count" ], "type": "object", "properties": { "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "values": { "type": "array", "items": { "$ref": "#/components/schemas/GetTopFiltersNoResultsValue" }, "description": "Filters with no results." } }, "additionalProperties": false }, "GetTopFiltersNoResultsResponse": { "required": [ "values" ], "type": "object", "properties": { "values": { "type": "array", "items": { "$ref": "#/components/schemas/GetTopFiltersNoResultsValues" }, "description": "Filters for searches without any results.\nIf null, the search term specified with the \u0060search\u0060 parameter isn\u0027t a search without results,\nor the \u0060search\u0060 parameter is absent from the request.\n", "nullable": true } }, "additionalProperties": false }, "UpdatedAtNullable": { "type": "string", "description": "Date and time when the object was updated, in RFC 3339 format.", "default": null, "nullable": true, "example": "2023-07-04T12:49:15Z" }, "CatalogEntry": { "title": "Catalog entry", "required": [ "kind", "description", "roots", "requires" ], "type": "object", "properties": { "kind": { "type": "string", "description": "Field identifier." }, "description": { "type": "string", "description": "Human-readable description of the field." }, "roots": { "type": "array", "items": { "type": "string" }, "description": "Root stages the field depends on. Two fields are combinable in one query only when their roots intersect." }, "requires": { "type": "array", "items": { "type": "string" }, "description": "Public ACL identifiers required to read the field, for example \u0060revenueAnalyticsEnabled\u0060." } }, "additionalProperties": false }, "DomainCatalog": { "title": "Domain catalog", "required": [ "metrics", "filters", "groups", "distributions" ], "type": "object", "properties": { "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogEntry" }, "description": "Fields usable as metrics." }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogEntry" }, "description": "Fields usable as filters." }, "groups": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogEntry" }, "description": "Fields usable in \u0060groupBy\u0060." }, "distributions": { "type": "array", "items": { "$ref": "#/components/schemas/CatalogEntry" }, "description": "Fields usable in distributions." } }, "additionalProperties": false }, "Catalog": { "title": "Field catalog", "required": [ "domains" ], "type": "object", "properties": { "domains": { "$ref": "#/components/schemas/CatalogDomainsProperty" } }, "additionalProperties": false }, "FieldReference": { "title": "Field reference", "required": [ "kind" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the field belongs to. Defaults to the payload\u0027s top-level \u0060domain\u0060 when omitted.", "example": "core" }, "kind": { "type": "string", "description": "Field identifier within the domain, as listed by the \u0060/3/patterns/fields\u0060 catalog.", "example": "searchesCount" } }, "additionalProperties": false }, "ParameterReference": { "title": "Parameter reference", "required": [ "kind" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the parameter belongs to.", "example": "core" }, "kind": { "type": "string", "description": "Parameter identifier that resolves to a value supplied in \u0060parameters\u0060.", "example": "country" } }, "additionalProperties": false }, "FilterDefinition": { "title": "Filter definition", "required": [ "kind" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the field belongs to." }, "kind": { "type": "string", "description": "Field to filter on. With no \u0060operator\u0060, the field must be boolean.", "example": "country" }, "operator": { "type": "string", "description": "Comparison operator applied to a filter field, one of: \u0060=\u0060, \u0060!=\u0060, \u0060\u003E\u0060, \u0060\u003C\u0060, \u0060\u003E=\u0060, \u0060\u003C=\u0060, \u0060IN\u0060, \u0060TAG_TREE\u0060, \u0060CONTAINS\u0060, \u0060STARTS_WITH\u0060, \u0060CONTAINS_PREFIX\u0060. Requires a \u0060parameter\u0060 to carry the operand.", "example": "=" }, "parameter": { "$ref": "#/components/schemas/ParameterReference" } }, "additionalProperties": false }, "ParameterValue": { "oneOf": [ { "type": "string" }, { "type": "number", "format": "double" }, { "type": "boolean" }, { "type": "array", "items": { "type": "string" } } ], "description": "Literal value. Its JSON type depends on \u0060kind\u0060 (array of strings for \u0060indices\u0060, string for dates, tags, and country, number for numeric operands, and so on)." }, "ParameterDefinition": { "title": "Parameter definition", "required": [ "kind", "value" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the parameter belongs to." }, "kind": { "type": "string", "description": "Parameter identifier, for example \u0060indices\u0060, \u0060startDate\u0060, \u0060endDate\u0060, \u0060tags\u0060, or \u0060country\u0060.", "example": "indices" }, "value": { "$ref": "#/components/schemas/ParameterValue" } }, "additionalProperties": false }, "TimeseriesPayload": { "title": "Timeseries query", "required": [ "metrics", "parameters" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Default domain propagated to entries that omit their own.", "example": "core" }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/FieldReference" }, "description": "Fields to aggregate." }, "groupBy": { "type": "array", "items": { "$ref": "#/components/schemas/FieldReference" }, "description": "Fields to split the series by." }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" }, "description": "Filter conditions." }, "parameters": { "type": "array", "items": { "$ref": "#/components/schemas/ParameterDefinition" }, "description": "Literal values referenced by the query." }, "limit": { "maximum": 100, "minimum": 1, "type": "integer", "description": "Maximum number of series (groupBy values) to return.", "default": 100 }, "offset": { "minimum": 0, "type": "integer", "description": "Number of series to skip.", "default": 0 } }, "additionalProperties": false }, "TimeseriesResponse": { "title": "Timeseries response", "required": [ "series" ], "type": "object", "properties": { "series": { "type": "array", "items": { "$ref": "#/components/schemas/TimeseriesResponseSeriesItem" }, "description": "One entry per \u0060groupBy\u0060 combination. \u0060null\u0060 when the query matched no data.", "nullable": true } }, "additionalProperties": false }, "ScalarPayload": { "title": "Scalar query", "required": [ "metrics", "parameters" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Default domain propagated to entries that omit their own.", "example": "core" }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/FieldReference" }, "description": "Fields to aggregate." }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" }, "description": "Filter conditions." }, "parameters": { "type": "array", "items": { "$ref": "#/components/schemas/ParameterDefinition" }, "description": "Literal values referenced by the query." } }, "additionalProperties": false }, "OrderDirection": { "enum": [ "asc", "desc" ], "type": "string", "description": "Sort direction.", "x-ms-enum": { "name": "OrderDirection", "modelAsString": false, "values": [ { "value": "asc", "name": "Asc" }, { "value": "desc", "name": "Desc" } ] } }, "OrderDefinition": { "title": "Order definition", "required": [ "kind", "direction" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the field belongs to." }, "kind": { "type": "string", "description": "Field to sort by. Must appear in \u0060metrics\u0060 or \u0060groupBy\u0060.", "example": "searchesCount" }, "direction": { "$ref": "#/components/schemas/OrderDirection" } }, "additionalProperties": false }, "TablePayload": { "title": "Table query", "required": [ "metrics", "parameters" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Default domain propagated to entries that omit their own.", "example": "core" }, "metrics": { "type": "array", "items": { "$ref": "#/components/schemas/FieldReference" }, "description": "Fields to aggregate." }, "groupBy": { "type": "array", "items": { "$ref": "#/components/schemas/FieldReference" }, "description": "Fields to split rows by." }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" }, "description": "Filter conditions." }, "parameters": { "type": "array", "items": { "$ref": "#/components/schemas/ParameterDefinition" }, "description": "Literal values referenced by the query." }, "orderBy": { "type": "array", "items": { "$ref": "#/components/schemas/OrderDefinition" }, "description": "Sort specification. Required when \u0060groupBy\u0060 is set." }, "limit": { "maximum": 1000, "minimum": 1, "type": "integer", "description": "Maximum number of rows to return.", "default": 1000 }, "offset": { "minimum": 0, "type": "integer", "description": "Number of rows to skip.", "default": 0 } }, "additionalProperties": false, "description": "When \u0060groupBy\u0060 is set, \u0060orderBy\u0060 is required." }, "TableResponse": { "title": "Table response", "required": [ "rows" ], "type": "object", "properties": { "rows": { "type": "array", "items": { "$ref": "#/components/schemas/TableResponseRowsItemProperty" }, "description": "Result rows. Each row is a flat object of the requested fields." } }, "additionalProperties": false }, "BinEdge": { "oneOf": [ { "type": "integer" }, { "type": "number", "format": "double" } ], "description": "A histogram bin edge. Use integers for discrete distributions and floating-point values for continuous ones." }, "DistributionDefinition": { "title": "Distribution definition", "required": [ "kind", "bins" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Domain the field belongs to." }, "kind": { "type": "string", "description": "Numeric field to bucket into a histogram.", "example": "clickPosition" }, "continuous": { "type": "boolean", "description": "Set to true for continuous kinds; use float bins.", "default": false }, "bins": { "type": "array", "items": { "$ref": "#/components/schemas/BinEdge" }, "description": "Bin edges.", "example": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 21, -1 ] } }, "additionalProperties": false }, "DistributionPayload": { "title": "Distribution query", "required": [ "distributions", "parameters" ], "type": "object", "properties": { "domain": { "type": "string", "description": "Default domain propagated to entries that omit their own.", "example": "core" }, "distributions": { "type": "array", "items": { "$ref": "#/components/schemas/DistributionDefinition" }, "description": "Histogram specifications." }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/FilterDefinition" }, "description": "Filter conditions." }, "parameters": { "type": "array", "items": { "$ref": "#/components/schemas/ParameterDefinition" }, "description": "Literal values referenced by the query." } }, "additionalProperties": false }, "ClickPositionsItem": { "title": "clickPosition", "type": "object", "properties": { "position": { "maxItems": 2, "minItems": 2, "type": "array", "items": { "type": "integer" }, "description": "Range of positions in the search results, using the pattern \u0060[start,end]\u0060.\n\nFor positions 11 and up, click events are summed over the specified range.\n\u0060-1\u0060 indicates the end of the list of search results.\n", "example": [ 21, -1 ] }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of times this search has been clicked at that position.", "default": 0, "example": 24 } }, "description": "Click position." }, "TopSearchesResponseSearchesItem": { "title": "topSearch", "required": [ "search", "count", "nbHits" ], "type": "object", "properties": { "search": { "type": "string", "description": "Search query.", "example": "separator" }, "count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "nbHits": { "type": "integer", "description": "Number of results (hits).", "example": 20 } }, "additionalProperties": false }, "TopSearchesResponseWithAnalyticsSearchesItem": { "title": "topSearchWithAnalytics", "required": [ "search", "count", "nbHits", "clickThroughRate", "averageClickPosition", "clickPositions", "conversionRate", "trackedSearchCount", "clickCount", "conversionCount" ], "type": "object", "properties": { "search": { "type": "string", "description": "Search query.", "example": "separator" }, "count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "clickThroughRate": { "$ref": "#/components/schemas/ClickThroughRate" }, "averageClickPosition": { "$ref": "#/components/schemas/AverageClickPosition" }, "clickPositions": { "maxItems": 12, "minItems": 12, "type": "array", "items": { "$ref": "#/components/schemas/ClickPositionsItem" }, "description": "List of positions in the search results and clicks associated with this search." }, "conversionRate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "nbHits": { "type": "integer", "description": "Number of results (hits).", "example": 20 } }, "additionalProperties": false }, "CurrenciesAdditionalProperties": { "title": "currencyCode", "type": "object", "properties": { "currency": { "type": "string", "description": "Currency code.", "example": "USD" }, "revenue": { "type": "number", "description": "Revenue associated with this search in this currency.", "format": "float", "example": 999.98 } }, "description": "Currency code.", "x-additionalPropertiesName": "currency" }, "TopSearchesResponseWithRevenueAnalyticsSearchesItem": { "title": "topSearchWithRevenueAnalytics", "required": [ "search", "count", "nbHits", "clickThroughRate", "averageClickPosition", "clickPositions", "conversionRate", "trackedSearchCount", "clickCount", "conversionCount", "currencies", "addToCartRate", "addToCartCount", "purchaseRate", "purchaseCount" ], "type": "object", "properties": { "search": { "type": "string", "description": "Search query.", "example": "separator" }, "count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "clickThroughRate": { "$ref": "#/components/schemas/ClickThroughRate" }, "averageClickPosition": { "$ref": "#/components/schemas/AverageClickPosition" }, "clickPositions": { "maxItems": 12, "minItems": 12, "type": "array", "items": { "$ref": "#/components/schemas/ClickPositionsItem" }, "description": "List of positions in the search results and clicks associated with this search." }, "conversionRate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "nbHits": { "type": "integer", "description": "Number of results (hits).", "example": 20 }, "currencies": { "$ref": "#/components/schemas/TopSearchesResponseWithRevenueAnalyticsSearchesItemCurrencies" }, "addToCartRate": { "$ref": "#/components/schemas/AddToCartRate" }, "addToCartCount": { "minimum": 0, "type": "integer", "description": "Number of add-to-cart events from this search.", "default": 0, "example": 10 }, "purchaseRate": { "$ref": "#/components/schemas/PurchaseRate" }, "purchaseCount": { "type": "integer", "description": "Number of purchase events from this search.", "default": 0, "example": 10 } }, "additionalProperties": false }, "TopHitsResponseHitsItem": { "title": "topHit", "required": [ "hit", "count" ], "type": "object", "properties": { "hit": { "type": "string", "description": "Object ID of a record returned as a search result.", "example": "method-export-rules-php" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 } }, "additionalProperties": false }, "TopHitsResponseWithAnalyticsHitsItem": { "title": "topHitWithAnalytics", "required": [ "hit", "count", "clickThroughRate", "conversionRate", "trackedHitCount", "clickCount", "conversionCount" ], "type": "object", "properties": { "hit": { "type": "string", "description": "Object ID of a record returned as a search result.", "example": "method-export-rules-php" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "clickThroughRate": { "$ref": "#/components/schemas/ClickThroughRate" }, "conversionRate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedHitCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 } }, "additionalProperties": false }, "TopHitsResponseWithRevenueAnalyticsHitsItem": { "title": "topHitWithRevenueAnalytics", "required": [ "hit", "count", "clickThroughRate", "conversionRate", "trackedHitCount", "clickCount", "conversionCount", "purchaseCount", "addToCartCount", "purchaseRate", "addToCartRate", "currencies" ], "type": "object", "properties": { "hit": { "type": "string", "description": "Object ID of a record returned as a search result.", "example": "method-export-rules-php" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "clickThroughRate": { "$ref": "#/components/schemas/ClickThroughRate" }, "conversionRate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedHitCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "addToCartRate": { "$ref": "#/components/schemas/AddToCartRate" }, "addToCartCount": { "minimum": 0, "type": "integer", "description": "Number of add-to-cart events from this search.", "default": 0, "example": 10 }, "purchaseRate": { "$ref": "#/components/schemas/PurchaseRate" }, "purchaseCount": { "type": "integer", "description": "Number of purchase events from this search.", "default": 0, "example": 10 }, "currencies": { "$ref": "#/components/schemas/TopHitsResponseWithRevenueAnalyticsHitsItemCurrencies" } }, "additionalProperties": false }, "TimeseriesResponseSeriesItem": { "title": "series", "required": [ "totals", "dates" ], "type": "object", "properties": { "key": { "$ref": "#/components/schemas/TimeseriesResponseSeriesItemKeyProperty" }, "totals": { "$ref": "#/components/schemas/TimeseriesResponseSeriesItemTotalsProperty" }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/TimeseriesResponseSeriesItemDatesItem" }, "description": "Per-day metric breakdown." } }, "additionalProperties": false }, "TimeseriesResponseSeriesItemDatesItem": { "title": "seriesDate", "required": [ "date", "metrics" ], "type": "object", "properties": { "date": { "type": "string", "description": "Day, formatted as YYYY-MM-DD." }, "metrics": { "$ref": "#/components/schemas/TimeseriesResponseSeriesItemDatesItemMetricsProperty" } }, "additionalProperties": false }, "GetSearchesCountResponse": { "title": "getSearchesCountResponse", "required": [ "dates", "count" ], "type": "object", "properties": { "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetSearchesCountResponseDatesItem" }, "description": "Daily number of searches." } }, "additionalProperties": false }, "GetSearchesNoResultsResponse": { "title": "getSearchesNoResultsResponse", "required": [ "searches" ], "type": "object", "properties": { "searches": { "type": "array", "items": { "$ref": "#/components/schemas/GetSearchesNoResultsResponseSearchesItem" }, "description": "Searches without results." } }, "additionalProperties": false }, "GetSearchesNoClicksResponse": { "title": "getSearchesNoClicksResponse", "required": [ "searches" ], "type": "object", "properties": { "searches": { "type": "array", "items": { "$ref": "#/components/schemas/GetSearchesNoClicksResponseSearchesItem" }, "description": "Searches without any clicks." } }, "additionalProperties": false }, "GetNoResultsRateResponse": { "title": "getNoResultsRateResponse", "required": [ "rate", "count", "noResultCount", "dates" ], "type": "object", "properties": { "rate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No results rate: calculated as the number of searches with zero results divided by the total number of searches.\n", "format": "double", "example": 0.49 }, "count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "noResultCount": { "type": "integer", "description": "Number of searches without any results.", "example": 54 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetNoResultsRateResponseDatesItem" }, "description": "Daily no results rates." } }, "additionalProperties": false }, "GetNoClickRateResponse": { "title": "getNoClickRateResponse", "required": [ "dates", "count", "noClickCount", "rate" ], "type": "object", "properties": { "rate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No click rate: calculated as the number of tracked searches with results whose query didn\u0027t get any click in the time range, divided by the number of tracked searches with results.\n", "format": "double", "example": 0.15 }, "count": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "noClickCount": { "minimum": 1, "type": "integer", "description": "Number of tracked searches with results whose query didn\u0027t get any click in the time range.", "example": 15 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetNoClickRateResponseDatesItem" }, "description": "Daily no click rates." } }, "additionalProperties": false }, "GetUsersCountResponse": { "title": "getUsersCountResponse", "required": [ "dates", "count" ], "type": "object", "properties": { "count": { "type": "integer", "description": "Number of unique users." }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetUsersCountResponseDatesItem" }, "description": "Daily number of unique users." } }, "additionalProperties": false }, "GetTopCountriesResponse": { "title": "getTopCountriesResponse", "required": [ "countries" ], "type": "object", "properties": { "countries": { "type": "array", "items": { "$ref": "#/components/schemas/GetTopCountriesResponseCountriesItem" }, "description": "Countries and number of searches." } }, "additionalProperties": false }, "CustomGet200ResponseSchema": { "type": "object" }, "CustomPostRequestRequestBody": { "type": "object" }, "CustomPost200ResponseSchema": { "type": "object" }, "CustomPutRequestRequestBody": { "type": "object" }, "CustomPut200ResponseSchema": { "type": "object" }, "CustomDelete200ResponseSchema": { "type": "object" }, "GetAverageClickPositionResponse": { "title": "getAverageClickPositionResponse", "required": [ "average", "clickCount", "dates" ], "type": "object", "properties": { "average": { "$ref": "#/components/schemas/AverageClickPosition" }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetAverageClickPositionResponseDatesItem" }, "description": "Daily average click positions." } }, "additionalProperties": false }, "GetClickPositionsResponse": { "title": "getClickPositionsResponse", "required": [ "positions" ], "type": "object", "properties": { "positions": { "maxItems": 12, "minItems": 12, "type": "array", "items": { "$ref": "#/components/schemas/ClickPositionsItem" }, "description": "List of positions in the search results and clicks associated with this search." } }, "additionalProperties": false }, "GetClickThroughRateResponse": { "title": "getClickThroughRateResponse", "required": [ "dates", "clickCount", "trackedSearchCount", "rate" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/ClickThroughRate" }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetClickThroughRateResponseDatesItem" }, "description": "Daily click-through rates." } }, "additionalProperties": false }, "GetConversionRateResponse": { "title": "getConversionRateResponse", "required": [ "dates", "trackedSearchCount", "conversionCount", "rate" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetConversionRateResponseDatesItem" }, "description": "Daily conversion rates." } }, "additionalProperties": false }, "GetAddToCartRateResponse": { "title": "getAddToCartRateResponse", "required": [ "dates", "trackedSearchCount", "addToCartCount", "rate" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/AddToCartRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "addToCartCount": { "minimum": 0, "type": "integer", "description": "Number of add-to-cart events from this search.", "default": 0, "example": 10 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetAddToCartRateResponseDatesItem" }, "description": "Daily add-to-cart rates." } }, "additionalProperties": false }, "GetPurchaseRateResponse": { "title": "getPurchaseRateResponse", "required": [ "dates", "trackedSearchCount", "purchaseCount", "rate" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/PurchaseRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "purchaseCount": { "type": "integer", "description": "Number of purchase events from this search.", "default": 0, "example": 10 }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetPurchaseRateResponseDatesItem" }, "description": "Daily purchase rates." } }, "additionalProperties": false }, "GetRevenue": { "title": "getRevenue", "required": [ "currencies", "dates" ], "type": "object", "properties": { "currencies": { "$ref": "#/components/schemas/GetRevenueCurrencies" }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/GetRevenueDatesItem" }, "description": "Daily revenue." } }, "additionalProperties": false }, "GetStatusResponse": { "title": "getStatusResponse", "required": [ "updatedAt" ], "type": "object", "properties": { "updatedAt": { "$ref": "#/components/schemas/UpdatedAtNullable" } }, "additionalProperties": false }, "ScalarResponseSchema": { "title": "Scalar response", "type": "object", "description": "Object keyed by metric kind, each mapping to its aggregate value." }, "DistributionResponseSchema": { "title": "Distribution response", "type": "object", "description": "Object keyed by \u0060histogram\u003CField\u003E\u0060, each mapping a bin label to a count." }, "CatalogDomainsProperty": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/DomainCatalog" }, "description": "Catalog entries grouped by domain." }, "TableResponseRowsItemProperty": { "type": "object" }, "TopSearchesResponseWithRevenueAnalyticsSearchesItemCurrencies": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/CurrenciesAdditionalProperties" }, "description": "Revenue associated with this search: broken down by currency.\n" }, "TopHitsResponseWithRevenueAnalyticsHitsItemCurrencies": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/CurrenciesAdditionalProperties" }, "description": "Revenue associated with this search: broken down by currency.\n" }, "TimeseriesResponseSeriesItemKeyProperty": { "type": "object", "description": "The \u0060groupBy\u0060 values identifying this series. Absent when the query has no \u0060groupBy\u0060." }, "TimeseriesResponseSeriesItemTotalsProperty": { "type": "object", "description": "Metric totals over the whole period." }, "TimeseriesResponseSeriesItemDatesItemMetricsProperty": { "type": "object", "description": "Metric values for the day." }, "GetSearchesCountResponseDatesItem": { "title": "dailySearches", "required": [ "date", "count" ], "type": "object", "properties": { "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 } }, "additionalProperties": false }, "GetSearchesNoResultsResponseSearchesItem": { "title": "dailySearchesNoResults", "required": [ "search", "count", "withFilterCount" ], "type": "object", "properties": { "search": { "type": "string", "description": "Search query.", "example": "separator" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "withFilterCount": { "minimum": 0, "type": "integer", "description": "Number of searches for this term with applied filters.", "default": 0, "example": 5 } }, "additionalProperties": false }, "GetSearchesNoClicksResponseSearchesItem": { "title": "dailySearchesNoClicks", "required": [ "search", "count", "nbHits" ], "type": "object", "properties": { "search": { "type": "string", "description": "Search query.", "example": "separator" }, "count": { "minimum": 1, "type": "integer", "description": "Number of tracked searches.", "example": 7 }, "nbHits": { "type": "integer", "description": "Number of results (hits).", "example": 20 } }, "additionalProperties": false }, "GetNoResultsRateResponseDatesItem": { "title": "dailyNoResultsRates", "required": [ "date", "noResultCount", "count", "rate" ], "type": "object", "properties": { "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" }, "noResultCount": { "type": "integer", "description": "Number of searches without any results.", "example": 54 }, "count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "rate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No results rate: calculated as the number of searches with zero results divided by the total number of searches.\n", "format": "double", "example": 0.49 } }, "additionalProperties": false }, "GetNoClickRateResponseDatesItem": { "title": "dailyNoClickRates", "required": [ "rate", "count", "noClickCount", "date" ], "type": "object", "properties": { "rate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No click rate: calculated as the number of tracked searches with results whose query didn\u0027t get any click in the time range, divided by the number of tracked searches with results.\n", "format": "double", "example": 0.15 }, "count": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "noClickCount": { "minimum": 1, "type": "integer", "description": "Number of tracked searches with results whose query didn\u0027t get any click in the time range.", "example": 15 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetUsersCountResponseDatesItem": { "title": "dailyUsers", "required": [ "date", "count" ], "type": "object", "properties": { "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" }, "count": { "type": "integer", "description": "Number of unique users." } }, "additionalProperties": false }, "GetTopCountriesResponseCountriesItem": { "title": "topCountry", "required": [ "country", "count" ], "type": "object", "properties": { "country": { "type": "string", "description": "Country code.", "example": "UK" }, "count": { "type": "integer", "description": "Number of occurrences.", "example": 2 } }, "additionalProperties": false }, "GetAverageClickPositionResponseDatesItem": { "title": "dailyAverageClicks", "required": [ "average", "clickCount", "date" ], "type": "object", "properties": { "average": { "$ref": "#/components/schemas/AverageClickPosition" }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetClickThroughRateResponseDatesItem": { "title": "dailyClickThroughRates", "required": [ "rate", "clickCount", "trackedSearchCount", "date" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/ClickThroughRate" }, "clickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetConversionRateResponseDatesItem": { "title": "dailyConversionRates", "required": [ "rate", "trackedSearchCount", "conversionCount", "date" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/ConversionRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "conversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetAddToCartRateResponseDatesItem": { "title": "dailyAddToCartRates", "required": [ "rate", "trackedSearchCount", "addToCartCount", "date" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/AddToCartRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "addToCartCount": { "minimum": 0, "type": "integer", "description": "Number of add-to-cart events from this search.", "default": 0, "example": 10 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetPurchaseRateResponseDatesItem": { "title": "dailyPurchaseRates", "required": [ "rate", "trackedSearchCount", "purchaseCount", "date" ], "type": "object", "properties": { "rate": { "$ref": "#/components/schemas/PurchaseRate" }, "trackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "purchaseCount": { "type": "integer", "description": "Number of purchase events from this search.", "default": 0, "example": 10 }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetRevenueCurrencies": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/CurrenciesAdditionalProperties" }, "description": "Revenue associated with this search: broken down by currency.\n" }, "GetRevenueDatesItem": { "title": "dailyRevenue", "required": [ "currencies", "date" ], "type": "object", "properties": { "currencies": { "$ref": "#/components/schemas/GetRevenueDatesItemCurrencies" }, "date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" } }, "additionalProperties": false }, "GetRevenueDatesItemCurrencies": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/CurrenciesAdditionalProperties" }, "description": "Revenue associated with this search: broken down by currency.\n" } }, "responses": { "BadRequest": { "description": "Bad request or request arguments.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorBase" } } } }, "FeatureNotEnabled": { "description": "This feature is not enabled on your Algolia account.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorBase" } } } }, "MethodNotAllowed": { "description": "Method not allowed with this API key.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorBase" } } } }, "IndexNotFound": { "description": "Index not found.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorBase" } } } } }, "parameters": { "PathInPath": { "name": "path", "in": "path", "description": "Path of the endpoint, for example \u00601/newFeature\u0060.", "required": true, "schema": { "type": "string", "example": "/keys" } }, "Parameters": { "name": "parameters", "in": "query", "description": "Query parameters to apply to the current query.", "schema": { "type": "object" } }, "Index": { "name": "index", "in": "query", "description": "Index name.", "required": true, "schema": { "type": "string", "example": "ALGOLIA_INDEX_NAME" } }, "ClickAnalytics": { "name": "clickAnalytics", "in": "query", "description": "Whether to include metrics related to click and conversion events in the response.", "schema": { "type": "boolean", "default": false } }, "RevenueAnalytics": { "name": "revenueAnalytics", "in": "query", "description": "Whether to include metrics related to revenue events in the response.", "schema": { "type": "boolean", "default": false } }, "StartDate": { "name": "startDate", "in": "query", "description": "Start date of the period to analyze, in \u0060YYYY-MM-DD\u0060 format.", "schema": { "type": "string", "example": "2022-09-19" } }, "EndDate": { "name": "endDate", "in": "query", "description": "End date of the period to analyze, in \u0060YYYY-MM-DD\u0060 format.", "schema": { "type": "string", "example": "2023-01-21" } }, "OrderBy": { "name": "orderBy", "in": "query", "description": "Attribute by which to order the response items.\n\nIf the \u0060clickAnalytics\u0060 parameter is false, only \u0060searchCount\u0060 is available.\n", "schema": { "$ref": "#/components/schemas/OrderBy" } }, "Direction": { "name": "direction", "in": "query", "description": "Sorting direction of the results: ascending or descending.\n", "schema": { "$ref": "#/components/schemas/Direction" } }, "Limit": { "name": "limit", "in": "query", "description": "Number of items to return.\n", "schema": { "maximum": 1000, "type": "integer", "default": 10 } }, "Offset": { "name": "offset", "in": "query", "description": "Position of the first item to return.\n", "schema": { "minimum": 0, "type": "integer", "default": 0 } }, "Tags": { "name": "tags", "in": "query", "description": "Tags by which to segment the analytics.\n\nYou can combine multiple tags with \u0060OR\u0060 and \u0060AND\u0060.\nTags must be URL-encoded.\nFor more information, see [Segment your analytics data](https://www.algolia.com/doc/guides/search-analytics/guides/segments).\n", "schema": { "type": "string" }, "example": "device:mobile%20phone" }, "Search": { "name": "search", "in": "query", "description": "Search query.", "schema": { "type": "string" }, "example": "enable ab test" }, "Attribute": { "name": "attribute", "in": "path", "description": "Attribute name.", "required": true, "schema": { "type": "string", "example": "brand" } }, "IndexQuery": { "name": "index", "in": "query", "description": "Comma-separated list of indices the request runs on, used for authorization. Required for index-restricted API keys and must match the indices supplied in the request body\u0027s \u0060indices\u0060 parameter; optional for unrestricted keys.\n", "schema": { "type": "string" } } }, "headers": { "x-ratelimit-limit": { "description": "Number of allowed requests per one minute.", "schema": { "type": "integer" }, "example": 100 }, "x-ratelimit-remaining": { "description": "Number of remaining requests in the current period.", "schema": { "type": "integer" }, "example": 99 }, "x-ratelimit-reset": { "description": "Timestamp when the rate limit will reset, measured in seconds since the Unix epoch.", "schema": { "type": "integer" }, "example": 1710682486 } }, "securitySchemes": { "appId": { "type": "apiKey", "description": "Your Algolia application ID.", "name": "x-algolia-application-id", "in": "header" }, "apiKey": { "type": "apiKey", "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\u0027s reference.\n", "name": "x-algolia-api-key", "in": "header" } } }, "security": [ { "appId": [], "apiKey": [] } ], "tags": [ { "name": "click", "description": "Metrics related to click and conversion events,\nsuch as click and conversion rates for your search results.\n", "x-displayName": "Clicks" }, { "name": "filter", "description": "Metrics related to filters.\n", "x-displayName": "Filters" }, { "name": "pattern", "description": "The semantic patterns query framework (\u0060/3/patterns/*\u0060).\nBuild custom analytics queries from metrics, groupBy, filters, and parameters.\n", "x-displayName": "Patterns" }, { "name": "revenue", "description": "Metrics related to revenue.\n", "x-displayName": "Revenue" }, { "name": "search", "description": "Metrics related to searches and search results,\nsuch as the no-results rate or the most frequent search queries.\n", "x-displayName": "Searches" }, { "name": "status", "description": "Check the status of the Analytics API.", "x-displayName": "Status" }, { "name": "user", "description": "Metrics related to the users of your search.", "x-displayName": "Users" } ], "externalDocs": { "description": "Search analytics.", "url": "https://www.algolia.com/doc/guides/search-analytics/overview" }, "x-tagGroups": [ { "name": "Metrics", "tags": [ "search", "click", "revenue", "filter", "pattern", "user" ] }, { "name": "Other", "tags": [ "status" ] } ], "x-client-original-servers": [ { "url": "https://analytics.{region}.algolia.com", "variables": { "region": { "default": "us", "description": "The region where your Algolia application is hosted.", "enum": [ "us", "de" ] } } }, { "url": "https://analytics.algolia.com" } ], "x-client-unused-schemas": { "Search": { "type": "string", "description": "Search query.", "example": "separator" }, "Count": { "type": "integer", "description": "Number of searches.", "example": 504 }, "NbHits": { "type": "integer", "description": "Number of results (hits).", "example": 20 }, "ClickPositions": { "maxItems": 12, "minItems": 12, "type": "array", "items": { "$ref": "#/components/schemas/ClickPositionsItem" }, "description": "List of positions in the search results and clicks associated with this search." }, "TrackedSearchCount": { "type": "integer", "description": "Number of tracked searches. Tracked searches are search requests where the \u0060clickAnalytics\u0060 parameter is true.", "default": 0, "example": 2 }, "ClickCount": { "minimum": 0, "type": "integer", "description": "Number of clicks associated with this search.", "default": 0, "example": 162 }, "ConversionCount": { "minimum": 0, "type": "integer", "description": "Number of conversions from this search.", "default": 0, "example": 10 }, "Currencies": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/CurrenciesAdditionalProperties" }, "description": "Revenue associated with this search: broken down by currency.\n" }, "AddToCartCount": { "minimum": 0, "type": "integer", "description": "Number of add-to-cart events from this search.", "default": 0, "example": 10 }, "PurchaseCount": { "type": "integer", "description": "Number of purchase events from this search.", "default": 0, "example": 10 }, "ParametersCount": { "type": "integer", "description": "Number of occurrences.", "example": 2 }, "Date": { "type": "string", "description": "Date in the format YYYY-MM-DD.", "example": "2023-06-14" }, "WithFilterCount": { "minimum": 0, "type": "integer", "description": "Number of searches for this term with applied filters.", "default": 0, "example": 5 }, "NoResultsRate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No results rate: calculated as the number of searches with zero results divided by the total number of searches.\n", "format": "double", "example": 0.49 }, "NoResultCount": { "type": "integer", "description": "Number of searches without any results.", "example": 54 }, "NoClickRate": { "maximum": 1, "minimum": 0, "type": "number", "description": "No click rate: calculated as the number of tracked searches with results whose query didn\u0027t get any click in the time range, divided by the number of tracked searches with results.\n", "format": "double", "example": 0.15 }, "NoClickCount": { "minimum": 1, "type": "integer", "description": "Number of tracked searches with results whose query didn\u0027t get any click in the time range.", "example": 15 }, "Hit": { "type": "string", "description": "Object ID of a record returned as a search result.", "example": "method-export-rules-php" }, "Attribute": { "type": "string", "description": "Attribute name.", "example": "url" }, "ValueValue": { "type": "string", "description": "Attribute value.", "example": "integration" }, "FilterOperator": { "type": "string", "description": "Comparison operator applied to a filter field, one of: \u0060=\u0060, \u0060!=\u0060, \u0060\u003E\u0060, \u0060\u003C\u0060, \u0060\u003E=\u0060, \u0060\u003C=\u0060, \u0060IN\u0060, \u0060TAG_TREE\u0060, \u0060CONTAINS\u0060, \u0060STARTS_WITH\u0060, \u0060CONTAINS_PREFIX\u0060. Requires a \u0060parameter\u0060 to carry the operand.", "example": "=" }, "ScalarResponse": { "title": "Scalar response", "type": "object", "description": "Object keyed by metric kind, each mapping to its aggregate value." }, "DistributionResponse": { "title": "Distribution response", "type": "object", "description": "Object keyed by \u0060histogram\u003CField\u003E\u0060, each mapping a bin label to a count." }, "CatalogDomains": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/DomainCatalog" }, "description": "Catalog entries grouped by domain." }, "TableResponseRowsItem": { "type": "object" }, "TimeseriesResponseSeriesItemKey": { "type": "object", "description": "The \u0060groupBy\u0060 values identifying this series. Absent when the query has no \u0060groupBy\u0060." }, "TimeseriesResponseSeriesItemTotals": { "type": "object", "description": "Metric totals over the whole period." }, "TimeseriesResponseSeriesItemDatesItemMetrics": { "type": "object", "description": "Metric values for the day." }, "CustomGet200Response": { "type": "object" }, "CustomPostRequest": { "type": "object" }, "CustomPost200Response": { "type": "object" }, "CustomPutRequest": { "type": "object" }, "CustomPut200Response": { "type": "object" }, "CustomDelete200Response": { "type": "object" }, "ExamplePayload": { "type": "object", "description": "Placeholder schema for path example refs" } } }