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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search merchants

> Find retailers and brands across affiliate networks by name or domain, and see which network carries them, how many products they list, their categories and countries, and link templates to fill with your own publisher ID.

## Request contract

* **Method and path:** POST /apis/v1/affiliate-com/merchants/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/affiliate-com/merchants/search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/affiliate-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "affiliate-com.merchants.search",
  "method": "POST",
  "path": "/apis/v1/affiliate-com/merchants/search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "per_page": 1,
              "search": "walmart"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "canonical_ids": {
              "description": "Comma-separated canonical `mer_` merchant IDs.",
              "type": "string"
            },
            "category_ids": {
              "description": "Comma-separated `cat_` category IDs.",
              "type": "string"
            },
            "category_name": {
              "description": "Category name filter.\n\nProvider reference: maximum 255.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "max": 255
              }
            },
            "countries": {
              "description": "Comma-separated ISO 3166-1 alpha-2 codes the merchant operates in, for example `US,CA`.",
              "type": "string"
            },
            "countries_market": {
              "description": "Comma-separated codes for the merchant's market countries.",
              "type": "string"
            },
            "countries_origin": {
              "description": "Comma-separated codes for the merchant's origin country.",
              "type": "string"
            },
            "currencies": {
              "description": "Comma-separated ISO 4217 codes.",
              "type": "string"
            },
            "feed_languages": {
              "description": "Comma-separated ISO 639-1 codes of the product feed.",
              "type": "string"
            },
            "fields": {
              "description": "Comma-separated field names to keep in each record, for example `id,name,logo_url`. Omit for every field.",
              "type": "string"
            },
            "has_commissionable_url": {
              "description": "`1` keeps only merchants with a stored commissionable URL template. Not a test for linkability: read providers[].template instead.\n\nProvider reference: allowed values [\"1\"].",
              "type": "number",
              "x-alexandria-option-metadata": {
                "oneOf": [
                  "1"
                ]
              }
            },
            "merchant_types": {
              "description": "Comma-separated: `standard`, `asn` (Amazon Seller Network).",
              "type": "string"
            },
            "network_ids": {
              "description": "Comma-separated numeric network IDs, as in a merchant's `network.id`.",
              "type": "string"
            },
            "origin_ids": {
              "description": "Comma-separated merchant IDs as the source network assigns them.",
              "type": "string"
            },
            "page": {
              "description": "Page number, starting at 1.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "min": 1
              }
            },
            "per_page": {
              "description": "Merchants per page, 1 to 50. Defaults to 10 here; merchant records are large.\n\nProvider reference: minimum 1; maximum 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "max": 50,
                "min": 1
              }
            },
            "product_count_max": {
              "description": "Only merchants with at most this many products.\n\nProvider reference: minimum 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "min": 0
              }
            },
            "product_count_min": {
              "description": "Only merchants with at least this many products.\n\nProvider reference: minimum 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "min": 0
              }
            },
            "promotion_count_max": {
              "description": "Only merchants with at most this many promotions.\n\nProvider reference: minimum 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "min": 0
              }
            },
            "promotion_count_min": {
              "description": "Only merchants with at least this many promotions.\n\nProvider reference: minimum 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "min": 0
              }
            },
            "search": {
              "description": "Case-insensitive fragment of the merchant name or home_url, for example `Walmart` or `walmart.com`. Does not match IDs.",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0025 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/affiliate-com.json POST /apis/v1/affiliate-com/merchants/search
openapi: 3.1.0
info:
  description: ''
  title: Affiliate.com
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    affiliate-com:
      description: ''
      title: Affiliate.com
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 0a6b8c48bca8c4db625abb482ae634848ff6a1cfbfd9a8f82a6b6a6f6edf5315
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/affiliate-com/identifiers/asin-to-barcode
    - /apis/v1/affiliate-com/identifiers/barcode-to-asin
    - /apis/v1/affiliate-com/identifiers/url-to-barcode
    - /apis/v1/affiliate-com/merchants/get
    - /apis/v1/affiliate-com/merchants/search
    - /apis/v1/affiliate-com/networks/get
    - /apis/v1/affiliate-com/networks/groups
    - /apis/v1/affiliate-com/networks/list
    - /apis/v1/affiliate-com/products/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:7a96e30cc067c6205190ac2c175519a1d2e8682e9ce7cbb36b855bedc76ecfec
    facts_hash: 0a6b8c48bca8c4db625abb482ae634848ff6a1cfbfd9a8f82a6b6a6f6edf5315
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: affiliate-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/affiliate-com/merchants/search:
    post:
      tags:
        - Affiliate.com
      summary: Search merchants
      description: >-
        Find retailers and brands across affiliate networks by name or domain,
        and see which network carries them, how many products they list, their
        categories and countries, and link templates to fill with your own
        publisher ID.
      operationId: affiliate-com.merchants.search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  per_page: 1
                  search: walmart
            schema:
              additionalProperties: true
              properties:
                canonical_ids:
                  description: Comma-separated canonical `mer_` merchant IDs.
                  type: string
                category_ids:
                  description: Comma-separated `cat_` category IDs.
                  type: string
                category_name:
                  description: |-
                    Category name filter.

                    Provider reference: maximum 255.
                  type: string
                  x-alexandria-option-metadata:
                    max: 255
                countries:
                  description: >-
                    Comma-separated ISO 3166-1 alpha-2 codes the merchant
                    operates in, for example `US,CA`.
                  type: string
                countries_market:
                  description: Comma-separated codes for the merchant's market countries.
                  type: string
                countries_origin:
                  description: Comma-separated codes for the merchant's origin country.
                  type: string
                currencies:
                  description: Comma-separated ISO 4217 codes.
                  type: string
                feed_languages:
                  description: Comma-separated ISO 639-1 codes of the product feed.
                  type: string
                fields:
                  description: >-
                    Comma-separated field names to keep in each record, for
                    example `id,name,logo_url`. Omit for every field.
                  type: string
                has_commissionable_url:
                  description: >-
                    `1` keeps only merchants with a stored commissionable URL
                    template. Not a test for linkability: read
                    providers[].template instead.


                    Provider reference: allowed values ["1"].
                  type: number
                  x-alexandria-option-metadata:
                    oneOf:
                      - '1'
                merchant_types:
                  description: 'Comma-separated: `standard`, `asn` (Amazon Seller Network).'
                  type: string
                network_ids:
                  description: >-
                    Comma-separated numeric network IDs, as in a merchant's
                    `network.id`.
                  type: string
                origin_ids:
                  description: >-
                    Comma-separated merchant IDs as the source network assigns
                    them.
                  type: string
                page:
                  description: |-
                    Page number, starting at 1.

                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    min: 1
                per_page:
                  description: >-
                    Merchants per page, 1 to 50. Defaults to 10 here; merchant
                    records are large.


                    Provider reference: minimum 1; maximum 50.
                  type: number
                  x-alexandria-option-metadata:
                    max: 50
                    min: 1
                product_count_max:
                  description: |-
                    Only merchants with at most this many products.

                    Provider reference: minimum 0.
                  type: number
                  x-alexandria-option-metadata:
                    min: 0
                product_count_min:
                  description: |-
                    Only merchants with at least this many products.

                    Provider reference: minimum 0.
                  type: number
                  x-alexandria-option-metadata:
                    min: 0
                promotion_count_max:
                  description: |-
                    Only merchants with at most this many promotions.

                    Provider reference: minimum 0.
                  type: number
                  x-alexandria-option-metadata:
                    min: 0
                promotion_count_min:
                  description: |-
                    Only merchants with at least this many promotions.

                    Provider reference: minimum 0.
                  type: number
                  x-alexandria-option-metadata:
                    min: 0
                search:
                  description: >-
                    Case-insensitive fragment of the merchant name or home_url,
                    for example `Walmart` or `walmart.com`. Does not match IDs.
                  type: string
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-14.
                  summary: Official provider example
                  value:
                    data:
                      - canonical: null
                        categories: []
                        cookie_duration: null
                        countries:
                          - US
                        currencies: []
                        description: null
                        domains: []
                        home_url: null
                        icon_url: >-
                          https://placehold.co/112x32/EBF4FF/7F9CF56?text=Farberware+-+Walmart+Seller
                        id: 186149
                        logo_url: >-
                          https://placehold.co/112x32/EBF4FF/7F9CF56?text=Farberware+-+Walmart+Seller
                        name: Farberware - Walmart Seller
                        network:
                          canonical_id: net_01kkgbymywvbf5qjdcdwchxdhm
                          icon_url: >-
                            https://img.affiliate.com/logos/groups/10020/64x64.png
                          id: 335
                          links:
                            canonical: >-
                              https://api.affiliate.com/v1/networks/net_01kkgbymywvbf5qjdcdwchxdhm?extended=1
                            self: >-
                              https://api.affiliate.com/v1/networks/rnet_01kkgbyq82ve56ywbmhm7pn95t?extended=1
                          logo_url: >-
                            https://img.affiliate.com/logos/groups/10020/64x64.png
                          name: Impact
                          region: US
                          slug: rnet_hm7pn95t
                          url: https://www.impact.com
                        object_id: nmer_01kya001cpdvkyfv85fsvqtnqe
                        origin_id: null
                        product_count: 402
                        providers:
                          - approval: null
                            deeplink: null
                            outclick: null
                            provider: network
                            status: null
                            status_changed_at: null
                            supports_deeplinking: null
                            template: null
                            url: null
                        slug: nmer_fsvqtnqe
                        supports:
                          products: true
                          promotions: false
                          services: false
                        supports_deeplinking: null
                    meta:
                      current_page: 1
                      fields:
                        - id
                        - object_id
                        - slug
                        - origin_id
                        - name
                        - description
                        - domains
                        - home_url
                        - icon_url
                        - logo_url
                        - product_count
                        - cookie_duration
                        - supports_deeplinking
                        - categories
                        - countries
                        - currencies
                        - providers
                        - network
                        - canonical
                        - supports
                      from: 1
                      last_page: 62
                      per_page: 1
                      to: 1
                      total: 62
                      trace_id: 01a13a8a-e66c-7236-a837-c2fc4b6d4315
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Merchants under `data` with `meta` pagination (total, current_page,
            last_page, per_page). Always the extended merchant object: network,
            canonical merchant, categories, countries and per-provider link
            templates.


            The response contains the tool result directly.


            The provider identifies `data` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `id` | number | Numeric merchant ID (legacy); merchants/get
            accepts it. |

            | `object_id` | string | Stable `nmer_` ID of this merchant on one
            network. |

            | `slug` | string |  |

            | `origin_id` | string | The merchant's ID on its source network;
            may be null. |

            | `name` | string |  |

            | `description` | string | May be null. |

            | `domains` | string[] | Merchant site URLs. |

            | `home_url` | string | Merchant homepage; may be null. |

            | `icon_url` | string |  |

            | `logo_url` | string |  |

            | `product_count` | number |  |

            | `promotion_count` | number |  |

            | `has_content` | boolean |  |

            | `cookie_duration` | string | ISO 8601 duration such as `P1M2D`;
            null when not reported. |

            | `supports_deeplinking` | boolean | Null when unknown. |

            | `categories` | object[] | id, breadcrumb, name, shopify_id,
            google_id. |

            | `countries` | string[] |  |

            | `currencies` | string[] |  |

            | `supports` | object | products, services, promotions booleans. |

            | `providers` | object[] | One entry per way to earn on the merchant
            (`network` or `shopnomix`): status, url, template, outclick,
            supports_deeplinking, deeplink, approval. `template` holds
            `{AFF_ID}`/`{SUB_ID}` slots for the caller's own publisher and
            sub-IDs. status, url and outclick describe the Exchange's shared
            affiliate.com account, which has no network credentials, so they are
            normally null; credential_id is removed. |

            | `network` | object | id, slug, name, region, url, logo_url,
            icon_url, canonical_id, links. |

            | `canonical` | object | Deduplicated canonical merchant (`mer_` id,
            name, site_url, domains map); null when none. |

            | `merchant_types` | string[] | `standard` or `asn`. |

            | `link_services` | object | Third-party link services and their
            mode; null when none. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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