Cannabis Dispensary Monitor avatar

Cannabis Dispensary Monitor

Pricing

from $3.99 / 1,000 results

Go to Apify Store
Cannabis Dispensary Monitor

Cannabis Dispensary Monitor

Collects public dispensary records from configured official state registry feeds and reports source coverage/change health.

Pricing

from $3.99 / 1,000 results

Rating

0.0

(0)

Developer

Coding Frontned

Coding Frontned

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

What does Cannabis Dispensary Monitor do?

This Actor collects public cannabis dispensary business records from state registry feeds. Pennsylvania is configured as the default source through its Medical Marijuana Program; you can also provide public HTTPS JSON, GeoJSON, or ArcGIS query feeds. The Actor does not access patient, caregiver, practitioner, or other confidential program data.

Why use Cannabis Dispensary Monitor?

Use the Actor to build a public dispensary directory, review published license and product availability details, map source-provided locations, or compare records between runs. It can enrich matched Pennsylvania records with details from a public state document, de-duplicate records across feeds, and identify published license expiries within selected alert windows.

The Actor writes business records to the run's default dataset. A separate OUTPUT_SUMMARY key-value-store record reports the run result. Change events, source health, expiry alerts, and the comparison baseline are stored in separate key-value-store records.

How to start a run

  1. Open the Actor's Input tab. Keep the default Pennsylvania state or enter state codes and public registry feed URLs that you want to collect.
  2. Set the record limit, page limit, deduplication, and detail options for your run. All input fields are optional; the defaults select Pennsylvania and request up to 100 records from one page.
  3. Click Start and wait for the run to finish.
  4. Open the Results dataset for business records. Use Output summary to see the three-field run result. Other monitoring records are in the run's default Key-value store.

Input

Every field is optional in the schema. states defaults to PA; if it is an empty array, the runtime also falls back to PA. Only Pennsylvania has a built-in registry feed. Other states need a public feed in sourceUrls.

States and registry feeds

FieldTypeRequired?DefaultWhat it does
statesArray of textOptional["PA"]Two-letter state codes. Up to 60 entries. Pennsylvania has a configured official ArcGIS feed. Other codes need a matching sourceUrls entry.
stateTextOptionalNone; falls back to statesLegacy alias for one state. When both states and state are supplied, states takes precedence.
includeStateSourcesBooleanOptionaltrueInclude configured state feeds. Set to false to use only sourceUrls.
sourceUrlsArray of objectsOptional[]Additional public JSON, GeoJSON, or ArcGIS query feeds. Up to 60 entries; identical URLs are fetched once. Each URL must be public HTTPS.

Each sourceUrls entry supports these fields:

FieldTypeRequired?DefaultWhat it does
sourceUrls[].urlURL textRequired in each entryNonePublic HTTPS URL returning JSON, GeoJSON, or an ArcGIS query response.
sourceUrls[].stateTextOptionalNoneTwo-letter state represented by this feed. Used to label records when the source does not provide a state.
sourceUrls[].sourceTextOptional"configured public registry"Label shown in source health reporting; it does not add a field to business records. Maximum 200 characters.

Records and monitoring

FieldTypeRequired?DefaultWhat it does
includeOfficialDetailsBooleanOptionaltrueFor Pennsylvania runs with records, fetch the public state product PDF once and add details only to uniquely matched registry records. Matched phone, website, source link, and printed date values may be added. Set to false to skip this request.
maxResultsPerSourceIntegerOptional100Maximum saved records from each feed, from 0 to 5000. 0 removes this per-source count limit; page and response-size limits still apply.
maxPagesIntegerOptional1Maximum pages per feed, from 1 to 50. The Actor follows supported public next links or ArcGIS transfer-limit pages.
deduplicateBooleanOptionaltrueRemove matching records across feeds and pages using source IDs or public business identity fields.
licenseExpiryAlertDaysArray of integersOptional[30, 60, 90]Days-ahead windows for EXPIRING_LICENSES. Up to 10 values, each from 1 to 3650. Use [] to disable expiry alerts. Alerts require a source-published licenseExpiresAt date.
webhookUrlURL textOptionalNonePublic HTTPS destination for change events. A POST is sent only when changes exist and collection has not hit a source boundary. Leave it out to keep alerts in Apify.

Advanced settings (Developer Options)

FieldTypeRequired?DefaultWhat it does
sourceTimeoutSecsIntegerOptional120 secondsTimeout for each public source request, from 5 to 1800 seconds.
timeoutSecsIntegerOptional120 secondsLegacy alias for sourceTimeoutSecs. Use one timeout field. If both differ and one is 120, the non-default value wins; other conflicting values are rejected.
maxRequestRetriesIntegerOptional1Retries transient transport faults and HTTP 500, 502, or 504 responses. Range: 0 to 3. Access restrictions and policy failures are not retried.
requestDelayMsIntegerOptional0 millisecondsDelay before each content request, from 0 to 10000 milliseconds. Requests run sequentially.
maxResponseBytesIntegerOptional5242880 bytes (5 MiB)Maximum response size, from 1024 bytes to 20971520 bytes (20 MiB). Larger responses are rejected.
userAgentTextOptionalCannabisPublicRegistryScraper/1.0Transparent HTTP user-agent string. Maximum 300 characters; line breaks are not allowed.

state and timeoutSecs are compatibility aliases. Prefer states and sourceTimeoutSecs in new inputs. There is no public proxy input or automatic paid Apify Proxy use. Requests honor existing HTTP/HTTPS proxy environment settings when the runtime supplies them.

Copyable input examples

Small Pennsylvania run using the built-in source:

{
"states": ["PA"],
"maxResultsPerSource": 10
}

Skip the optional Pennsylvania document enrichment:

{
"states": ["PA"],
"includeOfficialDetails": false,
"maxResultsPerSource": 25
}

Allow more pages and set expiry alert windows:

{
"states": ["PA"],
"maxPages": 3,
"maxResultsPerSource": 200,
"licenseExpiryAlertDays": [30, 90],
"requestDelayMs": 250
}

Add public feeds and deduplicate identical URLs. Replace the example URLs with the source URLs you intend to use before starting the run:

{
"includeStateSources": false,
"states": ["NY"],
"sourceUrls": [
{
"url": "https://registry.example.org/dispensaries.json",
"state": "NY",
"source": "State registry"
},
{
"url": "https://registry.example.org/dispensaries.json",
"state": "NY",
"source": "Duplicate feed URL"
}
],
"deduplicate": true,
"maxPages": 2
}

sourceUrls entries use the source's public feed URL. A URL is fetched once even if repeated or already selected by a built-in state source. The Actor does not search a registry website for feeds on your behalf.

Output

The dataset contains business records only. A record must have a source-provided name, street address, and registry feed URL. Other values are included only when present in source data; the Actor does not invent license details, coordinates, hours, or business URLs.

The values and links below are illustrative and are not verified live results. This example shows every supported business field. Real records omit unavailable optional fields.

{
"sourceRecordId": "12345",
"sourceUrl": "https://services5.arcgis.com/RqxnMm8RWsjEA1kX/ArcGIS/rest/services/PA___Medical_Marijuana_Dispensaries/FeatureServer/0/query?where=1%3D1&outFields=*&returnGeometry=true&f=json",
"name": "Example Wellness Dispensary",
"legalName": "Example Wellness LLC",
"state": "PA",
"country": "US",
"licenseNumber": "MMJ-12345",
"licenseType": "Medical dispensary",
"licenseStatus": "Active",
"operationalStatus": "Open",
"address": "100 Main Street",
"addressLine2": "Suite 2",
"city": "Harrisburg",
"municipality": "Harrisburg",
"county": "Dauphin County",
"region": "Central",
"zip": "17101",
"latitude": 40.2732,
"longitude": -76.8867,
"phone": "717-555-0100",
"website": "https://www.example.com/",
"hours": {
"monday": { "opens": "09:00", "closes": "17:00" },
"sunday": "Closed"
},
"categories": ["Medical dispensary"],
"products": ["Medical cannabis"],
"description": "A licensed medical dispensary.",
"openedAt": "2018-02-15",
"licenseIssuedAt": "2018-02-15",
"licenseExpiresAt": "2027-12-31",
"productAvailability": "Yes",
"productAvailabilityAsOf": "2025-01-15",
"productAvailableAt": "2025-01-15",
"officialSourceUrl": "https://www.pa.gov/content/dam/copapwp-pagov/en/health/documents/topics/documents/programs/medical-marijuana/Medical%20Marijuana%20Dispensaries%20in%20Pennsylvania%20with%20Product.pdf",
"registryDateColumns": ["2018-02-15", "2025-01-15"],
"registryProductAsOf": "2025-01-15"
}

Output fields

FieldTypeRequired?Meaning
sourceRecordIdTextOptionalIdentifier supplied by the registry.
sourceUrlURL textRequiredPublic HTTPS feed that supplied the record.
nameTextRequiredDispensary or public location name.
legalNameTextOptionalLegal business name.
stateTextOptionalState code from the source or feed label.
countryTextOptionalCountry code or name.
licenseNumberTextOptionalPublished license or permit identifier.
licenseTypeTextOptionalPublished license or permit type.
licenseStatusTextOptionalPublished license status.
operationalStatusTextOptionalPublished business operating status.
addressTextRequiredStreet address.
addressLine2TextOptionalUnit, suite, or second address line.
cityTextOptionalCity or town.
municipalityTextOptionalMunicipality when separately published.
countyTextOptionalCounty.
regionTextOptionalRegion, district, or similar subdivision.
zipTextOptionalPostal code.
latitudeNumberOptionalSource coordinate or point-geometry latitude, from -90 to 90.
longitudeNumberOptionalSource coordinate or point-geometry longitude, from -180 to 180.
phoneTextOptionalPublic business telephone number.
websiteURL textOptionalPublic business website from the feed or the same matched PDF table row. Separate website lines with no reliable row attribution are omitted.
hoursText, object, or arrayOptionalOpening hours in the shape supplied by the source.
categoriesArray of textOptionalPublished category or facility-type labels.
productsArray of textOptionalPublished product types.
descriptionTextOptionalPublic business description.
openedAtTextOptionalPublished opening date.
licenseIssuedAtTextOptionalPublished license issue date.
licenseExpiresAtTextOptionalPublished license expiry date.
productAvailabilityTextOptionalPublished product availability statement.
productAvailabilityAsOfTextOptionalPublisher's product availability as-of date.
productAvailableAtTextOptionalPublished product availability date or time.
officialSourceUrlURL textOptionalPublic official document used for a matched detail, when available.
registryDateColumnsArray of textOptionalDates printed on the matched official registry row, kept in source order.
registryProductAsOfTextOptionalProduct document's published as-of date.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

Run status and output summary

The run status is based on validated business records whose dataset writes completed:

  • SUCCEEDED means at least one real business record was saved and collection completed.
  • SUCCEEDED with limited results means at least one record was saved and a source, page, optional document enrichment, or dataset write failure limited collection. The Actor keeps the saved records and marks isPartial as true.
  • FAILED means no real business records were saved. Empty, blocked, invalid, or diagnostic-only data does not create dummy dataset rows.
  • Reaching maxResultsPerSource is normal completion when no other failure stops collection.

The separate Output summary link opens OUTPUT_SUMMARY in the run's default Key-value store. It contains exactly these fields:

FieldTypeRequired?Meaning
statusTextRequiredSUCCEEDED when at least one real record was saved; otherwise FAILED.
itemsStoredNonnegative integerRequiredNumber of validated business records whose dataset writes completed.
isPartialBooleanRequiredtrue when a source, page, optional document enrichment, or dataset write failure limited collection and at least one real record was saved.
{
"status": "SUCCEEDED",
"itemsStored": 25,
"isPartial": false
}

Other key-value-store records support monitoring: RUN_HEALTH contains source outcomes, SNAPSHOT is the comparison baseline, CHANGES contains new or updated records, and EXPIRING_LICENSES contains expiry alerts. These are separate from the business dataset and OUTPUT_SUMMARY.

Tips and access limits

  • For states without a built-in feed, supply a public JSON, GeoJSON, or ArcGIS query endpoint in sourceUrls and label its state when useful.
  • Results from a source depend on the fields it publishes. The Actor cannot create license, address, contact, or location data that is missing upstream.
  • Requests are sequential and bounded by page count, response size, and timeout. Keep limits modest and follow source terms and robots guidance.
  • The Actor uses HTTPS requests and honors existing runtime HTTP/HTTPS proxy settings. It does not authenticate to private registries, follow redirects, bypass access restrictions, or solve CAPTCHAs.
  • Each source must pass its public URL and robots policy checks. An inaccessible robots policy stops collection even if the source is described as public. With no saved records, the run fails; check the run log and RUN_HEALTH for the source response.
  • Feed and webhook URLs must be public and cannot include URL credentials or credential-like query parameters.
  • Pennsylvania's optional PDF enrichment matches rows to existing ArcGIS records; it does not add PDF-only locations or infer formal permit details the document does not publish. Phone numbers, printed dates, and websites depend on an unambiguous match. Website text separated from its table row is omitted, and unavailable optional details remain absent. If the document request or parser fails, valid base records are still saved with limited-results status.

Cost, support, and responsible use

This Actor has no fixed price in its code. Apify platform usage is billed according to your account plan and current compute settings; review your Apify usage page for current rates. Sequential requests and smaller result limits can reduce run time.

For help, use the Actor's Issues tab and include the run ID and a copy of the input. Use the API tab for programmatic runs and dataset access.

This Actor is not affiliated with Pennsylvania or any registry provider. It collects public business records, which may still include personal or commercial information. Use the data lawfully, follow source terms and applicable privacy rules, and consult legal counsel if you are unsure whether your use is permitted.