# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/semanticscholar/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/semanticscholar/get-paper \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/semanticscholar/search-papers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","page_size":"<integer>","query":"<string>","sort":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.