Webvar
OpenFDA API | Rearc - logo

OpenFDA API | Rearc

This listing consists of an Amazon API Gateway that serves as proxy of the openFDA API. The OpenFDA API lets you access public FDA data about drugs, medical devices, and foods.

Available in

AWS Marketplace

Available in

AWS Marketplace

Purchase this listing from Webvar in AWS Marketplace using your AWS account. In AWS Marketplace, you can quickly launch pre-configured software with just a few clicks. AWS handles billing and payments, and charges on your AWS bill.

About

In partnership with the AWS Data Exchange team, [Rearc](https://rearc.io/data) has developed this Product for educational and experimentation purposes for you to get familiar with [AWS Data Exchange for API](https://aws.amazon.com/data-exchange/why-aws-data-exchange/apis/). You can make API calls to this product just as you would make API calls to the [openFDA API](https://open.fda.gov/apis/). The OpenFDA API lets you access public FDA data about drugs, medical devices, and foods.

For example:

```

aws dataexchange send-api-asset \

--data-set-id [REPLACE_ME] \

--revision-id [REPLACE_ME] \

--asset-id [REPLACE_ME] \

--method GET \

--path "/drug/event.json" \

```

or

```

import requests

headers = {

'Content-Type': 'application/json',

'x-amzn-dataexchange-asset-id': ' [REPLACE_ME]',

'x-amzn-dataexchange-data-set-id': ' [REPLACE_ME]',

'x-amzn-dataexchange-revision-id': ' [REPLACE_ME]'

}

r = requests.request('GET', 'https://api-fulfill.dataexchange.us-east-1.amazonaws.com/v1/drug/event.json' ,auth=aws_auth, headers=headers)

```

**Note:** Please see the Entitled Data page after subscribing to get your dataset id, revision id, asset id

This would result in a JSON response:

```

{'meta': {'disclaimer': 'Do not rely on openFDA to make decisions regarding '

'medical care. While we make every effort to ensure '

'that data is accurate, you should assume all results '

'are unvalidated. We may limit or otherwise restrict '

'your access to the API in line with our Terms of '

'Service.',

'last_updated': '2022-08-02',

'license': 'https://open.fda.gov/license/',

'results': {'limit': 1, 'skip': 0, 'total': 15234431},

'terms': 'https://open.fda.gov/terms/'},

'results': [{'companynumb': 'JACAN16471',

'fulfillexpeditecriteria': '1',

'patient': {'drug': [{'drugadministrationroute': '041',

'drugauthorizationnumb': '019813',

'drugcharacterization': '1',

'drugindication': 'DRUG ABUSE',

'medicinalproduct': 'DURAGESIC-100'}],

'patientdeath': {'patientdeathdate': None,

'patientdeathdateformat': None},

'patientonsetage': '26',

'patientonsetageunit': '801',

'patientsex': '1',

'reaction': [{'reactionmeddrapt': 'DRUG '

'ADMINISTRATION '

'ERROR'},

{'reactionmeddrapt': 'OVERDOSE'}]},

'primarysource': {'qualification': '3',

'reportercountry': 'CANADA'},

'receiptdate': '20080625',

'receiptdateformat': '102',

'receivedate': '20080707',

'receivedateformat': '102',

'receiver': None,

'safetyreportid': '5801206-7',

'sender': {'senderorganization': 'FDA-Public Use'},

'serious': '1',

'seriousnessdeath': '1',

'transmissiondate': '20090109',

'transmissiondateformat': '102'}]}

```

## openFDA

### About the openFDA API

[openFDA](https://open.fda.gov/apis/) is an Elasticsearch-based API that serves public FDA data about nouns like drugs, devices, and foods.

Each of these nouns has one or more categories, which serve unique data-such as data about recall enforcement reports, or about adverse events. Every query to the API must go through one endpoint for one kind of data.

Not all data in openFDA has been validated for clinical or production use. And because openFDA only serves publicly available data, it does not contain data with Personally Identifiable Information about patients or other sensitive information.

The API returns individual results as JSON by default. The JSON object has two sections:

* meta: Metadata about the query, including a disclaimer, link to data license, last-updated date, and total matching records, if applicable.

* results: An array of matching results, dependent on which endpoint was queried.

Related Products

How it works?

Search

Search 25000+ products and services vetted by AWS.

Request private offer

Our team will send you an offer link to view.

Purchase

Accept the offer in your AWS account, and start using the software.

Manage

All your transactions will be consolidated into one bill in AWS.

Create Your Marketplace with Webvar!

Launch your marketplace effortlessly with our solutions. Optimize sales processes and expand your reach with our platform.