# Fort Worth Code Violations Scraper | Texas (`texas-data-feeds/fort-worth-code-violations`) Actor

Get Fort Worth code violations with addresses, statuses, dates and coordinates. Filter by violation type, open cases or radius for property research.

- **URL**: https://apify.com/texas-data-feeds/fort-worth-code-violations.md
- **Developed by:** [Texas Data Feeds](https://apify.com/texas-data-feeds) (community)
- **Categories:** Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.

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

## Fort Worth Code Violations Scraper | Texas

Get Fort Worth code violations with addresses, statuses, dates and coordinates. Filter by violation type, open cases or radius for property research.

### Who is this for?

Landscaping and cleanup contractors, property investors, property managers, researchers and lead-generation analysts.

### Example use cases

- Research open high-grass or waste violations.
- Review code activity within a radius of a property.
- Analyze violation types and case status over time.

### Sample output

Illustrative values only, not a current source record. Fields may be missing or null; see the input and output schema for the full structure.

| record_type | case_id | violation_type | violation_status | address |
| --- | --- | --- | --- | --- |
| code_violation | EXAMPLE | High Grass | Open | Illustrative address |

### Data scope and limits

Public records are research signals, not verified sales leads or evidence of wrongdoing. No verified owner contact details, phone numbers or emails are promised. Source refresh delays and missing data can affect results. Confirm operational or investment decisions with the official source. Scheduling and integrations are configured separately in Apify; this actor does not contact anyone.

### Related search terms

Fort Worth code violations, Texas code compliance, high grass, property maintenance, real estate.

### Input

| Field | Meaning |
|---|---|
| `violationTypes` | Keywords matched against the violation type, e.g. `High Grass`, `Solid Waste`, `Substandard Building`, `Vehicle` |
| `addressContains` | Keep addresses containing any of these strings (street name or number) |
| `openOnly` / `caseOpenOnly` | Only open violations / only open cases |
| `newSinceDays` | Violations created in the last N days (default 14) |
| `dateFrom`, `dateTo` | Created-date window (YYYY-MM-DD) |
| `nearLatitude`, `nearLongitude`, `radiusMiles` | Radius search around a point, which adds `distance_miles` |
| `maxItems` | Cap on results, newest first (default 1,000) |
| `requestDelaySecs` | Polite delay between API calls (min 1 s) |

Example (open high-grass violations within 3 miles of downtown, last 30 days):

```json
{"violationTypes": ["High Grass"], "openOnly": true, "newSinceDays": 30,
 "nearLatitude": "32.7555", "nearLongitude": "-97.3308", "radiusMiles": 3, "maxItems": 200}
```

### How current is the data?

The City says the table is "updated weekly". Each run queries the live service, so choose a schedule appropriate to the City’s update cadence.

### Data source and credit

- **City of Fort Worth Open Data**: [CFW Code Violations Table](https://data.fortworthtexas.gov/datasets/48e06b6f1f474f49a1af2579de3e1386), Code Compliance Department. The data is licensed **[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)**. Attribution: City of Fort Worth / Code Compliance Department. You can download the raw data free at that link. This actor charges only for the automation it adds: filtered queries, radius search, normalization, and scheduled delivery. If you republish the data, credit the City of Fort Worth.
- This actor is **not affiliated with or endorsed by the City of Fort Worth**. No City logos are used. Changes made: field renaming, UTC ISO dates, derived `full_address`, `days_open` and `distance_miles`. Code officer names and phone numbers are left out.

### Pricing

See the current Apify Store pricing panel for active rates and effective dates. This documentation update does not change pricing.

### Etiquette and compliance

The actor sends JSON queries to the ArcGIS REST `/query` endpoint only and never scrapes the portal UI. It waits at least 1 s between requests, sends a descriptive User-Agent (`TexasDataFeeds-FortWorthCode/0.1 ...`) and backs off on 403/429 errors.

### Disclaimer

Data is provided "as is", with no warranty of accuracy, completeness or timeliness. It is not an official record, so verify with the City of Fort Worth Code Compliance Department before acting on it. Addresses describe the property where a violation was recorded. A violation is an allegation or enforcement record, not proof of wrongdoing by any owner or occupant. Use the data lawfully. Do not use it to harass owners or residents, or for any purpose covered by the FCRA (such as tenant, credit or employment screening). Follow telemarketing and direct-mail laws when contacting property owners.

# Actor input Schema

## `violationTypes` (type: `array`):

Case-insensitive keywords matched against the violation type: High Grass, Solid Waste, Property Maintenance, Substandard Building, Multi-Family, Zoning - Commercial, Zoning - Residential, Vehicle, Health Hazard, Homeless Camp. Empty = all.

## `addressContains` (type: `array`):

Keep violations whose street address contains any of these strings (e.g. a street name like 'HEMPHILL' or '817 ATLANTA'). Empty = all.

## `openOnly` (type: `boolean`):

Only violations whose current status is Open.

## `caseOpenOnly` (type: `boolean`):

Only violations whose case is still Open.

## `newSinceDays` (type: `integer`):

Keep violations created within the last N days (UTC). 0 = no limit. The City refreshes this table about weekly.

## `dateFrom` (type: `string`):

Optional earliest violation created date.

## `dateTo` (type: `string`):

Optional latest violation created date (inclusive).

## `nearLatitude` (type: `string`):

Optional radius search center latitude, e.g. 32.7555

## `nearLongitude` (type: `string`):

Optional radius search center longitude, e.g. -97.3308

## `radiusMiles` (type: `integer`):

Radius around the center point. 0 = no radius filter.

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

Newest first. Caps cost; 0 = no hard limit (pages 1,000 at a time).

## `requestDelaySecs` (type: `integer`):

Polite pause between API calls.

## Actor input object example

```json
{
  "violationTypes": [
    "High Grass",
    "Solid Waste"
  ],
  "openOnly": false,
  "caseOpenOnly": false,
  "newSinceDays": 14,
  "radiusMiles": 0,
  "maxItems": 1000,
  "requestDelaySecs": 1
}
```

# Actor output Schema

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

Dataset with all output records

# 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 = {
    "violationTypes": [
        "High Grass",
        "Solid Waste"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("texas-data-feeds/fort-worth-code-violations").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 = { "violationTypes": [
        "High Grass",
        "Solid Waste",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("texas-data-feeds/fort-worth-code-violations").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 '{
  "violationTypes": [
    "High Grass",
    "Solid Waste"
  ]
}' |
apify call texas-data-feeds/fort-worth-code-violations --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,texas-data-feeds/fort-worth-code-violations"
        }
    }
}
```

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/A7k7OME13u3a3dPEV/builds/akMUijcQ4gSdyjmoV/openapi.json
