Back to Aligni.com

Retrieve the list of all parts.

Deprecation Warning

In this version, comment, description, and rohs attributes are populated in the part object from the active revision of the part. This behavior is for API v1 compatibility only and will be removed from the next version of the API. These attributes should be taken from the active_revision object instead.

Examples

# request
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part

# Filtering
# Currently, filtering functionality is limited to the "updated_on" field and "gte"
# (greater than or equal to) operator for list parts. This returns all parts updated on
# or after an ISO8601-formatted date is appended to the URL request.
# Note: the ISO8601 date string must be properly encoded to form a compatible URI as shown in the example.
# Specifically, + must be replaced with %2B and : must be replaced with %3A.
curl -g -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part?filter[updated_on][gte]=2019-10-02T11:15:28-07:00

# response
<parts>
  <part>
    <id>728</id>
    <partnumber>000019</partnumber>
    <manufacturer_pn>C0603C104K4RACTU</manufacturer_pn>
    <manufacturer_id>147</manufacturer_id>
    <parttype_id>47</parttype_id>
    <unit_id>2</unit_id>
    <comment>SM-0603, 10%, 16v, X7R</comment>
    <description>Ceramic capacitor</description>
    <value>1.0e-07</value>
    <value_text>0.1 u</value_text>
    <rohs>1</rohs>
    <created_on>2006-01-24 23:11:47 -0500</created_on>
    <updated_on>2018-04-10 16:41:55 -0500</updated_on>
    <inventory_price>0.009</inventory_price>
    <estimated_cost>0.009</estimated_cost>
    <estimated_cost_currency>USD</estimated_cost_currency>
    <reorder_quantity>12000.00</reorder_quantity>
    <inventory_maximum></inventory_maximum>
    <preferred_vendor_id/>
    <manufactured_here>false</manufactured_here>
    <active_revision>
      <id>171</id>
      <revision_name>A</revision_name>
      <revision_description></revision_description>
      <comment>SM-0603, 10%, 16v, X7R</comment>
      <description>Ceramic capacitor</description>
      <rohs>1</rohs>
      <x_package>0603</x_package>
      <x_tolerance>10.0</x_tolerance>
      <x_packaging>Tape and Reel</x_packaging>
      <x_schematic_symbol>Capacitor</x_schematic_symbol>
      <x_temperature-characteristic>X7R</x_temperature-characteristic>
      <x_serialized>true</x_serialized>
      <x_pcb_footprint_2/>
      <x_mass value_text="9 m">0.009</x_mass>
      <x_pcb_footprint_3/>
      <x_pcb_footprint_1>CAPC1608N</x_pcb_footprint_1>
      <x_height/>
      <x_link/>
      <x_lifecycle_status>End of Life</x_lifecycle_status>
    </active_revision>
    <part_visibility_set>
      <id>1</id>
      <name>Watch Parts<name/>
      <description/>
      <short_name/>
      <position/>
    </part_visibility_set>
  </part>
  <part>
    <id>730</id>
    <partnumber>000095</partnumber>
    <manufacturer_pn>RC0603JR-07680KL</manufacturer_pn>
    <manufacturer_id>156</manufacturer_id>
    <parttype_id>48</parttype_id>
    <unit_id>2</unit_id>
    <comment>SMD-0603, 5%, 1/10W</comment>
    <description>Thick-film resistor</description>
    <value>680000.0</value>
    <value_text>680 k</value_text>
    <rohs>1</rohs>
    <created_on>2006-01-24 23:11:38 -0500</created_on>
    <updated_on>2014-10-23 11:20:33 -0500</updated_on>
    <inventory_price/>
    <estimated_cost/>
    <estimated_cost_currency>USD</estimated_cost_currency>
    <reorder_quantity></reorder_quantity>
    <inventory_maximum></inventory_maximum>
    <preferred_vendor_id/>
    <manufactured_here>false</manufactured_here>
    <x_outsourced>false</x_outsourced>
    <x_outsourcing_location/>
    <active_revision>
      <id>173</id>
      <revision_name>A</revision_name>
      <revision_description/>
      <comment>SMD-0603, 5%, 1/10W</comment>
      <description>Thick-film resistor</description>
      <rohs>1</rohs>
      <x_package/>
      <x_tolerance>5.0</x_tolerance>
      <x_packaging/>
      <x_power value_text="100 m">0.1</x_power>
      <x_schematic_symbol/>
      <x_serialized>false</x_serialized>
      <x_pcb_footprint_2/>
      <x_mass value_text="6 m">0.006</x_mass>
      <x_pcb_footprint_3/>
      <x_pcb_footprint_1/>
      <x_link/>
      <x_lifecycle_status/>
    </active_revision>
    <part_visibility_set>
      <id>2</id>
      <name>Partners<name/>
      <description/>
      <short_name/>
      <position/>
    </part_visibility_set>
  </part>
  ...
</parts>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
page
optional

Fetch requested page.


Value: Must be a Integer
per_page
optional

Fetch a specific number of entries per page.


Value: Must be a Integer