Pricing (v2)

Returns drug pricing at a specific pharmacy or across pharmacies near a provided location. v2 offers improved performance, reduced response times, and a redesigned response schema compared to v1.

You must provide exactly one pharmacy identifier (Npi or Nabp) or exactly one location (ZipCode or Latitude+Longitude). If both a pharmacy identifier and a location are provided, the pharmacy identifier takes precedence. Providing two identifiers of the same type returns an error.

Best practice: use Nabp or Npi for single-pharmacy pricing; use ZipCode or coordinates for multi-pharmacy radius searches.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request body for the v2 Pricing endpoint. Provide exactly one pharmacy identifier (Npi or Nabp) or exactly one location (ZipCode or Latitude+Longitude).

string
required

National Drug Code. Unique eleven-digit FDA identifier specifying the drug labeler, formulation, and package size.

double
required

Drug quantity.

int32 | null
Defaults to 30

Drug's days supply. Defaults to 30 if not provided.

string | null

Pharmacy's National Provider Identifier (10 or 11 digits). Conditional — provide exactly one pharmacy identifier or one location.

string | null

Pharmacy's National Association of Boards of Pharmacy identifier. Conditional — provide exactly one pharmacy identifier or one location.

string | null

First five digits of the US Postal Code. Conditional — provide exactly one pharmacy identifier or one location.

string | null

Latitude. Must be paired with Longitude. Conditional — provide exactly one pharmacy identifier or one location.

string | null

Longitude. Must be paired with Latitude. Conditional — provide exactly one pharmacy identifier or one location.

int32 | null
Defaults to 50

Search radius in miles from the ZipCode or coordinate center point. Only applies to location-based searches. Defaults to 50 miles if not provided.

int32 | null
Defaults to 30

Maximum number of results to return. Defaults to 30 if not provided.

Headers
string
required

Unique API key provided by RxSense, used for tracking and troubleshooting purposes.

Responses

401

Unauthorized - Invalid or expired access token

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json