Reference Values Queries

Modified on Wed, 4 Jan, 2023 at 1:34 PM

These queries can be used to get lists of key reference values found on the Octopart site. These are simple queries you can build upon using Voyager to expand the fields.


Attributes:


query attributes{
  supAttributes{
      id
      name
      shortname
      unitsName
  }
}


Categories:


query Categories{
  supCategories{
    id
    name
    path
    numParts
  }
}


Manufacturers:


query Manufacturers{
  supManufacturers{
    id
    name
    aliases
  }
}


Sellers:


query Sellers{
  supSellers{
    id
    name
    homepageUrl
  }
}

Example:


Building upon the categories query above, we have:


query Categories{
  supCategories(ids: ["4393"]){
    id
    name
    path
    numParts
    ancestors{
      id
      name
    }
    children{
      id
      name
    }
  }
}

... which returns:


{
  "data": {
    "supCategories": [
      {
        "id": "4393",
        "name": "Cables and Wire",
        "path": "/electronic-parts/cables-and-wire",
        "numParts": 644702,
        "ancestors": [
          {
            "id": "4161",
            "name": "Electronic Parts"
          }
        ],
        "children": [
          {
            "id": "5031",
            "name": "Audio / Video Cables"
          },
          {
            "id": "4394",
            "name": "Bulk Hook-up Wire"
          },
          {
            "id": "4399",
            "name": "Bulk Multiple Conductor Cables"
          },
          {
            "id": "4396",
            "name": "Coaxial / RF Cable Assemblies"
          },
          {
            "id": "4378",
            "name": "D-Sub Cables"
          },
          {
            "id": "4387",
            "name": "Ethernet Cables"
          },
          {
            "id": "5032",
            "name": "FFC / FPC Cables"
          },
          {
            "id": "4398",
            "name": "Fiber Optic Cables"
          },
          {
            "id": "4395",
            "name": "Flat Ribbon Cables"
          },
          {
            "id": "4373",
            "name": "USB Cables"
          },
          {
            "id": "5326",
            "name": "Wire Protection and Management"
          }
        ]
      }
    ]
  },
  "extensions": {
    "requestId": "329a06db-b7be-4f41-8b93-99e6518ac72e"
  }
}




Category

Attribute

Seller

Manufactur



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article