---
updatedAt: 2026-10-05T14:17:54.000Z
agentTools:
  projectIndex: https://developers.apptweak.com/llms.txt
---

# Keyword Live Search - History

Returns historical app results of a search for a given keyword. <br/><br/> For each day in the requested period, this query will return the search result if AppTweak made a search on that date for that keyword. <br/><br/> Please see the Current section if you want to perform a live search for given keywords. <br/><br/> <b>Price</b><table><thead><tr><th>Data</th><th>Credits</th><th>Per</th></tr></thead><tbody><tr><td>Search history</td><td>5</td><td>request</td></tr></tbody></table> <Callout icon="📘" theme="info"><b>Note that the default selected period is 30 days; however you can provide your own date range in order to extend/shorten the targeted period.</b></Callout>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1",
    "title": "App Store API",
    "contact": {
      "name": "AppTweak",
      "email": "support@apptweak.com"
    }
  },
  "servers": [
    {
      "url": "https://public-api.apptweak.com/api/public/store"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "Keyword Live Search",
      "description": "Returns the list of apps resulting from a live keyword search on the mobile app stores. Historical results are also available."
    }
  ],
  "paths": {
    "/keywords/search-results/history.json": {
      "get": {
        "summary": "Keyword Live Search - History",
        "description": "Returns historical app results of a search for a given keyword. <br/><br/> For each day in the requested period, this query will return the search result if AppTweak made a search on that date for that keyword. <br/><br/> Please see the Current section if you want to perform a live search for given keywords. <br/><br/> <b>Price</b><table><thead><tr><th>Data</th><th>Credits</th><th>Per</th></tr></thead><tbody><tr><td>Search history</td><td>5</td><td>request</td></tr></tbody></table> <Callout icon=\"📘\" theme=\"info\"><b>Note that the default selected period is 30 days; however you can provide your own date range in order to extend/shorten the targeted period.</b></Callout>",
        "operationId": "keyword-search-history",
        "tags": [
          "Keyword Live Search"
        ],
        "parameters": [
          {
            "name": "keyword",
            "in": "query",
            "description": "The keyword to search for. Only one keyword is allowed.",
            "required": true,
            "example": "cricket",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "Two-letter country code (`us`, `gb`, `fr`). Accepted values: <a href=\"https://developers.apptweak.com/reference/countries-1\" target=\"_blank\"><code>GET /api/public/apptweak/countries</code></a> with `store=ios` or `store=android`. Defaults to us.",
            "required": false,
            "schema": {
              "default": "us",
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "AppTweak language code, not always ISO: US English is `us`, US Spanish `sp`. Accepted pairs: <a href=\"https://developers.apptweak.com/reference/languages-1\" target=\"_blank\"><code>GET /api/public/apptweak/languages</code></a> with `store=ios` or `store=android`. Defaults to the country's <a href=\"https://developers.apptweak.com/reference/languages-overview#default-language\" target=\"_blank\"><b>default language</b></a>.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "Choose a device from iphone, ipad or android. Defaults to iphone.",
            "required": false,
            "schema": {
              "default": "iphone",
              "type": "string",
              "enum": [
                "iphone",
                "ipad",
                "android"
              ]
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "Start date (YYYY-MM-DD). Send both dates or omit both. Maximum range: one full calendar year. Defaults to 30 days ago.",
            "required": false,
            "example": "2026-06-01",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "End date (YYYY-MM-DD). Defaults to yesterday.",
            "required": false,
            "example": "2026-07-01",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "array",
                      "description": "One entry per day in the requested range.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "description": "Day (YYYY-MM-DD) the ranking refers to."
                          },
                          "value": {
                            "type": "array",
                            "description": "App IDs ranking on the keyword that day, best rank first.",
                            "items": {
                              "$ref": "#/components/schemas/AppIdentifier"
                            }
                          }
                        }
                      }
                    },
                    "metadata": {
                      "$ref": "#/components/schemas/ResponseMetadata"
                    }
                  }
                },
                "examples": {
                  "iOS": {
                    "value": {
                      "result": [
                        {
                          "date": "2021-11-01",
                          "value": [
                            493145008,
                            571800810,
                            1500780518,
                            1210209691,
                            537568757,
                            1361356590,
                            1486428772,
                            337472899,
                            930904592,
                            1476051288
                          ]
                        },
                        {
                          "date": "2021-11-02",
                          "value": [
                            493145008,
                            571800810,
                            1500780518,
                            1210209691,
                            537568757,
                            1361356590,
                            1486428772,
                            337472899,
                            930904592,
                            886156937
                          ]
                        },
                        {
                          "date": "2021-11-03",
                          "value": [
                            493145008,
                            571800810,
                            1500780518,
                            1210209691,
                            1361356590,
                            537568757,
                            1486428772,
                            1093360165,
                            930904592,
                            337472899
                          ]
                        }
                      ],
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/keywords/search-results/history.json",
                          "params": {
                            "device": "iphone",
                            "country": "in",
                            "language": "en",
                            "limit": 10,
                            "offset": 0,
                            "start_date": "2021-11-01",
                            "end_date": "2021-11-03",
                            "keyword": "meditation"
                          },
                          "cost": 5,
                          "status": 200,
                          "charge_type": "credits"
                        },
                        "response": null
                      }
                    }
                  },
                  "Android": {
                    "value": {
                      "result": [
                        {
                          "date": "2021-11-01",
                          "value": [
                            "com.getsomeheadspace.android",
                            "meditofoundation.medito",
                            "com.spotlightsix.zentimerlite2",
                            "com.thunkable.android.ilyastepanov1.ConcentrationMeditation",
                            "com.ishafoundation.app",
                            "com.simplehabit.simplehabitapp",
                            "com.petitbambou",
                            "app.meditasyon",
                            "com.chopracenter.meditationexperience",
                            "com.meditation.elevenminute"
                          ]
                        },
                        {
                          "date": "2021-11-02",
                          "value": [
                            "com.getsomeheadspace.android",
                            "meditofoundation.medito",
                            "com.spotlightsix.zentimerlite2",
                            "com.ishafoundation.app",
                            "com.calm.android",
                            "com.thunkable.android.ilyastepanov1.ConcentrationMeditation",
                            "com.simplehabit.simplehabitapp",
                            "com.petitbambou",
                            "app.meditasyon",
                            "com.chopracenter.meditationexperience"
                          ]
                        },
                        {
                          "date": "2021-11-03",
                          "value": [
                            "com.getsomeheadspace.android",
                            "meditofoundation.medito",
                            "com.spotlightsix.zentimerlite2",
                            "com.calm.android",
                            "com.ishafoundation.app",
                            "com.thunkable.android.ilyastepanov1.ConcentrationMeditation",
                            "com.petitbambou",
                            "app.meditasyon",
                            "com.fitness22.meditation",
                            "com.chopracenter.meditationexperience"
                          ]
                        }
                      ],
                      "metadata": {
                        "request": {
                          "path": "/api/public/store/keywords/search-results/history.json",
                          "params": {
                            "device": "android",
                            "country": "in",
                            "language": "en",
                            "limit": 10,
                            "offset": 0,
                            "start_date": "2021-11-01",
                            "end_date": "2021-11-03",
                            "keyword": "meditation"
                          },
                          "cost": 5,
                          "status": 200,
                          "charge_type": "credits"
                        },
                        "response": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. Unknown or missing API token."
          },
          "403": {
            "description": "Forbidden. Not enough credits to perform the request."
          },
          "422": {
            "description": "Validation error. Returned when a parameter is invalid."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-apptweak-key",
        "in": "header"
      }
    },
    "schemas": {
      "AppIdentifier": {
        "title": "App ID",
        "description": "An app identifier.",
        "oneOf": [
          {
            "title": "iOS App Store ID",
            "type": "integer",
            "description": "Numeric App Store ID, returned for device iphone or ipad.",
            "example": 377889715
          },
          {
            "title": "Android package name",
            "type": "string",
            "description": "Package name, returned for device android.",
            "example": "com.rentalcars.handset"
          }
        ]
      },
      "ResponseMetadata": {
        "type": "object",
        "description": "Standard response envelope, identical on every endpoint.",
        "properties": {
          "request": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string",
                "description": "The path that was called."
              },
              "params": {
                "type": "object",
                "nullable": true,
                "description": "The query as the API parsed it, with defaults applied."
              },
              "cost": {
                "type": "integer",
                "description": "Credit cost of the request. Thread tokens do not debit credits."
              },
              "charge_type": {
                "type": "string",
                "enum": [
                  "credits",
                  "thread"
                ],
                "description": "How the request is paid. `credits`: debited from the company's balance. `thread`: an unlimited token, not debited; `cost` shows what the request is worth."
              },
              "status": {
                "type": "integer",
                "description": "HTTP status of the response."
              }
            }
          },
          "response": {
            "type": "object",
            "nullable": true,
            "description": "Endpoint-specific notes; null when there are none."
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```