mdbecker / scrape-cvs-2

MIT License
1 stars 1 forks source link

CVS API call to get appointments #1

Open isbecker opened 3 years ago

isbecker commented 3 years ago

curl 'https://www.cvs.com/Services/ICEAGPV1/immunization/1.0.0/getIMZStores' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://www.cvs.com/vaccine/intake/store/cvd-store-select/first-dose-select' -H 'Content-Type: application/json' -H 'Origin: https://www.cvs.com' --data-raw '{"requestMetaData":{"appName":"CVS_WEB","lineOfBusiness":"RETAIL","channelName":"WEB","deviceType":"DESKTOP","deviceToken":"7777","apiKey":"a2ff75c6-2da7-4299-929d-d670d827ab4a","source":"ICE_WEB","securityType":"apiKey","responseFormat":"JSON","type":"cn-dep"},"requestPayloadData":{"selectedImmunization":["CVD"],"distanceInMiles":25,"imzData":[{"imzType":"CVD","ndc":["59267100002","80777027399"]}],"searchCriteria":{"addressLine":"96816"}}}'

isbecker commented 3 years ago

curl 'https://www.cvs.com//services/ICEAGPV1/inventory/1.0.0/softAllocation' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Content-Type: application/json' -H 'Origin: https://www.cvs.com' --data-raw '{"requestMetaData":{"appName":"CVS_WEB","lineOfBusiness":"RETAIL","channelName":"WEB","deviceType":"DESKTOP","deviceToken":"7777","apiKey":"a2ff75c6-2da7-4299-929d-d670d827ab4a","source":"ICE_WEB","securityType":"apiKey","responseFormat":"JSON","type":"cn-micro-imzinventoryapp"},"requestPayloadData":{"allocationDate":"2021-02-13","ndc":["59267100002","80777027399"],"storeId":"09953"}}'

This one gives a "Your traffic behavior has been determined cause harm to this website" error.