Skip to main content

Rite Aid API

This package allows for interactions with the Rite Aid API.

Here is an example of how to use the package:

from riteaid import RiteAidAPI

async def main():
    api = RiteAidAPI()

    # Get a list of stores for ZIP Code 94025
    stores = await api.get_stores("94025")

    print(stores)
    
    # {"Data":
    #     {"stores":
    #         [
    #             {
    #                 "storeNumber":5892,
    #                 "address":"340 Woodside Plaza",
    #                 "city":"Redwood City",
    #                 "state":"CA",
    #                 "zipcode":"94061",
    #                 "timeZone":"PST",
    #                 "fullZipCode":"94061-3259",
    #                 "fullPhone":"(650) 368-7008",
    #                 "locationDescription":"Located at 340 Woodside Plaza             Woodside Plaza Next To Lucky's",# 
    #                 "storeHoursMonday":"7:00am-10:00pm",
    #                 "storeHoursTuesday":"7:00am-10:00pm",
    #                 "storeHoursWednesday":"7:00am-10:00pm",
    #                 "storeHoursThursday":"7:00am-10:00pm",
    #                 "storeHoursFriday":"7:00am-10:00pm",
    #                 "storeHoursSaturday":"7:00am-10:00pm",
    #                 "storeHoursSunday":"8:00am-10:00pm",
    #                 "rxHrsMon":"9:00am-8:00pm",
    #                 "rxHrsTue":"9:00am-8:00pm",
    #                 "rxHrsWed":"9:00am-8:00pm",
    #                 "rxHrsThu":"9:00am-8:00pm",
    #                 "rxHrsFri":"9:00am-8:00pm",
    #                 "rxHrsSat":"9:00am-6:00pm",
    #                 "rxHrsSun":"10:00am-6:00pm",
    #                 "storeType":"RA",
    #                 "latitude":37.4565,
    #                 "longitude":-122.229,
    #                 "name":"Rite Aid",
    #                 "milesFromCenter":2.5,
    #                 "specialServiceKeys":[...],
    #                 "event":null,
    #                 "holidayHours":[],
    #                 "pickupDateAndTimes":
    #                     {
    #                         "regularHours":
    #                             [
    #                                 "11:00 AM-5:00 PM",
    #                                 "10:00 AM-7:00 PM",
    #                                 "10:00 AM-7:00 PM",
    #                                 "10:00 AM-7:00 PM",
    #                                 "10:00 AM-7:00 PM",
    #                                 "10:00 AM-7:00 PM",
    #                                 "10:00 AM-5:00 PM"
    #                             ],
    #                         "specialHours":
    #                             {
    #                                 "2022-02-19":"10:30 AM-5:00 PM",
    #                                 "2022-02-20":"11:00 AM-5:00 PM"
    #                             },
    #                         "defaultTime":"2022-02-20 1:00 PM",
    #                         "earliest":"2022-02-19 10:30 AM"
    #                     }
    #                 }
    #             ]
    #         },
    #         "Status":"SUCCESS",
    #         "ErrCde":null,
    #         "ErrMsg":null,
    #         "ErrMsgDtl":null
    #     }
    # }

    # Refill an Rx
    refill = await api.refill_rx([
        "123456789012", # Rx Number
        "123456789012", # Rx Number
        "123456789012", # Rx Number
    ],
    "5892", # Store Number
    "2022-02-20", # Refill Date
    "1:00 PM", # Refill Time
    "6058392845", # Phone Number
    )

    print(refill)

    # I have not tested a succesful refill yet, since I don't have the need for a refill at the moment.

get_stores

Parameter Description
zipcode ZIP Code

refill_rx

Parameter Description
rx_numbers Rx Numbers
store_number Store Number
refill_date Refill Date
refill_time Refill Time
phone_number Phone Number

Release files for riteaid 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for riteaid 0.0.9
File Size Uploaded
riteaid-0.0.9.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for riteaid 0.0.9
File Interpreter ABI Platform
riteaid-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / riteaid-0.0.9.tar.gz

Download URL riteaid-0.0.9.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
41873e638cfcbba17fe139b5b66e819c0c8c983e8a9e5e495429356c9d50c6eb
BLAKE2b-256 checksum
How to use checksums
4bc634648f422d223989a6c6a733e975870bb292990b0e2ca7fc5bf4aaf03191
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3

Release files / riteaid-0.0.9-py3-none-any.whl

Download URL riteaid-0.0.9-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94427c406bc10f497f1da226b4ec106a9b79eb4cbcc12f9a69f9d8b655ef9918
BLAKE2b-256 checksum
How to use checksums
9d418749c15fc04d4da70bf6e3a5098c6a9f83201c8fb15c7316b31fc6339e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page