Guest User

Untitled

a guest
Oct 22nd, 2025
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1.  
  2.  
  3. ## 🛒 Instacart API — Get Goods
  4.  
  5. **Endpoint:** `GET /getGoods`
  6. **Description:**
  7. Fetches available goods from a specified store and ZIP code. Supports filtering by one or more **product categories** and **subcategories** (e.g., “Paper Goods → Tissues”).
  8.  
  9. **Site:** [instacart.com](https://www.instacart.com)
  10. **Budget:** `$100`
  11.  
  12. ---
  13.  
  14. ### ⚙️ Method
  15.  
  16. `GET`
  17.  
  18. ---
  19.  
  20. ### 🔹 Request Parameters
  21.  
  22. | Parameter | Type | Required | Description |
  23. | ------------ | ------------------- | -------- | --------------------------------------------------------------------------------- |
  24. | `zipcode` | `string` | ✅ | ZIP code for the delivery or store location |
  25. | `store` | `string` | ✅ | Store name (e.g., `"Costco"`) |
  26. | `categories` | `string` or `array` | ✅ | One or more product categories to search (e.g., `"paper goods, dairy & produce"`) |
  27.  
  28. ---
  29.  
  30. ### 🧱 Example Request
  31.  
  32. ```json
  33. {
  34. "zipcode": "90001",
  35. "store": "Costco",
  36. "categories": ["paper goods"]
  37. }
  38. ```
  39.  
  40. ---
  41.  
  42. ### ✅ Example Response
  43.  
  44. ```json
  45. {
  46. "paper goods": {
  47. "subcategories": {
  48. "tissues": [
  49. {
  50. "name": "Kleenex Ultra Soft Tissues, 3-Ply (8 Boxes)",
  51. "price": "$16.49",
  52. "size": "8 boxes, 120 tissues each",
  53. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  54. "category": "Paper Goods",
  55. "subcategory": "Tissues",
  56. "store": "Costco",
  57. "zipcode": "90001",
  58. "url": "https://www.instacart.com/products/12345678-kleenex-ultra-soft"
  59. },
  60. {
  61. "name": "Kirkland Signature Facial Tissues, 2-Ply (12 Boxes)",
  62. "price": "$14.79",
  63. "size": "12 boxes, 160 tissues each",
  64. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  65. "category": "Paper Goods",
  66. "subcategory": "Tissues",
  67. "store": "Costco",
  68. "zipcode": "90001",
  69. "url": "https://www.instacart.com/products/22345678-kirkland-facial-tissues"
  70. },
  71. {
  72. "name": "Puffs Plus Lotion Tissues (4 Boxes)",
  73. "price": "$7.99",
  74. "size": "4 boxes, 124 tissues each",
  75. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  76. "category": "Paper Goods",
  77. "subcategory": "Tissues",
  78. "store": "Costco",
  79. "zipcode": "90001",
  80. "url": "https://www.instacart.com/products/32345678-puffs-plus-lotion"
  81. }
  82. ],
  83. "paper towels": [
  84. {
  85. "name": "Bounty Select-A-Size Paper Towels, 12 Rolls",
  86. "price": "$29.99",
  87. "size": "12 rolls, 2-ply",
  88. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  89. "category": "Paper Goods",
  90. "subcategory": "Paper Towels",
  91. "store": "Costco",
  92. "zipcode": "90001",
  93. "url": "https://www.instacart.com/products/87654321-bounty-select-a-size"
  94. },
  95. {
  96. "name": "Kirkland Premium Paper Towels, 12 Mega Rolls",
  97. "price": "$24.49",
  98. "size": "12 mega rolls, 160 sheets each",
  99. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  100. "category": "Paper Goods",
  101. "subcategory": "Paper Towels",
  102. "store": "Costco",
  103. "zipcode": "90001",
  104. "url": "https://www.instacart.com/products/87659999-kirkland-premium-towels"
  105. }
  106. ],
  107. "toilet paper": [
  108. {
  109. "name": "Charmin Ultra Soft Toilet Paper, 30 Rolls",
  110. "price": "$32.89",
  111. "size": "30 rolls, 2-ply",
  112. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  113. "category": "Paper Goods",
  114. "subcategory": "Toilet Paper",
  115. "store": "Costco",
  116. "zipcode": "90001",
  117. "url": "https://www.instacart.com/products/56789012-charmin-ultra-soft"
  118. },
  119. {
  120. "name": "Kirkland Bath Tissue, 30 Rolls",
  121. "price": "$25.99",
  122. "size": "30 rolls, 425 sheets per roll",
  123. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  124. "category": "Paper Goods",
  125. "subcategory": "Toilet Paper",
  126. "store": "Costco",
  127. "zipcode": "90001",
  128. "url": "https://www.instacart.com/products/56789999-kirkland-bath-tissue"
  129. }
  130. ],
  131. "napkins": [
  132. {
  133. "name": "Vanity Fair Everyday Napkins, 600 ct",
  134. "price": "$9.99",
  135. "size": "600 napkins, 2-ply",
  136. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  137. "category": "Paper Goods",
  138. "subcategory": "Napkins",
  139. "store": "Costco",
  140. "zipcode": "90001",
  141. "url": "https://www.instacart.com/products/34567890-vanity-fair-everyday-napkins"
  142. },
  143. {
  144. "name": "Kirkland Premium Dinner Napkins, 320 ct",
  145. "price": "$7.99",
  146. "size": "320 napkins, folded",
  147. "image": "https://www.instacart.com/image-server/140x140/filters:fill(FFFFFF)",
  148. "category": "Paper Goods",
  149. "subcategory": "Napkins",
  150. "store": "Costco",
  151. "zipcode": "90001",
  152. "url": "https://www.instacart.com/products/34567899-kirkland-premium-napkins"
  153. }
  154. ]
  155. }
  156. }
  157. }
  158. ```
  159.  
  160. ---
  161.  
  162. ### 📦 Response Format
  163.  
  164. Each **category** contains:
  165.  
  166. * A `subcategories` object.
  167. * Each **subcategory** is an array of products with details:
  168.  
  169. * `name`
  170. * `price`
  171. * `size`
  172. * `image`
  173. * `category` / `subcategory`
  174. * `store`
  175. * `zipcode`
  176. * `url`
  177.  
  178. ---
  179.  
  180. ### 🐧 Linux VPS & Python Compatibility
  181.  
  182. * Fully operational on **Linux VPS** (e.g., Ubuntu 22.04, Debian 12).
  183. * Compatible with **Python 3.10+** using standard libraries (`requests`, `json`).
  184. * Optimized for small, $5 VPS instances — low memory, no external dependencies required.
  185.  
  186. **Python Example:**
  187.  
  188. ```python
  189. import requests, json
  190.  
  191. url = "https://api.instacart.com/getGoods"
  192. params = {
  193. "zipcode": "90001",
  194. "store": "Costco",
  195. "categories": ["paper goods"]
  196. }
  197.  
  198. response = requests.get(url, params=params)
  199. data = response.json()
  200. print(json.dumps(data, indent=2))
  201. ```
  202.  
  203.  
  204.  
Advertisement
Add Comment
Please, Sign In to add comment