# Mastersportal — 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 and browse thousands of scholarships from Mastersportal.com to find funding opportunities tailored to your destination country and academic discipline. Filter results by your preferred study location and field of study to discover scholarships that match your educational goals.

**Category:** Education | **Website:** [mastersportal.com/](https://mastersportal.com/) | **Docs:** [parse.bot/marketplace/993b59b3-00c5-4fbb-889d-8c5a968962cc/mastersportal-com-api](https://parse.bot/marketplace/993b59b3-00c5-4fbb-889d-8c5a968962cc/mastersportal-com-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/mastersportal/`
**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

### Search scholarships

Search scholarships available on Mastersportal. Results are auto-iterated across pages. Supports filtering by destination country (ISO 2-letter code) and discipline ID. Returns scholarship title, description, provider, deadline, grant details, and a direct URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `destination_country` | string | No | ISO 3166-1 alpha-2 country code to filter scholarships by study destination (e.g. CA for Canada, US for United States, GB for United Kingdom, DE for Germany). |
| `discipline_id` | string | No | Numeric discipline ID to filter scholarships by field of study. Known IDs: 7 (Engineering & Technology), 13 (Business & Management), 10 (Computer Science & IT), 23 (Natural Sciences & Mathematics), 11 (Social Sciences), 24 (Humanities), 14 (Arts, Design & Architecture), 9 (Medicine & Health), 15 (Education & Training), 17 (Law), 12 (Environmental Studies & Earth Sciences), 16 (Agriculture & Forestry), 8 (Hospitality, Leisure & Sports), 22 (Journalism & Media), 19 (Applied Sciences & Professions). |
| `page` | integer | No | Page number for pagination (1-based). |
| `page_size` | integer | No | Number of results per page (1-100). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/mastersportal/search-scholarships \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"destination_country":"<string>","discipline_id":"<string>","page":"<integer>","page_size":"<integer>"}'
```

## 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.