cambialens / lens-api-doc

10 stars 5 forks source link

Can We access scholar analysis data (stats and graphs) through API? #73

Open Sreekuttanls opened 1 month ago

Sreekuttanls commented 1 month ago

I can't find a way to access analysis data from API, is there a way?

AaronBallagh commented 1 month ago

Hello, thank you for this question and your interest in The Lens.

The Aggregation API allows you to run the same types of aggregation requests used to power all the analysis charts and metrics available in the lens.org user interface, and allows users to perform their own analyses on the scholarly and patent datasets. The query syntax for the Aggregation API uses a modified version of the Elasticsearch Aggregations syntax, with the following aggregation types supported: cardinality, average, max, min, sum, terms, date histograms and filters. Aggregation API documentation is available here https://docs.api.lens.org/aggregations.html.

You can request trail access from the API & Data pages here https://www.lens.org/lens/user/subscriptions#patents.