LAPD Crime Data Scraper – NIBRS & Legacy avatar

LAPD Crime Data Scraper – NIBRS & Legacy

Pricing

from $1.00 / 1,000 lapd crime records

Go to Apify Store
LAPD Crime Data Scraper – NIBRS & Legacy

LAPD Crime Data Scraper – NIBRS & Legacy

Extract LAPD NIBRS and legacy crime records for research and data pipelines. Filter by date, LAPD area, offense, or search term. Returns normalized IDs, offense details, dates, locations, coordinates, status, counts, and raw source fields.

Pricing

from $1.00 / 1,000 lapd crime records

Rating

0.0

(0)

Developer

Muhammad Afzal

Muhammad Afzal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

LAPD Crime Data Scraper

Extract public Los Angeles Police Department crime records from the City of Los Angeles Open Data Portal. The Actor uses the official Socrata JSON endpoint and returns one normalized dataset item per source row.

Modes

  • nibrs (default): current consolidated LAPD NIBRS offense records, dataset k7nn-b2ep.
  • legacy: historical 2020–2024 incident records, dataset 2nrs-mtv8. LAPD says this legacy dataset is no longer updated after its transition to NIBRS reporting.

Filter by inclusive occurrence dates, exact LAPD area name, partial offense text, or a combined search term. maxResults is a hard output and result-charge cap. The raw field preserves the source row for fields that do not fit the normalized contract.

Example:

{
"datasetMode": "nibrs",
"startDate": "2025-01-01",
"endDate": "2025-01-31",
"areaName": "Central",
"offense": "robbery",
"maxResults": 25
}

Output and pricing

Each result includes case/incident identifiers, offense fields, dates, area, hundred-block location, coordinates when supplied, status, counts, source URL, and raw source data. OUTPUT contains run status, pagination diagnostics, warnings, and charged event counts.

The Actor charges $0.001 per stored crime record after the dataset write succeeds. Empty, invalid, and failed requests do not charge result events. A run-start event may be configured separately by Apify.

Limitations and responsible use

LAPD records describe reported incidents and may contain transcription or coverage limitations. Addresses are generalized to the nearest hundred block and coordinates may represent that generalized location. This Actor is not for emergency information, individual criminal-history checks, personally identifying information, or legal conclusions. Respect the City of Los Angeles data terms and avoid inferring that missing or zero results mean no crime occurred.

Source: Los Angeles Open Data Portal and LAPD crime-data documentation.

What data does LAPD Crime Data Scraper return?

Results are written to the default Apify dataset or the output links declared by the Actor. Inspect the dataset schema and a small test run before building a production mapping.

Use cases

  • Schedule repeatable collection and export results to downstream workflows.
  • Run a one-off research job and export the structured result as JSON, CSV, Excel, XML, or RSS from Apify.
  • Schedule the same input to monitor changes over time and send completed datasets to a webhook or integration.
  • Feed schema-shaped records into a database, spreadsheet, BI tool, or AI workflow with the source URL retained for verification.

Input

FieldTypeDescription
datasetModestringUse nibrs for current consolidated LAPD NIBRS offense records, or legacy for historical 2020–2024 incident records.
datasetIdstringOptional public Socrata dataset ID in the form xxxx-xxxx. Leave blank to use the mode default.
startDatestringOptional inclusive occurrence date in YYYY-MM-DD format.
endDatestringOptional inclusive occurrence date in YYYY-MM-DD format.
areaNamestringOptional exact LAPD area name, such as Hollywood, Wilshire, or Central.
offensestringOptional case-insensitive partial match against the offense description, such as burglary, robbery, or assault.
searchTermstringOptional case-insensitive partial match against offense description or LAPD area name.
maxResultsintegerMaximum unique records to return and charge for. This is a hard output and cost cap.
pageSizeintegerSocrata page size. Larger pages are faster; lower values reduce response size.
requestDelayMsintegerDelay between paginated source requests. Use this to be gentle with the public open-data service.

Run LAPD Crime Data Scraper with the Apify API

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/lapd-crime-data-scraper').call({
"datasetMode": "nibrs",
"maxResults": 25,
"pageSize": 1000,
"requestDelayMs": 100
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

You can also run the Actor from Apify Console, schedules, webhooks, the REST API, Make, Zapier, n8n, or the hosted Apify MCP server.

Support

When reporting a problem, include the Actor run ID, a redacted input, the expected result, and a small public example URL when applicable. Do not post API tokens, cookies, credentials, or personal data in an issue.