Skip to content

Openai Med Search Endpoint

Search medical sources using OpenAI with web search for telehealth nursing support.

Uses OpenAI's gpt-5-mini model with web search capabilities (Responses API) to provide
comprehensive medical answers with real-time source citations.

Returns:
- **answer**: Comprehensive medical answer from OpenAI with web search
- **sources**: Real source references with titles, URLs from web search results
- **citations**: Citation URLs from web search
- **medical_category**: Detected category (maternal_health, child_health, etc.)

This endpoint provides an alternative to Perplexity using OpenAI's Responses API with web search.

API Reference

Endpoint: POST /search/openai-med

Example Usage

curl -X POST http://localhost:8000/search/openai-med \
  -H 'Content-Type: application/json' \
  -d '{'query': 'What are symptoms of high blood pressure?', 'max_results': 3}'