# Philadelphia Property Opa Scraper (`b2b_lead_generation/philadelphia-property-opa-scraper`) Actor

Pull Philadelphia property assessments, parcel numbers, locations, market values, and building details filtered by ZIP, street, or value. Run the actor and download clean results as JSON, CSV, or Excel from your dataset.

- **URL**: https://apify.com/b2b_lead_generation/philadelphia-property-opa-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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

## Philadelphia Property (OPA) Scraper

![Philadelphia Property (OPA) Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/philadelphia-property-opa-scraper-cover.png)

Philadelphia Property (OPA) Scraper collects public property assessment records from the City of Philadelphia. Filter records by ZIP code, street, property value, or other available fields, then export the results as JSON, CSV, or Excel.

### What It Does

The actor retrieves Philadelphia property assessment records and provides structured property information, including parcel numbers, addresses, market values, building classifications, assessment dates, and geographic data.

Use SQL-based filters to find the property records relevant to your research.

### Features

- **Property Search:** Filter assessment records using SQL conditions.
- **Custom Columns:** Choose which source fields to include in your results.
- **Property Details:** Collect parcel identifiers, locations, values, building information, and assessment details.
- **Structured Exports:** Save results in JSON, CSV, Excel, and other supported Apify dataset formats.
- **Error Handling:** Failed requests are recorded as error rows while the run continues.

### Input Example

```json
{
  "mode": "sql",
  "where": "zip_code = '19124'",
  "columns": "*",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `sql` | Collection mode. Use `sql`. |
| `where` | string | Empty | SQL WHERE condition without the `WHERE` keyword. |
| `columns` | string | `*` | Source columns to retrieve. |
| `maxItems` | integer | `100` | Maximum number of successful records to collect. |
| `requestDelayMs` | integer | `1000` | Delay between requests in milliseconds. |
| `userAgent` | string | `ActorResearch/1.0` | HTTP User-Agent value. |
| `timeoutSecs` | integer | `300` | Overall run time budget in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout for an individual request. |
| `proxyConfiguration` | object | Proxy disabled | Optional proxy configuration. |

### Output Example

```json
{
  "cartodb_id": 1,
  "parcel_number": "332230000",
  "the_geom": "0101000020E61000007881750BF7CA52C00BAB359CC8054440",
  "the_geom_webmercator": "0101000020110F000036491880E8EB5FC19BA4F7A34F965241",
  "assessment_date": "2026-04-29T15:46:03Z",
  "basements": "H",
  "beginning_point": "108'4\" E MAGNOLIA",
  "book_and_page": "54589740",
  "building_code": "R30",
  "building_code_description": "ROW 3 STY STONE",
  "category_code": "1",
  "category_code_description": "SINGLE FAMILY",
  "census_tract": "246",
  "central_air": "N",
  "cross_reference": null,
  "location": "4014 J ST",
  "zip_code": "19124",
  "market_value": "194700",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `cartodb_id` | Source record identifier. |
| `parcel_number` | Property parcel number. |
| `the_geom` | Geographic geometry in its source representation. |
| `the_geom_webmercator` | Web Mercator geometry representation. |
| `assessment_date` | Property assessment date. |
| `basements` | Basement classification value. |
| `beginning_point` | Property beginning-point description. |
| `book_and_page` | Recorded book and page reference. |
| `building_code` | Building classification code. |
| `building_code_description` | Description of the building classification. |
| `category_code` | Property category code. |
| `category_code_description` | Description of the property category. |
| `census_tract` | Census tract identifier. |
| `central_air` | Central air indicator. |
| `cross_reference` | Related source reference, when available. |
| `location` | Property street address. |
| `zip_code` | Property ZIP code. |
| `market_value` | Recorded property market value. |
| `scrapedAt` | Date and time the record was collected. |

### Use Cases

- **ZIP Code Research:** Collect property assessments for a specific Philadelphia ZIP code.
- **Property Valuation:** Filter properties by market value for real estate analysis.
- **Building Analysis:** Study building classifications and property categories across census tracts.
- **GIS Projects:** Combine parcel numbers, addresses, and geographic information with other datasets.
- **Market Research:** Export assessment records for spreadsheets, reporting, and analysis.
- **Scheduled Monitoring:** Run recurring collections to maintain updated property datasets.

### Frequently Asked Questions

**Who can use this actor?**

Real estate analysts, developers, researchers, and data professionals working with Philadelphia property assessment information.

**How can I filter property records?**

Use the `where` parameter with a SQL condition. For example, `zip_code = '19124'` filters by ZIP code, while `market_value > 500000` selects records above a specified value.

**Can I select specific output columns?**

Yes. Set `columns` to the source fields you want to retrieve. Use `*` to request all available columns.

**Can I export the results?**

Yes. Apify supports JSON, CSV, Excel, and other dataset export formats.

**Can I schedule recurring runs?**

Yes. Configure an Apify schedule to refresh your property assessment dataset automatically.

### Trademark Notice

City of Philadelphia and related names and trademarks belong to their respective owners. This actor is an independent tool and does not imply affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible Philadelphia property assessment information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Property records may contain addresses or other information that can be associated with individuals. Consider applicable privacy laws, including GDPR and CCPA, when collecting or using personal data.
- **Copyright and Licensing:** Public property records and geographic datasets may have reuse or attribution conditions. Review the applicable data licence before redistributing or republishing collected information.
- **Platform Terms and Rate Limits:** Respect the City of Philadelphia's data policies and terms, and keep collection activity reasonable.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional about your intended use.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. SQL runs SELECT on opa_properties_public.

## `where` (type: `string`):

SQL WHERE clause without the WHERE keyword, e.g. zip_code = '19124'.

## `columns` (type: `string`):

Columns to select. Default is \*.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds. Default is about 1 request per second.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "sql",
  "where": "zip_code = '19124'",
  "columns": "cartodb_id,parcel_number,location,market_value,zip_code",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/philadelphia-property-opa-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/philadelphia-property-opa-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 '{}' |
apify call b2b_lead_generation/philadelphia-property-opa-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/philadelphia-property-opa-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/sT6A38dCmdCMgVypd/builds/T6djSMBH7Bp3x6e4i/openapi.json
