# Ollies Store Location Scraper (`mscraper/ollies-store-location-scraper`) Actor

Extract the location of stores from America's largest closeout retailer. Input your zip code, city or zip code and scrape the location, address, opening hours, and distance of the closest Ollie's stores. Export this data in Excel, HTML, or JSON.

- **URL**: https://apify.com/mscraper/ollies-store-location-scraper.md
- **Developed by:** [mscraper](https://apify.com/mscraper) (community)
- **Categories:** Other
- **Stats:** 2 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

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

## Ollie's Store Location Scraper

### What does Ollie's Store Location Scraper do?

Ollie's Store Location Scraper is a web scraping tool that enables you to extract location data from [Ollie's](https://www.ollies.us/locations/), America's largest closeout retailer. By simply inputting your zip code, city, or state, it allows you to scrape data including the location, address, opening hours, and distance of the nearest Ollie's stores. The scraped data can then be exported in Excel, HTML, or JSON formats.

### Why scrape Ollie's Locations?

Scraping Ollie's store locations can provide several benefits:

➡️ **Market Research**: By gathering data on store locations, you can gain insights into Ollie's market presence and expansion strategy.

➡️ **Competitor Analysis**: If you're in the retail industry, understanding where your competitors are located can inform your own location strategy.

➡️ **Location-based Marketing Campaigns**: Using location data, you can plan targeted marketing campaigns in areas with Ollie's stores.

➡️ **Supply Chain Management**: Knowing the locations of Ollie's stores can help logistics and supply chain planning.

### How much will it cost to scrape Ollie's Locations?

Running Ollie's Store Location Scraper once will get you results for $0.01 in Apify platform credits. For more details about the plans we offer, platform credits, and usage, see the [platform pricing page](https://apify.com/pricing/actors) or this video guide on ▷ [how to choose the right subscription plan](https://www.youtube.com/watch?v=s_89WpOsKRI).

### How to scrape Ollie's Locations?

Ollie's Store Location Scraper is designed to be easy-to-use and doesn't require any programming knowledge to get started.

### Input

Ollie's Store Location Scraper has the following input options. Click on the [input tab](https://apify.com/mscraper/ollies-store-location-scraper/input-schema) for more information.

### Results

![Apify  -  Ollie's Store Location Scraper  output](https://i.imgur.com/kpALlhy.png)

The output from Ollie's Store Location Scraper is stored in the dataset. After the run is finished, you can download the dataset in various data formats (JSON, CSV, XML, RSS, HTML Table).

```[json]
{
  "Latitude": 40.25819,
  "Longitude": -74.73146,
  "Address1": "2495 Brunswick Pike Unit 16",
  "Address2": null,
  "Zip": "8648",
  "Phone": "(609) 362-2688",
  "State": "NJ",
  "City": "Lawrence Township",
  "OpenHours": "Sunday: 10am-7pm<br />Monday-Saturday: 9am-9pm<br />",
  "IsActive": true,
  "Distance": "49.39"
}
```

### Is it legal to scrape Ollie's Locations?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Contact

Please feel free to browse through the diverse array of web scrapers available on [my Apify profile](https://apify.com/mscraper). If a custom solution or extra options are what you're seeking, don't hesitate to get in touch with me directly at <contact@mscraper.com>.

# Actor input Schema

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

Select proxies to be used by your crawler.

## `rangeInMiles` (type: `string`):

Select range in miles

## `zipCode` (type: `string`):

Zip code

## `city` (type: `string`):

City

## `state` (type: `string`):

State

## Actor input object example

```json
{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "rangeInMiles": "50",
  "zipCode": "10001",
  "city": "",
  "state": "all"
}
```

# 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 = {
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("mscraper/ollies-store-location-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 = { "proxy": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    } }

# Run the Actor and wait for it to finish
run = client.actor("mscraper/ollies-store-location-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 '{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  }
}' |
apify call mscraper/ollies-store-location-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mscraper/ollies-store-location-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/vwxDeqAdM2OrUO7dy/builds/K6hsm5DiYxRcakn6H/openapi.json
