> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Count matching stores

> Returns the number of store records that match the filters. Counts have no charge. Duplicate records are counted separately until duplicate-store mapping is available.



## OpenAPI

````yaml /openapi/v1.json post /v1/stores/count
openapi: 3.1.0
info:
  title: Shoplist API
  version: 1.0.0
servers:
  - url: https://api.shoplist.co
security: []
tags:
  - name: Account
  - name: Vocabulary
  - name: Stores
  - name: Apps
  - name: Contacts
  - name: Exports
  - name: Events
  - name: Webhooks
paths:
  /v1/stores/count:
    post:
      tags:
        - Stores
      summary: Count matching stores
      description: >-
        Returns the number of store records that match the filters. Counts have
        no charge. Duplicate records are counted separately until
        duplicate-store mapping is available.
      operationId: countStores
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filters:
                  type: object
                  properties:
                    apps_any:
                      default: []
                      description: >-
                        Match stores with at least one of these Shoplist app
                        IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    apps_all:
                      default: []
                      description: Match stores with every one of these Shoplist app IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    apps_none:
                      default: []
                      description: Exclude stores with any of these Shoplist app IDs.
                      maxItems: 20
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    countries:
                      default: []
                      description: Match stores based in one of these country codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{2}$
                    categories:
                      default: []
                      description: Match stores in one of these category IDs.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    traffic_tiers:
                      default: []
                      description: Match stores in one of these traffic tier labels.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 40
                    themes:
                      default: []
                      description: Match stores using one of these theme IDs.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    currencies:
                      default: []
                      description: Match stores using one of these currency codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{3}$
                    ships_to:
                      default: []
                      description: Match stores that ship to any of these country codes.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Za-z]{2}$
                    accepted_cards:
                      default: []
                      description: Match stores that accept any of these card brands.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        pattern: ^[a-z_]{2,40}$
                    shop_pay_installments:
                      description: >-
                        Filter stores by whether they offer Shop Pay
                        Installments.
                      type:
                        - boolean
                        - 'null'
                    shopify_plus_only:
                      default: false
                      description: Only match Shopify Plus stores.
                      type: boolean
                    product_ranges:
                      default: []
                      description: Match stores in one of these product count ranges.
                      maxItems: 250
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 40
                    require_email:
                      default: false
                      description: Require a public business email address.
                      type: boolean
                    require_phone:
                      default: false
                      description: Require a public business phone number.
                      type: boolean
                    include_closed:
                      default: false
                      description: Include stores marked as closed.
                      type: boolean
                    include_password_protected:
                      default: false
                      description: Include stores marked as password-protected.
                      type: boolean
                  additionalProperties: false
                  description: The filters that stores must match.
              required:
                - filters
              additionalProperties: false
            example:
              filters:
                countries:
                  - US
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      count:
                        type: integer
                        minimum: 0
                        maximum: 9007199254740991
                        description: The number of matching store records.
                      counted_at:
                        type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                        description: The UTC time when the count was completed.
                    required:
                      - count
                      - counted_at
                    additionalProperties: false
                    description: The requested resource.
                required:
                  - data
                additionalProperties: false
              example:
                data:
                  count: 42
                  counted_at: '2026-12-01T12:00:00Z'
        '400':
          description: Invalid request
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: invalid_request
                      type:
                        const: https://shoplist.co/docs/errors#invalid_request
                      title:
                        const: Invalid request
                      status:
                        const: 400
        '401':
          description: Unauthenticated
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: unauthenticated
                      type:
                        const: https://shoplist.co/docs/errors#unauthenticated
                      title:
                        const: Unauthenticated
                      status:
                        const: 401
        '403':
          description: Insufficient scope
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: insufficient_scope
                      type:
                        const: https://shoplist.co/docs/errors#insufficient_scope
                      title:
                        const: Insufficient scope
                      status:
                        const: 403
        '413':
          description: Payload too large
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: payload_too_large
                      type:
                        const: https://shoplist.co/docs/errors#payload_too_large
                      title:
                        const: Payload too large
                      status:
                        const: 413
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: rate_limited
                      type:
                        const: https://shoplist.co/docs/errors#rate_limited
                      title:
                        const: Rate limit exceeded
                      status:
                        const: 429
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: internal_error
                      type:
                        const: https://shoplist.co/docs/errors#internal_error
                      title:
                        const: Internal error
                      status:
                        const: 500
        '503':
          description: Service unavailable
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: service_unavailable
                      type:
                        const: https://shoplist.co/docs/errors#service_unavailable
                      title:
                        const: Service unavailable
                      status:
                        const: 503
      security:
        - bearerAuth: []
components:
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
          description: The URL that identifies and documents this error type.
        title:
          type: string
          minLength: 1
          description: The fixed title of the error type.
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: The HTTP status code of the response.
        detail:
          type: string
          minLength: 1
          description: An explanation of the error for this request.
        code:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - plan_required
            - allowance_exceeded
            - insufficient_credits
            - spending_cap_exceeded
            - insufficient_scope
            - not_found
            - method_not_allowed
            - idempotency_in_progress
            - cursor_expired
            - payload_too_large
            - idempotency_key_reused
            - rate_limited
            - internal_error
            - service_unavailable
          description: The stable machine-readable error code.
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
          description: The server-generated identifier for this request.
        errors:
          description: Details for up to 20 invalid inputs.
          maxItems: 20
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: The dotted path to the invalid input.
              message:
                type: string
                minLength: 1
                description: The validation message for that input.
            required:
              - path
              - message
            additionalProperties: false
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.