API Documentation

Welcome to the RxUtility API documentation! This API has been designed to provide developers easy access to a wide range of medication coupons, helping users save money on their prescriptions. By integrating our API, you can offer your users real-time, updated discounts on the medicines they need.

Base Url: https://gateway.rxutility.com/api
Support: key@rxutility.com

To apply for an API key, fill out the contact form.

Once you have an API key, you can utilize the "Try it out" feature in the API Specs section.

To fill out a support request, visit the support page.


How to Use


Example

Here is an example of how to make a request that will get co-pay coupons for abilify using Python:

import requests

def get_coupon_details(api_key, drug_name):
  url = f'https://gateway.rxutility.com/api/coupons/{drug_name}'
  
  headers = {
      'Authorization': f'Bearer {api_key}'
  }
  
  response = requests.get(url, headers=headers)
  if response.status_code == 200:
      return response.json()
  else:
      return {'error': response.status_code, 'message': response.json()}

# Example usage
api_key = 'PUT YOUR API KEY HERE'
drug_name = 'abilify'
coupon_details = get_coupon_details(api_key, drug_name)

if 'error' in coupon_details:
  print('Error:', coupon_details['error'], coupon_details['message'])
else:
  print('Coupon details:', coupon_details)

API Specs