1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "outputMode": "address_evidence",
12 "addresses": [
13 "1100 Briercliff Drive, Orlando, FL"
14 ],
15 "marketSources": [
16 {
17 "source_id": "customer-pms-export",
18 "publisher": "Customer-authorized property management system",
19 "source_url": "https://example.com/customer-export",
20 "access_method": "customer_authorized",
21 "observed_at": "2026-08-25T12:00:00.000Z",
22 "rights": {
23 "commercial_use": "allowed",
24 "redistribution": "allowed",
25 "basis": "Customer authorized CivicDataForge to process and return this portfolio data.",
26 "evidence_url": "https://example.com/authorization",
27 "reviewed_at": "2026-08-25T12:00:00.000Z",
28 "asserted_by": "customer"
29 },
30 "observations": [
31 {
32 "reference_id": "property-1",
33 "platform": "customer-pms",
34 "listing_id": "listing-1",
35 "claimed_permit_id": "STR-EXAMPLE",
36 "address": "1100 Briercliff Drive, Orlando, FL",
37 "address_precision": "exact",
38 "observed_at": "2026-08-25T12:00:00.000Z"
39 }
40 ]
41 }
42 ],
43 "cities": [
44 "orlando"
45 ],
46 "status": "all",
47 "maxRecordsPerCity": 25
48};
49
50
51const run = await client.actor("civicdataforge/str-permit-registry").call(input);
52
53
54console.log('Results from dataset');
55console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
56const { items } = await client.dataset(run.defaultDatasetId).listItems();
57items.forEach((item) => {
58 console.dir(item);
59});
60
61