# OSRS Grand Exchange Prices & Flipping - Wiki API (`pshivam/osrs-grand-exchange-prices-scraper`) Actor

Old School RuneScape Grand Exchange prices from the OSRS Wiki real-time API: buy and sell prices, margin after tax, ROI, volume, buy limits, high alchemy profit and price history for every item. No proxy. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/osrs-grand-exchange-prices-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** Games
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OSRS Grand Exchange Prices & Flipping - Wiki API

**Get Old School RuneScape Grand Exchange prices as clean rows**: the latest **buy and sell price** of every item, the **margin after the Grand Exchange tax**, **ROI**, **potential profit per buy limit**, **trading volume**, **high alchemy profit** and the **price history** of any item. About 4,500 items, refreshed every minute. The data comes from the OSRS Wiki's real-time prices API. Sort and filter for flips: by margin, volume, price age and cash stack. Get only the items that are new since your last run. No proxy, no login. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-12. Every release passes 150+ automated tests, and Apify test-runs it every day.

### What can you use it for?

- **Flipping.** List the best margins, ROI or potential profit per four-hour buy limit, with volume and price age so you skip stale, illiquid items.
- **High alchemy.** Find items where alchemy pays more than the item and a nature rune cost.
- **Price tracking.** Schedule the Actor and keep a snapshot history of the items you trade, or pull a year of price points for any item.
- **Bots and tools.** Feed a Discord bot, a spreadsheet or a trading dashboard with clean rows through the API.
- **Content.** Chart how an item's price and volume moved over a patch or an update.

### What data do you get?

Every row has a `recordType` and only the fields of that type are filled.

| `recordType` | Rows | What it is |
|---|---|---|
| `item` | about 4,500 | One row per item: latest prices, margin after tax, ROI, volume, buy limit, alchemy value |
| `history` | up to 365 per item and time step | One price point of an item: average prices and volumes of a 5 minute, 1 hour, 6 hour or 24 hour period |

| Field | What it is |
|---|---|
| `recordType`, `sourceUrl`, `scrapedAt` | The record type, the API address it came from and when it was collected |
| `id`, `name`, `wikiUrl` | The item id, the item name and its OSRS Wiki page |
| `members`, `buyLimit`, `value`, `highAlch`, `lowAlch` | Members item or not, the buy limit per four hours, the store value and what high and low alchemy pay |
| `highPrice`, `highPriceTime`, `lowPrice`, `lowPriceTime`, `priceAgeMinutes` | The latest instant-buy price (your sell price) and instant-sell price (your buy price), when each happened and the age of the older one |
| `tax`, `margin`, `roi`, `potentialProfit` | The Grand Exchange tax on the sale, the margin per item after tax, the margin as a percent of the buy price and the margin times the buy limit |
| `highAlchProfit` | The high alchemy value minus the buy price minus a nature rune |
| `avgHighPrice5m`, `avgLowPrice5m`, `volume5m` | The average prices and the number of items traded in the last 5 minutes |
| `avgHighPrice1h`, `avgLowPrice1h`, `volume1h` | The same for the last hour |
| `avgHighPrice24h`, `avgLowPrice24h`, `volume24h` | The same for the last 24 hours |
| `timestep`, `timestamp`, `avgHighPrice`, `avgLowPrice`, `highPriceVolume`, `lowPriceVolume` | History rows: the spacing of the points, the start of the period, the average prices and the volumes |

#### Example results

```json
{"recordType": "item", "id": "4151", "name": "Abyssal whip", "members": true, "buyLimit": 70, "value": 120001, "highAlch": 72000, "lowAlch": 48000,
 "wikiUrl": "https://oldschool.runescape.wiki/w/Abyssal_whip", "highPrice": 684407, "highPriceTime": "2026-11-12T16:30:14Z", "lowPrice": 666779, "lowPriceTime": "2026-11-12T16:30:24Z",
 "tax": 13688, "margin": 3940, "roi": 0.59, "potentialProfit": 275800, "highAlchProfit": -594949, "avgHighPrice24h": 677508, "avgLowPrice24h": 663560, "volume24h": 4791}
```

```json
{"recordType": "history", "id": "4151", "name": "Abyssal whip", "timestep": "6h", "timestamp": "2026-08-13T06:00:00Z", "avgHighPrice": 899822, "avgLowPrice": 880837,
 "highPriceVolume": 185, "lowPriceVolume": 400}
```

### How to use it

1. Choose **What to get**: prices (every item) or history (the items you name).
2. For flips: set **Sort by** to margin or potential profit, **Minimum 24-hour volume** to 500, **Maximum price age** to 30 and **Maximum records** to 50.
3. Press Start. A full price run takes about 5 seconds.

#### Input options

| Input | What it does |
|---|---|
| `dataTypes` | `prices`, `history`. Empty means prices |
| `search` | Only items whose name contains one of these words |
| `membership` | `any`, `members` or `free` |
| `minVolume` | Only items traded at least this many times in 24 hours |
| `maxAgeMinutes` | Only items whose latest buy and sell trades are both at most this old |
| `minMargin`, `minRoi` | Only items with at least this margin after tax, in gp, or this return in percent |
| `minPrice`, `maxPrice` | Only items whose buy price is in this range: your cash stack |
| `minBuyLimit` | Only items you can buy at least this many of every four hours |
| `sortBy` | `id`, `margin`, `roi`, `potentialProfit`, `highAlchProfit`, `volume24h`, `highPrice`, `lowPrice` or `name` |
| `historyItems` | For history: item names or item ids |
| `timesteps` | For history: `5m`, `1h`, `6h`, `24h`. Empty means 24h |
| `onlyNew` | Skip items that earlier runs of the same search already returned |
| `maxItems` | Stop after this many records. With a sort order you get the top ones |
| `secondsBetweenRequests` | Pause between requests to the OSRS Wiki. 1 second by default |

### How much does it cost?

You pay per record returned, nothing else. A list of the 50 best flips is 50 records, about $0.05. All 4,500 items are about $4.50 at the Free plan price. A year of daily price points of one item is 365 records. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 records |
|---|---|
| Free | $1.00 |
| Bronze | $0.90 |
| Silver | $0.80 |
| Gold | $0.70 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/osrs-grand-exchange-prices-scraper").call(run_input={
    "sortBy": "potentialProfit",
    "minVolume": 500,
    "maxAgeMinutes": 30,
    "maxItems": 20,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["name"], row["lowPrice"], row["highPrice"], row["margin"], row["potentialProfit"])
```

**Track prices.** Schedule the Actor in the Apify Console (Schedules), for example every hour, and every run adds a timed snapshot. The Wiki refreshes its latest prices about every minute, so a schedule faster than a few minutes adds little. Connect the dataset to Google Sheets, Discord, Make, Zapier or n8n with Apify's integrations.

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/osrs-grand-exchange-prices-scraper` and this input:

```json
{"sortBy": "margin", "minVolume": 1000, "maxAgeMinutes": 30, "maxPrice": 5000000, "maxItems": 25}
```

### This scraper vs. the alternatives

| | This Actor | OSRS Wiki's price pages | Writing your own client |
|---|---|---|---|
| Output | Rows for Excel, CSV, JSON, API | Pages and a raw JSON API | JSON you parse yourself |
| Margin after tax, ROI and potential profit per item | Yes | No | You compute them |
| Filter by volume, price age and cash stack, sorted | Yes | No | You build it |
| High alchemy profit with the nature rune price | Yes | No | You compute it |
| Price history of any item | Yes | Charts | Yes |
| Schedules, history and integrations | Yes, on Apify | No | You build them |
| Price | $1.00 per 1,000 records | Free to read | Your time |

### Good to know

- **Prices are the Wiki's.** The OSRS Wiki collects them from players' Grand Exchange offers in the RuneLite client. The latest prices are the last instant-buy and instant-sell trades.
- **Old prices mislead.** An item traded rarely can show a buy price from yesterday and a sell price from today and look like a huge margin. Use `maxAgeMinutes` and `minVolume`.
- **The tax is 2%.** It is rounded down and capped at 5,000,000 gp per item. The Actor treats the old school bond and the basic tools as tax-free; other exempt items are not special-cased.
- **Margin is per item.** `potentialProfit` multiplies it by the buy limit, which resets every four hours.
- **Items without any price** (never traded yet) are left out.
- **The Actor names itself** to the OSRS Wiki, as the Wiki asks, and sends five requests per price run. If the API refuses it, the Actor doubles the pause and stops when the refusals go on.
- **Independent tool.** Not affiliated with or endorsed by Jagex or the OSRS Wiki. It reads the Wiki's public prices API.

### FAQ

#### How do I find the best OSRS flips?

Set `sortBy` to `potentialProfit`, `minVolume` to 500, `maxAgeMinutes` to 30 and `maxItems` to 50. You get the 50 items with the most profit per four-hour buy limit, with volume and price age so you can judge them.

#### How do I get the price of one item?

Set `search` to the name, for example `["Abyssal whip"]`. You get its latest buy and sell price, the margin after tax, the volume and the buy limit.

#### How do I get the price history of an item?

Set `dataTypes` to `history` and `historyItems` to the name or id. `timesteps` chooses the spacing: 5 minutes, 1 hour, 6 hours or 24 hours, up to 365 points each.

#### How do I find high alchemy profit?

Sort by `highAlchProfit`. It is the alchemy value minus the buy price minus a nature rune, so only positive numbers earn.

#### How do I track prices over time?

Schedule the Actor, for example every hour. Every run adds a snapshot to its own dataset, and you can export them all together.

#### Do I need a proxy or an account?

No. The Actor reads the OSRS Wiki's public prices API and needs no proxy, no login and no account.

#### Is it legal to use this data?

The Actor reads the OSRS Wiki's public prices API. You are responsible for how you use the results, and the Wiki's terms apply to your use of its data.

# Actor input Schema

## `dataTypes` (type: `array`):

Prices: one row per item with the latest buy and sell price, margin after the Grand Exchange tax, ROI, volume and alchemy profit. History: the price history of the items you name. Leave empty for prices.

## `search` (type: `array`):

Only items whose name contains one of these words, for example dragon or rune. Leave empty for all items.

## `membership` (type: `string`):

Only members items, only free-to-play items, or both.

## `minVolume` (type: `integer`):

Only items traded at least this many times in the last 24 hours. Skips illiquid items whose prices are unreliable. 500 is a good start for flipping.

## `maxAgeMinutes` (type: `number`):

Only items whose latest buy and sell trades are both at most this old. Rarely traded items show old prices that look like big margins; 30 removes them.

## `minMargin` (type: `integer`):

Only items with at least this margin after tax, in gold pieces, for example 1000.

## `minRoi` (type: `number`):

Only items with at least this margin as a percent of the buy price, for example 2.

## `minPrice` (type: `integer`):

Only items whose buy price is at least this many gold pieces.

## `maxPrice` (type: `integer`):

Only items whose buy price is at most this many gold pieces: your cash stack.

## `minBuyLimit` (type: `integer`):

Only items you can buy at least this many of every four hours.

## `sortBy` (type: `string`):

The order of the rows. With a maximum number of records you get the top ones: sort by margin or potential profit and set 50 records for the best flips. Everything but id and name sorts from high to low.

## `historyItems` (type: `array`):

For the history data type: item names (Abyssal whip) or item ids (4151).

## `timesteps` (type: `array`):

For the history data type: the spacing of the price points. 5m, 1h, 6h and 24h give up to 365 points each. Leave empty for 24h.

## `onlyNew` (type: `boolean`):

Skip items that earlier runs of this same search already returned, so you pay only for items that appeared since. Prices change every run, so leave this off to track prices. The first run works as usual and remembers what it returned, in your key-value store 'osrs-grand-exchange-prices-scraper-only-new'.

## `maxItems` (type: `integer`):

Stop after this many records. You are charged per record. With a sort order, you get the top ones.

## `secondsBetweenRequests` (type: `number`):

Pause between requests to the OSRS Wiki. After a refusal the Actor doubles the pause, and it stops when the refusals go on.

## Actor input object example

```json
{
  "dataTypes": [
    "prices"
  ],
  "search": [],
  "membership": "any",
  "sortBy": "id",
  "historyItems": [],
  "onlyNew": false,
  "maxItems": 100,
  "secondsBetweenRequests": 1
}
```

# Actor output Schema

## `prices` (type: `string`):

Latest prices with margin, ROI and volume.

## `alchemy` (type: `string`):

High alchemy value and profit.

## `history` (type: `string`):

Price points of the named items.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dataTypes": [
        "prices"
    ],
    "search": [],
    "historyItems": [],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/osrs-grand-exchange-prices-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dataTypes": ["prices"],
    "search": [],
    "historyItems": [],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/osrs-grand-exchange-prices-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dataTypes": [
    "prices"
  ],
  "search": [],
  "historyItems": [],
  "maxItems": 100
}' |
apify call pshivam/osrs-grand-exchange-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pshivam/osrs-grand-exchange-prices-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Icy4t2T1mFSDyMcPg/builds/COLIvSh4EcjsGS8fo/openapi.json
