GET
/
api
/
abstracts
curl --request GET \
  --url https://api.scholarai.io/api/abstracts \
  --header 'x-scholarai-api-key: <api-key>'
[
  {
    "title": "<string>",
    "authors": [
      "<string>"
    ],
    "abstract": "<string>",
    "publication_date": "<string>",
    "cited_by_count": 123,
    "url": "<string>",
    "ss_id": "<string>",
    "doi": "<string>",
    "answer": "<string>"
  }
]

Authorizations

x-scholarai-api-key
string
header
required

Query Parameters

keywords
string
required

Keywords of inquiry which should appear in the article. Must be in English.

sort
string
default:relevance

The sort order for results. Valid values are relevance, cited_by_count, publication_date. Defaults to relevance.

query
string
required

The user query, as a natural language question. E.g. 'Tell me about recent drugs for cancer treatment'

peer_reviewed_only
boolean
default:true

Whether to only return peer-reviewed articles. Defaults to true, ChatGPT should cautiously suggest this value can be set to false

start_year
integer

The first year, inclusive, to include in the search range. Excluding this value will include all years.

end_year
integer

The last year, inclusive, to include in the search range. Excluding this value will include all years.

offset
integer
default:0

The offset of the first result to return. Defaults to 0.

generative_mode
boolean
default:true

Boolean "true" or "false" to enable generative mode. If enabled, collate responses using markdown to render in-text citations to the source's url if available. Set this to true by default.

Response

200 - application/json

OK

The response is of type object[].