incorrect response for mpn with space in the name

133 views
Skip to first unread message

Denis Bohm

unread,
May 10, 2017, 6:08:12 PM5/10/17
to Octopart API
If I search for the part LB Q39G-L2OO-35-1 on the web page it finds stock.  However if I search using the API it does not seem to find the correct results.  Any ideas on why?

{
    "__class__": "PartsMatchResponse",
    "msec": 33,
    "request": {
        "__class__": "PartsMatchRequest",
        "exact_only": false,
        "queries": [
            {
                "__class__": "PartsMatchQuery",
                "brand": null,
                "limit": 3,
                "mpn": "LB Q39G-L2OO-35-1",
                "mpn_or_sku": null,
                "q": "",
                "reference": null,
                "seller": null,
                "sku": null,
                "start": 0
            }
        ]
    },
    "results": [
        {
            "__class__": "PartsMatchResult",
            "error": null,
            "hits": 1,
            "items": [
                {
                    "__class__": "Part",
                    "brand": {
                        "__class__": "Brand",
                        "homepage_url": null,
                        "name": "Osram Opto",
                        "uid": "fb393a33c82e2cfe"
                    },
                    "manufacturer": {
                        "__class__": "Manufacturer",
                        "homepage_url": null,
                        "name": "Osram Opto",
                        "uid": "d39b1691e48c005c"
                    },
                    "mpn": "LBQ39G-L2OO-35-1",
                    "octopart_url": "http://octopart.com/lbq39g-l2oo-35-1-osram+opto-65853137",
                    "offers": [],
                    "redirected_uids": [],
                    "uid": "d3e6190020510c21"
                }
            ],
            "reference": null
        }
    ]
}
Reply all
Reply to author
Forward
0 new messages