Sonar Apps API

App lookup, search, scoring, and reviews

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

GET /api/v1/apps/lookup Look up an app by store ID #
GET /api/v1/apps/search Find apps in a store by keyword #
GET /api/v1/apps/aso-score Calculate an ASO optimization score (0–100) #
GET /api/v1/apps/extract-keywords Extract keywords from an app's metadata #
GET /api/v1/apps/reviews Fetch app reviews #
GET /api/v1/apps/revenue Estimate monthly revenue for an app (single or bulk) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/trysonar-app:trysonar-app-apps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

trysonar-app-apps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonar Apps API
  description: 'App Store Optimization data for AI agents, MCP tools, and automation. Keyword research, rank tracking, ASO scoring, reviews, and revenue estimates for the iOS App Store and Google Play.


    Versioning & deprecation policy: the API is URL-versioned (`/api/v1`). Breaking changes only ever ship under a new version path — existing `/api/v1` shapes are additive-only. If an endpoint is ever deprecated it keeps working for at least 6 months, signals the timeline with `Deprecation` and `Sunset` response headers, and is announced at https://trysonar.app/changelog.'
  version: 1.0.0
  termsOfService: https://trysonar.app/terms
  contact:
    url: https://trysonar.app/support
  license:
    name: Proprietary
    url: https://trysonar.app/terms
servers:
- url: https://api.trysonar.app
  description: Production
- url: https://trysonar.app
  description: Production (legacy, proxied)
security:
- bearerAuth: []
tags:
- name: Apps
  description: App lookup, search, scoring, and reviews
paths:
  /api/v1/apps/lookup:
    get:
      tags:
      - Apps
      summary: Look up an app by store ID
      parameters:
      - name: store
        in: query
        required: true
        description: App store
        schema:
          type: string
          enum:
          - ios
          - android
        example: ios
      - name: id
        in: query
        required: true
        description: App store ID (numeric for iOS, package for Android)
        schema:
          type: string
        example: '310633997'
      - name: country
        in: query
        required: false
        description: 'ISO 3166-1 alpha-2 country code. Store reads accept every App Store storefront (175) and Google Play market (145); a code that isn''t a storefront returns 400 with `error.reason: "unsupported_market"`.'
        schema:
          type: string
          default: us
          pattern: ^[a-z]{2}$
        example: us
      responses:
        '200':
          description: App metadata. When the store is throttling, Sonar's stored copy of the app with `meta.stale` (a throttle is never reported as 404).
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/App'
                  meta:
                    $ref: '#/components/schemas/StaleMeta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: getAppsLookup
      security:
      - {}
      - bearerAuth: []
  /api/v1/apps/search:
    get:
      tags:
      - Apps
      summary: Find apps in a store by keyword
      description: 'For finding apps and their store IDs. The top-level `source` says whose order the list follows: `app_store` = Apple''s own App Store search order in that storefront (editorial cards left out, top 50 at most; a current-position snapshot, cached up to 30 minutes), the normal iOS answer; `itunes_search` = the iTunes Search API''s text-match order, the iOS fallback when Apple''s own search can''t be read — not a rank (below the top 10 it can sit dozens of places away from the App Store''s order); `google_play` = Google Play''s own search order. For rank history or daily tracking, track the keyword and read `/api/v1/apps/{id}/rankings` or `/api/v1/keywords/{id}/rankings`. `fields=compact` trims each row to the listing basics; the default `full` returns whole listings (description, screenshots, release notes, …).'
      parameters:
      - name: q
        in: query
        required: true
        description: Search query
        schema:
          type: string
        example: meditation
      - name: store
        in: query
        required: true
        description: App store
        schema:
          type: string
          enum:
          - ios
          - android
        example: ios
      - name: country
        in: query
        required: false
        description: 'ISO 3166-1 alpha-2 country code. Store reads accept every App Store storefront (175) and Google Play market (145); a code that isn''t a storefront returns 400 with `error.reason: "unsupported_market"`.'
        schema:
          type: string
          default: us
          pattern: ^[a-z]{2}$
        example: us
      - name: num
        in: query
        description: Max results (1–50)
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
      - name: fields
        in: query
        description: '`full` (default): whole listings. `compact`: rank, store, storeId, numericId, name, subtitle, developer, category, iconUrl, rating, reviews (rating count), installs (Android), price, currency, free, url — about a tenth of a full iOS row.'
        schema:
          type: string
          enum:
          - full
          - compact
          default: full
      responses:
        '200':
          description: Matching apps in the order named by `source` (see the operation description). When the store is throttling, the newest stored top 10 for this exact term and storefront with `meta.stale` + `meta.partial` (entries carry rank, store, storeId, name, developer, iconUrl only); `source` is then that snapshot's ordering.
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                - source
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/App'
                  source:
                    type: string
                    enum:
                    - app_store
                    - itunes_search
                    - google_play
                    description: 'Which ordering served the list: `app_store` = the App Store''s own search order, `itunes_search` = iTunes Search API text-match order (not a rank), `google_play` = Google Play''s own order. Next to `data`, not in `meta` (`meta` appears only on stored copies).'
                  meta:
                    $ref: '#/components/schemas/StaleMeta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: getAppsSearch
      security:
      - {}
      - bearerAuth: []
  /api/v1/apps/aso-score:
    get:
      tags:
      - Apps
      summary: Calculate an ASO optimization score (0–100)
      parameters:
      - name: store
        in: query
        required: true
        description: App store
        schema:
          type: string
          enum:
          - ios
          - android
        example: ios
      - name: id
        in: query
        required: true
        description: App store ID (numeric for iOS, package for Android)
        schema:
          type: string
        example: '310633997'
      - name: country
        in: query
        required: false
        description: 'ISO 3166-1 alpha-2 country code. Store reads accept every App Store storefront (175) and Google Play market (145); a code that isn''t a storefront returns 400 with `error.reason: "unsupported_market"`.'
        schema:
          type: string
          default: us
          pattern: ^[a-z]{2}$
        example: us
      responses:
        '200':
          description: ASO score breakdown
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
                    description: Result payload — full field reference at https://trysonar.app/docs/api
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: getAppsAsoScore
      security:
      - {}
      - bearerAuth: []
  /api/v1/apps/extract-keywords:
    get:
      tags:
      - Apps
      summary: Extract keywords from an app's metadata
      parameters:
      - name: store
        in: query
        required: true
        description: App store
        schema:
          type: string
          enum:
          - ios
          - android
        example: ios
      - name: id
        in: query
        required: true
        description: App store ID (numeric for iOS, package for Android)
        schema:
          type: string
        example: '310633997'
      - name: country
        in: query
        required: false
        description: 'ISO 3166-1 alpha-2 country code. Store reads accept every App Store storefront (175) and Google Play market (145); a code that isn''t a storefront returns 400 with `error.reason: "unsupported_market"`.'
        schema:
          type: string
          default: us
          pattern: ^[a-z]{2}$
        example: us
      - name: max
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      responses:
        '200':
          description: Extracted keywords
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
                    description: Result payload — full field reference at https://trysonar.app/docs/api
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: getAppsExtractKeywords
      security:
      - {}
      - bearerAuth: []
  /api/v1/apps/reviews:
    get:
      tags:
      - Apps
      summary: Fetch app reviews
      description: Android defaults to merged market-language, English, Spanish, French, and Arabic feeds, deduplicated and sorted before limiting. Coverage is bounded, not exhaustive. Use lang for another specific feed.
      parameters:
      - $ref: '#/components/parameters/Store'
      - name: lang
        in: query
        description: 'Android only: two-letter language code to fetch a single feed instead of the default merged feeds.'
        schema:
          type: string
          pattern: ^[a-zA-Z]{2}$
      - name: id
        in: query
        required: true
        description: App store ID (numeric for iOS, package for Android)
        schema:
          type: string
        example: '310633997'
      - $ref: '#/components/parameters/Country'
      - name: sort
        in: query
        schema:
          type: string
          enum:
          - recent
          - helpful
          default: recent
      - name: min_rating
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 5
      - name: max_rating
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 5
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 200
      responses:
        '200':
          description: App reviews. When the store is throttling, Sonar's stored reviews for the storefront with `meta.stale` (rating filters and limit still apply; not for single-`lang` Android requests).
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        userName:
                          type: string
                        score:
                          type: integer
                        title:
                          type: string
                          nullable: true
                        text:
                          type: string
                        date:
                          type: string
                          nullable: true
                        version:
                          type: string
                          nullable: true
                        url:
                          type: string
                          nullable: true
                        thumbsUp:
                          type: integer
                          nullable: true
                  meta:
                    $ref: '#/components/schemas/StaleMeta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      operationId: getAppsReviews
  /api/v1/apps/revenue:
    get:
      tags:
      - Apps
      summary: Estimate monthly revenue for an app (single or bulk)
      description: 'Pass `id` for a single app or `ids` (comma-separated, up to 25) for bulk lookup. Bulk counts as one request. Each estimate includes a `confidence` grade (high/medium/low) and `confidence_factors` explaining it, the install base it rests on (`installs`: estimate, low, high, `source` = `public_install_count` | `review_derived` | `unavailable`, `ratings`, `ratings_country`) and `monthly_range` / `monthly_range_formatted` — the revenue at both ends of the install range. App Store installs are review-derived (rating count × a category installs-per-rating ratio, 0.15-5x wide) and never graded above medium; quote the range for them. Apps Sonar synced on the same storefront within the last day are estimated from the stored listing. When the store can''t answer, an estimate from an older stored listing is returned flagged `stale: true` (bulk: per item; single: `meta.stale` + `meta.stale_as_of`); with nothing stored, a bulk item carries `error.code` `rate_limited` or `unavailable` with `retry_after_seconds` (not billed), and the request is 429/503 only when every id failed.'
      parameters:
      - $ref: '#/components/parameters/Store'
      - name: id
        in: query
        schema:
          type: string
      - name: ids
        in: query
        description: Comma-separated store IDs (max 25)
        schema:
          type: string
      - $ref: '#/components/parameters/Country'
      responses:
        '200':
          description: 'Monthly revenue estimate(s). Bulk items may carry `stale: true` or a per-id `error` (`not_found`, `rate_limited`, `unavailable`).'
          content:
            application/json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
                    description: Result payload — full field reference at https://trysonar.app/docs/api
                    additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          description: rate_limited — Sonar's store lanes are busy and nothing is stored for the app (single id), or every bulk id was shed; honor Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          description: unavailable — the store throttled or failed and nothing is stored for the app (single id), or every bulk id failed; honor Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getAppsRevenue
components:
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Missing or invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: 'Rate limited — see `error.reason`: daily_limit (Indie 1,000, Agency 5,000, trial 150 requests/day, resets 00:00 UTC; see `reset_at`), anonymous_daily_limit / batch_too_large (keyless free tier), store_rate_limited or concurrency_limit (transient, honor `retry_after_seconds`)'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    Country:
      name: country
      in: query
      required: false
      description: 'ISO 3166-1 alpha-2 country code. Store reads accept every App Store storefront (175) and Google Play market (145); a code that isn''t a storefront returns 400 with `error.reason: "unsupported_market"`.'
      schema:
        type: string
        default: us
        pattern: ^[a-z]{2}$
      example: us
    Store:
      name: store
      in: query
      required: true
      description: App store
      schema:
        type: string
        enum:
        - ios
        - android
      example: ios
  schemas:
    StaleMeta:
      type: object
      description: Envelope `meta`, present only when the store was throttling and the endpoint answered from Sonar's stored copy instead of failing (apps/lookup, apps/search, apps/reviews, keywords/suggestions). Live answers carry no `meta`. A stored copy is billed like any 200.
      required:
      - stale
      - stale_as_of
      - partial
      - retry_after_seconds
      - note
      properties:
        stale:
          type: boolean
          enum:
          - true
        stale_as_of:
          type: string
          nullable: true
          description: 'When the stored copy was captured: ISO 8601 timestamp or YYYY-MM-DD date; null when unknown.'
        partial:
          type: boolean
          description: 'The copy holds less than a live call would: fewer results or fields (stored search results stop at the top 10, name/developer/icon only), or a different order (stored suggestions are ranked by popularity).'
        stale_country:
          type: string
          nullable: true
          description: 'App lookup only: the storefront the stored copy came from, when it differs from the request.'
        retry_after_seconds:
          type: integer
          description: When live data is expected again.
        note:
          type: string
          description: One sentence explaining what was served — safe to show to a user.
    App:
      type: object
      properties:
        storeId:
          type: string
        name:
          type: string
        developer:
          type: string
        rating:
          type: number
          nullable: true
          description: Official storefront rating; null when unavailable.
        reviews:
          type: integer
          nullable: true
          description: Official rating count, not written review count; null when unavailable.
        category:
          type: string
        iconUrl:
          type: string
          format: uri
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          description: Every error carries `code` + `message`. The remaining fields are optional and additive — branch on `reason` when present, else on `code`.
          properties:
            code:
              type: string
            message:
              type: string
            reason:
              type: string
              description: 'Stable sub-code. daily_limit (402/429: included daily quota used up, resets 00:00 UTC), no_credits (402: credit balance below the call''s cost), anonymous_daily_limit (429: keyless per-IP allowance used up), batch_too_large (429: keyless call asks for more keywords than the daily allowance — the only case where a smaller batch helps), store_rate_limited (429: store throttling or scraper queue saturated, transient), concurrency_limit (429: per-caller in-flight cap, ~8 concurrent scrapes), store_unavailable (503: store failed or timed out), refresh_in_progress (503: a chart is still being fetched), plan_required (403, see required_plan), scope_required (403, see required_scope), payment_past_due (403: writes paused after the 3-day past-due grace), no_workspace (403: OAuth user owns no Sonar workspace yet; non-free endpoints only), unsupported_market (400: country not served by this endpoint for that store), daily_scan_limit (429 on competitor scans: the org''s daily allowance of different competitors scanned is used up — 50 on trial and Indie, 250 on Agency; re-scans of a competitor already scanned today stay free; resets 00:00 UTC), daily_ad_lookup_limit (429 on Ad Spy lookups: the org''s daily paid Ad Spy lookups are used up — 10 on trial, 25 Indie, 100 Agency per UTC day; cached reads keep working), ad_lookup_budget_spent (429 on Ad Spy lookups: Sonar''s shared daily ad-vendor budget is spent).'
              enum:
              - daily_limit
              - no_credits
              - anonymous_daily_limit
              - batch_too_large
              - store_rate_limited
              - concurrency_limit
              - store_unavailable
              - refresh_in_progress
              - plan_required
              - scope_required
              - payment_past_due
              - no_workspace
              - unsupported_market
              - daily_scan_limit
              - daily_ad_lookup_limit
              - ad_lookup_budget_spent
            retry_after_seconds:
              type: integer
              description: 'On retryable 429/503 errors: seconds to wait before retrying (mirrors the Retry-After header, which some proxies drop).'
            reset_at:
              type: string
              format: date-time
              description: When an exhausted daily allowance resets (always the next 00:00 UTC)
            limit:
              type: integer
              description: The exhausted daily allowance, in limit_unit per day
            limit_unit:
              type: string
              enum:
              - requests
              - keywords
              - competitors
              - lookups
            required_plan:
              type: string
              enum:
              - indie
              - agency
              description: Plan that unlocks the endpoint
            required_scope:
              type: string
              description: API-key scope the call needs (e.g. write)
            credits_balance:
              type: number
              description: Current API credit balance
            credits_cost:
              type: number
              description: Credits this call costs
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: aso_xxx
      description: 'API key with the `aso_` prefix. Get one at /developers (50 free credits on signup). OAuth access tokens from the hosted MCP flow (RFC 9728 discovery at /.well-known/oauth-protected-resource/mcp; Clerk authorization server) are also accepted as the bearer. A few stateless endpoints also work with NO auth at all (anonymous free tier, per-IP daily limits): /apps/lookup, /apps/search, /apps/aso-score, /apps/extract-keywords, /keywords/suggestions, /charts/top (shared 30 req/day) and /keywords/metrics (5 keywords/day).'
externalDocs:
  description: API reference
  url: https://trysonar.app/docs/api