> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tiankii.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tiankii.com/_mcp/server.

# List modifier products

GET https://api.md.tiankii.com/v1/product-modifiers/{modifierId}/products

## Get products for a modifier

Returns the products currently linked to the modifier `:modifierId`. It is the read counterpart of `POST /product-modifiers/products/link`.

### Authentication
- Merchant API key in **`x-api-key`** (alias `x-account-api-key`).
- Requires **`Merchant.product.read`**.

### Path params
- `modifierId` — the modifier UUID. Must belong to your store, otherwise **400 Bad Request** (`Modifier not found in yours`).

### Response
A bare array of full product objects (no pagination envelope). There is **no request body**.

---
**Notas:** Handler: productModifiersService.getProductsForModifier. Returns a bare array read through the productModifiers join table. Inverse view of GET /v1/products/:productId/modifiers.

Reference: https://docs.tiankii.com/api-reference/tiankii-api-api-key/products/modifiers/list-products

## Authentication

- `x-api-key` header (required)

## Request

### Path parameters

- `modifierId` (string, required) — The modifier UUID. Must belong to the authenticated store.

### Headers

- `x-application-account-id` (string, optional) — Scope the request to a specific store / account instead of the one resolved from the API key. Aliases: the `x-account-id` header, or the `application_account_id` / `account_id` query parameter.

## Examples

**SDK Code**

```python
import requests

url = "https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products"

headers = {
    "x-application-account-id": "acct_3f9a21c7",
    "x-api-key": "<apiKey>"
}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products';
const options = {
  method: 'GET',
  headers: {'x-application-account-id': 'acct_3f9a21c7', 'x-api-key': '<apiKey>'}
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-application-account-id", "acct_3f9a21c7")
	req.Header.Add("x-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-application-account-id"] = 'acct_3f9a21c7'
request["x-api-key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products")
  .header("x-application-account-id", "acct_3f9a21c7")
  .header("x-api-key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products', [
  'headers' => [
    'x-api-key' => '<apiKey>',
    'x-application-account-id' => 'acct_3f9a21c7',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products");
var request = new RestRequest(Method.GET);
request.AddHeader("x-application-account-id", "acct_3f9a21c7");
request.AddHeader("x-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-application-account-id": "acct_3f9a21c7",
  "x-api-key": "<apiKey>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.md.tiankii.com/v1/product-modifiers/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/products")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```