Search the ClinicalTrials.gov database easily and open access to life-changing health interventions!
A modern web application for searching clinical trials using the ClinicalTrials.gov API v2. This is a web-based version of the original TrialrApp iOS application, rebuilt to work with the latest API and be accessible on any device.
- Search Clinical Trials: Search by medical condition, intervention/treatment, and location
- Study Details: View comprehensive study information including eligibility criteria, outcomes, and locations
- Save Studies: Save interesting studies to review later
- Share Studies: Share study information with others
- Responsive Design: Works on desktop and mobile devices
- Modern API: Uses ClinicalTrials.gov API v2 for up-to-date data
- Open the website at [your-github-pages-url] or run locally
- Use the search form to find clinical trials:
- Enter a medical condition (e.g., "diabetes", "cancer")
- Add intervention/treatment terms (e.g., "metformin", "chemotherapy")
- Include location terms (city, state, or zip code)
- Select recruitment status
- Choose to include studies accepting healthy volunteers
- Browse results and click "View Details" to see comprehensive study information
- Save studies you're interested in for later review
- Share studies with the share button
The app is deployed at: [Your GitHub Pages URL]
-
Clone the repository:
git clone https://github.com/your-username/TrialrApp.git cd TrialrApp -
Serve the files using a local web server:
python3 -m http.server 8000 # or use any other static file server -
Open
http://localhost:8000in your browser
This application uses the modern ClinicalTrials.gov API v2. Some features from the original iOS app have been adapted:
- ✅ Condition search (
query.cond) - ✅ Intervention search (
query.intr) - ✅ General location search (
query.term) - ✅ Recruitment status filtering
- ✅ Healthy volunteers filtering
- ✅ Study details retrieval
- ✅ Pagination support
- ❌ Age-based filtering (API v2 parameter unclear)
- ❌ Sex-based filtering (API v2 parameter unclear)
- ❌ Precise location-based filtering (using general search instead)
- API Base URL:
https://clinicaltrials.gov/api/v2/studies - Framework: Vanilla JavaScript (no dependencies)
- Storage: LocalStorage for saved studies
- Rate Limiting: ~50 requests per minute per IP
- CORS: API supports cross-origin requests
index.html- Main application interfacestyles.css- Styling and responsive designscript.js- JavaScript functionality and API integrationtest.html- Simple API test page for debugging
If you encounter search issues:
- Check the browser console for error messages (F12 → Console)
- Try simpler search terms (single words work better)
- Use the
test.htmlfile to verify API connectivity - Ensure you have an internet connection for API calls
- Try searching with just a condition first
Getting 0 results:
- The API v2 has different parameter requirements
- Location search now uses general search terms
- Try broader search terms initially
API Errors:
- Check browser console for specific error messages
- Verify internet connection
- API may have rate limiting in effect
- Push all files to your GitHub repository
- Go to repository Settings → Pages
- Select "Deploy from a branch" and choose your main branch
- The site will be available at
https://username.github.io/repository-name
We welcome contributions to improve the Clinical Trials Search app! If you would like to contribute:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Fix age and sex filtering with correct API v2 parameters
- Improve location-based search accuracy
- Add more sophisticated filtering options
- Implement study comparison features
- Add export functionality
This web application replaces the original iOS TrialrApp with these improvements:
- Cross-platform: Works on any device with a web browser
- Modern API: Uses ClinicalTrials.gov API v2
- No App Store Required: Accessible directly via web browser
- Always Updated: No need to update through app stores
- Better Search: Enhanced search capabilities and results display
This project is licensed under the MIT License - see the original LICENSE file for details.
- Original TrialrApp iOS application concept and design
- ClinicalTrials.gov for providing the API and clinical trial data
- The clinical research community for making trial information accessible