# NYC Parking Tickets Lookup (`bulkforge/nyc-parking-tickets`) Actor

Check open NYC parking & camera violations by license plate from official NYC Open Data. Clean JSON/CSV: fines, amounts due, violation, precinct. No login, no proxies.

- **URL**: https://apify.com/bulkforge/nyc-parking-tickets.md
- **Developed by:** [Paolo](https://apify.com/bulkforge) (community)
- **Categories:** Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 ticket returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## NYC Parking Tickets Lookup

Check **open NYC parking and camera violations by license plate**, straight from the official
[NYC Open Data](https://data.cityofnewyork.us/City-Government/Open-Parking-and-Camera-Violations/nc67-uf89)
(Socrata) API. No login, no cookies, no proxies — fast, clean JSON, CSV or Excel output.

### What you get

For every ticket on a plate:

| Field | Example |
|---|---|
| `plate`, `state`, `license_type` | `GXY6291`, `NY`, `PAS` |
| `summons_number` | `8700843908` |
| `issue_date`, `violation_time` | `07/07/2019`, `11:18A` |
| `violation` | `NO STANDING-DAY/TIME LIMITS` |
| `fine_amount`, `penalty_amount`, `interest_amount`, `reduction_amount`, `payment_amount`, `amount_due` | `115`, `0`, `0`, `0`, `115`, `0` (numbers, USD) |
| `precinct`, `county`, `issuing_agency` | `010`, `NY`, `TRAFFIC` |
| `violation_status`, `judgment_entry_date` | when available |
| `summons_image_url` | link to the summons image |

### How to use

1. Add one or more **license plates** (letters and digits, e.g. `GXY6291`).
2. Pick the plate **state** (default `NY`; clear it to match any state).
3. Optionally filter by violation text (`HYDRANT`, `STREET CLEANING`, …) or return only tickets with an amount still due.
4. Run it, then download the dataset or call it from the API.

#### Input example

```json
{
  "plates": ["GXY6291", "CDP6888"],
  "state": "",
  "violationContains": "STREET CLEANING",
  "onlyOutstanding": false,
  "maxItemsPerPlate": 1000
}
```

### Pricing

**$0.50 per 1,000 tickets returned** (pay per result — $0.0005 each). You are only charged for tickets
that are actually returned; plates with no tickets cost nothing. Set a *maximum cost per run* and the Actor stops when it is reached.

### Use cases

- **Fleet and rental-car managers** — monitor unpaid tickets across a vehicle list.
- **Used-car buyers and dealers** — check a car's violation history before buying.
- **Collections, insurance and legal teams** — enrich plate lists with violation data.
- **Researchers and journalists** — analyse where and why tickets are issued, by precinct, county or violation type.

### FAQ

**Where does the data come from?** The official NYC Open Data portal, dataset "Open Parking and Camera Violations". The city refreshes it regularly.

**Does it include every ticket ever issued?** No. The dataset covers *open* violations and recently resolved ones as published by the city, so older closed tickets may be missing.

**Is this allowed?** The data is public open data published by the City of New York under its open data terms. Plate numbers can identify individuals, so use the output lawfully and in line with applicable privacy laws (e.g. DPPA, GDPR/CCPA).

**Rate limits?** Anonymous Socrata access is throttled. The Actor retries automatically with back-off.

**Need another city or dataset?** Open an issue in the Actor's *Issues* tab.

# Actor input Schema

## `plates` (type: `array`):

Plate numbers to look up, e.g. GXY6291. Letters and digits only.

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

Two-letter state code of the plates (NY, NJ, CT, ...). Leave empty to match any state.

## `violationContains` (type: `string`):

Optional text filter on the violation description, e.g. 'STREET CLEANING' or 'HYDRANT'.

## `onlyOutstanding` (type: `boolean`):

Return only tickets with an amount still due.

## `maxItemsPerPlate` (type: `integer`):

Upper limit of tickets returned per plate.

## Actor input object example

```json
{
  "plates": [
    "GXY6291"
  ],
  "state": "NY",
  "onlyOutstanding": false,
  "maxItemsPerPlate": 1000
}
```

# Actor output Schema

## `tickets` (type: `string`):

All tickets returned by the run (table view).

## `amounts` (type: `string`):

Fine, penalty, interest, reduction, paid and due amounts per ticket.

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

Full dataset with every field, downloadable as JSON, CSV or Excel.

# 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 = {
    "plates": [
        "GXY6291"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bulkforge/nyc-parking-tickets").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 = { "plates": ["GXY6291"] }

# Run the Actor and wait for it to finish
run = client.actor("bulkforge/nyc-parking-tickets").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 '{
  "plates": [
    "GXY6291"
  ]
}' |
apify call bulkforge/nyc-parking-tickets --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bulkforge/nyc-parking-tickets"
        }
    }
}
```

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/WS7xTLdIbzxFMOEEU/builds/g2xJMx098sF42brsA/openapi.json
