# Niche Scraper \[$8/1K💰] | School & College Data (`ahmed_jasarevic/niche-scraper`) Actor

Scrape Niche.com school, district, college and place profiles: Niche grades, key stats, demographics, rankings, nearby schools and full reviews. Search listings or paste profile URLs. Export clean JSON or CSV. No browser, login or API key.

- **URL**: https://apify.com/ahmed_jasarevic/niche-scraper.md
- **Developed by:** [Ahmed Jasarevic](https://apify.com/ahmed_jasarevic) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.00 / 1,000 profiles

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

## Niche Scraper

Scrape **Niche.com** school, district, college and place profiles with overall and category Niche grades, key statistics, demographics, rankings, nearby schools, review counts and full reviews. The Actor collects publicly available profile data and normalizes it into one dataset - no account required.

### Build A Niche School And College Dataset

- Search Niche ranking lists for K-12 schools, districts, colleges, graduate schools and places to live
- Collect overall grades (A+ to D), category grades, numeric grade values and ranking badges
- Extract student-teacher ratio, graduation rate, SAT/ACT ranges, tuition, enrollment and other published stats
- Add demographics, survey responses, address, geo coordinates, website and phone
- Fetch full reviews into a separate dataset with rating, reviewer type, date and review text
- Export clean JSON, CSV or Excel for school comparison, relocation, real estate or education research

### How It Works

![How the Niche Scraper turns public school, college and place profiles into a structured dataset.](https://api.apify.com/v2/key-value-stores/oeuA0kLOyhbRM4fzt/records/how-it-works-niche-scraper.webp)

The Actor collects publicly available Niche listing, profile and review data and normalizes it into one schema. Provide ranking-list URLs, profile URLs or a mix; the Actor follows the listing pages, gathers the published grades, stats, demographics, rankings and review data and writes one row per entity.

Each profile row can include overall and category grades, numeric grade values, key statistics, demographics, address, location, rankings, nearby schools and website. Reviews are written to a separate dataset when enabled. Values Niche does not publish are omitted or returned as `null` rather than being invented. The Actor does not require a Niche account or login.

#### Reliability and coverage

- Apify Proxy is recommended if runs are rate-limited; US residential is a lower-cost fallback.
- Each listing page contains 25 entities; `maxPagesPerSearch` controls how many result pages are followed per listing URL.
- Niche changes report-card fields by vertical. New labels appear in `stats` and `categoryGrades` without a code change.
- Missing grades or stats are omitted or returned as `null`; the Actor does not invent data.

### Search Niche Schools, Colleges And Places

`startUrls` accepts listing pages, profile pages or a mix of both. Supported verticals include:

- K-12 schools: public, private, boarding, charter and magnet
- school districts
- colleges and graduate schools
- places to live: cities, suburbs, neighborhoods and counties

For a listing URL, the Actor reads the 25 result cards on each page, turns them into profile rows and follows up to `maxPagesPerSearch` pages per listing. For a profile URL, it fetches that profile directly.

Set `emitSearchResults: true` if you also want the listing cards as `searchResult` rows. This is useful when you only need the ranking list and not every profile.

### Extract Grades, Stats And Demographics

Each profile row can include:

- `nicheGrade`, `gradeValue` and `categoryGrades` for academics, teachers, diversity, value, safety, campus, sports, administration, food, housing, cost of living and other published categories
- `categoryGradeValues` with the numeric value behind each letter grade
- `stats` as a human-readable label-to-value map, plus `statsRaw` with the underlying numeric values
- `demographics` with survey question, percent and response count
- `address`, `location`, `geo` and `centroid`
- `rankings`, `tags`, `nearby`, `nearbySchools`, `relatedColleges`, `website` and `phone`
- `editorial`, `character` and `genus` when Niche publishes them for that vertical

Niche changes report-card fields by vertical. The Actor is schema-driven, so new labels appear in `stats` and `categoryGrades` without a code change.

### Collect Full Reviews In A Separate Dataset

`includeReviews` is on by default. For each profile the Actor opens the reviews tab and writes one flat item per review to a separate `reviews` dataset. Profile rows stay lean and the review dataset has its own schema and output link.

- `maxReviewsPerEntity` defaults to 20 and accepts 0-200. Niche returns 20 reviews per page, so values above 20 fetch additional pages.
- `maxReviewsPerEntity: 0` skips review data.
- If a review page is blocked or fails, the Actor falls back to the 3 inline excerpts on the profile.
- The reviews dataset ID is stored in the run key-value store as `REVIEWS_DATASET_ID`.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | array | required | Niche listing URLs (result pages followed automatically) or profile URLs. The UI prefills a K-12 ranking page. |
| `maxItems` | integer | `40` | Maximum profile items saved. Free users are capped at a 10-item preview. |
| `maxPagesPerSearch` | integer | `3` | Result pages followed per listing URL, 1-50. Each page contains 25 entities. |
| `includeReviews` | boolean | `true` | Collect review data and write it to the separate `reviews` dataset. |
| `maxReviewsPerEntity` | integer | `20` | Reviews per profile in the reviews dataset, 0-200. `0` skips reviews. |
| `emitSearchResults` | boolean | `false` | Also push listing cards as `searchResult` items. |
| `proxy` | object | Unblocker | Standard Apify proxy input. Apify Proxy is recommended if runs are rate-limited. |

A ranking-list run:

```json
{
  "startUrls": [
    { "url": "https://www.niche.com/k12/search/best-public-high-schools/" },
    { "url": "https://www.niche.com/colleges/search/best-colleges/" }
  ],
  "maxItems": 100,
  "maxPagesPerSearch": 3,
  "includeReviews": true,
  "maxReviewsPerEntity": 20
}
```

A direct-profile run:

```json
{
  "startUrls": [
    { "url": "https://www.niche.com/k12/the-hotchkiss-school-lakeville-ct/" },
    { "url": "https://www.niche.com/colleges/stanford-university/" }
  ],
  "includeReviews": false,
  "proxy": { "useApifyProxy": true, "apifyProxyGroups": ["UNBLOCKER"] }
}
```

### Output

The default dataset contains one item per profile (`itemType: "profile"`) and optional `searchResult` items. Review bodies are written to the separate `reviews` dataset.

```json
{
  "itemType": "profile",
  "entityType": "School",
  "vertical": "k12",
  "name": "The Hotchkiss School",
  "slug": "the-hotchkiss-school-lakeville-ct",
  "url": "https://www.niche.com/k12/the-hotchkiss-school-lakeville-ct/",
  "nicheGrade": "A+",
  "gradeValue": 4.33,
  "categoryGrades": {
    "Academics": "A+",
    "Teachers": "A+",
    "Diversity": "A+",
    "Sports": "A-"
  },
  "rating": 4.527,
  "reviewCount": 110,
  "reviewChart": { "1": 2, "2": 4, "3": 5, "4": 22, "5": 77 },
  "stats": {
    "Student-Teacher Ratio": "4 to 1",
    "Average Graduation Rate": "100%",
    "Average SAT": "1400-1540 (avg 1450)",
    "Yearly Tuition": "$71,170",
    "Students": "611"
  },
  "location": "LAKEVILLE, CT",
  "address": { "Address": "11 INTERLAKEN RD", "City": "LAKEVILLE", "State": "CT", "ZipCode": "06039" },
  "geo": { "town": { "name": "Lakeville" }, "county": { "name": "Litchfield County" }, "state": { "name": "Connecticut" } },
  "reviewsDatasetId": "abc123",
  "reviewTotal": 110,
  "rankings": [{ "list": "Best Private High Schools in America", "rank": 1, "outOf": 4917 }],
  "tags": ["Boarding School", "Private", "High School"],
  "website": "https://www.hotchkiss.org/",
  "phone": "(860) 435-3102",
  "scrapedAt": "2026-10-27T12:00:00.000Z"
}
```

Each review row:

```json
{
  "itemType": "review",
  "reviewId": "59cfc3df-...",
  "entityType": "College",
  "name": "Massachusetts Institute of Technology",
  "slug": "massachusetts-institute-of-technology",
  "url": "https://www.niche.com/colleges/massachusetts-institute-of-technology/",
  "total": 681,
  "rating": 3,
  "authorType": "Senior",
  "date": "2026-03-27T18:31:43.091748Z",
  "body": "Review text...",
  "categories": ["Overall Experience"],
  "helpfulness": 19,
  "featured": false
}
```

| Field group | Fields |
| --- | --- |
| Identity | `itemType`, `entityType`, `vertical`, `name`, `slug`, `url` |
| Grades | `nicheGrade`, `gradeValue`, `categoryGrades`, `categoryGradeValues` |
| Ratings | `rating`, `reviewCount`, `reviewChart`, `reviewTotal` |
| School data | `stats`, `statsRaw`, `demographics`, `editorial`, `character`, `genus` |
| Location | `location`, `address`, `geo`, `centroid` |
| Discovery | `nearby`, `nearbySchools`, `relatedColleges`, `rankings`, `tags` |
| Contact | `website`, `phone`, `imageUrl` |
| Reviews | `reviewsDatasetId` on the profile; one review per row in the `reviews` dataset |

### Pricing

Each profile written to the default dataset is billed at **$0.008**, or **$8 per 1,000 profiles**. Each review written to the reviews dataset is billed at **$0.004**, or **$4 per 1,000 reviews**. A standard Actor Start event costs **$0.00005** per run.

Pricing tiers for profiles: $0.008 on FREE and BRONZE, $0.0075 on SILVER, $0.007 on GOLD, PLATINUM and DIAMOND. Review tiers: $0.004 on FREE and BRONZE, $0.0035 on SILVER, $0.003 on GOLD and above.

Free users get a **10-profile preview** and are not charged. A paid run with 100 profiles and 2,000 reviews costs about **$8.00 + $8.00 = $16.00** in event charges, plus the start event and Apify platform usage. Turning off reviews removes the review event and the extra review collection work.

### Schedule Niche Data Collection

- **School comparison** - run a state or national ranking list weekly and diff `nicheGrade`, `gradeValue` and `stats`.
- **Relocation feed** - collect places-to-live profiles by city or county and join them with housing data.
- **Admissions research** - track tuition, SAT/ACT ranges and acceptance-related stats across a target list.
- **Review monitoring** - schedule `includeReviews: true` and compare new review IDs and ratings.
- **Lead enrichment** - use profile URLs, websites and phones to enrich a school or district CRM.
- **Deduplication** - `slug` is the stable key when listing pages overlap.

### Related Actors

- [Niche Schools & Colleges Scraper](https://apify.com/parseforge/niche-schools-scraper) - ranking lists with a flat school schema.
- [Niche K-12 Scraper](https://apify.com/lexis-solutions/niche-k12-scraper) - K-12 search and profile pages.

### FAQ

#### Does the Actor require a Niche account?

No. It collects publicly available Niche profiles and reviews and does not need a Niche login.

#### When should I enable a proxy?

Enable Apify Proxy if runs are rate-limited or blocked from your network. US residential is a lower-cost option for lighter workloads.

#### Can I scrape reviews without profiles?

Reviews are tied to profiles. Set `maxItems` to the number of profiles you need and `includeReviews: true`; the Actor writes reviews to the separate `reviews` dataset. Set `maxReviewsPerEntity: 0` to skip them.

#### How many entities are on a listing page?

Niche returns **25 entities per page**. `maxPagesPerSearch` controls how many pages the Actor follows for each listing URL.

#### Why is a profile missing a grade or stat?

Niche publishes different report-card fields by vertical and by entity. Missing values are omitted or returned as `null`; the Actor does not invent data.

#### Can I get only the ranking list?

Yes. Set `emitSearchResults: true` and use a small `maxItems`, or use profile URLs directly. Search-result rows contain the card fields such as grade, rating, review count and key stats.

#### Are review dates exact?

Niche publishes the review date it shows on the page. The Actor passes it through as `date` without changing the timezone.

### For AI Agents & LLM Apps

Use this Actor as a structured school-data tool. An agent can pass a Niche ranking URL or profile URL, receive JSON rows with grades, stats, location and review links, and ground answers about schools, colleges or places to live. Keep `maxItems` small for interactive calls, use the separate `reviews` dataset only when review text is needed, and cache `slug` values to avoid duplicate profile rows.

### Legal & Compliance Disclaimer

This Actor collects publicly available data from Niche.com. It is not affiliated with, endorsed by or sponsored by Niche. You are responsible for complying with Niche's terms of service, robots guidance, copyright rules and applicable privacy law. Review text is user-generated content; apply moderation and PII handling appropriate to your use case. Do not use the data to harass individuals or to make high-impact decisions without human review.

### SEO Keywords

niche scraper, niche.com scraper, niche school scraper, niche college scraper, niche k12 scraper, niche school data, niche college data, niche grades data, niche reviews scraper, school ranking data, college ranking scraper, school comparison data, niche api, scrape niche, niche school ratings, niche district data, niche places to live data, education market research, school data api, niche csv

# Actor input Schema

## `startUrls` (type: `array`):

Niche search pages (they paginate automatically) or profile pages. Examples: https://www.niche.com/k12/search/best-public-high-schools/ , https://www.niche.com/colleges/search/best-colleges/ , https://www.niche.com/places/search/best-places-to-live/ , https://www.niche.com/k12/the-hotchkiss-school-lakeville-ct/ , https://www.niche.com/colleges/stanford-university/

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

Maximum number of dataset items (profiles). When a search page is used as the start URL, its result cards are turned into profile requests until this limit is reached.

## `maxPagesPerSearch` (type: `integer`):

How many result pages (?page=N, 25 schools each) to follow for every search URL you provide.

## `includeReviews` (type: `boolean`):

Fetch the reviews tab of each profile and write reviews to the separate reviews dataset (profile items stay lean). When off, only the 3 inline excerpts are written to that dataset and no extra review-page requests are made.

## `maxReviewsPerEntity` (type: `integer`):

Cap on reviews collected per profile in the separate reviews dataset. Niche returns 20 reviews per page, so values above 20 fetch additional pages (up to 200). Set 0 to skip review data.

## `emitSearchResults` (type: `boolean`):

When on, every card on the listing pages is also pushed as an item (grade, rating, review count, key stats). Useful if you only want the ranking lists.

## `proxy` (type: `object`):

Select proxies to be used by your crawler. Apify Unblocker is pre-selected because it solves Niche's HUMAN/PerimeterX challenge; Residential (US) is a cheaper fallback when the pool is healthy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.niche.com/k12/search/best-public-high-schools/"
    }
  ],
  "maxItems": 40,
  "maxPagesPerSearch": 3,
  "includeReviews": true,
  "maxReviewsPerEntity": 20,
  "emitSearchResults": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

## `profiles` (type: `string`):

School, district, college and place profiles with grades, stats and demographics.

## `reviews` (type: `string`):

Full reviews, one flat item per review (or per review page).

# 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 = {
    "startUrls": [
        {
            "url": "https://www.niche.com/k12/search/best-public-high-schools/"
        }
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmed_jasarevic/niche-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 = {
    "startUrls": [{ "url": "https://www.niche.com/k12/search/best-public-high-schools/" }],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("ahmed_jasarevic/niche-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 '{
  "startUrls": [
    {
      "url": "https://www.niche.com/k12/search/best-public-high-schools/"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call ahmed_jasarevic/niche-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmed_jasarevic/niche-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/w2gALPjmfpcXnnKRe/builds/644lnIKSE6EhP1F3y/openapi.json
