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

# List the attribution links you've created

> Returns every attribution Amazon link you've created with Archer, paginated. Use `page` to step through pages and `limit` (up to 500) to control the page size.

### Picking a marketplace
Use `marketplace` to filter links by Amazon marketplace — for example `amazon.com`, `amazon.co.uk`, `amazon.de` or `amazon.fr`.

Pass `marketplace=all` to retrieve links from **every** marketplace in a single response; each link still carries its own `marketplace` field so you can split client-side.

**Default:** `marketplace` defaults to `amazon.com` when omitted, for backward compatibility with pre-v2 clients. If you're a new integration and want to see links from non-US marketplaces (e.g. UK), you **must** pass either a specific `marketplace` (such as `amazon.co.uk`) or `all`. Omitting the parameter will only return US links.

### Filtering
- `link_name` — case-insensitive substring match on the name you gave the link.
- `url` — case-insensitive substring match on the Amazon URL the link points to (handy for finding the link for a given ASIN).
- `brand_ids` — comma-separated brand ids. Restricts to links created for one or more brands.
- `start_date` / `end_date` — ISO date (`YYYY-MM-DD`) or `YYYYMMDD`. Both ends inclusive; either can be omitted. Filters on the link's `created_date_time`.

### Storefront links
Storefront rows expose `store_page_id` as their destination identifier. Internal Amazon Store identifiers are omitted.



## OpenAPI

````yaml /docs/api-reference/openapi.json get /get_all_links
openapi: 3.1.0
info:
  title: Archer Affiliates API
  description: API that allows use of features on the Archer Platform
  version: '2.0'
servers:
  - url: https://api.archeraffiliates.com
    description: Production
security: []
paths:
  /get_all_links:
    get:
      tags:
        - Attribution Links
      summary: List the attribution links you've created
      description: >-
        Returns every attribution Amazon link you've created with Archer,
        paginated. Use `page` to step through pages and `limit` (up to 500) to
        control the page size.


        ### Picking a marketplace

        Use `marketplace` to filter links by Amazon marketplace — for example
        `amazon.com`, `amazon.co.uk`, `amazon.de` or `amazon.fr`.


        Pass `marketplace=all` to retrieve links from **every** marketplace in a
        single response; each link still carries its own `marketplace` field so
        you can split client-side.


        **Default:** `marketplace` defaults to `amazon.com` when omitted, for
        backward compatibility with pre-v2 clients. If you're a new integration
        and want to see links from non-US marketplaces (e.g. UK), you **must**
        pass either a specific `marketplace` (such as `amazon.co.uk`) or `all`.
        Omitting the parameter will only return US links.


        ### Filtering

        - `link_name` — case-insensitive substring match on the name you gave
        the link.

        - `url` — case-insensitive substring match on the Amazon URL the link
        points to (handy for finding the link for a given ASIN).

        - `brand_ids` — comma-separated brand ids. Restricts to links created
        for one or more brands.

        - `start_date` / `end_date` — ISO date (`YYYY-MM-DD`) or `YYYYMMDD`.
        Both ends inclusive; either can be omitted. Filters on the link's
        `created_date_time`.


        ### Storefront links

        Storefront rows expose `store_page_id` as their destination identifier.
        Internal Amazon Store identifiers are omitted.
      operationId: getting_all_links_get_all_links_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            default: 1
            title: Page
        - name: limit
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            default: 100
            title: Limit
        - name: marketplace
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: amazon.com
            title: Marketplace
        - name: link_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Case-insensitive substring match on the link's name.
            title: Link Name
          description: Case-insensitive substring match on the link's name.
        - name: url
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Case-insensitive substring match on the link's Amazon URL.
            title: Url
          description: Case-insensitive substring match on the link's Amazon URL.
        - name: brand_ids
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Comma-separated brand ids. Restricts to links for one or more
              brands.
            title: Brand Ids
          description: >-
            Comma-separated brand ids. Restricts to links for one or more
            brands.
        - name: start_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              First day of the date range (inclusive). `YYYY-MM-DD` or
              `YYYYMMDD`.
            examples:
              iso:
                value: '2026-05-01'
              compact:
                value: '20260501'
            title: Start Date
          description: First day of the date range (inclusive). `YYYY-MM-DD` or `YYYYMMDD`.
        - name: end_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Last day of the date range (inclusive). `YYYY-MM-DD` or
              `YYYYMMDD`.
            examples:
              iso:
                value: '2026-05-31'
              compact:
                value: '20260531'
            title: End Date
          description: Last day of the date range (inclusive). `YYYY-MM-DD` or `YYYYMMDD`.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllLinksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    GetAllLinksResponse:
      properties:
        all_links:
          items:
            $ref: '#/components/schemas/LinkData'
          type: array
          title: All Links
        pagination_info:
          $ref: '#/components/schemas/PaginationInfo'
      type: object
      required:
        - all_links
        - pagination_info
      title: GetAllLinksResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LinkData:
      properties:
        url:
          type: string
          title: Url
          description: The attribution Amazon URL.
        asin:
          anyOf:
            - type: string
            - type: 'null'
          title: Asin
          description: The product the link points at; null for storefront links.
        product_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Name
          description: The product title; null for storefront links.
        created_date_time:
          type: string
          title: Created Date Time
          description: When the link was created.
        link_name:
          type: string
          title: Link Name
          description: The name you chose for the link.
        marketplace:
          anyOf:
            - type: string
            - type: 'null'
          title: Marketplace
          description: >-
            The Amazon marketplace the link sends shoppers to, e.g.
            `amazon.co.uk`.
        type:
          type: string
          title: Type
          description: '`product` or `storefront`.'
          default: product
        store_page_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Store Page Id
        page_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Name
        page_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Page Url
      additionalProperties: true
      type: object
      required:
        - url
        - created_date_time
        - link_name
      title: LinkData
      description: One attribution Amazon link you've created.
    PaginationInfo:
      properties:
        total_items:
          type: integer
          title: Total Items
        total_pages:
          type: integer
          title: Total Pages
        current_page:
          type: integer
          title: Current Page
        items_per_page:
          type: integer
          title: Items Per Page
        items_start:
          type: integer
          title: Items Start
        items_end:
          type: integer
          title: Items End
      type: object
      required:
        - total_items
        - total_pages
        - current_page
        - items_per_page
        - items_start
        - items_end
      title: PaginationInfo
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: token

````