# StateJobsNY Scraper: New York State Jobs (`santamaria-automations/statejobsny-jobs-scraper`) Actor

Scrape open New York State government vacancies from StateJobsNY: title, agency, county, grade, posting and deadline dates and, on request, salary range, schedule, duties, qualifications and how to apply. Pay-per-result.

- **URL**: https://apify.com/santamaria-automations/statejobsny-jobs-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** Jobs, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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

## StateJobsNY Scraper: New York State Government Jobs

Scrape the open vacancies of [StateJobsNY](https://statejobs.ny.gov/public/vacancyTable.cfm), the job board of New York State agencies. You get the title, agency, county, salary grade, posting date and deadline of every vacancy. With `includeDetails` you also get the salary range, employment and appointment type, schedule, work address, duties, minimum qualifications, additional comments and how to apply.

### What it does

- Reads the list of all open vacancies that the site shows to the general public (about 1,700 at a time).
- Filters it by keyword, agency, county, salary grade and age of the posting.
- Optionally opens the page of each vacancy and adds every label and value it shows.
- The contact fields (`contact_name`, `contact_email`, `contact_phone`, `contact_fax`, `contact_street` and so on) are the agency contact that the vacancy page itself publishes for applications. Use them with the data protection rules that apply to you.
- Returns the newest vacancies first, one row per vacancy, never the same vacancy twice.

The site has no keyword search that can be called from outside, so the keyword is matched here: a vacancy matches when its title or its agency contains the keyword (not case sensitive). Agency, county and grade filters work the same way on the list.

### Use with AI Agents (MCP)

Connect this actor to any MCP-compatible AI client: Claude Desktop, Claude.ai, Cursor, VS Code, LangChain, LlamaIndex, or custom agents.

**Apify MCP server URL:**

`https://mcp.apify.com?tools=santamaria-automations/statejobsny-jobs-scraper`

**Example prompt once connected:**

> "Use `statejobsny-jobs-scraper` to find up to 5 jobs for the keyword "analyst" (analyst vacancies of New York State agencies). Return results as a table with title, company, location and job URL."

Clients that support dynamic tool discovery (Claude.ai, VS Code) receive the full input schema automatically.

### Input

```json
{
  "includeDetails": false,
  "maxResults": 5,
  "maxResultsPerQuery": 5,
  "searchQueries": [
    "analyst"
  ]
}
```

| Field | What it does |
| --- | --- |
| `searchQueries` | Keywords such as `nurse`, `engineer`, `analyst`. Matched in the title and the agency. Empty = all vacancies. |
| `agencies` | Part of an agency name, for example `Transportation` or `Health, Department of`. One agency per line. |
| `counties` | County names as in the vacancy table, for example `Albany`, `Erie`, `New York`, `St Lawrence`, `To Be Determined`. A county that is not in the table gives no results. |
| `grades` | Salary grades such as `18`, `23`, `NS` or `Hourly`. `9` and `09` are the same grade. |
| `postedWithinDays` | Only vacancies posted in the last N days. 0 = no age filter. |
| `maxResultsPerQuery` | Maximum vacancies per keyword (default 50). 0 = up to 5000. |
| `maxResults` | Maximum vacancies in total (default 200). 0 = no limit. |
| `includeDetails` | Open the page of each vacancy for the detail columns (default off). The price per result does not change. |

An empty input runs the sample above: the keyword `analyst`, 5 vacancies.

The run reports how many vacancies the site lists and how many match your filters, then ends with `N jobs delivered.` A search with no match ends with `0 jobs found for ...` and no charge.

### Sample output

```json
{
  "id": "228645",
  "item_number": "228645",
  "title": "Senior Health Care Management Systems Analyst/Trainee 1, 2 (NY HELPS) - 87037, 46462",
  "grade": "18",
  "posted": "2026-11-10",
  "posted_raw": "11/10/26",
  "deadline": "2026-11-25",
  "deadline_raw": "11/25/26",
  "agency": "Health, Department of",
  "county": "Albany",
  "occupational_category": "Financial, Accounting, Auditing",
  "ny_helps": true,
  "eligible_55bc": true,
  "bargaining_unit": "PS&T - Professional, Scientific, and Technical (PEF)",
  "salary_range_text": "From $56183 to $88970 Annually",
  "salary_min": 56183,
  "salary_max": 88970,
  "salary_currency": "USD",
  "salary_period": "annual",
  "employment_type": "Full-Time",
  "appointment_type": "Contingent Permanent",
  "internship": false,
  "jurisdictional_class": "Competitive Class",
  "travel_percentage": "0%",
  "workweek": "Mon-Fri",
  "hours_per_week": 37.5,
  "workday_from": "9 AM",
  "workday_to": "5 PM",
  "flextime_allowed": false,
  "mandatory_overtime": false,
  "compressed_workweek_allowed": false,
  "telecommuting_allowed": false,
  "street_address": "OHIP/Division of Finance and Rate Setting/Bureau of Public Hospital Reimbursement and Health Care Revenue\n99 Washington Avenue",
  "city": "Albany",
  "state": "NY",
  "zip_code": "12210",
  "duties_description": "This incumbent will support the Bureau of Public Hospital Reimbursement & Health Care Revenue within OHIP’s Division of Finance and Rate Setting (DFRS) in the administering, tracking, documenting, and processing of the H ...",
  "duties_description_html": "This incumbent will support the Bureau of Public Hospital Reimbursement &amp; Health Care Revenue within OHIP’s Division of Finance and Rate Setting (DFRS) in the administering, tracking, documenting, and processing of t ...",
  "minimum_qualifications": "Permanent Transfer Candidates: Current New York State Department of Health employee with permanent or contingent-permanent, competitive, status, as a Senior Health Care Management Systems Analyst, SG-18, OR; Current New ...",
  "minimum_qualifications_html": "Permanent Transfer Candidates: Current New York State Department of Health employee with permanent or contingent-permanent, competitive, status, as a Senior Health Care Management Systems Analyst, SG-18, OR; Current New ...",
  "additional_comments": "When reviewing qualifications, omissions and vagueness cannot be interpreted in the candidate’s favor. Candidates are responsible for providing accurate and clear descriptions of their experience demonstrating how they m ...",
  "additional_comments_html": "When reviewing qualifications, omissions and vagueness cannot be interpreted in the candidate’s favor. Candidates are responsible for providing accurate and clear descriptions of their experience demonstrating how they m ...",
  "contact_name": "Human Resources Management Group, CD/SHCMSA/87037,46462",
  "contact_phone": "518-486-1812",
  "contact_fax": "518-473-3395",
  "contact_email": "jobs@example.gov",
  "contact_street": "Corning Tower, Empire State Plaza, Room 2217",
  "contact_city": "Albany",
  "contact_state": "NY",
  "contact_zip": "12237",
  "notes_on_applying": "Please submit your resume and cover letter as one (1) document, preferably in PDF format, by email to jobs@example.gov, with Reference CD/SHCMSA/87037,46462 included in the subject line or by mail to Human Resources ...",
  "job_url": "https://statejobs.ny.gov/public/vacancyDetailsView.cfm?id=228645",
  "details_fetched": true,
  "search_query": "analyst",
  "source": "statejobs.ny.gov",
  "scraped_at": "2026-11-11T12:00:00Z"
}
```

### Output fields

Columns marked "Detail only" are empty (null) unless `includeDetails` is on and the vacancy page could be read.

| Field | Mode | Description |
| --- | --- | --- |
| `id` | List and detail | Vacancy number: the id in the vacancy address vacancyDetailsView.cfm?id=<id>. It is the dedup key. |
| `item_number` | List and detail | Item # column of the vacancy table. |
| `title` | List and detail | Job title as posted. |
| `grade` | List and detail | Salary grade of the title (a number such as 18, or NS, Hourly). |
| `posted` | List and detail | Date the vacancy was posted, ISO 8601 (YYYY-MM-DD). |
| `posted_raw` | List and detail | Posted date exactly as the site shows it (MM/DD/YY). |
| `deadline` | List and detail | Last day applications are accepted, ISO 8601 (YYYY-MM-DD). |
| `deadline_raw` | List and detail | Deadline exactly as the site shows it (MM/DD/YY). |
| `agency` | List and detail | State agency that posted the vacancy. |
| `county` | List and detail | County of the vacancy, as in the table (To Be Determined when not set). |
| `occupational_category` | Detail only | Occupational category of the vacancy. |
| `ny_helps` | Detail only | True when the vacancy is part of the NY HELPS program. |
| `eligible_55bc` | Detail only | True when the posting is 55-b/c eligible (workers with disabilities program). |
| `bargaining_unit` | Detail only | Collective bargaining unit of the vacancy. |
| `salary_range_text` | Detail only | Salary range as posted. |
| `salary_min` | Detail only | Lower bound of the salary range, parsed from the text when clear. |
| `salary_max` | Detail only | Upper bound of the salary range, parsed from the text when clear. |
| `salary_currency` | Detail only | USD when a salary amount was parsed. |
| `salary_period` | Detail only | annual, hourly, biweekly, weekly, monthly or daily, when the range text names it. |
| `employment_type` | Detail only | Full-Time or Part-Time. |
| `appointment_type` | Detail only | Permanent, temporary, provisional, contingent permanent and so on. |
| `internship` | Detail only | True when the posting is an internship. |
| `jurisdictional_class` | Detail only | Civil service class: Competitive, Non-Competitive, Exempt, Labor or Unclassified. |
| `travel_percentage` | Detail only | Estimated share of travel, as posted. |
| `workweek` | Detail only | Expected workweek. |
| `hours_per_week` | Detail only | Hours in the workweek. |
| `workday_from` | Detail only | Start time of the workday. |
| `workday_to` | Detail only | End time of the workday. |
| `flextime_allowed` | Detail only | True when the agency allows flextime. |
| `mandatory_overtime` | Detail only | True when the vacancy includes mandatory overtime. |
| `compressed_workweek_allowed` | Detail only | True when a compressed workweek is allowed. |
| `telecommuting_allowed` | Detail only | True when telecommuting is allowed for the position. |
| `street_address` | Detail only | Street address of the work location, lines joined by a line break. |
| `city` | Detail only | City of the work location. |
| `state` | Detail only | State of the work location. |
| `zip_code` | Detail only | Zip code of the work location. |
| `duties_description` | Detail only | Duties of the position as text. |
| `duties_description_html` | Detail only | Duties of the position as posted, with markup. |
| `minimum_qualifications` | Detail only | Minimum qualifications as text. |
| `minimum_qualifications_html` | Detail only | Minimum qualifications as posted, with markup. |
| `additional_comments` | Detail only | Additional comments as text (benefits, accommodation, salary rules). Only when the posting has them. |
| `additional_comments_html` | Detail only | Additional comments as posted, with markup. |
| `contact_name` | Detail only | Contact name shown on the posting, usually an agency HR unit. |
| `contact_phone` | Detail only | Telephone of the posting contact, as published by the agency. |
| `contact_fax` | Detail only | Fax of the posting contact, as published. |
| `contact_email` | Detail only | Email address for applications or questions, as published on the posting. |
| `contact_street` | Detail only | Street address of the posting contact. |
| `contact_city` | Detail only | City of the posting contact. |
| `contact_state` | Detail only | State of the posting contact. |
| `contact_zip` | Detail only | Zip code of the posting contact. |
| `notes_on_applying` | Detail only | How to apply: instructions of the agency. |
| `job_url` | List and detail | Address of the vacancy page on statejobs.ny.gov. |
| `details_fetched` | List and detail | True when the vacancy page was read for this row (includeDetails). |
| `search_query` | List and detail | The keyword that found the row, or all vacancies. |
| `source` | List and detail | Site host. |
| `scraped_at` | List and detail | Time the row was built, ISO 8601 UTC. |

The posting contact columns (`contact_name`, `contact_phone`, `contact_fax`, `contact_email`, `contact_street`, `contact_city`, `contact_state`, `contact_zip`) are the contact of the hiring agency exactly as it is published on the vacancy page, usually a human resources unit. They are posting contact data for applicants, not data of private persons.

### Pricing

This actor uses pay per event. The start fee is charged once per run, and one `job-result` event is charged for each vacancy in the dataset. Nothing is charged for vacancies that are not delivered.

Price: $0.001 start fee per run, then $0.0005 per job result ($0.50 per 1,000 jobs).

**New to Apify?** Every account gets a $5 free monthly platform credit, enough to try this actor at no cost.

The events are `apify-actor-start` (once per run, charged by the platform) and `job-result` (once per vacancy). If you set a maximum cost per run, the actor stops before it would pass that limit and says so in the run status.

### Related Actors

- [USAJobs Scraper: US Federal Government Jobs](https://apify.com/santamaria-automations/usajobs-federal-scraper): US federal government jobs from USAJobs.
- [HigherEdJobs Scraper: Academic, Faculty & University Jobs](https://apify.com/santamaria-automations/higheredjobs-scraper): Academic, faculty and university jobs.
- [Idealist Nonprofit Jobs Scraper: Salaries & Organizations](https://apify.com/santamaria-automations/idealist-scraper): Nonprofit and public interest jobs from Idealist.
- [WayUp Scraper: US Intern & Entry-Level Jobs](https://apify.com/santamaria-automations/wayup-us-scraper): US internships and entry-level jobs from WayUp.

### FAQ

**How many vacancies are there?** The site shows all vacancies open to the general public on one page, around 1,700 on 11 November 2026. The actor reads that page once per run, so the run is fast even without filters.

**Is the list complete?** It is the list the site itself shows as "Current Vacancies". Postings that the agencies do not open to the general public are not on it.

**What do the dates mean?** `posted` and `deadline` are ISO dates. `posted_raw` and `deadline_raw` keep the text as the site shows it (month/day/year with two digits).

**What are the salary columns?** `salary_range_text` is the range as posted, for example "From $56183 to $88970 Annually". `salary_min`, `salary_max` and `salary_period` are read from it when the text is clear, in US dollars. These and the other detail columns need `includeDetails`.

**Can I get only today's postings?** Use `postedWithinDays` with 1 to get yesterday and today.

**Why are some vacancies without detail columns?** If a vacancy page cannot be read (the site refuses it or the vacancy was closed in the meantime), the row is still delivered with its list columns and `details_fetched` is false.

### Support

Something broken, or a field you wish this Actor returned? Open a ticket on the Actor's [Issues tab](https://apify.com/santamaria-automations/statejobsny-jobs-scraper/issues) or email contact@nanoscrape.com. We usually respond within one working day.

# Changelog

This Actor's version history is a separate document: https://apify.com/santamaria-automations/statejobsny-jobs-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords such as nurse, engineer, analyst or attorney. A vacancy matches when its title or agency contains the keyword (not case sensitive). The site has no keyword search of its own, so the filtering is done here on the full list. Each keyword is its own search; a vacancy found by several keywords is returned once. Leave empty for all vacancies (newest first).

## `agencies` (type: `array`):

Only vacancies of these agencies. A part of the name is enough, for example Transportation, Health, Corrections or Education. Names are written as on the site, such as 'Transportation, Department of'. Put one agency per line.

## `counties` (type: `array`):

Only vacancies in these counties, written as in the vacancy table: Albany, Allegany, Bronx, Broome, Cattaraugus, Cayuga, Chautauqua, Chemung, Chenango, Clinton, Columbia, Cortland, Delaware, Dutchess, Erie, Essex, Franklin, Fulton, Genesee, Greene, Hamilton, Herkimer, Jefferson, Kings, Lewis, Livingston, Madison, Monroe, Montgomery, Nassau, New York, Niagara, Oneida, Onondaga, Ontario, Orange, Orleans, Oswego, Otsego, Putnam, Queens, Rensselaer, Richmond, Rockland, Saratoga, Schenectady, Schoharie, Schuyler, Seneca, St Lawrence, Steuben, Suffolk, Sullivan, Tioga, To Be Determined, Tompkins, Ulster, Warren, Washington, Wayne, Westchester, Wyoming, Yates. A county that is not in the table gives no results.

## `grades` (type: `array`):

Only vacancies with these salary grades, for example 18, 23, 09, NS or Hourly. 9 and 09 are the same grade.

## `postedWithinDays` (type: `integer`):

Only vacancies posted in the last N days (counted from today, UTC). 0 = no age filter.

## `maxResultsPerQuery` (type: `integer`):

Maximum number of vacancies per keyword (or in total when no keyword is set). The newest vacancies come first. 0 = up to 5000.

## `maxResults` (type: `integer`):

Maximum number of vacancies in the dataset across all searches. 0 = no limit.

## `includeDetails` (type: `boolean`):

Read each vacancy page for the salary range, employment and appointment type, schedule, work address, duties, minimum qualifications, additional comments, the posting contact of the agency and the notes on applying. The price per result stays the same; the run is slower.

## Actor input object example

```json
{
  "postedWithinDays": 0,
  "maxResultsPerQuery": 50,
  "maxResults": 200,
  "includeDetails": false
}
```

# Actor output Schema

## `jobs` (type: `string`):

Dataset with the scraped StateJobsNY vacancies.

# 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("santamaria-automations/statejobsny-jobs-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("santamaria-automations/statejobsny-jobs-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 santamaria-automations/statejobsny-jobs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,santamaria-automations/statejobsny-jobs-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/lHav8Dz5i0QbybzO0/builds/sFRRMsgH29i0lEisO/openapi.json
