stripe-projects
stripe projects
cook-county-data-portal
This skill should be used when the user asks to "query Cook County data", "find Cook County datasets", "get property assessments", "download parcel data", "search datacatalog.cookcountyil.gov", "get medical examiner data", "find court cases", "query State's Attorney data", or mentions Cook County...
Full skill instructions
Query and download datasets from the Cook County Open Data Portal using the Socrata Open Data API (SODA) and SoQL.
Before querying, check if the user has an app token:
COOK_COUNTY_DATA_PORTAL_TOKEN in the user's .env fileCHICAGO_DATA_PORTAL_TOKEN (both portals use Socrata, so tokens are interchangeable)X-App-Token: <token>.env: COOK_COUNTY_DATA_PORTAL_TOKEN=your_token_hereQueries work without a token but are rate-limited.
The Cook County Data Portal is at datacatalog.cookcountyil.gov. Each dataset has a unique 4x4 ID (e.g., uzyt-m557 for assessed values). Use the catalog API to discover datasets, then query via SODA.
Ask the user:
Option A - Catalog Search API:
GET https://api.us.socrata.com/api/catalog/v1?domains=datacatalog.cookcountyil.gov&q=<keywords>
Option B - Portal UI: Browse https://datacatalog.cookcountyil.gov and use the search bar.
Deliverable: Dataset name, 4x4 ID, and API endpoint.
See references/datasets-*.md for commonly requested datasets by category:
references/datasets-property.md - Assessor, Treasurer, parcel datareferences/datasets-courts.md - State's Attorney, sentencing, dispositionsreferences/datasets-health.md - Medical Examiner casesreferences/datasets-finance.md - Payroll, procurement, budgetsFetch schema and column info:
GET https://datacatalog.cookcountyil.gov/api/views/<4x4-ID>
Key fields in response:
columns[].fieldName - exact column names for queriescolumns[].dataTypeName - data type (text, number, calendar_date, location, etc.)columns[].description - what the column meansrowsUpdatedAt - last data update timestampAlways verify column names from metadata before building queries.
Legacy GET (simple, recommended for most cases):
https://datacatalog.cookcountyil.gov/resource/<4x4-ID>.json?$where=<filter>&$limit=1000
SODA3 POST (complex queries):
curl -X POST \
-H "X-App-Token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"query": "SELECT * WHERE year = 2024", "page": {"pageNumber": 1, "pageSize": 1000}}' \
https://datacatalog.cookcountyil.gov/api/v3/views/<4x4-ID>/query.json
Default limit is 1000 rows. For larger extracts:
$limit=1000&$offset=0 # Page 1
$limit=1000&$offset=1000 # Page 2
Always include $order for stable paging:
$order=year DESC&$limit=1000&$offset=0
For full dataset export, use CSV:
https://datacatalog.cookcountyil.gov/api/views/<4x4-ID>/rows.csv?accessType=DOWNLOAD
| Param | Purpose | Example |
|---|---|---|
$select | Columns to return | $select=pin,year,mailed_tot |
$where | Filter rows | $where=year=2024 |
$group | Aggregate | $group=township_code |
$having | Filter aggregates | $having=count(*)>100 |
$order | Sort results | $order=year DESC |
$limit | Max rows | $limit=500 |
$offset | Skip rows | $offset=1000 |
`column_name`'value''2024-01-01T00:00:00'-- Year range
$where=year >= 2020 AND year <= 2024
-- PIN lookup (zero-pad to 14 digits)
$where=pin = '12345678901234'
-- Text matching (case-insensitive)
$where=upper(manner_of_death) = 'HOMICIDE'
-- Null handling
$where=latitude IS NOT NULL
-- Multiple values
$where=township_code IN ('10', '20', '30')
$select=township_code, count(*) as total, avg(mailed_tot) as avg_value
$group=township_code
$order=total DESC
See references/soql-quick-ref.md for full function reference.
If the dataset has a location field (Point type):
-- Within radius (meters from downtown Chicago)
$where=within_circle(location, 41.8781, -87.6298, 5000)
-- Within bounding box
$where=within_box(location, 42.0, -87.9, 41.6, -87.5)
-- Within polygon
$where=within_polygon(location, 'MULTIPOLYGON(((-87.6 41.8, -87.5 41.8, -87.5 41.9, -87.6 41.9, -87.6 41.8)))')
Unauthenticated requests are rate-limited. Register for a free app token:
X-App-Token: YOUR_TOKEN'01234567890123'year or tax_year columns accordingly'10' = Barrington)Provide the user with:
Dataset: Assessor - Assessed Values (uzyt-m557)
https://datacatalog.cookcountyil.gov/d/uzyt-m557
Query:
SELECT pin, year, class, mailed_tot, certified_tot
WHERE year = 2024 AND township_code = '70'
ORDER BY mailed_tot DESC
LIMIT 100
Run it:
curl "https://datacatalog.cookcountyil.gov/resource/uzyt-m557.json?\$select=pin,year,class,mailed_tot,certified_tot&\$where=year%20=%202024%20AND%20township_code%20=%20%2770%27&\$order=mailed_tot%20DESC&\$limit=100"
Note: Values are assessed values, not market values. Adjust by level of assessment to get market value.
| Issue | Fix |
|---|---|
| 404 / "unknown column" | Wrong dataset ID or field name. Check metadata endpoint. |
| Empty results | Filters too strict, wrong date format, or nulls. |
| 429 throttled | Add X-App-Token header. |
| Slow query | Select fewer columns, add filters, reduce limit. |
| Encoding errors | URL-encode special chars: space=%20, >=%3E, '=%27 |
| PIN not found | Zero-pad to 14 digits. |
references/datasets-property.md - Property & Taxation datasetsreferences/datasets-courts.md - Courts & Legal datasetsreferences/datasets-health.md - Health & Medical Examiner datasetsreferences/datasets-finance.md - Finance & Administration datasetsreferences/soql-quick-ref.md - All SoQL functionsexamples/python-query.py - Python code snippetexamples/curl-examples.sh - curl command templatesstripe projects
Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.
okx dex market
okx agentic wallet
gmgn portfolio
okx dapp discovery
okx agent payments protocol
Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.
Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...
Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.
Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform
AI-powered Pine Script code generator for TradingView
Research stocks at the speed of thought.
Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.
Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.
A software for comprehensive market sentiment analysis.
'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends