Search Pennsylvania Registered Business Entities

Site data.pa.govTask search-pa-business-entitiesVersion v1Updated Jul 30, 2026Category data-lookup

Search Pennsylvania registered business records through the Commonwealth's official Socrata open-data system. This skill was captured from a live agent session on data.pa.gov and publishes here verbatim, exactly as an agent receives it.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

Purpose

Search and return Pennsylvania registered business entities from the official Commonwealth open-data catalog, using the distinct-business view and its Socrata API endpoint.

When to Use

Use when the caller needs to find registered Pennsylvania businesses by a name, keyword, or other full-text business-entity term. Use the current-by-county dataset instead when county-level registration records rather than distinct entities are required.

Workflow

  1. Construct the single-navigation Socrata API URL, URL-encoding the caller's search text: https://data.pa.gov/resource/3urc-uaba.json?$q={encoded-query}&$limit={limit}. Use a practical default such as 100; omit $q for an unfiltered browse.
  2. goto that URL with waitUntil: domcontentloaded, then run the following evaluator on the loaded API response:
(() => {
  const text = document.body?.innerText?.trim() || "";
  let payload;
  try {
    payload = JSON.parse(text);
  } catch (_) {
    return { rows: [], error: "Expected a Socrata JSON response" };
  }
  const rows = Array.isArray(payload)
    ? payload
    : Array.isArray(payload.data)
      ? payload.data
      : [];
  return { rows, count: rows.length };
})();
  1. Preserve the returned row objects as-is; field names are dataset-defined and should be inspected from the response rather than guessed. The human-facing distinct-business view is https://data.pa.gov/Licenses-Certificates/Filtered-View-Distinct-Registered-Businesses-in-PA/3urc-uaba/about_data.

Site-Specific Gotchas

  • This is a Socrata catalog: the opaque resource ID 3urc-uaba is the direct API key for the distinct registered-business view; do not rely on the long display title.
  • The related source dataset for current records by county/department is xvd7-5r2c, available at https://data.pa.gov/resource/xvd7-5r2c.json and https://data.pa.gov/Licenses-Certificates/Registered-Businesses-in-PA-Current-by-County-Depa/xvd7-5r2c.
  • $q performs Socrata full-text matching across the view. For exact field filtering, first inspect returned keys or the dataset metadata rather than assuming a column name.
  • Keep $limit explicit because the API response is paginated by request size; issue additional requests with $offset={n} when the caller needs more than one page.
  • The API response is JSON rendered in the browser document, so parse document.body.innerText; do not use an LLM page scraper for structured extraction.

Expected Output

An object of the form { rows: [...], count: number }, where each row is one JSON business-entity record returned by the distinct registered-business view.

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=data.pa.gov&task=search-pa-business-entities