# Semanticscholar — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search millions of academic papers by keyword with customizable sorting options, then access detailed information like abstracts, reference counts, and publication metadata for any result. Find and retrieve comprehensive scholarly paper data to power your research, citation management, or academic discovery workflows.

**Category:** Education | **Website:** [www.semanticscholar.org/](https://www.semanticscholar.org/) | **Docs:** [parse.bot/marketplace/6ee4d7a3-6f2b-4218-88be-681248b25c23/semanticscholar-org-api](https://parse.bot/marketplace/6ee4d7a3-6f2b-4218-88be-681248b25c23/semanticscholar-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-semanticscholar-org-api-6ee4d7a3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_paper

Retrieve full details for a single paper by its Semantic Scholar paper ID. Returns the paper's title, authors, year, citation count, reference count, abstract, venue, publication date, fields of study, and TLDR summary when available. Uses the bulk search API to locate the paper by ID, with a fallback to parsing the server-rendered paper page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `paper_id` | string | Yes | Semantic Scholar paper ID (40-character hex string, e.g. from search_papers results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-semanticscholar-org-api-6ee4d7a3/get_paper \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"paper_id":"<string>"}'
```

### search_papers

Search for academic papers by keyword query. Returns paginated results with each paper's title, authors, year, and citation count. Supports sorting by relevance (default, ranked by search relevance score) or by citation count descending. The total number of matching papers is included in the response. When sorted by relevance, uses the standard search API (subject to rate limits handled via proxy rotation). When sorted by citation count, uses the bulk search API for reliable results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based). |
| `page_size` | integer | No | Number of results per page (1-100). |
| `query` | string | Yes | Search query keywords to match against paper titles and content. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-semanticscholar-org-api-6ee4d7a3/search_papers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","page_size":"<integer>","query":"<string>","sort":"<string>"}'
```
