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

# Search merchants by name

> Get the merchants whose name contains the search term, optionally within one group. Results are ordered by how often the merchant is seen, most frequent first.




## OpenAPI

````yaml https://app.herondata.io/swagger get /api/merchants/list
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/merchants/list:
    get:
      tags:
        - Merchants
      summary: Search merchants by name
      description: >
        Get the merchants whose name contains the search term, optionally within
        one group. Results are ordered by how often the merchant is seen, most
        frequent first.
      parameters:
        - description: Full or partial merchant name, minimum 3 characters
          in: query
          name: name
          required: true
          schema:
            minLength: 3
            type: string
        - description: Filter merchants by group ID
          in: query
          name: group_id
          required: false
          schema:
            type: string
        - description: Maximum number of merchants to return
          in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 50
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/MerchantList'
                    type: array
                type: object
          description: The best matching merchants
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MerchantList:
      properties:
        group_id:
          nullable: true
          type: string
        heron_id:
          example: mrc_8bYsSyAMW6LGsGFZi8GF9F
          readOnly: true
          type: string
        logo_url:
          format: url
          nullable: true
          type: string
        name:
          type: string
        url:
          format: url
          type: string
      required:
        - name
        - url
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

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