Skip to main content
POST
/
material-library
/
material-list
cURL
curl --request POST \
  --url https://api-v2.production.higg.org/pic-api/v1/material-library/material-list \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-developer-request-token: <api-key>' \
  --data '
{
  "filter": {
    "logic": "<string>",
    "filters": [
      {
        "field": "<string>",
        "operator": "<string>",
        "value": {}
      }
    ]
  },
  "skip": 123,
  "take": 123,
  "sort": [
    {
      "field": "<string>",
      "dir": "<string>",
      "isNotNested": true
    }
  ],
  "searchStr": "<string>"
}
'
import requests

url = "https://api-v2.production.higg.org/pic-api/v1/material-library/material-list"

payload = {
"filter": {
"logic": "<string>",
"filters": [
{
"field": "<string>",
"operator": "<string>",
"value": {}
}
]
},
"skip": 123,
"take": 123,
"sort": [
{
"field": "<string>",
"dir": "<string>",
"isNotNested": True
}
],
"searchStr": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"x-developer-request-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-developer-request-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
filter: {
logic: '<string>',
filters: [{field: '<string>', operator: '<string>', value: {}}]
},
skip: 123,
take: 123,
sort: [{field: '<string>', dir: '<string>', isNotNested: true}],
searchStr: '<string>'
})
};

fetch('https://api-v2.production.higg.org/pic-api/v1/material-library/material-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api-v2.production.higg.org/pic-api/v1/material-library/material-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'filter' => [
'logic' => '<string>',
'filters' => [
[
'field' => '<string>',
'operator' => '<string>',
'value' => [

]
]
]
],
'skip' => 123,
'take' => 123,
'sort' => [
[
'field' => '<string>',
'dir' => '<string>',
'isNotNested' => true
]
],
'searchStr' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>",
"x-developer-request-token: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api-v2.production.higg.org/pic-api/v1/material-library/material-list"

payload := strings.NewReader("{\n \"filter\": {\n \"logic\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": {}\n }\n ]\n },\n \"skip\": 123,\n \"take\": 123,\n \"sort\": [\n {\n \"field\": \"<string>\",\n \"dir\": \"<string>\",\n \"isNotNested\": true\n }\n ],\n \"searchStr\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-developer-request-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api-v2.production.higg.org/pic-api/v1/material-library/material-list")
.header("x-api-key", "<api-key>")
.header("x-developer-request-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"filter\": {\n \"logic\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": {}\n }\n ]\n },\n \"skip\": 123,\n \"take\": 123,\n \"sort\": [\n {\n \"field\": \"<string>\",\n \"dir\": \"<string>\",\n \"isNotNested\": true\n }\n ],\n \"searchStr\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-v2.production.higg.org/pic-api/v1/material-library/material-list")

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

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-developer-request-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"filter\": {\n \"logic\": \"<string>\",\n \"filters\": [\n {\n \"field\": \"<string>\",\n \"operator\": \"<string>\",\n \"value\": {}\n }\n ]\n },\n \"skip\": 123,\n \"take\": 123,\n \"sort\": [\n {\n \"field\": \"<string>\",\n \"dir\": \"<string>\",\n \"isNotNested\": true\n }\n ],\n \"searchStr\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "total": 123,
  "hits": [
    {
      "_id": "<string>",
      "type": "<string>",
      "name": "<string>",
      "t2GlobalWarmingImpact": 123,
      "t3GlobalWarmingImpact": 123,
      "t4GlobalWarmingImpact": 123,
      "createdOn": 123,
      "user": {
        "_id": "<string>",
        "email": "<string>",
        "firstname": "<string>",
        "lastname": "<string>"
      },
      "account": {
        "_id": "<string>",
        "name": "<string>",
        "country": "<string>",
        "sacId": 123,
        "oar_id": "<string>",
        "demoaccount": true,
        "socialCreditId": "<string>",
        "taxId": "<string>",
        "bluesignId": "<string>",
        "zdhcId": "<string>",
        "ipeViolation": {
          "totalViolations": 123
        },
        "ffcId": 123
      },
      "totalMaterialGlobalWarmingImpact": 123,
      "_rev": "<string>",
      "code": "<string>",
      "category": "<string>",
      "supplierCountry": "<string>",
      "nameId": "<string>",
      "supplier": "<string>",
      "country": "<string>",
      "tier2": {
        "isDefault": true,
        "assessment": {
          "_id": "<string>",
          "surveyVersion": "<string>",
          "country": "<string>",
          "processName": "<string>"
        },
        "facility": {
          "_id": "<string>",
          "name": "<string>",
          "country": "<string>",
          "sacId": 123,
          "oar_id": "<string>",
          "demoaccount": true,
          "socialCreditId": "<string>",
          "taxId": "<string>",
          "bluesignId": "<string>",
          "zdhcId": "<string>",
          "ipeViolation": {
            "totalViolations": 123
          },
          "ffcId": 123
        },
        "country": "<string>",
        "facilityRawText": "<string>"
      },
      "tier3": {
        "isDefault": true,
        "assessment": {
          "_id": "<string>",
          "surveyVersion": "<string>",
          "country": "<string>",
          "processName": "<string>"
        },
        "facility": {
          "_id": "<string>",
          "name": "<string>",
          "country": "<string>",
          "sacId": 123,
          "oar_id": "<string>",
          "demoaccount": true,
          "socialCreditId": "<string>",
          "taxId": "<string>",
          "bluesignId": "<string>",
          "zdhcId": "<string>",
          "ipeViolation": {
            "totalViolations": 123
          },
          "ffcId": 123
        },
        "country": "<string>",
        "facilityRawText": "<string>"
      },
      "baseMaterials": [
        {
          "_id": "<string>",
          "composition": 123,
          "name": "<string>",
          "baseMaterialProcesses": [
            {
              "_id": "<string>",
              "name": "<string>",
              "stageName": "<string>",
              "lifeCycle": "<string>",
              "isEligible": true,
              "totalMaterialGlobalWarmingImpact": 123,
              "totalLossRate": 123,
              "residualElectricityTotal": 123,
              "lossRate": 123,
              "assessment": {
                "_id": "<string>",
                "surveyVersion": "<string>",
                "country": "<string>",
                "processName": "<string>"
              },
              "facility": {
                "_id": "<string>",
                "name": "<string>",
                "country": "<string>",
                "sacId": 123,
                "oar_id": "<string>",
                "demoaccount": true,
                "socialCreditId": "<string>",
                "taxId": "<string>",
                "bluesignId": "<string>",
                "zdhcId": "<string>",
                "ipeViolation": {
                  "totalViolations": 123
                },
                "ffcId": 123
              },
              "country": "<string>",
              "facilityType": [
                "<string>"
              ],
              "sipfacilitymaterialprocesstextiles": [
                "<string>"
              ],
              "materialproduction_normalized_kgco2e": 123,
              "rawmaterialprocessing_normalized_kgco2e": 123,
              "globalWarmingImpact": 123,
              "facilityRawText": "<string>"
            }
          ],
          "totalMaterialGlobalWarmingImpactT2": 123,
          "totalMaterialGlobalWarmingImpactT3": 123,
          "totalMaterialGlobalWarmingImpactT4": 123,
          "totalMaterialGlobalWarmingImpact": 123,
          "refKey": "<string>",
          "sustainability": {
            "isEligible": true,
            "processId": "<string>"
          },
          "manufacturer": "<string>",
          "tradeName": "<string>",
          "country": "<string>",
          "typeCode": "<string>",
          "materialSubtype": "<string>",
          "sustainabilityAttribute": "<string>",
          "baseMaterialProcessesList": [
            {
              "_id": "<string>",
              "name": "<string>",
              "stageName": "<string>",
              "lifeCycle": "<string>",
              "isEligible": true,
              "totalMaterialGlobalWarmingImpact": 123,
              "totalLossRate": 123,
              "residualElectricityTotal": 123,
              "lossRate": 123,
              "assessment": {
                "_id": "<string>",
                "surveyVersion": "<string>",
                "country": "<string>",
                "processName": "<string>"
              },
              "facility": {
                "_id": "<string>",
                "name": "<string>",
                "country": "<string>",
                "sacId": 123,
                "oar_id": "<string>",
                "demoaccount": true,
                "socialCreditId": "<string>",
                "taxId": "<string>",
                "bluesignId": "<string>",
                "zdhcId": "<string>",
                "ipeViolation": {
                  "totalViolations": 123
                },
                "ffcId": 123
              },
              "country": "<string>",
              "facilityType": [
                "<string>"
              ],
              "sipfacilitymaterialprocesstextiles": [
                "<string>"
              ],
              "materialproduction_normalized_kgco2e": 123,
              "rawmaterialprocessing_normalized_kgco2e": 123,
              "globalWarmingImpact": 123,
              "facilityRawText": "<string>"
            }
          ],
          "uniqueCyclesAssessments": [
            {
              "assessmentId": "<string>",
              "processId": "<string>",
              "lifeCycle": "<string>",
              "isEligible": true,
              "sipfacilitymaterialprocesstextiles": "<string>"
            }
          ],
          "shortPath": {
            "yarnSize": "<string>",
            "autoFromShortPath": true
          },
          "v2Calculations": {
            "totalMaterialGlobalWarmingImpactT2": 123,
            "totalMaterialGlobalWarmingImpactT3": 123,
            "totalMaterialGlobalWarmingImpactT4": 123,
            "totalMaterialGlobalWarmingImpact": 123
          },
          "stages": [
            {
              "stageId": "<string>",
              "countryCode": "<string>",
              "source": "<string>",
              "disaggregated": true,
              "processId": "<string>",
              "lossRate": 123,
              "residualGWP": 123,
              "residualScope3GWP": 123,
              "totalElectricity": 123,
              "naturalGas": 123,
              "diesel": 123,
              "coal": 123,
              "systemBoundaryStages": [
                "<string>"
              ],
              "yarnSize": "<string>",
              "yarnUnit": "<string>",
              "countryGridEF": {
                "countryCode": "<string>",
                "gwp": 123,
                "eutrophication": 123,
                "waterScarcity": 123,
                "abioticDepletion": 123,
                "dataSource": "<string>"
              },
              "activityAttribute": "<string>",
              "country": "<string>",
              "dyeType": "<string>",
              "activityType": "<string>",
              "processType": "<string>",
              "manufacturer": "<string>",
              "textileFormation": "<string>",
              "enabledBy": "<string>",
              "intrinsicCharacteristic": "<string>",
              "layersCount": "<string>",
              "substratePURatio": "<string>",
              "programCertification": "<string>",
              "inputFor": "<string>",
              "contributor": "<string>",
              "upstreamProcessId": "<string>",
              "organizationId": "<string>",
              "approach": "<string>",
              "gwPerKg": 123,
              "outputMass": 123,
              "phaseGW": 123,
              "transport": 123
            }
          ]
        }
      ],
      "modifiedOn": 123,
      "deleted": true,
      "deletedBy": {
        "_id": "<string>",
        "email": "<string>",
        "firstname": "<string>",
        "lastname": "<string>"
      },
      "modifiedBy": {
        "_id": "<string>",
        "email": "<string>",
        "firstname": "<string>",
        "lastname": "<string>"
      },
      "createdBy": {
        "_id": "<string>",
        "email": "<string>",
        "firstname": "<string>",
        "lastname": "<string>"
      },
      "v2Calculations": {
        "totalMaterialGlobalWarmingImpactT2": 123,
        "totalMaterialGlobalWarmingImpactT3": 123,
        "totalMaterialGlobalWarmingImpactT4": 123,
        "totalMaterialGlobalWarmingImpact": 123
      },
      "msiVersion": "<string>",
      "tags": [
        "<string>"
      ]
    }
  ],
  "max_score": 123,
  "aggregations": {}
}
Use this endpoint to list and search the custom materials in your PIC material library. This returns materials that you have created or imported, not the default BOM catalog.
For the default BOM material catalog used when building product compositions, use Get Materials (Product Attributes) instead.

Implementation Details

  • Your materials only: Returns materials belonging to your account’s material library.
  • Searchable: Supports text search and standard filtering parameters (skip, take, sort, filter) for advanced queries.

Authorizations

x-api-key
string
header
required
x-developer-request-token
string
header
required

Body

application/json
filter
object
skip
number<double> | null
take
number<double> | null
sort
object[] | null
searchStr
string | null

Response

200 - application/json

Ok

total
number<double>
required
hits
object[]
required
max_score
number<double> | null
aggregations
object | null