Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Elicit API — curl Examples

Minimal shell scripts showing how to call the Elicit API with curl.

Prerequisites

export ELICIT_API_KEY="your-api-key"

Examples

1. Search papers

Search for academic papers with a research question.

./1_search.sh

2. Filtered search

Narrow results by study type, publication year, and journal quartile.

./2_filtered_search.sh

3. Create a report

Generate an AI-powered research report. Reports take 5-15 minutes — the script polls until completion.

./3_create_report.sh

Adapting these examples

These scripts hardcode their queries for simplicity. To use your own:

curl -s "https://elicit.com/api/v1/search" \
  -H "Authorization: Bearer ${ELICIT_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "your research question here",
    "maxResults": 5
  }' | jq .

See the API documentation for all available parameters and filters.