Passives case_package in imperial units

100 views
Skip to first unread message

Giorgio Delmondo

unread,
Nov 2, 2016, 11:49:18 AM11/2/16
to Octopart API
Hello,

I wish to get case_package values of resistors, capacitors and other passives.
I use this query:

curl -G https://octopart.com/api/v3/parts/match    -d queries="[{\"mpn\":\"C1005C0G1H180J050BA\"}]"    -d apikey=XXXXX -d pretty_print=true    -d include[]=specs

The results reports the case_package value in metric units. Is there any way to get the US imperial value?
In this case the capacitor is reported with a package of 1005 (metric). I would like to get the imperial (more common) value of 0402. Is there any way?

"case_package": {
                            "__class__": "SpecValue",
                            "attribution": {
                                "__class__": "Attribution",
                                "first_acquired": null,
                                "sources": null
                            },
                            "display_value": "1005",
                            "max_value": null,
                            "metadata": {
                                "__class__": "SpecMetadata",
                                "datatype": "string",
                                "key": "case_package",
                                "name": "Case/Package",
                                "unit": null
                            },
                            "min_value": null,
                            "value": [
                                "1005"
                            ]
                        },

Thanks and Regards,
Giorgio
Reply all
Reply to author
Forward
0 new messages