> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Semantic Scholar

> AI-powered academic search engine indexing 214M+ papers with citation graphs, author profiles, and paper recommendations.

AI-powered academic search engine indexing 214M+ papers with citation graphs, author profiles, and paper recommendations. Best for literature reviews, citation analysis, and discovering influential papers across all scientific disciplines. Unlike arXiv (preprint access), Semantic Scholar spans all published literature and provides citation relationship data for understanding research impact.

7 endpoints available through Lava's AI Gateway. See the [Semantic Scholar API docs](https://api.semanticscholar.org/api-docs/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

## Endpoints

### Search for papers or get paper details

**GET** `https://api.semanticscholar.org/graph/v1/paper/search?query=attention+mechanism` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/graph/v1/paper/search?query=attention+mechanism', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Fgraph%2Fv1%2Fpaper%2Fsearch%3Fquery%3Dattention%2Bmechanism" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Batch lookup papers by ID (up to 500)

**POST** `https://api.semanticscholar.org/graph/v1/paper/batch` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/graph/v1/paper/batch', { body: {"ids":["649def34f8be52c8b66281af98ae884c09aef38b"]} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Fgraph%2Fv1%2Fpaper%2Fbatch" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"ids":["649def34f8be52c8b66281af98ae884c09aef38b"]}'
    ```
  </Tab>
</Tabs>

### Search for authors or get author details

**GET** `https://api.semanticscholar.org/graph/v1/author/search?query=yoshua+bengio` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/graph/v1/author/search?query=yoshua+bengio', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Fgraph%2Fv1%2Fauthor%2Fsearch%3Fquery%3Dyoshua%2Bbengio" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Batch lookup authors by ID (up to 1000)

**POST** `https://api.semanticscholar.org/graph/v1/author/batch` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/graph/v1/author/batch', { body: {"ids":["1741101"]} });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Fgraph%2Fv1%2Fauthor%2Fbatch" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"ids":["1741101"]}'
    ```
  </Tab>
</Tabs>

### Full-text snippet search across papers

**GET** `https://api.semanticscholar.org/graph/v1/snippet/search?query=transformer+architecture` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/graph/v1/snippet/search?query=transformer+architecture', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Fgraph%2Fv1%2Fsnippet%2Fsearch%3Fquery%3Dtransformer%2Barchitecture" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Get papers similar to a given paper

**GET** `https://api.semanticscholar.org/recommendations/v1/papers/649def34f8be52c8b66281af98ae884c09aef38b` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/recommendations/v1/papers/649def34f8be52c8b66281af98ae884c09aef38b', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Frecommendations%2Fv1%2Fpapers%2F649def34f8be52c8b66281af98ae884c09aef38b" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Get paper recommendations from positive/negative example sets

**POST** `https://api.semanticscholar.org/recommendations/v1/papers` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.semanticscholar.org/recommendations/v1/papers', {
      body: {
    "positivePaperIds": [
      "649def34f8be52c8b66281af98ae884c09aef38b"
    ]
    },
    });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl -X POST "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.semanticscholar.org%2Frecommendations%2Fv1%2Fpapers" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY" \
      -H "Content-Type: application/json" \
      -d '{"positivePaperIds":["649def34f8be52c8b66281af98ae884c09aef38b"]}'
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
