{"info":{"_postman_id":"d8a4e4b9-9597-4902-8de0-40541b741224","name":"Pipe-Dream-APIs","description":"<html><head></head><body><p>These are our custom APIs for sneaker identification and authentication.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3847098","collectionId":"d8a4e4b9-9597-4902-8de0-40541b741224","publishedId":"2sAYJ7hzHE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-01-02T21:11:52.000Z"},"item":[{"name":"https://api.whatarethose.io/listing?data_type=multi","id":"960e39ad-6042-41a7-ae6e-84f7e075a195","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image1","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_jc0vc5Y.jpg"],"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_jc0vc5Y.jpg"},{"key":"image2","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP.jpg"],"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP.jpg"},{"key":"image3","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_usTZ2Im.jpg"],"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_usTZ2Im.jpg"},{"key":"image4","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_4GN5psI.jpg"],"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_4GN5psI.jpg"},{"key":"image5","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_jc0vc5Y.jpg"],"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_jc0vc5Y.jpg"},{"key":"image6","type":"file","src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP.jpg"}]},"url":"https://api.whatarethose.io/listing?data_type=multi","description":"<p>The Listing API is used to send images of sneakers to be graded and authenticated. For a complete analysis we need:</p>\n<p>1. front</p>\n<p>2. left</p>\n<p>3. right</p>\n<p>4. sole</p>\n<p>5. insole</p>\n<p>6. size tag</p>\n<p>Parameters:</p>\n<p>Type: grading | authenthication</p>\n<p>Add the type parameter if you want to see specific types of data.</p>\n<p>Use type=grading for only the grade</p>\n<p><strong>Data Type</strong></p>\n<p>We support json and multipart data. To use either please at the query parameter ?data_type= to the end of the url and send in either data type.</p>\n<p><strong>Example:</strong></p>\n<p><strong>\"</strong><a href=\"https://6mdt6kw7ig.execute-api.us-east-1.amazonaws.com/Prod/list?type=grading\"><b>https://6mdt6kw7ig.execute-api.us-east-1.amazonaws.com/Prod/list?type=grading</b></a></p>\n<p><strong>Body</strong></p>\n<p><strong>Each image must be a base64 encoded string</strong></p>\n<p><strong>Response</strong></p>\n<p><strong>200 - Grade Value</strong></p>\n<p><strong>400 - missing images</strong></p>\n<p><strong>500- Internal Server Error</strong></p>\n","urlObject":{"protocol":"https","path":["listing"],"host":["api","whatarethose","io"],"query":[{"key":"data_type","value":"multi"}],"variable":[]}},"response":[],"_postman_id":"960e39ad-6042-41a7-ae6e-84f7e075a195"},{"name":"https://api.whatarethose.io/recognition/rec?data_type=json","id":"76877abb-138d-46a9-a4bf-31172dd1277c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"file","file":{"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00004_OP/FK00004_OP_jc0vc5Y.jpg"}},"url":"https://api.whatarethose.io/recognition/rec?data_type=json","description":"<p><strong>Type: POST</strong></p>\n<p><strong>Parameters:</strong> Base64 encoded image</p>\n<p><strong>Overview:</strong> This endpoint requires passing in an image. The rec/ endpoint will run our recognition model and return a result for different listings, of the item that was scanned.</p>\n<p><strong>Data Type</strong></p>\n<p>We support json and multipart data. To use either please at the query parameter ?data_type= to the end of the url and send in either data type.</p>\n<p><strong>200 -</strong> Will return a JSON array of names, images, links, ,SKU, and prices for the item that was scanned</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">def image_converter(path):\n    with open(path,\"rb\") as data:\n        image = base64.b64encode(data.read()).decode('utf-8')\n    return image\nheader = {\n    'x-api-key': 'api-key'\n}\nnew_image = image_converter(\"Air-Jordan-11-Space-Jam-1.jpg\")\ntest = requests.post(\"https://ayq6s37rv6.execute-api.us-east-1.amazonaws.com/Prod/recognition?data_type=json\",headers=header,data = json.dumps(new_image),stream=True,timeout=50000)\nprint(test.status_code,test.content)\n\n</code></pre>\n<p><strong>Response 200:</strong></p>\n<p>name: Name of the object</p>\n<p>Links: Purchasing Links</p>\n<p>Images: Images of object</p>\n<p>Prices: prices from each listing</p>\n<p>Confidence Scores: Probability of a match from the image scanned to the items found</p>\n","urlObject":{"protocol":"https","path":["recognition","rec"],"host":["api","whatarethose","io"],"query":[{"key":"data_type","value":"json"}],"variable":[]}},"response":[],"_postman_id":"76877abb-138d-46a9-a4bf-31172dd1277c"},{"name":"https://api.whatarethose.io/recommendations/recommendations?data_type=multi","id":"2f6af411-cc40-4233-a91e-79a87834c18f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"file","file":{"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00015_OP/FK00015_OP_GRfxmyo.jpg"}},"url":"https://0h1q94d2wg.execute-api.us-east-1.amazonaws.com/Prod/recommendations?data_type=json","urlObject":{"protocol":"https","path":["Prod","recommendations"],"host":["0h1q94d2wg","execute-api","us-east-1","amazonaws","com"],"query":[{"key":"data_type","value":"json"}],"variable":[]}},"response":[],"_postman_id":"2f6af411-cc40-4233-a91e-79a87834c18f"},{"name":"https://api.whatarethose.io/skus/skus","id":"a8906c90-3e8f-45cc-aa32-8295bbe72322","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"x-api-key"},{"key":"value","value":"<value>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"file","file":{"src":"/Users/seanbrown/project/sneaker-authetnication/tss-graded-images/graded/FK00015_OP/FK00015_OP_GRfxmyo.jpg"}},"url":"https://api.whatarethose.io/skus","description":"<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">#Sku Detection\n# Overview\n# User can pass in an image of a size tag and this api will render the name of the sneaker.\nimport base64\ndef image_converter(path):\n    with open(path,\"rb\") as data:\n        image = base64.b64encode(data.read()).decode('utf-8')\n    return image\nreq = requests.post(\"hthttps://0blrzg7ahc.execute-api.us-east-1.amazonaws.com/Prod/skus\",data=image_converter(\"Air-Jordan-11-Space-Jam-1.jpg\"))\nprint(req.status_code,req.content)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["skus"],"host":["api","whatarethose","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8906c90-3e8f-45cc-aa32-8295bbe72322"}]}