APIs-guru / openapi-directory

🌐 Wikipedia for Web APIs. Directory of REST API definitions in OpenAPI 2.0/3.x format
https://apis.guru/
Creative Commons Zero v1.0 Universal
3.83k stars 575 forks source link

Add "Walmart" API #391

Open IvanGoncharov opened 6 years ago

IvanGoncharov commented 6 years ago

Format: OpenAPI(fka Swagger) 2.0 Official: YES Url: https://developer.walmart.com/#/explorer/price https://developer.walmart.com/v1/swaggerProxy?type=order https://developer.walmart.com/v1/swaggerProxy?type=item https://developer.walmart.com/v1/swaggerProxy?type=price https://developer.walmart.com/v1/swaggerProxy?type=inventory Name: Walmart Valid: Yes Category: ecommerce Twitter: Walmart

MikeRalphson commented 6 years ago

APIs added - many thanks :stuck_out_tongue_winking_eye:

MikeRalphson commented 3 years ago

You now seem to need to POST to an endpoint to get the OpenAPI definitions:

curl 'https://developer.walmart.com/api/detail' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0' -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-GB,en;q=0.5' --compressed -H 'Content-Type: application/json;charset=utf-8' -H 'Origin: https://developer.walmart.com' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Referer: https://developer.walmart.com/tryout/us/mp/price' -H 'Cookie: TS011baee6=01c5a4e2f9beca666f48f6416e29f1b07eb13a1f743d0d2bb642ffa98a3b53eeb8044ed11f4f6843259b5e905a8deaf8e2a72aa72b' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' --data-raw '{"params":{"country":"us","category":"mp","apiName":"price"}}'
MikeRalphson commented 3 years ago

Some Walmart APIs now updated, more to do.