{
  "openapi": "3.0.1",
  "info": {
    "title": "StoreBridge — Unified App Store & Google Play data",
    "description": "Thin Apify Actor that wraps the StoreBridge REST API (one normalized schema over the Apple App Store and Google Play) and pushes normalized records to the dataset. Billed pay-per-event.",
    "version": "0.2",
    "x-build-id": "r94vjZDlmcxniJ8St"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/isaiahdupree33~storebridge/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-isaiahdupree33-storebridge",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/isaiahdupree33~storebridge/runs": {
      "post": {
        "operationId": "runs-sync-isaiahdupree33-storebridge",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/isaiahdupree33~storebridge/run-sync": {
      "post": {
        "operationId": "run-sync-isaiahdupree33-storebridge",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode",
          "store"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "appDetails",
              "reviews",
              "charts",
              "developer",
              "similar",
              "suggest",
              "permissions",
              "dataSafety",
              "asoRank"
            ],
            "type": "string",
            "description": "Search/suggest need term; appDetails/reviews/similar/permissions/dataSafety/asoRank need appIds; developer needs developerIds; asoRank also needs keywords. Permissions and dataSafety require Google.",
            "default": "search"
          },
          "store": {
            "title": "Store",
            "enum": [
              "apple",
              "google",
              "both"
            ],
            "type": "string",
            "description": "Which store to query. 'both' queries each store; IDs must match the store being queried. Permissions and dataSafety require 'google'.",
            "default": "both"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "ISO-3166 alpha-2 storefront / region (lowercase).",
            "default": "us"
          },
          "term": {
            "title": "Search term",
            "type": "string",
            "description": "Required for search or suggest. Use keywords for asoRank."
          },
          "appIds": {
            "title": "App IDs",
            "type": "array",
            "description": "Apple trackIds (e.g. 389801252) or Google package names (e.g. com.whatsapp). Required for appDetails, reviews, similar, permissions, dataSafety or asoRank. Duplicate IDs are queried once per store; use separate runs for different store-specific IDs.",
            "items": {
              "type": "string"
            }
          },
          "chartType": {
            "title": "Chart type",
            "enum": [
              "free",
              "paid",
              "grossing"
            ],
            "type": "string",
            "description": "Top-chart feed. Used for mode = charts.",
            "default": "free"
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "Optional. Apple genre id (e.g. 6007) or Google category constant (e.g. PRODUCTIVITY). Used for mode = charts."
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum delivered rows for search, or per store/target for charts, developer, similar and suggest. The separate maxItems cap limits all dataset rows across the run. Upstream availability may be lower.",
            "default": 50
          },
          "maxReviews": {
            "title": "Max reviews per app",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique reviews per app/store for reviews. Apple is capped at 500/app/country. Stops on repeated continuation tokens or pages with no new rows; partial availability is not proof of complete history.",
            "default": 200
          },
          "lang": {
            "title": "Language",
            "type": "string",
            "description": "Optional language code passed to StoreBridge (for example en or fr). Omit to use each store's default. Availability depends on the upstream; this does not translate reviews or verify reviewer residence."
          },
          "developerIds": {
            "title": "Developer IDs",
            "type": "array",
            "description": "Required for developer mode. Use the developerId from an app-details record for the selected store. Duplicate IDs are queried once.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "ASO keywords",
            "type": "array",
            "description": "Required for asoRank: 1–5 unique keywords, without embedded commas. Returns directional current search rank, found and scannedDepth, not historical rank, difficulty or search volume.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum items per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on total delivered dataset rows across every app, store and mode. Stops gracefully and records RUN_SUMMARY. Per-target limit and maxReviews still apply.",
            "default": 1000
          },
          "maxRequests": {
            "title": "Maximum API requests per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on Actor-to-StoreBridge HTTP attempts, including retries, across all targets/stores. Does not count or bound provider-internal fan-out.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}