From ee8334cd9879e9d4c4343e70f2769b7f8d6d36da Mon Sep 17 00:00:00 2001 From: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:08:23 -0600 Subject: [PATCH] feat(wave3-b3): add 30 trade, tariff & regulator adapters (#271-#300) Implement Wave 3 / Round 2 Batch B3 (#271-#300, 30 adapters) across Categories J, K1, and K2: - Category J (Trade, Tariff & Sanctions, #271-#278): usitc-hts, cbp-cross-rulings, census-foreign-trade, ustr-301, trade-gov-csl, ofac-sdn, bis-entity-list, import-alerts-aphis-fda - Category K1 (Labor, Telecom, Energy & Financial Enforcement, #279-#288): dol-enforcement, osha-establishment, nlrb-cases, eeoc-litigation, ftc-cases, fcc-ecfs, fcc-uls, ferc-nrc-dockets, financial-regulators-enforcement, oversight-gov - Category K2 (Legislative Reports, Health Transparency, Postal & SBA, #289-#300): gao-reports, cbo, everycrsreport, gov-wordpress-newsrooms, gsa-site-scanning, va-lighthouse-facilities, healthcare-gov-marketplace, cms-price-transparency, medicaid-nadac, usps-addresses, carrier-tracking-official, sba-dsbs-loans Compiled 386 manifests in internal/extract/manifests/compiled.json with Go-first official API provider specs, 0 staticcheck warnings, and verified Batch B3 gates. Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> --- cmd/edgefetch-wasm/reactor.go | 68 +- hub/scripts/compile-manifests.mjs | 32 + hub/scripts/run-tests.mjs | 1 + hub/src/extractors/declarative.ts | 65 +- hub/src/extractors/types.ts | 2 + hub/src/otel.ts | 6 +- hub/src/search-index.ts | 1 + .../fixtures/adapters/bis-entity-list.json | 35 + .../adapters/carrier-tracking-official.json | 36 + hub/test/fixtures/adapters/cbo.json | 36 + .../fixtures/adapters/cbp-cross-rulings.json | 44 + .../adapters/census-foreign-trade.json | 40 + .../adapters/cms-price-transparency.json | 36 + hub/test/fixtures/adapters/dkan.json | 6 +- .../fixtures/adapters/dol-enforcement.json | 42 + .../fixtures/adapters/eeoc-litigation.json | 35 + .../fixtures/adapters/everycrsreport.json | 36 + hub/test/fixtures/adapters/fcc-ecfs.json | 42 + hub/test/fixtures/adapters/fcc-uls.json | 37 + .../fixtures/adapters/ferc-nrc-dockets.json | 40 + .../financial-regulators-enforcement.json | 35 + hub/test/fixtures/adapters/ftc-cases.json | 36 + hub/test/fixtures/adapters/gao-reports.json | 35 + .../adapters/gov-wordpress-newsrooms.json | 36 + .../fixtures/adapters/gsa-site-scanning.json | 36 + .../adapters/healthcare-gov-marketplace.json | 36 + .../adapters/import-alerts-aphis-fda.json | 36 + .../fixtures/adapters/medicaid-nadac.json | 36 + hub/test/fixtures/adapters/nlrb-cases.json | 36 + hub/test/fixtures/adapters/ofac-sdn.json | 44 + .../fixtures/adapters/osha-establishment.json | 40 + hub/test/fixtures/adapters/oversight-gov.json | 41 + .../fixtures/adapters/sba-dsbs-loans.json | 36 + hub/test/fixtures/adapters/trade-gov-csl.json | 43 + hub/test/fixtures/adapters/usitc-hts.json | 43 + .../fixtures/adapters/usps-addresses.json | 36 + hub/test/fixtures/adapters/ustr-301.json | 35 + .../adapters/va-lighthouse-facilities.json | 36 + hub/test/wave3-b1-cat-a.ts | 8 +- hub/test/wave3-b3-trade-regulators.test.ts | 1313 +++++++ internal/classify/content_state.go | 42 +- .../classify/content_state_soft404_test.go | 49 + internal/extract/declarative.go | 342 +- internal/extract/declarative_html.go | 148 +- internal/extract/html_doc_extract.go | 69 +- .../extract/manifests/bis-entity-list.yaml | 24 + .../manifests/carrier-tracking-official.yaml | 73 + internal/extract/manifests/cbo.yaml | 31 + .../extract/manifests/cbp-cross-rulings.yaml | 33 + .../manifests/census-foreign-trade.yaml | 20 + .../manifests/cms-price-transparency.yaml | 88 + internal/extract/manifests/compiled.json | 2 +- internal/extract/manifests/dkan.yaml | 7 +- .../extract/manifests/dol-enforcement.yaml | 41 + .../extract/manifests/eeoc-litigation.yaml | 19 + .../extract/manifests/everycrsreport.yaml | 69 + internal/extract/manifests/fcc-ecfs.yaml | 36 + internal/extract/manifests/fcc-uls.yaml | 76 + .../extract/manifests/ferc-nrc-dockets.yaml | 25 + .../financial-regulators-enforcement.yaml | 76 + internal/extract/manifests/ftc-cases.yaml | 22 + internal/extract/manifests/gao-reports.yaml | 32 + .../manifests/gov-wordpress-newsrooms.yaml | 64 + .../extract/manifests/gsa-site-scanning.yaml | 35 + .../manifests/healthcare-gov-marketplace.yaml | 58 + .../manifests/import-alerts-aphis-fda.yaml | 33 + .../extract/manifests/medicaid-nadac.yaml | 56 + internal/extract/manifests/nlrb-cases.yaml | 18 + internal/extract/manifests/ofac-sdn.yaml | 39 + .../extract/manifests/osha-establishment.yaml | 20 + internal/extract/manifests/oversight-gov.yaml | 17 + .../extract/manifests/sba-dsbs-loans.yaml | 45 + internal/extract/manifests/trade-gov-csl.yaml | 38 + internal/extract/manifests/usitc-hts.yaml | 85 + .../extract/manifests/usps-addresses.yaml | 40 + internal/extract/manifests/ustr-301.yaml | 36 + .../manifests/va-lighthouse-facilities.yaml | 39 + internal/extract/official_api_providers.go | 103 +- internal/extract/round2_platforms_test.go | 10 +- internal/extract/wave2c_econ.go | 42 +- internal/extract/wave3_gov_test.go | 4 +- internal/extract/wave3_regulators.go | 2347 ++++++++++++ internal/extract/wave3_regulators_health.go | 3237 +++++++++++++++++ .../extract/wave3_regulators_health_test.go | 501 +++ internal/extract/wave3_regulators_test.go | 411 +++ internal/extract/wave3_trade.go | 2222 +++++++++++ internal/extract/wave3_trade_test.go | 403 ++ 87 files changed, 13636 insertions(+), 228 deletions(-) create mode 100644 hub/test/fixtures/adapters/bis-entity-list.json create mode 100644 hub/test/fixtures/adapters/carrier-tracking-official.json create mode 100644 hub/test/fixtures/adapters/cbo.json create mode 100644 hub/test/fixtures/adapters/cbp-cross-rulings.json create mode 100644 hub/test/fixtures/adapters/census-foreign-trade.json create mode 100644 hub/test/fixtures/adapters/cms-price-transparency.json create mode 100644 hub/test/fixtures/adapters/dol-enforcement.json create mode 100644 hub/test/fixtures/adapters/eeoc-litigation.json create mode 100644 hub/test/fixtures/adapters/everycrsreport.json create mode 100644 hub/test/fixtures/adapters/fcc-ecfs.json create mode 100644 hub/test/fixtures/adapters/fcc-uls.json create mode 100644 hub/test/fixtures/adapters/ferc-nrc-dockets.json create mode 100644 hub/test/fixtures/adapters/financial-regulators-enforcement.json create mode 100644 hub/test/fixtures/adapters/ftc-cases.json create mode 100644 hub/test/fixtures/adapters/gao-reports.json create mode 100644 hub/test/fixtures/adapters/gov-wordpress-newsrooms.json create mode 100644 hub/test/fixtures/adapters/gsa-site-scanning.json create mode 100644 hub/test/fixtures/adapters/healthcare-gov-marketplace.json create mode 100644 hub/test/fixtures/adapters/import-alerts-aphis-fda.json create mode 100644 hub/test/fixtures/adapters/medicaid-nadac.json create mode 100644 hub/test/fixtures/adapters/nlrb-cases.json create mode 100644 hub/test/fixtures/adapters/ofac-sdn.json create mode 100644 hub/test/fixtures/adapters/osha-establishment.json create mode 100644 hub/test/fixtures/adapters/oversight-gov.json create mode 100644 hub/test/fixtures/adapters/sba-dsbs-loans.json create mode 100644 hub/test/fixtures/adapters/trade-gov-csl.json create mode 100644 hub/test/fixtures/adapters/usitc-hts.json create mode 100644 hub/test/fixtures/adapters/usps-addresses.json create mode 100644 hub/test/fixtures/adapters/ustr-301.json create mode 100644 hub/test/fixtures/adapters/va-lighthouse-facilities.json create mode 100644 hub/test/wave3-b3-trade-regulators.test.ts create mode 100644 internal/extract/manifests/bis-entity-list.yaml create mode 100644 internal/extract/manifests/carrier-tracking-official.yaml create mode 100644 internal/extract/manifests/cbo.yaml create mode 100644 internal/extract/manifests/cbp-cross-rulings.yaml create mode 100644 internal/extract/manifests/census-foreign-trade.yaml create mode 100644 internal/extract/manifests/cms-price-transparency.yaml create mode 100644 internal/extract/manifests/dol-enforcement.yaml create mode 100644 internal/extract/manifests/eeoc-litigation.yaml create mode 100644 internal/extract/manifests/everycrsreport.yaml create mode 100644 internal/extract/manifests/fcc-ecfs.yaml create mode 100644 internal/extract/manifests/fcc-uls.yaml create mode 100644 internal/extract/manifests/ferc-nrc-dockets.yaml create mode 100644 internal/extract/manifests/financial-regulators-enforcement.yaml create mode 100644 internal/extract/manifests/ftc-cases.yaml create mode 100644 internal/extract/manifests/gao-reports.yaml create mode 100644 internal/extract/manifests/gov-wordpress-newsrooms.yaml create mode 100644 internal/extract/manifests/gsa-site-scanning.yaml create mode 100644 internal/extract/manifests/healthcare-gov-marketplace.yaml create mode 100644 internal/extract/manifests/import-alerts-aphis-fda.yaml create mode 100644 internal/extract/manifests/medicaid-nadac.yaml create mode 100644 internal/extract/manifests/nlrb-cases.yaml create mode 100644 internal/extract/manifests/ofac-sdn.yaml create mode 100644 internal/extract/manifests/osha-establishment.yaml create mode 100644 internal/extract/manifests/oversight-gov.yaml create mode 100644 internal/extract/manifests/sba-dsbs-loans.yaml create mode 100644 internal/extract/manifests/trade-gov-csl.yaml create mode 100644 internal/extract/manifests/usitc-hts.yaml create mode 100644 internal/extract/manifests/usps-addresses.yaml create mode 100644 internal/extract/manifests/ustr-301.yaml create mode 100644 internal/extract/manifests/va-lighthouse-facilities.yaml create mode 100644 internal/extract/wave3_regulators.go create mode 100644 internal/extract/wave3_regulators_health.go create mode 100644 internal/extract/wave3_regulators_health_test.go create mode 100644 internal/extract/wave3_regulators_test.go create mode 100644 internal/extract/wave3_trade.go create mode 100644 internal/extract/wave3_trade_test.go diff --git a/cmd/edgefetch-wasm/reactor.go b/cmd/edgefetch-wasm/reactor.go index 230a402..31cd0d7 100644 --- a/cmd/edgefetch-wasm/reactor.go +++ b/cmd/edgefetch-wasm/reactor.go @@ -1170,22 +1170,24 @@ func dispatchWasmRPC(rawReq []byte) (any, error) { return map[string]any{"matched": false}, nil } out := map[string]any{ - "matched": true, - "id": m.ID, - "adapterId": m.AdapterID, - "fetchUrl": m.FetchURL, - "kind": string(m.Kind), - "accept": m.Accept, - "rawAccept": m.RawAccept(), - "maxBytes": m.EffectiveMaxBytes(), - "commerceMode": m.CommerceMode(), - "requiresPageKeyOptIn": m.RequiresPageKeyOptIn, - "authMode": m.AuthMode, - "userAgentProfile": m.UserAgentProfile, - "minIntervalMs": m.MinIntervalMs, - "maxCacheTtlMs": m.MaxCacheTtlMs, - "maxConcurrent": m.MaxConcurrent, - "strictRobots": m.StrictRobots, + "matched": true, + "id": m.ID, + "adapterId": m.AdapterID, + "fetchUrl": m.FetchURL, + "kind": string(m.Kind), + "accept": m.Accept, + "rawAccept": m.RawAccept(), + "maxBytes": m.EffectiveMaxBytes(), + "commerceMode": m.CommerceMode(), + "requiresPageKeyOptIn": m.RequiresPageKeyOptIn, + "authMode": m.AuthMode, + "userAgentProfile": m.UserAgentProfile, + "minIntervalMs": m.MinIntervalMs, + "maxCacheTtlMs": m.MaxCacheTtlMs, + "maxConcurrent": m.MaxConcurrent, + "strictRobots": m.StrictRobots, + "allowCrossOriginRedirects": m.AllowCrossOriginRedirects(), + "allowTruncatedStream": m.AllowTruncatedStream(), } if m.FallbackFetchURL != "" { out["fallbackFetchUrl"] = m.FallbackFetchURL @@ -1341,22 +1343,24 @@ func dispatchWasmRPC(rawReq []byte) (any, error) { return map[string]any{"matched": false}, nil } out := map[string]any{ - "matched": true, - "id": m.ID, - "adapterId": m.AdapterID, - "fetchUrl": m.FetchURL, - "kind": string(m.Kind), - "accept": m.Accept, - "rawAccept": m.RawAccept(), - "maxBytes": m.EffectiveMaxBytes(), - "commerceMode": m.CommerceMode(), - "requiresPageKeyOptIn": m.RequiresPageKeyOptIn, - "authMode": m.AuthMode, - "userAgentProfile": m.UserAgentProfile, - "minIntervalMs": m.MinIntervalMs, - "maxCacheTtlMs": m.MaxCacheTtlMs, - "maxConcurrent": m.MaxConcurrent, - "strictRobots": m.StrictRobots, + "matched": true, + "id": m.ID, + "adapterId": m.AdapterID, + "fetchUrl": m.FetchURL, + "kind": string(m.Kind), + "accept": m.Accept, + "rawAccept": m.RawAccept(), + "maxBytes": m.EffectiveMaxBytes(), + "commerceMode": m.CommerceMode(), + "requiresPageKeyOptIn": m.RequiresPageKeyOptIn, + "authMode": m.AuthMode, + "userAgentProfile": m.UserAgentProfile, + "minIntervalMs": m.MinIntervalMs, + "maxCacheTtlMs": m.MaxCacheTtlMs, + "maxConcurrent": m.MaxConcurrent, + "strictRobots": m.StrictRobots, + "allowCrossOriginRedirects": m.AllowCrossOriginRedirects(), + "allowTruncatedStream": m.AllowTruncatedStream(), } if m.FallbackFetchURL != "" { out["fallbackFetchUrl"] = m.FallbackFetchURL diff --git a/hub/scripts/compile-manifests.mjs b/hub/scripts/compile-manifests.mjs index eac6422..2bc5492 100644 --- a/hub/scripts/compile-manifests.mjs +++ b/hub/scripts/compile-manifests.mjs @@ -315,6 +315,38 @@ export const VALID_HTML_MODES = new Set([ 'branded_tracking_pack_html', 'gorgias_reamaze_html', 'klaviyo_attentive_forms_html', + // Wave 3 B3 Category J (Trade, Tariffs & Sanctions #271-#278) + 'usitc_hts_html', + 'cbp_cross_html', + 'census_foreign_trade_html', + 'ustr_301_html', + 'trade_gov_csl_html', + 'ofac_html', + 'bis_entity_list_html', + 'import_alerts_fda_aphis_html', + // Wave 3 B3 Category K1 (Regulators & Enforcement #279-#288) + 'dol_enforcement_html', + 'osha_establishment_html', + 'nlrb_cases_html', + 'eeoc_litigation_html', + 'ftc_cases_html', + 'fcc_ecfs_html', + 'fcc_uls_html', + 'ferc_nrc_dockets_html', + 'financial_regulators_html', + 'oversight_gov_html', + // Wave 3 B3 Category K2 (Reports, Health, Price Transparency & Tracking #289-#300) + 'gao_reports_html', + 'cbo_html', + 'everycrs_html', + 'gov_wp_newsroom_html', + 'gsa_site_scanning_html', + 'va_facilities_html', + 'healthcare_gov_html', + 'cms_price_transparency_html', + 'medicaid_nadac_html', + 'usps_docs_html', + 'sba_dsbs_loans_html', ]); const pslDatPath = join(manifestsDir, 'public_suffix_list.dat'); diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 3226cb5..3afa19b 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -104,6 +104,7 @@ const suiteSpecs = [ ['test/wave2d-sports-misc.test.ts', 'wave2d-sports-misc.test.mjs'], ['test/wave3-b1-gov-edu-jobs.test.ts', 'wave3-b1-gov-edu-jobs.test.mjs'], ['test/wave3-b2-schema-community-store.test.ts', 'wave3-b2-schema-community-store.test.mjs'], + ['test/wave3-b3-trade-regulators.test.ts', 'wave3-b3-trade-regulators.test.mjs'], ['test/mcp-part2-wave2e.test.ts', 'mcp-part2-wave2e.test.mjs'], ['test/wave2-security-fixes.test.ts', 'wave2-security-fixes.test.mjs'], ['test/hub-secrets-policy.test.ts', 'hub-secrets-policy.test.mjs'], diff --git a/hub/src/extractors/declarative.ts b/hub/src/extractors/declarative.ts index 219ce5f..be21d42 100644 --- a/hub/src/extractors/declarative.ts +++ b/hub/src/extractors/declarative.ts @@ -599,7 +599,23 @@ export type DeclarativeJsonMode = | 'fediverse_pack_json' | 'q4_ir_json' | 'shopify_filter_apps_json' - | 'rebuy_searchanise_json'; + | 'rebuy_searchanise_json' + | 'usitc_hts_json' + | 'cbp_cross_json' + | 'trade_gov_csl_json' + | 'dol_enforcement_json' + | 'fcc_ecfs_json' + | 'fcc_uls_json' + | 'everycrs_json' + | 'gov_wp_posts_json' + | 'gsa_site_scanning_json' + | 'va_facilities_json' + | 'healthcare_marketplace_json' + | 'cms_mrf_json' + | 'medicaid_nadac_json' + | 'usps_addresses_json' + | 'carrier_tracking_json' + | 'sba_dkan_json'; export interface DeclarativeExtractSpec { commerceMode?: DeclarativeCommerceMode; @@ -632,7 +648,14 @@ export interface DeclarativeExtractSpec { | 'public_share_csv' | 'boarddocs_text' | 'ir_portal_rss_xml' - | 'company_newsroom_rss_xml'; + | 'company_newsroom_rss_xml' + | 'ofac_sdn_xml' + | 'ustr_301_rss_xml' + | 'gao_rss_xml' + | 'cbo_rss_xml' + | 'everycrs_csv' + | 'cms_hpt_txt' + | 'cms_mrf_csv'; pathParam?: string; codeByPath?: DeclarativeCodeByPathSpec; xml?: DeclarativeXmlSpec; @@ -968,7 +991,36 @@ export type DeclarativeHtmlMode = | 'aftership_tracking_html' | 'branded_tracking_pack_html' | 'gorgias_reamaze_html' - | 'klaviyo_attentive_forms_html'; + | 'klaviyo_attentive_forms_html' + | 'usitc_hts_html' + | 'cbp_cross_html' + | 'census_foreign_trade_html' + | 'ustr_301_html' + | 'trade_gov_csl_html' + | 'ofac_html' + | 'bis_entity_list_html' + | 'import_alerts_fda_aphis_html' + | 'dol_enforcement_html' + | 'osha_establishment_html' + | 'nlrb_cases_html' + | 'eeoc_litigation_html' + | 'ftc_cases_html' + | 'fcc_ecfs_html' + | 'fcc_uls_html' + | 'ferc_nrc_dockets_html' + | 'financial_regulators_html' + | 'oversight_gov_html' + | 'gao_reports_html' + | 'cbo_html' + | 'everycrs_html' + | 'gov_wp_newsroom_html' + | 'gsa_site_scanning_html' + | 'va_facilities_html' + | 'healthcare_gov_html' + | 'cms_price_transparency_html' + | 'medicaid_nadac_html' + | 'usps_docs_html' + | 'sba_dsbs_loans_html'; export interface DeclarativeHtmlRouteSpec { id?: string; @@ -1215,6 +1267,8 @@ interface ResolvedTwinWasmPayload { maxCacheTtlMs?: number; maxConcurrent?: number; strictRobots?: boolean; + allowCrossOriginRedirects?: boolean; + allowTruncatedStream?: boolean; } function buildTwinFromResolvedWasm( @@ -1231,8 +1285,7 @@ function buildTwinFromResolvedWasm( ...(resolved.fallbackFetchUrl ? { fallbackFetchUrl: resolved.fallbackFetchUrl } : {}), kind: resolved.kind, accept: - resolved.rawAccept || - resolved.accept || + (resolved.kind === 'text' ? resolved.accept || resolved.rawAccept : resolved.rawAccept || resolved.accept) || (resolved.kind === 'json' ? 'application/json' : 'text/plain'), ...(resolved.method ? { method: resolved.method } : {}), ...(resolved.requestBody ? { requestBody: resolved.requestBody } : {}), @@ -1257,6 +1310,8 @@ function buildTwinFromResolvedWasm( ? { maxConcurrent: resolved.maxConcurrent } : {}), ...(resolved.strictRobots ? { strictRobots: true } : {}), + ...(resolved.allowCrossOriginRedirects ? { allowCrossOriginRedirects: true } : {}), + ...(resolved.allowTruncatedStream ? { allowTruncatedStream: true } : {}), formatTwin: (rawBody: string, originalUrl: string, htmlToMd: HtmlFragmentConverter) => { if (resolved.commerceMode) { return formatCommerceTwinDoc( diff --git a/hub/src/extractors/types.ts b/hub/src/extractors/types.ts index c616e5a..c603cb2 100644 --- a/hub/src/extractors/types.ts +++ b/hub/src/extractors/types.ts @@ -131,6 +131,8 @@ export interface SiteExtractorTwin { maxCacheTtlMs?: number; maxConcurrent?: number; strictRobots?: boolean; + allowCrossOriginRedirects?: boolean; + allowTruncatedStream?: boolean; formatTwin: (rawBody: string, originalUrl: string, htmlToMd: HtmlFragmentConverter) => TwinFormattedDoc | null; } diff --git a/hub/src/otel.ts b/hub/src/otel.ts index 63fbbbc..71e443d 100644 --- a/hub/src/otel.ts +++ b/hub/src/otel.ts @@ -384,7 +384,7 @@ export function buildOtlpTracePayload(params: { } const SENSITIVE_ATTR_KEY_RE = - /(?:token|secret|password|authorization|cookie|api[_.-]?key|web[_.-]?key|registration[_.-]?key|passkey|auth[_.-]?key|credential|private[_.-]?key|bearer|csrf|sealed|verifier|session[_.-]?id)/i; + /(?:token|secret|password|authorization|cookie|api[_.-]?key|web[_.-]?key|registration[_.-]?key|subscription[_.-]?key|passkey|auth[_.-]?key|credential|private[_.-]?key|bearer|csrf|sealed|verifier|session[_.-]?id)/i; const SENSITIVE_CASE_SENSITIVE_ATTR_KEY_RE = /(?:^|[._-])UserID$/; const URL_ATTR_KEY_RE = /^(?:url\.full|http\.url|url|target\.url|origin\.url)$/i; @@ -408,7 +408,7 @@ function scrubFreeTextUrlsAndSecrets(raw: string): string { .replace(/\bBasic(?:[ \t]+|[ \t]*:[ \t]*)\S+/gi, 'Basic [redacted]') .replace(/\b(?:efc|efa|efr)_[A-Za-z0-9_-]{8,}\b/g, '[redacted]') .replace( - /(\b[a-z0-9_.-]{0,32}(?:api[_.-]?key|web[_.-]?key|registration[_.-]?key|authorization[_.-]?key|passkey|auth[_.-]?key|access[_.-]?token|refresh[_.-]?token|client[_.-]?secret|token|secret|password|passwd|pwd|signature|sig|code)["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/gi, + /(\b[a-z0-9_.-]{0,32}(?:api[_.-]?key|web[_.-]?key|registration[_.-]?key|authorization[_.-]?key|subscription[_.-]?key|passkey|auth[_.-]?key|access[_.-]?token|refresh[_.-]?token|client[_.-]?secret|token|secret|password|passwd|pwd|signature|sig|code)["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/gi, '$1[redacted]', ) .replace(/(\bUserID["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/g, '$1[redacted]'); @@ -456,7 +456,7 @@ export function sanitizeUrlForSpan(rawUrl: string): string { .replace(/:\/\/[^/?#\s]+@/g, '://') .replace(/[?#].*$/, '') .replace( - /(\b[a-z0-9_.-]{0,32}(?:api[_.-]?key|web[_.-]?key|registration[_.-]?key|authorization[_.-]?key|passkey|auth[_.-]?key|access[_.-]?token|refresh[_.-]?token|client[_.-]?secret|token|secret|password|passwd|pwd|signature|sig|code)["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/gi, + /(\b[a-z0-9_.-]{0,32}(?:api[_.-]?key|web[_.-]?key|registration[_.-]?key|authorization[_.-]?key|subscription[_.-]?key|passkey|auth[_.-]?key|access[_.-]?token|refresh[_.-]?token|client[_.-]?secret|token|secret|password|passwd|pwd|signature|sig|code)["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/gi, '$1[redacted]', ) .replace(/(\bUserID["']?[ \t]*(?:[:=]|%3[Dd])[ \t]*["']?)([^\s&"'`,;)\]}]+)/g, '$1[redacted]') diff --git a/hub/src/search-index.ts b/hub/src/search-index.ts index ffee6f2..5442276 100644 --- a/hub/src/search-index.ts +++ b/hub/src/search-index.ts @@ -2547,6 +2547,7 @@ export async function executeExtractCall(params: { finalUrl: item.url, status: typeof r.status === 'number' ? r.status : 200, cached: false, + extractorId: twinSpec.id, contentState: 'soft_404', markdown: '', fetchCompletedAt: itemFetchCompletedAt, diff --git a/hub/test/fixtures/adapters/bis-entity-list.json b/hub/test/fixtures/adapters/bis-entity-list.json new file mode 100644 index 0000000..0d54cad --- /dev/null +++ b/hub/test/fixtures/adapters/bis-entity-list.json @@ -0,0 +1,35 @@ +{ + "adapterId": "bis-entity-list", + "mode": "html", + "inputUrl": "https://www.bis.gov/regulations/ear/744", + "mockPayload": "EAR Part 744 | Bureau of Industry and Security

Export Administration Regulations Part 744 (End-User & Entity List)

Part 744 of the Export Administration Regulations establishes end-use and end-user based controls, including the BIS Entity List in Supplement No. 4 to Part 744.

Commerce Control List (Part 774)
", + "expectTitleIncludes": "Export Administration Regulations Part 744", + "expectMarkdownIncludes": [ + "Part 744", + "Entity List", + "Supplement No. 4" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Bureau of Industry and Security

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.bis.gov/error", + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

BIS portal is down for scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-nextjs-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/carrier-tracking-official.json b/hub/test/fixtures/adapters/carrier-tracking-official.json new file mode 100644 index 0000000..130f7ef --- /dev/null +++ b/hub/test/fixtures/adapters/carrier-tracking-official.json @@ -0,0 +1,36 @@ +{ + "adapterId": "carrier-tracking-official", + "mode": "twin", + "inputUrl": "https://apis.usps.com/tracking/v3/tracking/9400111899223344556677", + "expectedFetchUrl": "https://apis.usps.com/tracking/v3/tracking/9400111899223344556677", + "mockPayload": "{\"trackingNumber\":\"9400111899223344556677\",\"statusCategory\":\"Delivered\",\"status\":\"Delivered, In/At Mailbox\",\"statusSummary\":\"Your item was delivered in or at the mailbox at 1:14 pm on November 26, 2026 in WASHINGTON, DC 20260.\",\"mailClass\":\"USPS Ground Advantage\",\"expectedDeliveryDate\":\"2026-11-26\",\"trackingEvents\":[{\"eventType\":\"Delivered, In/At Mailbox\",\"eventTimestamp\":\"2026-11-26T13:14:00-05:00\",\"eventCity\":\"WASHINGTON\",\"eventState\":\"DC\",\"eventZIP\":\"20260\"}]}", + "expectTitleIncludes": "USPS Tracking: 9400111899223344556677", + "expectMarkdownIncludes": [ + "9400111899223344556677", + "Delivered, In/At Mailbox", + "WASHINGTON, DC, 20260" + ], + "negativeCases": [ + { + "name": "http-401-invalid-token", + "status": 401, + "payload": "{\"error\":{\"code\":\"401\",\"message\":\"Missing or malformed access token.\",\"errors\":[{\"title\":\"invalid_token\"}]}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://apis.usps.com/error", + "payload": "404 Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Service Unavailable

Scheduled maintenance.

" + }, + { + "name": "tracking-not-found", + "status": 404, + "payload": "{\"error\":{\"code\":\"404\",\"message\":\"Tracking number not found\"}}" + } + ] +} diff --git a/hub/test/fixtures/adapters/cbo.json b/hub/test/fixtures/adapters/cbo.json new file mode 100644 index 0000000..e5758ca --- /dev/null +++ b/hub/test/fixtures/adapters/cbo.json @@ -0,0 +1,36 @@ +{ + "adapterId": "cbo", + "mode": "twin", + "inputUrl": "https://www.cbo.gov/publications/all/rss.xml", + "expectedFetchUrl": "https://www.cbo.gov/publications/all/rss.xml", + "mockPayload": "CBO All Publicationshttps://www.cbo.gov/publicationsCost Estimate for H.R. 4120, Infrastructure Modernization Acthttps://www.cbo.gov/publication/62899Wed, 25 Nov 2026 14:00:00 +0000CBO estimates enacting H.R. 4120 would increase direct spending by $1.4 billion over 2027-2036.", + "expectTitleIncludes": "CBO All Publications", + "expectMarkdownIncludes": [ + "Cost Estimate for H.R. 4120", + "https://www.cbo.gov/publication/62899", + "$1.4 billion" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.cbo.gov/error", + "payload": "Error

Error

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Service temporarily unavailable.

" + }, + { + "name": "datadome-challenge", + "status": 403, + "payload": "cbo.gov

Please enable JS and disable any ad blocker

" + } + ] +} diff --git a/hub/test/fixtures/adapters/cbp-cross-rulings.json b/hub/test/fixtures/adapters/cbp-cross-rulings.json new file mode 100644 index 0000000..4ad25bd --- /dev/null +++ b/hub/test/fixtures/adapters/cbp-cross-rulings.json @@ -0,0 +1,44 @@ +{ + "adapterId": "cbp-cross-rulings", + "mode": "twin", + "inputUrl": "https://rulings.cbp.gov/api/ruling/N328640", + "expectedFetchUrl": "https://rulings.cbp.gov/api/ruling/N328640", + "mockPayload": "{\"rulingNumber\":\"N328640\",\"rulingDate\":\"2022-10-18\",\"category\":\"Classification\",\"tariffs\":[\"8712.00.1500\",\"8714.99.8000\"],\"subject\":\"The tariff classification of bicycle frame assemblies from Taiwan\",\"fullText\":\"Dear Import Specialist: In your letter dated October 3, 2022, you requested a tariff classification ruling on aluminum bicycle frame assemblies classified under subheading 8712.00.1500, Harmonized Tariff Schedule of the United States (HTSUS).\"}", + "expectTitleIncludes": "N328640", + "expectMarkdownIncludes": [ + "N328640", + "8712.00.1500", + "2022-10-18", + "bicycle frame assemblies" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "\"Ruling with number 'N328640' was not found.\"" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://rulings.cbp.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This portal is temporarily unavailable for scheduled maintenance. Please check back shortly.

" + }, + { + "name": "security-params-missing-403", + "status": 403, + "inputUrl": "https://rulings.cbp.gov/api/search?term=bicycle", + "payload": "{\"message\":\"Security parameters are missing from this request context.\"}" + }, + { + "name": "empty-angular-app-root", + "status": 200, + "inputUrl": "https://rulings.cbp.gov/search?term=bicycle", + "payload": "Customs Rulings Online Search System (CROSS)" + } + ] +} diff --git a/hub/test/fixtures/adapters/census-foreign-trade.json b/hub/test/fixtures/adapters/census-foreign-trade.json new file mode 100644 index 0000000..78b5762 --- /dev/null +++ b/hub/test/fixtures/adapters/census-foreign-trade.json @@ -0,0 +1,40 @@ +{ + "adapterId": "census-foreign-trade", + "mode": "html", + "inputUrl": "https://usatradeonline.census.gov/", + "mockPayload": "USA Trade Online — U.S. Census Bureau International Trade Statistics

USA Trade Online International Trade Portal

Access monthly and annual U.S. Merchandise Trade statistics by Harmonized System (HS) code, NAICS, country, and customs district.

DatasetCoverageClassification
U.S. Imports of MerchandiseMonthly 1992-PresentHS / HTS / NAICS
U.S. Exports of MerchandiseMonthly 1992-PresentSchedule B / HS / NAICS
", + "expectTitleIncludes": "USA Trade Online International Trade Portal", + "expectMarkdownIncludes": [ + "Harmonized System", + "U.S. Imports of Merchandise", + "Schedule B" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

404 Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://usatradeonline.census.gov/error", + "payload": "Error

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This portal is undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "waf-request-rejected", + "status": 200, + "payload": "Request RejectedThe requested URL was rejected. Please consult with your administrator.

Your support ID is: 13979921161800255779" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/cms-price-transparency.json b/hub/test/fixtures/adapters/cms-price-transparency.json new file mode 100644 index 0000000..e02ffe4 --- /dev/null +++ b/hub/test/fixtures/adapters/cms-price-transparency.json @@ -0,0 +1,36 @@ +{ + "adapterId": "cms-price-transparency", + "mode": "twin", + "inputUrl": "https://stanfordhealthcare.org/cms-hpt.txt", + "expectedFetchUrl": "https://stanfordhealthcare.org/cms-hpt.txt", + "mockPayload": "location-name: Stanford Health Care\nsource-page-url: https://stanfordhealthcare.org/for-patients-visitors/pricing-transparency.html\nmrf-url: https://stanfordhealthcare.org/content/dam/SHC/patientsandvisitors/pricingtransparency/946174066_stanford-health-care_standardcharges.json\ncontact-name: Revenue Integrity\ncontact-email: pricetransparency@stanfordhealthcare.org\n", + "expectTitleIncludes": "Stanford Health Care", + "expectMarkdownIncludes": [ + "Stanford Health Care", + "946174066_stanford-health-care_standardcharges.json", + "pricetransparency@stanfordhealthcare.org" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://stanfordhealthcare.org/error", + "payload": "Error

Error

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Site under maintenance.

" + }, + { + "name": "akamai-access-denied", + "status": 403, + "payload": "Access Denied

Access Denied

Reference #18.errors.edgesuite.net

" + } + ] +} diff --git a/hub/test/fixtures/adapters/dkan.json b/hub/test/fixtures/adapters/dkan.json index ab65400..560f074 100644 --- a/hub/test/fixtures/adapters/dkan.json +++ b/hub/test/fixtures/adapters/dkan.json @@ -1,8 +1,8 @@ { "adapterId": "dkan", "mode": "twin", - "inputUrl": "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", - "expectedFetchUrl": "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", + "inputUrl": "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", + "expectedFetchUrl": "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", "mockPayload": "{\"results\":[{\"utilization_type\":\"FFSU\",\"state\":\"AK\",\"ndc\":\"00002010102\",\"labeler_code\":\"00002\",\"product_code\":\"0101\",\"package_size\":\"02\",\"year\":\"1991\",\"quarter\":\"4\",\"suppression_used\":\"true\",\"product_name\":\"AMMONIUM C\",\"units_reimbursed\":null,\"number_of_prescriptions\":null,\"total_amount_reimbursed\":null,\"medicaid_amount_reimbursed\":null,\"non_medicaid_amount_reimbursed\":null},{\"utilization_type\":\"FFSU\",\"state\":\"AK\",\"ndc\":\"00002026002\",\"labeler_code\":\"00002\",\"product_code\":\"0260\",\"package_size\":\"02\",\"year\":\"1991\",\"quarter\":\"4\",\"suppression_used\":\"true\",\"product_name\":\"DELTALIN \",\"units_reimbursed\":null,\"number_of_prescriptions\":null,\"total_amount_reimbursed\":null,\"medicaid_amount_reimbursed\":null,\"non_medicaid_amount_reimbursed\":null},{\"utilization_type\":\"FFSU\",\"state\":\"AK\",\"ndc\":\"00002032702\",\"labeler_code\":\"00002\",\"product_code\":\"0327\",\"package_size\":\"02\",\"year\":\"1991\",\"quarter\":\"4\",\"suppression_used\":\"true\",\"product_name\":\"V-CILLIN K\",\"units_reimbursed\":null,\"number_of_prescriptions\":null,\"total_amount_reimbursed\":null,\"medicaid_amount_reimbursed\":null,\"non_medicaid_amount_reimbursed\":null}],\"count\":2476814,\"schema\":{\"13d1f0b9-d8c1-5a73-92f7-fd249d8e4b2b\":{\"fields\":{\"utilization_type\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Utilization Type\"},\"state\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"State\"},\"ndc\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"NDC\"},\"labeler_code\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Labeler Code\"},\"product_code\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Product Code\"},\"package_size\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Package Size\"},\"year\":{\"type\":\"int\",\"mysql_type\":\"int\",\"description\":\"Year\"},\"quarter\":{\"type\":\"int\",\"mysql_type\":\"int\",\"description\":\"Quarter\"},\"suppression_used\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Suppression Used\"},\"product_name\":{\"type\":\"text\",\"mysql_type\":\"text\",\"description\":\"Product Name\"},\"units_reimbursed\":{\"type\":\"numeric\",\"precision\":\"14\",\"scale\":\"3\",\"mysql_type\":\"decimal\",\"description\":\"Units Reimbursed\"},\"number_of_prescriptions\":{\"type\":\"int\",\"mysql_type\":\"int\",\"description\":\"Number of Prescriptions\"},\"total_amount_reimbursed\":{\"type\":\"numeric\",\"precision\":\"14\",\"scale\":\"2\",\"mysql_type\":\"decimal\",\"description\":\"Total Amount Reimbursed\"},\"medicaid_amount_reimbursed\":{\"type\":\"numeric\",\"precision\":\"12\",\"scale\":\"2\",\"mysql_type\":\"decimal\",\"description\":\"Medicaid Amount Reimbursed\"},\"non_medicaid_amount_reimbursed\":{\"type\":\"numeric\",\"precision\":\"12\",\"scale\":\"2\",\"mysql_type\":\"decimal\",\"description\":\"Non Medicaid Amount Reimbursed\"}}}},\"query\":{\"limit\":3,\"resources\":[{\"id\":\"13d1f0b9-d8c1-5a73-92f7-fd249d8e4b2b\",\"alias\":\"t\"}],\"offset\":0,\"count\":true,\"results\":true,\"schema\":true,\"keys\":true,\"format\":\"json\",\"rowIds\":false,\"properties\":[\"utilization_type\",\"state\",\"ndc\",\"labeler_code\",\"product_code\",\"package_size\",\"year\",\"quarter\",\"suppression_used\",\"product_name\",\"units_reimbursed\",\"number_of_prescriptions\",\"total_amount_reimbursed\",\"medicaid_amount_reimbursed\",\"non_medicaid_amount_reimbursed\"]}}\n", "expectMarkdownIncludes": [ "2476814 total", @@ -18,7 +18,7 @@ { "name": "redirect-to-error", "status": 200, - "finalUrl": "https://data.medicaid.gov/error", + "finalUrl": "https://data.healthcare.gov/error", "payload": "404 Page Not Found

Page Not Found

" }, { diff --git a/hub/test/fixtures/adapters/dol-enforcement.json b/hub/test/fixtures/adapters/dol-enforcement.json new file mode 100644 index 0000000..b32c6ee --- /dev/null +++ b/hub/test/fixtures/adapters/dol-enforcement.json @@ -0,0 +1,42 @@ +{ + "adapterId": "dol-enforcement", + "mode": "twin", + "inputUrl": "https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2", + "expectedFetchUrl": "https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2", + "mockPayload": "{\"data\":[{\"case_id\":\"1984321\",\"trade_nm\":\"Acme Logistics Services\",\"legal_name\":\"Acme Logistics Services LLC\",\"city_nm\":\"Chicago\",\"st_cd\":\"IL\",\"naics_code_description\":\"General Freight Trucking, Local\",\"findings_start_date\":\"2024-01-15\",\"findings_end_date\":\"2025-11-30\",\"bw_atp_amt\":48250.5,\"ee_atp_amt\":19,\"cmp_assd_cnt\":3200,\"flsa_violtn_cnt\":4}]}", + "expectTitleIncludes": "DOL WHD Enforcement Records", + "expectMarkdownIncludes": [ + "1984321", + "Acme Logistics Services", + "Chicago, IL", + "48250.50" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"No http resource was found that matches the request URI.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://apiprod.dol.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Service Unavailable

DOL Open Data API is undergoing scheduled maintenance.

" + }, + { + "name": "empty-data-array", + "status": 200, + "payload": "{\"data\":[]}" + }, + { + "name": "missing-api-key", + "status": 401, + "payload": "{\"message\":\"Missing Authentication Token\"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/eeoc-litigation.json b/hub/test/fixtures/adapters/eeoc-litigation.json new file mode 100644 index 0000000..fcac398 --- /dev/null +++ b/hub/test/fixtures/adapters/eeoc-litigation.json @@ -0,0 +1,35 @@ +{ + "adapterId": "eeoc-litigation", + "mode": "html", + "inputUrl": "https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit", + "mockPayload": "Boss Man Tacos to Pay $42,000 in EEOC Sexual Harassment Suit | U.S. Equal Employment Opportunity Commission
Press Release 11-25-2026

Boss Man Tacos to Pay $42,000 in EEOC Sexual Harassment Suit

The U.S. Equal Employment Opportunity Commission announced that Boss Man Tacos will pay $42,000 and furnish significant equitable relief to settle a federal sexual harassment and retaliation lawsuit filed under Title VII of the Civil Rights Act.

More EEOC Litigation Releases

", + "expectTitleIncludes": "Boss Man Tacos to Pay $42,000 in EEOC Sexual Harassment Suit", + "expectMarkdownIncludes": [ + "EEOC", + "$42,000", + "11-25-2026" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | U.S. Equal Employment Opportunity Commission

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.eeoc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This website is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/everycrsreport.json b/hub/test/fixtures/adapters/everycrsreport.json new file mode 100644 index 0000000..a440a4e --- /dev/null +++ b/hub/test/fixtures/adapters/everycrsreport.json @@ -0,0 +1,36 @@ +{ + "adapterId": "everycrsreport", + "mode": "twin", + "inputUrl": "https://www.everycrsreport.com/reports/IN11532.html", + "expectedFetchUrl": "https://www.everycrsreport.com/reports/IN11532.json", + "mockPayload": "{\"id\":\"IN11532\",\"type\":\"CRS Insight\",\"typeId\":\"IN\",\"number\":\"IN11532\",\"active\":true,\"source\":\"EveryCRSReport\",\"versions\":[{\"date\":\"2026-10-14\",\"title\":\"Federal Grants and Cooperative Agreements: Overview\",\"summary\":\"Examines statutory authorities governing federal grants and cooperative agreements.\",\"sourceLink\":\"https://crsreports.congress.gov/product/pdf/IN/IN11532\",\"formats\":[{\"format\":\"PDF\",\"url\":\"https://www.everycrsreport.com/files/2026-10-14_IN11532.pdf\"},{\"format\":\"HTML\",\"url\":\"https://www.everycrsreport.com/reports/IN11532.html\"}]}]}", + "expectTitleIncludes": "Federal Grants and Cooperative Agreements", + "expectMarkdownIncludes": [ + "IN11532", + "CRS Insight", + "2026-10-14" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

404 Not Found


nginx
" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.everycrsreport.com/error", + "payload": "Error

Error

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Under maintenance.

" + }, + { + "name": "empty-json", + "status": 200, + "payload": "{}" + } + ] +} diff --git a/hub/test/fixtures/adapters/fcc-ecfs.json b/hub/test/fixtures/adapters/fcc-ecfs.json new file mode 100644 index 0000000..639f1af --- /dev/null +++ b/hub/test/fixtures/adapters/fcc-ecfs.json @@ -0,0 +1,42 @@ +{ + "adapterId": "fcc-ecfs", + "mode": "twin", + "inputUrl": "https://publicapi.fcc.gov/ecfs/filings?limit=2", + "expectedFetchUrl": "https://publicapi.fcc.gov/ecfs/filings?limit=2", + "mockPayload": "{\"filing\":[{\"id_submission\":\"26110085495\",\"submissiontype\":{\"short\":\"COMMENT\",\"description\":\"COMMENT\"},\"filingstatus\":{\"description\":\"DISSEMINATED\"},\"date_disseminated\":\"2026-11-27T22:00:27.688Z\",\"filers\":[{\"name\":\"Marguerite Leonard\"}],\"proceedings\":[{\"name\":\"26-252\",\"bureau_name\":\"Wireline Competition Bureau\",\"description_display\":\"Comments Invited On Verizon's Section 214 Application To Discontinue Domestic Legacy Voice Service\"}],\"documents\":[],\"text_data\":\"Comments on legacy voice service transition and rural reliability.\"}]}", + "expectTitleIncludes": "FCC ECFS Filings", + "expectMarkdownIncludes": [ + "26110085495", + "26-252", + "Marguerite Leonard", + "COMMENT" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"code\":\"NOT_FOUND\",\"message\":\"Resource not found\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://publicapi.fcc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Service Unavailable

ECFS API is undergoing maintenance.

" + }, + { + "name": "empty-filing-array", + "status": 200, + "payload": "{\"filing\":[]}" + }, + { + "name": "missing-api-key", + "status": 403, + "payload": "{\"error\":{\"code\":\"API_KEY_MISSING\",\"message\":\"No api_key was supplied.\"}}" + } + ] +} diff --git a/hub/test/fixtures/adapters/fcc-uls.json b/hub/test/fixtures/adapters/fcc-uls.json new file mode 100644 index 0000000..d2dc3f9 --- /dev/null +++ b/hub/test/fixtures/adapters/fcc-uls.json @@ -0,0 +1,37 @@ +{ + "adapterId": "fcc-uls", + "mode": "twin", + "inputUrl": "https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2", + "expectedFetchUrl": "https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2", + "mockPayload": "[{\"u_call_sign\":\"WQVF475\",\"u_license_name\":\"ELECTRONIC INNOVATIONS, INC\",\"u_frns\":\"24248098\",\"u_location_name\":\"Mosinee\",\"u_application_status\":\"Accepted\",\"u_status_date\":\"2017-04-07T00:00:00.000\",\"u_location_city\":\"WAUSAU\",\"u_location_state\":\"WI\"}]", + "expectTitleIncludes": "FCC ULS Licensing Records", + "expectMarkdownIncludes": [ + "WQVF475", + "ELECTRONIC INNOVATIONS, INC", + "24248098", + "WAUSAU, WI" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Not found\",\"error\":true}" + }, + { + "name": "redirect-to-error", + "status": 403, + "finalUrl": "https://www.fcc.gov/api/license-view/basicSearch/getLicenses", + "payload": "Access Denied

Access Denied

errors.edgesuite.net

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Service Unavailable

FCC Open Data portal maintenance.

" + }, + { + "name": "empty-socrata-array", + "status": 200, + "payload": "[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/ferc-nrc-dockets.json b/hub/test/fixtures/adapters/ferc-nrc-dockets.json new file mode 100644 index 0000000..3ddb770 --- /dev/null +++ b/hub/test/fixtures/adapters/ferc-nrc-dockets.json @@ -0,0 +1,40 @@ +{ + "adapterId": "ferc-nrc-dockets", + "mode": "html", + "inputUrl": "https://www.nrc.gov/documents-reports/adams-public-documents", + "mockPayload": "ADAMS Public Documents | U.S. NRC

ADAMS Public Documents

Access publicly available NRC regulatory, licensing, and inspection records including accession number ML26101A014.

AccessionDocketTitleDate
ML26101A01405000275Diablo Canyon Inspection Report 2026-0012026-04-11
", + "expectTitleIncludes": "ADAMS Public Documents", + "expectMarkdownIncludes": [ + "NRC ADAMS", + "ML26101A014", + "Diablo Canyon Inspection Report" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.nrc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This portal is undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "cloudflare-challenge-shell", + "status": 403, + "payload": "Just a moment..." + }, + { + "name": "unhydrated-angular-shell", + "status": 200, + "payload": "NRC ADAMS" + } + ] +} diff --git a/hub/test/fixtures/adapters/financial-regulators-enforcement.json b/hub/test/fixtures/adapters/financial-regulators-enforcement.json new file mode 100644 index 0000000..db11741 --- /dev/null +++ b/hub/test/fixtures/adapters/financial-regulators-enforcement.json @@ -0,0 +1,35 @@ +{ + "adapterId": "financial-regulators-enforcement", + "mode": "html", + "inputUrl": "https://www.cftc.gov/PressRoom/PressReleases/9331-26", + "mockPayload": "CFTC Staff Issues Advisory Concerning the Use of Crypto Assets to Satisfy Financial Resources Requirements | CFTC

Release Number 9331-26

CFTC Staff Issues Advisory Concerning the Use of Crypto Assets to Satisfy Financial Resources Requirements

November 23, 2026

WASHINGTON — The Commodity Futures Trading Commission's Division of Market Oversight and Division of Clearing and Risk today issued a staff advisory explaining how derivatives clearing organizations may use crypto assets to meet financial resources requirements under CFTC Regulations 37.1301, 38.1101(a) and 39.11(a)(2).

Staff Advisory 26-11 PDF
", + "expectTitleIncludes": "CFTC Staff Issues Advisory", + "expectMarkdownIncludes": [ + "Commodity Futures Trading Commission", + "9331-26", + "November 23, 2026" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found | OCC

404 Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.cftc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This website is undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ftc-cases.json b/hub/test/fixtures/adapters/ftc-cases.json new file mode 100644 index 0000000..b1f78f2 --- /dev/null +++ b/hub/test/fixtures/adapters/ftc-cases.json @@ -0,0 +1,36 @@ +{ + "adapterId": "ftc-cases", + "mode": "html", + "inputUrl": "https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors", + "mockPayload": "Banned Debt Collectors | Federal Trade Commission

Legal Library: Banned Debt Collectors

Matter Number: 192 3088
Last Updated:

The Federal Trade Commission maintains a public Legal Library directory of individuals and companies banned from the debt collection industry by federal court order.

Phantom Recovery LLC Enforcement Action
", + "expectTitleIncludes": "Banned Debt Collectors", + "expectMarkdownIncludes": [ + "Federal Trade Commission", + "192 3088", + "October 14, 2026", + "Phantom Recovery LLC" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Federal Trade Commission

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.ftc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This website is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/gao-reports.json b/hub/test/fixtures/adapters/gao-reports.json new file mode 100644 index 0000000..3d84366 --- /dev/null +++ b/hub/test/fixtures/adapters/gao-reports.json @@ -0,0 +1,35 @@ +{ + "adapterId": "gao-reports", + "mode": "html", + "inputUrl": "https://www.gao.gov/products/gao-27-108423", + "mockPayload": "GAO-27-108423, Federal Cybersecurity Governance | U.S. GAO

Federal Cybersecurity Governance: Agencies Need Stronger Risk Monitoring

Fast Facts

GAO-27-108423 | Published: Nov 18, 2026 | Publicly Released: Nov 18, 2026.

What GAO Found

Federal agencies have made progress implementing zero trust architecture, but gaps remain in continuous monitoring across legacy systems.

Full Report (PDF)
", + "expectTitleIncludes": "Federal Cybersecurity Governance", + "expectMarkdownIncludes": [ + "GAO-27-108423", + "What GAO Found", + "zero trust architecture" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page Not Found | U.S. GAO

404 - Page Not Found

We couldn't find that page.

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.gao.gov/error", + "payload": "Error | U.S. GAO

Application Error

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance | U.S. GAO

GAO.gov is temporarily unavailable due to scheduled maintenance.

" + }, + { + "name": "akamai-access-denied", + "status": 403, + "payload": "Access Denied

Access Denied

You don't have permission to access \"http://www.gao.gov/reports-testimonies\" on this server.

Reference #18.2345.errors.edgesuite.net

" + } + ] +} diff --git a/hub/test/fixtures/adapters/gov-wordpress-newsrooms.json b/hub/test/fixtures/adapters/gov-wordpress-newsrooms.json new file mode 100644 index 0000000..514ccf5 --- /dev/null +++ b/hub/test/fixtures/adapters/gov-wordpress-newsrooms.json @@ -0,0 +1,36 @@ +{ + "adapterId": "gov-wordpress-newsrooms", + "mode": "twin", + "inputUrl": "https://news.va.gov/wp-json/wp/v2/posts?per_page=1", + "expectedFetchUrl": "https://news.va.gov/wp-json/wp/v2/posts?per_page=1", + "mockPayload": "[{\"id\":151377,\"date\":\"2026-11-24T15:30:00\",\"slug\":\"memphis-veterans-received-help-claims-clinic\",\"link\":\"https://news.va.gov/151377/memphis-veterans-received-help-claims-clinic/\",\"title\":{\"rendered\":\"Memphis Veterans received help at VA claims clinic\"},\"excerpt\":{\"rendered\":\"

More than 400 Veterans received benefits assistance during the three-day clinic.

\"},\"content\":{\"rendered\":\"

More than 400 Veterans received benefits assistance during the three-day claims clinic in Memphis.

\"}}]", + "expectTitleIncludes": "Memphis Veterans received help", + "expectMarkdownIncludes": [ + "Veterans Affairs", + "151377", + "400 Veterans" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"code\":\"rest_no_route\",\"message\":\"No route was found matching the URL and request method.\",\"data\":{\"status\":404}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://news.va.gov/error", + "payload": "Error 403

Access Denied

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Briefly unavailable for scheduled maintenance.

" + }, + { + "name": "empty-array", + "status": 200, + "payload": "[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/gsa-site-scanning.json b/hub/test/fixtures/adapters/gsa-site-scanning.json new file mode 100644 index 0000000..2e1720b --- /dev/null +++ b/hub/test/fixtures/adapters/gsa-site-scanning.json @@ -0,0 +1,36 @@ +{ + "adapterId": "gsa-site-scanning", + "mode": "twin", + "inputUrl": "https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5", + "expectedFetchUrl": "https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5", + "mockPayload": "{\"items\":[{\"scan_date\":\"2026-11-27T22:36:29.025Z\",\"initial_base_domain\":\"usa.gov\",\"final_url\":\"https://www.usa.gov/\",\"final_url_status_code\":200,\"agency\":\"General Services Administration\",\"bureau\":\"Technology Transformation Services\",\"uswds_semantic_version\":\"3.8.1\",\"dap_detected\":true,\"primary_scan_status\":\"completed\"}]}", + "expectTitleIncludes": "GSA Site Scan", + "expectMarkdownIncludes": [ + "usa.gov", + "General Services Administration", + "3.8.1" + ], + "negativeCases": [ + { + "name": "http-403-missing-key", + "status": 403, + "payload": "{\"error\":{\"code\":\"API_KEY_MISSING\",\"message\":\"No api_key was supplied.\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.gsa.gov/error", + "payload": "404 Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Service Unavailable

Scheduled maintenance in progress.

" + }, + { + "name": "empty-items", + "status": 200, + "payload": "{\"items\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/healthcare-gov-marketplace.json b/hub/test/fixtures/adapters/healthcare-gov-marketplace.json new file mode 100644 index 0000000..57f8c4b --- /dev/null +++ b/hub/test/fixtures/adapters/healthcare-gov-marketplace.json @@ -0,0 +1,36 @@ +{ + "adapterId": "healthcare-gov-marketplace", + "mode": "twin", + "inputUrl": "https://marketplace.api.healthcare.gov/api/v1/plans/search", + "expectedFetchUrl": "https://marketplace.api.healthcare.gov/api/v1/plans/search", + "mockPayload": "{\"plans\":[{\"id\":\"11512NC0100020\",\"name\":\"Blue Advantage Silver 3500\",\"metal_level\":\"Silver\",\"type\":\"EPO\",\"premium\":412.5,\"premium_w_credit\":124.2,\"issuer\":{\"name\":\"Blue Cross and Blue Shield of North Carolina\"}}],\"total\":1}", + "expectTitleIncludes": "HealthCare.gov Marketplace Plans", + "expectMarkdownIncludes": [ + "11512NC0100020", + "Blue Advantage Silver 3500", + "Silver" + ], + "negativeCases": [ + { + "name": "http-401-no-key", + "status": 401, + "payload": "{\"message\":\"No API key found in request\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://marketplace.api.healthcare.gov/error", + "payload": "404 Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "System Maintenance

HealthCare.gov is undergoing scheduled maintenance.

" + }, + { + "name": "empty-plans", + "status": 200, + "payload": "{\"plans\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/import-alerts-aphis-fda.json b/hub/test/fixtures/adapters/import-alerts-aphis-fda.json new file mode 100644 index 0000000..2069992 --- /dev/null +++ b/hub/test/fixtures/adapters/import-alerts-aphis-fda.json @@ -0,0 +1,36 @@ +{ + "adapterId": "import-alerts-aphis-fda", + "mode": "html", + "inputUrl": "https://www.accessdata.fda.gov/cms_ia/importalert_190.html", + "mockPayload": "Import Alert 66-41

Import Alert 66-41

Import Alert # 66-41 Published Date: 11/25/2026 Type: DWPE Import Alert Name: Detention Without Physical Examination of Unapproved New Drugs Promoted In The U.S. Reason for Alert: Unapproved new drugs promoted in the U.S. are subject to detention without physical examination.

FirmCountryEffective Date
Sample Pharma Exports Ltd.India2026-11-25
", + "expectTitleIncludes": "Import Alert 66-41", + "expectMarkdownIncludes": [ + "66-41", + "2026-11-25", + "DWPE", + "Sample Pharma Exports Ltd." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

The requested page could not be found.

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.accessdata.fda.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This portal is temporarily unavailable due to scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/medicaid-nadac.json b/hub/test/fixtures/adapters/medicaid-nadac.json new file mode 100644 index 0000000..64c4d00 --- /dev/null +++ b/hub/test/fixtures/adapters/medicaid-nadac.json @@ -0,0 +1,36 @@ +{ + "adapterId": "medicaid-nadac", + "mode": "twin", + "inputUrl": "https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704", + "expectedFetchUrl": "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/fbb83258-11c7-47f5-8b18-5f8e79f7e704", + "mockPayload": "{\"@type\":\"dcat:Dataset\",\"identifier\":\"fbb83258-11c7-47f5-8b18-5f8e79f7e704\",\"title\":\"NADAC (National Average Drug Acquisition Cost) 2026\",\"description\":\"Weekly National Average Drug Acquisition Cost pricing file for covered outpatient drugs.\",\"modified\":\"2026-11-25\",\"publisher\":{\"data\":{\"name\":\"Center for Medicaid and CHIP Services\"}},\"distribution\":[{\"data\":{\"format\":\"csv\",\"downloadURL\":\"https://download.medicaid.gov/data/nadac-national-average-drug-acquisition-cost-11-25-2026.csv\"}}]}", + "expectTitleIncludes": "NADAC", + "expectMarkdownIncludes": [ + "fbb83258-11c7-47f5-8b18-5f8e79f7e704", + "National Average Drug Acquisition Cost", + "Center for Medicaid and CHIP Services" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Resource not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.medicaid.gov/error", + "payload": "Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

Under maintenance.

" + }, + { + "name": "empty-dkan-react-shell", + "status": 200, + "payload": "CMS Medicaid Data
" + } + ] +} diff --git a/hub/test/fixtures/adapters/nlrb-cases.json b/hub/test/fixtures/adapters/nlrb-cases.json new file mode 100644 index 0000000..bb5c012 --- /dev/null +++ b/hub/test/fixtures/adapters/nlrb-cases.json @@ -0,0 +1,36 @@ +{ + "adapterId": "nlrb-cases", + "mode": "html", + "inputUrl": "https://www.nlrb.gov/case/13-CA-394913", + "mockPayload": "Trader Joe's East Inc. | National Labor Relations Board

Trader Joe's East Inc.

Case Number: 13-CA-394913

Date Filed: 09/15/2026

Status: Open

Location: Chicago, IL

Region Assigned: Region 13, Chicago, Illinois

Docket Activity

DateDocumentFiled By
2026-09-15Charge Against EmployerCharging Party
", + "expectTitleIncludes": "Trader Joe's East Inc.", + "expectMarkdownIncludes": [ + "13-CA-394913", + "09/15/2026", + "Region 13, Chicago, Illinois", + "Charge Against Employer" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | National Labor Relations Board

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.nlrb.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

The NLRB website is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ofac-sdn.json b/hub/test/fixtures/adapters/ofac-sdn.json new file mode 100644 index 0000000..80c915a --- /dev/null +++ b/hub/test/fixtures/adapters/ofac-sdn.json @@ -0,0 +1,44 @@ +{ + "adapterId": "ofac-sdn", + "mode": "twin", + "inputUrl": "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + "expectedFetchUrl": "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + "mockPayload": "11/23/20261962936AEROCARIBBEAN AIRLINESEntityCUBA12AERO-CARIBBEAN
25HavanaCuba
173ANGLO-CARIBBEAN CO., LTD.EntityCUBA
129LondonUnited Kingdom
99999TRUNCATED_AT_RANGE_BOUNDARY", + "expectTitleIncludes": "OFAC Specially Designated Nationals", + "expectMarkdownIncludes": [ + "2026-11-23", + "19629", + "AEROCARIBBEAN AIRLINES", + "ANGLO-CARIBBEAN CO., LTD.", + "CUBA" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Office of Foreign Assets Control

404 Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://sanctionslistservice.ofac.treas.gov/error", + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This service is temporarily unavailable for maintenance. Please check back shortly.

" + }, + { + "name": "empty-sdn-list", + "status": 200, + "payload": "11/23/20260" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://ofac.treasury.gov/recent-actions", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/osha-establishment.json b/hub/test/fixtures/adapters/osha-establishment.json new file mode 100644 index 0000000..633d780 --- /dev/null +++ b/hub/test/fixtures/adapters/osha-establishment.json @@ -0,0 +1,40 @@ +{ + "adapterId": "osha-establishment", + "mode": "html", + "inputUrl": "https://www.osha.gov/pls/imis/establishment.html", + "mockPayload": "Establishment Search Results | Occupational Safety and Health Administration

Establishment Search Results: Midwest Metalworks Inc.

Occupational Safety and Health Administration IMIS inspection records for Midwest Metalworks Inc. in Cleveland, OH.

ActivityOpenedStTypeSICNAICSVioEstablishment Name
1745210.0152026-04-12OHPlanned34413323123Midwest Metalworks Inc.
", + "expectTitleIncludes": "Midwest Metalworks Inc.", + "expectMarkdownIncludes": [ + "OSHA", + "1745210.015", + "Midwest Metalworks Inc." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.osha.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This site is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "cloudfront-403-block", + "status": 403, + "payload": "ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.

Request blocked. Generated by cloudfront (CloudFront).

" + } + ] +} diff --git a/hub/test/fixtures/adapters/oversight-gov.json b/hub/test/fixtures/adapters/oversight-gov.json new file mode 100644 index 0000000..e828fd0 --- /dev/null +++ b/hub/test/fixtures/adapters/oversight-gov.json @@ -0,0 +1,41 @@ +{ + "adapterId": "oversight-gov", + "mode": "html", + "inputUrl": "https://www.oversight.gov/reports", + "mockPayload": "Reports | Oversight.gov

Inspector General Reports

Public audit, evaluation, and investigation reports from federal Offices of Inspector General.

Report TitleAgency OIGDateReport ID
Audit of Cybersecurity ControlsDOJ OIG2026-10-0826-104
", + "expectTitleIncludes": "Inspector General Reports", + "expectMarkdownIncludes": [ + "Oversight.gov", + "Audit of Cybersecurity Controls", + "DOJ OIG", + "26-104" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Oversight.gov

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.oversight.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This website is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "azure-app-gw-406", + "status": 406, + "payload": "406 Not Acceptable

406

Bad request. Reference: 12345abcde

" + } + ] +} diff --git a/hub/test/fixtures/adapters/sba-dsbs-loans.json b/hub/test/fixtures/adapters/sba-dsbs-loans.json new file mode 100644 index 0000000..1a2ccaa --- /dev/null +++ b/hub/test/fixtures/adapters/sba-dsbs-loans.json @@ -0,0 +1,36 @@ +{ + "adapterId": "sba-dsbs-loans", + "mode": "twin", + "inputUrl": "https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002", + "expectedFetchUrl": "https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002", + "mockPayload": "{\"@type\":\"dcat:Dataset\",\"identifier\":\"SBA-OCA-CKAN-002\",\"title\":\"7(a) & 504 FOIA Loan Data\",\"description\":\"Loan-level 7(a) and 504 FOIA data published by the SBA Office of Capital Access via DKAN.\",\"modified\":\"2026-10-31\",\"publisher\":{\"data\":{\"name\":\"U.S. Small Business Administration\"}},\"distribution\":[{\"data\":{\"format\":\"csv\",\"downloadURL\":\"https://data.sba.gov/sites/default/files/foia-7a-fy2020-present.csv\"}}]}", + "expectTitleIncludes": "7(a) & 504 FOIA Loan Data", + "expectMarkdownIncludes": [ + "SBA-OCA-CKAN-002", + "Small Business Administration", + "foia-7a-fy2020-present.csv" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Resource not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.sba.gov/error", + "payload": "Page not found | SBA open data

Page not found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "503 Service Unavailable

Service temporarily unavailable.

" + }, + { + "name": "empty-react-spa-shell", + "status": 200, + "payload": "SBA Small Business Search
" + } + ] +} diff --git a/hub/test/fixtures/adapters/trade-gov-csl.json b/hub/test/fixtures/adapters/trade-gov-csl.json new file mode 100644 index 0000000..c42e701 --- /dev/null +++ b/hub/test/fixtures/adapters/trade-gov-csl.json @@ -0,0 +1,43 @@ +{ + "adapterId": "trade-gov-csl", + "mode": "twin", + "inputUrl": "https://data.trade.gov/consolidated_screening_list/v1/search?q=example", + "expectedFetchUrl": "https://data.trade.gov/consolidated_screening_list/v1/search?q=example", + "mockPayload": "{\"total\":1,\"offset\":0,\"results\":[{\"id\":\"el-10023\",\"entity_number\":\"10023\",\"name\":\"EXAMPLE MICROELECTRONICS CORP.\",\"type\":\"Entity\",\"source\":\"Entity List (EL) - Bureau of Industry and Security\",\"programs\":[\"EAR\"],\"alt_names\":[\"Example Electronics Co.\"],\"addresses\":[{\"address\":\"100 High Tech Rd\",\"city\":\"Shenzhen\",\"country\":\"CN\"}],\"source_information_url\":\"https://www.bis.gov/regulations/ear/744\"}]}", + "expectTitleIncludes": "Trade.gov CSL Search: example", + "expectMarkdownIncludes": [ + "EXAMPLE MICROELECTRONICS CORP.", + "Entity List (EL)", + "EAR", + "CN" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{ \"statusCode\": 404, \"message\": \"Resource not found\" }" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.trade.gov/error", + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This service is undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "missing-subscription-key-401", + "status": 401, + "payload": "{ \"statusCode\": 401, \"message\": \"Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API.\" }" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.trade.gov/consolidated-screening-list", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/usitc-hts.json b/hub/test/fixtures/adapters/usitc-hts.json new file mode 100644 index 0000000..512a23a --- /dev/null +++ b/hub/test/fixtures/adapters/usitc-hts.json @@ -0,0 +1,43 @@ +{ + "adapterId": "usitc-hts", + "mode": "twin", + "inputUrl": "https://hts.usitc.gov/reststop/search?keyword=bicycle", + "expectedFetchUrl": "https://hts.usitc.gov/reststop/search?keyword=bicycle", + "mockPayload": "[{\"additionalDuties\":null,\"description\":\"Casing for bicycle derailleur cables; and casing for cable or inner wire for caliper and cantilever brakes, whether or not cut to length\",\"effectivePeriod\":null,\"footnotes\":[{\"columns\":[\"other\"],\"marker\":\"1\",\"type\":\"endnote\",\"value\":\"See 9903.90.08.\"}],\"general\":\"Free\",\"htsno\":\"3926.90.96.00\",\"indent\":\"2\",\"other\":\"25%\",\"special\":\"\",\"units\":[\"kg\"]},{\"additionalDuties\":\"See 9903.88.15\",\"description\":\"Bicycles having both wheels not exceeding 63.5 cm in diameter\",\"effectivePeriod\":null,\"footnotes\":[{\"columns\":[\"general\"],\"marker\":\"1\",\"type\":\"endnote\",\"value\":\"See 9903.88.15.\"}],\"general\":\"11%\",\"htsno\":\"8712.00.15.00\",\"indent\":\"1\",\"other\":\"30%\",\"special\":\"Free (A+,AU,BH,CL,CO,D,E,IL,JO,KR,MA,OM,P,PA,PE,S,SG)\",\"units\":[\"No.\"]}]", + "expectTitleIncludes": "USITC HTS Search: bicycle", + "expectMarkdownIncludes": [ + "3926.90.96.00", + "8712.00.15.00", + "9903.88.15", + "11%" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://hts.usitc.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This site is currently undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-angular-hts-root", + "status": 200, + "inputUrl": "https://hts.usitc.gov/", + "payload": "Harmonized Tariff Schedule" + }, + { + "name": "empty-json-array", + "status": 200, + "payload": "[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/usps-addresses.json b/hub/test/fixtures/adapters/usps-addresses.json new file mode 100644 index 0000000..35dfdb1 --- /dev/null +++ b/hub/test/fixtures/adapters/usps-addresses.json @@ -0,0 +1,36 @@ +{ + "adapterId": "usps-addresses", + "mode": "twin", + "inputUrl": "https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC", + "expectedFetchUrl": "https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC", + "mockPayload": "{\"firm\":\"USPS HEADQUARTERS\",\"address\":{\"streetAddress\":\"475 LENFANT PLZ SW\",\"city\":\"WASHINGTON\",\"state\":\"DC\",\"ZIPCode\":\"20260\",\"ZIPPlus4\":\"0004\"},\"additionalInfo\":{\"deliveryPoint\":\"99\",\"carrierRoute\":\"C000\",\"DPVConfirmation\":\"Y\",\"business\":\"Y\",\"vacant\":\"N\"}}", + "expectTitleIncludes": "475 LENFANT PLZ SW", + "expectMarkdownIncludes": [ + "20260-0004", + "WASHINGTON, DC", + "DPV Confirmation" + ], + "negativeCases": [ + { + "name": "http-401-invalid-token", + "status": 401, + "payload": "{\"apiVersion\":\"/addresses/v3/\",\"error\":{\"code\":\"401\",\"message\":\"Missing or malformed access token.\",\"errors\":[{\"title\":\"invalid_token\"}]}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://apis.usps.com/error", + "payload": "404 Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Scheduled Maintenance

USPS API maintenance.

" + }, + { + "name": "empty-json", + "status": 200, + "payload": "{}" + } + ] +} diff --git a/hub/test/fixtures/adapters/ustr-301.json b/hub/test/fixtures/adapters/ustr-301.json new file mode 100644 index 0000000..ef8b54e --- /dev/null +++ b/hub/test/fixtures/adapters/ustr-301.json @@ -0,0 +1,35 @@ +{ + "adapterId": "ustr-301", + "mode": "html", + "inputUrl": "https://ustr.gov/issue-areas/enforcement/section-301-investigations/tariff-actions", + "mockPayload": "China Section 301-Tariff Actions and Exclusion Process

China Section 301-Tariff Actions and Exclusion Process

The Office of the United States Trade Representative (USTR) conducts Section 301 investigations and administers tariff lists and product exclusion processes.

ActionAnnual Trade ValueTariff Rate
List 1 ($34 Billion Trade Action)$34B25%
List 2 ($16 Billion Trade Action)$16B25%
$34 Billion Trade Action
", + "expectTitleIncludes": "China Section 301-Tariff Actions and Exclusion Process", + "expectMarkdownIncludes": [ + "Section 301", + "$34 Billion Trade Action", + "25%" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | United States Trade Representative

Page not found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://ustr.gov/error", + "payload": "404 Page Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 200, + "payload": "Scheduled Maintenance

This site is undergoing scheduled maintenance. Please check back shortly.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/va-lighthouse-facilities.json b/hub/test/fixtures/adapters/va-lighthouse-facilities.json new file mode 100644 index 0000000..78202bf --- /dev/null +++ b/hub/test/fixtures/adapters/va-lighthouse-facilities.json @@ -0,0 +1,36 @@ +{ + "adapterId": "va-lighthouse-facilities", + "mode": "twin", + "inputUrl": "https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5", + "expectedFetchUrl": "https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5", + "mockPayload": "{\"data\":[{\"id\":\"vha_671\",\"type\":\"va_facilities\",\"attributes\":{\"name\":\"Audie L. Murphy Memorial Veterans' Hospital\",\"facilityType\":\"va_health_facility\",\"classification\":\"VA Medical Center (VAMC)\",\"website\":\"https://www.va.gov/south-texas-health-care/locations/audie-l-murphy-memorial-veterans-hospital/\",\"address\":{\"physical\":{\"address1\":\"7400 Merton Minter Blvd\",\"city\":\"San Antonio\",\"state\":\"TX\",\"zip\":\"78229\"}},\"phone\":{\"main\":\"210-617-5300\"},\"operatingStatus\":{\"code\":\"NORMAL\"}}}]}", + "expectTitleIncludes": "Audie L. Murphy", + "expectMarkdownIncludes": [ + "vha_671", + "San Antonio", + "210-617-5300" + ], + "negativeCases": [ + { + "name": "http-401-no-key", + "status": 401, + "payload": "{\"message\":\"No API key found in request\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.va.gov/error", + "payload": "404 Not Found

Page Not Found

" + }, + { + "name": "maintenance", + "status": 503, + "payload": "Under Maintenance

VA API temporarily unavailable.

" + }, + { + "name": "empty-data", + "status": 200, + "payload": "{\"data\":[]}" + } + ] +} diff --git a/hub/test/wave3-b1-cat-a.ts b/hub/test/wave3-b1-cat-a.ts index c276bfb..f90abfd 100644 --- a/hub/test/wave3-b1-cat-a.ts +++ b/hub/test/wave3-b1-cat-a.ts @@ -423,11 +423,15 @@ export function registerWave3B1CatATests(): void { resetIsolateBudgetForTests(); resetOverflowRobotsCacheForTests(); - // #214 dkan resolves data.medicaid.gov & data.healthcare.gov, and NEVER claims data.cms.gov or healthdata.gov + // #214 dkan resolves data.healthcare.gov, #297 medicaid-nadac owns data.medicaid.gov, and dkan NEVER claims data.cms.gov or healthdata.gov assert.equal( - resolveSiteExtractorTwin('https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8')?.id, + resolveSiteExtractorTwin('https://data.healthcare.gov/dataset/e4rr-zk4i')?.id, 'dkan', ); + assert.equal( + resolveSiteExtractorTwin('https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8')?.id, + 'medicaid-nadac', + ); for (const u of [ 'https://data.cms.gov/dataset/mj5m-pzi6', 'https://data.cms.gov/api/1/metastore/schemas/dataset/items/mj5m-pzi6', diff --git a/hub/test/wave3-b3-trade-regulators.test.ts b/hub/test/wave3-b3-trade-regulators.test.ts new file mode 100644 index 0000000..2c80d23 --- /dev/null +++ b/hub/test/wave3-b3-trade-regulators.test.ts @@ -0,0 +1,1313 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import test from 'node:test'; +import { resolveAdapterPolicyForUrl } from '../src/adapter-policy'; +import { + DATA_GOV_ADAPTER_IDS, + extractSensitiveHeaderSecrets, + fetchWithOfficialApiKey, + redactSecretsInBody, + resolveOfficialApiExtraHeaders, + resolveOfficialApiProviderSpecForUrl, + scrubSecretFromText, + sealUserApiKey, +} from '../src/api-keys'; +import { KNOWN_TELEMETRY_ADAPTER_IDS } from '../src/dev-telemetry'; +import { validateSingleErrorEvent } from '../../telemetry/src/index'; +import { DECLARATIVE_SITE_ADAPTERS } from '../src/extractors/declarative'; +import { resolveSiteExtractorTwin } from '../src/extractors/registry'; +import { postExtractHtml } from './post-fetch-wasm'; +import { RequestTracer, sanitizeErrorMessageForSpan, sanitizeSpanAttributes } from '../src/otel'; +import { resetOverflowRobotsCacheForTests } from '../src/overflow'; +import { + executeScrapeCall, + isTrustedTwinRedirectUrl, + isTwinRedirectedToErrorPage, +} from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { resetIsolateBudgetForTests } from '../src/wasm-bridge'; + +const WAVE3_B3_CAT_J_IDS = [ + 'usitc-hts', + 'cbp-cross-rulings', + 'census-foreign-trade', + 'ustr-301', + 'trade-gov-csl', + 'ofac-sdn', + 'bis-entity-list', + 'import-alerts-aphis-fda', +] as const; + +const WAVE3_B3_CAT_K1_IDS = [ + 'dol-enforcement', + 'osha-establishment', + 'nlrb-cases', + 'eeoc-litigation', + 'ftc-cases', + 'fcc-ecfs', + 'fcc-uls', + 'ferc-nrc-dockets', + 'financial-regulators-enforcement', + 'oversight-gov', +] as const; + +const WAVE3_B3_CAT_K2_IDS = [ + 'gao-reports', + 'cbo', + 'everycrsreport', + 'gov-wordpress-newsrooms', + 'gsa-site-scanning', + 'va-lighthouse-facilities', + 'healthcare-gov-marketplace', + 'cms-price-transparency', + 'medicaid-nadac', + 'usps-addresses', + 'carrier-tracking-official', + 'sba-dsbs-loans', +] as const; + +const ALL_B3_IDS = [ + ...WAVE3_B3_CAT_J_IDS, + ...WAVE3_B3_CAT_K1_IDS, + ...WAVE3_B3_CAT_K2_IDS, +] as const; + +interface B3Fixture { + adapterId: string; + mode: 'twin' | 'html'; + inputUrl: string; + expectedFetchUrl?: string; + mockPayload: string; + expectTitleIncludes?: string; + expectMarkdownIncludes: string[]; + negativeCases: Array<{ + name: string; + status?: number; + inputUrl?: string; + finalUrl?: string; + payload: string; + }>; +} + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +function reqUrl(input: RequestInfo | URL): URL { + return new URL(typeof input === 'string' ? input : input instanceof URL ? input.toString() : input.url); +} + +test('Wave 3 B3 Integration: All 30 adapter IDs registered, telemetry aligned, zero Rule 7 additions', () => { + assert.equal(ALL_B3_IDS.length, 30, 'Batch B3 must cover all 30 adapters (#271-#300)'); + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of ALL_B3_IDS) { + const adapter = registered.get(id); + assert.ok(adapter, `Missing DECLARATIVE_SITE_ADAPTERS entry: ${id}`); + assert.notEqual(adapter.authMode, 'detect-only', `${id} must never be detect-only`); + assert.ok(KNOWN_TELEMETRY_ADAPTER_IDS.has(id), `Missing KNOWN_TELEMETRY_ADAPTER_IDS entry: ${id}`); + assert.equal( + validateSingleErrorEvent({ + schemaVersion: 1, + version: '2.8.32', + runtime: 'workers', + os: 'cloudflare', + arch: 'v8', + mode: 'hub', + spanName: 'edgefetch.scrape', + adapterId: id, + wafVendor: '', + httpStatus: 500, + errorClass: 'timeout', + }).ok, + true, + `Missing telemetry/src/index.ts VALID_ADAPTER_IDS entry: ${id}`, + ); + assert.ok(adapter.exampleUrls.length >= 1, `${id} missing exampleUrls`); + } + + for (const id of WAVE3_B3_CAT_J_IDS) { + assert.equal(registered.get(id)?.category, 'public-records', `${id} must have category public-records`); + } + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + const crossBlock = compileSrc.slice( + compileSrc.indexOf('APPROVED_CROSS_DOMAIN_TWIN_HOSTS'), + compileSrc.indexOf('APPROVED_WILDCARD_DOMAIN_PATTERNS'), + ); + for (const id of ALL_B3_IDS) { + assert.equal(crossBlock.includes(`'${id}'`), false, `Rule 7 violation: ${id} in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + assert.equal(crossBlock.includes('s3.us-gov-west-1.amazonaws.com'), false); + + const declGoSrc = readFileSync(resolve('..', 'internal', 'extract', 'declarative.go'), 'utf8'); + const goCrossMatch = /var approvedCrossDomainTwinHostsGo = map\[string\]map\[string\]bool\{([\s\S]*?)\n\}/.exec(declGoSrc); + assert.ok(goCrossMatch); + for (const id of ALL_B3_IDS) { + assert.equal(goCrossMatch[1]!.includes(`"${id}"`), false, `Rule 7 Go violation: ${id} in approvedCrossDomainTwinHostsGo`); + } +}); + +test('Wave 3 B3 Fixtures: All 30 golden + >=4 negative cases pass via formatTwin/HTML, executeScrapeCall, executeExtractCall & RequestTracer', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + const keyedSecrets: Record = { + 'trade-gov-csl': 'secret_trade_gov_csl_9988776655', + 'dol-enforcement': 'secret_dol_key_9988776655', + 'fcc-ecfs': 'secret_datagov_fcc_9988776655', + 'gsa-site-scanning': 'secret_datagov_gsa_9988776655', + 'va-lighthouse-facilities': 'secret_va_lighthouse_9988776655', + 'healthcare-gov-marketplace': 'secret_hcgov_market_9988776655', + 'usps-addresses': 'secret_usps_oauth_jwt_token_9988776655', + 'carrier-tracking-official': 'secret_usps_track_jwt_9988776655', + }; + + for (const slug of ALL_B3_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as B3Fixture; + assert.equal(fx.adapterId, slug); + assert.ok(fx.negativeCases.length >= 4, `${slug} must have >= 4 negativeCases`); + + const resolvedTwin = fx.mode === 'twin' ? resolveSiteExtractorTwin(fx.inputUrl) : null; + const isKeyTwin = Boolean(resolvedTwin && resolvedTwin.authMode === 'key'); + const fetchUrl = fx.expectedFetchUrl || fx.inputUrl; + const trimmedMock = fx.mockPayload.trimStart(); + const contentType = + fx.mode === 'html' + ? 'text/html' + : trimmedMock.startsWith(' 0, `${slug}: formatTwin returned null/empty`); + if (fx.expectTitleIncludes) { + assert.ok(out.title.includes(fx.expectTitleIncludes), `${slug}: title "${out.title}" missing "${fx.expectTitleIncludes}"`); + } + for (const needle of fx.expectMarkdownIncludes) { + assert.ok(out.markdown.includes(needle), `${slug}: markdown missing "${needle}"`); + } + if (out.records) { + assert.ok(out.records.length <= 25, `${slug}: records[] exceeds 25`); + } + } else { + const postOut = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(postOut && postOut.extractorId === slug && postOut.markdown.trim().length > 0, `${slug}: HTML extraction failed`); + if (fx.expectTitleIncludes && postOut.title) { + assert.ok(postOut.title.includes(fx.expectTitleIncludes), `${slug}: title "${postOut.title}" missing "${fx.expectTitleIncludes}"`); + } + for (const needle of fx.expectMarkdownIncludes) { + assert.ok(postOut.markdown.includes(needle), `${slug}: markdown missing "${needle}"`); + } + if (postOut.records) { + assert.ok(postOut.records.length <= 25, `${slug}: records[] exceeds 25`); + } + } + + const apiKeyVal = isKeyTwin ? keyedSecrets[slug] : undefined; + const makeKeyFetchEnv = (statusCode: number, bodyStr: string, ct: string) => ({ + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + return new Response(bodyStr, { status: statusCode, headers: { 'content-type': ct } }); + }) as typeof fetch, + }); + const makeOverflowMock = (statusCode: number, bodyStr: string, ct: string, finalUrl?: string) => async (_t: unknown, body: string) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + const outcome = + statusCode >= 200 && statusCode < 300 ? 'ok' : statusCode === 404 ? 'not_found' : statusCode === 410 ? 'gone' : 'error'; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: req.url, + ...(finalUrl ? { finalUrl } : {}), + outcome, + status: statusCode, + contentType: ct, + body: bodyStr, + }, + ], + }), + }; + }; + + // Golden scrape + RequestTracer + const scTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/scrape')); + let scRes!: Awaited>; + await scTracer.withSpan('edgefetch.scrape', async () => { + scRes = await executeScrapeCall({ + payload: { + url: fx.inputUrl, + formats: ['markdown', 'records'], + discoverLlmsTxt: false, + noCache: true, + ...(apiKeyVal ? { apiKeys: { [slug]: apiKeyVal } } : {}), + }, + env: (isKeyTwin ? makeKeyFetchEnv(200, fx.mockPayload, contentType) : {}) as never, + tracer: scTracer, + executeHubFetch: isKeyTwin + ? async () => { + throw new Error(`${slug}: keyed twin must use fetchWithOfficialApiKey`); + } + : makeOverflowMock(200, fx.mockPayload, contentType, fx.mode === 'twin' ? fetchUrl : undefined), + }); + }); + assert.equal(scRes.status, 200, `${slug} scrape failed: ${JSON.stringify(scRes.body)}`); + assert.equal(scRes.body.extractorId, slug, `${slug} scrape extractorId mismatch`); + assert.equal(scRes.body.contentState, 'active', `${slug} scrape contentState must be active`); + assert.equal( + scTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], + slug, + `${slug} scrape span missing edgefetch.adapter_id`, + ); + + // Golden extract + RequestTracer + const exTracer = RequestTracer.fromRequest(new Request('https://hub.example.com/v1/extract')); + let exRes!: Awaited>; + await exTracer.withSpan('edgefetch.extract', async () => { + exRes = await executeExtractCall({ + payload: { + urls: [fx.inputUrl], + noCache: true, + ...(apiKeyVal ? { apiKeys: { [slug]: apiKeyVal } } : {}), + }, + env: (isKeyTwin ? makeKeyFetchEnv(200, fx.mockPayload, contentType) : {}) as never, + tracer: exTracer, + executeHubFetch: isKeyTwin + ? async () => { + throw new Error(`${slug}: keyed extract must use fetchWithOfficialApiKey`); + } + : makeOverflowMock(200, fx.mockPayload, contentType, fx.mode === 'twin' ? fetchUrl : undefined), + }); + }); + assert.equal(exRes.status, 200, `${slug} extract failed`); + assert.equal( + exTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], + slug, + `${slug} extract span missing edgefetch.adapter_id`, + ); + + // >= 4 negative cases + for (const nc of fx.negativeCases) { + const ncUrl = nc.inputUrl || fx.inputUrl; + const ncStatus = nc.status ?? 200; + const ncTrim = nc.payload.trimStart(); + const ncCt = ncTrim.startsWith('<') ? 'text/html' : ncTrim.startsWith('{') || ncTrim.startsWith('[') ? 'application/json' : 'text/plain'; + const ncTwin = resolveSiteExtractorTwin(ncUrl); + + if (nc.finalUrl && nc.finalUrl !== ncUrl) { + if (fx.mode === 'twin') { + assert.equal( + isTrustedTwinRedirectUrl(slug, fetchUrl, { finalUrl: nc.finalUrl }), + false, + `${slug}:${nc.name} redirect to ${nc.finalUrl} must be rejected`, + ); + } else { + const isErrRedir = isTwinRedirectedToErrorPage(ncUrl, { finalUrl: nc.finalUrl }); + const negHtml = postExtractHtml(nc.payload, nc.finalUrl, ''); + assert.ok(isErrRedir || negHtml === null, `${slug}:${nc.name} error redirect must not extract`); + } + } else if (ncTwin && ncTwin.id === slug) { + const negTwin = ncTwin.formatTwin(nc.payload, ncUrl, noopHtmlToMd); + assert.equal(Boolean(negTwin && negTwin.markdown.trim()), false, `${slug}:${nc.name} formatTwin must return null/empty`); + } else { + const negHtml = postExtractHtml(nc.payload, ncUrl, ''); + assert.equal(negHtml, null, `${slug}:${nc.name} HTML extractor must return null`); + } + + const useKeyFetch = Boolean(ncTwin && ncTwin.id === slug && ncTwin.authMode === 'key' && !nc.finalUrl); + const scNeg = await executeScrapeCall({ + payload: { + url: ncUrl, + discoverLlmsTxt: false, + noCache: true, + ...(useKeyFetch && apiKeyVal ? { apiKeys: { [slug]: apiKeyVal } } : {}), + }, + env: (useKeyFetch ? makeKeyFetchEnv(ncStatus, nc.payload, ncCt) : {}) as never, + executeHubFetch: makeOverflowMock(ncStatus, nc.payload, ncCt, nc.finalUrl), + }); + assert.notEqual( + (scNeg.body as { contentState?: string }).contentState, + 'active', + `scrape ${slug}:${nc.name} must NEVER return contentState=active`, + ); + + const exNeg = await executeExtractCall({ + payload: { + urls: [ncUrl], + noCache: true, + ...(useKeyFetch && apiKeyVal ? { apiKeys: { [slug]: apiKeyVal } } : {}), + }, + env: (useKeyFetch ? makeKeyFetchEnv(ncStatus, nc.payload, ncCt) : {}) as never, + executeHubFetch: makeOverflowMock(ncStatus, nc.payload, ncCt, nc.finalUrl), + }); + const exFirst = ((exNeg.body as { results?: Array<{ contentState?: string }> }).results ?? [])[0]; + assert.notEqual( + exFirst?.contentState, + 'active', + `extract ${slug}:${nc.name} must NEVER return contentState=active`, + ); + } + } +}); + +test('Wave 3 B3 Cat J: #276 OFAC SDN S3 redirect exemption, #275 trade-gov-csl fallback, #273 census intltrade', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // #276 ofac-sdn: case-insensitive SDN.XML / sdn.xml Range + maxBytes + for (const sdnUrl of [ + 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML', + 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/sdn.xml', + ]) { + const twin = resolveSiteExtractorTwin(sdnUrl); + assert.ok(twin && twin.id === 'ofac-sdn'); + assert.equal(twin.headers?.Range, 'bytes=0-2097151'); + assert.equal(twin.maxBytes, 2097152); + } + + // Trusted S3 redirect allowed ONLY for ofac-sdn from official OFAC source URLs, never arbitrary hosts or /error + const s3Url = 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/SDN.XML?X-Amz-Algorithm=AWS4-HMAC-SHA256'; + assert.equal( + resolveSiteExtractorTwin('https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML') + ?.allowCrossOriginRedirects, + true, + ); + assert.equal( + resolveSiteExtractorTwin('https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/CONS_PRIM.XML') + ?.allowCrossOriginRedirects, + true, + ); + assert.equal( + Boolean(resolveSiteExtractorTwin('https://hts.usitc.gov/reststop/search?keyword=bike')?.allowCrossOriginRedirects), + false, + ); + assert.equal( + isTrustedTwinRedirectUrl( + 'ofac-sdn', + 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML', + { finalUrl: s3Url }, + ), + true, + ); + assert.equal( + isTrustedTwinRedirectUrl('ofac-sdn', 'https://www.treasury.gov/ofac/downloads/sdn.xml', { finalUrl: s3Url }), + true, + ); + assert.equal( + isTrustedTwinRedirectUrl( + 'ofac-sdn', + 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML', + { finalUrl: 'https://evil.example.net/SDN.XML' }, + ), + false, + ); + assert.equal( + isTrustedTwinRedirectUrl( + 'ofac-sdn', + 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML', + { finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/error' }, + ), + false, + ); + assert.equal( + isTrustedTwinRedirectUrl('usitc-hts', 'https://hts.usitc.gov/reststop/search?keyword=bike', { finalUrl: s3Url }), + false, + ); + + // End-to-end OFAC SDN S3 redirect through executeScrapeCall + const ofacFx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', 'ofac-sdn.json'), 'utf8')) as B3Fixture; + let capturedBlockCrossOrigin: boolean | undefined; + const ofacScrape = await executeScrapeCall({ + payload: { url: ofacFx.inputUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; blockCrossOriginRedirects?: boolean }> }).requests[0]!; + capturedBlockCrossOrigin = req.blockCrossOriginRedirects; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: ofacFx.inputUrl, finalUrl: s3Url, outcome: 'ok', status: 200, contentType: 'application/xml', body: ofacFx.mockPayload }], + }), + }; + }, + }); + assert.equal(capturedBlockCrossOrigin, undefined, 'ofac-sdn must omit blockCrossOriginRedirects so trusted S3 redirect succeeds'); + assert.equal(ofacScrape.status, 200); + assert.equal(ofacScrape.body.extractorId, 'ofac-sdn'); + assert.equal(ofacScrape.body.contentState, 'active'); + assert.equal(String(ofacScrape.body.markdown).includes('TRUNCATED_AT_RANGE_BOUNDARY'), false); + + // #275 trade-gov-csl: 422 key_required, subscription-key header + redaction, HTML fallback + const cslUnconf = await executeScrapeCall({ + payload: { url: 'https://data.trade.gov/consolidated_screening_list/v1/search?q=example', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async () => { + throw new Error('should return 422 key_required'); + }, + }); + assert.equal(cslUnconf.status, 422); + assert.equal(cslUnconf.body.error, 'key_required'); + + const cslSecret = 'sub_key_trade_gov_secret_1234567890'; + const cslRes = await executeScrapeCall({ + payload: { + url: 'https://data.trade.gov/consolidated_screening_list/v1/search?q=example', + discoverLlmsTxt: false, + noCache: true, + }, + env: { + TRADE_GOV_CSL_API_KEY: cslSecret, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + const hdrs = new Headers(init?.headers); + assert.equal(hdrs.get('subscription-key'), cslSecret); + return new Response( + JSON.stringify({ + total: 1, + echo: cslSecret, + results: [{ id: 'el-1', name: 'ACME TRADE CORP', type: 'Entity', source: 'Entity List (EL)', programs: ['EAR'] }], + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(cslRes.status, 200); + assert.equal(JSON.stringify(cslRes.body).includes(cslSecret), false, 'subscription-key must be redacted'); + assert.ok(String(cslRes.body.markdown).includes('ACME TRADE CORP')); + + const cslHtmlRes = await executeScrapeCall({ + payload: { url: 'https://www.trade.gov/consolidated-screening-list', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: req.url, + outcome: 'ok', + status: 200, + contentType: 'text/html', + body: 'Consolidated Screening List | Trade.gov

Consolidated Screening List

The CSL consolidates eleven export screening lists.

', + }, + ], + }), + }; + }, + }); + assert.equal(cslHtmlRes.status, 200); + assert.equal(cslHtmlRes.body.extractorId, 'trade-gov-csl'); + + // #273 census intltrade enrichment via census adapter + const censusFx = resolveSiteExtractorTwin('https://api.census.gov/data/timeseries/intltrade/imports/hs?get=CTY_NAME,I_COMMODITY,GEN_VAL_MO&time=2026-01'); + assert.ok(censusFx && censusFx.id === 'census' && censusFx.authMode === 'key'); + const censusOut = censusFx.formatTwin( + JSON.stringify([ + ['CTY_NAME', 'I_COMMODITY', 'GEN_VAL_MO', 'time'], + ['TAIWAN', '871200', '42500000', '2026-01'], + ]), + 'https://api.census.gov/data/timeseries/intltrade/imports/hs?get=CTY_NAME,I_COMMODITY,GEN_VAL_MO&time=2026-01', + noopHtmlToMd, + ); + assert.ok(censusOut && censusOut.markdown.includes('TAIWAN') && censusOut.markdown.includes('871200')); +}); + +test('Wave 3 B3 Cat K1: Politeness, domain exclusions, keyed DOL/FCC-ECFS, and OCC RSS', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + const ftcPol = resolveAdapterPolicyForUrl('https://www.ftc.gov/legal-library/browse/cases-proceedings'); + assert.equal(ftcPol.strictRobots, true); + assert.equal(ftcPol.minIntervalMs, 5000); + assert.equal(ftcPol.maxConcurrent, 1); + + const oshaPol = resolveAdapterPolicyForUrl('https://www.osha.gov/pls/imis/establishment.html'); + assert.equal(oshaPol.strictRobots, true); + assert.equal(oshaPol.minIntervalMs, 1500); + + const fercPol = resolveAdapterPolicyForUrl('https://www.nrc.gov/reading-rm/adams.html'); + assert.equal(fercPol.strictRobots, true); + + const fccEcfs = registered.get('fcc-ecfs')!; + assert.equal(fccEcfs.domains.includes('apps.fcc.gov'), false); + assert.equal(fccEcfs.authMode, 'key'); + assert.ok(DATA_GOV_ADAPTER_IDS.has('fcc-ecfs')); + + const fccUls = registered.get('fcc-uls')!; + assert.equal(fccUls.domains.includes('apps.fcc.gov'), false); + assert.equal(fccUls.domains.includes('www.fcc.gov'), false); + assert.equal(fccUls.minIntervalMs, 1000); + + // DOL 422 key_required + X-API-KEY injection + data.dol.gov empty shell rejected + const dol422 = await executeScrapeCall({ + payload: { url: 'https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async () => { + throw new Error('must return 422'); + }, + }); + assert.equal(dol422.status, 422); + assert.equal(dol422.body.error, 'key_required'); + + const dolKey = 'dol_secret_token_9876543210'; + const dolRes = await executeScrapeCall({ + payload: { url: 'https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2', discoverLlmsTxt: false, noCache: true }, + env: { + DOL_API_KEY: dolKey, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + assert.equal(new Headers(init?.headers).get('X-API-KEY'), dolKey); + return new Response( + JSON.stringify({ data: [{ case_id: '1984321', trade_nm: 'Acme Logistics', city_nm: 'Chicago', st_cd: 'IL', bw_atp_amt: 48250.5 }] }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(dolRes.status, 200); + assert.equal(dolRes.body.extractorId, 'dol-enforcement'); + assert.equal(JSON.stringify(dolRes.body).includes(dolKey), false); + + assert.equal( + postExtractHtml('
', 'https://data.dol.gov/agencies/whd', ''), + null, + 'Empty data.dol.gov React shell must return null', + ); + + // FCC ECFS X-Api-Key via DATA_GOV_API_KEY + const fccKey = 'datagov_fcc_key_0123456789abcdef'; + const fccRes = await executeExtractCall({ + payload: { urls: ['https://publicapi.fcc.gov/ecfs/filings?limit=2'], noCache: true }, + env: { + DATA_GOV_API_KEY: fccKey, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + assert.equal(new Headers(init?.headers).get('X-Api-Key'), fccKey); + return new Response( + JSON.stringify({ + filing: [{ id_submission: '26110085495', submissiontype: { short: 'COMMENT' }, filers: [{ name: 'A. Voter' }], proceedings: [{ name: '26-252' }] }], + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(fccRes.status, 200); + assert.equal((fccRes.body.results as Array<{ extractorId?: string }>)[0]?.extractorId, 'fcc-ecfs'); + + // OCC RSS XML items_table + const occRssUrl = 'https://www.occ.gov/rss/occ_news.xml'; + const occTwin = resolveSiteExtractorTwin(occRssUrl); + assert.ok(occTwin && occTwin.id === 'financial-regulators-enforcement'); + const occScrape = await executeScrapeCall({ + payload: { url: occRssUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: occRssUrl, + outcome: 'ok', + status: 200, + contentType: 'application/xml', + body: 'OCC NewsOCC Bulletin 2026-10https://www.occ.gov/news-issuances/bulletins/2026/bulletin-2026-10.html2026-11-20', + }, + ], + }), + }; + }, + }); + assert.equal(occScrape.status, 200); + assert.equal(occScrape.body.extractorId, 'financial-regulators-enforcement'); + assert.ok(String(occScrape.body.markdown).includes('OCC Bulletin 2026-10')); +}); + +test('Wave 3 B3 Cat K2: #298 vs #299 routing precedence, carrier POST/UPS headers, Marketplace POST, CMS base64 archives & SEC-W2-1..3', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #298 vs #299 routing precedence in TS + WASM + const uspsAddrUrl = 'https://apis.usps.com/addresses/v3/address?streetAddress=475%20LEnfant%20Plz&city=Washington&state=DC'; + const uspsTrackUrl = 'https://apis.usps.com/tracking/v3/tracking/9400111899223344556677'; + assert.equal(resolveSiteExtractorTwin(uspsAddrUrl)?.id, 'usps-addresses'); + assert.equal(resolveSiteExtractorTwin(uspsTrackUrl)?.id, 'carrier-tracking-official'); + + // 2. Per-host provider resolution & UPS extra headers + assert.equal(resolveOfficialApiProviderSpecForUrl('carrier-tracking-official', uspsTrackUrl).envKeyName, 'USPS_ACCESS_TOKEN'); + assert.equal( + resolveOfficialApiProviderSpecForUrl('carrier-tracking-official', 'https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784').envKeyName, + 'UPS_ACCESS_TOKEN', + ); + assert.equal( + resolveOfficialApiProviderSpecForUrl('carrier-tracking-official', 'https://apis.fedex.com/track/v1/trackingnumbers').envKeyName, + 'FEDEX_ACCESS_TOKEN', + ); + assert.ok(DATA_GOV_ADAPTER_IDS.has('gsa-site-scanning')); + assert.equal(resolveOfficialApiProviderSpecForUrl('va-lighthouse-facilities').defaultInjection?.name, 'apikey'); + assert.deepEqual(resolveOfficialApiProviderSpecForUrl('healthcare-gov-marketplace').defaultInjection, { kind: 'query', name: 'apikey' }); + + const upsTwin = resolveSiteExtractorTwin('https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784'); + assert.ok(upsTwin && upsTwin.headers?.transactionSrc === 'edgefetch'); + const upsExtra = resolveOfficialApiExtraHeaders({ + provider: 'carrier-tracking-official', + targetUrl: upsTwin.fetchUrl, + baseHeaders: upsTwin.headers, + }); + assert.ok(upsExtra?.transId?.startsWith('edgefetch-')); + assert.equal(upsExtra?.transactionSrc, 'edgefetch'); + + // End-to-end UPS GET with Bearer + transId + transactionSrc + const upsToken = 'ups_bearer_jwt_secret_token_12345'; + const upsScrape = await executeScrapeCall({ + payload: { url: 'https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784', discoverLlmsTxt: false, noCache: true }, + env: { + UPS_ACCESS_TOKEN: upsToken, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + const hdrs = new Headers(init?.headers); + assert.equal(hdrs.get('authorization'), `Bearer ${upsToken}`); + assert.equal(hdrs.get('transactionSrc'), 'edgefetch'); + assert.ok(hdrs.get('transId')?.startsWith('edgefetch-')); + return new Response( + JSON.stringify({ + trackResponse: { + shipment: [{ + package: [{ + trackingNumber: '1Z999AA10123456784', + currentStatus: { description: 'Delivered' }, + deliveryDate: [{ date: '20261126' }], + activity: [{ date: '20261126', time: '141500', status: { description: 'Delivered' }, location: { address: { city: 'ATLANTA', stateProvince: 'GA', countryCode: 'US' } } }], + }], + }], + }, + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(upsScrape.status, 200); + assert.equal(upsScrape.body.extractorId, 'carrier-tracking-official'); + assert.equal(JSON.stringify(upsScrape.body).includes(upsToken), false); + + // End-to-end FedEx POST + requestBody + FEDEX_ACCESS_TOKEN + const fedexTwin = resolveSiteExtractorTwin('https://apis.fedex.com/track/v1/trackingnumbers?trackingNumber=784592018372'); + assert.ok(fedexTwin && fedexTwin.method === 'POST' && fedexTwin.requestBody?.includes('784592018372')); + const fedexToken = 'fedex_oauth_secret_token_998877'; + const fedexScrape = await executeScrapeCall({ + payload: { url: 'https://apis.fedex.com/track/v1/trackingnumbers?trackingNumber=784592018372', discoverLlmsTxt: false, noCache: true }, + env: { + FEDEX_ACCESS_TOKEN: fedexToken, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + assert.equal(init?.method, 'POST'); + assert.equal(new Headers(init?.headers).get('authorization'), `Bearer ${fedexToken}`); + assert.equal(new Headers(init?.headers).get('content-type'), 'application/json'); + assert.ok(String(init?.body).includes('784592018372')); + return new Response( + JSON.stringify({ + output: { + completeTrackResults: [{ + trackResults: [{ + trackingNumberInfo: { trackingNumber: '784592018372' }, + latestStatusDetail: { statusByLocale: 'Delivered' }, + scanEvents: [{ date: '2026-11-26T10:00:00-06:00', eventDescription: 'Delivered', scanLocation: { city: 'MEMPHIS', stateOrProvinceCode: 'TN', countryCode: 'US' } }], + }], + }], + }, + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(fedexScrape.status, 200); + assert.equal(fedexScrape.body.extractorId, 'carrier-tracking-official'); + assert.equal(JSON.stringify(fedexScrape.body).includes(fedexToken), false); + + // End-to-end HealthCare.gov Marketplace POST + ?apikey= query injection & redaction + const hcKey = 'hc_api+key/secret value=42'; + const hcRes = await executeExtractCall({ + payload: { urls: ['https://marketplace.api.healthcare.gov/api/v1/plans/search'], noCache: true }, + env: { + HEALTHCARE_GOV_API_KEY: hcKey, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL, init?: RequestInit) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + assert.equal(init?.method, 'POST'); + assert.equal(u.searchParams.get('apikey'), hcKey); + assert.ok(String(init?.body).includes('"market":"Individual"')); + return new Response( + JSON.stringify({ + next: `https://marketplace.api.healthcare.gov/api/v1/plans/search?apikey=${encodeURIComponent(hcKey)}`, + form: `apikey=${encodeURIComponent(hcKey).replace(/%20/g, '+')}`, + plans: [{ id: '11512NC0100020', name: 'Blue Silver 3500', metal_level: 'Silver', type: 'EPO', premium: 412.5 }], + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(hcRes.status, 200); + const hcSerialized = JSON.stringify(hcRes.body); + assert.equal(hcSerialized.includes(hcKey), false); + assert.equal(hcSerialized.includes(encodeURIComponent(hcKey)), false); + assert.equal(hcSerialized.includes(encodeURIComponent(hcKey).replace(/%20/g, '+')), false); + + // #296 CMS Price Transparency: Range + base64 ZIP (PK\x03\x04) & base64 GZIP (\x1f\x8b) end-to-end + const cmsJsonUrl = 'https://stanfordhealthcare.org/946174066_standardcharges.json'; + const cmsCsvUrl = 'https://nyulangone.org/nyu_standardcharges.csv'; + const cmsTwin = resolveSiteExtractorTwin(cmsJsonUrl); + assert.ok(cmsTwin && cmsTwin.headers?.Range === 'bytes=0-2097151' && cmsTwin.maxBytes === 2097152); + + const zipB64 = Buffer.from([0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x00, 0x00, 0xff, 0xfe, 0xaa, 0xbb]).toString('base64'); + const gzipB64 = Buffer.from([0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xab, 0xcd]).toString('base64'); + + const cmsZipScrape = await executeScrapeCall({ + payload: { url: cmsJsonUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: cmsJsonUrl, outcome: 'ok', status: 200, contentType: 'application/zip', bodyEncoding: 'base64', body: zipB64 }], + }), + }; + }, + }); + assert.equal(cmsZipScrape.status, 200); + assert.equal(cmsZipScrape.body.extractorId, 'cms-price-transparency'); + assert.equal(cmsZipScrape.body.contentState, 'active'); + assert.ok(String(cmsZipScrape.body.markdown).includes('ZIP')); + + const cmsGzipExtract = await executeExtractCall({ + payload: { urls: [cmsCsvUrl], noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: cmsCsvUrl, outcome: 'ok', status: 200, contentType: 'application/gzip', bodyEncoding: 'base64', body: gzipB64 }], + }), + }; + }, + }); + assert.equal(cmsGzipExtract.status, 200); + const cmsExItem = (cmsGzipExtract.body.results as Array<{ extractorId?: string; chunks?: Array<{ text: string }> }>)[0]!; + assert.equal(cmsExItem.extractorId, 'cms-price-transparency'); + assert.ok((cmsExItem.chunks ?? []).some((c) => c.text.includes('GZIP'))); + + // SEC-W2-1..3: redactSecretsInBody (raw, URL-encoded, + form-encoded) + makeKeyHint (< 16 -> ****) + const bearerJwt = 'eyJhbGciOiJSUzI1NiJ9.payload_part.sig+slash/space value=99'; + const fetchCheck = await fetchWithOfficialApiKey({ + url: 'https://api.va.gov/services/va_facilities/v1/facilities?state=TX', + apiKey: bearerJwt, + injection: { kind: 'header', name: 'apikey' }, + fetchFn: async (input) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + return new Response( + JSON.stringify({ + raw: bearerJwt, + enc: encodeURIComponent(bearerJwt), + form: encodeURIComponent(bearerJwt).replace(/%20/g, '+'), + ok: true, + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }, + }); + assert.equal(fetchCheck.ok, true); + if (fetchCheck.ok) { + assert.equal(fetchCheck.body.includes(bearerJwt), false); + assert.equal(fetchCheck.body.includes(encodeURIComponent(bearerJwt)), false); + assert.equal(fetchCheck.body.includes(encodeURIComponent(bearerJwt).replace(/%20/g, '+')), false); + } + assert.equal(redactSecretsInBody(`k=${encodeURIComponent('a b+c')}`, ['a b+c']), 'k=[redacted]'); + + const masterKey = 'vault-master-key-wave3-b3-integration-0123456789'; + const shortSealed = await sealUserApiKey({ vaultMasterKey: masterKey, userId: 'u1', provider: 'dol-enforcement', apiKey: 'short-15-chars!' }); + assert.equal(shortSealed.ok, true); + if (shortSealed.ok) assert.equal(shortSealed.keyHint, '****'); + const longSealed = await sealUserApiKey({ vaultMasterKey: masterKey, userId: 'u1', provider: 'dol-enforcement', apiKey: 'long-enough-16ch' }); + assert.equal(longSealed.ok, true); + if (longSealed.ok) assert.equal(longSealed.keyHint, '...16ch'); +}); + +test('Wave 3 B3 Remediations: scrubSecretFromText encoded HTTP 502 leak, CMS text/plain gzip, OFAC S3 error redirects, CSR shell latency & >8KiB empty sdnList', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. P1: scrubSecretFromText redacts raw, encodeURIComponent, and + form-encoded forms + HTTP 502 error message + subscription-key OTel scrubbing + const trickySecret = 'sec+ret/with space=99&token'; + const encSecret = encodeURIComponent(trickySecret); + const formSecret = encSecret.replace(/%20/g, '+'); + const scrubbed = scrubSecretFromText( + `Upstream error raw=${trickySecret} key=${encSecret} form=${formSecret}`, + [trickySecret], + ); + assert.equal(scrubbed.includes(trickySecret), false); + assert.equal(scrubbed.includes(encSecret), false); + assert.equal(scrubbed.includes(formSecret), false); + + const longPrefixed = `${'x'.repeat(245)}${trickySecret}`; + const scrubbedLong = scrubSecretFromText(longPrefixed, [trickySecret]); + assert.equal(scrubbedLong.includes('sec+ret'), false); + + const err502Res = await executeScrapeCall({ + payload: { url: 'https://marketplace.api.healthcare.gov/api/v1/plans/search', discoverLlmsTxt: false, noCache: true }, + env: { + HEALTHCARE_GOV_API_KEY: trickySecret, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + throw new Error(`Upstream network error echoing key=${encSecret} and form=${formSecret}`); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(err502Res.status, 502); + const err502Serialized = JSON.stringify(err502Res.body); + assert.equal(err502Serialized.includes(trickySecret), false); + assert.equal(err502Serialized.includes(encSecret), false); + assert.equal(err502Serialized.includes(formSecret), false); + + const spanAttrs = sanitizeSpanAttributes({ + 'subscription-key': 'secret_sub_attr_1234', + detail: 'subscription-key=secret_sub_inline_5678', + }); + assert.equal(spanAttrs['subscription-key'], '[redacted]'); + assert.equal(String(spanAttrs.detail).includes('secret_sub_inline_5678'), false); + assert.equal( + sanitizeErrorMessageForSpan('header subscription-key: secret_sub_hdr_9999').includes('secret_sub_hdr_9999'), + false, + ); + + // 2. P1: executeExtractCall detects mislabeled text/plain base64 GZIP archive on cms-price-transparency + const mislabeledGzipBytes = new Uint8Array([0x1f, 0x8b, 0x08, 0x08, ...Buffer.from('A'.repeat(632), 'ascii')]); + const mislabeledGzipB64 = Buffer.from(mislabeledGzipBytes).toString('base64'); + const cmsTextPlainGzip = await executeExtractCall({ + payload: { urls: ['https://nyulangone.org/content/nyu_standardcharges.csv'], noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: 'https://nyulangone.org/content/nyu_standardcharges.csv', + outcome: 'ok', + status: 200, + contentType: 'text/plain', + bodyEncoding: 'base64', + body: mislabeledGzipB64, + }, + ], + }), + }; + }, + }); + assert.equal(cmsTextPlainGzip.status, 200); + const cmsTextPlainItem = (cmsTextPlainGzip.body.results as Array<{ extractorId?: string; chunks?: Array<{ text: string }> }>)[0]!; + assert.equal(cmsTextPlainItem.extractorId, 'cms-price-transparency'); + assert.ok((cmsTextPlainItem.chunks ?? []).some((c) => c.text.includes('GZIP'))); + + // 3. P1: ofac-sdn S3 redirect rejects /exports/error, /error.xml, /Error.aspx while allowing /Published/Current/SDN.XML + const ofacSourceUrl = 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML'; + for (const goodS3 of [ + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/Current/SDN.XML', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/SDN.XML', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/CONS_PRIM.XML', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/SDN_ENHANCED.XML', + ]) { + assert.equal(isTrustedTwinRedirectUrl('ofac-sdn', ofacSourceUrl, { finalUrl: goodS3 }), true, `Expected trusted S3 URL: ${goodS3}`); + assert.equal(isTwinRedirectedToErrorPage(ofacSourceUrl, { finalUrl: goodS3 }), false); + } + for (const badS3 of [ + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/error', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/error.xml', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Error.aspx', + ]) { + assert.equal(isTrustedTwinRedirectUrl('ofac-sdn', ofacSourceUrl, { finalUrl: badS3 }), false, `Must reject S3 error URL: ${badS3}`); + assert.equal(isTwinRedirectedToErrorPage(ofacSourceUrl, { finalUrl: badS3 }), true, `Must detect error redirect: ${badS3}`); + } + const ofacErrRedirectScrape = await executeScrapeCall({ + payload: { url: ofacSourceUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: ofacSourceUrl, + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/error', + outcome: 'ok', + status: 200, + contentType: 'text/html', + body: `Notice

${'Service error details '.repeat(120)}

`, + }, + ], + }), + }; + }, + }); + assert.notEqual(ofacErrRedirectScrape.body.contentState, 'active'); + + // 4. P2: Empty > 8192 bytes (10 KB) classifies empty_shell, not active + const emptyLargeSdnList = `11/28/20260`; + assert.ok(emptyLargeSdnList.length > 8192); + const emptySdnScrape = await executeScrapeCall({ + payload: { url: ofacSourceUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: ofacSourceUrl, + outcome: 'ok', + status: 200, + contentType: 'application/xml', + body: emptyLargeSdnList, + }, + ], + }), + }; + }, + }); + assert.equal(emptySdnScrape.body.contentState, 'empty_shell'); + + // 5. P2: 78 KB unhydrated CSR shells return null quickly without universal-engine fanout lag + const csrPayloads = [ + { + url: 'https://rulings.cbp.gov/search?term=bicycle', + html: `CBP CROSS`, + }, + { + url: 'https://hts.usitc.gov/search?query=8712', + html: `HTS`, + }, + { + url: 'https://search.certifications.sba.gov/profile/123', + html: `SBA
`, + }, + ]; + for (const tc of csrPayloads) { + const t0 = performance.now(); + const out = postExtractHtml(tc.html, tc.url, ''); + const dt = performance.now() - t0; + assert.equal(out, null, `78 KB CSR shell for ${tc.url} must return null`); + assert.ok(dt < 75, `78 KB CSR shell for ${tc.url} exceeded 75ms budget: ${dt.toFixed(2)}ms`); + } + assert.deepEqual( + extractSensitiveHeaderSecrets({ transactionSrc: 'edgefetch', transId: 'edgefetch-123', 'subscription-key': 'sub_secret_1234' }), + ['sub_secret_1234'], + ); +}); + +test('Wave 3 B3 Round 2 Remediations: ofac-sdn untrusted S3 cross-origin redirect fail-closed, URLSearchParams/%2b scrubbing, attr-first CSR shell, BOM sdnList', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. P1: ofac-sdn S3 redirect rejects /exports/error/SDN.XML, /Published/error/SDN.XML, evil-bucket, wrong region, and notice.html + // AND both executeScrapeCall + executeExtractCall fail closed (contentState !== 'active', zero second-hop retry) + const ofacSourceUrl = 'https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML'; + const ofacFx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', 'ofac-sdn.json'), 'utf8')) as B3Fixture; + for (const goodS3 of [ + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/Current/SDN.XML', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/2026-11-20/SDN.XML', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/4bd23a9b-4fdf-4f09-a396-4d7e72836c71/2026-11-20/6b7c553e-b803-4d42-8b47-9585baa70caa/SDN.XML?X-Amz-Expires=3600', + 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/SDN.XML', + ]) { + assert.equal(isTrustedTwinRedirectUrl('ofac-sdn', ofacSourceUrl, { finalUrl: goodS3 }), true, `good S3 must pass: ${goodS3}`); + assert.equal(isTwinRedirectedToErrorPage(ofacSourceUrl, { finalUrl: goodS3 }), false); + const okScrape = await executeScrapeCall({ + payload: { url: ofacSourceUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: ofacSourceUrl, finalUrl: goodS3, outcome: 'ok', status: 200, contentType: 'application/xml', body: ofacFx.mockPayload }], + }), + }; + }, + }); + assert.equal(okScrape.body.contentState, 'active', `good S3 scrape must stay active: ${goodS3}`); + } + + const untrustedRedirects = [ + { + name: 'nested /exports/error/SDN.XML', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/error/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'nested /Published/error/SDN.XML', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/error/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'nested /Published/error_page/SDN.XML', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/error_page/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'nested /Published/error-page/SDN.XML', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/error-page/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'nested /Published/maintenance/SDN.XML', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/maintenance/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'arbitrary S3 bucket', + finalUrl: 'https://evil-bucket.s3.us-gov-west-1.amazonaws.com/Published/Current/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'wrong S3 region', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.amazonaws.com/Published/Current/SDN.XML', + contentType: 'application/xml', + body: ofacFx.mockPayload, + }, + { + name: 'non-XML notice.html on S3 host', + finalUrl: 'https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/Current/notice.html', + contentType: 'text/html', + body: `Notice

OFAC Notice

${'Please download the latest list from our portal. '.repeat(20)}

`, + }, + ]; + for (const tc of untrustedRedirects) { + assert.equal( + isTrustedTwinRedirectUrl('ofac-sdn', ofacSourceUrl, { finalUrl: tc.finalUrl }), + false, + `${tc.name} must fail isTrustedTwinRedirectUrl`, + ); + let scrapeFetchCount = 0; + const scRes = await executeScrapeCall({ + payload: { url: ofacSourceUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + scrapeFetchCount += 1; + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: ofacSourceUrl, finalUrl: tc.finalUrl, outcome: 'ok', status: 200, contentType: tc.contentType, body: tc.body }], + }), + }; + }, + }); + assert.equal(scrapeFetchCount, 1, `${tc.name}: scrape must fail closed without second-hop fallthrough`); + assert.notEqual(scRes.body.contentState, 'active', `${tc.name}: scrape contentState must not be active`); + assert.equal(scRes.body.markdown ?? '', '', `${tc.name}: scrape must not leak untrusted body`); + + let extractFetchCount = 0; + const exRes = await executeExtractCall({ + payload: { urls: [ofacSourceUrl], noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + extractFetchCount += 1; + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: ofacSourceUrl, finalUrl: tc.finalUrl, outcome: 'ok', status: 200, contentType: tc.contentType, body: tc.body }], + }), + }; + }, + }); + assert.equal(extractFetchCount, 1, `${tc.name}: extract must fail closed without retry fallthrough`); + const exItem = (exRes.body.results as Array<{ contentState?: string; markdown?: string }>)[0]!; + assert.notEqual(exItem.contentState, 'active', `${tc.name}: extract contentState must not be active`); + assert.equal(exItem.markdown ?? '', '', `${tc.name}: extract must not leak untrusted body`); + } + + // 2. P2: URLSearchParams (! ' ( ) *) and lowercase %xx secret scrubbing in scrubSecretFromText & HTTP 502 + const uspSecret = "sec!ret'with(parens)*99"; + const uspEncoded = new URLSearchParams([['k', uspSecret]]).toString().slice(2); + const uspLower = uspEncoded.replace(/%[0-9A-F]{2}/g, (m) => m.toLowerCase()); + assert.equal( + scrubSecretFromText(`Upstream query param failed: val=${uspEncoded} lower=${uspLower}`, [uspSecret]).includes('sec%21ret'), + false, + ); + const plusLowerSecret = 'sec+ret/with space=99&token'; + const plusLowerEnc = encodeURIComponent(plusLowerSecret).replace(/%[0-9A-F]{2}/g, (m) => m.toLowerCase()); + assert.equal(scrubSecretFromText(`Upstream error val=${plusLowerEnc}`, [plusLowerSecret]).includes('%2b'), false); + + const err502UspRes = await executeScrapeCall({ + payload: { url: 'https://marketplace.api.healthcare.gov/api/v1/plans/search', discoverLlmsTxt: false, noCache: true }, + env: { + HEALTHCARE_GOV_API_KEY: uspSecret, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + throw new Error(`Upstream failed on param value=${uspEncoded} and lower=${uspLower}`); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(err502UspRes.status, 502); + const err502UspStr = JSON.stringify(err502UspRes.body); + assert.equal(err502UspStr.includes(uspSecret), false); + assert.equal(err502UspStr.includes(uspEncoded), false); + assert.equal(err502UspStr.includes(uspLower), false); + + // 2b. Mixed-case %xx escapes (e.g. sec%2bret%2Fwith+space%3d99%26token) redacted across redactSecretsInBody, scrubSecretFromText, fetchWithOfficialApiKey, and HTTP 502 + const mixedCaseEncoded = 'sec%2bret%2Fwith+space%3d99%26token'; + const nonMatchingCase = 'SEC%2bret%2Fwith+space%3d99%26token'; + assert.equal( + redactSecretsInBody(`val=${mixedCaseEncoded} keep=${nonMatchingCase}`, [plusLowerSecret]), + `val=[redacted] keep=${nonMatchingCase}`, + ); + assert.equal( + scrubSecretFromText(`Upstream mixed val=${mixedCaseEncoded}`, [plusLowerSecret]), + 'Upstream mixed val=[redacted]', + ); + const mixedFetchRes = await fetchWithOfficialApiKey({ + url: 'https://api.va.gov/services/va_facilities/v1/facilities?state=TX', + apiKey: plusLowerSecret, + injection: { kind: 'header', name: 'apikey' }, + fetchFn: async (input) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + return new Response(JSON.stringify({ echoed: mixedCaseEncoded, ok: true }), { + status: 200, + headers: { 'content-type': 'application/json' }, + }); + }, + }); + assert.equal(mixedFetchRes.ok, true); + if (mixedFetchRes.ok) { + assert.equal(mixedFetchRes.body.includes(mixedCaseEncoded), false); + assert.ok(mixedFetchRes.body.includes('[redacted]')); + } + const err502MixedRes = await executeScrapeCall({ + payload: { url: 'https://marketplace.api.healthcare.gov/api/v1/plans/search', discoverLlmsTxt: false, noCache: true }, + env: { + HEALTHCARE_GOV_API_KEY: plusLowerSecret, + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL) => { + const u = reqUrl(input); + if (u.pathname === '/robots.txt') return new Response('User-agent: *\nAllow: /\n', { status: 200 }); + throw new Error(`Upstream failed on mixed-case key=${mixedCaseEncoded}`); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(err502MixedRes.status, 502); + const err502MixedStr = JSON.stringify(err502MixedRes.body); + assert.equal(err502MixedStr.includes(plusLowerSecret), false); + assert.equal(err502MixedStr.includes(mixedCaseEncoded), false); + assert.ok(err502MixedStr.includes('[redacted]')); + + // 3. Minor edge hardening: attribute-first
(<75ms), minimal var dd= on bis.gov, BOM empty + const attrShellHtml = (title: string) => + `${title}
`; + for (const targetUrl of ['https://www.nlrb.gov/case/01-CA-123456', 'https://example.com/page']) { + const t0 = performance.now(); + const res = postExtractHtml(attrShellHtml('App'), targetUrl, ''); + const dt = performance.now() - t0; + assert.equal(res, null, `attribute-first CSR shell on ${targetUrl} must return null`); + assert.ok(dt < 75, `attribute-first CSR shell on ${targetUrl} exceeded 75ms budget: ${dt.toFixed(2)}ms`); + } + const ddMinimalHtml = `BIS

Please enable JS and disable any ad blocker.

`; + assert.equal(postExtractHtml(ddMinimalHtml, 'https://www.bis.gov/entity-list', ''), null); + + const bomEmptySdn = `\uFEFF11/28/20260`; + const bomSdnScrape = await executeScrapeCall({ + payload: { url: ofacSourceUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: ofacSourceUrl, outcome: 'ok', status: 200, contentType: 'application/xml', body: bomEmptySdn }], + }), + }; + }, + }); + assert.equal(bomSdnScrape.body.contentState, 'empty_shell'); +}); diff --git a/internal/classify/content_state.go b/internal/classify/content_state.go index 2924a6e..151a543 100644 --- a/internal/classify/content_state.go +++ b/internal/classify/content_state.go @@ -1209,7 +1209,7 @@ func HasExternalOrWidgetIframe(rawHTML, pageURL string) IframeScanResult { var ( reGHJobPathCSGo = newLazyRegexp(`(?i)/jobs/(\d+)`) reBoardJobUUIDCSGo = newLazyRegexp(`(?i)^/[^/]+/([0-9a-f]{8}-[0-9a-f-]{27})\b`) - reRedirectErrorPathCS = newLazyRegexp(`(?i)^/(?:[a-z]{2}(?:-[a-z]{2})?/)?(?:error|errors|404(?:-page)?|not-found|page-not-found(?:-sub)?)(?:/.*|\.(?:html?|aspx?|php|jsp))?/?$`) + reRedirectErrorPathCS = newLazyRegexp(`(?i)(?:^|/)(?:error|errors|40[34](?:-page)?|not-?found|page-?not-?found(?:-sub)?|sorrypages?)(?:\.[a-z0-9]{1,8})?(?:/|$)`) ) // ClassifyContentStateFull evaluates ContentStateInput with full ATS silent-redirect, validThrough expiry, and rendered-iframe awareness. @@ -2422,6 +2422,26 @@ func isEmptyJSONResponseShellCSGo(raw string) bool { return hasEmptyContainer && !hasContent } +func isEmptySDNListShellCSGo(raw string) bool { + trimmed := strings.TrimSpace(strings.TrimLeft(strings.TrimSpace(raw), "\uFEFF")) + if len(trimmed) == 0 || len(trimmed) > 65536 || trimmed[0] != '<' { + return false + } + headLen := len(trimmed) + if headLen > 4096 { + headLen = 4096 + } + head := strings.ToLower(trimmed[:headLen]) + if !strings.Contains(head, " 8192 || trimmed[0] != '<' { @@ -2440,6 +2460,9 @@ func isEmptyXMLFeedShellCSGo(raw string) bool { if strings.Contains(low, "") && !strings.Contains(low, "= 200 && status < 300 && rawHTML != "" && words < 80 && + !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { + lowF5 := strings.ToLower(reScrubDomBlocksCSGo.ReplaceAllString(capStringBytesUTF8CSGo(rawHTML, 65_536), " ")) + if strings.Contains(lowF5, "the requested url was rejected") && + strings.Contains(lowF5, "your support id is") { + return ContentStateResult{ + State: "temporarily_unavailable", + Reason: "HTTP " + strconv.Itoa(status) + " response is an F5 BIG-IP ASM WAF block page.", + Confidence: 0.92, + } + } + } if (status == 503 || status == 402 || status == 403 || status == 406 || status == 429) && rawHTML != "" && words < 120 && !hasRichSchemaJSONLDCSGo(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)) { if status == 403 || status == 429 { @@ -2863,8 +2898,8 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) Confidence: 0.90, } } - if ((status >= 200 && status < 300) || status == 404 || status == 410) && words < 120 && rawHTML != "" { - if isEmptyJSONResponseShellCSGo(rawHTML) || isEmptyXMLFeedShellCSGo(rawHTML) { + if ((status >= 200 && status < 300) || status == 404 || status == 410) && rawHTML != "" { + if (words < 120 && (isEmptyJSONResponseShellCSGo(rawHTML) || isEmptyXMLFeedShellCSGo(rawHTML))) || isEmptySDNListShellCSGo(rawHTML) { return ContentStateResult{ State: "empty_shell", Reason: "HTTP 2xx feed/JSON response has an empty result set / empty object shell.", @@ -2995,6 +3030,7 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) strings.Contains(lowRaw, `id="__nuxt"`) || strings.Contains(lowRaw, `id='__nuxt'`) || strings.Contains(lowRaw, ``) || diff --git a/internal/classify/content_state_soft404_test.go b/internal/classify/content_state_soft404_test.go index 2c5d482..de2b534 100644 --- a/internal/classify/content_state_soft404_test.go +++ b/internal/classify/content_state_soft404_test.go @@ -683,4 +683,53 @@ func TestClassifyContentStateSalesforceAuraCSRShell(t *testing.T) { if gotKasada429.State != "temporarily_unavailable" { t.Fatalf("expected HTTP 429 Kasada bot-gate shell to classify temporarily_unavailable, got %+v", gotKasada429) } + + // 6. Empty > 8192 bytes (10 KB) with zero elements -> empty_shell + largeEmptySDN := `11/28/20260` + if len(largeEmptySDN) <= 8192 { + t.Fatalf("test fixture must exceed 8192 bytes, got %d", len(largeEmptySDN)) + } + gotLargeSDN := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + FinalURL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + RawHTML: largeEmptySDN, + Markdown: largeEmptySDN, + }) + if gotLargeSDN.State != "empty_shell" { + t.Fatalf("expected >8KiB empty to classify empty_shell, got %+v", gotLargeSDN) + } + + // 7. Nested /exports/error, /exports/error/SDN.XML, /Published/error/SDN.XML, /error.xml, and /Error.aspx redirect paths -> soft_404 + for _, errFin := range []string{ + "https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/error", + "https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/exports/error/SDN.XML", + "https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Published/error/SDN.XML", + "https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/error.xml", + "https://wc2h-sls-prod-public-published.s3.us-gov-west-1.amazonaws.com/Error.aspx", + } { + gotRedir := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + FinalURL: errFin, + RawHTML: `Notice

` + strings.Repeat("Service error details ", 120) + `

`, + Markdown: strings.Repeat("Service error details ", 120), + }) + if gotRedir.State != "soft_404" { + t.Fatalf("expected redirect to %s to classify soft_404, got %+v", errFin, gotRedir) + } + } + + // 8. UTF-8 BOM-prefixed > 8192-byte empty -> empty_shell + bomLargeSDN := "\uFEFF" + largeEmptySDN + gotBOMSDN := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + FinalURL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + RawHTML: bomLargeSDN, + Markdown: bomLargeSDN, + }) + if gotBOMSDN.State != "empty_shell" { + t.Fatalf("expected UTF-8 BOM >8KiB empty to classify empty_shell, got %+v", gotBOMSDN) + } } diff --git a/internal/extract/declarative.go b/internal/extract/declarative.go index 86cc27b..7c07578 100644 --- a/internal/extract/declarative.go +++ b/internal/extract/declarative.go @@ -818,6 +818,73 @@ func (m *DeclarativeTwinMatch) EffectiveMaxBytes() int { return 4 << 20 } +// AllowCrossOriginRedirects reports whether this twin route is vetted to follow a trusted cross-origin CDN/S3 redirect. +func (m *DeclarativeTwinMatch) AllowCrossOriginRedirects() bool { + if m == nil { + return false + } + id := m.AdapterID + if id == "" { + id = m.ID + } + if (id == "ofac-sdn" || m.ID == "ofac-sdn") && isOfacSdnTrustedSourceURLGo(m.FetchURL) { + return true + } + if (id == "musicbrainz-coverart" || m.ID == "musicbrainz-coverart") && isCoverArtArchiveSourceURLGo(m.FetchURL) { + return true + } + return false +} + +// AllowTruncatedStream reports whether a bounded streaming prefix (`maxBytes < 4 MiB` for text twins, or `cms-price-transparency` / `web-compat-data`) may be formatted when truncated. +func (m *DeclarativeTwinMatch) AllowTruncatedStream() bool { + if m == nil { + return false + } + mb := m.EffectiveMaxBytes() + if mb <= 0 || mb > (4<<20) { + return false + } + id := m.AdapterID + if id == "" { + id = m.ID + } + if m.Kind == classify.KindText { + return id != "us-cfr-govinfo" && m.ID != "us-cfr-govinfo" && mb < (4<<20) + } + return id == "cms-price-transparency" || m.ID == "cms-price-transparency" || id == "web-compat-data" || m.ID == "web-compat-data" +} + +// IsDomainSpecificExtractorID reports whether extractorID is a domain-specific adapter that preempts generic custom-domain storefront overlay enrichment. +func IsDomainSpecificExtractorID(extractorID string) bool { + id := strings.ToLower(strings.TrimSpace(extractorID)) + if id == "" || strings.HasPrefix(id, "schema-") { + return false + } + switch id { + case "shopify", + "woocommerce", + "bigcommerce-store", + "squarespace-commerce", + "sfcc-demandware", + "shopware-magento", + "shopify-hydrogen", + "shopify-storefront-graphql", + "shopify-filter-apps", + "aem", + "arc-xp", + "townnews-blox", + "brightspot", + "hubspot-cms", + "wordpress-vip-newspack", + "headless-commerce", + "headless-cms-delivery": + return false + default: + return true + } +} + type declarativeWildcard struct { kind string // "suffix", "prefix", or "infix" pattern string @@ -2344,136 +2411,6 @@ func (m *DeclarativeTwinMatch) ValidateRedirectTarget(finalURL string) bool { return false } -func buildResolvedTwinURLGo(route DeclarativeRouteSpec, u *url.URL, host string, params map[string]string) (string, bool) { - twin := route.Twin - var candidate string - if twin.FetchURL == "{requestUrl}" { - cloned := *u - cloned.Fragment = "" - cloned.User = nil - cloned.Host = host - if twin.OverridePathIf != nil { - cleanCur := strings.TrimRight(cloned.Path, "/") - if cleanCur == "" { - cleanCur = "/" - } - for _, mp := range twin.OverridePathIf.MatchPaths { - want := strings.TrimRight(mp, "/") - if want == "" { - want = "/" - } - if strings.EqualFold(cleanCur, want) { - cloned.Path = twin.OverridePathIf.NewPath - cloned.RawPath = "" - break - } - } - } - if len(twin.DefaultQueryParams) > 0 || len(twin.SetQueryParams) > 0 { - q := cloned.Query() - queryModified := false - for k, v := range twin.DefaultQueryParams { - if q.Get(k) == "" { - q.Set(k, v) - queryModified = true - } - } - for k, v := range twin.SetQueryParams { - if q.Get(k) != v || len(q[k]) != 1 { - q.Set(k, v) - queryModified = true - } - } - if queryModified { - keys := make([]string, 0, len(q)) - for k := range q { - keys = append(keys, k) - } - sort.Slice(keys, func(i, j int) bool { - if keys[i] == "ss" && keys[j] == "in_iframe" { - return true - } - if keys[i] == "in_iframe" && keys[j] == "ss" { - return false - } - return keys[i] < keys[j] - }) - var qParts []string - for _, k := range keys { - ek := url.QueryEscape(k) - for _, v := range q[k] { - qParts = append(qParts, ek+"="+url.QueryEscape(v)) - } - } - cloned.RawQuery = strings.Join(qParts, "&") - } - } - candidate = cloned.String() - } else { - rawSet := make(map[string]bool, len(twin.RawPathParams)) - for _, rp := range twin.RawPathParams { - rawSet[rp] = true - } - candidate = expandTemplate(twin.FetchURL, func(key string) string { - switch key { - case "host": - return host - case "origin": - return "https://" + host - case "baseCleanUrl": - return "https://" + host + strings.TrimRight(u.Path, "/") - } - val := params[key] - if rawSet[key] { - return encodeSafeSubpath(val) - } - return encodeURIComponent(val) - }) - } - if !isSafePublicTwinURL(candidate) { - return "", false - } - return candidate, true -} - -func normalizeDeclarativeAccept(kind, rawAccept string) string { - if kind != "text" { - if strings.TrimSpace(rawAccept) == "" { - return "application/json" - } - return strings.TrimSpace(rawAccept) - } - trimmed := strings.ToLower(strings.TrimSpace(rawAccept)) - if isAllowedGoKindTextAcceptGo(trimmed) { - return trimmed - } - for _, rawPart := range strings.Split(trimmed, ",") { - primary := strings.TrimSpace(strings.SplitN(rawPart, ";", 2)[0]) - if isAllowedGoKindTextAcceptGo(primary) { - return primary - } - } - return "text/plain" -} - -func isAllowedGoKindTextAcceptGo(mime string) bool { - switch mime { - case "text/html", "text/markdown", "text/x-markdown", "application/xml", "text/xml", "application/rss+xml", "application/atom+xml", "application/json", "text/calendar", "text/plain": - return true - default: - return false - } -} - -func isSafePublicHostnameGo(h string) bool { - return IsSafePublicHostname(h) -} - -// IsSafeDeclarativeTwinURL reports whether raw is a safe public HTTPS declarative twin URL. -func IsSafeDeclarativeTwinURL(raw string) bool { - return isSafePublicTwinURL(raw) -} - var ( reWorkdayHostTenantGo = newLazyRegexp(`^([a-z0-9-]+)\.(?:wd\d+\.)?(myworkday(?:jobs|site)\.com)$`) reTwinRedirectErrorPathGo = newLazyRegexp(`(?i)(?:^|/)(?:errors?|40[34](?:-page)?|not-?found|page-?not-?found(?:-sub)?|notfound|sorrypages?)(?:\.[a-z0-9]{1,8})?(?:/|$)`) @@ -2661,6 +2598,136 @@ func ValidateTwinRedirectFull(twinID, initialFetchURL, finalURL, selfHost string return false, errorPage } +func buildResolvedTwinURLGo(route DeclarativeRouteSpec, u *url.URL, host string, params map[string]string) (string, bool) { + twin := route.Twin + var candidate string + if twin.FetchURL == "{requestUrl}" { + cloned := *u + cloned.Fragment = "" + cloned.User = nil + cloned.Host = host + if twin.OverridePathIf != nil { + cleanCur := strings.TrimRight(cloned.Path, "/") + if cleanCur == "" { + cleanCur = "/" + } + for _, mp := range twin.OverridePathIf.MatchPaths { + want := strings.TrimRight(mp, "/") + if want == "" { + want = "/" + } + if strings.EqualFold(cleanCur, want) { + cloned.Path = twin.OverridePathIf.NewPath + cloned.RawPath = "" + break + } + } + } + if len(twin.DefaultQueryParams) > 0 || len(twin.SetQueryParams) > 0 { + q := cloned.Query() + queryModified := false + for k, v := range twin.DefaultQueryParams { + if q.Get(k) == "" { + q.Set(k, v) + queryModified = true + } + } + for k, v := range twin.SetQueryParams { + if q.Get(k) != v || len(q[k]) != 1 { + q.Set(k, v) + queryModified = true + } + } + if queryModified { + keys := make([]string, 0, len(q)) + for k := range q { + keys = append(keys, k) + } + sort.Slice(keys, func(i, j int) bool { + if keys[i] == "ss" && keys[j] == "in_iframe" { + return true + } + if keys[i] == "in_iframe" && keys[j] == "ss" { + return false + } + return keys[i] < keys[j] + }) + var qParts []string + for _, k := range keys { + ek := url.QueryEscape(k) + for _, v := range q[k] { + qParts = append(qParts, ek+"="+url.QueryEscape(v)) + } + } + cloned.RawQuery = strings.Join(qParts, "&") + } + } + candidate = cloned.String() + } else { + rawSet := make(map[string]bool, len(twin.RawPathParams)) + for _, rp := range twin.RawPathParams { + rawSet[rp] = true + } + candidate = expandTemplate(twin.FetchURL, func(key string) string { + switch key { + case "host": + return host + case "origin": + return "https://" + host + case "baseCleanUrl": + return "https://" + host + strings.TrimRight(u.Path, "/") + } + val := params[key] + if rawSet[key] { + return encodeSafeSubpath(val) + } + return encodeURIComponent(val) + }) + } + if !isSafePublicTwinURL(candidate) { + return "", false + } + return candidate, true +} + +func normalizeDeclarativeAccept(kind, rawAccept string) string { + if kind != "text" { + if strings.TrimSpace(rawAccept) == "" { + return "application/json" + } + return strings.TrimSpace(rawAccept) + } + trimmed := strings.ToLower(strings.TrimSpace(rawAccept)) + if isAllowedGoKindTextAcceptGo(trimmed) { + return trimmed + } + for _, rawPart := range strings.Split(trimmed, ",") { + primary := strings.TrimSpace(strings.SplitN(rawPart, ";", 2)[0]) + if isAllowedGoKindTextAcceptGo(primary) { + return primary + } + } + return "text/plain" +} + +func isAllowedGoKindTextAcceptGo(mime string) bool { + switch mime { + case "text/html", "text/markdown", "text/x-markdown", "application/xml", "text/xml", "application/rss+xml", "application/atom+xml", "application/json", "text/calendar", "text/plain": + return true + default: + return false + } +} + +func isSafePublicHostnameGo(h string) bool { + return IsSafePublicHostname(h) +} + +// IsSafeDeclarativeTwinURL reports whether raw is a safe public HTTPS declarative twin URL. +func IsSafeDeclarativeTwinURL(raw string) bool { + return isSafePublicTwinURL(raw) +} + // FormatJSONWithExtractSpec formats a raw JSON/Inertia twin payload against an explicit DeclarativeExtractSpec and route params. func FormatJSONWithExtractSpec(rawBody string, ext DeclarativeExtractSpec, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { if params == nil { @@ -4992,6 +5059,12 @@ func (m *DeclarativeTwinMatch) formatTextTwin(rawBody string) (*DeclarativeForma if IsWave3PropRestIRTextMode(ext.TextMode) { return FormatWave3PropRestIRTextDoc(ext.TextMode, rawBody, m.params, m.origURL) } + if IsWave3TradeTextMode(ext.TextMode) { + return FormatWave3TradeTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } + if IsWave3RegulatorsHealthTextMode(ext.TextMode) { + return FormatWave3RegulatorsHealthTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } if ext.JSONSource == "inertia_data_page" { jsonBytes, ok := extractInertiaDataPageBytesGo(rawBody) if !ok { @@ -5811,6 +5884,15 @@ func (m *DeclarativeTwinMatch) formatJSONBytesTwin(rawBytes []byte, ext Declarat if IsWave3StoreAddonsJSONMode(ext.JSONMode) { return FormatWave3StoreAddonsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) } + if IsWave3TradeJSONMode(ext.JSONMode) { + return FormatWave3TradeJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3RegulatorsJSONMode(ext.JSONMode) { + return FormatWave3RegulatorsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3RegulatorsHealthJSONMode(ext.JSONMode) { + return FormatWave3RegulatorsHealthJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } var rootObj map[string]any var selectiveCache *selectiveJSONCache unwrappedArray := false diff --git a/internal/extract/declarative_html.go b/internal/extract/declarative_html.go index b895821..94a36bc 100644 --- a/internal/extract/declarative_html.go +++ b/internal/extract/declarative_html.go @@ -4635,6 +4635,152 @@ func firstNonWhitespaceByteDeclHTML(s string) byte { return 0 } +func hasHTMLTagPrefixDeclHTML(lower string, prefix string) bool { + off := 0 + for { + idx := strings.Index(lower[off:], prefix) + if idx < 0 { + return false + } + end := off + idx + len(prefix) + if end < len(lower) { + next := lower[end] + if next == '>' || next == '/' || next == ' ' || next == '\t' || next == '\n' || next == '\r' { + return true + } + } + off = end + } +} + +func hasEmptyAppOrDivMountDeclHTML(probe, probeLower string) bool { + if strings.Contains(probeLower, `data-ng-app="app.main"`) || strings.Contains(probeLower, `data-ng-app='app.main'`) { + return true + } + if strings.Contains(probeLower, "loading_container") { + if _, ok := findOpenTagLinearDeclHTML(probe, "", func(attrStr string) bool { + return attrHasTokenLinearDeclHTML(attrStr, "class", "loading_container") + }, len(probe)); ok { + return true + } + } + for _, customTag := range []string{"app-root", "hts-root"} { + openNeedle := "<" + customTag + closeNeedle := "" + off := 0 + for { + idx := strings.Index(probeLower[off:], openNeedle) + if idx < 0 { + break + } + tagStart := off + idx + afterName := tagStart + len(openNeedle) + if afterName < len(probeLower) { + nc := probeLower[afterName] + if nc == '>' || nc == ' ' || nc == '\t' || nc == '\n' || nc == '\r' { + gtRel := strings.IndexByte(probeLower[afterName:], '>') + if gtRel >= 0 && strings.IndexByte(probeLower[afterName:afterName+gtRel], '<') < 0 { + innerStart := afterName + gtRel + 1 + trimmedRest := strings.TrimLeft(probeLower[innerStart:], " \t\r\n") + if strings.HasPrefix(trimmedRest, closeNeedle) { + return true + } + } + } + } + off = afterName + } + } + off := 0 + for { + idx := strings.Index(probeLower[off:], "') + if gtRel >= 0 && strings.IndexByte(probeLower[afterName:afterName+gtRel], '<') < 0 { + attrStr := probe[afterName : afterName+gtRel] + if idVal, hasID := getAttrValueLinearDeclHTML(attrStr, "id"); hasID { + switch strings.ToLower(strings.TrimSpace(idVal)) { + case "root", "app", "application", "__next", "react-root": + innerStart := afterName + gtRel + 1 + trimmedRest := strings.TrimLeft(probeLower[innerStart:], " \t\r\n") + if strings.HasPrefix(trimmedRest, "") { + return true + } + } + } + off = afterName + gtRel + 1 + continue + } + } + } + off = afterName + } + return false +} + +// IsObviousUnhydratedCSRShell reports whether rawHTML is an empty client-side SPA mount shell without SSR or JSON-LD content. +func IsObviousUnhydratedCSRShell(rawHTML string) bool { + if rawHTML == "" { + return false + } + firstByte := firstNonWhitespaceByteDeclHTML(rawHTML) + if firstByte == 0 || firstByte == '{' || firstByte == '[' { + return false + } + if strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return false + } + probe := rawHTML + if len(probe) > 262_144 { + probe = probe[:262_144] + } + probeLower := strings.ToLower(probe) + if !hasEmptyAppOrDivMountDeclHTML(probe, probeLower) { + return false + } + fullLower := probeLower + if len(rawHTML) > len(probe) { + fullLower = strings.ToLower(rawHTML) + } + if hasHTMLTagPrefixDeclHTML(fullLower, "/...html pages to .model.json / .infinity.json Sling model twins, with clean HTML fallback when disabled or on 404/403.","domains":["wknd.site"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://wknd.site/content/wknd/us/en.html","https://wknd.site/content/wknd/us/en.model.json"],"routes":[{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".model.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".infinity.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".html","pathSegments":["content",{"param":"siteSeg","charset":"url_seg","reserved":["pkg","dam"],"minLen":1,"maxLen":120},{"param":"pagePath","charset":"safe_subpath","stripSuffix":".html","greedy":true,"minLen":1,"maxLen":400}]},"twin":{"fetchUrl":"https://{host}/content/{siteSeg}/{pagePath}.model.json","rawPathParams":["pagePath"],"kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}}],"htmlRoutes":[{"id":"aem","match":{"exactSegments":false},"mode":"aem_html"}]},{"id":"aftership-tracking-page","name":"AfterShip Order Tracking Pages","category":"commerce-social","description":"Extracts hydrated AfterShip tracking portals and shipment checkpoints while enforcing strict_robots for *.aftership.com and rejecting Cloudflare/empty shells.","domains":["*.aftership.com","www.aftership.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nealsyardremedies.aftership.com/"],"htmlRoutes":[{"id":"aftership-tracking-page","match":{"exactSegments":false},"mode":"aftership_tracking_html"}]},{"id":"agenda-portal-pack","name":"Municipal Agenda Portal Pack (eScribe, NovusAgenda, CivicWeb)","category":"public-records","description":"Extracts public meeting lists, agenda links, and documents from eScribe, NovusAgenda, and CivicWeb/iCompass portals.","domains":["*.escribemeetings.com","*.novusagenda.com","*.civicweb.net"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pub-london.escribemeetings.com/","https://houston.novusagenda.com/agendapublic/","https://millcreekwa.civicweb.net/Portal/"],"htmlRoutes":[{"id":"agenda-portal-pack","match":{"exactSegments":false},"mode":"agenda_portal_html"}]},{"id":"airnow","name":"AirNow Air Quality API","category":"research-health","description":"US EPA AirNow air quality observation and forecast JSON API (API_KEY query parameter) with airnow.gov HTML fallback.","domains":["www.airnowapi.org","airnowapi.org","www.airnow.gov","airnow.gov","docs.airnowapi.org"],"auth_mode":"key","exampleUrls":["https://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=20002&distance=25","https://www.airnow.gov/?city=Washington&state=DC&country=USA"],"routes":[{"match":{"hosts":["www.airnowapi.org","airnowapi.org"],"pathPrefix":"/aq/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"application/json"},"kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"airnow_json"}}],"htmlRoutes":[{"id":"airnow","match":{"hosts":["www.airnow.gov","airnow.gov","docs.airnowapi.org"],"exactSegments":false},"mode":"airnow_html"}]},{"id":"algolia","name":"Algolia On-Site Search","category":"developer","description":"Opt-in page-key adapter for Algolia search index JSON twins; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["latency-dsn.algolia.net"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://latency-dsn.algolia.net/1/indexes/instant_search?query=apple"],"routes":[{"match":{"hostSubdomain":{"suffix":".algolia.net","param":"appHost"},"pathSegments":["1","indexes",{"param":"indexName","charset":"url_seg","minLen":1,"maxLen":120},{"param":"op","allowValues":["query"],"optional":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"algolia_search"}}],"htmlRoutes":[{"id":"algolia","match":{"exactSegments":false},"mode":"algolia_html"}]},{"id":"american-legal-publishing","name":"American Legal Publishing Municipal Codes","category":"public-records","description":"HTML extractor for American Legal Publishing Code Library municipal codes and ordinance sections.","domains":["codelibrary.amlegal.com"],"auth_mode":"html","exampleUrls":["https://codelibrary.amlegal.com/codes/san_francisco/latest/overview","https://codelibrary.amlegal.com/codes/chicago/latest/overview"],"htmlRoutes":[{"id":"american-legal-publishing","match":{"exactSegments":false},"mode":"amlegal_html"}]},{"id":"ap-news","name":"Associated Press (AP News)","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and RichTextStoryBody from AP News HTML pages while respecting robots.txt feed exclusions.","domains":["apnews.com","www.apnews.com"],"auth_mode":"html","exampleUrls":["https://apnews.com/hub/us-news"],"htmlRoutes":[{"id":"ap-news","match":{"exactSegments":false},"mode":"ap_news_html"}]},{"id":"api-docs-portals","name":"API Docs Portals (OpenAPI, Redocly, Postman, Stoplight)","category":"developer","description":"Universal extractor for OpenAPI 2/3 JSON specs, Postman Collection JSON, and Redocly/Postman/Stoplight API documentation portals.","domains":["petstore3.swagger.io","redocly.com","www.postman.com","learn.openapis.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://petstore3.swagger.io/api/v3/openapi.json","https://learn.openapis.org/"],"routes":[{"match":{"anyOf":[{"pathEquals":["/openapi.json","/swagger.json","/api-docs","/v2/api-docs","/v3/api-docs"]},{"pathSuffix":"/openapi.json"},{"pathSuffix":"/swagger.json"},{"pathSuffix":"/collection.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openapi_postman_json"}}],"htmlRoutes":[{"id":"api-docs-portals","match":{"exactSegments":false},"mode":"api_docs_portal_html"}]},{"id":"appfolio-listings","name":"AppFolio Rental Listings","category":"commerce-social","description":"Extracts residential rental listings from AppFolio property management portals while strictly honoring Crawl-delay: 10, robots.txt, and /page-not-found-sub soft-404 rejection.","domains":["*.appfolio.com"],"universalEngine":false,"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"max_concurrent":1,"exampleUrls":["https://lapmg.appfolio.com/listings"],"htmlRoutes":[{"id":"appfolio-listings","match":{"exactSegments":false},"mode":"appfolio_listings_html"}]},{"id":"apple-app-store","name":"Apple App Store","category":"developer","description":"Extracts structured iOS/macOS App Store metadata (developer, rating, review count, price, category, version notes, and description).","domains":["apps.apple.com"],"exampleUrls":["https://apps.apple.com/us/app/cloudflare-one-agent/id6443476492"],"htmlRoutes":[{"match":{"pathContainsSegment":"app","minSegments":2},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication","WebApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s+on the App\\s*Store$","cssText":["h1"]},"developer":{"jsonLdPaths":["author.name"],"cssText":["h2.product-header__identity"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.reviewCount","aggregateRating.ratingCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} ratings)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"osSys":{"jsonLdPaths":["operatingSystem"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"version":{"regexExtract":{"source":"clean_html","pattern":"Version\\s+([0-9][0-9A-Za-z._-]*)","group":1}}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Platform","template":"{osSys}","whenVar":"osSys"},{"label":"Latest Version","template":"`{version}`","whenVar":"version"}],"sections":[{"heading":"Description","textVar":"desc"}]}]},{"id":"arc-xp","name":"Arc XP Publishing (Fusion / ANS)","category":"commerce-social","description":"Extracts Arc XP /pf/api/v3/content/fetch ANS JSON twins and inline Fusion.globalContent publisher articles.","domains":["www.clickondetroit.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.clickondetroit.com/news/local/2026/11/27/1-killed-in-shooting-in-downtown-birmingham/"],"routes":[{"match":{"pathPrefix":"/pf/api/v3/content/fetch/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"arc_xp_ans"}}],"htmlRoutes":[{"id":"arc-xp","match":{"exactSegments":false},"mode":"arc_xp_html"}]},{"id":"arcgis-hub","name":"Esri ArcGIS Hub Open Data Portals","category":"public-records","description":"Extracts ArcGIS Hub /api/v3/datasets (with sparse field projection) and /api/search/v1 OGC GeoJSON item collections plus hydrated HTML.","domains":["hub.arcgis.com","*.hub.arcgis.com","*.opendata.arcgis.com","opendata.dc.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3","https://opendata.dc.gov/api/v3/datasets?page[size]=1"],"routes":[{"match":{"pathPrefix":"/api/v3/datasets"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields[datasets]":"name,description,owner,modified,created,url,orgName,recordCount,licenseInfo,tags,hubType"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}},{"match":{"pathPrefix":"/api/search/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json, application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}}],"htmlRoutes":[{"id":"arcgis-hub","match":{"exactSegments":false},"mode":"arcgis_hub_html"}]},{"id":"arcgis","name":"ArcGIS REST FeatureServer & MapServer Layers","category":"public-records","description":"Upgrades public ArcGIS REST FeatureServer/MapServer layer URLs to ?f=json metadata, geometry type, spatial reference, and field schemas.","domains":["services.arcgis.com"],"universalEngine":true,"exampleUrls":["https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/2020_Census_State_Apportionment/FeatureServer/0"],"match":{"arcgisRestLayer":true,"pathSegments":[{"param":"restPath","charset":"safe_subpath","greedy":true,"maxLen":500}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"rejectIfFieldTruthy":"error","vars":{"name":{"paths":["name","mapName","serviceDescription"],"trim":true,"default":"ArcGIS Service"},"desc":{"paths":["description","serviceDescription"],"format":"strip_tags"},"descShort":{"paths":["description","serviceDescription"],"format":"strip_tags","sliceMax":260},"geomType":{"paths":["geometryType"]},"maxRec":{"paths":["maxRecordCount"]},"capabilities":{"paths":["capabilities"]},"wkid":{"paths":["extent.spatialReference.latestWkid","extent.spatialReference.wkid"]},"baseClean":{"template":"https://{host}/{restPath}"},"hasFields":{"paths":["fields"],"format":"array_len","excludeEquals":"0"},"hasLayers":{"paths":["layers"],"format":"array_len","excludeEquals":"0"}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"REST Endpoint","template":"`{baseClean}`"},{"label":"Geometry Type","template":"`{geomType}`","whenVar":"geomType"},{"label":"Spatial Reference (WKID)","template":"`EPSG:{wkid}`","whenVar":"wkid"},{"label":"Max Record Count / Query","template":"{maxRec}","whenVar":"maxRec"},{"label":"Capabilities","template":"{capabilities}","whenVar":"capabilities"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Layer Fields","headingTemplate":"Layer Fields ({count})","whenVar":"hasFields","arrayPath":"fields","limit":40,"columns":[{"header":"Field","paths":["name"],"code":true},{"header":"Alias","paths":["alias"]},{"header":"Type","paths":["type"],"stripPrefix":"esriFieldType"}]},{"heading":"Sublayers","headingTemplate":"Sublayers ({count})","whenVar":"hasLayers","unlessVar":"hasFields","arrayPath":"layers","limit":30,"itemVars":{"layerId":{"paths":["id"],"default":"0"},"layerName":{"paths":["name"],"default":"Layer"}},"columns":[{"header":"ID","paths":["id"]},{"header":"Layer","template":"[{layerName}]({baseClean}/{layerId})"},{"header":"Geometry","paths":["geometryType"]}]}]}},{"id":"arxiv","name":"arXiv Preprints","category":"research-health","description":"Extracts arXiv preprint title, authors, submission date, subject classifications, PDF/HTML links, and clean abstract from arxiv.org/abs/ (strictly respecting robots.txt).","domains":["arxiv.org","www.arxiv.org"],"exampleUrls":["https://arxiv.org/abs/1706.03762"],"htmlRoutes":[{"match":{"pathSegments":["abs",{"param":"arxivId","charset":"arxiv_id","greedy":true}]},"mode":"dom","requireVars":["title","abstract"],"vars":{"titleDom":{"cssText":["h1.title"],"stripPrefix":"Title:"},"title":{"metaKeys":["citation_title"],"fallbackVar":"titleDom"},"authors":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":20,"join":", "},"authorsShort":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":4,"join":", "},"date":{"metaKeys":["citation_date","citation_online_date"]},"doi":{"metaKeys":["citation_doi"]},"primarySubject":{"cssText":["span.primary-subject"]},"absMeta":{"metaKeys":["citation_abstract"]},"abstract":{"cssText":["blockquote.abstract"],"stripPrefix":"Abstract:","fallbackVar":"absMeta"},"abstractShort":{"template":"{abstract}","whenVars":["abstract"],"sliceMax":260},"pdfUrl":{"template":"https://arxiv.org/pdf/{arxivId}"},"htmlPaperUrl":{"template":"https://arxiv.org/html/{arxivId}"}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"date","bullets":[{"label":"arXiv ID","template":"`{arxivId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Submitted","template":"{date}","whenVar":"date"},{"label":"Primary Subject","template":"{primarySubject}","whenVar":"primarySubject"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text","template":"[PDF]({pdfUrl}) · [ar5iv / HTML]({htmlPaperUrl})"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linkTemplates":["https://arxiv.org/pdf/{arxivId}","https://arxiv.org/html/{arxivId}"]}]},{"id":"association-ams-pack","name":"Association AMS Pack (Novi AMS, MemberClicks, YourMembership)","category":"commerce-social","description":"Extracts association events and member directories from Novi AMS, MemberClicks / Personify WebLink, and YourMembership portals while rejecting login gates and error shells.","domains":["www.austinaptassoc.com","web.arlingtonchamber.org","*.memberclicks.net","*.site-ym.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.austinaptassoc.com/events","https://web.arlingtonchamber.org/events"],"htmlRoutes":[{"id":"association-ams-pack","match":{"exactSegments":false},"mode":"association_ams_html"}]},{"id":"atlassian-statuspage","name":"Atlassian Statuspage","category":"developer","description":"Extracts Atlassian Statuspage /api/v2/summary.json and incidents.json endpoints (when robots.txt permits) plus Statuspage HTML pages.","domains":["statuspage.io","www.statuspage.io","www.githubstatus.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.githubstatus.com/","https://discord.statuspage.io/"],"routes":[{"match":{"pathEquals":["/api/v2/summary.json","/api/v2/incidents.json","/api/v2/status.json","/api/v2/components.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"statuspage_v2"}}],"htmlRoutes":[{"id":"atlassian-statuspage","match":{"exactSegments":false},"mode":"statuspage_html"}]},{"id":"auto-dealer-inventory","name":"Auto Dealer Inventory (Universal)","category":"commerce-social","description":"Universal automotive dealer SRP/VDP HTML and Schema.org Vehicle/Car JSON-LD extractor for Dealer.com, Dealer Inspire, and DealerOn storefronts.","domains":["www.johneaglehonda.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.johneaglehonda.com/used-inventory/index.htm","https://www.johneaglehonda.com/used/Honda/2021-Honda-Accord--for-sale-houston-texas-f65329b9ac180db0f233180fce0b2e1d.htm"],"htmlRoutes":[{"id":"auto-dealer-inventory","match":{"anyOf":[{"pathPrefix":"/used-inventory/"},{"pathPrefix":"/new-inventory/"},{"pathPrefix":"/all-inventory/"},{"pathPrefix":"/certified-inventory/"},{"pathPrefix":"/inventory/"},{"pathPrefix":"/used/"},{"pathPrefix":"/new/"},{"pathPrefix":"/vehicles/"},{"pathPrefix":"/vehicle/"},{"pathPrefix":"/vdp/"},{"pathPrefix":"/srp/"},{"pathEquals":["/searchused.aspx","/searchnew.aspx","/searchall.aspx"]}]},"mode":"auto_dealer_html"}]},{"id":"auto-parts-fitment","name":"Auto Parts Fitment & SKU Extractor","category":"commerce-social","description":"Extracts auto parts SKUs, part numbers, strict GTINs, and explicit vehicle fitment (year, make, model, engine) for AutoZone, O'Reilly, NAPA, and Advance Auto Parts.","domains":["autozone.com","www.autozone.com","oreillyauto.com","www.oreillyauto.com","napaonline.com","www.napaonline.com","shop.advanceautoparts.com","www.advanceautoparts.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.autozone.com/brakes-and-traction-control/brake-pads/duralast-gold-ceramic-brake-pads-dg1410/141001_0_0","https://www.napaonline.com/en/p/NAPA1410"],"htmlRoutes":[{"id":"auto-parts-fitment","match":{"exactSegments":false},"mode":"auto_parts_fitment_html"}]},{"id":"bamboohr-breezy-recruitee","name":"BambooHR, Breezy HR, Recruitee & Personio Boards","category":"jobs","description":"Upgrades BambooHR (/careers/list & /detail), Breezy HR (/json), Recruitee (/api/offers), and Personio (/xml) career boards to structured feeds.","domains":["*.bamboohr.com","*.breezy.hr","*.recruitee.com","*.jobs.personio.de","*.jobs.personio.com"],"exampleUrls":["https://posthog.bamboohr.com/careers","https://breezy.breezy.hr/","https://bunq.recruitee.com/","https://personio.jobs.personio.de/"],"routes":[{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"pathSegments":[{"param":"boardSection","charset":"alnum","allowValues":["careers","jobs"],"optional":true}]},"twin":{"id":"bamboohr-board","fetchUrl":"https://{host}/careers/list","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["result"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — BambooHR Careers ({count} open roles)","sections":[{"heading":"","arrayPath":"result","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"id":{"paths":["id"]},"jTitle":{"paths":["jobOpeningName"],"trim":true,"default":"Role"},"jUrl":{"template":"https://{host}/careers/{id}"},"dept":{"paths":["departmentLabel"],"trim":true,"default":"-"},"city":{"paths":["location.city"],"trim":true},"state":{"paths":["location.state"],"trim":true},"bothLoc":{"template":"{city}, {state}","whenVars":["city","state"]},"oneLoc":{"paths":["location.city","location.state"],"trim":true},"remoteLoc":{"paths":["isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"template":"{bothLoc}","whenVars":["bothLoc"],"fallbackVar":"oneLoc","fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"exactSegments":false,"pathSegments":["careers",{"param":"jobId","charset":"digits"}]},"twin":{"id":"bamboohr-job","fetchUrl":"https://{host}/careers/{jobId}/detail","kind":"json","accept":"application/json"},"extract":{"rootPath":"result.jobOpening","requireFields":["jobOpeningName"],"vars":{"jobTitle":{"paths":["jobOpeningName"],"trim":true},"body":{"paths":["description"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"body"}},{"match":{"hosts":["*.breezy.hr"],"hostSubdomain":{"suffix":".breezy.hr","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"breezy-hr","fetchUrl":"https://{host}/json","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"count":{"paths":["jobs"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Breezy HR Board ({count} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["location.is_remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location.name"],"trim":true,"fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["o",{"param":"targetSlug","charset":"pkg"}]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"offers","matchField":"slug","matchTemplate":"{targetSlug}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Role"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"desc","sections":[{"heading":"Requirements","textVar":"reqs"}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["offers"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Recruitee Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"offers","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"oTitle":{"paths":["title"],"trim":true,"default":"Role"},"slug":{"paths":["slug"]},"rawUrl":{"paths":["careers_url"],"requireHttps":true},"oUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/o/{slug}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location"],"trim":true,"fallbackTemplate":"{remoteLoc}"},"isRemote":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":""},"hybridOrOnsite":{"paths":["hybrid"],"format":"bool_map","trueValue":"Hybrid","falseValue":"On-site"},"workplace":{"template":"{isRemote}","whenVars":["isRemote"],"fallbackVar":"hybridOrOnsite"}},"collectLinkVars":["oUrl"],"columns":[{"header":"Role","template":"[{oTitle}]({oUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{workplace}"}]}]}},{"match":{"anyOf":[{"hosts":["*.jobs.personio.de"],"hostSubdomain":{"suffix":".jobs.personio.de","param":"org"},"pathSegments":[]},{"hosts":["*.jobs.personio.com"],"hostSubdomain":{"suffix":".jobs.personio.com","param":"org"},"pathSegments":[]}]},"twin":{"id":"personio","fetchUrl":"https://{host}/xml?language=en","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["workzag-jobs","position"],"itemTag":"position","titleTemplate":"{org} — Personio Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"itemVars":{"id":{"tags":["id"]},"pName":{"tags":["name"],"default":"Role"},"dept":{"tags":["department"],"default":"-"},"office":{"tags":["office"],"default":"-"},"schedule":{"tags":["schedule"],"default":"-"}},"columns":[{"header":"Role","template":"[{pName}](https://{host}/job/{id})"},{"header":"Department","template":"{dept}"},{"header":"Office","template":"{office}"},{"header":"Schedule","template":"{schedule}"}]}}}]},{"id":"bazaarvoice","name":"Bazaarvoice Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for Bazaarvoice Display API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["api.bazaarvoice.com","www.bazaarvoice.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://api.bazaarvoice.com/data/reviews.json?apiversion=5.4&passkey=lgnkpccztvv6hpje273tu0cx8&Filter=ProductId:YWSHTS&Include=Products&Stats=Reviews&Limit=5"],"routes":[{"match":{"hosts":["api.bazaarvoice.com"],"pathEquals":["/data/reviews.json","/data/display/0.2alpha/product/summary"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bazaarvoice_reviews"}}],"htmlRoutes":[{"id":"bazaarvoice","match":{"exactSegments":false},"mode":"bazaarvoice_html"}]},{"id":"bbb","name":"Better Business Bureau (BBB)","category":"commerce-social","description":"Extracts BBB business profile metadata, accreditation status, rating, contact details, and categories from public bbb.org profile pages while strictly honoring robots.txt.","domains":["bbb.org","www.bbb.org"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bbb.org/us/md/linthicum-heights/profile/property-management/american-community-management-inc-0011-10073"],"htmlRoutes":[{"id":"bbb","match":{"exactSegments":false},"mode":"bbb_html"}]},{"id":"bea","name":"Bureau of Economic Analysis (BEA)","category":"finance","description":"U.S. Bureau of Economic Analysis apps.bea.gov JSON API adapter (NIPA/GDP/Regional/International) with bea.gov HTML fallback.","domains":["bea.gov","www.bea.gov","apps.bea.gov"],"auth_mode":"key","exampleUrls":["https://apps.bea.gov/api/data?method=GetDataSetList&ResultFormat=JSON","https://www.bea.gov/data/gdp/gross-domestic-product"],"routes":[{"match":{"hosts":["apps.bea.gov"],"exactSegments":true,"pathEquals":["/api/data","/API/data","/api/data/","/API/data/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"ResultFormat":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"bea_json"}}],"htmlRoutes":[{"id":"bea","match":{"hosts":["bea.gov","www.bea.gov"],"exactSegments":false},"mode":"bea_html"}]},{"id":"bentobox","name":"BentoBox Restaurant Menus & Venues","category":"commerce-social","description":"Extracts restaurant menus, sections, items, prices, and FoodEstablishment metadata from BentoBox (getbento.com) sites and custom restaurant domains.","domains":["getbento.com","www.getbento.com","*.getbento.com","www.gramercytavern.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gramercytavern.com/dining-room-menu/","https://www.getbento.com/"],"htmlRoutes":[{"id":"bentobox","match":{"exactSegments":false},"mode":"bentobox_html"}]},{"id":"bestbuy","name":"Best Buy Products API","category":"commerce-social","description":"Extracts Best Buy product pricing, SKU, UPC/GTIN, availability, and search results via the official Best Buy Products API.","domains":["bestbuy.com","www.bestbuy.com","api.bestbuy.com"],"auth_mode":"key","exampleUrls":["https://api.bestbuy.com/v1/products/6500131.json","https://api.bestbuy.com/v1/products?format=json"],"routes":[{"match":{"hosts":["bestbuy.com","www.bestbuy.com"],"exactSegments":false,"pathSegments":["site",{"param":"slug","charset":"slug","maxLen":200},{"param":"sku","charset":"digits","stripSuffix":".p","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.bestbuy.com/v1/products/{sku}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}},{"match":{"hosts":["api.bestbuy.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}}]},{"id":"bicycleretailer","name":"Bicycle Retailer & Industry News","category":"commerce-social","description":"Extracts Drupal .node-article body, .view-content listings, and author/publishedTime metadata from bicycleretailer.com while stripping sidebar ads and leaving /rss.xml to feed XML parsing.","domains":["www.bicycleretailer.com","bicycleretailer.com"],"exampleUrls":["https://www.bicycleretailer.com/industry-news/2026/11/25/preliminary-analysis-industry-spared-new-recommended-tariffs","https://www.bicycleretailer.com/industry-news"],"htmlRoutes":[{"id":"bicycleretailer","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["admin","user"],"excludeSegmentSuffixes":[".xml",".rss",".atom"]},"vars":{"title":{"cssText":["article.node-article h1","main h1","h1","title"],"metaKeys":["og:title"],"trim":true},"author":{"metaKeys":["author","article:author"],"trim":true},"publishedTime":{"metaKeys":["article:published_time"],"trim":true},"body":{"cssHtmlToMd":["article.node-article .field-name-body",".node-article .field-name-body",".field-name-body",".view-content","article.node-article","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"big-cartel","name":"Big Cartel Storefronts & Products","category":"commerce-social","description":"Extracts Big Cartel /products.json catalogs and /product/{slug}.js product twins without colliding with Shopify /products.json, plus storefront HTML/JSON-LD fallback.","domains":["shop.bigcartel.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://shop.bigcartel.com/product/buy-from-artists-tote-bag.js","https://shop.bigcartel.com/products.json"],"routes":[{"match":{"anyOf":[{"hosts":["shop.bigcartel.com"],"pathEquals":["/products.json"]},{"hostSubdomain":{"suffix":".bigcartel.com","param":"shopSub","reserved":["www","my","api","developers","blog","assets","help"]},"pathEquals":["/products.json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}},{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","api.bigcartel.com","my.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com","assets.bigcartel.com","help.bigcartel.com"],"exactSegments":true,"pathSuffix":".js","pathSegments":["product",{"param":"slug","charset":"pkg","stripSuffix":".js","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}}],"htmlRoutes":[{"id":"big-cartel","match":{"exactSegments":false},"mode":"big_cartel_html"}]},{"id":"bigcommerce-store","name":"BigCommerce Stencil Storefronts","category":"commerce-social","description":"Extracts BigCommerce Stencil BCData, JSON-LD, Microdata, cart-form options, product specs, category grids, and bounded /xmlsitemap.php product sitemaps.","domains":["*.mybigcommerce.com","www.bigcommerce.com","ascolour.com"],"universalEngine":true,"exampleUrls":["https://ascolour.com/xmlsitemap.php","https://ascolour.com/classic-organic-tee-5026g/"],"routes":[{"match":{"exactSegments":true,"pathEquals":["/xmlsitemap.php"]},"twin":{"id":"bigcommerce-store","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"commerceMode":"bigcommerce_sitemap"}}],"htmlRoutes":[{"id":"bigcommerce-store","match":{"exactSegments":false},"mode":"bigcommerce_html"}]},{"id":"bike-index","name":"Bike Index Registry","category":"public-records","description":"Public Bike Index REST API v3 adapter for bicycle registrations, stolen reports, and search queries with HTML detail fallback.","domains":["bikeindex.org","www.bikeindex.org"],"auth_mode":"pub","exampleUrls":["https://bikeindex.org/api/v3/search?page=1&per_page=5","https://bikeindex.org/api/v3/bikes/3550041","https://bikeindex.org/bikes/3550041"],"routes":[{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathEquals":["/api/v3/search","/api/v3/search/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["api","v3","bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}}],"htmlRoutes":[{"id":"bike-index","match":{"exactSegments":false},"mode":"bike_index_html"}]},{"id":"bikereg-usacycling","name":"BikeReg & USA Cycling Events & Results","category":"commerce-social","description":"Extracts BikeReg event search JSON (/api/search with ASP.NET /Date()/ timestamps), USA Cycling Sport80 Inertia data-page events and results, and unchallenged BikeReg HTML while rejecting Cloudflare challenges.","domains":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://www.bikereg.com/api/search?name=Hush%20Money","https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today","https://usacycling.sport80.com/pub/results"],"routes":[{"match":{"hosts":["bikereg.com","www.bikereg.com"],"exactSegments":true,"pathSegments":["api","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bikereg_json"}}],"htmlRoutes":[{"id":"bikereg-usacycling","match":{"hosts":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"exactSegments":false},"mode":"bikereg_usacycling_html"}]},{"id":"blackboard-wcm","name":"Blackboard WCM & SchoolMessenger Presence","category":"public-records","description":"Extracts Blackboard Web Community Manager (Schoolwires) and SchoolMessenger Presence K-12 district news, calendars, and staff directories while excluding Finalsite /fs/ sites.","domains":["www.bhusd.org","bhusd.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.bhusd.org/calendar","https://www.bhusd.org/media/filter/news"],"htmlRoutes":[{"id":"blackboard-wcm","match":{"excludeHosts":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"exactSegments":false},"mode":"blackboard_wcm_html"}]},{"id":"bloomreach-discovery","name":"Bloomreach Discovery On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Bloomreach Discovery core search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["core.dxpapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://core.dxpapi.com/api/v1/core/?account_id=6276&auth_key=jazzhands&domain_key=example_com&request_type=search&search_type=keyword&q=shoes&fl=pid,title,price,url&rows=10&start=0&url=https://www.example.com/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".dxpapi.com","param":"apiHost"},"pathEquals":["/api/v1/core","/api/v1/core/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bloomreach_discovery"}}],"htmlRoutes":[{"id":"bloomreach-discovery","match":{"exactSegments":false},"mode":"bloomreach_discovery_html"}]},{"id":"bls","name":"Bureau of Labor Statistics (BLS)","category":"public-records","description":"U.S. Bureau of Labor Statistics publicAPI v1 (pub) and v2 (key) time-series JSON adapter with bls.gov HTML fallback.","domains":["bls.gov","www.bls.gov","data.bls.gov","api.bls.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.bls.gov/cpi/","https://www.bls.gov/ooh/"],"routes":[{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v1/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"bls_json"}},{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v2/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"bls_json"}}],"htmlRoutes":[{"id":"bls","match":{"hosts":["bls.gov","www.bls.gov","data.bls.gov"],"exactSegments":false},"mode":"bls_html"}]},{"id":"bluesky-thread","name":"Bluesky ATProto Post Threads","category":"commerce-social","description":"Upgrades bsky.app post URLs to public.api.bsky.app ATProto getPostThread JSON with replies and embeds.","domains":["bsky.app","staging.bsky.app"],"exampleUrls":["https://bsky.app/profile/golang.org/post/3mzyghkrmjh2y"],"match":{"exactSegments":false,"pathSegments":["profile",{"param":"actor","charset":"url_seg"},"post",{"param":"rkey","charset":"pkg"}]},"twin":{"id":"bluesky-thread","fetchUrl":"https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=at%3A%2F%2F{actor}%2Fapp.bsky.feed.post%2F{rkey}&depth=6","kind":"json","accept":"application/json"},"extract":{"rootPath":"thread","requireFields":["post.record.text"],"vars":{"handle":{"paths":["post.author.handle"],"fallbackTemplate":"{actor}"},"displayName":{"paths":["post.author.displayName"],"fallbackTemplate":"{handle}"},"text":{"paths":["post.record.text"],"format":"plain_text","trim":true},"desc":{"paths":["post.record.text"],"trim":true,"sliceMax":220},"createdAt":{"paths":["post.record.createdAt"]},"createdAtShort":{"paths":["post.record.createdAt"],"replaceAll":{"from":"T","to":" "},"sliceMax":16},"postedPrefix":{"template":"{createdAtShort} UTC · ","whenVars":["createdAtShort"]},"likes":{"paths":["post.likeCount"],"default":"0"},"reposts":{"paths":["post.repostCount"],"default":"0"},"extUri":{"paths":["post.embed.external.uri"]},"extTitle":{"paths":["post.embed.external.title"],"fallbackTemplate":"{extUri}"},"extDesc":{"paths":["post.embed.external.description"]},"extDescSuffix":{"template":" — {extDesc}","whenVars":["extDesc"]},"linkedEmbed":{"template":"> **Linked**: [{extTitle}]({extUri}){extDescSuffix}","whenVars":["extUri"]}},"titleTemplate":"{displayName} (@{handle}) on Bluesky","descriptionVar":"desc","authorTemplate":"@{handle}","publishedTimeVar":"createdAt","bodyVar":"text","footerItalicTemplate":"Posted {postedPrefix}{likes} likes · {reposts} reposts","sections":[{"heading":"","textVar":"linkedEmbed"},{"heading":"","listArrayPath":"post.embed.images","limit":10,"requireItemVar":"imgAlt","itemVars":{"imgAlt":{"paths":["alt"],"trim":true}},"itemTemplate":"*Image alt*: {imgAlt}"},{"heading":"Replies","listArrayPath":"replies","limit":15,"requireItemVar":"replyText","itemVars":{"replyAuthor":{"paths":["post.author.handle"],"default":"user"},"replyText":{"paths":["post.record.text"],"trim":true,"replaceAll":{"from":"\n","to":" "}}},"itemTemplate":"**@{replyAuthor}**: {replyText}"}]}},{"id":"boarddocs","name":"Diligent BoardDocs Public Meeting Portals","category":"public-records","description":"Extracts public school board and municipal BoardDocs meeting lists, agendas, and HTML views while detecting CloudFront blocks.","domains":["go.boarddocs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://go.boarddocs.com/ca/sandi/Board.nsf/BD-GetMeetingsList","https://go.boarddocs.com/ca/sandi/Board.nsf/Public"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"state","charset":"alnum_dash","minLen":2,"maxLen":8},{"param":"org","charset":"alnum_dash","minLen":2,"maxLen":48},"Board.nsf",{"param":"action","allowValues":["BD-GetMeetingsList","BD-GetAgenda","BD-GetAgendaItem"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"boarddocs_text"}}],"htmlRoutes":[{"id":"boarddocs","match":{"exactSegments":false},"mode":"boarddocs_html"}]},{"id":"bosch-ebike-help","name":"Bosch eBike Systems Help Center","category":"developer","description":"Bosch eBike error codes from help.bosch-ebike.com via the keyless public /v2/error_code JSON endpoint the Help Center SPA renders (code / severity / component / description / remedy per system generation), with a bounded HTML fallback for SSR help articles that strips data:image blobs and dodo-service-include chrome and never presents the loading SPA shell as content. Never calls the robots-disallowed /api/* paths.","domains":["help.bosch-ebike.com"],"auth_mode":"pub","exampleUrls":["https://help.bosch-ebike.com/en/help-center/error/6A0004","https://help.bosch-ebike.com/help-center/error/6A0004"],"routes":[{"match":{"hosts":["help.bosch-ebike.com"],"anyOf":[{"pathSegments":[{"param":"lang","allowValues":["cs","da","de","en","es","fr","it","nl","no","pl","sv"]},"help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"optionalLeadingLocale":true,"defaults":{"lang":"en"},"pathSegments":["help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"defaults":{"lang":"en"},"pathSegments":["er",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]}]},"twin":{"fetchUrl":"https://help.bosch-ebike.com/v2/error_code?externalID={code}&languageId={lang}","kind":"json","accept":"application/json","maxBytes":524288},"extract":{"jsonMode":"bosch_ebike_error_code_json"}}],"htmlRoutes":[{"id":"bosch-ebike-help","match":{"exactSegments":false},"mode":"bosch_help_html"}]},{"id":"branded-tracking-pack","name":"Branded Tracking Pack (Narvar / Route / ParcelPanel)","category":"commerce-social","description":"Extracts hydrated Narvar, ParcelPanel, Route, Malomo, and Wonderment tracking pages while strictly rejecting empty CSR shells such as unhydrated Route pages.","domains":["*.narvar.com","tracking.route.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://tracking.narvar.com/asics/tracking"],"htmlRoutes":[{"id":"branded-tracking-pack","match":{"exactSegments":false},"mode":"branded_tracking_pack_html"}]},{"id":"brightcove","name":"Brightcove Playback & Player","category":"commerce-social","description":"Opt-in page-key adapter for Brightcove Playback API v1; defaults OFF and falls back cleanly to Brightcove player HTML extraction.","domains":["edge.api.brightcove.com","players.brightcove.net"],"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://edge.api.brightcove.com/playback/v1/accounts/1752604059001/videos/4093643993001","https://players.brightcove.net/1752604059001/default_default/index.html?videoId=4093643993001"],"routes":[{"match":{"hosts":["edge.api.brightcove.com"],"exactSegments":true,"pathSegments":["playback","v1","accounts",{"param":"accountId","charset":"digits","minLen":4,"maxLen":24},"videos",{"param":"videoId","charset":"url_seg","minLen":4,"maxLen":64}]},"twin":{"id":"brightcove","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"brightcove_playback_json"}}],"htmlRoutes":[{"id":"brightcove","match":{"exactSegments":false},"mode":"brightcove_html"}]},{"id":"brightspot","name":"Brightspot Publishing CMS","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Brightspot RichText article bodies across Brightspot-powered newsrooms.","domains":["www.latimes.com","news.byu.edu"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.latimes.com/travel/story/2023-10-19/los-angeles-neighborhood-city-guides"],"htmlRoutes":[{"id":"brightspot","match":{"exactSegments":false},"mode":"brightspot_html"}]},{"id":"bts-transtats","name":"BTS TranStats & Open Data","category":"public-records","description":"Bureau of Transportation Statistics (data.bts.gov Socrata views/resource/catalog JSON + www.transtats.bts.gov HTML tables with TranStats error page rejection).","domains":["data.bts.gov","transtats.bts.gov","www.transtats.bts.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.bts.gov/api/views/crem-w557.json","https://data.bts.gov/resource/crem-w557.json?$limit=2","https://www.transtats.bts.gov/Tables.asp?QO_VQ=EFD&QO_anzr=Nv4"],"routes":[{"match":{"hosts":["data.bts.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}},{"match":{"hosts":["data.bts.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://data.bts.gov/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}}],"htmlRoutes":[{"id":"bts-transtats","match":{"hosts":["transtats.bts.gov","www.transtats.bts.gov"],"exactSegments":false},"mode":"bts_transtats_html"}]},{"id":"bullhorn-career-portal","name":"Bullhorn Career Portal","category":"jobs","description":"Extracts open JobOrder listings from public-rest*.bullhornstaffing.com REST endpoints and hydrated Bullhorn Career Portal pages while rejecting errors.badCorpToken and empty results.","domains":["*.bullhornstaffing.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25"],"routes":[{"match":{"hostSubdomain":{"suffix":".bullhornstaffing.com","param":"cluster","reserved":["www","login","auth","static"]},"pathPrefix":"/rest-services/","pathContainsSegment":"JobOrder","exactSegments":false},"twin":{"id":"bullhorn-career-portal","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bullhorn_joborder_json"}}],"htmlRoutes":[{"id":"bullhorn-career-portal","mode":"bullhorn_portal_html","match":{"exactSegments":false}}]},{"id":"bumm-de","name":"Busch & Mueller (bumm.de)","category":"commerce-social","description":"Extracts TYPO3 JSON-LD Product metadata, table.attributes-table technical specs, and PDF mounting manual links from bumm.de product pages.","domains":["bumm.de","www.bumm.de"],"exampleUrls":["https://bumm.de/en/product-detail/iq-xl-highbeam/","https://bumm.de/de/produktdetail/briq-s/"],"htmlRoutes":[{"id":"bumm-de","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"reservedFirstSegment":["typo3"],"anyOf":[{"pathSegments":["product-detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["produktdetail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["products","detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"price":{"jsonLdPaths":["offers.price","offers.0.price"],"trim":true},"currency":{"jsonLdPaths":["offers.priceCurrency","offers.0.priceCurrency"],"trim":true},"body":{"cssHtmlToMd":["main",".product-detail","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"},{"label":"Price","template":"{price} {currency}","whenVar":"price"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"canvas-public-courses","name":"Canvas LMS Public Courses","category":"public-records","description":"Extracts public Instructure Canvas LMS courses via /api/v1/courses JSON and public syllabus HTML while classifying SAML SSO redirects as login_wall and 503 maintenance shells as non-active.","domains":["*.instructure.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://ocw.instructure.com/api/v1/courses/44012","https://lor.instructure.com/"],"routes":[{"match":{"pathPrefix":"/api/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"canvas_course_json"}}],"htmlRoutes":[{"id":"canvas-public-courses","match":{"exactSegments":false},"mode":"canvas_public_html"}]},{"id":"cdc-wonder-healthdata","name":"CDC WONDER & HealthData.gov","category":"research-health","description":"HealthData.gov and data.cdc.gov Socrata views/resource/catalog JSON adapter (coexisting cleanly with socrata.yaml) plus CDC WONDER HTML.","domains":["healthdata.gov","www.healthdata.gov","wonder.cdc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://healthdata.gov/api/views/j8mb-icvb.json","https://data.cdc.gov/api/views/9bhg-hcku.json","https://wonder.cdc.gov/ucd-icd10.html"],"routes":[{"match":{"hosts":["healthdata.gov","www.healthdata.gov","data.cdc.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}},{"match":{"hosts":["healthdata.gov","www.healthdata.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}}],"htmlRoutes":[{"id":"cdc-wonder-healthdata","match":{"hosts":["wonder.cdc.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false},"mode":"cdc_wonder_html"}]},{"id":"census","name":"U.S. Census Bureau Data API","category":"public-records","description":"U.S. Census Bureau Data API (/data/{year}/... keyed JSON matrix) and /data.json DCAT catalog adapter with data.census.gov fallback.","domains":["data.census.gov","api.census.gov","census.gov","www.census.gov"],"auth_mode":"key","exampleUrls":["https://api.census.gov/data/2023/acs/acs1?get=NAME,B01001_001E&for=state:06","https://api.census.gov/data/2023/acs/acs1.json","https://www.census.gov/topics/population.html"],"routes":[{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","excludeSegmentSuffixes":[".html",".htm"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":true,"pathEquals":["/data.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}}],"htmlRoutes":[{"id":"census","match":{"hosts":["data.census.gov","census.gov","www.census.gov"],"exactSegments":false},"mode":"census_html"}]},{"id":"cfpb-complaints","name":"CFPB Consumer Complaint Database","category":"finance","description":"Upgrades consumerfinance.gov complaint detail URLs to keyless CFPB Consumer Complaint Database JSON API v1 with HTML fallback.","domains":["www.consumerfinance.gov","consumerfinance.gov"],"auth_mode":"pub","exampleUrls":["https://www.consumerfinance.gov/data-research/consumer-complaints/search/detail/3204968","https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/3204968"],"routes":[{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"exactSegments":false,"pathSegments":["data-research","consumer-complaints","search","detail",{"param":"complaintId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/{complaintId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}},{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/search/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}}],"htmlRoutes":[{"id":"cfpb-complaints","match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/","exactSegments":false},"mode":"cfpb_complaints_html"}]},{"id":"chambermaster-growthzone","name":"ChamberMaster / GrowthZone Chamber Directories","category":"commerce-social","description":"Universal extractor for chamber-of-commerce member directories and event calendars hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages, and /events/ calendars): member name, address, phone, website, hours, categories, events, and description.","domains":["business.fortworthchamber.com","www.brownstownchamber.org","*.chambermaster.com","*.growthzoneapp.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://business.fortworthchamber.com/list/category/apartments-25","https://business.fortworthchamber.com/list/member/the-harden-at-public-market-50786","https://www.brownstownchamber.org/events/"],"htmlRoutes":[{"id":"chambermaster-growthzone","match":{"exactSegments":false},"mode":"chambermaster_html"}]},{"id":"changelog-roadmap-pack","name":"Changelog & Roadmap Pack","category":"developer","description":"Extracts changelog releases and roadmap items from Canny, Productboard Portal, Headway, Beamer (via /loadMoreNews companion), and LaunchNotes.","domains":["feedback.canny.io","portal.productboard.com","headwayapp.co","app.getbeamer.com","updates.launchnotes.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://feedback.canny.io/changelog","https://portal.productboard.com/pb/1-productboard-portal/tabs/7-under-consideration","https://app.getbeamer.com/beamer/changelog","https://updates.launchnotes.io/"],"routes":[{"match":{"pathEquals":["/changelog.json","/releases.json","/updates.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"changelog_roadmap_json"}}],"htmlRoutes":[{"id":"changelog-roadmap-pack","match":{"exactSegments":false},"mode":"changelog_roadmap_html"}]},{"id":"chronicling-america","name":"Chronicling America (Historic American Newspapers)","category":"public-records","description":"Library of Congress Chronicling America historic newspapers adapter rewriting legacy chroniclingamerica.loc.gov and collection URLs directly to www.loc.gov ?fo=json.","domains":["chroniclingamerica.loc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/collections/chronicling-america/?fo=json","https://chroniclingamerica.loc.gov/lccn/sn83030214.json","https://www.loc.gov/collections/chronicling-america/"],"routes":[{"match":{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false,"pathSegments":["lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["chroniclingamerica.loc.gov"],"anyOf":[{"pathEquals":["/","/newspapers.json"]},{"pathPrefix":"/search/"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"exactSegments":false,"pathSegments":["chroniclingamerica","lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"anyOf":[{"pathPrefix":"/collections/chronicling-america"},{"pathPrefix":"/chroniclingamerica"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}}],"htmlRoutes":[{"id":"chronicling-america","match":{"anyOf":[{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/collections/chronicling-america"},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/chroniclingamerica"}]},"mode":"chronicling_america_html"}]},{"id":"civicclerk","name":"CivicPlus CivicClerk Agenda Portals","category":"public-records","description":"Extracts municipal meeting events and agendas via CivicClerk OData v1 API with portal-to-API same-eTLD+1 twin upgrades.","domains":["*.civicclerk.com"],"auth_mode":"pub","exampleUrls":["https://mauicounty.api.civicclerk.com/v1/Events?$top=3","https://mauicounty.api.civicclerk.com/v1/Events/1023","https://mauicounty.portal.civicclerk.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".api.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathPrefix":"/v1/Events"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"exactSegments":false,"pathSegments":["event",{"param":"eventId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events/{eventId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathEquals":["/","/events"]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events?$top=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}}],"htmlRoutes":[{"id":"civicclerk","match":{"exactSegments":false},"mode":"civicclerk_html"}]},{"id":"civicplus","name":"CivicPlus CivicEngage Agenda & Document Portals","category":"public-records","description":"Universal extractor for CivicPlus CivicEngage /AgendaCenter, /DocumentCenter, and /CivicAlerts.aspx pages on city and county domains: meeting dates, agenda titles, agenda/HTML/packet/minutes links, public document directories, and municipal alerts. Fingerprint-gated; never touches robots.txt-disallowed /RSSFeed.aspx.","domains":["www.gulfshoresal.gov","www.ankenyiowa.gov","www.springfieldmo.gov","www.brownwoodtexas.gov","www.fayetteville-ar.gov"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.gulfshoresal.gov/AgendaCenter","https://www.brownwoodtexas.gov/DocumentCenter","https://www.springfieldmo.gov/CivicAlerts.aspx"],"htmlRoutes":[{"id":"civicplus","match":{"anyOf":[{"pathPrefix":"/AgendaCenter","exactSegments":false},{"pathPrefix":"/DocumentCenter","exactSegments":false},{"pathEquals":["/CivicAlerts.aspx"]}]},"mode":"civicplus_agenda_html"}]},{"id":"ckan","name":"CKAN Open Data Portals (Data.gov, UK, AU, Canada & City Portals)","category":"public-records","description":"Upgrades CKAN open-data portal dataset pages to /api/3/action/package_show JSON with organization, license, and downloadable resources.","domains":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org","data.gov.uk","www.data.gov.uk","data.gov.au","open.canada.ca"],"exampleUrls":["https://open.canada.ca/data/en/dataset/0032ce54-c5dd-4b66-99a0-320a7b5e99f2"],"routes":[{"match":{"hosts":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.uk","www.data.gov.uk"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.uk/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.au"],"exactSegments":true,"pathSegments":["data","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.au/data/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["open.canada.ca"],"exactSegments":true,"pathSegments":["data","en","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://open.canada.ca/data/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}}]},{"id":"classic-forum-pack","name":"Classic Forum Pack","category":"commerce-social","description":"Extracts structured posts, authors, timestamps, and quote blocks from Invision Community, vBulletin (vB3/4 & vB5), and phpBB thread HTML while rejecting HTTP 200 soft-404s.","domains":["gtaforums.com","forum.doom9.org","forum.image-line.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://gtaforums.com/topic/1007946-gtao-event-12th-nov-2026-as-the-trip-to-leonida-approaches-go-back-to-the-basics-w-bonuses-on-all-contact-missions-free-mode-challenges-stunt-race-series-more/","https://forum.doom9.org/showthread.php?t=187224","https://forum.image-line.com/viewtopic.php?t=343634"],"htmlRoutes":[{"id":"classic-forum-pack","match":{"exactSegments":false},"mode":"classic_forum_pack_html"}]},{"id":"clinicaltrials","name":"ClinicalTrials.gov Studies","category":"research-health","description":"Extracts clinical trial NCT ID, recruitment status, phase, conditions, interventions, sponsor, and summary from rendered clinicaltrials.gov/study/NCT... pages (strictly respecting robots.txt).","domains":["clinicaltrials.gov","www.clinicaltrials.gov"],"exampleUrls":["https://clinicaltrials.gov/study/NCT04280705"],"htmlRoutes":[{"match":{"scanSegment":{"param":"nctId","charset":"nct_id","transform":"upper"}},"mode":"dom","jsonLdTypes":["MedicalStudy","MedicalTrial","ClinicalTrial"],"embeddedBalancedKey":"protocolSection","requireVars":["title","hasAnyDetail"],"vars":{"title":{"embeddedPaths":["identificationModule.briefTitle"],"jsonLdPaths":["name"],"metaKeys":["og:title"]},"overallStatus":{"embeddedPaths":["statusModule.overallStatus"],"jsonLdPaths":["status"]},"phases":{"embeddedPaths":["designModule.phases"],"join":", "},"leadSponsor":{"embeddedPaths":["sponsorCollaboratorsModule.leadSponsor.name"],"jsonLdPaths":["sponsor.name"]},"conditions":{"embeddedPaths":["conditionsModule.conditions"],"jsonLdPaths":["healthCondition"],"limit":10,"join":", "},"summary":{"embeddedPaths":["descriptionModule.briefSummary"],"jsonLdPaths":["description"],"metaKeys":["description"]},"summaryShort":{"template":"{summary}","whenVars":["summary"],"sliceMax":260},"hasAnyDetail":{"template":"1","whenAnyVars":["overallStatus","phases","leadSponsor","conditions","summary"]}},"titleTemplate":"{title} ({nctId})","descriptionVar":"summaryShort","bullets":[{"label":"NCT Number","template":"`{nctId}`"},{"label":"Status","template":"{overallStatus}","whenVar":"overallStatus"},{"label":"Phase","template":"{phases}","whenVar":"phases"},{"label":"Lead Sponsor","template":"{leadSponsor}","whenVar":"leadSponsor"},{"label":"Conditions","template":"{conditions}","whenVar":"conditions"}],"sections":[{"heading":"Brief Summary","textVar":"summary"}],"appendCurrentMdDelta":{"baseVar":"summary","minExtraChars":120}}]},{"id":"cms-data","name":"CMS Data & Provider Data Catalog","category":"research-health","description":"Centers for Medicare & Medicaid Services (CMS) DKAN metastore, datastore query, and data-api v1 adapter enforcing 10s crawl-delay.","domains":["data.cms.gov"],"auth_mode":"pub","min_interval_ms":10000,"strict_robots":true,"exampleUrls":["https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/mj5m-pzi6","https://data.cms.gov/provider-data/api/1/datastore/query/mj5m-pzi6/0?limit=2","https://data.cms.gov/data-api/v1/dataset/9767cb68-8ea9-4f0b-8179-9431abc89f11/data?size=2"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/provider-data/api/"},{"pathPrefix":"/data-api/v1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cms_data_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-data","dataset",{"param":"datasetId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_data_json"}}],"htmlRoutes":[{"id":"cms-data","match":{"exactSegments":false},"mode":"cms_data_html"}]},{"id":"college-scorecard","name":"College Scorecard (U.S. Department of Education)","category":"public-records","description":"U.S. Department of Education College Scorecard API adapter scoped to api.data.gov/ed/collegescorecard with compact default fields.","domains":["collegescorecard.ed.gov","api.data.gov"],"auth_mode":"key","exampleUrls":["https://api.data.gov/ed/collegescorecard/v1/schools?id=166027","https://collegescorecard.ed.gov/school/?166027-Harvard-University"],"routes":[{"match":{"hosts":["api.data.gov"],"exactSegments":false,"pathPrefix":"/ed/collegescorecard"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"id,school.name,school.city,school.state,school.school_url,latest.student.size,latest.admissions.admission_rate.overall,latest.cost.tuition.in_state,latest.cost.tuition.out_of_state,latest.earnings.10_yrs_after_entry.median","per_page":"10"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"college_scorecard_json"}}],"htmlRoutes":[{"id":"college-scorecard","match":{"hosts":["collegescorecard.ed.gov"],"exactSegments":false},"mode":"college_scorecard_html"}]},{"id":"company-newsrooms","name":"Company Newsrooms (Prowly / Prezly / Cision)","category":"commerce-social","description":"Extracts corporate newsrooms and RSS/Atom press release feeds from Prowly, Prezly, and Cision PR portals.","domains":["news.cision.com","multimedia.cision.com","*.prowly.com","*.prezly.com","press.brusselsairlines.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://residence.prowly.com/rss","https://residence.prowly.com/","https://press.brusselsairlines.com/feed","https://news.cision.com/tietoevry"],"routes":[{"match":{"anyOf":[{"pathEquals":["/rss","/feed","/rss.xml","/feed.xml"]},{"pathSuffix":"/rss"},{"pathSuffix":"/feed"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"company_newsroom_rss_xml"}}],"htmlRoutes":[{"id":"company-newsrooms","match":{"exactSegments":false},"mode":"company_newsrooms_html"}]},{"id":"confluence-public","name":"Confluence Public Spaces","category":"developer","description":"Upgrades public Confluence /wiki/spaces/.../pages/{pageId} URLs to same-origin REST content API JSON twins with SSR HTML fallback; keyless public spaces only.","domains":["openmrs.atlassian.net","ecosystem.atlassian.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://openmrs.atlassian.net/wiki/spaces/docs/pages/25462110/Reporting+Module","https://openmrs.atlassian.net/wiki/spaces/docs/overview"],"routes":[{"match":{"pathPrefix":"/wiki/spaces/","exactSegments":false,"pathSegments":["wiki","spaces",{"param":"space","charset":"url_seg","minLen":1,"maxLen":80},"pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/wiki/rest/api/content/{pageId}?expand=body.view,space,version,ancestors","kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","rest","api","content",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"expand":"body.view,space,version,ancestors"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","api","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"body-format":"view"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}}],"htmlRoutes":[{"id":"confluence-public","match":{"exactSegments":false},"mode":"confluence_public_html"}]},{"id":"congress-gov","name":"Congress.gov Federal Legislation","category":"public-records","description":"Official api.congress.gov v3 API adapter for federal bills, amendments, nominations, committees, and members with HTML fallback for www.congress.gov.","domains":["congress.gov","www.congress.gov","api.congress.gov"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.congress.gov/v3/bill/118/hr/815?format=json","https://www.congress.gov/bill/118th-congress/house-bill/815"],"routes":[{"match":{"hosts":["api.congress.gov"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hr/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/s/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}}],"htmlRoutes":[{"id":"congress-gov","match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false},"mode":"congress_gov_html"}]},{"id":"constructor-io","name":"Constructor.io On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Constructor.io search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["ac.cnstrc.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://ac.cnstrc.com/search/shirt?key=key_kUTI6qLxMCLBIaN9&num_results_per_page=10"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]},{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["v1","search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"constructor_io"}}],"htmlRoutes":[{"id":"constructor-io","match":{"exactSegments":false},"mode":"constructor_io_html"}]},{"id":"copyright-office","name":"U.S. Copyright Office Public Records","category":"public-records","description":"U.S. Copyright Office Public Records System (publicrecords.copyright.gov) keyless JSON API adapter with HTML fallback.","domains":["publicrecords.copyright.gov","api.publicrecords.copyright.gov","cocatalog.loc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query=TX0009000001&page_number=1&records_per_page=5","https://publicrecords.copyright.gov/detailed-record/voyager_32941460"],"routes":[{"match":{"hosts":["api.publicrecords.copyright.gov"],"pathPrefix":"/search_service_external/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}},{"match":{"hosts":["publicrecords.copyright.gov"],"exactSegments":false,"pathSegments":["detailed-record",{"param":"recordId","charset":"alnum_dash","minLen":3,"maxLen":80}]},"twin":{"fetchUrl":"https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query={recordId}&page_number=1&records_per_page=5","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}}],"htmlRoutes":[{"id":"copyright-office","match":{"hosts":["publicrecords.copyright.gov","cocatalog.loc.gov"],"exactSegments":false},"mode":"copyright_office_html"}]},{"id":"cornell-lii","name":"Cornell Law LII (CFR & US Code)","category":"public-records","description":"Extracts clean statutory and CFR regulatory text from www.law.cornell.edu/cfr/* and /uscode/* while stripping navigation and donation sidebars.","domains":["www.law.cornell.edu","law.cornell.edu"],"exampleUrls":["https://www.law.cornell.edu/cfr/text/16/part-1512","https://www.law.cornell.edu/uscode/text/15/2051"],"htmlRoutes":[{"id":"cornell-lii","mode":"dom","match":{"anyOf":[{"exactSegments":false,"pathSegments":["cfr",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]},{"exactSegments":false,"pathSegments":["uscode",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]}]},"vars":{"title":{"cssText":["#page-title","main#content h1","#content h1","h1","title"],"trim":true},"body":{"cssHtmlToMd":["#content .tab-pane.active","main#content","#content","main","article"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"costco-sams-club","name":"Costco & Sam's Club","category":"commerce-social","description":"Extracts Costco and Sam's Club public product pages from schema.org Product JSON-LD and Sam's Club __NEXT_DATA__ hydration, strictly rejecting Kasada, Akamai, and empty SPA shells.","domains":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.costco.com/p/-/costco-shop-card/10024438","https://www.samsclub.com/ip/tnt-fireworks-revolution-rumble/20020700393"],"htmlRoutes":[{"id":"costco-sams-club","match":{"hosts":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"]},"mode":"costco_sams_club_html"}]},{"id":"county-assessor","name":"County Assessor & Property Records","category":"public-records","description":"Universal extractor for Vision Government Solutions (VGSI), Tyler Technologies iasWorld, and SchneiderCorp qPublic/Beacon county property assessor portals.","domains":["gis.vgsi.com","icare.fairfaxcounty.gov","property.muni.org","qpublic.schneidercorp.com","beacon.schneidercorp.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://gis.vgsi.com/madisonct/Parcel.aspx?pid=4","https://gis.vgsi.com/madisonct/Parcel.aspx?pid=10","https://gis.vgsi.com/newhavenct/Parcel.aspx?pid=1"],"htmlRoutes":[{"id":"county-assessor","match":{"exactSegments":false},"mode":"county_assessor_html"}]},{"id":"coursedog","name":"Coursedog University Catalogs","category":"public-records","description":"Extracts Coursedog public university catalogs from SSR __NUXT_DATA__ and rendered catalog DOM alongside public Coursedog JSON API routes.","domains":["*.coursedog.com","catalog.pratt.edu","catalogs.umn.edu"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://app.coursedog.com/api/v1/cm/umn/courses/search","https://catalog.pratt.edu/courses","https://catalogs.umn.edu/"],"routes":[{"match":{"hosts":["app.coursedog.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"coursedog_json"}}],"htmlRoutes":[{"id":"coursedog","match":{"exactSegments":false},"mode":"coursedog_html"}]},{"id":"courseleaf","name":"CourseLeaf University Course Catalogs","category":"public-records","description":"Universal extractor for CourseLeaf catalog pages (catalog..edu/courses// and program pages): course code, title, credits, description, requisites, and grading from div.courseblock. Fingerprint-gated; never calls /ribbit/, which CourseLeaf robots.txt files disallow.","domains":["catalog.unc.edu","catalog.colorado.edu","catalog.utexas.edu"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://catalog.unc.edu/courses/comp/","https://catalog.colorado.edu/courses-a-z/csci/","https://catalog.utexas.edu/courses/acc/"],"htmlRoutes":[{"id":"courseleaf","match":{"exactSegments":false},"mode":"courseleaf_courses_html"}]},{"id":"courtlistener","name":"CourtListener Federal & State Case Law","category":"public-records","description":"Official CourtListener REST API v4 adapter for opinions, clusters, RECAP dockets, and court metadata with HTML fallback.","domains":["courtlistener.com","www.courtlistener.com"],"auth_mode":"key","exampleUrls":["https://www.courtlistener.com/api/rest/v4/courts/scotus/","https://www.courtlistener.com/api/rest/v4/clusters/108713/","https://www.courtlistener.com/opinion/108713/marbury-v-madison/"],"routes":[{"match":{"pathPrefix":"/api/rest/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["opinion",{"param":"clusterId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/clusters/{clusterId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/dockets/{docketId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}}],"htmlRoutes":[{"id":"courtlistener","match":{"exactSegments":false},"mode":"courtlistener_html"}]},{"id":"coveo","name":"Coveo Cloud Search","category":"developer","description":"Opt-in page-key adapter for Coveo /rest/search/v2 endpoints; honors robots.txt Allow /rest/search and defaults OFF.","domains":["platform.cloud.coveo.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://platform.cloud.coveo.com/rest/search/v2?organizationId=mycoveocloudv2organizationg8tp8wu3&access_token=xx564559b1-0045-48e1-953c-3addd1ee4457&q=coveo&numberOfResults=10"],"routes":[{"match":{"hostSubdomain":{"suffix":".cloud.coveo.com","param":"regionHost"},"pathEquals":["/rest/search/v2"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"coveo"}}],"htmlRoutes":[{"id":"coveo","match":{"exactSegments":false},"mode":"coveo_html"}]},{"id":"cpsc-ebike-battery","name":"E-Bike Battery Safety Standards (UL 2849)","category":"public-records","description":"Extracts UL 2849 / UL 2271 e-bike electrical system and battery certification guidance from ul.com (complementing cpsc-recalls and ebike-state-laws).","domains":["ul.com","www.ul.com"],"auth_mode":"html","exampleUrls":["https://www.ul.com/services/e-bikes-certificationevaluating-and-testing-ul-2849","https://www.ul.com/industries/automotive-and-mobility/micromobility-device-evaluation-testing-and-certification","https://www.ul.com/resources/comparison-e-bikes-standards-en-15194-and-ul-2849"],"htmlRoutes":[{"id":"cpsc-ebike-battery","match":{"exactSegments":false},"mode":"cpsc_ebike_battery_html"}]},{"id":"cpsc-recalls","name":"CPSC Recalls & SaferProducts.gov","category":"public-records","description":"Formats bounded saferproducts.gov RecallNumber queries via JSON twin and extracts structured recall details and RecallNumber from cpsc.gov/Recalls pages (never fetching the unfiltered 25 MiB SaferProducts dump).","domains":["www.saferproducts.gov","saferproducts.gov","www.cpsc.gov","cpsc.gov"],"exampleUrls":["https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123","https://www.cpsc.gov/Recalls/2027/Cipton-Recalls-Bicycle-Helmets-Due-to-Risk-of-Serious-Injury-or-Death-from-Head-Injury-Violate-Mandatory-Standard-for-Bicycle-Helmets"],"routes":[{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["RecallNumber","recallnumber","recallNumber","RECALLNUMBER"],"param":"recallNum","charset":"cpsc_recall_num","minLen":2,"maxLen":24,"transform":"strip_dashes"}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber={recallNum}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"unwrapFirstArrayElement":true,"requireFields":["RecallNumber","Title"],"vars":{"title":{"paths":["Title"],"trim":true},"recallNumber":{"paths":["RecallNumber"],"trim":true},"recallDate":{"paths":["RecallDate"],"sliceMax":10},"lastPublishDate":{"paths":["LastPublishDate"],"sliceMax":10},"description":{"paths":["Description"],"trim":true},"descShort":{"paths":["Description"],"trim":true,"sliceMax":260},"consumerContact":{"paths":["ConsumerContact"],"trim":true},"recallUrl":{"paths":["URL"],"requireHttps":true},"hazards":{"paths":["Hazards"],"subField":"Name","join":"; ","limit":10},"remedies":{"paths":["Remedies"],"subField":"Name","join":"; ","limit":10},"manufacturers":{"paths":["Manufacturers"],"subField":"Name","join":", ","limit":10},"retailers":{"paths":["Retailers"],"subField":"Name","join":", ","limit":10},"injuries":{"paths":["Injuries"],"subField":"Name","join":"; ","limit":10}},"titleTemplate":"{title} (Recall #{recallNumber})","descriptionVar":"descShort","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"},{"label":"Last Published","template":"{lastPublishDate}","whenVar":"lastPublishDate"},{"label":"Hazards","template":"{hazards}","whenVar":"hazards"},{"label":"Remedies","template":"{remedies}","whenVar":"remedies"},{"label":"Injuries / Incidents","template":"{injuries}","whenVar":"injuries"},{"label":"Manufacturers","template":"{manufacturers}","whenVar":"manufacturers"},{"label":"Retailers","template":"{retailers}","whenVar":"retailers"},{"label":"Consumer Contact","template":"{consumerContact}","whenVar":"consumerContact"},{"label":"CPSC URL","template":"{recallUrl}","whenVar":"recallUrl"}],"sections":[{"heading":"Description","textVar":"description"},{"heading":"Products","arrayPath":"Products","limit":25,"columns":[{"header":"Name","paths":["Name"]},{"header":"Model","paths":["Model"],"code":true},{"header":"Units","paths":["NumberOfUnits"]},{"header":"Type","paths":["Type"]}]},{"heading":"Images","arrayPath":"Images","limit":10,"requireItemVar":"imgUrl","collectLinkVars":["imgUrl"],"itemVars":{"imgUrl":{"paths":["URL"],"requireHttps":true},"imgCap":{"paths":["Caption"],"default":"Recall product image"}},"itemTemplate":"[{imgCap}]({imgUrl})"}],"linksVars":["recallUrl"],"recordFields":{"recallNumber":"{recallNumber}","title":"{title}","recallDate":"{recallDate}","url":"{recallUrl}","hazards":"{hazards}","remedies":"{remedies}","manufacturers":"{manufacturers}"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["Recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]},{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]}]},"mode":"dom","vars":{"title":{"cssText":["h1"],"metaKeys":["og:title"],"trim":true},"recallNumber":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"(?i)Recall\\s*(?:Number|No\\.?|#)\\s*:?\\s*([0-9]{2}-?[0-9]{2,5})","group":1},"trim":true},"recallDate":{"metaKeys":["article:published_time"],"cssText":["time",".recall-detail__date"],"trim":true},"summary":{"metaKeys":["description","og:description"],"trim":true},"body":{"cssHtmlToMd":["main article",".recall-detail",".node--type-recall","main","article"],"format":"strip_leading_h1"}},"requireVars":["title","body"],"titleTemplate":"{title}","descriptionVar":"summary","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`","whenVar":"recallNumber"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"}],"bodyVar":"body"}]},{"id":"crates-io","name":"Rust Crates.io","category":"developer","description":"Upgrades crates.io pages to the v1 JSON API with Cargo install command, MSRV, Cargo features, downloads, and release history.","domains":["crates.io","www.crates.io"],"exampleUrls":["https://crates.io/crates/serde"],"match":{"exactSegments":false,"pathSegments":["crates",{"param":"crateName","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://crates.io/api/v1/crates/{crateName}","kind":"json","accept":"application/json"},"extract":{"requireFields":["crate.name"],"vars":{"name":{"paths":["crate.name"]},"ver":{"paths":["crate.max_stable_version","crate.max_version","versions.0.num"]},"desc":{"paths":["crate.description"],"trim":true},"license":{"paths":["versions.0.license"]},"msrv":{"paths":["versions.0.rust_version"]},"repo":{"paths":["crate.repository"]},"docs":{"paths":["crate.documentation"],"fallbackTemplate":"https://docs.rs/{name}"},"downloads":{"paths":["crate.downloads"],"format":"int_comma"},"features":{"paths":["versions.0.features"],"format":"object_keys","limit":14,"itemWrap":"`","join":", "},"categories":{"paths":["categories"],"subField":"category","join":", "},"keywords":{"paths":["keywords"],"subField":"keyword","join":", "}},"titleTemplate":"{name} v{ver} (Rust Crate)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Rust Crate)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Cargo","template":"`cargo add {name}`"},{"label":"Version","template":"`{ver}`","whenVar":"ver"},{"label":"MSRV","template":"Rust `{msrv}`","whenVar":"msrv"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"API Docs","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"},{"label":"Cargo Features","template":"{features}","whenVar":"features"},{"label":"Categories","template":"{categories}","whenVar":"categories"},{"label":"Keywords","template":"{keywords}","whenVar":"keywords"}],"sections":[{"heading":"Recent Releases","arrayPath":"versions","minItems":2,"limit":6,"columns":[{"header":"Version","paths":["num"],"code":true},{"header":"Published","paths":["created_at"],"sliceMax":10},{"header":"MSRV","paths":["rust_version"]}]}],"linksVars":["docs","repo"]}},{"id":"dailymed","name":"NLM DailyMed Drug Labels","category":"research-health","description":"National Library of Medicine DailyMed v2 REST API adapter for JSON catalog endpoints and HL7 SPL XML documents with drugInfo HTML fallback.","domains":["dailymed.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?pagesize=2","https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/0f3234b2-806e-4fab-99f5-b7d15177565b.xml","https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.json?drug_name=lipitor&pagesize=2"],"routes":[{"match":{"pathPrefix":"/dailymed/services/v2/spls/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}},{"match":{"pathEquals":["/dailymed/services/v2/spls.json","/dailymed/services/v2/drugnames.json","/dailymed/services/v2/drugclasses.json","/dailymed/services/v2/ndcs.json","/dailymed/services/v2/rxcuis.json","/dailymed/services/v2/uniis.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"dailymed_list_json"}},{"match":{"pathEquals":["/dailymed/drugInfo.cfm"],"queryParams":[{"name":"setid","param":"setid","charset":"alnum_dash","minLen":32,"maxLen":40}]},"twin":{"fetchUrl":"https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/{setid}.xml","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}}],"htmlRoutes":[{"id":"dailymed","match":{"pathPrefix":"/dailymed/","exactSegments":false},"mode":"dailymed_html"}]},{"id":"dealer-locator-pack","name":"Dealer Locator Pack (Bullseye, Storepoint, MetaLocator, Where2GetIt)","category":"commerce-social","description":"Opt-in page-key adapter pack for Bullseye, Storepoint, MetaLocator, and Where2GetIt locator APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["ws.bullseyelocations.com","www.bullseyelocations.com","api.storepoint.co","hosted.where2getit.com","api.metalocator.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.bullseyelocations.com/"],"routes":[{"match":{"anyOf":[{"hosts":["ws.bullseyelocations.com","www.bullseyelocations.com"],"pathEquals":["/RestSearch.svc/DoSearch2","/RestSearch.svc/DoSearch"]},{"hosts":["api.storepoint.co"],"pathPrefix":"/v1/"},{"hosts":["api.storepoint.co"],"pathPrefix":"/public/v1/"},{"hosts":["api.metalocator.com"],"pathPrefix":"/api/"},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"responsive","ajax"]},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"rest",{"param":"action","charset":"alnum_dash","minLen":1,"maxLen":64}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"dealer_locator_pack"}}],"htmlRoutes":[{"id":"dealer-locator-pack","match":{"exactSegments":false},"mode":"dealer_locator_pack_html"}]},{"id":"deps-dev","name":"Open Source Insights (deps.dev)","category":"developer","description":"Extracts package versions, default/latest stable release, licenses, advisories, and dependencies via the deps.dev v3 JSON API.","domains":["deps.dev","api.deps.dev"],"auth_mode":"pub","exampleUrls":["https://api.deps.dev/v3/systems/npm/packages/express"],"routes":[{"match":{"hosts":["api.deps.dev"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/npm/packages/{scope}%2F{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":[{"param":"system","allowValues":["npm","pypi","cargo","nuget","go","maven"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":200}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/{system}/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}}],"htmlRoutes":[{"id":"deps-dev","match":{"hosts":["deps.dev"],"exactSegments":false},"mode":"deps_dev_html"}]},{"id":"dev-to","name":"DEV Community Articles (dev.to)","category":"commerce-social","description":"Upgrades dev.to// articles to dev.to/api/articles raw body_markdown.","domains":["dev.to","www.dev.to"],"exampleUrls":["https://dev.to/ben/long-live-rails-3p21"],"match":{"exactSegments":true,"pathSegments":[{"param":"author","charset":"alnum_dash","reserved":["t","top","latest","pod","videos","tags","search","settings","enter","new","about","privacy","terms"]},{"param":"slug","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://dev.to/api/articles/{author}/{slug}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title","body_markdown"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"author":{"paths":["user.name"]},"publishedTime":{"paths":["published_timestamp"]},"body":{"paths":["body_markdown"],"stripFrontmatter":true,"trim":true}},"titleTemplate":"{title}","descriptionVar":"desc","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body"}},{"id":"dining-reservations","name":"Dining Reservations (OpenTable / Resy / ToastTab)","category":"commerce-social","description":"Extracts public restaurant venue metadata from OpenTable, Resy, and ToastTab Local pages via Restaurant/FoodEstablishment JSON-LD and hydrated DOM while rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.opentable.com/r/gary-danko-san-francisco","https://resy.com/cities/new-york-ny/venues/carbone","https://www.toasttab.com/local"],"htmlRoutes":[{"id":"dining-reservations","match":{"hosts":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"]},"mode":"dining_reservations_html"}]},{"id":"discourse-topic","name":"Discourse Forum Threads (Universal Engine)","category":"commerce-social","description":"Upgrades any Discourse forum thread (/t//) to its .json post_stream with Accepted Solution badges.","domains":["meta.discourse.org","community.home-assistant.io","users.rust-lang.org","discuss.python.org"],"universalEngine":true,"exampleUrls":["https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371"],"match":{"exactSegments":false,"pathSegments":["t",{"param":"slug","charset":"url_seg"},{"param":"topicId","charset":"digits"}]},"twin":{"id":"discourse-topic","fetchUrl":"https://{host}/t/{slug}/{topicId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"requireAnyFields":["post_stream.posts"],"vars":{"title":{"paths":["title"],"trim":true},"tags":{"paths":["tags"],"itemWrap":"`","join":", ","limit":20},"firstAuthor":{"paths":["post_stream.posts.0.username"]},"firstCreated":{"paths":["post_stream.posts.0.created_at"]},"acceptedPostNum":{"paths":["accepted_answer.post_number"]}},"titleTemplate":"{title}","authorVar":"firstAuthor","publishedTimeVar":"firstCreated","metaLine":[{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"","subsectionsArrayPath":"post_stream.posts","limit":20,"requireItemVar":"body","subsectionHeadingTemplate":"Original Post — {userWithDate}","subsectionAltWhenVar":"nonOpPostNum","subsectionAltHeadingTemplate":"{replyBadge} — {userWithDate}","subsectionBodyVar":"body","itemVars":{"postNum":{"paths":["post_number"],"fallbackTemplate":"{index1}"},"nonOpPostNum":{"paths":["post_number"],"excludeEquals":"1"},"isAcceptedFlag":{"paths":["accepted_answer"],"format":"bool_map","trueValue":"1","falseValue":""},"isAcceptedPostNum":{"paths":["post_number"],"equalsVar":"acceptedPostNum"},"replyBadge":{"template":"✅ Accepted Solution","whenAnyVars":["isAcceptedFlag","isAcceptedPostNum"],"fallbackTemplate":"Reply #{postNum}"},"username":{"paths":["username"]},"userLabel":{"template":"@{username}","whenVars":["username"],"default":"user"},"createdDate":{"paths":["created_at"],"sliceMax":10},"userWithDate":{"template":"{userLabel} ({createdDate})","whenVars":["createdDate"],"fallbackVar":"userLabel"},"body":{"paths":["cooked"],"format":"html_to_md"}}}]}},{"id":"dkan","name":"DKAN Open Data Portals (Metastore & Datastore)","category":"public-records","description":"Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters.","domains":["data.medicaid.gov","data.healthcare.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false","https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3","https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8","https://data.healthcare.gov/dataset/e4rr-zk4i"],"routes":[{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"pathPrefix":"/api/1/metastore/schemas/dataset/items"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}},{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false,"pathSegments":["api","1","datastore","query",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_datastore_json"}},{"match":{"hosts":["data.medicaid.gov","data.healthcare.gov"],"exactSegments":true,"pathSegments":["dataset",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/api/1/metastore/schemas/dataset/items/{datasetId}?show-reference-ids=false","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}}]},{"id":"docker-hub","name":"Docker Hub","category":"developer","description":"Upgrades hub.docker.com repository and /tags pages (both /_/ official library and /r//) to the keyless Docker Hub v2 JSON API.","domains":["hub.docker.com"],"exampleUrls":["https://hub.docker.com/_/alpine","https://hub.docker.com/_/alpine/tags","https://hub.docker.com/r/library/nginx","https://hub.docker.com/r/library/nginx/tags"],"routes":[{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {namespace}/{name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}}]},{"id":"docs-rs","name":"Rust docs.rs Crate Documentation","category":"developer","description":"Extracts Rust crate metadata, version, feature flags, doc coverage, and rustdoc API pages from docs.rs SSR HTML (avoiding /json zstd binary archives).","domains":["docs.rs"],"auth_mode":"pub","exampleUrls":["https://docs.rs/crate/serde/latest","https://docs.rs/serde/latest/serde/"],"htmlRoutes":[{"id":"docs-rs","match":{"hosts":["docs.rs"],"exactSegments":false},"mode":"docs_rs_html"}]},{"id":"doi-crossref","name":"DOI.org & Crossref Bibliographic Resolver","category":"research-health","description":"Upgrades doi.org/10./ links to api.crossref.org/works/ bibliographic JSON (authors, venue, citations, JATS abstract, and publisher URL).","domains":["doi.org","www.doi.org","dx.doi.org"],"exampleUrls":["https://doi.org/10.1038/s41586-021-03819-2"],"match":{"pathSegments":[{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"https://api.crossref.org/works/{doi}","kind":"json","accept":"application/json"},"extract":{"rootPath":"message","requireVars":["title"],"vars":{"title":{"paths":["title.0"],"fallbackTemplate":"{doi}","format":"strip_tags"},"authors":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":16},"authorsShort":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":4},"venue":{"paths":["container-title.0"]},"publisher":{"paths":["publisher"]},"venueFull":{"template":"{venue} ({publisher})","whenVars":["venue","publisher"],"fallbackVar":"venue"},"citations":{"paths":["is-referenced-by-count"],"format":"int_comma"},"pubUrl":{"paths":["URL"],"fallbackTemplate":"https://doi.org/{doi}","requireHttps":true},"pubDate":{"paths":["issued.date-parts.0"],"format":"date_parts"},"abstract":{"paths":["abstract"],"format":"jats_abstract"},"abstractShort":{"paths":["abstract"],"format":"jats_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"DOI","template":"`{doi}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Venue / Journal","template":"{venueFull}","whenVar":"venueFull"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Cited By (Crossref)","template":"{citations}","whenVar":"citations"},{"label":"Publisher Link","template":"{pubUrl}","whenVar":"pubUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["pubUrl"]}},{"id":"dpla","name":"Digital Public Library of America (DPLA)","category":"public-records","description":"Digital Public Library of America (DPLA) API v2 adapter with HTML fallback and 2000ms Crawl-delay politeness.","domains":["dp.la","www.dp.la","api.dp.la"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.dp.la/v2/items?q=kittens","https://dp.la/item/c3e08f4945e5b7d26386942a4a7f24a2"],"routes":[{"match":{"hosts":["api.dp.la"],"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}},{"match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"pathSegments":["item",{"param":"itemId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://api.dp.la/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}}],"htmlRoutes":[{"id":"dpla","match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"reservedFirstSegment":["search","qa"]},"mode":"dpla_html"}]},{"id":"ebay","name":"eBay Official Browse API","category":"commerce-social","description":"Extracts eBay item pricing, condition, MPN, strict GTIN, and search summaries via the official eBay Browse API.","domains":["ebay.com","www.ebay.com","api.ebay.com"],"auth_mode":"key","exampleUrls":["https://www.ebay.com/itm/133000133001","https://api.ebay.com/buy/browse/v1/item/v1|133000133001|0"],"routes":[{"match":{"hosts":["ebay.com","www.ebay.com"],"anyOf":[{"exactSegments":true,"pathSegments":["itm",{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]},{"exactSegments":false,"pathSegments":["itm",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]}]},"twin":{"fetchUrl":"https://api.ebay.com/buy/browse/v1/item/v1|{itemId}|0","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}},{"match":{"hosts":["api.ebay.com"],"pathPrefix":"/buy/browse/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}}]},{"id":"ebike-state-laws","name":"US E-Bike & Bicycle State Laws","category":"public-records","description":"Extracts US state electric bicycle and cycling statutes from PeopleForBikes Prismic/Next.js state tables and League of American Bicyclists state law profiles.","domains":["peopleforbikes.org","www.peopleforbikes.org","bikeleague.org","www.bikeleague.org"],"auth_mode":"html","exampleUrls":["https://www.peopleforbikes.org/electric-bikes/state-laws","https://www.peopleforbikes.org/electric-bikes/policies-and-laws","https://bikeleague.org/bike-laws/state-bike-laws/?bikelaw-by-state=colorado"],"htmlRoutes":[{"id":"ebike-state-laws","match":{"exactSegments":false},"mode":"ebike_state_laws_html"}]},{"id":"ecfr","name":"Electronic Code of Federal Regulations (eCFR)","category":"public-records","description":"Public eCFR Versioner and Search API adapter enforcing strict robots.txt politeness on structure, ancestry, versions, titles, and search endpoints.","domains":["ecfr.gov","www.ecfr.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.ecfr.gov/api/versioner/v1/titles.json","https://www.ecfr.gov/api/versioner/v1/ancestry/2025-01-01/title-16.json?part=1512","https://www.ecfr.gov/api/search/v1/results?query=bicycle&per_page=2"],"routes":[{"match":{"anyOf":[{"pathEquals":["/api/versioner/v1/titles.json","/api/search/v1/results","/api/admin/v1/agencies.json"]},{"pathPrefix":"/api/versioner/v1/structure/"},{"pathPrefix":"/api/versioner/v1/ancestry/"},{"pathPrefix":"/api/versioner/v1/versions/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}},{"match":{"exactSegments":false,"pathSegments":["current",{"param":"title","charset":"alnum_dash","stripPrefix":"title-","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://www.ecfr.gov/api/search/v1/results?query=title+{title}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}}]},{"id":"ecode360-general-code","name":"eCode360 Municipal Codes","category":"public-records","description":"HTML extractor for General Code eCode360 municipal ordinances, chapters, and statutory sections.","domains":["ecode360.com","www.ecode360.com"],"auth_mode":"html","exampleUrls":["https://ecode360.com/44475260","https://ecode360.com/OR5214"],"htmlRoutes":[{"id":"ecode360-general-code","match":{"exactSegments":false},"mode":"ecode360_html"}]},{"id":"ecwid","name":"Ecwid Storefronts & REST API v3","category":"commerce-social","description":"Opt-in page-key adapter for Ecwid /api/v3/{storeId}/products JSON twins with clean HTML/JSON-LD storefront fallback when disabled.","domains":["app.ecwid.com","www.ecwid.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://mdemo.company.site/Black-Tank-p109736045"],"routes":[{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}},{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products",{"param":"productId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}}],"htmlRoutes":[{"id":"ecwid","match":{"exactSegments":false},"mode":"ecwid_html"}]},{"id":"edge-cloud-changelogs","name":"Edge & Cloud Changelogs (Cloudflare, Vercel, Netlify)","category":"developer","description":"Extracts RSS 2.0 and Atom 1.0 release changelogs from Cloudflare Developers, Vercel, and Netlify with same-origin HTML-to-feed upgrades.","domains":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"auth_mode":"pub","exampleUrls":["https://developers.cloudflare.com/changelog/rss/d1.xml","https://vercel.com/atom","https://www.netlify.com/changelog/feed.xml"],"routes":[{"match":{"hosts":["developers.cloudflare.com"],"anyOf":[{"pathEquals":["/changelog/rss/index.xml","/changelog/index.xml"]},{"pathPrefix":"/changelog/rss/","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["developers.cloudflare.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://developers.cloudflare.com/changelog/rss/index.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/atom","/changelog/atom"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://vercel.com/atom","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog/feed.xml","/changelog/rss.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://www.netlify.com/changelog/feed.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}}],"htmlRoutes":[{"id":"edge-cloud-changelogs","match":{"hosts":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"pathPrefix":"/changelog","exactSegments":false},"mode":"edge_cloud_changelog_html"}]},{"id":"edlio-thrillshare","name":"Edlio & Apptegy Thrillshare","category":"public-records","description":"Extracts K-12 school district news feeds, events, and announcements from Edlio (/apps/news/, /apps/events/) and Apptegy Thrillshare portals.","domains":["*.edlio.com","*.apptegy.us","*.sites.thrillshare.com","www.worldcompassacademy.com","www.windsorc1.com","www.eupschools.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.worldcompassacademy.com/apps/news/","https://www.windsorc1.com/o/wcmo/news","https://www.eupschools.org/"],"htmlRoutes":[{"id":"edlio-thrillshare","match":{"exactSegments":false},"mode":"edlio_thrillshare_html"}]},{"id":"edu-job-boards","name":"Education Job Boards (Chronicle Jobs, HigherEdJobs, K12JobSpot, EdJoin)","category":"jobs","description":"Extracts academic and K-12 JobPosting JSON-LD, Chronicle RSS feeds, and job board HTML while rejecting Incapsula/Cloudflare WAF challenges and unhydrated CSR templates.","domains":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"auth_mode":"pub","exampleUrls":["https://jobs.chronicle.com/job/38070836/director-of-occupational-therapy/","https://jobs.chronicle.com/jobsrss/?countrycode=US","https://www.k12jobspot.com/en","https://www.edjoin.org/Home/Jobs?keywords=teacher&searchType=all"],"routes":[{"match":{"hosts":["jobs.chronicle.com"],"pathPrefix":"/jobsrss","exactSegments":false},"twin":{"id":"edu-job-boards","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Chronicle of Higher Education Jobs ({itemCount})","emptyText":"No open academic positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","category":"{dept}","postedAt":"{pubDate}","source":"chronicle"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Category","template":"{dept}"},{"header":"Published","template":"{pubDate}"}]}}}],"htmlRoutes":[{"id":"edu-job-boards","mode":"edu_job_boards_html","match":{"hosts":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"exactSegments":false}}]},{"id":"edx-coursera","name":"edX & Coursera Course Catalog","category":"public-records","description":"Extracts edX course catalog API JSON and Coursera / edX public course landing pages via Course JSON-LD and DOM metadata.","domains":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/","https://www.coursera.org/learn/machine-learning","https://www.edx.org/learn/python"],"routes":[{"match":{"hosts":["courses.edx.org"],"pathPrefix":"/api/courses/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"edx_course_json"}}],"htmlRoutes":[{"id":"edx-coursera","match":{"hosts":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"exactSegments":false},"mode":"edx_coursera_html"}]},{"id":"eia","name":"U.S. Energy Information Administration (EIA)","category":"public-records","description":"U.S. Energy Information Administration Open Data v2 JSON API adapter with eia.gov HTML table/prose fallback.","domains":["eia.gov","www.eia.gov","api.eia.gov"],"auth_mode":"key","exampleUrls":["https://api.eia.gov/v2/petroleum/pri/gnd/data/?frequency=weekly&data[0]=value&length=10","https://www.eia.gov/opendata/","https://www.eia.gov/petroleum/gasdiesel/"],"routes":[{"match":{"hosts":["api.eia.gov"],"exactSegments":false,"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"eia_json"}}],"htmlRoutes":[{"id":"eia","match":{"hosts":["eia.gov","www.eia.gov"],"exactSegments":false},"mode":"eia_html"}]},{"id":"electronics-retail-specs","name":"US Electronics Retailers Spec Extractor","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical specification tables for Newegg, B&H Photo Video, and Micro Center.","domains":["newegg.com","www.newegg.com","bhphotovideo.com","www.bhphotovideo.com","microcenter.com","www.microcenter.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.microcenter.com/product/678482/amd-ryzen-7-7800x3d-raphael-am5-42ghz-8-core-boxed-processor-heatsink-not-included","https://www.bhphotovideo.com/c/product/1791390-REG/sony_ilce7m4_b.html"],"htmlRoutes":[{"id":"electronics-retail-specs","match":{"exactSegments":false},"mode":"electronics_retail_specs_html"}]},{"id":"enterprise-ats-full","name":"Enterprise ATS Full (Eightfold, Phenom, Avature, Cornerstone)","category":"jobs","description":"Upgrades Eightfold /careers & /careers/job/ to robots-allowed /api/pcsx/search & /api/pcsx/position_details JSON twins, plus Phenom, Avature, and Cornerstone HTML extractors.","domains":["www.phenom.com","eightfold.ai","nvidia.eightfold.ai","paypal.eightfold.ai","bloomberg.avature.net","www.avature.net","www.csod.com","cornerstone.csod.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://nvidia.eightfold.ai/careers/job/893391708161","https://cornerstone.csod.com/ux/ats/careersite/2/home/requisition/11818?c=cornerstone","https://bloomberg.avature.net/careers/JobDetail/Senior-Software-Engineer-Electronic-Trading/46354"],"routes":[{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathPrefix":"/careers/job/","scanSegment":{"afterLiteral":"job","param":"jobId","charset":"slug","minLen":1,"maxLen":64}},"twin":{"fetchUrl":"https://{host}/api/pcsx/position_details?position_id={jobId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/position_details"],"queryParams":[{"name":"position_id","param":"jobId","charset":"slug","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"],"queryParams":[{"name":"domain","param":"domain","charset":"pkg","minLen":3,"maxLen":120}]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={domain}&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={tenant}.com&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}}],"htmlRoutes":[{"id":"enterprise-ats-full","mode":"enterprise_ats_full_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"anyOf":[{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":false},{"hosts":["careers.phenom.com","www.phenom.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".avature.net","param":"tenant","reserved":["www","login","auth"]},"exactSegments":false},{"hosts":["www.avature.net"],"exactSegments":false},{"hostSubdomain":{"suffix":".csod.com","param":"tenant","reserved":["www","login","auth"]},"pathPrefix":"/ux/ats/careersite/","exactSegments":false},{"hosts":["www.csod.com"],"pathPrefix":"/ux/ats/careersite/","exactSegments":false}]}}]},{"id":"enterprise-ats","name":"SmartRecruiters, Oracle HCM Cloud & Jobvite","category":"jobs","description":"Keyless Oracle HCM Cloud recruitingCEJobRequisitions REST twin + robots.txt-safe SmartRecruiters and Jobvite HTML posting extractors.","domains":["jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"exampleUrls":["https://jobs.smartrecruiters.com/Canva/6000000001554828-enterprise-security-manager-","https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1001/requisitions","https://jobs.jobvite.com/optimizely/job/oHG8efwt"],"routes":[{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}}]},"twin":{"id":"oracle-hcm-job","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitionDetails?onlyData=true&expand=all&finder=ById;Id=%22{reqId}%22,siteNumber={siteNumber}","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["Title"],"vars":{"jobTitle":{"paths":["Title"],"trim":true},"loc":{"paths":["PrimaryLocation"],"trim":true},"wp":{"paths":["WorkplaceType"],"trim":true},"posted":{"paths":["ExternalPostedStartDate"],"sliceMax":10,"trim":true},"extDesc":{"paths":["ExternalDescriptionStr"],"format":"html_to_md"},"extResp":{"paths":["ExternalResponsibilitiesStr"],"format":"html_to_md"},"extQual":{"paths":["ExternalQualificationsStr"],"format":"html_to_md"}},"titleTemplate":"{jobTitle}","publishedTimeVar":"posted","bullets":[{"label":"Requisition ID","template":"`{reqId}`"},{"label":"Primary Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Posted","template":"{posted}","whenVar":"posted"}],"bodyVar":"extDesc","sections":[{"heading":"Responsibilities","textVar":"extResp"},{"heading":"Qualifications","textVar":"extQual"}]}},{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions/","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}]}]},"twin":{"id":"oracle-hcm-board","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitions?onlyData=true&expand=requisitionList.secondaryLocations&finder=findReqs;siteNumber={siteNumber},limit=25","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","vars":{"reqCount":{"paths":["requisitionList"],"format":"array_len"},"total":{"paths":["TotalJobsCount"],"fallbackTemplate":"{reqCount}"}},"requireVars":["reqCount"],"titleTemplate":"Oracle HCM ({siteNumber}) — Open Requisitions ({total})","sections":[{"heading":"","arrayPath":"requisitionList","limit":50,"emptyText":"No open requisitions currently listed.","itemVars":{"id":{"paths":["Id"]},"rTitle":{"paths":["Title"],"trim":true,"default":"Requisition"},"rUrl":{"template":"https://{host}/hcmUI/CandidateExperience/en/sites/{siteNumber}/job/{id}"},"loc":{"paths":["PrimaryLocation"],"trim":true,"default":"-"},"wp":{"paths":["WorkplaceType"],"trim":true,"default":"-"},"posted":{"paths":["PostedDate"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["rUrl"],"columns":[{"header":"Requisition","template":"[{rTitle}]({rUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Posted","template":"{posted}"}]}]}}],"htmlRoutes":[{"id":"smartrecruiters","mode":"dom","match":{"hosts":["jobs.smartrecruiters.com"],"exactSegments":false,"minSegments":2,"pathSegments":[{"param":"org","charset":"pkg"}]},"jsonLdTypes":["JobPosting"],"vars":{"jobTitle":{"jsonLdPaths":["title"],"cssText":["h1.job-title"]},"company":{"jsonLdPaths":["hiringOrganization.name"],"fallbackTemplate":"{org}"},"body":{"cssHtmlToMd":["div[itemprop=\"description\"]","section#st-jobDescription"],"jsonLdPaths":["description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"body"},{"id":"jobvite","mode":"dom","match":{"hosts":["jobs.jobvite.com"],"exactSegments":false,"pathSegments":[{"param":"org","charset":"pkg"},"job",{"param":"jobId","charset":"pkg"}]},"vars":{"jobTitle":{"cssText":["h2.jv-header"]},"meta":{"cssText":["p.jv-job-detail-meta"]},"body":{"cssHtmlToMd":["div.jv-job-detail-description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {org}","metaItalicTemplate":"{meta}","metaItalicWhenVar":"meta","bodyVar":"body"}]},{"id":"epa-envirofacts-echo","name":"EPA Envirofacts & ECHO","category":"research-health","description":"US EPA Envirofacts REST API (data.epa.gov/efservice), ECHO REST services, and echo.epa.gov HTML facility fallback with strict robots.txt politeness.","domains":["data.epa.gov","enviro.epa.gov","echo.epa.gov","echodata.epa.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://data.epa.gov/efservice/tri_facility/state_abbr/DC/rows/0:2/JSON","https://echo.epa.gov/detailed-facility-report?fid=110000350174"],"routes":[{"match":{"hosts":["data.epa.gov"],"pathPrefix":"/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["enviro.epa.gov"],"pathPrefix":"/enviro/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["echodata.epa.gov"],"pathPrefix":"/echo/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}}],"htmlRoutes":[{"id":"epa-envirofacts-echo","match":{"hosts":["echo.epa.gov"],"exactSegments":false},"mode":"epa_echo_html"}]},{"id":"epa-fueleconomy","name":"EPA FuelEconomy.gov","category":"public-records","description":"U.S. DOE/EPA FuelEconomy.gov /ws/rest/ JSON API adapter for vehicle MPG, range, CO2, and make/model/year menus.","domains":["fueleconomy.gov","www.fueleconomy.gov"],"auth_mode":"pub","exampleUrls":["https://www.fueleconomy.gov/ws/rest/vehicle/41276","https://www.fueleconomy.gov/ws/rest/vehicle/menu/make?year=2024"],"routes":[{"match":{"pathPrefix":"/ws/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"fueleconomy_json"}}]},{"id":"etsy","name":"Etsy Open API v3","category":"commerce-social","description":"Extracts Etsy listing title, converted price, SKU, quantity, state, and shop search results via the official Etsy Open API v3.","domains":["etsy.com","www.etsy.com","openapi.etsy.com"],"auth_mode":"key","exampleUrls":["https://www.etsy.com/listing/134000134/walnut-desk-tray","https://openapi.etsy.com/v3/application/listings/134000134"],"routes":[{"match":{"hosts":["etsy.com","www.etsy.com"],"exactSegments":false,"pathSegments":["listing",{"param":"listingId","charset":"digits","minLen":5,"maxLen":16}]},"twin":{"fetchUrl":"https://openapi.etsy.com/v3/application/listings/{listingId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}},{"match":{"hosts":["openapi.etsy.com"],"pathPrefix":"/v3/application/listings"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}}]},{"id":"eur-lex","name":"EUR-Lex","category":"public-records","description":"Upgrades eur-lex.europa.eu/legal-content//TXT/?uri=* pages to the static /TXT/HTML/?uri=* twin while respecting robots.txt Crawl-delay and never touching disallowed /TXT/DOC/.","domains":["eur-lex.europa.eu"],"exampleUrls":["https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679"],"match":{"exactSegments":true,"pathSegments":["legal-content",{"param":"lang","charset":"alnum","minLen":2,"maxLen":3,"transform":"upper"},"TXT"],"queryParams":[{"name":"uri","param":"uri","charset":"safe_subpath","minLen":3,"maxLen":200}]},"twin":{"fetchUrl":"https://eur-lex.europa.eu/legal-content/{lang}/TXT/HTML/?uri={uri}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"EUR-Lex {uri} ({lang})"}},{"id":"eventbrite","name":"Eventbrite Events","category":"commerce-social","description":"Extracts Eventbrite event details via the official Eventbrite v3 API when configured, with Event/Festival JSON-LD and __NEXT_DATA__ HTML fallback.","domains":["eventbrite.com","www.eventbrite.com","www.eventbriteapi.com"],"auth_mode":"key","exampleUrls":["https://www.eventbrite.com/e/music-mimosa-festival-fall-edition-tickets-2004426596909","https://www.eventbriteapi.com/v3/events/2004426596909/"],"routes":[{"match":{"hosts":["www.eventbriteapi.com"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}},{"match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":true,"pathSegments":["e",{"param":"eventId","charset":"digits","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://www.eventbriteapi.com/v3/events/{eventId}/","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}}],"htmlRoutes":[{"id":"eventbrite","match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":false},"mode":"eventbrite_html"}]},{"id":"faa-registry","name":"FAA Aircraft Registry","category":"public-records","description":"FAA Civil Aviation Registry HTML extractor for N-Number lookups (/aircraftinquiry/Search/NNumberResult); note origin Akamai may return 403 to non-browser bot UAs.","domains":["registry.faa.gov"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=N101"],"htmlRoutes":[{"id":"faa-registry","match":{"hosts":["registry.faa.gov"],"pathPrefix":"/aircraftinquiry/search/","excludeSegmentSuffixes":[".asp"],"exactSegments":false},"mode":"faa_registry_html"}]},{"id":"fcc-id","name":"FCC ID Equipment Authorization","category":"public-records","description":"Extracts FCC ID grant metadata, technical frequency/power tables, and exhibit PDF links from fccid.io public HTML pages while respecting robots.txt disallows.","domains":["fccid.io","www.fccid.io"],"exampleUrls":["https://fccid.io/BCG-E3542A"],"htmlRoutes":[{"id":"fcc-id","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["ViewExhibitReport.cfm","subscribe.php","frequency","search","api"],"pathSegments":[{"param":"grantee","charset":"url_seg","minLen":2,"maxLen":64},{"param":"product","charset":"url_seg","optional":true,"minLen":1,"maxLen":120}]},"vars":{"title":{"cssText":["h1","title"],"metaKeys":["og:title"],"trim":true},"summary":{"cssText":["main p","article p"],"minLen":20,"sliceMax":400,"trim":true}},"requireVars":["title","summary"],"titleTemplate":"{title}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"FCC ID","template":"`{grantee}`"}],"appendCurrentMdDelta":{"minExtraChars":0}}]},{"id":"fdic-bankfind","name":"FDIC BankFind Suite","category":"finance","description":"Extracts insured institution profiles and failed bank lists directly from api.fdic.gov/banks/ (avoiding banks.data.fdic.gov/api 301 redirects) with 1 req/s politeness and SPA shell rejection.","domains":["banks.data.fdic.gov","api.fdic.gov","www.fdic.gov","fdic.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.fdic.gov/banks/institutions?filters=CERT:3511&limit=1","https://www.fdic.gov/resources/resolutions/bank-failures/","https://api.fdic.gov/banks/failures?limit=1"],"routes":[{"match":{"hosts":["api.fdic.gov"],"pathPrefix":"/banks/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["banks.data.fdic.gov"],"exactSegments":false,"pathSegments":["api",{"param":"endpoint","charset":"url_seg","minLen":2,"maxLen":64}]},"twin":{"fetchUrl":"https://api.fdic.gov/banks/{endpoint}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["www.fdic.gov","fdic.gov"],"pathPrefix":"/resources/resolutions/bank-failures"},"twin":{"fetchUrl":"https://api.fdic.gov/banks/failures?sort_by=FAILDATE&sort_order=DESC&limit=25","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}}],"htmlRoutes":[{"id":"fdic-bankfind","match":{"hosts":["banks.data.fdic.gov","www.fdic.gov","fdic.gov"],"exactSegments":false},"mode":"fdic_bankfind_html"}]},{"id":"fec","name":"FEC Campaign Finance","category":"public-records","description":"Upgrades fec.gov candidate and committee pages to official OpenFEC API v1 JSON summaries via api.data.gov key helper with HTML fallback.","domains":["www.fec.gov","fec.gov","api.open.fec.gov"],"auth_mode":"key","exampleUrls":["https://www.fec.gov/data/candidate/S8FL00216/","https://api.open.fec.gov/v1/candidate/S8FL00216/"],"routes":[{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","candidate",{"param":"candId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/candidate/{candId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","committee",{"param":"commId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/committee/{commId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["api.open.fec.gov"],"pathPrefix":"/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}}],"htmlRoutes":[{"id":"fec","match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false},"mode":"fec_html"}]},{"id":"federal-register","name":"Federal Register","category":"public-records","description":"Upgrades federalregister.gov/documents///
//* pages to the official /api/v1/documents/.json twin (strictly excluding disallowed /documents/current).","domains":["www.federalregister.gov","federalregister.gov"],"exampleUrls":["https://www.federalregister.gov/documents/2024/05/07/2024-09171/non-compete-clause-rule"],"match":{"exactSegments":false,"pathSegments":["documents",{"param":"yyyy","charset":"digits","minLen":4,"maxLen":4},{"param":"mm","charset":"digits","minLen":2,"maxLen":2},{"param":"dd","charset":"digits","minLen":2,"maxLen":2},{"param":"docNumber","charset":"alnum_dash","minLen":3,"maxLen":64}]},"twin":{"fetchUrl":"https://www.federalregister.gov/api/v1/documents/{docNumber}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title","document_number"],"vars":{"title":{"paths":["title"],"trim":true},"docNumber":{"paths":["document_number"]},"docType":{"paths":["type"]},"citation":{"paths":["citation"]},"pubDate":{"paths":["publication_date"]},"urlDate":{"template":"{yyyy}-{mm}-{dd}"},"pubDateMatchesUrl":{"paths":["publication_date"],"equalsVar":"urlDate"},"effectiveOn":{"paths":["effective_on"]},"dates":{"paths":["dates"],"trim":true},"action":{"paths":["action"],"trim":true},"agencies":{"paths":["agencies"],"subField":"name","join":", ","limit":12},"cfrRefs":{"paths":["cfr_references"],"subFieldsJoin":{"fields":["title","part"],"sep":" CFR Part ","fallbackField":"title"},"join":"; ","limit":20},"dockets":{"paths":["docket_ids"],"join":", ","limit":12},"abstract":{"paths":["abstract"],"trim":true},"abstractShort":{"paths":["abstract"],"trim":true,"sliceMax":260},"pdfUrl":{"paths":["pdf_url"],"requireHttps":true},"bodyHtmlUrl":{"paths":["body_html_url"],"requireHttps":true},"xmlUrl":{"paths":["full_text_xml_url"],"requireHttps":true},"htmlUrl":{"paths":["html_url"],"requireHttps":true}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"agencies","publishedTimeVar":"pubDate","bullets":[{"label":"Document Number","template":"`{docNumber}`"},{"label":"Type","template":"{docType}","whenVar":"docType"},{"label":"Citation","template":"{citation}","whenVar":"citation"},{"label":"Agencies","template":"{agencies}","whenVar":"agencies"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Warning","template":"Publication date {pubDate} does not match the URL date {urlDate}; the URL may point to a different document than its date suggests.","whenVar":"pubDate","unlessVar":"pubDateMatchesUrl"},{"label":"Effective On","template":"{effectiveOn}","whenVar":"effectiveOn"},{"label":"Dates","template":"{dates}","whenVar":"dates"},{"label":"Action","template":"{action}","whenVar":"action"},{"label":"CFR References","template":"{cfrRefs}","whenVar":"cfrRefs"},{"label":"Docket IDs","template":"{dockets}","whenVar":"dockets"},{"label":"PDF","template":"{pdfUrl}","whenVar":"pdfUrl"},{"label":"Body HTML","template":"{bodyHtmlUrl}","whenVar":"bodyHtmlUrl"},{"label":"Full Text XML","template":"{xmlUrl}","whenVar":"xmlUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"},{"heading":"CFR References","arrayPath":"cfr_references","limit":25,"columns":[{"header":"Title","paths":["title"]},{"header":"Part","paths":["part"]},{"header":"Chapter","paths":["chapter"]}]}],"linksVars":["pdfUrl","htmlUrl","bodyHtmlUrl","xmlUrl"]}},{"id":"fediverse-pack","name":"Fediverse Pack (Misskey, Kbin, Mbin)","category":"commerce-social","description":"Extracts Misskey notes via POST /api/notes/show JSON and Kbin/Mbin threads via ActivityPub JSON or SSR HTML while rejecting Anubis proof-of-work and /login gates.","domains":["kbin.earth","gehirneimer.de","misskey.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://misskey.io/notes/au4n1wud00cl0t3s","https://kbin.earth/m/news@lemmy.world/t/3423982/Iran-reportedly-used-Starlink-in-military-operations-against-U-S"],"routes":[{"match":{"exactSegments":true,"pathSegments":["notes",{"param":"noteId","charset":"alnum","minLen":8,"maxLen":24}]},"twin":{"fetchUrl":"https://{host}/api/notes/show","method":"POST","contentType":"application/json","requestBody":"{\"noteId\":\"{noteId}\"}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":true,"pathSegments":["api","notes","show"]},"twin":{"fetchUrl":"{requestUrl}","method":"POST","contentType":"application/json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":false,"pathSegments":["m",{"param":"mag","charset":"brew_id","minLen":1,"maxLen":120},"t",{"param":"threadId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/activity+json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}}],"htmlRoutes":[{"id":"fediverse-pack","match":{"exactSegments":false},"mode":"fediverse_pack_html"}]},{"id":"fema-openfema","name":"FEMA OpenFEMA API v2","category":"public-records","description":"FEMA OpenFEMA v2 JSON dataset API (DisasterDeclarationsSummaries and public datasets) honoring strict robots.txt 15s crawl-delay.","domains":["www.fema.gov","fema.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":15000,"exampleUrls":["https://www.fema.gov/api/open/v2/DisasterDeclarationsSummaries?%24top=2"],"routes":[{"match":{"hosts":["www.fema.gov","fema.gov"],"pathPrefix":"/api/open/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fema_openfema_json"}}]},{"id":"finalsite","name":"Finalsite K-12 & Independent Schools","category":"public-records","description":"Extracts Finalsite K-12 school and independent school calendar events, news announcements, and resource blocks from /fs/ and fsElement DOM.","domains":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":5000,"exampleUrls":["https://www.greenwichschools.org/calendar","https://www.choate.edu/"],"htmlRoutes":[{"id":"finalsite","match":{"exactSegments":false},"mode":"finalsite_html"}]},{"id":"finra-brokercheck","name":"FINRA BrokerCheck","category":"finance","description":"Extracts FINRA BrokerCheck individual broker and firm registration, employment, exam, and disclosure records via same-eTLD+1 api.brokercheck.finra.org.","domains":["brokercheck.finra.org","api.brokercheck.finra.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://brokercheck.finra.org/individual/summary/810315","https://brokercheck.finra.org/firm/summary/79","https://api.brokercheck.finra.org/search/firm/79"],"routes":[{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["individual","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/individual/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["firm","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/firm/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["api.brokercheck.finra.org"],"pathPrefix":"/search/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}}],"htmlRoutes":[{"id":"finra-brokercheck","match":{"hosts":["brokercheck.finra.org"]},"mode":"finra_brokercheck_html"}]},{"id":"fmcsa-safer","name":"FMCSA SAFER Carrier Registry","category":"public-records","description":"FMCSA QCMobile REST API (webKey) adapter for USDOT/MC carrier lookups with safer.fmcsa.dot.gov Company Snapshot HTML fallback.","domains":["safer.fmcsa.dot.gov","mobile.fmcsa.dot.gov"],"auth_mode":"key","exampleUrls":["https://mobile.fmcsa.dot.gov/qc/services/carriers/44110","https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=44110"],"routes":[{"match":{"hosts":["mobile.fmcsa.dot.gov"],"pathPrefix":"/qc/services/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}},{"match":{"hosts":["safer.fmcsa.dot.gov"],"pathEquals":["/query.asp"],"queryParams":[{"name":"query_param","param":"queryParam","allowValues":["USDOT"]},{"name":"query_string","param":"dotNumber","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mobile.fmcsa.dot.gov/qc/services/carriers/{dotNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}}],"htmlRoutes":[{"id":"fmcsa-safer","match":{"hosts":["safer.fmcsa.dot.gov"],"exactSegments":false},"mode":"fmcsa_safer_html"}]},{"id":"foursquare-places","name":"Foursquare Places API v3","category":"commerce-social","description":"Extracts place search results, venue details, and tips from the official Foursquare Places API v3 (api.foursquare.com).","domains":["api.foursquare.com"],"auth_mode":"key","exampleUrls":["https://api.foursquare.com/v3/places/search?query=coffee&near=Seattle","https://api.foursquare.com/v3/places/4b86a9f7f964a520d69331e3"],"routes":[{"match":{"hosts":["api.foursquare.com"],"anyOf":[{"pathEquals":["/v3/places/search"]},{"pathPrefix":"/v3/places/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"foursquare_places_json"}}]},{"id":"fpds-sam-contract-awards","name":"FPDS & SAM.gov Contract Awards","category":"public-records","description":"Extracts keyless FPDS Atom XML contract award feeds (FEEDNAME=PUBLIC) and key-authenticated api.sam.gov/contract-awards JSON without colliding with sam-gov.","domains":["fpds.gov","www.fpds.gov"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q=LAST_MOD_DATE:[2026/06/25,2026/06/26]","https://api.sam.gov/contract-awards/v1/search?limit=1"],"routes":[{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/FEEDS/ATOM"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"FEEDNAME":"PUBLIC"},"kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"q","param":"q","charset":"safe_subpath","minLen":1,"maxLen":240}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q={q}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"s","param":"s","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&s={s}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/contract-awards"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fpds_sam_awards_json"}}],"htmlRoutes":[{"id":"fpds-sam-contract-awards","match":{"hosts":["fpds.gov","www.fpds.gov"],"exactSegments":false},"mode":"fpds_sam_awards_html"}]},{"id":"fred","name":"FRED Economic Data","category":"finance","description":"Federal Reserve Economic Data (FRED) API v1 JSON observations/series adapter with stlouisfed.org HTML series fallback.","domains":["fred.stlouisfed.org","api.stlouisfed.org"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://fred.stlouisfed.org/series/GDP","https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json","https://api.stlouisfed.org/fred/series?series_id=GDP&file_type=json"],"routes":[{"match":{"hosts":["api.stlouisfed.org"],"exactSegments":false,"pathPrefix":"/fred/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"file_type":"json"},"kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}},{"match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.stlouisfed.org/fred/series/observations?series_id={seriesId}&file_type=json&limit=25&sort_order=desc","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}}],"htmlRoutes":[{"id":"fred","match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"mode":"fred_html"}]},{"id":"freshdesk-portal","name":"Freshdesk Support Portal","category":"developer","description":"Extracts Freshdesk support portal articles, folders, and categories from public knowledge base HTML.","domains":["support.freshdesk.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.freshdesk.com/support/solutions/articles/240170-setting-up-your-support-email-in-gmail-video-guide","https://support.freshdesk.com/support/solutions/folders/275395"],"htmlRoutes":[{"id":"freshdesk-portal","match":{"exactSegments":false},"mode":"freshdesk_portal_html"}]},{"id":"gannett-usatoday-network","name":"Gannett / USA TODAY Network","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Gannett story content across USA TODAY and Gannett regional newspapers while rejecting Access Restricted gates.","domains":["www.usatoday.com","usatoday.com","www.azcentral.com","www.freep.com","www.indystar.com","www.cincinnati.com","www.dispatch.com","www.detroitnews.com","www.jsonline.com","www.tennessean.com","www.courier-journal.com"],"auth_mode":"html","exampleUrls":["https://www.usatoday.com/"],"htmlRoutes":[{"id":"gannett-usatoday-network","match":{"exactSegments":false},"mode":"gannett_usatoday_html"}]},{"id":"gem-ats","name":"Gem Job Boards","category":"jobs","description":"Upgrades jobs.gem.com/ boards and job posts to the keyless api.gem.com/job_board/v0//job_posts/ JSON feed.","domains":["jobs.gem.com"],"exampleUrls":["https://jobs.gem.com/gem"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"postId","charset":"pkg"}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","findInArray":{"arrayPath":"posts","matchFields":["id","public_id"],"matchTemplate":"{postId}","endsWithField":"absolute_url","endsWithTemplate":"/{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name","location_type"],"trim":true},"depts":{"paths":["departments"],"subField":"name","join":", "},"bodyHtml":{"paths":["content"],"format":"html_to_md"},"bodyPlain":{"paths":["content_plain"],"format":"plain_text","trim":true},"body":{"template":"{bodyHtml}","whenVars":["bodyHtml"],"fallbackVar":"bodyPlain"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Department","template":"{depts}","whenVar":"depts"}],"bodyVar":"body","fallbackExtract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}]},{"id":"giant-liv-bikes","name":"Giant & Liv Bicycles Specs & Manuals","category":"commerce-social","description":"Extracts bike specifications, geometry GFM tables, and owner manual PDF links from Giant and Liv regional HTML pages while respecting Crawl-delay and never hitting /shop*, /comparison*, /account*, or /apiproxy/*.","domains":["www.giant-bicycles.com","*.giant-bicycles.com","giant-bicycles.com","www.liv-cycling.com","*.liv-cycling.com","liv-cycling.com"],"exampleUrls":["https://www.giant-bicycles.com/us/defy-advanced-pro-0","https://www.liv-cycling.com/us/avail-advanced-pro-0","https://www.giant-bicycles.com/us/manuals"],"htmlRoutes":[{"id":"giant-liv-bikes","mode":"giant_liv_html","match":{"exactSegments":false,"excludeSegmentSuffixes":[".xml",".json"],"anyOf":[{"exactSegments":false,"optionalLeadingLocale":true,"reservedFirstSegment":["shop","comparison","account","apiproxy","int","global"]},{"exactSegments":false,"pathSegments":[{"param":"locale3","allowValues":["int","global"]},{"param":"seg1","charset":"url_seg","minLen":1,"maxLen":160,"reserved":["shop","comparison","account","apiproxy"]}]}]}}]},{"id":"github-gist","name":"GitHub Gists","category":"developer","description":"Extracts multi-file GitHub Gist code blocks with fenced language tags and rendered Markdown.","domains":["gist.github.com"],"exampleUrls":["https://gist.github.com/octocat/6cad326836d38bd3a7ae"],"htmlRoutes":[{"match":{"minSegments":2},"mode":"gist_files"}]},{"id":"gitlab-forgejo","name":"GitLab, Codeberg & Forgejo Twins","category":"developer","description":"Upgrades GitLab repo roots and file blobs via robots.txt-allowed ?format=json&viewer=simple endpoints, and extracts clean README content from Codeberg/Gitea SSR repo pages.","domains":["gitlab.com","gitlab.*","codeberg.org","gitea.com"],"exampleUrls":["https://gitlab.com/gitlab-org/cli","https://gitlab.com/inkscape/inkscape/-/blob/master/CMakeLists.txt","https://codeberg.org/forgejo/forgejo"],"routes":[{"match":{"hosts":["gitlab.com","gitlab.*"],"splitOnSegment":{"delimiter":"-","leftParam":"nsProj","leftMinSegs":2,"afterLiteral":"blob","rightParam":"rawTail","tailParam":"filePath"}},"twin":{"id":"gitlab-blob-json","fetchUrl":"https://{host}/{nsProj}/-/blob/{rawTail}?format=json&viewer=simple","rawPathParams":["nsProj","rawTail"],"kind":"json","accept":"application/json"},"extract":{"vars":{"plain":{"paths":["html"],"format":"gitlab_blob_html"}},"requireVars":["plain"],"titleTemplate":"{nsProj}/{filePath}","codeByPath":{"sourceVar":"plain","pathParam":"filePath","rawIfMarkdown":true}}},{"match":{"hosts":["gitlab.com","gitlab.*"],"minSegments":2,"maxSegments":5,"allSegmentsCharset":"pkg","reservedFirstSegment":["explore","groups","users","dashboard","help","topics","orgs","admin","search","abuse_reports","oauth","snippets","-"],"excludeSegmentSuffixes":[".git",".atom"]},"twin":{"id":"gitlab-readme-json","fetchUrl":"https://{host}/{joinedPath}/-/blob/HEAD/README.md?format=json&viewer=simple","rawPathParams":["joinedPath"],"kind":"json","accept":"application/json"},"extract":{"vars":{"readme":{"paths":["html"],"format":"gitlab_blob_html","trim":true}},"requireVars":["readme"],"titleTemplate":"{joinedPath}","bodyVar":"readme"}}],"htmlRoutes":[{"match":{"hosts":["codeberg.org","gitea.com"],"exactSegments":true,"pathSegments":[{"param":"owner","charset":"pkg"},{"param":"repo","charset":"pkg"}]},"mode":"dom","vars":{"desc":{"metaKeys":["og:description","description"]},"readme":{"cssHtmlToMd":["div.markup"],"minLen":40}},"requireVars":["readme"],"titleTemplate":"{owner}/{repo}","descriptionVar":"desc","blockquoteTemplate":"> **{owner}/{repo}** — {desc}","blockquoteWhenVar":"desc","bodyVar":"readme","preserveBodyLinksFromVar":"readme"}]},{"id":"google-my-maps-kml","name":"Google My Maps KML","category":"commerce-social","description":"Upgrades public Google My Maps /maps/d/ viewer, embed, and KML links to bounded KML placemark extraction with validated coordinates.","domains":["google.com","www.google.com","maps.google.com"],"auth_mode":"pub","exampleUrls":["https://www.google.com/maps/d/viewer?mid=1Mdlz2iXu_iZCPhUhzKvT2B2j-6E"],"routes":[{"match":{"anyOf":[{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d",{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]},{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d","u",{"param":"userIdx","charset":"digits","minLen":1,"maxLen":4},{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]}]},"twin":{"fetchUrl":"https://www.google.com/maps/d/kml?mid={mid}&forcekml=1","kind":"text","accept":"application/xml"},"extract":{"textMode":"kml_placemarks"}}]},{"id":"google-places","name":"Google Places API (New)","category":"commerce-social","description":"Extracts place details and text/nearby search results from the official Google Places API (New) with required X-Goog-Api-Key and X-Goog-FieldMask headers.","domains":["developers.google.com"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://places.googleapis.com/v1/places/ChIJj61dQgK6j4AR4GeTYWZsKWw","https://places.googleapis.com/v1/places:searchText?textQuery=coffee"],"routes":[{"match":{"hosts":["places.googleapis.com"],"anyOf":[{"pathEquals":["/v1/places:searchText","/v1/places:searchNearby"]}],"queryParams":[{"name":"textQuery","param":"textQuery","charset":"url_seg","maxLen":120,"optional":true,"default":"coffee"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"textQuery\":\"{textQuery}\"}","headers":{"X-Goog-FieldMask":"places.id,places.displayName,places.formattedAddress,places.rating,places.userRatingCount,places.websiteUri,places.nationalPhoneNumber,places.googleMapsUri,places.primaryType,places.businessStatus,places.priceLevel"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}},{"match":{"hosts":["places.googleapis.com"],"pathPrefix":"/v1/places/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"X-Goog-FieldMask":"id,displayName,formattedAddress,rating,userRatingCount,websiteUri,nationalPhoneNumber,googleMapsUri,primaryType,businessStatus,priceLevel,regularOpeningHours"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}}]},{"id":"google-play","name":"Google Play Store","category":"developer","description":"Extracts structured Google Play app metadata (package ID, developer, rating, downloads/reviews, category, price, and full description).","domains":["play.google.com"],"exampleUrls":["https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone"],"htmlRoutes":[{"match":{"pathPrefix":"/store/apps/details","queryParams":[{"name":"id","param":"pkgId","charset":"pkg","optional":true}]},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*-\\s*Apps on Google Play$"},"developer":{"jsonLdPaths":["author.name"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.ratingCount","aggregateRating.reviewCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} reviews)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"contentRating":{"jsonLdPaths":["contentRating"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Package ID","template":"`{pkgId}`","whenVar":"pkgId"},{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Content Rating","template":"{contentRating}","whenVar":"contentRating"}],"sections":[{"heading":"About This App","textVar":"desc"}]}]},{"id":"google-shopping-feed","name":"Google Shopping Merchant Center XML/Atom Feed","category":"commerce-social","description":"Universal XML/Atom parser for Google Merchant Center RSS 2.0 and Atom 1.0 product feeds with strict GTIN validation and compact records.","domains":["btrsports.co.uk"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://raw.githubusercontent.com/web3at50/btr-feed/main/affiliate-feed.xml"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/google-merchant.xml","/google-shopping.xml","/merchant-feed.xml","/product-feed.xml","/shopping-feed.xml"]},{"pathPrefix":"/feeds/","pathSuffix":".xml"},{"pathPrefix":"/feeds/","pathSuffix":".atom"},{"pathPrefix":"/feeds/","pathSuffix":".rss"},{"pathContainsSegment":"google-merchant","pathSuffix":".xml"},{"pathContainsSegment":"google-shopping","pathSuffix":".xml"},{"hosts":["raw.githubusercontent.com"],"pathEquals":["/web3at50/btr-feed/main/affiliate-feed.xml"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"google_shopping_feed_xml"}}]},{"id":"gorgias-reamaze","name":"Gorgias & Re:amaze Help Centers","category":"commerce-social","description":"Extracts help-center articles, topic indexes, and Q&A content from Gorgias (__NEXT_DATA__) and Re:amaze knowledge base portals.","domains":["*.gorgias.help","*.reamaze.com","support.burga.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.burga.com/en-US/articles/contact-us-24868","https://storypod.reamaze.com/kb/all-about-storypod/firmware-update"],"htmlRoutes":[{"id":"gorgias-reamaze","match":{"exactSegments":false},"mode":"gorgias_reamaze_html"}]},{"id":"granicus-govdelivery","name":"Granicus GovDelivery Public Bulletins","category":"public-records","description":"Extracts public government bulletins and optional RSS feeds from Granicus GovDelivery without rewriting HTML bulletins to .rss.","domains":["content.govdelivery.com","public.govdelivery.com"],"auth_mode":"pub","exampleUrls":["https://content.govdelivery.com/accounts/ILEVANSTON/bulletins.rss","https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149"],"routes":[{"match":{"pathSuffix":".rss","pathPrefix":"/accounts/"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Bulletin"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"granicus-govdelivery"},"columns":[{"header":"Bulletin","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"granicus-govdelivery","match":{"exactSegments":false},"mode":"govdelivery_html"}]},{"id":"grants-gov","name":"Grants.gov Federal Grant Opportunities","category":"public-records","description":"Upgrades grants.gov opportunity pages to official keyless POST api.grants.gov/v1/api/fetchOpportunity JSON with HTML fallback.","domains":["grants.gov","www.grants.gov","api.grants.gov"],"auth_mode":"pub","exampleUrls":["https://www.grants.gov/search-results-detail/357601","https://api.grants.gov/v1/api/fetchOpportunity"],"routes":[{"match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false,"pathSegments":["search-results-detail",{"param":"oppId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://api.grants.gov/v1/api/fetchOpportunity","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"opportunityId\":{oppId}}","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}},{"match":{"hosts":["api.grants.gov"],"pathPrefix":"/v1/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}}],"htmlRoutes":[{"id":"grants-gov","match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false},"mode":"grants_gov_html"}]},{"id":"greenhouse-lever-boards","name":"Greenhouse & Lever Whole-Board + EU APIs","category":"jobs","description":"Upgrades Greenhouse (US & EU) and Lever (US & EU) board root URLs to their official JSON posting feeds with truncation metadata.","domains":["boards.greenhouse.io","job-boards.greenhouse.io","eu-boards.greenhouse.io","job-boards.eu.greenhouse.io","jobs.lever.co","jobs.eu.lever.co"],"exampleUrls":["https://job-boards.greenhouse.io/anthropic","https://job-boards.greenhouse.io/celonis","https://jobs.lever.co/spotify"],"routes":[{"match":{"hosts":["boards.greenhouse.io","job-boards.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-board","fetchUrl":"https://boards-api.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["eu-boards.greenhouse.io","job-boards.eu.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-eu-board","fetchUrl":"https://boards-api.eu.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["jobs.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-board","fetchUrl":"https://api.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["jobs.eu.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-eu-board","fetchUrl":"https://api.eu.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}}]},{"id":"hackernews","name":"Hacker News Stories & Who is Hiring (Algolia API)","category":"commerce-social","description":"Upgrades news.ycombinator.com/item?id= threads (including monthly Who is Hiring threads) to hn.algolia.com/api/v1/items/ JSON.","domains":["news.ycombinator.com"],"exampleUrls":["https://news.ycombinator.com/item?id=41000000"],"match":{"exactSegments":true,"pathSegments":["item"],"queryParams":[{"name":"id","param":"itemId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"id":"hackernews","fetchUrl":"https://hn.algolia.com/api/v1/items/{itemId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["id"],"vars":{"title":{"paths":["title"],"trim":true,"fallbackTemplate":"HN Comment #{itemId}"},"author":{"paths":["author"]},"points":{"paths":["points"]},"createdAt":{"paths":["created_at"]},"postedDate":{"paths":["created_at"],"sliceMax":10},"storyUrl":{"paths":["url"]},"storyText":{"paths":["text"],"format":"html_to_md"}},"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"createdAt","metaLine":[{"label":"Points","template":"{points}","whenVar":"points"},{"label":"By","template":"{author}","whenVar":"author"},{"label":"Posted","template":"{postedDate}","whenVar":"postedDate"},{"label":"URL","template":"{storyUrl}","whenVar":"storyUrl"}],"bodyVar":"storyText","linksVars":["storyUrl"],"sections":[{"heading":"Comments","headingTemplate":"Comments ({topCount} top-level)","treeComments":{"childrenPath":"children","authorPath":"author","htmlTextPath":"text","maxDepth":2,"maxItems":60}}]}},{"id":"hardware-farm-specs","name":"Hardware & Farm Supply Spec Extractor","category":"commerce-social","description":"Extracts Product JSON-LD, specification tables, and Apollo SimpleProduct metadata for Tractor Supply and Harbor Freight.","domains":["tractorsupply.com","www.tractorsupply.com","harborfreight.com","www.harborfreight.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.harborfreight.com/20v-brushless-cordless-12-in-drilldriver-tool-only-59420.html"],"htmlRoutes":[{"id":"hardware-farm-specs","match":{"exactSegments":false},"mode":"hardware_farm_specs_html"}]},{"id":"hathitrust","name":"HathiTrust Digital Library","category":"public-records","description":"HathiTrust Bibliographic API (catalog.hathitrust.org/api/volumes) adapter for OCLC, ISBN, LCCN, ISSN, and Record IDs.","domains":["catalog.hathitrust.org","babel.hathitrust.org"],"auth_mode":"pub","min_interval_ms":1000,"strict_robots":false,"exampleUrls":["https://catalog.hathitrust.org/api/volumes/brief/oclc/424023.json","https://catalog.hathitrust.org/api/volumes/brief/isbn/9780030110405.json","https://catalog.hathitrust.org/Record/000578050"],"routes":[{"match":{"hosts":["catalog.hathitrust.org"],"pathPrefix":"/api/volumes/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}},{"match":{"hosts":["catalog.hathitrust.org"],"exactSegments":false,"pathSegments":["Record",{"param":"recordId","charset":"digits","minLen":5,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.hathitrust.org/api/volumes/brief/recordnumber/{recordId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}}]},{"id":"hcl-websphere-commerce","name":"HCL / WebSphere Commerce (WCS)","category":"commerce-social","description":"Extracts HCL/IBM WebSphere Commerce /wcs/resources/store//productview REST JSON and storefront HTML/companion twins.","domains":["www.childrensplace.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.childrensplace.com/us/p/Girls-Basic-Super-Skinny-Jeans-3044219-33C4"],"routes":[{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byPartNumber",{"param":"partNumber","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}},{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byId",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}}],"htmlRoutes":[{"id":"hcl-websphere-commerce","match":{"exactSegments":false},"mode":"hcl_wcs_html"}]},{"id":"headless-cms-delivery","name":"Headless CMS Delivery","category":"developer","description":"Opt-in single-page doc delivery twin for Sanity, Storyblok, Prismic, Contentful, Builder.io, and Strapi (gated by allowPageKeyTwins; falls back to HTML/JSON-LD when OFF).","domains":["3do82whm.apicdn.sanity.io","www.sanity.io","api.storyblok.com","www.storyblok.com","nextjs-starter-prismic-blog.cdn.prismic.io","prismic.io","cdn.contentful.com","cdn.builder.io","www.builder.io","strapi.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://3do82whm.apicdn.sanity.io/v2021-10-21/data/query/next?query=*%5Bslug.current%20%3D%3D%20%22content-lake%22%5D%5B0%5D%7B_id%2C_type%2Ctitle%2Cslug%7D","https://nextjs-starter-prismic-blog.cdn.prismic.io/api/v2/documents/search?ref=ZuGtnBkAAEcAW15g&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22YlcmoRMAACMAI0gs%22%29+%5D%5D","https://cdn.builder.io/api/v3/content/docs/9f6f5d07-9c2e-4b44-983a-3f065151247f?apiKey=YJIGb4i01jvw0SRdL5Bt","https://www.sanity.io/docs/content-lake"],"routes":[{"match":{"hosts":["cdn.contentful.com"],"exactSegments":true,"pathSegments":["spaces",{"param":"spaceId","charset":"url_seg","minLen":1,"maxLen":64},"environments",{"param":"envId","charset":"url_seg","minLen":1,"maxLen":64},"entries",{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["api.storyblok.com","api-us.storyblok.com"],"exactSegments":false,"pathSegments":["v2","cdn","stories",{"param":"slug","charset":"safe_subpath","minLen":1,"maxLen":200,"greedy":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["cdn.builder.io"],"exactSegments":true,"pathSegments":["api","v3","content",{"param":"model","charset":"url_seg","minLen":1,"maxLen":80},{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".apicdn.sanity.io","param":"projectId"},"exactSegments":true,"pathSegments":[{"param":"version","charset":"url_seg","minLen":4,"maxLen":24},"data","query",{"param":"dataset","charset":"url_seg","minLen":1,"maxLen":64}],"queryParams":[{"name":"query","param":"groqQuery","charset":"sanity_single_doc_query","minLen":5,"maxLen":400}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".cdn.prismic.io","param":"repo"},"exactSegments":true,"pathSegments":["api","v2","documents","search"],"queryParams":[{"name":"q","param":"prismicQ","charset":"prismic_single_doc_query","minLen":5,"maxLen":300}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json",".xml",".csv"],"pathSegments":["api",{"param":"contentType","charset":"strapi_content_type","minLen":1,"maxLen":80,"reserved":["auth","users","upload","graphql","all","list","search","export","v0","v1","v2","v3","v4","v5","v6","v7","v8","v9"]},{"param":"docId","charset":"strapi_doc_id","minLen":1,"maxLen":128,"reserved":["all","list","search","export","graphql","graphql.json","users"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}}],"htmlRoutes":[{"id":"headless-cms-delivery","match":{"exactSegments":false},"mode":"headless_cms_html"}]},{"id":"headless-commerce","name":"Headless & Enterprise Commerce (commercetools, Elastic Path, Kibo, Optimizely)","category":"commerce-social","description":"Extracts commercetools, Elastic Path, Kibo/Mozu, and Optimizely Configured Commerce JSON-LD (with additionalProperty specs), Microdata, and hydration state.","domains":["www.bang-olufsen.com","www.guestsupply.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.bang-olufsen.com/en/us/headphones/beoplay-h100","https://www.guestsupply.com/product/0078423-Keystone-Liquid-Laundry-Built-Detergent-5-Gallon-1602538"],"htmlRoutes":[{"id":"headless-commerce","match":{"exactSegments":false},"mode":"headless_commerce_html"}]},{"id":"healthcare-careers","name":"Healthcare Careers (HealthcareSource & symplr)","category":"jobs","description":"Extracts hospital and clinical job postings from HealthcareSource (*.healthcaresource.com) and symplr career pages while rejecting Application Error and WAF shells and deferring careers.symplr.com to Jibe.","domains":["*.healthcaresource.com","www.symplr.com","symplr.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.symplr.com/careers"],"htmlRoutes":[{"id":"healthcare-careers","mode":"healthcare_careers_html","match":{"excludeHosts":["careers.symplr.com"],"exactSegments":false}}]},{"id":"helpscout-docs","name":"Help Scout Docs","category":"developer","description":"Extracts Help Scout Docs knowledge base articles and collections from server-rendered HTML and BreadcrumbList JSON-LD.","domains":["docs.helpscout.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://docs.helpscout.com/article/666-use-dkim-to-help-with-email-delivery","https://docs.helpscout.com/collection/1543-getting-started"],"htmlRoutes":[{"id":"helpscout-docs","match":{"exactSegments":false},"mode":"helpscout_docs_html"}]},{"id":"hex-pm","name":"Hex.pm Elixir & Erlang Registry","category":"developer","description":"Upgrades hex.pm package pages to /api/packages/ metadata and HexDocs links.","domains":["hex.pm","www.hex.pm"],"exampleUrls":["https://hex.pm/packages/phoenix"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://hex.pm/api/packages/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["meta.description"],"trim":true},"licenses":{"paths":["meta.licenses"],"join":", "},"ver":{"paths":["releases.0.version"]},"verOrDefault":{"paths":["releases.0.version"],"default":"0.1"},"docsUrl":{"paths":["docs_html_url"],"fallbackTemplate":"https://hexdocs.pm/{name}"}},"titleTemplate":"{name} {ver} (Hex)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Hex)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Mix","template":"`{:{name}, \"~> {verOrDefault}\"}`"},{"label":"HexDocs","template":"{docsUrl}"},{"label":"License","template":"{licenses}","whenVar":"licenses"}],"objectLinksPath":"meta.links"}},{"id":"home-depot-lowes","name":"Home Depot & Lowe's Product JSON-LD","category":"commerce-social","description":"Strictly low-rate, robots-enforced JSON-LD Product/ProductGroup extractor for Home Depot and Lowe's product pages.","domains":["homedepot.com","www.homedepot.com","lowes.com","www.lowes.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.homedepot.com/p/Milwaukee-M18-FUEL-Hammer-Drill-2904-20/320326137","https://www.lowes.com/pd/DEWALT-20V-MAX-Drill/501326137"],"htmlRoutes":[{"id":"home-depot-lowes","match":{"exactSegments":false},"mode":"home_depot_lowes_html"}]},{"id":"home-goods-jsonld","name":"US Home Goods Product JSON-LD","category":"commerce-social","description":"Structured Product and ProductGroup JSON-LD extractor for Wayfair and Overstock.","domains":["wayfair.com","www.wayfair.com","overstock.com","www.overstock.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.wayfair.com/furniture/pdp/mercury-row-perdue-815-velvet-square-arm-convertible-sofa-w009315804.html?piid=1134429065","https://www.overstock.com/Home-Garden/accent-chair/1400001/product.html"],"htmlRoutes":[{"id":"home-goods-jsonld","match":{"exactSegments":false},"mode":"home_goods_jsonld_html"}]},{"id":"homebrew-formulae","name":"Homebrew Formulae & Casks","category":"developer","description":"Upgrades formulae.brew.sh/formula/ and /cask/ pages to the official Homebrew JSON API with install commands, dependencies, deprecation/disable notices, and 30-day install analytics.","domains":["formulae.brew.sh"],"exampleUrls":["https://formulae.brew.sh/formula/jq","https://formulae.brew.sh/cask/iterm2"],"routes":[{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["formula",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/formula/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"fullName":{"paths":["full_name","name"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["versions.stable","versions.head"]},"license":{"paths":["license"]},"homepage":{"paths":["homepage"],"requireHttps":true},"deps":{"paths":["dependencies"],"itemWrap":"`","join":", ","limit":20},"buildDeps":{"paths":["build_dependencies"],"itemWrap":"`","join":", ","limit":15},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_formula","disable_replacement_cask","deprecation_replacement_formula","deprecation_replacement_cask"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{fullName} (Homebrew Formula)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install {name}`"},{"label":"Stable Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Dependencies","template":"{deps}","whenVar":"deps"},{"label":"Build Dependencies","template":"{buildDeps}","whenVar":"buildDeps"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage"]}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["cask",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/cask/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["token"],"vars":{"token":{"paths":["token"]},"displayName":{"paths":["name.0","full_token","token"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["version"]},"homepage":{"paths":["homepage"],"requireHttps":true},"downloadUrl":{"paths":["url"],"requireHttps":true},"sha256":{"paths":["sha256"]},"autoUpdates":{"paths":["auto_updates"],"format":"bool_map","trueValue":"Yes","falseValue":"No"},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_cask","disable_replacement_formula","deprecation_replacement_cask","deprecation_replacement_formula"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{displayName} (Homebrew Cask)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install --cask {token}`"},{"label":"Token","template":"`{token}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"Auto Updates","template":"{autoUpdates}","whenVar":"autoUpdates"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Download URL","template":"{downloadUrl}","whenVar":"downloadUrl"},{"label":"SHA-256","template":"`{sha256}`","whenVar":"sha256"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage","downloadUrl"]}}]},{"id":"hourly-smb-ats","name":"Hourly & SMB ATS (Hireology, ApplicantPro, Harri, Fountain, ClearCompany, Workstream)","category":"jobs","description":"Extracts JobPosting JSON-LD, Next.js SSR boards, and structured HTML job postings from Hireology, ApplicantPro, Harri, Fountain, ClearCompany, and Workstream.","domains":["www.applicantpro.com","www.clearcompany.com","app.hireology.com","harri.com","web.fountain.com","www.workstream.us"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.hireology.com/hireology2/2908935/description","https://harri.com/Kitchen-Putters-Cw"],"htmlRoutes":[{"id":"hourly-smb-ats","mode":"hourly_smb_ats_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","app.clearcompany.com"],"anyOf":[{"hostSubdomain":{"suffix":".applicantpro.com","param":"tenant","reserved":["www","login","admin"]},"exactSegments":false},{"hosts":["www.applicantpro.com"],"pathPrefix":"/careers","exactSegments":false},{"hostSubdomain":{"suffix":".clearcompany.com","param":"tenant","reserved":["app","login","admin"]},"exactSegments":false},{"hosts":["careers.hireology.com","app.hireology.com"],"exactSegments":false},{"hosts":["harri.com","www.harri.com"],"exactSegments":false},{"hosts":["web.fountain.com"],"pathPrefix":"/apply/","exactSegments":false},{"hostSubdomain":{"suffix":".workstream.us","param":"tenant","reserved":["app","login","api"]},"exactSegments":false}]}}]},{"id":"hrsa-samhsa-locator","name":"HRSA & SAMHSA Treatment Locator","category":"research-health","description":"SAMHSA FindTreatment.gov locator JSON export API adapter with HRSA/SAMHSA portal HTML fallback.","domains":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"auth_mode":"pub","exampleUrls":["https://findtreatment.gov/locator/exportsAsJson/v2?sAddr=40.7506%2C-73.9972&sType=SA&limitValue=5000&limitType=2&pageSize=2&page=1","https://data.hrsa.gov/tools/web-services"],"routes":[{"match":{"hosts":["findtreatment.gov","www.findtreatment.gov"],"pathPrefix":"/locator/exportsAsJson/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"samhsa_locator_json"}}],"htmlRoutes":[{"id":"hrsa-samhsa-locator","match":{"hosts":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"exactSegments":false},"mode":"hrsa_samhsa_html"}]},{"id":"hubspot-cms","name":"HubSpot CMS","category":"developer","description":"Extracts same-origin HubSpot HubDB table rows (/_hcms/api/hubdb/v3/... and /hs/api/hubdb/v2/...) and HubSpot CMS HTML metadata while rejecting page_id:0 404s.","domains":["www.hubspot.com","developers.hubspot.com","www.smartbugmedia.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.smartbugmedia.com/blog/hubspot-unbound-2026-recap-7-ai-updates-to-turn-on-first-and-what-each-one-costs"],"routes":[{"match":{"exactSegments":true,"pathSegments":["_hcms","api","hubdb","v3","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}},{"match":{"exactSegments":true,"pathSegments":["hs","api","hubdb","v2","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}}],"htmlRoutes":[{"id":"hubspot-cms","match":{"exactSegments":false},"mode":"hubspot_cms_html"}]},{"id":"hud-fhfa","name":"HUD User & FHFA House Price Index","category":"public-records","description":"Extracts HUD User Fair Market Rent / Income Limit API JSON (when HUD_API_KEY is configured), FHFA House Price Index JSON & CSV datasets, and FHFA HPI HTML pages.","domains":["huduser.gov","www.huduser.gov","fhfa.gov","www.fhfa.gov"],"auth_mode":"key","exampleUrls":["https://www.huduser.gov/hudapi/public/fmr/listStates","https://www.fhfa.gov/hpi/download/quarterly_datasets/hpi_at_state.csv","https://www.fhfa.gov/data/hpi"],"routes":[{"match":{"hosts":["huduser.gov","www.huduser.gov"],"pathPrefix":"/hudapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"hud_user_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"fhfa_hpi_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":4194304,"auth_mode":"pub"},"extract":{"textMode":"fhfa_hpi_csv"}}],"htmlRoutes":[{"id":"hud-fhfa","match":{"hosts":["fhfa.gov","www.fhfa.gov","huduser.gov","www.huduser.gov"],"exactSegments":false},"mode":"hud_fhfa_html"}]},{"id":"huggingface","name":"Hugging Face Models, Datasets & Spaces","category":"genai","description":"Upgrades Hugging Face model/dataset/space pages and file blobs to raw README.md with parsed YAML frontmatter tables.","domains":["huggingface.co","www.huggingface.co"],"exampleUrls":["https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct"],"routes":[{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{repoType}/{org}/{repo}"}},{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{org}/{repo}"}},{"match":{"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{repoType}/{org}/{repo}/{filePath}"}},{"match":{"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{org}/{repo}/{filePath}"}}]},{"id":"icims","name":"iCIMS Enterprise Career Portals","category":"jobs","description":"Upgrades *.icims.com/jobs/... portals and postings to their server-rendered ?ss=1&in_iframe=1 twin, extracting JobPosting JSON-LD and open role cards without outer iframe shells.","domains":["*.icims.com"],"exampleUrls":["https://careers-compsych.icims.com/jobs/search?ss=1","https://careers-compsych.icims.com/jobs/2526/senior-cloud-architect/job"],"routes":[{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":true,"pathSegments":[]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"anyOf":[{"exactSegments":true,"pathSegments":["jobs"]},{"exactSegments":true,"pathSegments":["jobs","intro"]},{"exactSegments":true,"pathSegments":["jobs","search"]}]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/jobs","/jobs/intro","/jobs/search"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}}],"htmlRoutes":[{"id":"icims","mode":"icims_portal","match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]}}]},{"id":"idx-broker-showcase","name":"IDX Broker & Showcase IDX Real Estate Portals","category":"commerce-social","description":"Extracts real estate property listings, MLS numbers, pricing, and RealEstateAgent/RealEstateListing metadata from IDX Broker and Showcase IDX portals while rejecting 403/WAF shells.","domains":["*.idxbroker.com","entityrealty.com","realtorrajaram.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://entityrealty.com/","https://realtorrajaram.com/"],"htmlRoutes":[{"id":"idx-broker-showcase","match":{"exactSegments":false},"mode":"idx_broker_showcase_html"}]},{"id":"ietf-rfc","name":"IETF Datatracker & RFC Editor","category":"developer","description":"Strips ASCII RFC running page headers/footers ([Page N]) and promotes numbered section headings to Markdown headings.","domains":["datatracker.ietf.org","rfc-editor.org","www.rfc-editor.org"],"exampleUrls":["https://datatracker.ietf.org/doc/html/rfc9421","https://www.rfc-editor.org/rfc/rfc9110"],"routes":[{"match":{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","exactSegments":true,"pathSegments":["rfc",{"param":"rfcId","stripPrefix":"rfc","charset":"digits","minLen":1,"maxLen":6}]},"twin":{"fetchUrl":"https://www.rfc-editor.org/rfc/rfc{rfcId}.html","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"RFC {rfcId}"}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/rfc"},{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/draft-"},{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","minSegments":2}]},"mode":"markdown_clean","cleanPreset":"ietf_rfc"}]},{"id":"intercom-help","name":"Intercom Help Center","category":"developer","description":"Extracts Intercom Help Center articles and collections from __NEXT_DATA__ hydration, JSON-LD, and semantic HTML.","domains":["support.claude.com","www.intercom.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://support.claude.com/en/articles/7996845-what-are-some-things-i-can-use-claude-for","https://support.claude.com/en/collections/4078531-claude"],"htmlRoutes":[{"id":"intercom-help","match":{"exactSegments":false},"mode":"intercom_help_html"}]},{"id":"internet-archive","name":"Internet Archive Items (archive.org)","category":"genai","description":"Upgrades archive.org/details/ pages to the official /metadata/ JSON feed with creator, license, and downloadable files.","domains":["archive.org","www.archive.org"],"exampleUrls":["https://archive.org/details/07-28-16_Space-to-Grounds.zip"],"match":{"exactSegments":true,"pathSegments":["details",{"param":"identifier","charset":"pkg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://archive.org/metadata/{identifier}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["metadata"],"vars":{"title":{"paths":["metadata.title"],"fallbackTemplate":"{identifier}","trim":true},"creator":{"paths":["metadata.creator"],"join":", "},"mediatype":{"paths":["metadata.mediatype"]},"date":{"paths":["metadata.date","metadata.publicdate"]},"license":{"paths":["metadata.licenseurl"]},"collections":{"paths":["metadata.collection"],"limit":6,"join":", "},"desc":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags"},"descShort":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"creator","publishedTimeVar":"date","bullets":[{"label":"Identifier","template":"`{identifier}`"},{"label":"Creator","template":"{creator}","whenVar":"creator"},{"label":"Media Type","template":"{mediatype}","whenVar":"mediatype"},{"label":"Date","template":"{date}","whenVar":"date"},{"label":"Collections","template":"{collections}","whenVar":"collections"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Files","arrayPath":"files","filter":{"excludeFieldSuffixes":{"field":"name","suffixes":["_meta.xml","_files.xml"]}},"limit":15,"requireItemVar":"fname","collectLinkVars":["dlUrl"],"itemVars":{"fname":{"paths":["name"]},"dlUrl":{"template":"https://archive.org/download/{identifier}/{fname}","whenVars":["fname"],"replaceAll":{"from":" ","to":"%20"}}},"columns":[{"header":"File","template":"[{fname}]({dlUrl})"},{"header":"Format","paths":["format"]},{"header":"Size","paths":["size"],"format":"bytes_human"}]}]}},{"id":"ir-portal-pack","name":"Investor Relations Portals (Notified / Equisolve / Nasdaq IR)","category":"finance","description":"Extracts Notified/Intrado (wd_newsfeed), Equisolve, and Nasdaq IR investor relations portals and RSS press release feeds.","domains":["investor.iridium.com","ir.bowheadspecialty.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://investor.iridium.com/press-releases","https://ir.bowheadspecialty.com/news-events/press-releases/rss","https://ir.bowheadspecialty.com/"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/rss"},{"pathSuffix":".rss"},{"pathPrefix":"/rss/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ir_portal_rss_xml"}}],"htmlRoutes":[{"id":"ir-portal-pack","match":{"exactSegments":false},"mode":"ir_portal_pack_html"}]},{"id":"irs-teos","name":"IRS Tax Exempt Organization Search (TEOS)","category":"public-records","description":"Extracts IRS Tax Exempt Organization Search (Pub 78 / Form 990-N) lookup records while respecting robots.txt and strictly rejecting Akamai WAF challenge pages.","domains":["apps.irs.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://apps.irs.gov/app/eos/allSearch?ein=521693387","https://apps.irs.gov/app/eos/details/521693387"],"routes":[{"match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/allSearch"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}},{"match":{"hosts":["apps.irs.gov"],"exactSegments":false,"pathSegments":["app","eos","details",{"param":"ein","charset":"alnum_dash","minLen":4,"maxLen":20}]},"twin":{"fetchUrl":"https://apps.irs.gov/app/eos/allSearch?ein={ein}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}}],"htmlRoutes":[{"id":"irs-teos","match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/","exactSegments":false},"mode":"irs_teos_html"}]},{"id":"javadoc-dokka","name":"Javadoc & Kotlin Dokka API Docs","category":"developer","description":"Universal extractor for Javadoc and Kotlin Dokka HTML API pages as well as element-list and package-list index manifests.","domains":["docs.oracle.com","kotlinlang.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html","https://docs.oracle.com/en/java/javase/21/docs/api/element-list","https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/element-list"},{"pathSuffix":"/package-list"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"javadoc_element_list_text"}}],"htmlRoutes":[{"id":"javadoc-dokka","match":{"exactSegments":false},"mode":"javadoc_dokka_html"}]},{"id":"jazzhr","name":"JazzHR Career Boards (applytojob.com)","category":"jobs","description":"Upgrades .applytojob.com boards to app.jazz.co/feeds/export/jobs/ XML export (which includes full job descriptions and returns clean 404 on invalid slugs).","domains":["*.applytojob.com"],"exampleUrls":["https://axiomcloud.applytojob.com/apply"],"match":{"hostSubdomain":{"suffix":".applytojob.com","param":"org","reserved":["www","app"]},"maxSegments":1},"twin":{"id":"jazzhr","fetchUrl":"https://app.jazz.co/feeds/export/jobs/{org}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["jobs","job"],"itemTag":"job","titleTemplate":"{org} — JazzHR Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jUrl","itemVars":{"jTitle":{"tags":["title"]},"jUrl":{"tags":["url"]},"dept":{"tags":["department"],"default":"-"},"city":{"tags":["city"]},"state":{"tags":["state"]},"country":{"tags":["country"]},"jType":{"tags":["type"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{city} {state} {country}"},{"header":"Type","template":"{jType}"}]}}},{"id":"job-boards-jsonld-pack","name":"Job Boards (CareerArc, Nexxt, Reed, Alljobs)","category":"jobs","description":"Extracts JobPosting JSON-LD from CareerArc, Nexxt, Reed.co.uk, and Alljobs posting pages: title, company, locations, employment type, salary, posting/expiry dates, job ID, and description. Repairs the unescaped quotes CareerArc emits inside descriptions in one linear pass. Honors robots.txt.","domains":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"auth_mode":"html","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://www.careerarc.com/job-listing/state-of-vermont-jobs-trooper-probationary-53326582","https://www.nexxt.com/jobs/registered-nurse-rn-lebanon-oh-3496987559-job.html","https://www.reed.co.uk/jobs/nurse-wca/57553089","https://www.alljobs.co.il/Search/UploadSingle.aspx?JobID=8822511"],"htmlRoutes":[{"id":"job-boards-jsonld-pack","match":{"hosts":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"exactSegments":false},"mode":"job_boards_jsonld_html"}]},{"id":"jsr-io","name":"JSR JavaScript Registry","category":"developer","description":"Strips top-bar navigation and duplicate version/scorecard tabs from jsr.io/@scope/pkg Markdown.","domains":["jsr.io"],"exampleUrls":["https://jsr.io/@std/path"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"scope","charset":"npm_scope"},{"param":"pkg","charset":"npm_pkg"}]},"mode":"markdown_clean","cleanPreset":"jsr_io"}]},{"id":"judge-me","name":"Judge.me Product Reviews","category":"commerce-social","description":"Extracts public Judge.me product reviews widget JSON and HTML-in-JSON payloads without preempting storefront extractors.","domains":["api.judge.me","judge.me","cache.judge.me"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.judge.me/reviews/reviews_for_widget?shop_domain=thebraindriver.myshopify.com&platform=shopify&product_id=3946432580&page=1&per_page=10"],"routes":[{"match":{"hosts":["api.judge.me","judge.me","cache.judge.me"],"pathEquals":["/reviews/reviews_for_widget","/api/v1/widgets/product_review","/api/v1/reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"judgeme_reviews"}}],"htmlRoutes":[{"id":"judge-me","match":{"exactSegments":false},"mode":"judgeme_html"}]},{"id":"junar-tyler-data","name":"Junar & Tyler Data & Insights Open Data Portals","category":"public-records","description":"Extracts Junar /dataviews/ HTML and /api/v2/datastreams/ JSON plus Tyler Data & Insights /api/catalog/v1 datasets (without overlapping Socrata claims).","domains":["data.paloalto.gov","*.junar.com","data.tylertech.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://data.tylertech.com/api/catalog/v1","https://data.paloalto.gov/dataviews/251890/business-registry-2018/","https://data.paloalto.gov/home"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v2/datastreams/"},{"pathPrefix":"/api/catalog/v1"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"junar_tyler_json"}}],"htmlRoutes":[{"id":"junar-tyler-data","match":{"exactSegments":false},"mode":"junar_tyler_html"}]},{"id":"jwplayer","name":"JW Player Delivery & Previews","category":"commerce-social","description":"Extracts JW Player CDN v2 media/playlist JSON twins, /previews/{mediaId} redirects to v2 media JSON, and JW Platform feeds.","domains":["cdn.jwplayer.com","content.jwplatform.com"],"auth_mode":"pub","exampleUrls":["https://cdn.jwplayer.com/v2/media/1b02B03R","https://cdn.jwplayer.com/previews/1b02B03R"],"routes":[{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["v2",{"param":"kind","allowValues":["media","playlists"]},{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["previews",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://cdn.jwplayer.com/v2/media/{mediaId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["content.jwplatform.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["feeds",{"param":"mediaFile","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}}],"htmlRoutes":[{"id":"jwplayer","match":{"exactSegments":false},"mode":"jwplayer_html"}]},{"id":"kaggle","name":"Kaggle Datasets, Models & Competitions","category":"developer","description":"Extracts Kaggle dataset, model, and competition metadata via Kaggle REST API v1 (KAGGLE_API_KEY) with public HTML fallback.","domains":["www.kaggle.com","kaggle.com"],"auth_mode":"key","exampleUrls":["https://www.kaggle.com/api/v1/datasets/view/heptapod/titanic","https://www.kaggle.com/datasets/heptapod/titanic"],"routes":[{"match":{"hosts":["www.kaggle.com","kaggle.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}},{"match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false,"pathSegments":["datasets",{"param":"owner","charset":"pkg","minLen":1,"maxLen":100},{"param":"slug","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.kaggle.com/api/v1/datasets/view/{owner}/{slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}}],"htmlRoutes":[{"id":"kaggle","match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false},"mode":"kaggle_html"}]},{"id":"kb-platform-pack","name":"KB Platform Pack (Document360, Helpjuice, KnowledgeOwl)","category":"developer","description":"Extracts public knowledge base articles and categories across Document360, Helpjuice, and KnowledgeOwl.","domains":["docs.document360.com","help.helpjuice.com","support.knowledgeowl.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.helpjuice.com/getting-started/what-is-a-knowledge-base","https://support.knowledgeowl.com/help/enable-single-sign-on-sso"],"htmlRoutes":[{"id":"kb-platform-pack","match":{"exactSegments":false},"mode":"kb_platform_pack_html"}]},{"id":"khoros-lithium","name":"Khoros / Lithium Communities","category":"developer","description":"Upgrades Khoros/Lithium /t5/.../td-p/ community threads to /api/2.0/messages/ JSON twins with HTML fallback.","domains":["community.qlik.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"exampleUrls":["https://community.qlik.com/t5/Product-Innovation/AI-Without-Context-Is-Guessing-With-Confidence-Our-October-Qlik/ba-p/2560737","https://community.qlik.com/api/2.0/messages/2560737"],"routes":[{"match":{"pathPrefix":"/t5/","anyOf":[{"scanSegment":{"afterLiteral":"td-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"m-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ba-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ta-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}}]},"twin":{"fetchUrl":"https://{host}/api/2.0/messages/{msgId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}},{"match":{"pathSegments":["api","2.0","messages",{"param":"msgId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}}],"htmlRoutes":[{"id":"khoros-lithium","match":{"exactSegments":false},"mode":"khoros_html"}]},{"id":"klaviyo-attentive-forms","name":"Klaviyo & Attentive Onsite Forms (Read-Only)","category":"commerce-social","description":"Strictly read-only extractor for Klaviyo onsite company/form IDs, signup offer metadata, and Attentive tag metadata without submitting forms; yields on product/article pages.","domains":["www.getcasely.com","static.klaviyo.com","cdn.attn.tv"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.getcasely.com/"],"htmlRoutes":[{"id":"klaviyo-attentive-forms","match":{"exactSegments":false},"mode":"klaviyo_attentive_forms_html"}]},{"id":"klevu","name":"Klevu Smart Search","category":"commerce-social","description":"Opt-in page-key adapter for Klevu v2 POST search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["eucs15v2.ksearchnet.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://eucs15v2.ksearchnet.com/cs/v2/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".ksearchnet.com","param":"clusterHost"},"pathEquals":["/cs/v2/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"context\":{\"apiKeys\":[\"klevu-156925593843210765\"]},\"recordQueries\":[{\"id\":\"productList\",\"typeOfRequest\":\"SEARCH\",\"settings\":{\"query\":{\"term\":\"bag\"},\"limit\":10}}]}","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"klevu"}}],"htmlRoutes":[{"id":"klevu","match":{"exactSegments":false},"mode":"klevu_html"}]},{"id":"kroger","name":"Kroger Public Products API","category":"commerce-social","description":"Extracts Kroger product UPC/GTIN, brand, size, pricing, and fulfillment metadata via the official Kroger v1 Products API.","domains":["kroger.com","www.kroger.com","api.kroger.com"],"auth_mode":"key","exampleUrls":["https://api.kroger.com/v1/products/0001111085135","https://api.kroger.com/v1/products?filter.term=oats"],"routes":[{"match":{"hosts":["kroger.com","www.kroger.com"],"exactSegments":false,"pathSegments":["p",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"upc","charset":"digits","minLen":8,"maxLen":14}]},"twin":{"fetchUrl":"https://api.kroger.com/v1/products/{upc}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}},{"match":{"hosts":["api.kroger.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}}]},{"id":"lang-registry-pack","name":"Language Registry Pack (pub.dev, CRAN, CocoaPods, Anaconda)","category":"developer","description":"Extracts package metadata and newest stable versions from Dart pub.dev, R CRAN HTML, CocoaPods HTML, and Anaconda/conda-forge API.","domains":["pub.dev","cran.r-project.org","cocoapods.org","anaconda.org","api.anaconda.org"],"auth_mode":"pub","exampleUrls":["https://pub.dev/packages/http","https://cocoapods.org/pods/Alamofire","https://anaconda.org/conda-forge/six"],"routes":[{"match":{"hosts":["pub.dev"],"pathPrefix":"/api/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["pub.dev"],"exactSegments":false,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://pub.dev/api/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["api.anaconda.org"],"pathPrefix":"/package/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}},{"match":{"hosts":["anaconda.org"],"exactSegments":true,"reservedFirstSegment":["search","admin","download","static","api","login","signup","docs","pricing","about"],"pathSegments":[{"param":"channel","charset":"pkg","minLen":1,"maxLen":80},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.anaconda.org/package/{channel}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}}],"htmlRoutes":[{"id":"lang-registry-pack","match":{"hosts":["cran.r-project.org"],"pathPrefix":"/web/packages/","exactSegments":false},"mode":"cran_html"},{"id":"lang-registry-pack","match":{"hosts":["cocoapods.org"],"pathPrefix":"/pods/","exactSegments":false},"mode":"cocoapods_html"}]},{"id":"laserfiche-weblink","name":"Laserfiche WebLink Public Document Portals","category":"public-records","description":"Universal Laserfiche WebLink adapter for city and county records portals. DocView.aspx and Browse.aspx links that carry id and repo (as WebLink share links do) upgrade to the anonymous JSON services the viewer itself calls: document name, folder path, template, created/modified dates, page count and metadata fields, or a folder listing with links. No cookies or login are used; the CookieCheck redirect only guards the HTML shell.","domains":["cc-publicdocs.santa-ana.org","records.hawaiicounty.gov","docs.southbendin.gov","weblink.winterspringsfl.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://cc-publicdocs.santa-ana.org/WebLink/DocView.aspx?id=82504&dbid=1&repo=Clerk","https://cc-publicdocs.santa-ana.org/WebLink/Browse.aspx?id=82479&dbid=1&repo=Clerk"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"DocView.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/DocumentService.aspx/GetBasicDocumentInfo","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"entryId\":{id}}","maxBytes":2097152},"extract":{"jsonMode":"laserfiche_doc_json"}},{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"Browse.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/FolderListingService.aspx/GetFolderListing2","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"folderId\":{id},\"getNewListing\":true,\"start\":0,\"end\":50,\"sortColumn\":\"\",\"sortAscending\":true}","maxBytes":4194304},"extract":{"jsonMode":"laserfiche_folder_json"}}],"htmlRoutes":[{"id":"laserfiche-weblink","match":{"exactSegments":false},"mode":"laserfiche_missing_repo_html"}]},{"id":"legacy-cart","name":"Legacy Shopping Carts (OpenCart, nopCommerce, Shift4Shop, Volusion)","category":"commerce-social","description":"Extracts OpenCart, nopCommerce, Shift4Shop, and Volusion product JSON-LD, Microdata, and spec-table DOM while filtering template noise.","domains":["www.eurekagolf.co.uk","www.sturdybuiltonline.com","www.cctvcamerapros.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.eurekagolf.co.uk/oakley-standard-polo-shirt-pacific-blue","https://www.sturdybuiltonline.com/Steel-Diamond-Plate-Utility-Trailer-Fender-Single-Axle-10-in-x-32-in-x-13-in_p_215.html","https://www.cctvcamerapros.com/HDMI-to-USB-Converter-p/hdmi-u3.htm"],"htmlRoutes":[{"id":"legacy-cart","match":{"exactSegments":false},"mode":"legacy_cart_html"}]},{"id":"legistar","name":"Legistar Municipal Council Legislation & Meetings","category":"public-records","description":"Upgrades .legistar.com municipal council portals to the keyless webapi.legistar.com REST API for ordinances, resolutions, and meetings.","domains":["*.legistar.com"],"exampleUrls":["https://seattle.legistar.com/Legislation.aspx","https://seattle.legistar.com/Calendar.aspx"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathSuffix":"calendar.aspx","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathContainsSegment":"calendar","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}}]},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/events?$top=20&$orderby=EventDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Council — Recent Meetings (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":20,"itemVars":{"agendaUrl":{"paths":["EventInSiteURL"],"requireHttps":true},"linkCell":{"template":"[Agenda]({agendaUrl})","whenVars":["agendaUrl"],"default":"-"}},"columns":[{"header":"Date","paths":["EventDate"],"sliceMax":10},{"header":"Body / Committee","paths":["EventBodyName"]},{"header":"Location","paths":["EventLocation"]},{"header":"Link","template":"{linkCell}"}]}]}},{"match":{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/matters?$top=25&$orderby=MatterIntroDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Legislation — Recent Matters (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":25,"columns":[{"header":"File #","paths":["MatterFile"],"code":true},{"header":"Type","paths":["MatterTypeName"]},{"header":"Status","paths":["MatterStatusName"]},{"header":"Introduced","paths":["MatterIntroDate"],"sliceMax":10},{"header":"Title","paths":["MatterTitle","MatterName"]}]}]}}]},{"id":"lemmy","name":"Lemmy Federated Link Aggregator (Universal Engine)","category":"commerce-social","description":"Upgrades Lemmy posts (/post/{id}), communities (/c/{name}), and /api/v3/* endpoints via JSON API with SSR HTML fallback while rejecting Cloudflare challenges.","domains":["lemmy.world","lemmy.ml","programming.dev","sh.itjust.works"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lemmy.world/api/v3/post?id=54926010","https://lemmy.world/api/v3/community?name=memes","https://lemmy.world/post/54926010","https://lemmy.ml/post/55819348"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v3","post"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","comment","list"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","community"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":false,"pathSegments":["post",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{host}/api/v3/post?id={postId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["c",{"param":"communityName","charset":"brew_id","minLen":1,"maxLen":120,"reserved":["api","pictrs","feeds","u","post","search","communities","login","signup"]}]},"twin":{"fetchUrl":"https://{host}/api/v3/community?name={communityName}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}}],"htmlRoutes":[{"id":"lemmy","match":{"exactSegments":false},"mode":"lemmy_html"}]},{"id":"libraries-io","name":"Libraries.io Package Metadata API","category":"developer","description":"Extracts cross-ecosystem package metadata, latest stable release, dependents, and repository signals via the official Libraries.io API (LIBRARIES_IO_API_KEY).","domains":["libraries.io"],"auth_mode":"key","exampleUrls":["https://libraries.io/api/npm/express"],"routes":[{"match":{"hosts":["libraries.io"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://libraries.io/api/npm/{scope}%2F{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":[{"param":"platform","allowValues":["npm","pypi","rubygems","cargo","go","nuget","packagist","hex","maven","pub","cran","cocoapods","conda"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://libraries.io/api/{platform}/{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}}]},{"id":"lightspeed-ecom","name":"Lightspeed eCom (C-Series)","category":"commerce-social","description":"Extracts Lightspeed eCom C-Series ?format=json product and collection twins plus custom-domain storefront HTML/companion discovery.","domains":["www.kayasieraden.nl"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html","https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html?format=json"],"routes":[{"match":{"hosts":["www.kayasieraden.nl"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"lightspeed_ecom_json"}}],"htmlRoutes":[{"id":"lightspeed-ecom","match":{"exactSegments":false},"mode":"lightspeed_ecom_html"}]},{"id":"lobsters","name":"Lobste.rs Computing Stories","category":"commerce-social","description":"Upgrades lobste.rs/s/ story pages to their .json feed with nested plain-text comments.","domains":["lobste.rs"],"exampleUrls":["https://lobste.rs/s/abc123/zero_alloc_go_parsers"],"match":{"exactSegments":false,"pathSegments":["s",{"param":"shortId","charset":"alnum","minLen":4,"maxLen":12}]},"twin":{"fetchUrl":"https://lobste.rs/s/{shortId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"storyUrl":{"paths":["url"]},"score":{"paths":["score"],"default":"0"},"user":{"paths":["submitter_user"]},"created":{"paths":["created_at"]},"tags":{"paths":["tags"],"itemWrap":"`","join":", "},"descPlain":{"paths":["description_plain"],"trim":true}},"titleTemplate":"{title}","authorVar":"user","publishedTimeVar":"created","metaLine":[{"label":"Score","template":"{score}"},{"label":"By","template":"@{user}","whenVar":"user"},{"label":"Tags","template":"{tags}","whenVar":"tags"},{"label":"Link","template":"{storyUrl}","whenVar":"storyUrl"}],"introVar":"descPlain","sections":[{"heading":"Comments","listArrayPath":"comments","limit":40,"indentField":"indent_level","indentOffset":-1,"maxIndent":6,"itemTemplate":"**@{user}** ({score} pts): {body}","requireItemVar":"body","itemVars":{"user":{"paths":["commenting_user"],"default":"user"},"score":{"paths":["score"],"default":"0"},"body":{"paths":["comment_plain"],"trim":true}}}],"linksVars":["storyUrl"]}},{"id":"loc-gov","name":"Library of Congress (loc.gov)","category":"public-records","description":"Library of Congress JSON (?fo=json) adapter for items, resources, and collections (excluding Chronicling America and disallowed search paths).","domains":["loc.gov","www.loc.gov"],"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/item/2014645520/","https://www.loc.gov/item/2014645520/?fo=json","https://www.loc.gov/resource/ds.05251/?fo=json"],"routes":[{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["item",{"param":"itemId","charset":"url_seg","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{itemId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["resource",{"param":"resourceId","charset":"url_seg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://www.loc.gov/resource/{resourceId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/{collectionId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}}],"htmlRoutes":[{"id":"loc-gov","match":{"anyOf":[{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/item/"},{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/resource/"},{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]}]},"mode":"loc_gov_html"}]},{"id":"mastodon-status","name":"Mastodon & Fediverse Statuses (Universal Engine)","category":"commerce-social","description":"Upgrades Fediverse status permalinks (/@/) on any Mastodon instance to /api/v1/statuses/ JSON.","domains":["mastodon.social","fosstodon.org","hachyderm.io"],"universalEngine":true,"exampleUrls":["https://fosstodon.org/@realpython/117694898741277050"],"match":{"excludeHosts":["medium.com","*.medium.com","tiktok.com","*.tiktok.com","threads.net","*.threads.net"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle"},{"param":"statusId","charset":"digits","minLen":15,"maxLen":24}]},"twin":{"id":"mastodon-status","fetchUrl":"https://{host}/api/v1/statuses/{statusId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["content","account.acct"],"vars":{"acct":{"paths":["account.acct"]},"displayName":{"paths":["account.display_name"],"fallbackTemplate":"{acct}"},"createdAt":{"paths":["created_at"]},"spoiler":{"paths":["spoiler_text"],"trim":true},"body":{"paths":["content"],"format":"html_to_md"}},"titleTemplate":"{displayName} (@{acct}@{host})","authorTemplate":"@{acct}@{host}","publishedTimeVar":"createdAt","blockquoteTemplate":"> [!NOTE]\n> **Content Note**: {spoiler}","blockquoteWhenVar":"spoiler","bodyVar":"body","sections":[{"heading":"","listArrayPath":"media_attachments","limit":16,"requireItemVar":"mediaDesc","itemVars":{"mediaDesc":{"paths":["description"],"trim":true}},"itemTemplate":"*Media description*: {mediaDesc}"}]}},{"id":"maven-central","name":"Maven Central","category":"developer","description":"Upgrades central.sonatype.com/artifact//[/] pages to the keyless Maven Central Solr JSON API (central.sonatype.com for versioned artifacts, search.maven.org for artifact summaries) with Maven/Gradle coordinates and artifact metadata.","domains":["central.sonatype.com"],"exampleUrls":["https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind","https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.18.2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160},{"param":"v","charset":"pkg","reserved":["versions","overview","dependencies","dependents","jar"],"minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://central.sonatype.com/solrsearch/select?q=g:{g}+AND+a:{a}+AND+v:{v}&core=gav&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["v","latestVersion"]},"packaging":{"paths":["p"]},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}/{ver}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}},{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://search.maven.org/solrsearch/select?q=g:{g}+AND+a:{a}&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["latestVersion","v"]},"packaging":{"paths":["p"]},"versionCount":{"paths":["versionCount"],"format":"int_comma"},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","titleWhenVar":"ver","titleFallbackTemplate":"{groupId}:{artifactId} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`","whenVar":"ver"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`","whenVar":"ver"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}}]},{"id":"mcp-directories","name":"Community MCP Directories (Smithery, Glama, PulseMCP)","category":"developer","description":"Extracts community MCP directory listings from Smithery Registry API and public Glama/PulseMCP HTML pages, tagging every record trustTier=community, untrusted=true.","domains":["smithery.ai","registry.smithery.ai","glama.ai","pulsemcp.com","www.pulsemcp.com"],"auth_mode":"pub","exampleUrls":["https://registry.smithery.ai/servers?pageSize=5","https://www.pulsemcp.com/servers?q=github","https://glama.ai/mcp/servers?query=github"],"routes":[{"match":{"hosts":["registry.smithery.ai"],"pathPrefix":"/servers"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{ns}/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}}],"htmlRoutes":[{"id":"mcp-directories","match":{"hosts":["glama.ai"],"pathPrefix":"/mcp/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["pulsemcp.com","www.pulsemcp.com"],"pathPrefix":"/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["smithery.ai"],"exactSegments":false},"mode":"mcp_directory_html"}]},{"id":"mcp-registry","name":"Official Model Context Protocol (MCP) Registry","category":"developer","description":"Extracts official MCP server listings, remotes, and packages from registry.modelcontextprotocol.io tagged trustTier=official, untrusted=false.","domains":["registry.modelcontextprotocol.io"],"auth_mode":"pub","exampleUrls":["https://registry.modelcontextprotocol.io/v0/servers?limit=5"],"routes":[{"match":{"hosts":["registry.modelcontextprotocol.io"],"anyOf":[{"pathPrefix":"/v0/"},{"pathPrefix":"/v0.1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mcp_registry_json"}}]},{"id":"mediawiki","name":"Wikipedia & MediaWiki Encyclopedias","category":"commerce-social","description":"Robots-compliant Wikipedia & MediaWiki adapter: strips [ ], Edit links, [n] citation markers, [edit], and navigation chrome with 24h article caching; pair with search({ query, wikipedia: true, lang }) for Special:Search-free article discovery and Wikimedia Enterprise or dumps.wikimedia.org for bulk corpus access.","domains":["*.wikipedia.org","wiki.archlinux.org"],"universalEngine":true,"exampleUrls":["https://en.wikipedia.org/wiki/HTTP/2"],"htmlRoutes":[{"id":"mediawiki","match":{"exactSegments":false},"mode":"markdown_clean","cleanPreset":"mediawiki"}]},{"id":"medium","name":"Medium","category":"commerce-social","description":"Extracts Medium ?format=json responses with linear anti-XSSI prefix stripping, Medium RSS feeds, and Medium article HTML.","domains":["medium.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://medium.com/p/62edea66ffa4?format=json","https://medium.com/@medium/updating-our-rules-june-2023-62edea66ffa4","https://medium.com/feed/@medium"],"routes":[{"match":{"hosts":["medium.com"],"exactSegments":false,"queryParams":[{"name":"format","param":"fmt","allowValues":["json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":["p",{"param":"postId","charset":"alnum","minLen":8,"maxLen":20}]},"twin":{"fetchUrl":"https://medium.com/p/{postId}?format=json","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle","minLen":2,"maxLen":80},{"param":"slugId","charset":"slug","minLen":10,"maxLen":200}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"pathPrefix":"/feed/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"medium_rss_xml"}}],"htmlRoutes":[{"id":"medium","match":{"exactSegments":false},"mode":"medium_html"}]},{"id":"medlineplus","name":"NLM MedlinePlus","category":"research-health","description":"MedlinePlus Health Topics XML web service, MedlinePlus Connect JSON API, and medlineplus.gov topic HTML extractor.","domains":["medlineplus.gov","www.medlineplus.gov","wsearch.nlm.nih.gov","connect.medlineplus.gov"],"auth_mode":"pub","exampleUrls":["https://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=diabetes&retmax=2","https://medlineplus.gov/diabetes.html"],"routes":[{"match":{"hosts":["wsearch.nlm.nih.gov"],"pathEquals":["/ws/query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/xml","maxBytes":2097152},"extract":{"textMode":"medlineplus_xml"}},{"match":{"hosts":["connect.medlineplus.gov"],"pathEquals":["/service"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"knowledgeResponseType":"application/json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medlineplus_connect_json"}}],"htmlRoutes":[{"id":"medlineplus","match":{"hosts":["medlineplus.gov","www.medlineplus.gov"],"exactSegments":false},"mode":"medlineplus_html"}]},{"id":"medusa","name":"Medusa Storefront & Store API","category":"commerce-social","description":"Opt-in page-key adapter for Medusa /store/products API twins with Next.js RSC, JSON-LD, and DOM storefront HTML fallback when disabled.","domains":["next.medusajs.com","www.mattsleeps.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://next.medusajs.com/dk/products/hoodie","https://www.mattsleeps.com/en/beds"],"routes":[{"match":{"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["store","products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}},{"match":{"optionalLeadingLocale":true,"pathSegments":["store","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}}],"htmlRoutes":[{"id":"medusa","match":{"exactSegments":false},"mode":"medusa_html"}]},{"id":"meetup-luma","name":"Meetup & Luma Events","category":"commerce-social","description":"Extracts event title, schedule, venue/location, organizer, and description from Meetup and Luma (lu.ma / luma.com) via Schema.org Event JSON-LD and __NEXT_DATA__ hydration.","domains":["meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com"],"auth_mode":"html","exampleUrls":["https://www.meetup.com/lawofattractioncentre/events/317269557/","https://luma.com/8jye50v0"],"htmlRoutes":[{"id":"meetup-luma","match":{"exactSegments":false},"mode":"meetup_luma_html"}]},{"id":"midmarket-career-portals","name":"Mid-Market Career Portals (Paycom, Paycor, ADP)","category":"jobs","description":"Extracts structured open roles from Paycom (/v4/ats/web.php/portal/ & /api/ats/job-postings/), ADP Workforce Now (/mascsr/default/careercenter/), and public Paycor career pages.","domains":["pc00.paycomonline.com","www.paycomonline.net","workforcenow.adp.com","recruiting.adp.com","www.paycor.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://workforcenow.adp.com/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions?cid=7a48330e-b9d5-4122-9051-71a47afa46d5"],"routes":[{"match":{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"pathPrefix":"/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"adp_wfn_json"}}],"htmlRoutes":[{"id":"midmarket-career-portals","mode":"midmarket_career_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","recruitingbypaycor.com"],"anyOf":[{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"exactSegments":false},{"hosts":["www.paycor.com"],"pathPrefix":"/company/careers","exactSegments":false}]}}]},{"id":"mlb-statsapi","name":"MLB Stats API","category":"commerce-social","description":"Extracts public MLB schedule, team, game linescore, standings, and player data from statsapi.mlb.com JSON endpoints with mlb.com HTML/JSON-LD fallback.","domains":["statsapi.mlb.com","mlb.com","www.mlb.com"],"auth_mode":"pub","exampleUrls":["https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=2024-10-30","https://statsapi.mlb.com/api/v1/teams/119","https://statsapi.mlb.com/api/v1/game/775296/linescore","https://www.mlb.com/dodgers"],"routes":[{"match":{"hosts":["statsapi.mlb.com"],"anyOf":[{"pathPrefix":"/api/v1/schedule"},{"pathPrefix":"/api/v1/teams"},{"pathPrefix":"/api/v1/game/"},{"pathPrefix":"/api/v1/standings"},{"pathPrefix":"/api/v1/people"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"mlb_statsapi_json"}}],"htmlRoutes":[{"id":"mlb-statsapi","mode":"mlb_statsapi_html","match":{"hosts":["mlb.com","www.mlb.com"],"exactSegments":false}}]},{"id":"model-hub-pack","name":"Model Hub Pack (Replicate & Civitai)","category":"genai","description":"Extracts ML model metadata, versions, hardware, and descriptions from Replicate and Civitai SSR/Next.js HTML pages while honoring robots.txt.","domains":["replicate.com","www.replicate.com","civitai.com","www.civitai.com"],"auth_mode":"pub","exampleUrls":["https://replicate.com/meta/meta-llama-3-8b-instruct","https://civitai.com/models/4201/realistic-vision-v60-b1"],"htmlRoutes":[{"id":"model-hub-pack","match":{"hosts":["replicate.com","www.replicate.com"],"exactSegments":false},"mode":"replicate_html"},{"id":"model-hub-pack","match":{"hosts":["civitai.com","www.civitai.com"],"exactSegments":false},"mode":"civitai_html"}]},{"id":"modern-community-pack","name":"Modern Community Pack","category":"commerce-social","description":"Extracts community discussions, authors, and timestamps from Higher Logic, Bettermode (rendered SSR DOM only), and Circle HTML while rejecting soft-404s and empty shells.","domains":["community.broadcom.com","community.flutterflow.io","community.xano.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://community.broadcom.com/vmware-cloud-foundation/discussion/black-screen-after-upgrading-opensuse-leap-16-0-to-16-1-disabling-vmware-graphics-driver-restores-desktop","https://community.flutterflow.io/discussions/post/how-to-build-a-browser-based-instagram-story-viewer-with-flutterflow-lldyNB3IG314wPU","https://community.xano.com/ask-the-community/post/api-cache-bug-0GJQtNpHlTb471k"],"htmlRoutes":[{"id":"modern-community-pack","match":{"exactSegments":false},"mode":"modern_community_pack_html"}]},{"id":"multifamily-portals","name":"Multifamily Apartment Portals (RentCafe / Entrata / RealPage / Jonah)","category":"commerce-social","description":"Extracts apartment floor plans, square footage, and lease pricing from RentCafe, Entrata, RealPage, and Jonah Systems multifamily portals while honoring Disallow: /*.ashx.","domains":["*.rentcafe.com","*.entrata.com","*.realpage.com","www.canvasatmidlothian.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.canvasatmidlothian.com/"],"htmlRoutes":[{"id":"multifamily-portals","match":{"exactSegments":false},"mode":"multifamily_portals_html"}]},{"id":"municipal-cms-pack","name":"Municipal CMS Pack (Revize & OpenCities)","category":"public-records","description":"Universal HTML extractor for Revize and Granicus OpenCities (formerly Vision Internet) municipal government portals.","domains":["www.maplevalleywa.gov","www.reno.gov","www.culvercity.gov","www.glendaleaz.gov"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.maplevalleywa.gov/government/city_council_meetings_agendas_and_minutes.php","https://www.culvercity.gov/Home","https://www.glendaleaz.gov/Home"],"htmlRoutes":[{"id":"municipal-cms-pack","match":{"exactSegments":false},"mode":"municipal_cms_html"}]},{"id":"municode","name":"Municode Municipal Codes","category":"public-records","description":"Municode API JSON and municipal code library HTML adapter for city and county ordinances.","domains":["library.municode.com","api.municode.com"],"auth_mode":"pub","exampleUrls":["https://library.municode.com/tx/austin/codes/code_of_ordinances","https://api.municode.com/States"],"routes":[{"match":{"hosts":["api.municode.com"],"pathPrefix":"/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"municode_json"}}],"htmlRoutes":[{"id":"municode","match":{"hosts":["library.municode.com"],"exactSegments":false},"mode":"municode_html"}]},{"id":"nasa-apis","name":"NASA Open APIs & Image Library","category":"research-health","description":"NASA api.nasa.gov (APOD, NeoWs, EPIC with DEMO_KEY fallback or configured NASA_API_KEY) and keyless images-api.nasa.gov search.","domains":["api.nasa.gov","images-api.nasa.gov"],"auth_mode":"key","exampleUrls":["https://api.nasa.gov/neo/rest/v1/feed/today?detailed=false","https://api.nasa.gov/planetary/apod?date=2024-07-04","https://images-api.nasa.gov/search?q=apollo+11&page_size=2"],"routes":[{"match":{"hosts":["api.nasa.gov"],"anyOf":[{"pathPrefix":"/planetary/apod"},{"pathPrefix":"/neo/"},{"pathPrefix":"/EPIC/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}},{"match":{"hosts":["images-api.nasa.gov"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/asset/"},{"pathPrefix":"/metadata/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}}]},{"id":"national-archives","name":"U.S. National Archives (NARA Catalog)","category":"public-records","description":"National Archives and Records Administration (NARA) Catalog API v2 adapter (catalog.archives.gov/api/v2) with HTML fallback.","domains":["catalog.archives.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://catalog.archives.gov/api/v2/records/search?q=constitution","https://catalog.archives.gov/id/1667751"],"routes":[{"match":{"hosts":["catalog.archives.gov"],"pathPrefix":"/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}},{"match":{"hosts":["catalog.archives.gov"],"exactSegments":false,"pathSegments":["id",{"param":"naId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.archives.gov/api/v2/records/search?naId={naId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}}],"htmlRoutes":[{"id":"national-archives","match":{"hosts":["catalog.archives.gov"],"exactSegments":false},"mode":"national_archives_html"}]},{"id":"ncaa-espn","name":"NCAA & ESPN","category":"commerce-social","description":"Extracts NCAA and ESPN sports articles, scoreboards, standings, and public sports API JSON plus HTML JSON-LD and __espnfitt__ / turner_metadata hydration.","domains":["ncaa.com","www.ncaa.com","espn.com","www.espn.com","site.api.espn.com","sports.core.api.espn.com","site.web.api.espn.com","data.ncaa.com","sdataprod.ncaa.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.espn.com/mlb/story/_/id/50328768/free-agency-tracker-offseason-trades-moves-2026-2027","https://www.espn.com/nfl/scoreboard","https://www.ncaa.com/news/football/article/2026-11-25/4-games-storylines-rivalry-week-could-impact-college-football-playoff-bracket","https://sports.core.api.espn.com/v2/sports/football/leagues/nfl"],"routes":[{"match":{"hosts":["sports.core.api.espn.com"],"pathPrefix":"/v2/sports/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.web.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["data.ncaa.com"],"pathPrefix":"/cas/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}}],"htmlRoutes":[{"id":"ncaa-espn","match":{"hosts":["espn.com","www.espn.com","ncaa.com","www.ncaa.com"]},"mode":"ncaa_espn_html"}]},{"id":"nces-ipeds","name":"NCES IPEDS & Urban Institute Education Data","category":"public-records","description":"NCES IPEDS and Digest of Education Statistics HTML adapter with Urban Institute Education Data API JSON support (strict robots).","domains":["nces.ed.gov","educationdata.urban.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nces.ed.gov/ipeds/use-the-data","https://nces.ed.gov/programs/digest/current_tables.asp"],"routes":[{"match":{"hosts":["educationdata.urban.org"],"exactSegments":false,"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"nces_ipeds_json"}}],"htmlRoutes":[{"id":"nces-ipeds","match":{"hosts":["nces.ed.gov","educationdata.urban.org"],"exactSegments":false},"mode":"nces_ipeds_html"}]},{"id":"ncua-credit-unions","name":"NCUA Credit Union Lookup","category":"finance","description":"Extracts NCUA credit union details and call report pages with strict robots.txt enforcement (honoring mapping.ncua.gov Disallow /) and ncua.gov HTML fallback.","domains":["mapping.ncua.gov","ncua.gov","www.ncua.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://ncua.gov/analysis/credit-union-corporate-call-report-data","https://mapping.ncua.gov/CreditUnionDetails/60006"],"routes":[{"match":{"hosts":["mapping.ncua.gov"],"exactSegments":false,"pathSegments":["CreditUnionDetails",{"param":"charter","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mapping.ncua.gov/api/CreditUnionDetails/{charter}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}},{"match":{"hosts":["mapping.ncua.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}}],"htmlRoutes":[{"id":"ncua-credit-unions","match":{"hosts":["ncua.gov","www.ncua.gov","mapping.ncua.gov"],"exactSegments":false},"mode":"ncua_html"}]},{"id":"neogov","name":"NeoGov GovernmentJobs & SchoolJobs","category":"jobs","description":"Extracts structured public-sector job feeds and postings from NeoGov GovernmentJobs and SchoolJobs RSS/JSON/HTML while strictly honoring robots.txt.","domains":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.governmentjobs.com/careers/lacounty/rss","https://www.governmentjobs.com/careers/lacounty","https://www.schooljobs.com/careers/lausd"],"routes":[{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":"/rss","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".rss","exactSegments":false}]},"twin":{"id":"neogov-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"NeoGov Public Sector Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category","department"],"default":"-"},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","department":"{dept}","location":"{loc}","postedAt":"{pubDate}","source":"neogov"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".json","exactSegments":false}]},"twin":{"id":"neogov-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"neogov_json"}}],"htmlRoutes":[{"id":"neogov","mode":"neogov_html","match":{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"exactSegments":false}}]},{"id":"newsletter-archives","name":"Newsletter Archives (Beehiiv / Ghost / Buttondown / Kit)","category":"commerce-social","description":"Extracts Ghost Content API posts, scoped Beehiiv/Ghost/Buttondown RSS feeds, and newsletter archive HTML pages.","domains":["ghost.org","buttondown.com","rss.beehiiv.com","aibrews.beehiiv.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://ghost.org/changelog/rss/","https://ghost.org/changelog/","https://buttondown.com/hillelwayne/rss","https://aibrews.beehiiv.com/"],"routes":[{"match":{"pathPrefix":"/ghost/api/content/posts","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"newsletter_ghost_json"}},{"match":{"hosts":["rss.beehiiv.com"],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["buttondown.com"],"exactSegments":true,"pathSegments":[{"param":"pub","charset":"slug","minLen":1,"maxLen":80},"rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["ghost.org"],"pathEquals":["/changelog/rss","/changelog/rss/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".beehiiv.com","param":"pub"},"pathEquals":["/feed","/rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".ghost.io","param":"pub"},"pathEquals":["/rss","/rss/","/feed","/feed/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}}],"htmlRoutes":[{"id":"newsletter-archives","match":{"exactSegments":false},"mode":"newsletter_archives_html"}]},{"id":"newswire-pack","name":"Newswire Pack (PR Newswire / Business Wire / GlobeNewswire)","category":"commerce-social","description":"Extracts PR Newswire, Business Wire, and GlobeNewswire RSS feeds and NewsArticle HTML press releases.","domains":["www.prnewswire.com","prnewswire.com","www.businesswire.com","businesswire.com","www.globenewswire.com","globenewswire.com"],"auth_mode":"pub","exampleUrls":["https://www.prnewswire.com/rss/news-releases-list.rss","https://www.prnewswire.com/news-releases/binance-secures-in-principle-approval-in-gelephu-mindfulness-city-plans-asia-hub-in-bhutan-302951995.html"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rss/"},{"pathPrefix":"/RssFeed/"},{"pathPrefix":"/feed/"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newswire_rss_xml"}}],"htmlRoutes":[{"id":"newswire-pack","match":{"exactSegments":false},"mode":"newswire_html"}]},{"id":"nfpa","name":"NFPA Standards & Codes (www.nfpa.org)","category":"public-records","description":"Unpacks Sitecore JSS __NEXT_DATA__ storefront-main placeholders (PageTitle, ContentBlock, SplitScreenCalloutComponent, Accordion, TwoColumnVideo) on www.nfpa.org without headless browser rendering, never touching link.nfpa.org or robots-disallowed /en/ and /-/media/.","domains":["www.nfpa.org"],"exampleUrls":["https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70","https://www.nfpa.org/for-professionals/codes-and-standards/list-of-codes-and-standards/free-access"],"htmlRoutes":[{"id":"nfpa","mode":"sitecore_jss_html","match":{"exactSegments":false,"reservedFirstSegment":["-","ar","en","data","standard_items"]}}]},{"id":"nhl-api","name":"NHL Web API","category":"commerce-social","description":"Extracts public NHL standings, schedule, club stats, and gamecenter landing JSON from api-web.nhle.com with nhl.com HTML/JSON-LD fallback.","domains":["api-web.nhle.com","nhl.com","www.nhl.com"],"auth_mode":"pub","exampleUrls":["https://api-web.nhle.com/v1/standings/now","https://api-web.nhle.com/v1/schedule/now","https://api-web.nhle.com/v1/club-stats/TOR/now","https://api-web.nhle.com/v1/gamecenter/2024020001/landing"],"routes":[{"match":{"hosts":["api-web.nhle.com"],"anyOf":[{"pathPrefix":"/v1/standings"},{"pathPrefix":"/v1/schedule"},{"pathPrefix":"/v1/club-stats/"},{"pathPrefix":"/v1/gamecenter/"},{"pathPrefix":"/v1/player/"},{"pathPrefix":"/v1/roster/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nhl_api_json"}}],"htmlRoutes":[{"id":"nhl-api","mode":"nhl_api_html","match":{"hosts":["nhl.com","www.nhl.com"],"exactSegments":false}}]},{"id":"nhtsa-vpic-recalls","name":"NHTSA vPIC & Safety Recalls API","category":"public-records","description":"Formats keyless vpic.nhtsa.dot.gov VIN decode and api.nhtsa.gov vehicle recalls & complaints JSON endpoints into structured Markdown tables (respecting HTTP 403/robots.txt without bypass).","domains":["vpic.nhtsa.dot.gov","api.nhtsa.gov"],"exampleUrls":["https://vpic.nhtsa.dot.gov/api/vehicles/decodevinvalues/1HGCM82633A004352?format=json","https://api.nhtsa.gov/recalls/recallsByVehicle?make=honda&model=accord&modelYear=2020"],"routes":[{"match":{"hosts":["vpic.nhtsa.dot.gov"],"exactSegments":true,"pathSegments":["api","vehicles",{"param":"endpoint","allowValues":["decodevinvalues","decodevinvaluesextended"]},{"param":"vin","charset":"alnum","minLen":3,"maxLen":32}]},"twin":{"fetchUrl":"https://vpic.nhtsa.dot.gov/api/vehicles/{endpoint}/{vin}?format=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["Results","Message"],"vars":{"vinOut":{"paths":["Results.0.VIN"],"fallbackTemplate":"{vin}"},"make":{"paths":["Results.0.Make"],"trim":true},"model":{"paths":["Results.0.Model"],"trim":true},"modelYear":{"paths":["Results.0.ModelYear"],"trim":true},"vehicleType":{"paths":["Results.0.VehicleType"],"trim":true},"bodyClass":{"paths":["Results.0.BodyClass"],"trim":true},"plantCountry":{"paths":["Results.0.PlantCountry"],"trim":true},"engineCylinders":{"paths":["Results.0.EngineCylinders"],"trim":true},"displacementL":{"paths":["Results.0.DisplacementL"],"trim":true},"fuelType":{"paths":["Results.0.FuelTypePrimary"],"trim":true},"errorCode":{"paths":["Results.0.ErrorCode"],"trim":true},"errorText":{"paths":["Results.0.ErrorText"],"trim":true},"message":{"paths":["Message"],"trim":true}},"titleTemplate":"{modelYear} {make} {model} — VIN {vinOut}","titleWhenVar":"make","titleFallbackTemplate":"NHTSA vPIC VIN Decode ({vinOut})","bullets":[{"label":"VIN","template":"`{vinOut}`"},{"label":"Make","template":"{make}","whenVar":"make"},{"label":"Model","template":"{model}","whenVar":"model"},{"label":"Model Year","template":"{modelYear}","whenVar":"modelYear"},{"label":"Vehicle Type","template":"{vehicleType}","whenVar":"vehicleType"},{"label":"Body Class","template":"{bodyClass}","whenVar":"bodyClass"},{"label":"Plant Country","template":"{plantCountry}","whenVar":"plantCountry"},{"label":"Engine Cylinders","template":"{engineCylinders}","whenVar":"engineCylinders"},{"label":"Displacement (L)","template":"{displacementL}","whenVar":"displacementL"},{"label":"Fuel Type","template":"{fuelType}","whenVar":"fuelType"},{"label":"Error Code","template":"`{errorCode}`","whenVar":"errorCode"},{"label":"Error Text","template":"{errorText}","whenVar":"errorText"},{"label":"Message","template":"{message}","whenVar":"message"}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/recalls/recallsByVehicle","/recalls/recallsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["Count","count"],"format":"int_comma","default":"0"},"message":{"paths":["Message","message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Recalls ({count} found)","introVar":"message","sections":[{"heading":"Recalls","arrayPath":"results","limit":50,"emptyText":"No recalls found.","columns":[{"header":"Campaign","paths":["NHTSACampaignNumber"],"code":true},{"header":"Date","paths":["ReportReceivedDate"]},{"header":"Component","paths":["Component"]},{"header":"Summary","paths":["Summary"],"sliceMax":240},{"header":"Consequence","paths":["Consequence"],"sliceMax":240},{"header":"Remedy","paths":["Remedy"],"sliceMax":240}]}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/complaints/complaintsByVehicle","/complaints/complaintsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["count","Count"],"format":"int_comma","default":"0"},"message":{"paths":["message","Message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Complaints ({count} found)","introVar":"message","sections":[{"heading":"Complaints","arrayPath":"results","limit":50,"emptyText":"No complaints found.","columns":[{"header":"ODI Number","paths":["odiNumber"],"code":true},{"header":"Date","paths":["dateOfIncident"]},{"header":"Components","paths":["components"]},{"header":"Summary","paths":["summary"],"sliceMax":240},{"header":"Crash","paths":["crash"]},{"header":"Fire","paths":["fire"]}]}]}}]},{"id":"nist-nvd","name":"NIST National Vulnerability Database (NVD)","category":"developer","description":"Upgrades nvd.nist.gov CVE pages to the keyless NVD REST v2 JSON API with CVSS scores, CWEs, and vendor advisories.","domains":["nvd.nist.gov","www.nvd.nist.gov"],"exampleUrls":["https://nvd.nist.gov/vuln/detail/CVE-2024-3094"],"match":{"exactSegments":false,"pathSegments":["vuln","detail",{"param":"cveId","charset":"cve_id","transform":"upper"}]},"twin":{"fetchUrl":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId={cveId}","kind":"json","accept":"application/json"},"extract":{"rootPath":"vulnerabilities.0.cve","requireFields":["id"],"vars":{"id":{"paths":["id"]},"desc":{"findInArrayLang":{"arrayPath":"descriptions","langField":"lang","langValue":"en","valueField":"value"},"trim":true},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"baseScore":{"paths":["metrics.cvssMetricV40.0.cvssData.baseScore","metrics.cvssMetricV31.0.cvssData.baseScore","metrics.cvssMetricV30.0.cvssData.baseScore"]},"severity":{"paths":["metrics.cvssMetricV40.0.cvssData.baseSeverity","metrics.cvssMetricV40.0.baseSeverity","metrics.cvssMetricV31.0.cvssData.baseSeverity","metrics.cvssMetricV31.0.baseSeverity","metrics.cvssMetricV30.0.cvssData.baseSeverity","metrics.cvssMetricV30.0.baseSeverity"]},"vector":{"paths":["metrics.cvssMetricV40.0.cvssData.vectorString","metrics.cvssMetricV31.0.cvssData.vectorString","metrics.cvssMetricV30.0.cvssData.vectorString"]},"titleWithScore":{"template":"{id} ({severity} {baseScore})","whenVars":["severity","baseScore"]},"titleSevOnly":{"template":"{id} ({severity})","whenVars":["severity"]},"titleFull":{"template":"{titleWithScore}","whenVars":["titleWithScore"],"fallbackVar":"titleSevOnly"},"cvssScoreOnly":{"template":"**{baseScore}**","whenVars":["baseScore"]},"cvssScoreVec":{"template":"**{baseScore}** — `{vector}`","whenVars":["baseScore","vector"],"fallbackVar":"cvssScoreOnly"},"cvssScoreSev":{"template":"**{baseScore}** ({severity})","whenVars":["baseScore","severity"],"fallbackVar":"cvssScoreVec"},"cvssDisplay":{"template":"**{baseScore}** ({severity}) — `{vector}`","whenVars":["baseScore","severity","vector"],"fallbackVar":"cvssScoreSev"},"cwes":{"nestedSubValues":{"arrayPath":"weaknesses","subArrayField":"description","valueField":"value","excludeValues":["NVD-CWE-noinfo"],"join":", "}},"published":{"paths":["published"]},"publishedDate":{"paths":["published"],"sliceMax":10},"vulnStatus":{"paths":["vulnStatus"]},"cisaExploit":{"paths":["cisaExploitAdd"]}},"titleTemplate":"{titleFull}","titleWhenVar":"severity","titleFallbackTemplate":"{id}","descriptionVar":"descShort","publishedTimeVar":"published","bullets":[{"label":"CVSS Score","template":"{cvssDisplay}","whenVar":"cvssDisplay"},{"label":"Status","template":"{vulnStatus}","whenVar":"vulnStatus"},{"label":"Published","template":"{publishedDate}","whenVar":"publishedDate"},{"label":"Weaknesses (CWE)","template":"{cwes}","whenVar":"cwes"},{"label":"CISA KEV (Known Exploited)","template":"Added {cisaExploit}","whenVar":"cisaExploit"}],"sections":[{"heading":"Summary","textVar":"desc"},{"heading":"References & Advisories","arrayPath":"references","limit":15,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refTags":{"paths":["tags"],"join":", "}},"columns":[{"header":"URL","template":"{refUrl}"},{"header":"Tags","template":"{refTags}"}]}]}},{"id":"noaa-ncei-cdo","name":"NOAA NCEI Climate Data Online (CDO)","category":"research-health","description":"NOAA National Centers for Environmental Information CDO API v2 (token header) on www.ncei.noaa.gov with HTML fallback.","domains":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"auth_mode":"key","exampleUrls":["https://www.ncei.noaa.gov/cdo-web/api/v2/datasets?limit=2","https://www.ncei.noaa.gov/cdo-web/"],"routes":[{"match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov"],"pathPrefix":"/cdo-web/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"noaa_ncei_cdo_json"}}],"htmlRoutes":[{"id":"noaa-ncei-cdo","match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"exactSegments":false},"mode":"noaa_ncei_html"}]},{"id":"noaa-tides-currents","name":"NOAA Tides & Currents (CO-OPS)","category":"research-health","description":"NOAA Center for Operational Oceanographic Products and Services (CO-OPS) DataGetter and station metadata JSON APIs with stationhome HTML fallback.","domains":["tidesandcurrents.noaa.gov","api.tidesandcurrents.noaa.gov"],"auth_mode":"pub","exampleUrls":["https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=latest&station=8518750&product=water_level&datum=MLLW&time_zone=gmt&units=english&format=json","https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/8518750.json","https://tidesandcurrents.noaa.gov/stationhome.html?id=8518750"],"routes":[{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathEquals":["/api/prod/datagetter"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathPrefix":"/mdapi/prod/webapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["tidesandcurrents.noaa.gov"],"pathEquals":["/stationhome.html"],"queryParams":[{"name":"id","param":"stationId","charset":"digits","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/{stationId}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}}],"htmlRoutes":[{"id":"noaa-tides-currents","match":{"hosts":["tidesandcurrents.noaa.gov"],"exactSegments":false},"mode":"noaa_tides_html"}]},{"id":"notion-public-site","name":"Notion Public Sites","category":"developer","description":"Extracts public Notion site pages (*.notion.site and www.notion.so) via POST /api/v3/loadCachedPageChunk with fail-closed SSR HTML fallback.","domains":["www.notion.so"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://matt-mike.notion.site/Matt-Mike-Data-Analyst-Portfolio-201029b2366680969986e484d1aa4373"],"routes":[{"match":{"hostSubdomain":{"suffix":".notion.site","param":"siteSub"},"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}},{"match":{"hosts":["www.notion.so","notion.so"],"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}}],"htmlRoutes":[{"id":"notion-public-site","match":{"exactSegments":false},"mode":"notion_public_site_html"}]},{"id":"npm-registry","name":"npm Package Registry","category":"developer","description":"Upgrades npmjs.com package pages to registry.npmjs.org JSON metadata, TypeScript declarations, dependency list, and README.","domains":["npmjs.com","www.npmjs.com"],"exampleUrls":["https://www.npmjs.com/package/@cfworker/json-schema"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/@{scopeNoAt}%2F{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}},{"match":{"anyOf":[{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}}]},{"id":"nppes-npi","name":"NPPES NPI Registry","category":"research-health","description":"CMS National Plan and Provider Enumeration System (NPPES) NPI Registry v2.1 JSON API adapter with Angular SPA shell rejection.","domains":["npiregistry.cms.hhs.gov"],"auth_mode":"pub","exampleUrls":["https://npiregistry.cms.hhs.gov/api/?version=2.1&number=1003000126","https://npiregistry.cms.hhs.gov/provider-view/1003000126"],"routes":[{"match":{"pathEquals":["/api","/api/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"version":"2.1"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-view",{"param":"npi","charset":"digits","minLen":10,"maxLen":10}]},"twin":{"fetchUrl":"https://npiregistry.cms.hhs.gov/api/?version=2.1&number={npi}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}}],"htmlRoutes":[{"id":"nppes-npi","match":{"pathPrefix":"/provider-view/","exactSegments":false},"mode":"nppes_npi_html"}]},{"id":"npr-pbs","name":"NPR & PBS NewsHour","category":"commerce-social","description":"Extracts NPR/PBS RSS XML feeds, text.npr.org stories, and NPR/PBS article HTML.","domains":["www.npr.org","npr.org","text.npr.org","feeds.npr.org","www.pbs.org","pbs.org"],"auth_mode":"html","exampleUrls":["https://feeds.npr.org/1001/rss.xml","https://www.pbs.org/newshour/feeds/rss/headlines","https://www.pbs.org/newshour/nation"],"routes":[{"match":{"hosts":["feeds.npr.org"],"pathSuffix":".xml","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}},{"match":{"hosts":["www.pbs.org","pbs.org"],"pathPrefix":"/newshour/feeds/rss/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}}],"htmlRoutes":[{"id":"npr-pbs","match":{"exactSegments":false},"mode":"npr_pbs_html"}]},{"id":"nps","name":"National Park Service (NPS)","category":"public-records","description":"National Park Service developer.nps.gov v1 JSON API (via DATA_GOV_API_KEY) with www.nps.gov HTML fallback.","domains":["developer.nps.gov","www.nps.gov","nps.gov"],"auth_mode":"key","exampleUrls":["https://www.nps.gov/yell/index.htm","https://developer.nps.gov/api/v1/parks?parkCode=yell&limit=1"],"routes":[{"match":{"hosts":["developer.nps.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nps_json"}},{"match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":true,"pathSegments":[{"param":"parkCode","charset":"alnum","minLen":4,"maxLen":4,"reserved":["news","plan","maps","fees","find","jobs","kids","faqs","more","docs","help","info","blog","home","data","form","apps","page"],"transform":"lower"},"index.htm"]},"twin":{"fetchUrl":"https://developer.nps.gov/api/v1/parks?parkCode={parkCode}&limit=5","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nps_json"}}],"htmlRoutes":[{"id":"nps","match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":false},"mode":"nps_html"}]},{"id":"nuget-gallery","name":"NuGet Gallery","category":"developer","description":"Upgrades nuget.org/packages/[/] pages to the official api.nuget.org v3 registration JSON API (supporting both inlined catalogEntry pages and un-inlined CatalogPage stubs).","domains":["www.nuget.org","nuget.org"],"exampleUrls":["https://www.nuget.org/packages/Newtonsoft.Json","https://www.nuget.org/packages/Newtonsoft.Json/13.0.3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"},{"param":"ver","charset":"url_seg","reserved":["ReportAbuse","ContactOwners","versions"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}},{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}}]},{"id":"nyt-api","name":"New York Times API & News","category":"commerce-social","description":"Official NYT Developer API (Article Search, Top Stories, Most Popular) with NYT_API_KEY and NewsArticle HTML fallback.","domains":["api.nytimes.com","www.nytimes.com","nytimes.com"],"auth_mode":"key","exampleUrls":["https://api.nytimes.com/svc/topstories/v2/home.json","https://www.nytimes.com/"],"routes":[{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSegments":["svc","search","v2","articlesearch.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","topstories","v2",{"param":"section","charset":"slug","stripSuffix":".json","minLen":2,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","mostpopular","v2",{"param":"kind","allowValues":["emailed","shared","viewed"]},{"param":"period","charset":"digits","stripSuffix":".json","allowValues":["1","7","30"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}}],"htmlRoutes":[{"id":"nyt-api","match":{"hosts":["www.nytimes.com","nytimes.com"],"exactSegments":false},"mode":"nyt_html"}]},{"id":"okendo","name":"Okendo Product Reviews","category":"commerce-social","description":"Extracts public Okendo product review and review aggregate JSON payloads without preempting storefront HTML extractors.","domains":["api.okendo.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.okendo.io/v1/stores/892ce72b-10d2-4dd3-a7ab-e2dfdee9d001/products/shopify-6861943013449/reviews?limit=10"],"routes":[{"match":{"anyOf":[{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},{"param":"endpoint","allowValues":["reviews","review_aggregate"]}]},{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"reviews"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"okendo_reviews"}}],"htmlRoutes":[{"id":"okendo","match":{"exactSegments":false},"mode":"okendo_html"}]},{"id":"openalex","name":"OpenAlex Scholarly Works","category":"research-health","description":"Upgrades openalex.org work URLs to api.openalex.org JSON with reconstructed abstracts, citations, open-access PDF links, and topics.","domains":["openalex.org","www.openalex.org","api.openalex.org"],"exampleUrls":["https://openalex.org/W2741809807","https://openalex.org/works/W2741809807"],"match":{"anyOf":[{"exactSegments":false,"pathSegments":["works",{"param":"workId","charset":"openalex_work","transform":"upper"}]},{"exactSegments":false,"pathSegments":[{"param":"workId","charset":"openalex_work","transform":"upper"}]}]},"twin":{"fetchUrl":"https://api.openalex.org/works/{workId}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["display_name","title"],"requireVars":["title"],"vars":{"title":{"paths":["display_name","title"],"trim":true},"pubDate":{"paths":["publication_date"]},"citedBy":{"paths":["cited_by_count"],"format":"int_comma"},"doi":{"paths":["doi"]},"oaUrl":{"paths":["open_access.oa_url"],"requireHttps":true},"authors":{"paths":["authorships"],"subField":"author.display_name","limit":15,"join":", "},"authorsShort":{"paths":["authorships"],"subField":"author.display_name","limit":4,"join":", "},"abstract":{"paths":["abstract_inverted_index"],"format":"inverted_abstract"},"abstractShort":{"paths":["abstract_inverted_index"],"format":"inverted_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"OpenAlex ID","template":"`{workId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Citations","template":"{citedBy}","whenVar":"citedBy"},{"label":"DOI","template":"{doi}","whenVar":"doi"},{"label":"Open Access PDF","template":"{oaUrl}","whenVar":"oaUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["doi","oaUrl"]}},{"id":"opencorporates","name":"OpenCorporates Company Registry","category":"public-records","description":"Upgrades opencorporates.com company pages to key-authenticated OpenCorporates API v0.4 JSON with clean public HTML attributes fallback when unconfigured.","domains":["opencorporates.com","www.opencorporates.com","api.opencorporates.com"],"auth_mode":"key","exampleUrls":["https://opencorporates.com/companies/us_de/3857729","https://api.opencorporates.com/v0.4/companies/us_de/3857729"],"routes":[{"match":{"hosts":["opencorporates.com","www.opencorporates.com"],"exactSegments":false,"pathSegments":["companies",{"param":"jurisdiction","charset":"alnum_dash","minLen":2,"maxLen":16},{"param":"companyNumber","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.opencorporates.com/v0.4/companies/{jurisdiction}/{companyNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}},{"match":{"hosts":["api.opencorporates.com"],"pathPrefix":"/v0.4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}}],"htmlRoutes":[{"id":"opencorporates","match":{"hosts":["opencorporates.com","www.opencorporates.com"],"pathPrefix":"/companies/","exactSegments":false},"mode":"opencorporates_html"}]},{"id":"opendatasoft","name":"Opendatasoft Open Data Portals (Explore API v2.1)","category":"public-records","description":"Universal Opendatasoft adapter: /explore/dataset// pages and /api/explore/v2.1/catalog/datasets(/) upgrade to dataset metadata (publisher, license, record count, field schema, records/CSV API links); /records URLs render rows as a table while enforcing strict robots.txt compliance.","domains":["public.opendatasoft.com","*.opendatasoft.com","data.townofcary.org","data.jerseycitynj.gov"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://public.opendatasoft.com/explore/dataset/us-state-boundaries/","https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/us-state-boundaries/records?limit=3&select=name,stusab,region,division","https://data.townofcary.org/api/explore/v2.1/catalog/datasets?limit=3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160},"records"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_records_json"}},{"match":{"pathEquals":["/api/explore/v2.1/catalog/datasets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":false,"pathSegments":["explore","dataset",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}}]},{"id":"openfda","name":"openFDA Recalls, Labels & Adverse Events API","category":"research-health","description":"Formats keyless api.fda.gov JSON endpoints (drug/food/device enforcement recalls, drug labels, and adverse events) into clean Markdown tables.","domains":["api.fda.gov"],"exampleUrls":["https://api.fda.gov/food/enforcement.json?limit=5"],"match":{"pathSuffix":".json","pathSegments":[{"param":"endpointLabel","charset":"safe_subpath","greedy":true,"stripSuffix":".json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["results"],"vars":{"resultsCount":{"paths":["results"],"format":"array_len"},"total":{"paths":["meta.results.total"],"format":"int_comma","fallbackTemplate":"{resultsCount}"},"isRecall":{"paths":["results.0.recall_number","results.0.reason_for_recall"]}},"titleTemplate":"openFDA {endpointLabel} ({resultsCount} of {total} records)","sections":[{"heading":"","whenVar":"isRecall","arrayPath":"results","limit":25,"columns":[{"header":"Recall #","paths":["recall_number"],"code":true},{"header":"Class","paths":["classification"]},{"header":"Status","paths":["status"]},{"header":"Firm","paths":["recalling_firm"]},{"header":"Reason","paths":["reason_for_recall"]}]},{"heading":"","unlessVar":"isRecall","subsectionsArrayPath":"results","limit":10,"subsectionHeadingTemplate":"{recHeading}","subsectionSubkeys":["indications_and_usage","warnings","boxed_warning","dosage_and_administration","adverse_reactions"],"itemVars":{"brand":{"paths":["openfda.brand_name.0"]},"generic":{"paths":["openfda.generic_name.0"]},"genericParens":{"template":"({generic})","whenVars":["generic"]},"brandAndGeneric":{"template":"{brand} {genericParens}","whenVars":["brand","genericParens"],"fallbackVar":"brand"},"brandOrGeneric":{"template":"{brandAndGeneric}","whenVars":["brandAndGeneric"],"fallbackVar":"genericParens"},"recFallback":{"template":"Record #{index1}"},"recHeading":{"template":"{brandOrGeneric}","whenVars":["brandOrGeneric"],"fallbackVar":"recFallback"}}}]}},{"id":"openfoodfacts","name":"Open Food Facts Products","category":"commerce-social","description":"Extracts barcode, brand, Nutri-Score, NOVA group, ingredients, and nutrition facts from world.openfoodfacts.org/product/ (respecting robots.txt on /api).","domains":["world.openfoodfacts.org","openfoodfacts.org","*.openfoodfacts.org"],"exampleUrls":["https://world.openfoodfacts.org/product/3017620422003"],"htmlRoutes":[{"id":"openfoodfacts","match":{"exactSegments":false,"pathSegments":["product",{"param":"barcode","charset":"digits","minLen":6,"maxLen":16}]},"mode":"dom","jsonLdTypes":["Product"],"requireVars":["title"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"cssText":["h1"]},"brand":{"jsonLdPaths":["brand.name","brand"]},"nutriscore":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"Nutri-Score\\s*([A-E])\\b","group":1,"transform":"upper"}},"nova":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"NOVA\\s*([1-4])\\b","group":1}},"ingredientsLd":{"jsonLdPaths":["description"]},"ingredients":{"cssText":["#panel_ingredients_content"],"fallbackVar":"ingredientsLd"},"descShort":{"fallbackVar":"ingredients","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Barcode (GTIN)","template":"`{barcode}`"},{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"Nutri-Score","template":"**{nutriscore}**","whenVar":"nutriscore"},{"label":"NOVA Food Processing Group","template":"{nova}","whenVar":"nova"}],"sections":[{"heading":"Ingredients & Summary","textVar":"ingredients"}],"appendCurrentMdDelta":{"baseVar":"ingredients","minExtraChars":120}}]},{"id":"opengov-portals","name":"OpenGov Transparency & Procurement Portals","category":"public-records","description":"Extracts fiscal transparency datasets, window.gon/Zeus hydration, and public API data from OpenGov portals while classifying Cloudflare challenges honestly.","domains":["*.opengov.com"],"auth_mode":"pub","exampleUrls":["https://torranceca.opengov.com/api/v1/reports","https://torranceca.opengov.com/transparency","https://sanbernardinoca.opengov.com/transparency"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v1/"},{"pathPrefix":"/api/v2/"},{"pathPrefix":"/transparency/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opengov_json"}}],"htmlRoutes":[{"id":"opengov-portals","match":{"exactSegments":false},"mode":"opengov_html"}]},{"id":"openrouter","name":"OpenRouter AI Model Catalog","category":"genai","description":"Upgrades OpenRouter model pages to keyless /api/v1/models specs (context window, token pricing, modalities, and tool support).","domains":["openrouter.ai"],"exampleUrls":["https://openrouter.ai/anthropic/claude-sonnet-5.5","https://openrouter.ai/models/qwen/qwen4-max"],"match":{"anyOf":[{"exactSegments":true,"pathSegments":["models",{"param":"org","charset":"pkg"},{"param":"slug","charset":"model_slug"}]},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["docs","rankings","chat","activity","settings","keys","credits","privacy","terms","about","blog","pricing","providers"]},{"param":"slug","charset":"model_slug"}]}]},"twin":{"fetchUrl":"https://openrouter.ai/api/v1/models","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{org}/{slug}","ignoreCase":true},"vars":{"id":{"paths":["id"]},"name":{"paths":["name"],"fallbackTemplate":"{org}/{slug}","trim":true},"ctxLen":{"paths":["context_length"],"format":"int_comma"},"maxOut":{"paths":["top_provider.max_completion_tokens"],"format":"int_comma"},"promptPrice":{"paths":["pricing.prompt"],"format":"usd_per_million_tokens"},"compPrice":{"paths":["pricing.completion"],"format":"usd_per_million_tokens"},"modality":{"paths":["architecture.modality"]},"params":{"paths":["supported_parameters"],"join":"`, `","limit":14},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"Model ID","template":"`{id}`"},{"label":"Context Window","template":"{ctxLen} tokens","whenVar":"ctxLen"},{"label":"Max Output","template":"{maxOut} tokens","whenVar":"maxOut"},{"label":"Input Pricing","template":"{promptPrice}","whenVar":"promptPrice"},{"label":"Output Pricing","template":"{compPrice}","whenVar":"compPrice"},{"label":"Modality","template":"`{modality}`","whenVar":"modality"},{"label":"Supported Parameters","template":"`{params}`","whenVar":"params"}],"sections":[{"heading":"Description","textVar":"desc"}]}},{"id":"openstreetmap","name":"OpenStreetMap (Nominatim & Overpass)","category":"public-records","description":"OpenStreetMap Nominatim geocoding and Overpass API JSON adapter enforcing strict 1 req/s pacing, identifying User-Agent, and strict robots.txt politeness.","domains":["www.openstreetmap.org","openstreetmap.org","nominatim.openstreetmap.org","overpass-api.de"],"auth_mode":"pub","user_agent_profile":"openstreetmap","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.openstreetmap.org/about","https://www.openstreetmap.org/copyright"],"routes":[{"match":{"hosts":["nominatim.openstreetmap.org"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/reverse"},{"pathPrefix":"/lookup"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"jsonv2"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"openstreetmap_json"}},{"match":{"hosts":["overpass-api.de"],"pathPrefix":"/api/interpreter"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openstreetmap_json"}}],"htmlRoutes":[{"id":"openstreetmap","match":{"hosts":["www.openstreetmap.org","openstreetmap.org"],"exactSegments":false},"mode":"openstreetmap_html"}]},{"id":"oracle-commerce","name":"Oracle Commerce Cloud (ccstore)","category":"commerce-social","description":"Extracts Oracle Commerce Cloud /ccstore/v1 and /ccstoreui/v1 product and search JSON endpoints plus storefront HTML/companion twins.","domains":["www.dollartree.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.dollartree.com/ccstore/v1/products/805937","https://www.dollartree.com/ccstore/v1/search?Ntt=bag"],"routes":[{"match":{"pathSegments":["ccstore","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathSegments":["ccstoreui","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathEquals":["/ccstore/v1/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}}],"htmlRoutes":[{"id":"oracle-commerce","match":{"exactSegments":false},"mode":"oracle_commerce_html"}]},{"id":"os-package-pack","name":"OS Package Pack (Flathub, Snapcraft, AUR, Winget, Chocolatey)","category":"developer","description":"Extracts OS package metadata and newest stable versions from Flathub, Snapcraft (Snap-Device-Series: 16), Arch AUR RPC v5, Winget, and Chocolatey.","domains":["flathub.org","snapcraft.io","api.snapcraft.io","aur.archlinux.org","winget.run","api.winget.run","community.chocolatey.org"],"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://flathub.org/apps/org.mozilla.firefox","https://snapcraft.io/firefox","https://aur.archlinux.org/packages/yay","https://winget.run/pkg/Microsoft/PowerToys"],"routes":[{"match":{"hosts":["flathub.org"],"pathPrefix":"/api/v2/appstream/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["flathub.org"],"exactSegments":false,"pathSegments":["apps",{"param":"appId","charset":"pkg","minLen":3,"maxLen":160}]},"twin":{"fetchUrl":"https://flathub.org/api/v2/appstream/{appId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["api.snapcraft.io"],"pathPrefix":"/v2/snaps/info/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://api.snapcraft.io/v2/snaps/info/{snap}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["aur.archlinux.org"],"pathPrefix":"/rpc/v5/info"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["aur.archlinux.org"],"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://aur.archlinux.org/rpc/v5/info?arg[]={pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["api.winget.run"],"pathPrefix":"/v2/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["winget.run"],"exactSegments":false,"pathSegments":["pkg",{"param":"publisher","charset":"pkg","minLen":1,"maxLen":120},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.winget.run/v2/packages/{publisher}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/api/v2/Packages"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"chocolatey_xml"}}],"htmlRoutes":[{"id":"os-package-pack","match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"mode":"snapcraft_html"},{"id":"os-package-pack","match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/packages/","exactSegments":false},"mode":"chocolatey_html"}]},{"id":"osv-ghsa","name":"OSV & GitHub Security Advisories","category":"developer","description":"Upgrades osv.dev/vulnerability/ and github.com/advisories/GHSA-* pages to the keyless api.osv.dev/v1/vulns JSON API with canonical lowercase GHSA IDs and bounded affected-version slices.","domains":["osv.dev","www.osv.dev","github.com"],"exampleUrls":["https://osv.dev/vulnerability/GHSA-jfh8-c2jp-5v3q","https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"],"routes":[{"match":{"hosts":["osv.dev","www.osv.dev"],"exactSegments":false,"pathSegments":["vulnerability",{"param":"vulnId","charset":"url_seg","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/{vulnId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (OSV Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl"]}},{"match":{"hosts":["github.com"],"exactSegments":true,"pathPrefix":"/advisories/GHSA-","pathSegments":["advisories",{"param":"ghsaBody","stripPrefix":"GHSA-","charset":"alnum_dash","minLen":14,"maxLen":14,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/GHSA-{ghsaBody}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"ghsaUrl":{"template":"https://github.com/advisories/GHSA-{ghsaBody}","requireHttps":true},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (GitHub Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl","ghsaUrl"]}}]},{"id":"outdoor-retail-specs","name":"Outdoor & Cycling Retail Spec Extractor","category":"commerce-social","description":"Strictly rate-limited and robots-enforced HTML adapter for REI, Backcountry, and Competitive Cyclist product pages and technical specification tables.","domains":["rei.com","www.rei.com","backcountry.com","www.backcountry.com","competitivecyclist.com","www.competitivecyclist.com"],"auth_mode":"html","min_interval_ms":5000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.rei.com/product/230456/co-op-cycles-adv-22-bike","https://www.backcountry.com/santa-cruz-bicycles-hightower-c-s-mountain-bike","https://www.competitivecyclist.com/cervelo-caledonia-105-road-bike"],"htmlRoutes":[{"id":"outdoor-retail-specs","match":{"exactSegments":false},"mode":"outdoor_retail_specs_html"}]},{"id":"pacer-case-locator","name":"PACER Case Locator","category":"public-records","description":"Extracts public PACER informational and case-finder pages on pacer.uscourts.gov while honestly classifying login-gated portals (pcl.uscourts.gov, pacer.login.uscourts.gov) as login_wall.","domains":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"],"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://pacer.uscourts.gov/find-case","https://pacer.uscourts.gov/","https://pcl.uscourts.gov/pcl/index.jsf"],"htmlRoutes":[{"id":"pacer-case-locator","match":{"hosts":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"]},"mode":"pacer_case_locator_html"}]},{"id":"packagist","name":"Packagist PHP Composer Registry","category":"developer","description":"Upgrades packagist.org PHP Composer package pages to their official .json metadata feed.","domains":["packagist.org","www.packagist.org"],"exampleUrls":["https://packagist.org/packages/monolog/monolog"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"vendor","charset":"pkg"},{"param":"pkg","charset":"pkg"}]},"twin":{"fetchUrl":"https://packagist.org/packages/{vendor}/{pkg}.json","kind":"json","accept":"application/json"},"extract":{"rootPath":"package","requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"repo":{"paths":["repository"]},"stableVer":{"paths":["versions"],"firstNonMatchingKey":"dev"},"license":{"dynamicKeyPath":{"base":"versions","keyVar":"stableVer","subPath":"license"},"join":", "}},"titleTemplate":"{name} {stableVer} (Composer)","titleWhenVar":"stableVer","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`composer require {name}`"},{"label":"Latest Version","template":"`{stableVer}`","whenVar":"stableVer"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"paradox-olivia","name":"Paradox Olivia Career Sites","category":"jobs","description":"Extracts JobPosting JSON-LD and __NEXT_DATA__ hydration job listings from Paradox Olivia career sites (*.paradox.ai, jobs.mchire.com, and custom brand portals via universalEngine).","domains":["*.paradox.ai","jobs.mchire.com","www.mchire.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.fedex.com/account-manager-ii/job/P25-397759-1","https://jobs.mchire.com/jobs"],"htmlRoutes":[{"id":"paradox-olivia","mode":"paradox_olivia_html","match":{"exactSegments":false}}]},{"id":"peertube","name":"PeerTube Federated Video Platform (Universal Engine)","category":"commerce-social","description":"Upgrades PeerTube video permalinks (/w/{videoId} and /videos/watch/{videoId}) and /api/v1/videos/* endpoints via JSON API with VideoObject HTML fallback.","domains":["video.blender.org","tilvids.com","framatube.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6","https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6","https://tilvids.com/api/v1/videos/6PsLUGoGiV9isoaHmht6Eu"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64},"captions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["w",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["videos","watch",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}}],"htmlRoutes":[{"id":"peertube","match":{"exactSegments":false},"mode":"peertube_html"}]},{"id":"pinpoint","name":"Pinpoint ATS Job Boards","category":"jobs","description":"Upgrades .pinpointhq.com career portals to /postings.json with compensation, responsibilities, and workplace types.","domains":["*.pinpointhq.com"],"exampleUrls":["https://workwithus.pinpointhq.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["postings",{"param":"postId","charset":"pkg"}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{postId}","endsWithField":"url","endsWithTemplate":"{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name"],"trim":true},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin} – {compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"compMaxOnly":{"template":"{cur} – {compMax}","whenVars":["compMax"]},"compSub":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly"},"comp":{"template":"{compSub}","whenVars":["compSub"],"fallbackVar":"compMaxOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"resp":{"paths":["key_responsibilities"],"format":"html_to_md"},"skills":{"paths":["skills_knowledge_expertise"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Compensation","template":"{comp}","whenVar":"comp"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Key Responsibilities","textVar":"resp"},{"heading":"Skills & Expertise","textVar":"skills"},{"heading":"Benefits","textVar":"benefits"}],"fallbackExtract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}},{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs","postings"],"optional":true}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}]},{"id":"pkg-go-dev","name":"Go Packages (pkg.go.dev)","category":"developer","description":"Extracts Go module README and API documentation sections cleanly from pkg.go.dev.","domains":["pkg.go.dev"],"exampleUrls":["https://pkg.go.dev/github.com/coder/websocket"],"htmlRoutes":[{"match":{"minSegments":1},"mode":"dom","vars":{"title":{"cssText":["title"],"stripSuffix":"- Go Packages"},"readme":{"cssHtmlToMd":["div.UnitReadme-content"]},"docs":{"cssHtmlToMd":["div.Documentation-content"],"replaceAll":{"from":"¶","to":""}}},"requireBulletsOrVars":["readme","docs"],"titleTemplate":"{title}","sections":[{"heading":"Overview / README","textVar":"readme"},{"heading":"Documentation","textVar":"docs"}]}]},{"id":"pm-listing-widgets","name":"Property Management Listing Widgets (Buildium / Propertyware / RentManager)","category":"commerce-social","description":"Extracts public rental unit listings, rent pricing, bed/bath counts, and detail links from Buildium (managebuilding.com), Propertyware, and RentManager portals.","domains":["*.managebuilding.com","*.propertyware.com","*.rentmanager.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://portland.managebuilding.com/Resident/public/rentals","https://hannibalrentals.managebuilding.com/Resident/public/rentals"],"htmlRoutes":[{"id":"pm-listing-widgets","match":{"exactSegments":false},"mode":"pm_listing_widgets_html"}]},{"id":"podcasts-apple-lookup","name":"Apple Podcasts & iTunes Lookup","category":"commerce-social","description":"Extracts iTunes Lookup JSON for podcast metadata and Apple Podcasts HTML schema:show + serialized-server-data without cross-domain twins.","domains":["podcasts.apple.com","itunes.apple.com"],"auth_mode":"pub","exampleUrls":["https://itunes.apple.com/lookup?id=1200361736&entity=podcast","https://podcasts.apple.com/us/podcast/the-daily/id1200361736"],"routes":[{"match":{"hosts":["itunes.apple.com"],"pathEquals":["/lookup"],"queryParams":[{"name":"id","param":"itunesId","charset":"digits","minLen":3,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"apple_podcast_lookup_json"}}],"htmlRoutes":[{"id":"podcasts-apple-lookup","match":{"hosts":["podcasts.apple.com"],"exactSegments":false},"mode":"podcasts_apple_html"}]},{"id":"polymarket","name":"Polymarket Prediction Markets","category":"finance","description":"Upgrades polymarket.com/event/ pages to gamma-api.polymarket.com JSON with live outcome probabilities, volume, and liquidity.","domains":["polymarket.com","www.polymarket.com"],"exampleUrls":["https://polymarket.com/event/fed-decision-in-december"],"match":{"exactSegments":false,"pathSegments":["event",{"param":"slug","charset":"alnum_dash","minLen":2,"maxLen":140}]},"twin":{"fetchUrl":"https://gamma-api.polymarket.com/events?slug={slug}","kind":"json","accept":"application/json"},"extract":{"unwrapFirstArrayElement":true,"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"vol":{"paths":["volume"],"format":"usd_compact"},"liq":{"paths":["liquidity"],"format":"usd_compact"},"endDate":{"paths":["endDate"],"sliceMax":10},"status":{"paths":["closed"],"format":"bool_map","trueValue":"Closed / Resolved","falseValue":"Active"}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Status","template":"{status}"},{"label":"Total Volume","template":"{vol}","whenVar":"vol"},{"label":"Liquidity","template":"{liq}","whenVar":"liq"},{"label":"End Date","template":"{endDate}","whenVar":"endDate"}],"sections":[{"heading":"Market Odds","arrayPath":"markets","limit":25,"columns":[{"header":"Market / Outcome","paths":["groupItemTitle","question"],"fallbackVar":"title"},{"header":"Implied Probability","format":"paired_percent","outcomesField":"outcomes","pricesField":"outcomePrices","defaultOutcomes":["Yes","No"]},{"header":"Volume","paths":["volume"],"format":"usd_compact"}]},{"heading":"Resolution Rules","textVar":"desc"}]}},{"id":"popmenu","name":"Popmenu Restaurant Menus","category":"commerce-social","description":"Extracts restaurant menu sections, dishes, descriptions, and prices from Popmenu DOM, Apollo state, and Menu JSON-LD while rejecting Cloudflare challenge interstitials.","domains":["popmenu.com","www.popmenu.com","*.popmenu.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.popmenu.com/"],"htmlRoutes":[{"id":"popmenu","match":{"exactSegments":false},"mode":"popmenu_html"}]},{"id":"powerreviews","name":"PowerReviews Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for PowerReviews Read API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["readservices-b2c.powerreviews.com","www.skechers.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://readservices-b2c.powerreviews.com/m/8162/l/en_US/product/177197/reviews?apikey=412df53d-8be4-4d9e-8657-e8c846f08b1d"],"routes":[{"match":{"hosts":["readservices-b2c.powerreviews.com"],"pathSegments":["m",{"param":"merchantId","charset":"alnum_dash","minLen":1,"maxLen":40},"l",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":24},"product",{"param":"pageId","charset":"pkg","minLen":1,"maxLen":120},"reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"powerreviews_reviews"}}],"htmlRoutes":[{"id":"powerreviews","match":{"exactSegments":false},"mode":"powerreviews_html"}]},{"id":"prestashop","name":"PrestaShop Storefronts","category":"commerce-social","description":"Extracts PrestaShop storefront JSON-LD, data-product attributes, features tables, and ?action=quickview AJAX JSON payloads.","domains":["www.esprit-barbecue.fr"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.esprit-barbecue.fr/barbecues/3364-master-touch-gbs-premium-e-5770-noir-weber-0077924129551.html"],"routes":[{"match":{"anyOf":[{"hosts":["www.esprit-barbecue.fr"],"queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"}]},{"pathSuffix":".html","queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"},{"name":"ajax","param":"ajax","allowValues":["1"],"charset":"digits"}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"prestashop_quickview"}}],"htmlRoutes":[{"id":"prestashop","match":{"exactSegments":false},"mode":"prestashop_html"}]},{"id":"primegov","name":"Rock Solid / Granicus PrimeGov Portals","category":"public-records","description":"Extracts upcoming municipal meetings and agendas from PrimeGov PublicPortal API and HTML views while strictly honoring robots.txt.","domains":["*.primegov.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://okc.primegov.com/api/v2/PublicPortal/ListUpcomingMeetings","https://okc.primegov.com/public/portal"],"routes":[{"match":{"pathPrefix":"/api/v2/PublicPortal/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}},{"match":{"pathEquals":["/public/portal","/public/portal/"]},"twin":{"fetchUrl":"https://{host}/api/v2/PublicPortal/ListUpcomingMeetings","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}}],"htmlRoutes":[{"id":"primegov","match":{"exactSegments":false},"mode":"primegov_html"}]},{"id":"product-feed-discovery","name":"Storefront Product Feed Discovery","category":"commerce-social","description":"Universal XML/Atom/RSS parser for storefront product discovery endpoints (/products.atom, /feed/, and /sitemap_products_*.xml).","domains":["www.gymshark.com","henryrose.com","janji.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.gymshark.com/sitemap_products_1.xml","https://henryrose.com/sitemap_products_1.xml?from=1645692747866&to=15498254843994","https://janji.com/sitemap_products_1.xml?from=310052787&to=15293477683563"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/products.atom","/feed","/feed/"]},{"pathPrefix":"/sitemap_products_","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":4194304},"extract":{"textMode":"product_feed_discovery_xml"}}]},{"id":"propublica-nonprofits","name":"ProPublica Nonprofit Explorer","category":"public-records","description":"Upgrades ProPublica Nonprofit Explorer organization pages to keyless Form 990 JSON API v2 with HTML fallback.","domains":["projects.propublica.org"],"auth_mode":"pub","exampleUrls":["https://projects.propublica.org/nonprofits/organizations/521693387","https://projects.propublica.org/nonprofits/api/v2/organizations/521693387.json"],"routes":[{"match":{"hosts":["projects.propublica.org"],"exactSegments":false,"pathSegments":["nonprofits","organizations",{"param":"ein","charset":"digits","minLen":8,"maxLen":10}]},"twin":{"fetchUrl":"https://projects.propublica.org/nonprofits/api/v2/organizations/{ein}.json","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}},{"match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}}],"htmlRoutes":[{"id":"propublica-nonprofits","match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/","exactSegments":false},"mode":"propublica_nonprofit_html"}]},{"id":"pubchem","name":"PubChem Chemical Compounds (NCBI)","category":"research-health","description":"Upgrades pubchem.ncbi.nlm.nih.gov/compound/ to NCBI PUG-REST compound properties + pharmacological descriptions (with HTML JSON-LD fallback).","domains":["pubchem.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubchem.ncbi.nlm.nih.gov/compound/2244"],"routes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"cid","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{cid}/JSON/?heading=Names+and+Identifiers","kind":"json","accept":"application/json"},"extract":{"rootPath":"Record","requireFields":["RecordTitle"],"vars":{"cidVal":{"paths":["RecordNumber"],"fallbackTemplate":"{cid}"},"recTitle":{"paths":["RecordTitle"],"trim":true,"fallbackTemplate":"Compound {cidVal}"},"formula":{"format":"pubchem_toc","tocHeading":"Molecular Formula"},"iupac":{"format":"pubchem_toc","tocHeading":"IUPAC Name"},"inchiKey":{"format":"pubchem_toc","tocHeading":"InChIKey"},"canonicalSmiles":{"format":"pubchem_toc","tocHeading":"Canonical SMILES"},"smilesRaw":{"format":"pubchem_toc","tocHeading":"SMILES"},"smiles":{"template":"{smilesRaw}","whenVars":["smilesRaw"],"fallbackVar":"canonicalSmiles"},"cas":{"format":"pubchem_toc","tocHeading":"CAS"},"desc":{"format":"pubchem_toc","tocHeading":"Record Description"},"descShort":{"format":"pubchem_toc","tocHeading":"Record Description","sliceMax":260}},"titleTemplate":"{recTitle} (PubChem CID {cidVal})","descriptionVar":"descShort","bullets":[{"label":"PubChem CID","template":"`{cidVal}`"},{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"CAS Number","template":"`{cas}`","whenVar":"cas"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"linkTemplates":["https://pubchem.ncbi.nlm.nih.gov/compound/{cidVal}"]}}],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"slug","charset":"url_seg"}]},"mode":"dom","jsonLdTypes":["MolecularEntity","ChemicalSubstance"],"requireVars":["title"],"requireBulletsOrVars":["desc"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*\\|\\s*C\\d+.*?\\s*-\\s*PubChem$"},"formula":{"jsonLdPaths":["molecularFormula"]},"weightValObj":{"jsonLdPaths":["molecularWeight.value"]},"weightFromObj":{"template":"{weightValObj} g/mol","whenVars":["weightValObj"]},"weight":{"jsonLdPaths":["molecularWeight"],"fallbackVar":"weightFromObj"},"iupac":{"jsonLdPaths":["iupacName"]},"inchiKey":{"jsonLdPaths":["inChIKey"]},"smiles":{"jsonLdPaths":["smiles"],"limit":1},"desc":{"metaKeys":["description"]},"descShort":{"metaKeys":["description"],"sliceMax":260}},"titleTemplate":"{title} (PubChem)","descriptionVar":"descShort","bullets":[{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"Molecular Weight","template":"{weight}","whenVar":"weight"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"appendCurrentMdDelta":{"minExtraChars":200}}]},{"id":"public-bid-portals","name":"Public Procurement & Bid Portals (Bonfire, BidNet, Periscope)","category":"public-records","description":"Extracts public municipal solicitations and RFPs from BidNet Direct, Bonfire, and Periscope S2G while classifying login-gated bid details as login_wall.","domains":["*.bonfirehub.com","www.bidnetdirect.com","bidnetdirect.com","www.bidsync.com","app.periscopeholdings.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bidnetdirect.com/colorado/cityandcountyofdenverdoti/solicitations/open-bids?selectedContent=BUYER","https://www.bidnetdirect.com/colorado/solicitations/open-bids/W-38th-Ave-Multimodal-Improvements-Design-Services/0000443656?purchasingGroupId=8409951&origin=2"],"htmlRoutes":[{"id":"public-bid-portals","match":{"exactSegments":false},"mode":"public_bid_html"}]},{"id":"public-booking","name":"Public Booking (Calendly & Acuity Scheduling)","category":"commerce-social","description":"Extracts public Calendly event types via queryless /api/booking/profiles/{profile}/event_types (honoring Disallow: /*?*) and Calendly/Acuity HTML booking pages, rejecting unavailability_reason error-only payloads.","domains":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://calendly.com/api/booking/profiles/demo/event_types","https://calendly.com/demo","https://calendly.com/calendly-sales"],"routes":[{"match":{"hosts":["calendly.com","www.calendly.com"],"exactSegments":true,"pathSegments":[{"param":"profile","charset":"slug","minLen":2,"maxLen":80,"reserved":["app","api","d","s","login","signup","pricing","features","solutions","enterprise","integrations","resources","blog","about","careers","legal","privacy","terms","help","abuse_reports","error","404","not-found"]}]},"twin":{"fetchUrl":"https://calendly.com/api/booking/profiles/{profile}/event_types","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}},{"match":{"hosts":["calendly.com","www.calendly.com"],"pathPrefix":"/api/booking/profiles/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}}],"htmlRoutes":[{"id":"public-booking","mode":"booking_html","match":{"hosts":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"exactSegments":false}}]},{"id":"public-forms","name":"Public Forms (Typeform & Jotform)","category":"commerce-social","description":"Extracts public Typeform field definitions via api.typeform.com/forms/{formId} or window.rendererData HTML and Jotform forms via HTML field labels/configs, rejecting typeform-incorrectURL soft-404 redirects.","domains":["typeform.com","www.typeform.com","form.typeform.com","api.typeform.com","jotform.com","www.jotform.com","form.jotform.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://tfsales.typeform.com/to/PxcVKQGb","https://api.typeform.com/forms/PxcVKQGb","https://form.jotform.com/240912145384959"],"routes":[{"match":{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["www","api","admin","help","developer","login","auth"]},"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["typeform.com","www.typeform.com"],"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["api.typeform.com"],"exactSegments":true,"pathSegments":["forms",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}}],"htmlRoutes":[{"id":"public-forms","mode":"typeform_html","match":{"anyOf":[{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["api","admin","login","auth"]},"exactSegments":false},{"hosts":["typeform.com","www.typeform.com","form.typeform.com"],"exactSegments":false}]}},{"id":"public-forms","mode":"jotform_html","match":{"anyOf":[{"hosts":["jotform.com","www.jotform.com","form.jotform.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".jotform.com","param":"org","reserved":["api","www","form","login","auth"]},"exactSegments":false}]}}]},{"id":"public-job-feeds","name":"Public Open Job Feeds (WWR, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow & RemoteOK)","category":"jobs","description":"Formats robots.txt-allowed keyless public job feeds (We Work Remotely RSS, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow, and RemoteOK) into clean job tables.","domains":["weworkremotely.com","www.weworkremotely.com","himalayas.app","www.himalayas.app","www.workingnomads.com","workingnomads.com","www.themuse.com","themuse.com","jobicy.com","www.arbeitnow.com","arbeitnow.com","remoteok.com"],"exampleUrls":["https://weworkremotely.com/remote-jobs.rss","https://himalayas.app/jobs/api?limit=50","https://www.workingnomads.com/api/exposed_jobs/","https://www.themuse.com/api/public/jobs?page=1","https://jobicy.com/api/v2/remote-jobs?count=20","https://remoteok.com/api"],"routes":[{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathSuffix":".rss"},"twin":{"id":"weworkremotely-feed","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathEquals":["/remote-jobs","/remote-jobs/"]},"twin":{"id":"weworkremotely-feed","fetchUrl":"https://weworkremotely.com/remote-jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs/api"},"twin":{"id":"himalayas-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs"},"twin":{"id":"himalayas-feed","fetchUrl":"https://himalayas.app/jobs/api?limit=50","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathPrefix":"/api/exposed_jobs"},"twin":{"id":"workingnomads-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"workingnomads-feed","fetchUrl":"https://www.workingnomads.com/api/exposed_jobs/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.themuse.com","themuse.com"],"pathPrefix":"/api/public/jobs"},"twin":{"id":"themuse-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"resCount":{"paths":["results"],"format":"array_len"},"totalFmt":{"paths":["total"],"format":"int_comma","fallbackTemplate":"{resCount}"}},"requireVars":["resCount"],"titleTemplate":"The Muse Public Jobs ({resCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"results","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"co":{"paths":["company.name"],"trim":true,"default":"-"},"locs":{"paths":["locations"],"subField":"name","join":"; ","default":"-"},"lUrl":{"paths":["refs.landing_page"],"requireHttps":true},"pub":{"paths":["publication_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({lUrl})","whenVars":["lUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["lUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{co}"},{"header":"Locations","template":"{locs}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["jobicy.com"],"pathPrefix":"/api/v2/remote-jobs"},"twin":{"id":"jobicy-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"anyOf":[{"hosts":["jobicy.com"],"pathEquals":["/jobs-rss-feed","/jobs-rss-feed/"]},{"hosts":["jobicy.com"],"pathPrefix":"/remote-"}]},"twin":{"id":"jobicy-feed","fetchUrl":"https://jobicy.com/api/v2/remote-jobs?count=30","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathPrefix":"/api/job-board-api"},"twin":{"id":"arbeitnow-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"arbeitnow-feed","fetchUrl":"https://www.arbeitnow.com/api/job-board-api","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"anyOf":[{"hosts":["remoteok.com"],"pathSegments":[]},{"hosts":["remoteok.com"],"pathSegments":["api"]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs/","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]}]},"twin":{"id":"remoteok-feed","fetchUrl":"https://remoteok.com/api","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"RemoteOK Remote Jobs ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","filter":{"requireField":"position","tagFilterParam":{"param":"catTag","skipIfEquals":"dev","tagsField":"tags"}},"itemVars":{"pos":{"paths":["position"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"salMin":{"paths":["salary_min"],"excludeEquals":"0"},"salMax":{"paths":["salary_max"],"excludeEquals":"0"},"salRange":{"template":"${salMin}–${salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"${salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{pos}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"pos"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Salary","template":"{sal}"}]}]}}]},{"id":"public-share-links","name":"Public Share Links (Google Docs/Sheets, OneDrive, Dropbox, Box)","category":"commerce-social","description":"Extracts public Google Sheets via same-origin /gviz/tq?tqx=out:csv (avoiding 307 cross-domain /export redirects) and public Google Docs /pub, OneDrive /embed, Dropbox, and Box share links while strictly enforcing robots.txt.","domains":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/gviz/tq?tqx=out:csv","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/htmlview"],"routes":[{"match":{"hosts":["docs.google.com"],"anyOf":[{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]}]},{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},{"param":"view","allowValues":["edit","view","htmlview","preview","copy"]}]}]},"twin":{"fetchUrl":"https://docs.google.com/spreadsheets/d/{sheetId}/gviz/tq?tqx=out:csv","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}},{"match":{"hosts":["docs.google.com"],"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},"gviz","tq"],"queryParams":[{"name":"tqx","param":"tqx","charset":"url_seg","allowValues":["out:csv"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}}],"htmlRoutes":[{"id":"public-share-links","mode":"public_share_html","match":{"hosts":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"exactSegments":false}}]},{"id":"pubmed-pmc","name":"PubMed & PubMed Central (NCBI / Europe PMC)","category":"research-health","description":"Upgrades PubMed & PMC URLs to robots.txt-allowed Europe PMC REST JSON/JATS XML (with NCBI HTML fallback).","domains":["pubmed.ncbi.nlm.nih.gov","pmc.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubmed.ncbi.nlm.nih.gov/31452104/","https://pmc.ncbi.nlm.nih.gov/articles/PMC7095418/"],"routes":[{"match":{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},"twin":{"id":"pubmed-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=EXT_ID:{pmid}%20AND%20SRC:MED&resultType=core&format=json","kind":"json","accept":"application/json"},"extract":{"rootPath":"resultList.result.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags","stripSuffix":".","trim":true},"authorString":{"paths":["authorString"],"trim":true},"journalTitle":{"paths":["journalInfo.journal.title"]},"pubYear":{"paths":["pubYear"]},"journalFull":{"template":"{journalTitle} ({pubYear})","whenVars":["journalTitle","pubYear"],"fallbackVar":"journalTitle"},"doi":{"paths":["doi"]},"doiUrl":{"template":"https://doi.org/{doi}","whenVars":["doi"]},"pmcid":{"paths":["pmcid"]},"pmcUrl":{"template":"https://pmc.ncbi.nlm.nih.gov/articles/{pmcid}/","whenVars":["pmcid"]},"citedBy":{"paths":["citedByCount"],"format":"int_comma"},"abstractText":{"paths":["abstractText"],"format":"strip_tags"}},"titleTemplate":"{title}","authorVar":"authorString","publishedTimeVar":"pubYear","bullets":[{"label":"PMID","template":"`{pmid}`"},{"label":"Authors","template":"{authorString}","whenVar":"authorString"},{"label":"Journal","template":"{journalFull}","whenVar":"journalFull"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text (PMC)","template":"[{pmcid}]({pmcUrl})","whenVar":"pmcid"},{"label":"Cited By","template":"{citedBy}","whenVar":"citedBy"}],"sections":[{"heading":"Abstract","textVar":"abstractText"}],"linksVars":["doiUrl","pmcUrl"]}},{"match":{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]},"twin":{"id":"pmc-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/{pmcid}/fullTextXML","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"jats_article"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]}]},"mode":"dom","requireVars":["title","body"],"vars":{"title":{"cssText":["h1.heading-title","h1"]},"authors":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":15},"authorsShort":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":4},"doi":{"cssText":["span.citation-doi"]},"body":{"cssHtmlToMd":["article.article","div#abstract","div#eng-abstract","section.abstract"]}},"titleTemplate":"{title}","authorVar":"authorsShort","bullets":[{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Citation","template":"{doi}","whenVar":"doi"}],"bodyVar":"body","bodyFallbackHeading":"Abstract"}]},{"id":"pypi-project","name":"PyPI Python Package Index","category":"developer","description":"Extracts PyPI package install command, summary, and project README from pypi.org/project// (respecting robots.txt on /json).","domains":["pypi.org","www.pypi.org"],"exampleUrls":["https://pypi.org/project/httpx/"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["project",{"param":"pkg","charset":"pkg"}]},"mode":"dom","vars":{"headerName":{"cssText":["h1.project-header__name","h1.package-header__name"]},"pipCmd":{"cssText":["#pip-command"]},"summary":{"cssText":["p.project-header__summary","p.package-description__summary"]},"readme":{"cssHtmlToMd":["#description","div.project-description"],"format":"strip_leading_h1"}},"requireVars":["headerName","readme"],"titleTemplate":"{headerName}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"Install","template":"`{pipCmd}`","whenVar":"pipCmd"}],"bodyVar":"readme"}]},{"id":"q4-ir","name":"Q4 Inc. Investor Relations Portals","category":"finance","description":"Extracts Q4 Investor Relations /feed/PressRelease.svc and /feed/Event.svc JSON endpoints plus HTML press release and event pages while rejecting Cloudflare challenges.","domains":["*.q4web.com","investors.braze.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0","https://investors.braze.com/feed/Event.svc/GetEventList?apiKey=BF185719B0464B3AB809D2E68A89D240&LanguageId=1&eventDateFilter=3&pageSize=5&pageNumber=0"],"routes":[{"match":{"pathPrefix":"/feed/PressRelease.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}},{"match":{"pathPrefix":"/feed/Event.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}}],"htmlRoutes":[{"id":"q4-ir","match":{"exactSegments":false},"mode":"q4_ir_html"}]},{"id":"race-results-pack","name":"Race Results Pack (Athlinks, Race Roster, ACTIVE)","category":"commerce-social","description":"Extracts endurance race events and results from Athlinks, Race Roster, and ACTIVE JSON-LD, hydration JSON, and results tables while strictly rejecting empty CSR SPA shells.","domains":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"universalEngine":false,"auth_mode":"html","exampleUrls":["https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026"],"htmlRoutes":[{"id":"race-results-pack","match":{"hosts":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"exactSegments":false},"mode":"race_results_pack_html"}]},{"id":"readthedocs-sphinx","name":"Read the Docs & Sphinx Documentation","category":"developer","description":"Universal HTML extractor for Sphinx and Read the Docs documentation sites (requests.readthedocs.io, docs.python.org, and Sphinx-themed portals).","domains":["docs.python.org","numpy.org","matplotlib.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://numpy.org/doc/stable/user/absolute_beginners.html","https://docs.python.org/3/library/json.html"],"htmlRoutes":[{"id":"readthedocs-sphinx","match":{"exactSegments":false},"mode":"readthedocs_sphinx_html"}]},{"id":"rebuy-searchanise","name":"Rebuy & Searchanise Storefront APIs","category":"commerce-social","description":"Page-key adapter for Rebuy recommendation APIs and Searchanise searchserverapi.com JSON results; companion HTML mode yields so shopify_html is never preempted.","domains":["rebuyengine.com","www.rebuyengine.com","searchserverapi.com","www.searchserverapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3"],"routes":[{"match":{"anyOf":[{"hosts":["rebuyengine.com","www.rebuyengine.com"],"pathPrefix":"/api/v1/"},{"hosts":["searchserverapi.com","www.searchserverapi.com"],"pathEquals":["/getresults","/getwidgets"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"rebuy_searchanise_json"}}],"htmlRoutes":[{"id":"rebuy-searchanise","match":{"exactSegments":false},"mode":"rebuy_searchanise_html"}]},{"id":"recharge-bold-subscriptions","name":"Recharge & Bold Subscriptions","category":"commerce-social","description":"Extracts product and recurring selling-plan subscription metadata from storefronts powered by Recharge or Bold Subscriptions; yields on non-subscription PDPs so shopify_html is not preempted.","domains":["us.whogivesacrap.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls"],"htmlRoutes":[{"id":"recharge-bold-subscriptions","match":{"exactSegments":false},"mode":"recharge_bold_subscriptions_html"}]},{"id":"recreation-gov-ridb","name":"Recreation.gov & RIDB API","category":"public-records","description":"Recreation Information Database (RIDB) v1 API (apikey header) with Recreation.gov Campground JSON-LD / SSR HTML fallback and strict robots politeness.","domains":["ridb.recreation.gov","www.recreation.gov","recreation.gov"],"auth_mode":"key","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://www.recreation.gov/camping/campgrounds/232447","https://ridb.recreation.gov/api/v1/facilities/232447"],"routes":[{"match":{"hosts":["ridb.recreation.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"ridb_json"}},{"match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":true,"pathSegments":["camping","campgrounds",{"param":"facilityId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://ridb.recreation.gov/api/v1/facilities/{facilityId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"ridb_json"}}],"htmlRoutes":[{"id":"recreation-gov-ridb","match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":false},"mode":"recreation_gov_html"}]},{"id":"reddit-thread","name":"Reddit Threads & Comments","category":"commerce-social","description":"Extracts shreddit-post prose, subreddit/author/score metadata, and nested shreddit-comment trees.","domains":["reddit.com","*.reddit.com"],"exampleUrls":["https://www.reddit.com/r/golang/comments/1abc123/single_binary_deployments/"],"htmlRoutes":[{"id":"reddit-thread","match":{"pathContainsSegment":"comments"},"mode":"reddit_shreddit"}]},{"id":"regulations-gov","name":"Regulations.gov Federal Rulemaking","category":"public-records","description":"Official api.regulations.gov v4 JSON:API adapter for federal rulemaking documents, dockets, and public comments with HTML fallback.","domains":["regulations.gov","www.regulations.gov","api.regulations.gov"],"auth_mode":"key","exampleUrls":["https://api.regulations.gov/v4/documents/FTC-2023-0007-0001","https://api.regulations.gov/v4/dockets/FTC-2023-0007","https://www.regulations.gov/document/FTC-2023-0007-0001"],"routes":[{"match":{"hosts":["api.regulations.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["document",{"param":"docId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/documents/{docId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/dockets/{docketId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["comment",{"param":"commentId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/comments/{commentId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}}],"htmlRoutes":[{"id":"regulations-gov","match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false},"mode":"regulations_gov_html"}]},{"id":"repology","name":"Repology Package Version Matrix","category":"developer","description":"Extracts cross-distribution package versions from Repology API v1 and project HTML pages, prioritizing status == newest rows.","domains":["repology.org"],"auth_mode":"pub","exampleUrls":["https://repology.org/api/v1/project/python","https://repology.org/project/python/versions"],"routes":[{"match":{"hosts":["repology.org"],"pathPrefix":"/api/v1/project/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}},{"match":{"hosts":["repology.org"],"exactSegments":false,"pathSegments":["project",{"param":"project","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://repology.org/api/v1/project/{project}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}}],"htmlRoutes":[{"id":"repology","match":{"hosts":["repology.org"],"exactSegments":false},"mode":"repology_html"}]},{"id":"rippling","name":"Rippling ATS Career Boards","category":"jobs","description":"Upgrades ats.rippling.com/[locale/]/jobs to api.rippling.com (merging multi-location rows by uuid) and extracts __NEXT_DATA__ jobPost on detail pages.","domains":["ats.rippling.com"],"exampleUrls":["https://ats.rippling.com/rippling/jobs","https://ats.rippling.com/rippling/jobs/96601a74-e7b6-469d-8c69-6fdfd1c83bc0"],"match":{"optionalLeadingLocale":true,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"rippling-board","fetchUrl":"https://api.rippling.com/platform/api/ats/v1/board/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"results","vars":{"rawCount":{"paths":["results"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"{org} — Rippling Job Board ({dedupCount} open roles)","sections":[{"heading":"","arrayPath":"results","limit":100,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","dedupeBy":{"keyPaths":["uuid","id"],"mergeTextPaths":["workLocation.label","workLocation"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4},"requireItemVar":"jName","itemVars":{"uuid":{"paths":["uuid","id"],"trim":true},"jName":{"paths":["name","title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://ats.rippling.com/{org}/jobs/{uuid}"},"dept":{"paths":["department.label","department"],"trim":true,"default":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jName}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"}]}]},"htmlRoutes":[{"id":"rippling-job","mode":"embedded_json","scriptId":"__NEXT_DATA__","match":{"hosts":["ats.rippling.com"]},"extract":{"vars":{"jobTitle":{"paths":["props.pageProps.apiData.jobPost.name","props.pageProps.apiData.jobPost.title","props.pageProps.jobPost.name","props.pageProps.jobPost.title"],"trim":true},"company":{"paths":["props.pageProps.apiData.jobPost.companyName","props.pageProps.jobPost.companyName"],"trim":true,"default":"Company"},"descDirect":{"paths":["props.pageProps.apiData.jobPost.description","props.pageProps.jobPost.description"],"format":"html_to_md"},"descCompany":{"paths":["props.pageProps.apiData.jobPost.description.company","props.pageProps.jobPost.description.company"],"format":"html_to_md"},"descRole":{"paths":["props.pageProps.apiData.jobPost.description.role","props.pageProps.jobPost.description.role"],"format":"html_to_md"},"descReqs":{"paths":["props.pageProps.apiData.jobPost.description.requirements","props.pageProps.jobPost.description.requirements"],"format":"html_to_md"},"descBenefits":{"paths":["props.pageProps.apiData.jobPost.description.benefits","props.pageProps.jobPost.description.benefits"],"format":"html_to_md"},"hasAnyBody":{"template":"ok","whenAnyVars":["descDirect","descCompany","descRole","descReqs","descBenefits"]}},"requireVars":["jobTitle","hasAnyBody"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"descDirect","sections":[{"heading":"","unlessVar":"descDirect","textVar":"descCompany"},{"heading":"","unlessVar":"descDirect","textVar":"descRole"},{"heading":"","unlessVar":"descDirect","textVar":"descReqs"},{"heading":"","unlessVar":"descDirect","textVar":"descBenefits"}]}}]},{"id":"rubygems","name":"RubyGems Registry","category":"developer","description":"Upgrades rubygems.org gem pages to /api/v1/gems/.json metadata.","domains":["rubygems.org","www.rubygems.org"],"exampleUrls":["https://rubygems.org/gems/rails"],"match":{"exactSegments":false,"pathSegments":["gems",{"param":"gem","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://rubygems.org/api/v1/gems/{gem}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"version":{"paths":["version"]},"info":{"paths":["info"],"trim":true},"infoShort":{"paths":["info"],"trim":true,"sliceMax":260},"licenses":{"paths":["licenses"],"join":", "},"authors":{"paths":["authors"]},"repo":{"paths":["source_code_uri","homepage_uri"]},"docs":{"paths":["documentation_uri"]}},"titleTemplate":"{name} {version} (RubyGem)","titleWhenVar":"version","titleFallbackTemplate":"{name} (RubyGem)","descriptionVar":"infoShort","authorVar":"authors","introVar":"info","bullets":[{"label":"Install","template":"`gem install {name}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{licenses}","whenVar":"licenses"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Documentation","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"rumble-odysee","name":"Rumble & Odysee Video","category":"commerce-social","description":"Extracts Odysee video claim oEmbed and LBRY JSON-RPC metadata plus Rumble/Odysee HTML without hitting disallowed rumble.com/api/* routes.","domains":["rumble.com","www.rumble.com","odysee.com","www.odysee.com","api.na-backend.odysee.com"],"auth_mode":"pub","exampleUrls":["https://odysee.com/@Odysee:8/channel-roundup-may-2026:e","https://odysee.com/$/oembed?url=https%3A%2F%2Fodysee.com%2F%40Odysee%3A8%2Fchannel-roundup-may-2026%3Ae&format=json","https://www.rumble.com/c/Rumble"],"routes":[{"match":{"hosts":["odysee.com","www.odysee.com"],"pathEquals":["/$/oembed"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["odysee.com","www.odysee.com"],"exactSegments":true,"pathSegments":[{"param":"chan","charset":"at_handle","minLen":2,"maxLen":100},{"param":"claimSlug","charset":"url_seg","minLen":2,"maxLen":180}]},"twin":{"fetchUrl":"https://{host}/$/oembed?url=https%3A%2F%2F{host}%2F{chan}%2F{claimSlug}&format=json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["api.na-backend.odysee.com"],"pathEquals":["/api/v1/proxy"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}}],"htmlRoutes":[{"id":"rumble-odysee","match":{"exactSegments":false},"mode":"rumble_odysee_html"}]},{"id":"runsignup","name":"RunSignup Races & Events","category":"commerce-social","description":"Extracts RunSignup race listings and single race event details from public /Rest/races and /Rest/race/{raceId} JSON APIs plus /Race/ SportsEvent HTML fallback.","domains":["runsignup.com","www.runsignup.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://runsignup.com/Rest/races?format=json&events=T&page=1&results_per_page=2","https://runsignup.com/Rest/race/68640?format=json","https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile"],"routes":[{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","races"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}},{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","race",{"param":"raceId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}}],"htmlRoutes":[{"id":"runsignup","match":{"hosts":["runsignup.com","www.runsignup.com"],"pathPrefix":"/Race/","exactSegments":false},"mode":"runsignup_html"}]},{"id":"rxnorm-rxnav","name":"NLM RxNorm / RxNav","category":"research-health","description":"National Library of Medicine RxNav REST JSON API adapter for RxCUI lookups, concept properties, drug groups, and approximate term matches.","domains":["rxnav.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://rxnav.nlm.nih.gov/REST/rxcui.json?name=lipitor","https://rxnav.nlm.nih.gov/REST/rxcui/153165/properties.json","https://rxnav.nlm.nih.gov/REST/drugs.json?name=acetaminophen"],"routes":[{"match":{"pathPrefix":"/REST/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"rxnorm_json"}}]},{"id":"saleor","name":"Saleor Storefront & GraphQL API","category":"commerce-social","description":"Extracts Saleor Storefront bounded /graphql/ product queries (including EditorJS descriptions) and post-HTML JSON-LD/Microdata product pages.","domains":["demo.saleor.io","storefront1.saleor.cloud"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storefront1.saleor.cloud/graphql/"],"routes":[{"match":{"pathEquals":["/graphql","/graphql/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProducts { products(first: 25, channel: \\\"default\\\") { pageInfo { hasNextPage endCursor } edges { node { id slug name description category { name slug } thumbnail { url alt } pricing { priceRange { start { gross { amount currency } } stop { gross { amount currency } } } } variants { id name sku quantityAvailable pricing { price { gross { amount currency } } } } } } } }\"}"},"extract":{"commerceMode":"saleor_graphql"}}],"htmlRoutes":[{"id":"saleor","match":{"exactSegments":false},"mode":"saleor_html"}]},{"id":"salesforce-knowledge","name":"Salesforce Knowledge (Experience Cloud)","category":"developer","description":"Extracts public Salesforce Knowledge and Experience Cloud articles when SSR/hydrated DOM or TechArticle JSON-LD is present; rejects unhydrated Aura error shells and login redirects.","domains":["help.salesforce.com","help.mulesoft.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.salesforce.com/s/articleView?language=en_US&id=000391748&type=1"],"htmlRoutes":[{"id":"salesforce-knowledge","match":{"exactSegments":false},"mode":"salesforce_knowledge_html"}]},{"id":"sam-gov","name":"SAM.gov Opportunities & Entities","category":"public-records","description":"Extracts SAM.gov contract opportunities and entity registrations via official SAM.gov v2/v3 APIs (excluding /contract-awards handled by fpds-sam-contract-awards) with HTML fallback.","domains":["sam.gov","www.sam.gov","api.sam.gov"],"auth_mode":"key","exampleUrls":["https://sam.gov/contracting","https://sam.gov/help","https://api.sam.gov/opportunities/v2/search?limit=1"],"routes":[{"match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false,"pathSegments":["opp",{"param":"noticeId","charset":"url_seg","minLen":4,"maxLen":120},"view"]},"twin":{"fetchUrl":"https://api.sam.gov/opportunities/v2/search?noticeid={noticeId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}}],"htmlRoutes":[{"id":"sam-gov","match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false},"mode":"sam_gov_html"}]},{"id":"sap-commerce-occ","name":"SAP Commerce Cloud (OCC v2)","category":"commerce-social","description":"Extracts SAP Commerce Cloud OCC v2 /rest/v2 product and search JSON endpoints plus Spartacus storefront HTML/companion twins.","domains":["www.kay.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.kay.com/kay-labgrown-diamonds-large-small-link-bracelet-14-ct-tw-sterling-silver-8/p/V-238867701"],"routes":[{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["rest","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}}],"htmlRoutes":[{"id":"sap-commerce-occ","match":{"exactSegments":false},"mode":"sap_occ_html"}]},{"id":"sap-rmk-jibe","name":"SAP SuccessFactors RMK & Jibe Enterprise Career Feeds","category":"jobs","description":"Formats Jibe /api/jobs JSON feeds and SAP SuccessFactors Recruiting Marketing (RMK) /sitemap.xml RSS job feeds.","domains":["careers.*.com","jobs.*.com"],"universalEngine":true,"exampleUrls":["https://careers.rivian.com/api/jobs?page=1&limit=25","https://jobs.eastman.com/sitemap.xml"],"routes":[{"match":{"pathEquals":["/api/jobs"],"excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"jibe-careers","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireArrayItemField":{"arrayPath":"jobs","field":"data"},"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["totalCount"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{host} — Jibe Career Feed ({jobCount} of {total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":80,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["data.title","title"],"trim":true,"default":"Role"},"reqId":{"paths":["data.req_id","data.slug","req_id","slug"],"trim":true},"reqCell":{"template":"`{reqId}`","whenVars":["reqId"],"default":"-"},"catArr":{"paths":["data.categories"],"subField":"name","join":", "},"catStr":{"paths":["data.category","category"],"trim":true},"cat":{"template":"{catArr}","whenVars":["catArr"],"fallbackVar":"catStr","default":"-"},"fullLoc":{"paths":["data.full_location","full_location"],"trim":true},"city":{"paths":["data.city","city"],"trim":true},"state":{"paths":["data.state","state"],"trim":true},"country":{"paths":["data.country","country"],"trim":true},"csc3":{"template":"{city}, {state}, {country}","whenVars":["city","state","country"]},"csc2a":{"template":"{city}, {state}","whenVars":["city","state"]},"csc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"csc1":{"paths":["data.city","data.state","data.country"],"trim":true},"locSub1":{"template":"{csc3}","whenVars":["csc3"],"fallbackVar":"csc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"csc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"csc1"},"loc":{"template":"{fullLoc}","whenVars":["fullLoc"],"fallbackVar":"locSub3","default":"-"},"canonUrl":{"paths":["data.meta_data.canonical_url"],"requireHttps":true},"appUrl":{"paths":["data.apply_url","apply_url"],"requireHttps":true},"finalUrl":{"template":"{canonUrl}","whenVars":["canonUrl"],"fallbackVar":"appUrl"},"roleCell":{"template":"[{jTitle}]({finalUrl})","whenVars":["finalUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["finalUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Req ID","template":"{reqCell}"},{"header":"Category","template":"{cat}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"sap-rmk-jibe","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}}],"htmlRoutes":[{"id":"sap-rmk-jibe","mode":"xml_items_table","match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}]},{"id":"schema-course","name":"Schema.org Course & Educational Program","category":"public-records","description":"Universal Schema.org extractor for Course, CourseInstance, and EducationalOccupationalProgram JSON-LD running before generic schema_org fallback.","domains":["pll.harvard.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pll.harvard.edu/course/cs50-introduction-computer-science"],"htmlRoutes":[{"id":"schema-course","match":{"exactSegments":false},"mode":"schema_course_html"}]},{"id":"schema-dataset","name":"Schema.org Dataset & DataCatalog","category":"research-health","description":"Universal Schema.org extractor for Dataset and DataCatalog JSON-LD including DataDownload distributions, license, creator, and temporal/spatial coverage.","domains":["registry.opendata.aws"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.opendata.aws/noaa-goes/"],"htmlRoutes":[{"id":"schema-dataset","match":{"exactSegments":false},"mode":"schema_dataset_html"}]},{"id":"schema-event","name":"Schema.org Event (Universal)","category":"commerce-social","description":"Universal Schema.org Event JSON-LD extractor for venues, parks departments, clubs, and event calendars: name, start/end, venue and address, organizer, performer, offers/price, status, and attendance mode. Lists every Event on series and calendar pages while yielding on dedicated ticketing/race platforms.","domains":["neworleanscitypark.org","events.stanford.edu","calendar.mit.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://neworleanscitypark.org/series/crescent-city-farmers-market-2/","https://events.stanford.edu/"],"htmlRoutes":[{"id":"schema-event","match":{"exactSegments":false,"excludeHosts":["eventbrite.com","www.eventbrite.com","meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com","ticketmaster.com","www.ticketmaster.com","runsignup.com","www.runsignup.com"]},"mode":"schema_event_html"}]},{"id":"schema-faq-howto","name":"Schema.org FAQPage & HowTo","category":"public-records","description":"Universal Schema.org extractor for FAQPage Q&A and HowTo step-by-step instructions, yielding when Recipe, Product, JobPosting, Course, SoftwareApplication, or Medical types are present.","domains":["yoast.com","www.wikihow.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://yoast.com/features/structured-data/faq-block/","https://www.wikihow.com/Tie-a-Tie"],"htmlRoutes":[{"id":"schema-faq-howto","match":{"exactSegments":false},"mode":"schema_faq_howto_html"}]},{"id":"schema-localbusiness","name":"Schema.org LocalBusiness (Universal)","category":"commerce-social","description":"Universal Schema.org LocalBusiness JSON-LD extractor (Restaurant, Store, AutoDealer, BikeStore and every *Business/*Store subtype) for location, dealer, and shop pages: name, address, phone, geo, opening hours, price range, rating, and amenities. Skips pages whose main entity is an article, product, recipe, job, vehicle, medical, or event.","domains":["www.chipotle.com","www.apple.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://locations.chipotle.com/co/boulder/1650-28th-st","https://www.apple.com/retail/fifthavenue/"],"htmlRoutes":[{"id":"schema-localbusiness","match":{"exactSegments":false},"mode":"schema_localbusiness_html"}]},{"id":"schema-medical","name":"Schema.org Medical Entities","category":"research-health","description":"Universal Schema.org extractor for MedicalCondition, Drug, Physician, MedicalClinic, and MedicalWebPage JSON-LD, yielding when Product is present.","domains":["my.clevelandclinic.org","www.nhs.uk"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://my.clevelandclinic.org/health/diseases/6424-asthma","https://www.nhs.uk/conditions/asthma/"],"htmlRoutes":[{"id":"schema-medical","match":{"exactSegments":false},"mode":"schema_medical_html"}]},{"id":"schema-menu","name":"Schema.org Restaurant Menu (Menu / MenuSection / MenuItem)","category":"commerce-social","description":"Universal Schema.org Menu extractor that matches only when Menu, MenuSection, MenuItem, or hasMenu JSON-LD entities exist, never hijacking plain Restaurant pages.","domains":["www.chilis.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.chilis.com/menu"],"htmlRoutes":[{"id":"schema-menu","match":{"exactSegments":false},"mode":"schema_menu_html"}]},{"id":"schema-recipe","name":"Schema.org Recipe (Universal)","category":"commerce-social","description":"Universal Schema.org Recipe JSON-LD extractor for any recipe site: ingredients, numbered steps (HowToStep/HowToSection), prep/cook/total times, yield, cuisine, rating, and nutrition. Resolves @graph @id author references.","domains":["www.budgetbytes.com","sallysbakingaddiction.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.budgetbytes.com/one-pot-creamy-cajun-chicken-pasta/","https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"],"htmlRoutes":[{"id":"schema-recipe","match":{"exactSegments":false},"mode":"schema_recipe_html"}]},{"id":"schema-software-app","name":"Schema.org SoftwareApplication","category":"developer","description":"Universal Schema.org extractor for SoftwareApplication, WebApplication, and MobileApplication JSON-LD (version, OS, category, offers, rating, and downloadUrl).","domains":["code.visualstudio.com","www.mozilla.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://code.visualstudio.com/","https://www.mozilla.org/en-US/firefox/new/"],"htmlRoutes":[{"id":"schema-software-app","match":{"exactSegments":false},"mode":"schema_software_app_html"}]},{"id":"schema-vehicle","name":"Schema.org Vehicle & Car","category":"commerce-social","description":"Universal Schema.org extractor for Vehicle, Car, Motorcycle, and MotorizedBicycle JSON-LD with strict 17-character VIN validation (excluding I, O, Q).","domains":["www.hondaofseattle.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.hondaofseattle.com/viewdetails/used/5tdkdrbh0rs544979/2024-toyota-highlander-sport-utility"],"htmlRoutes":[{"id":"schema-vehicle","match":{"exactSegments":false},"mode":"schema_vehicle_html"}]},{"id":"searchspring","name":"Searchspring On-Site Search","category":"commerce-social","description":"Extracts public Searchspring JSON search API payloads and discovers siteId markers from storefront HTML.","domains":["api.searchspring.net","www.searchspring.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.searchspring.net/api/search/search.json?siteId=rn129l&q=router&resultsFormat=native"],"routes":[{"match":{"pathEquals":["/api/search/search.json"],"queryParams":[{"name":"siteId","param":"siteId","charset":"alnum_dash","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"searchspring_search"}}],"htmlRoutes":[{"id":"searchspring","match":{"exactSegments":false},"mode":"searchspring_html"}]},{"id":"sec-edgar","name":"SEC EDGAR Company Submissions & Filings","category":"finance","description":"Upgrades sec.gov EDGAR company browse pages and CIK URLs to keyless data.sec.gov JSON submissions (10-K, 10-Q, 8-K, DEF 14A, Form 4, 13F).","domains":["www.sec.gov","sec.gov","data.sec.gov"],"exampleUrls":["https://www.sec.gov/edgar/browse/?CIK=0001477333","https://data.sec.gov/submissions/CIK0000320193.json"],"match":{"anyOf":[{"hosts":["www.sec.gov","sec.gov"],"exactSegments":false,"pathSegments":["edgar","browse"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["www.sec.gov","sec.gov"],"exactSegments":true,"pathSegments":["cgi-bin","browse-edgar"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["data.sec.gov"],"exactSegments":true,"pathSuffix":".json","pathSegments":["submissions",{"param":"rawCik","stripPrefix":"CIK","stripSuffix":".json","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}}]},"twin":{"fetchUrl":"https://data.sec.gov/submissions/CIK{paddedCik}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"],"trim":true},"tickersPlain":{"paths":["tickers"],"join":", "},"tickersCode":{"paths":["tickers"],"itemWrap":"`","join":", "},"exchanges":{"paths":["exchanges"],"join":", "},"tickersBullet":{"template":"{tickersCode} ({exchanges})","whenVars":["tickersCode","exchanges"],"fallbackVar":"tickersCode"},"sic":{"paths":["sic"]},"sicDesc":{"paths":["sicDescription"]},"sicOrDesc":{"paths":["sic","sicDescription"]},"sicFull":{"template":"{sic} — {sicDesc}","whenVars":["sic","sicDesc"],"fallbackVar":"sicOrDesc"},"category":{"paths":["category"]},"stateInc":{"paths":["stateOfIncorporation"]},"fye":{"paths":["fiscalYearEnd"],"format":"fiscal_mmdd"},"descTickerOrCik":{"paths":["tickers"],"join":", ","fallbackTemplate":"CIK {paddedCik}"}},"titleTemplate":"{name} ({tickersPlain}) — SEC EDGAR","titleWhenVar":"tickersPlain","titleFallbackTemplate":"{name} (CIK {paddedCik}) — SEC EDGAR","descriptionTemplate":"{name} SEC EDGAR filings ({descTickerOrCik})","bullets":[{"label":"CIK","template":"`{paddedCik}`"},{"label":"Tickers","template":"{tickersBullet}","whenVar":"tickersBullet"},{"label":"SIC Industry","template":"{sicFull}","whenVar":"sicFull"},{"label":"Filer Category","template":"{category}","whenVar":"category"},{"label":"Incorporation","template":"{stateInc}","whenVar":"stateInc"},{"label":"Fiscal Year End","template":"{fye}","whenVar":"fye"}],"sections":[{"heading":"Recent SEC Filings","parallelArrays":{"basePath":"filings.recent","fields":{"form":"form","filingDate":"filingDate","reportDate":"reportDate","accessionNumber":"accessionNumber","primaryDocument":"primaryDocument","items":"items"},"priorityFilterAfter":{"index":12,"field":"form","allowValues":["10-K","10-K/A","10-Q","10-Q/A","8-K","DEF 14A","20-F","S-1","13F-HR","4"]}},"limit":25,"requireItemVar":"form","collectLinkVars":["docUrl"],"itemVars":{"form":{"paths":["form"]},"accRaw":{"paths":["accessionNumber"]},"accNoDash":{"paths":["accessionNumber"],"replaceAll":{"from":"-","to":""}},"primaryDocument":{"paths":["primaryDocument"]},"indexUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{accRaw}-index.htm","whenVars":["accRaw","accNoDash"]},"docUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{primaryDocument}","whenVars":["accNoDash","primaryDocument"],"fallbackVar":"indexUrl"},"formBold":{"template":"**{form}**","whenVars":["form"]},"formCell":{"template":"[**{form}**]({docUrl})","whenVars":["form","docUrl"],"fallbackVar":"formBold"}},"columns":[{"header":"Form","template":"{formCell}"},{"header":"Filed","paths":["filingDate"]},{"header":"Period","paths":["reportDate"]},{"header":"8-K Items","paths":["items"]}]}]}},{"id":"senate-lda","name":"Senate Lobbying Disclosures (LDA)","category":"public-records","description":"Extracts Senate Lobbying Disclosure Act filings from lda.gov (and lda.senate.gov) REST API v1 JSON with Crawl-delay 4s politeness and HTML fallback.","domains":["lda.gov","lda.senate.gov"],"auth_mode":"pub","min_interval_ms":4000,"strict_robots":true,"exampleUrls":["https://lda.gov/api/v1/filings/a934e791-d564-4fd3-8b78-041f8cfcf115/","https://lda.gov/filings/public/filing/a934e791-d564-4fd3-8b78-041f8cfcf115/"],"routes":[{"match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false,"pathSegments":["filings","public","filing",{"param":"filingId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/filings/{filingId}/","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}},{"match":{"hosts":["lda.gov","lda.senate.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}}],"htmlRoutes":[{"id":"senate-lda","match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false},"mode":"senate_lda_html"}]},{"id":"servicenow-kb","name":"ServiceNow Knowledge Base","category":"developer","description":"Extracts public ServiceNow Knowledge Base articles from TechArticle JSON-LD and Service Portal KB DOM while rejecting soft-404 shells.","domains":["support.servicenow.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963589"],"htmlRoutes":[{"id":"servicenow-kb","match":{"exactSegments":false},"mode":"servicenow_kb_html"}]},{"id":"sfcc-demandware","name":"Salesforce Commerce Cloud (Demandware) Storefronts","category":"commerce-social","description":"Structurally detects Salesforce Commerce Cloud storefronts and extracts Product-Variation twins, JSON-LD, variation options, and product geometry/specification tables.","domains":["www.demandware.com"],"universalEngine":true,"exampleUrls":["https://www.demandware.com/product/sample"],"htmlRoutes":[{"id":"sfcc-demandware","match":{"exactSegments":false},"mode":"sfcc_html"}]},{"id":"shopify-filter-apps","name":"Shopify Filter Apps (Boost Commerce / Globo)","category":"commerce-social","description":"Page-key adapter for Boost Commerce (mybcapps.com) and Globo Smart Product Filter JSON endpoints; companion HTML mode yields so shopify_html is never preempted.","domains":["services.mybcapps.com","filter.globo.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5"],"routes":[{"match":{"anyOf":[{"hosts":["services.mybcapps.com"],"pathEquals":["/bc-sf-filter/filter","/bc-sf-filter/search"]},{"hosts":["filter.globo.io"],"pathPrefix":"/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"shopify_filter_apps_json"}}],"htmlRoutes":[{"id":"shopify-filter-apps","match":{"exactSegments":false},"mode":"shopify_filter_apps_html"}]},{"id":"shopify-hydrogen","name":"Shopify Hydrogen Storefronts","category":"commerce-social","description":"Page-key adapter extracting Shopify Hydrogen SSR __remixContext loaderData (shop, products, collections) while rejecting non-Shopify Remix apps and empty shells.","domains":["hydrogen.shop"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://hydrogen.shop/"],"htmlRoutes":[{"id":"shopify-hydrogen","match":{"exactSegments":false},"mode":"shopify_hydrogen_html"}]},{"id":"shopify-storefront-graphql","name":"Shopify Storefront API (Tokenless GraphQL)","category":"commerce-social","description":"Queries any Shopify store's public Storefront API (/api//graphql.json) with Shopify's documented tokenless access for one product by handle (plus same-origin page-key companion discovery on storefronts embedding Storefront API tokens): shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections.","domains":["www.tentree.com","www.henryrose.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://henryrose.com/api/2025-07/graphql.json?handle=the-layering-collection","https://www.tentree.com/api/2025-07/graphql.json?handle=e-gift-code"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api",{"param":"apiVersion","charset":"slug","minLen":7,"maxLen":10},"graphql.json"],"queryParams":[{"name":"handle","param":"handle","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/{apiVersion}/graphql.json","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProduct { shop { name } product(handle: \\\"{handle}\\\") { id handle title vendor productType description onlineStoreUrl availableForSale priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } options { name optionValues { name } } variants(first: 100) { nodes { id title sku availableForSale price { amount currencyCode } compareAtPrice { amount currencyCode } } } collections(first: 20) { nodes { handle title } } } }\"}","maxBytes":2097152},"extract":{"jsonMode":"shopify_storefront_graphql_json"}}]},{"id":"shopify","name":"Shopify Universal Storefront & Catalogs","category":"commerce-social","description":"Formats /products.json and /collections//products.json store inventories, upgrades *.myshopify.com and custom-domain /products/ pages, and implements polite full-store catalog pulls.","domains":["*.myshopify.com"],"universalEngine":true,"exampleUrls":["https://www.henryrose.com/products/the-layering-collection","https://www.henryrose.com/products.json?limit=30&page=1"],"catalog":{"platform":"shopify","pauseMs":1000,"pageCap":200,"firstPageTemplate":"{origin}/products.json?limit=250&page=1","collectionPageTemplate":"{origin}/collections/{collection}/products.json?limit=250&page=1","perPage":250,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","my.bigcartel.com","api.bigcartel.com","assets.bigcartel.com","help.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com"],"anyOf":[{"pathEquals":["/products.json"]},{"exactSegments":true,"pathSegments":["collections",{"param":"col","charset":"slug","maxLen":160},"products.json"]}]},"twin":{"id":"shopify-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_catalog_page"}},{"match":{"pathSuffix":".js","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".js","maxLen":160}},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.js","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product_js"}},{"match":{"anyOf":[{"pathSuffix":".json","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}},{"hosts":["*.myshopify.com"],"scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.json","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product"}},{"match":{"hosts":["*.myshopify.com"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["collections",{"param":"handle","charset":"slug","maxLen":160}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/collections/{handle}/products.json?limit=50","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"commerceMode":"shopify_catalog_page"}}],"htmlRoutes":[{"id":"shopify","match":{"pathContainsSegment":"products"},"mode":"shopify_html"}]},{"id":"shopware-magento","name":"Magento 2 & Shopware 6 Storefronts","category":"commerce-social","description":"Structurally detects Magento 2 (text/x-magento-init swatches and bounded products-render-info) and Shopware 6 (sw-product-detail and property tables) storefronts.","domains":["www.shopware.com","business.adobe.com"],"universalEngine":true,"exampleUrls":["https://frontends-demo.vercel.app/Pepper-white-Muntok-pearl/SW10095"],"htmlRoutes":[{"id":"shopware-magento","match":{"exactSegments":false},"mode":"shopware_magento_html"}]},{"id":"slide-decks","name":"Slide Decks (SlideShare & SpeakerDeck)","category":"commerce-social","description":"Extracts SpeakerDeck presentations via public oEmbed JSON and slide transcripts HTML, and SlideShare decks via __NEXT_DATA__ HTML (no /api/ twin per robots.txt).","domains":["slideshare.net","www.slideshare.net","speakerdeck.com","www.speakerdeck.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.slideshare.net/slideshow/slideshare-rebrand-announcement-deck-2025/283262633","https://speakerdeck.com/csswizardry/well-thats-weird"],"routes":[{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":true,"pathSegments":[{"param":"user","charset":"slug","minLen":1,"maxLen":80,"reserved":["search","signup","login","categories","features","pro","terms","privacy","about","jobs","assets","users","oembed.json"]},{"param":"deck","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://speakerdeck.com/oembed.json?url=https%3A%2F%2Fspeakerdeck.com%2F{user}%2F{deck}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}},{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"pathEquals":["/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}}],"htmlRoutes":[{"id":"slide-decks","mode":"slideshare_html","match":{"hosts":["slideshare.net","www.slideshare.net"],"exactSegments":false}},{"id":"slide-decks","mode":"speakerdeck_html","match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":false}}]},{"id":"small-search","name":"Searchanise, Doofinder, Findify & Nosto Search","category":"commerce-social","description":"Opt-in page-key adapter pack for Searchanise, Doofinder, Findify, and Nosto search APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["searchserverapi1.com","eu1-search.doofinder.com","api-v3.findify.io","api.nosto.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://searchserverapi1.com/getresults?apiKey=3O4A8B9F4q&q=brew&output=json&maxResults=10"],"routes":[{"match":{"hosts":["searchserverapi1.com","www.searchserverapi1.com"],"pathEquals":["/getresults","/getwidgets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"anyOf":[{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathEquals":["/5/search"]},{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathSegments":["6",{"param":"hashid","charset":"alnum_dash","minLen":8,"maxLen":64},"_search"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api-v3.findify.io"],"pathEquals":["/v3/search","/v3/autocomplete"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api.nosto.com"],"pathEquals":["/v1/graphql"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}}],"htmlRoutes":[{"id":"small-search","match":{"exactSegments":false},"mode":"small_search_html"}]},{"id":"smartetailing","name":"SmartEtailing IBD Storefronts","category":"commerce-social","description":"Structurally detects SmartEtailing independent bicycle dealer storefronts and extracts Product JSON-LD, spec tables, and dealer pickup info.","domains":["www.trekchicago.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.trekchicago.com/product/trek-precaliber-16-556127-1.htm"],"htmlRoutes":[{"id":"smartetailing","match":{"exactSegments":false},"mode":"smartetailing_html"}]},{"id":"smb-ats-full","name":"SMB ATS Full (Manatal, Homerun, Zoho Recruit, Freshteam)","category":"jobs","description":"Extracts open roles from Manatal career-page JSON API, Homerun JobPosting JSON-LD, Zoho Recruit, and Freshteam portals while rejecting 404.homerun.co and soft errors.","domains":["api.manatal.com","core.api.manatal.com","jobs.manatal.com","*.zohorecruit.com","*.freshteam.com","*.homerun.co"],"auth_mode":"pub","exampleUrls":["https://api.manatal.com/open/v3/career-page/manatal/jobs/","https://jobs.homerun.co/sales-executive-amsterdam"],"routes":[{"match":{"hosts":["api.manatal.com","core.api.manatal.com"],"pathPrefix":"/open/v3/career-page/","exactSegments":false},"twin":{"id":"smb-ats-full","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"hosts":["jobs.manatal.com"],"exactSegments":true,"pathSegments":[{"param":"slug","charset":"slug","reserved":["api","login","auth","static","assets","robots.txt","sitemap.xml","favicon.ico"],"minLen":1,"maxLen":120}]},"twin":{"id":"smb-ats-full-manatal","fetchUrl":"https://api.manatal.com/open/v3/career-page/{slug}/jobs/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"anyOf":[{"hosts":["*.freshteam.com"],"pathPrefix":"/api/job_postings","exactSegments":false},{"hosts":["*.zohorecruit.com"],"pathPrefix":"/recruit/v2/","exactSegments":false}]},"twin":{"id":"smb-ats-full-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"smb_ats_json"}}],"htmlRoutes":[{"id":"smb-ats-full","mode":"smb_ats_full_html","match":{"hosts":["*.homerun.co","*.zohorecruit.com","*.freshteam.com","jobs.manatal.com"],"exactSegments":false}}]},{"id":"smithsonian-open-access","name":"Smithsonian Open Access","category":"public-records","description":"Smithsonian Open Access API v1.0 adapter (api.si.edu/openaccess) via api.data.gov key helper with HTML fallback.","domains":["si.edu","www.si.edu","api.si.edu"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.si.edu/openaccess/api/v1.0/search?q=apollo","https://api.si.edu/openaccess/api/v1.0/content/edanmdm:nasm_A19700102000","https://www.si.edu/object/apollo-11-command-module-columbia:nasm_A19700102000"],"routes":[{"match":{"hosts":["api.si.edu"],"pathPrefix":"/openaccess/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}},{"match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"pathSegments":["object",{"param":"objectSlug","charset":"url_seg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://api.si.edu/openaccess/api/v1.0/search?q={objectSlug}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}}],"htmlRoutes":[{"id":"smithsonian-open-access","match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"reservedFirstSegment":["search","admin","core"]},"mode":"smithsonian_open_access_html"}]},{"id":"socrata","name":"Socrata Open Data Portals (SODA Universal Engine)","category":"public-records","description":"Upgrades city, state, and federal Socrata open-data dataset URLs (/d/<4x4-id> or /dataset/.../<4x4-id>) to /api/views/.json column schemas and SODA endpoints.","domains":["data.cityofnewyork.us","data.sfgov.org","data.sf.gov","data.seattle.gov","data.cityofchicago.org","data.lacity.org","data.wa.gov","data.nj.gov","data.colorado.gov","data.texas.gov","data.ny.gov","data.cdc.gov","*.socrata.com"],"universalEngine":true,"exampleUrls":["https://data.cityofnewyork.us/Housing-Development/DOB-Job-Application-Filings/ic3t-wcy2","https://data.sf.gov/d/i98e-djp9"],"match":{"socrataHost":true,"minSegments":2,"anyOf":[{"socrataHost":true,"minSegments":2,"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"socrataHost":true,"minSegments":2,"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name","id"],"vars":{"name":{"paths":["name"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"attribution":{"paths":["attribution"]},"category":{"paths":["category"]},"license":{"paths":["license.name"]},"updatedDate":{"paths":["rowsUpdatedAt"],"format":"epoch_sec_date"},"sodaJsonUrl":{"template":"https://{host}/resource/{viewId}.json?$limit=50"},"csvExportUrl":{"template":"https://{host}/api/views/{viewId}/rows.csv?accessType=DOWNLOAD"}},"titleTemplate":"{name} ({host})","descriptionVar":"descShort","publishedTimeVar":"updatedDate","bullets":[{"label":"Dataset ID","template":"`{viewId}` ({host})"},{"label":"SODA JSON API","template":"`{sodaJsonUrl}`"},{"label":"CSV Download","template":"{csvExportUrl}"},{"label":"Agency / Attribution","template":"{attribution}","whenVar":"attribution"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rows Last Updated","template":"{updatedDate}","whenVar":"updatedDate"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Schema","headingTemplate":"Schema ({shownCount} Columns)","arrayPath":"columns","filter":{"excludeFieldPrefix":{"field":"fieldName","prefix":":@"}},"limit":40,"columns":[{"header":"Field Name","paths":["fieldName"],"code":true},{"header":"Label","paths":["name"]},{"header":"Type","paths":["dataTypeName"]},{"header":"Description","paths":["description"]}]}],"linksVars":["sodaJsonUrl","csvExportUrl"]}},{"id":"specialized","name":"Specialized Bicycles & Geometry Specs","category":"commerce-social","description":"Polite HTML adapter for Specialized product pages extracting technical specifications, frame geometry tables, pricing, availability, and manual downloads.","domains":["specialized.com","www.specialized.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.specialized.com/us/en/s-works-tarmac-sl9-sram-red-axs/p/4293533"],"htmlRoutes":[{"id":"specialized","match":{"exactSegments":false},"mode":"specialized_html"}]},{"id":"spree-solidus","name":"Spree Commerce & Solidus","category":"commerce-social","description":"Extracts Spree/Solidus JSON:API /api/v2/storefront/products twins and post-HTML JSON-LD/Microdata product pages.","domains":["demo.spreecommerce.org","demo.solidus.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://demo.spreecommerce.org/us/en/products/espresso-barista-kit","https://demo.solidus.io/products/solidus-hoodie"],"routes":[{"match":{"pathEquals":["/api/v2/storefront/products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}},{"match":{"pathSegments":["api","v2","storefront","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}}],"htmlRoutes":[{"id":"spree-solidus","match":{"exactSegments":false},"mode":"spree_solidus_html"}]},{"id":"square-online","name":"Square Online Storefronts","category":"commerce-social","description":"Extracts Square Online storefront product JSON-LD, Microdata, and __BOOTSTRAP_STATE__ storeInfo/commerceLinks hydration while rejecting empty SPA shells.","domains":["www.pessosices.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.pessosices.com/product/ice-cream-gelato/92"],"htmlRoutes":[{"id":"square-online","match":{"exactSegments":false},"mode":"square_online_html"}]},{"id":"square-toast-menu","name":"Square Online Restaurant & Toast Online Ordering Menus","category":"commerce-social","description":"Extracts Square Online restaurant __BOOTSTRAP_STATE__ menus and Toast order.toasttab.com online ordering menus while rejecting Cloudflare challenges and empty shells.","domains":["order.toasttab.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR","https://rinconmx-restaurant.square.site/"],"htmlRoutes":[{"id":"square-toast-menu","match":{"exactSegments":false},"mode":"square_toast_menu_html"}]},{"id":"squarespace-commerce","name":"Squarespace Commerce Storefronts","category":"commerce-social","description":"Detects Squarespace Commerce storefronts structurally and formats ?format=json-pretty product/collection payloads and HTML fallback into GFM tables and normalized CatalogRecord arrays.","domains":["commerce.squarespace.com"],"universalEngine":true,"exampleUrls":["https://www.trice-co.com/shop/p/pink-flare-leggings"],"htmlRoutes":[{"id":"squarespace-commerce","match":{"exactSegments":false},"mode":"squarespace_html"}]},{"id":"sram-docs","name":"SRAM Technical Documentation (Fluid Topics)","category":"developer","description":"Extracts bounded Fluid Topics SSR HTML documentation from docs.sram.com, stripping inline data:image base64 blobs and error chrome while preserving breadcrumbs, model codes, and PDF manual links.","domains":["docs.sram.com"],"exampleUrls":["https://docs.sram.com/en-US/publications/2eIzVnWuTRM7vhoKQjadQr"],"htmlRoutes":[{"id":"sram-docs","match":{"exactSegments":false},"mode":"sram_docs_html"}]},{"id":"sram-models","name":"SRAM Component Models (www.sram.com)","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical component specification tables from www.sram.com/*/sram/models/* pages.","domains":["www.sram.com","sram.com"],"exampleUrls":["https://www.sram.com/en/sram/models/rd-xx-e-b1","https://www.sram.com/en/service/models/rd-gx-1-b1"],"htmlRoutes":[{"id":"sram-models","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["sram","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]},{"pathSegments":["service","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":[".product-detail h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main.product-detail",".product-detail","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"stackexchange-qa","name":"Stack Overflow & Stack Exchange Q&A","category":"developer","description":"Upgrades Stack Overflow / Stack Exchange URLs to keyless API v2.3 native Markdown (with HTML fallback), sorting the Accepted Answer first.","domains":["stackoverflow.com","www.stackoverflow.com","serverfault.com","superuser.com","askubuntu.com","mathoverflow.net","stackapps.com","*.stackexchange.com"],"exampleUrls":["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"],"match":{"hostMap":{"param":"siteParam","stripWww":true,"exact":{"stackoverflow.com":"stackoverflow","serverfault.com":"serverfault","superuser.com":"superuser","askubuntu.com":"askubuntu","mathoverflow.net":"mathoverflow","stackapps.com":"stackapps"},"suffixSubdomain":".stackexchange.com"},"exactSegments":false,"pathSegments":[{"param":"qPrefix","allowValues":["questions","q"]},{"param":"qid","charset":"digits"}]},"twin":{"fetchUrl":"https://api.stackexchange.com/2.3/questions/{qid}?site={siteParam}&filter=%2120aKG._8Oscv%2A6dguVOli","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags"},"score":{"paths":["score"],"default":"0"},"tags":{"paths":["tags"],"limit":8,"itemWrap":"`","join":", "},"qMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"qHtmlMd":{"paths":["body"],"format":"html_to_md"},"qMd":{"template":"{qMdRaw}","whenVars":["qMdRaw"],"fallbackVar":"qHtmlMd"},"link":{"paths":["link"],"requireHttps":true}},"requireVars":["qMd"],"titleTemplate":"{title}","metaLine":[{"label":"Votes","template":"{score}"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Question","textVar":"qMd"},{"heading":"","subsectionsArrayPath":"answers","sortBy":{"boolDescField":"is_accepted","numDescField":"score"},"limit":8,"requireItemVar":"ansMd","subsectionHeadingTemplate":"Answer {index1} (Score: {scoreLabel})","subsectionAltWhenVar":"acceptedFlag","subsectionAltHeadingTemplate":"✅ Accepted Answer (Score: {scoreLabel})","subsectionBodyVar":"ansMd","itemVars":{"ansMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"ansHtmlMd":{"paths":["body"],"format":"html_to_md"},"ansMd":{"template":"{ansMdRaw}","whenVars":["ansMdRaw"],"fallbackVar":"ansHtmlMd"},"ansScore":{"paths":["score"],"default":"0"},"ansAuthor":{"paths":["owner.display_name"],"format":"strip_tags"},"scoreLabel":{"template":"{ansScore} — by {ansAuthor}","whenVars":["ansAuthor"],"fallbackVar":"ansScore"},"acceptedFlag":{"paths":["is_accepted"],"format":"bool_map","trueValue":"1","falseValue":""}}}],"linksVars":["link"]},"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["questions",{"param":"qid","charset":"digits"}]},"mode":"stackexchange_html"}]},{"id":"staffing-ats-pack","name":"Staffing ATS Pack (Crelate, JobDiva, Ceipal)","category":"jobs","description":"Extracts public staffing job boards and postings from Crelate, JobDiva, and Ceipal while rejecting disabled portals (Organization Portal Disabled) and error shells.","domains":["jobs.crelate.com","app.crelate.com","*.jobdiva.com","*.ceipal.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://jobs.crelate.com/portal/promotive/rss","https://jobs.crelate.com/portal/promotive","https://www1.jobdiva.com/"],"routes":[{"match":{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/portal/","pathSuffix":"/rss","exactSegments":false},"twin":{"id":"staffing-ats-pack-crelate-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Crelate Staffing Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","location":"{loc}","postedAt":"{pubDate}","source":"crelate"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["*.ceipal.com"],"anyOf":[{"pathPrefix":"/jobs/api/","exactSegments":false},{"pathPrefix":"/api/","exactSegments":false}]},{"hosts":["*.jobdiva.com"],"pathPrefix":"/portal/api/","exactSegments":false}]},"twin":{"id":"staffing-ats-pack","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"staffing_ats_json"}}],"htmlRoutes":[{"id":"staffing-ats-pack","mode":"staffing_ats_pack_html","match":{"exactSegments":false}}]},{"id":"stamped-loox-junip","name":"Stamped, Loox & Junip Product Reviews","category":"commerce-social","description":"Extracts public Stamped, Junip, and Loox storefront API review JSON payloads without hitting disallowed loox.io/widget paths.","domains":["stamped.io","api.juniphq.com","apid.juniphq.com","storefront-api.loox.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stamped.io/api/widget/reviews?sId=291293&apiKey=a23ad1ea-e527-4a21-9a95-37fefe0ff5cd&productId=8317758832957&page=1&take=10"],"routes":[{"match":{"hosts":["stamped.io"],"pathEquals":["/api/widget/reviews","/api/widget/reviews/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"anyOf":[{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathEquals":["/v1/product_reviews","/v1/display_settings"]},{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathSegments":["v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"hosts":["storefront-api.loox.io"],"pathSegments":["storefront","v1","store",{"param":"storeId","charset":"alnum_dash","minLen":2,"maxLen":80},{"param":"endpoint","allowValues":["product-reviews","bottomline"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}}],"htmlRoutes":[{"id":"stamped-loox-junip","match":{"exactSegments":false},"mode":"stamped_loox_junip_html"}]},{"id":"state-court-portals","name":"State Court Portals","category":"public-records","description":"Extracts public state court appellate pages, orders, and opinions (www.txcourts.gov) while honestly detecting WAF, login, and SPA barriers on research.txcourts.gov.","domains":["research.txcourts.gov","www.txcourts.gov"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.txcourts.gov/supreme/orders-opinions/","https://research.txcourts.gov/CourtRecordsSearch/#!/home"],"htmlRoutes":[{"id":"state-court-portals","match":{"hosts":["research.txcourts.gov","www.txcourts.gov"]},"mode":"state_court_portals_html"}]},{"id":"state-legislatures","name":"State Legislatures (Open States & LegiScan)","category":"public-records","description":"Official Open States v3 API and LegiScan API adapter for state bills, sessions, legislators, and jurisdictions with HTML fallback.","domains":["openstates.org","www.openstates.org","v3.openstates.org","legiscan.com","www.legiscan.com","api.legiscan.com"],"auth_mode":"key","exampleUrls":["https://v3.openstates.org/bills/tx/89/HB%201","https://api.legiscan.com/?op=getBill&id=1167968"],"routes":[{"match":{"hosts":["v3.openstates.org"],"anyOf":[{"pathPrefix":"/bills"},{"pathPrefix":"/jurisdictions"},{"pathPrefix":"/people"},{"pathPrefix":"/events"},{"pathPrefix":"/committees"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["openstates.org","www.openstates.org"],"exactSegments":false,"pathSegments":[{"param":"state","charset":"alnum","minLen":2,"maxLen":2,"transform":"lower"},"bills",{"param":"session","charset":"url_seg","minLen":1,"maxLen":40},{"param":"billId","charset":"url_seg","minLen":1,"maxLen":40}]},"twin":{"fetchUrl":"https://v3.openstates.org/bills/{state}/{session}/{billId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["api.legiscan.com"],"queryParams":[{"name":"op","param":"op","charset":"alnum","minLen":3,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}}],"htmlRoutes":[{"id":"state-legislatures","match":{"hosts":["openstates.org","www.openstates.org","legiscan.com","www.legiscan.com"],"exactSegments":false},"mode":"state_legislatures_html"}]},{"id":"state-sos-business","name":"State Secretary of State Business Registries","category":"public-records","description":"Extracts public state business registry filings (DE, CA, FL, TX) with strict robots.txt enforcement, rate pacing, and WAF/Incapsula/Cloudflare rejection.","domains":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://comptroller.texas.gov/taxes/franchise/"],"routes":[{"match":{"hosts":["bizfileonline.sos.ca.gov"],"exactSegments":false,"pathSegments":["search","business",{"param":"recordId","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://bizfileonline.sos.ca.gov/api/Records/businesssearch/{recordId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}},{"match":{"hosts":["bizfileonline.sos.ca.gov"],"pathPrefix":"/api/Records/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}}],"htmlRoutes":[{"id":"state-sos-business","match":{"hosts":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"exactSegments":false},"mode":"state_sos_html"}]},{"id":"state-workforce-boards","name":"State Workforce & Public Job Boards","category":"jobs","description":"Extracts structured public job postings from state workforce portals (jobs.myflorida.com, statejobs.ny.gov, calcareers.ca.gov, usnlx.com) with Rule 5 honest fallbacks.","domains":["statejobs.ny.gov","calcareers.ca.gov","usnlx.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://jobs.myflorida.com/job/TALLAHASSEE-Attorney-FL-32301/1425569100/","https://statejobs.ny.gov/public/vacancyDetailsView.cfm?id=229697"],"htmlRoutes":[{"id":"state-workforce-boards","mode":"state_workforce_boards_html","match":{"excludeHosts":["governmentjobs.com","*.governmentjobs.com","workintexas.com","*.workintexas.com"],"anyOf":[{"hosts":["jobs.myflorida.com","statejobs.ny.gov","calcareers.ca.gov","www.calcareers.ca.gov","usnlx.com","www.usnlx.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".usnlx.com","param":"state","reserved":["www","api","login"]},"exactSegments":false}]}}]},{"id":"status-page-pack","name":"Status Page Pack","category":"developer","description":"Extracts service status, components, and incidents from Instatus, Better Stack, Status.io, and Cachet public JSON endpoints and SSR HTML pages.","domains":["deno.instatus.com","status.instatus.com","status.betterstack.com","status.raycast.com","status.gitlab.com","demo.cachethq.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://deno.instatus.com/","https://deno.instatus.com/v2/components.json","https://status.betterstack.com/","https://status.gitlab.com/1.0/status/5b36dc6502d06804c08349f7","https://demo.cachethq.io/api/v1/components"],"routes":[{"match":{"pathEquals":["/summary.json","/v2/components.json","/v2/incidents.json","/index.json","/api/v1/components","/api/v1/incidents","/api/v1/status"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}},{"match":{"exactSegments":true,"pathSegments":["1.0","status",{"param":"statusId","charset":"alnum","minLen":16,"maxLen":48}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}}],"htmlRoutes":[{"id":"status-page-pack","match":{"exactSegments":false},"mode":"status_page_pack_html"}]},{"id":"stockist","name":"Stockist Dealer Locator","category":"commerce-social","description":"Extracts public Stockist store/dealer locator JSON payloads and discovers Stockist widget tags on merchant HTML pages.","domains":["stockist.co","www.stockist.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stockist.co/api/v1/map_93wm75n3/locations/all"],"routes":[{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}},{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations","all"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}}],"htmlRoutes":[{"id":"stockist","match":{"exactSegments":false},"mode":"stockist_html"}]},{"id":"storemapper","name":"Storemapper Dealer Locator","category":"commerce-social","description":"Extracts public Storemapper store locator JSON feeds and discovers Storemapper widget IDs on merchant HTML pages.","domains":["www.storemapper.co","storemapper.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.storemapper.co/api/users/12873/stores.json"],"routes":[{"match":{"hosts":["www.storemapper.co","storemapper.co"],"pathSegments":["api","users",{"param":"userId","charset":"alnum_dash","minLen":1,"maxLen":64},"stores.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storemapper_locations"}}],"htmlRoutes":[{"id":"storemapper","match":{"exactSegments":false},"mode":"storemapper_html"}]},{"id":"storerocket","name":"StoreRocket Dealer Locator","category":"commerce-social","description":"Extracts public StoreRocket store locator JSON payloads and discovers StoreRocket widget IDs on merchant HTML pages.","domains":["storerocket.io","www.storerocket.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storerocket.io/api/user/OdJERNO8WE/locations"],"routes":[{"match":{"hosts":["storerocket.io","www.storerocket.io"],"pathSegments":["api","user",{"param":"userId","charset":"alnum_dash","minLen":2,"maxLen":64},"locations"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storerocket_locations"}}],"htmlRoutes":[{"id":"storerocket","match":{"exactSegments":false},"mode":"storerocket_html"}]},{"id":"strava-segments","name":"Strava Public Segments","category":"commerce-social","description":"Extracts Strava segments via authenticated API v3 (/api/v3/segments/* with STRAVA_ACCESS_TOKEN or Part 2 strava Virtual OAuth MCP) and public /segments/* __NEXT_DATA__ HTML fallback, rejecting /register/free authwalls.","domains":["www.strava.com","strava.com"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://www.strava.com/segments/229781","https://www.strava.com/api/v3/segments/229781"],"routes":[{"match":{"hosts":["www.strava.com","strava.com"],"exactSegments":true,"pathSegments":["api","v3","segments",{"param":"segmentId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576,"auth_mode":"key"},"extract":{"jsonMode":"strava_segments_json"}}],"htmlRoutes":[{"id":"strava-segments","mode":"strava_segments_html","match":{"hosts":["www.strava.com","strava.com"],"pathPrefix":"/segments/","exactSegments":false}}]},{"id":"supremecourt-gov","name":"U.S. Supreme Court Opinions, Dockets & Orders","category":"public-records","description":"Robots-enforced HTML adapter for Supreme Court slip opinions, public docket files, and orders of the Court.","domains":["supremecourt.gov","www.supremecourt.gov"],"auth_mode":"html","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.supremecourt.gov/opinions/slipopinion/24","https://www.supremecourt.gov/docket/docketfiles/html/public/23-939.html","https://www.supremecourt.gov/orders/ordersofthecourt/24"],"htmlRoutes":[{"id":"supremecourt-gov","match":{"anyOf":[{"pathPrefix":"/opinions/"},{"pathPrefix":"/docket/"},{"pathPrefix":"/orders/"}]},"mode":"supremecourt_html"}]},{"id":"taleo-full","name":"Oracle Taleo Career Section Job Search","category":"jobs","description":"Formats Oracle Taleo career-section job boards via the public /careersection/rest/jobboard/searchjobs endpoint (portal id from the page: title, location, posted date, contest number, total open requisitions) plus SSR FreeMarker /careersection/
/jobsearch.ftl and jobdetail.ftl HTML fallbacks.","domains":["hdr.taleo.net","*.taleo.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://hdr.taleo.net/careersection/rest/jobboard/searchjobs?lang=en&portal=101430233§ion=ex","https://chicago.taleo.net/careersection/100/jobsearch.ftl"],"routes":[{"match":{"hostSubdomain":{"suffix":".taleo.net","param":"tenant","reserved":["www"]},"pathEquals":["/careersection/rest/jobboard/searchjobs"],"queryParams":[{"name":"portal","param":"portal","charset":"digits","minLen":4,"maxLen":20},{"name":"section","param":"section","charset":"slug","minLen":1,"maxLen":40,"optional":true}]},"twin":{"fetchUrl":"https://{host}/careersection/rest/jobboard/searchjobs?lang=en&portal={portal}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","headers":{"tz":"GMT-06:00","tzname":"America/Chicago"},"requestBody":"{\"multilineEnabled\":false,\"sortingSelection\":{\"sortBySelectionParam\":\"3\",\"ascendingSortingOrder\":\"false\"},\"fieldData\":{\"fields\":{\"KEYWORD\":\"\",\"LOCATION\":\"\"},\"valid\":true},\"filterSelectionParam\":{\"searchFilterSelections\":[]},\"advancedSearchFiltersSelectionParam\":{\"searchFilterSelections\":[]},\"pageNo\":1}","maxBytes":4194304},"extract":{"jsonMode":"taleo_searchjobs_json"}}],"htmlRoutes":[{"id":"taleo-full","mode":"taleo_full_html","match":{"pathPrefix":"/careersection/","exactSegments":false}}]},{"id":"target","name":"Target","category":"commerce-social","description":"Extracts Target product pages from schema.org Product JSON-LD (including entity-encoded ld+json) and live Target SSR HTML metadata without calling disallowed redsky endpoints.","domains":["target.com","www.target.com","redsky.target.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.target.com/p/campus-lab-university-of-arkansas-at-monticello-official-uam-boll-weevils-logo-unisex-adult-pull-over-hoodie/-/A-1000000076"],"htmlRoutes":[{"id":"target","match":{"hosts":["target.com","www.target.com"]},"mode":"target_html"}]},{"id":"teamtailor","name":"Teamtailor Career Portals","category":"jobs","description":"Upgrades [.na].teamtailor.com career roots to their /jobs.rss feed with locations and departments.","domains":["*.teamtailor.com"],"exampleUrls":["https://stratio.teamtailor.com/","https://stratio.teamtailor.com/jobs"],"match":{"hostSubdomain":{"suffix":".teamtailor.com","param":"org","stripOptional2LetterRegion":true,"reserved":["www","app","career"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"teamtailor","fetchUrl":"https://{host}/jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"org","titleTemplate":"{channelTitle} — Open Roles ({itemCount})","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["tt:department","category"],"default":"-"},"loc":{"tags":["tt:location","g:location","location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"id":"tech-job-boards-jsonld","name":"Tech Job Boards (BuiltIn, Wellfound, Dice)","category":"jobs","description":"Extracts JobPosting JSON-LD (including HTML-entity-encoded application/ld+json) from BuiltIn, Wellfound, and Dice while honoring robots.txt and rejecting Cloudflare Turnstile/SPA shells.","domains":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://builtin.com/job/executive-employee-social-media-vice-president/12592638"],"htmlRoutes":[{"id":"tech-job-boards-jsonld","mode":"tech_job_boards_jsonld_html","match":{"hosts":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"exactSegments":false}}]},{"id":"terraform-registry","name":"Terraform Registry","category":"developer","description":"Upgrades registry.terraform.io provider and module pages to the official keyless /v1/ JSON API with versions, documentation entries, inputs, outputs, and README.","domains":["registry.terraform.io"],"exampleUrls":["https://registry.terraform.io/providers/hashicorp/random","https://registry.terraform.io/providers/hashicorp/random/3.8.1","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/5.1.0"],"routes":[{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","docs"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","submodules","examples"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}}]},{"id":"ticketmaster-discovery","name":"Ticketmaster Discovery API","category":"commerce-social","description":"Extracts Ticketmaster events, venues, and attractions via the official Ticketmaster Discovery API v2 with Schema.org Event JSON-LD HTML fallback.","domains":["ticketmaster.com","www.ticketmaster.com","app.ticketmaster.com"],"auth_mode":"key","exampleUrls":["https://app.ticketmaster.com/discovery/v2/events.json?keyword=concert&countryCode=US","https://www.ticketmaster.com/demo-tour-los-angeles-california-12-01-2026/event/3C006457CF441F75"],"routes":[{"match":{"hosts":["app.ticketmaster.com"],"pathPrefix":"/discovery/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}},{"match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"scanSegment":{"afterLiteral":"event","param":"eventId","charset":"alnum","minLen":6,"maxLen":32}},"twin":{"fetchUrl":"https://app.ticketmaster.com/discovery/v2/events/{eventId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}}],"htmlRoutes":[{"id":"ticketmaster-discovery","match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"exactSegments":false},"mode":"ticketmaster_html"}]},{"id":"townnews-blox","name":"TownNews BLOX CMS","category":"commerce-social","description":"Extracts TownNews BLOX ?f=json news asset twins and discovers tncms/bloxcms markers on local publisher HTML pages.","domains":["lancasteronline.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lancasteronline.com/sports/highschool/football/district-3-gold-piaa-glory-up-for-grabs-for-4-l-l-league-football-teams/article_a6f1fede-b459-44f2-a5cd-8224c48f76a8.html"],"routes":[{"match":{"hosts":["lancasteronline.com"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"townnews_blox_json"}}],"htmlRoutes":[{"id":"townnews-blox","match":{"exactSegments":false},"mode":"townnews_blox_html"}]},{"id":"tq-ebike","name":"TQ e-Mobility Products & Support","category":"commerce-social","description":"Extracts Product JSON-LD, drive system technical specs, and support documentation from www.tq-ebike.com product and help-support pages.","domains":["www.tq-ebike.com","tq-ebike.com"],"exampleUrls":["https://www.tq-ebike.com/en/e-bike-system/hpr50/"],"htmlRoutes":[{"id":"tq-ebike","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["products",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["e-bike-system",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["help-support",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main","article",".tx-specs",".site-content","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"trailforks-mtb-project","name":"Trailforks & MTB Project Trail Intelligence","category":"commerce-social","description":"Official Trailforks API v1 key-authenticated twin + HTML fallback for Trailforks and MTB Project trail reports (honoring mtbproject.com Crawl-delay: 60 and Disallow: /data*).","domains":["trailforks.com","www.trailforks.com","mtbproject.com","www.mtbproject.com"],"auth_mode":"key","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.trailforks.com/trails/betasso-preserve-canyon-loop/","https://www.trailforks.com/api/1/trail?id=40401","https://www.mtbproject.com/trail/12376/buffehr-creek-trail"],"routes":[{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathEquals":["/api/1/trail","/api/1/trail/","/api/1/trails","/api/1/trails/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}},{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathSegments":["trails",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}],"exactSegments":false},"twin":{"fetchUrl":"https://www.trailforks.com/api/1/trail?id={slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}}],"htmlRoutes":[{"id":"trailforks-mtb-project","match":{"exactSegments":false},"mode":"trailforks_mtb_html"}]},{"id":"transitland-gtfs","name":"Transitland GTFS Registry","category":"public-records","description":"Transitland v2 REST API (apikey header on apex transit.land) for GTFS feeds/operators/routes/stops with www.transit.land/data/feeds HTML fallback.","domains":["transit.land","www.transit.land"],"auth_mode":"key","exampleUrls":["https://transit.land/api/v2/rest/feeds?limit=1","https://www.transit.land/data/feeds/f-9q9-bart"],"routes":[{"match":{"hosts":["transit.land"],"pathPrefix":"/api/v2/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}},{"match":{"hosts":["www.transit.land","transit.land"],"exactSegments":true,"pathSegments":["data","feeds",{"param":"feedId","charset":"alnum_dash","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://transit.land/api/v2/rest/feeds/{feedId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}}],"htmlRoutes":[{"id":"transitland-gtfs","match":{"hosts":["www.transit.land","transit.land"],"exactSegments":false},"mode":"transitland_html"}]},{"id":"treasury-fiscal-data","name":"U.S. Treasury Fiscal Data","category":"finance","description":"Upgrades fiscaldata.treasury.gov dataset pages to keyless api.fiscaldata.treasury.gov JSON endpoints with metadata-labeled GFM tables and HTML fallback.","domains":["fiscaldata.treasury.gov","api.fiscaldata.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/debt-to-the-penny","https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1"],"routes":[{"match":{"hosts":["api.fiscaldata.treasury.gov"],"pathPrefix":"/services/api/fiscal_service/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}},{"match":{"hosts":["fiscaldata.treasury.gov"],"pathPrefix":"/datasets/debt-to-the-penny"},"twin":{"fetchUrl":"https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page[size]=1","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}}],"htmlRoutes":[{"id":"treasury-fiscal-data","match":{"hosts":["fiscaldata.treasury.gov"],"exactSegments":false},"mode":"treasury_fiscal_html"}]},{"id":"trustpilot","name":"Trustpilot Business Reviews","category":"commerce-social","description":"Extracts Trustpilot business summary and review records from __NEXT_DATA__ or JSON-LD while honoring robots.txt policies.","domains":["trustpilot.com","www.trustpilot.com"],"auth_mode":"html","exampleUrls":["https://www.trustpilot.com/review/shopify.com"],"htmlRoutes":[{"id":"trustpilot","match":{"hosts":["trustpilot.com","www.trustpilot.com"],"exactSegments":false},"mode":"trustpilot_html"}]},{"id":"twitch-kick","name":"Twitch & Kick Streaming","category":"commerce-social","description":"Extracts Twitch Helix (Bearer + Client-Id) and Kick public v1/v2 channel APIs plus Twitch/Kick channel HTML.","domains":["api.twitch.tv","www.twitch.tv","twitch.tv","api.kick.com","kick.com","www.kick.com"],"auth_mode":"key","exampleUrls":["https://kick.com/api/v2/channels/kick","https://www.twitch.tv/twitch","https://kick.com/kick","https://api.twitch.tv/helix/users?login=twitch"],"routes":[{"match":{"hosts":["api.twitch.tv"],"pathPrefix":"/helix/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["api.kick.com"],"pathPrefix":"/public/v1/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["kick.com","www.kick.com"],"exactSegments":true,"pathSegments":["api","v2","channels",{"param":"slug","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub"},"extract":{"jsonMode":"twitch_kick_json"}}],"htmlRoutes":[{"id":"twitch-kick","match":{"hosts":["www.twitch.tv","twitch.tv","kick.com","www.kick.com"],"exactSegments":false},"mode":"twitch_kick_html"}]},{"id":"tyler-energov","name":"Tyler Technologies EnerGov SelfService","category":"public-records","description":"Extracts public permit, plan, and license records from Tyler EnerGov SelfService APIs and SSR HTML while rejecting empty AngularJS shells and WAF challenges.","domains":["energovweb.capecoral.gov","energovcss.miamibeachfl.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://energovweb.capecoral.gov/EnerGovProd/selfservice/api/energov/permits","https://energovweb.capecoral.gov/EnerGovProd/selfservice","https://energovcss.miamibeachfl.gov/energovprod/selfservice/"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/EnerGov_Prod/SelfService/api/"},{"pathPrefix":"/EnerGovProd/selfservice/api/"},{"pathPrefix":"/energovprod/selfservice/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"tyler_energov_json"}}],"htmlRoutes":[{"id":"tyler-energov","match":{"exactSegments":false},"mode":"tyler_energov_html"}]},{"id":"ukg-paylocity-dover","name":"UKG Pro, Paylocity & Dover Job Boards","category":"jobs","description":"Extracts structured open roles from Paylocity (/recruiting/api/feed/jobs & window.pageData), UKG Pro (*/JobBoard/* only, never / or */JobBoardView), and Dover HTML/SSR __NEXT_DATA__ (never /api/).","domains":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com"],"exampleUrls":["https://recruiting.paylocity.com/Recruiting/Jobs/All/cfe0e892-760a-4f34-b732-e6d0be968d4f"],"routes":[{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/all/","scanSegment":{"afterLiteral":"all","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"https://recruiting.paylocity.com/recruiting/api/feed/jobs/{guid}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}},{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/api/feed/jobs/","scanSegment":{"afterLiteral":"jobs","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}}],"htmlRoutes":[{"id":"ukg-paylocity-dover","mode":"ukg_pro_html","match":{"hosts":["recruiting.ultipro.com"],"pathContainsSegment":"JobBoard","minSegments":3}},{"id":"ukg-paylocity-dover","mode":"paylocity_html","match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/"}},{"id":"ukg-paylocity-dover","mode":"dover_html","match":{"anyOf":[{"hosts":["app.dover.com"],"exactSegments":false,"pathSegments":["jobs",{"param":"org","charset":"slug","minLen":1,"maxLen":120}]},{"hosts":["jobs.dover.com"],"minSegments":1,"reservedFirstSegment":["api","apply","static","assets","_next","login"]}]}}]},{"id":"us-cfr-govinfo","name":"U.S. CFR & GovInfo","category":"public-records","description":"Bypasses the empty Angular /app/details/ SPA on govinfo.gov by fetching static /content/pkg//html/*.htm documents or /wssearch/getContentDetail summary JSON.","domains":["www.govinfo.gov","govinfo.gov"],"exampleUrls":["https://www.govinfo.gov/app/details/CFR-2023-title16-vol2/CFR-2023-title16-vol2-part1500","https://www.govinfo.gov/app/details/CFR-2023-title16-vol2","https://www.govinfo.gov/wssearch/getContentDetail?packageId=CFR-2023-title16-vol2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"param":"granuleId","charset":"pkg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{granuleId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{granuleId} ({pkgId})"}},{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{pkgId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{pkgId}"}},{"match":{"pathEquals":["/wssearch/getContentDetail"],"queryParams":[{"name":"packageId","param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"name":"granuleId","param":"granuleId","charset":"pkg","optional":true,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["title","packageId"],"vars":{"title":{"paths":["title"],"fallbackTemplate":"{pkgId}","trim":true},"packageId":{"paths":["packageId"],"fallbackTemplate":"{pkgId}"},"collection":{"paths":["collectionName","collection","collectionCode"]},"category":{"paths":["category"]},"dateIssued":{"paths":["dateIssued"]},"lastModified":{"paths":["lastModified"],"sliceMax":10},"authors":{"paths":["governmentAuthor","metadata.agency"],"join":", ","limit":10},"granuleCount":{"paths":["granuleCount"],"format":"int_comma"},"pdfLink":{"paths":["download.pdfLink"],"requireHttps":true},"htmlLink":{"paths":["download.htmlLink","download.htmLink"],"requireHttps":true},"xmlLink":{"paths":["download.xmlLink"],"requireHttps":true},"txtLink":{"paths":["download.txtLink"],"requireHttps":true},"zipLink":{"paths":["download.zipLink"],"requireHttps":true},"modsLink":{"paths":["download.modsLink"],"requireHttps":true}},"titleTemplate":"{title}","authorVar":"authors","publishedTimeVar":"dateIssued","bullets":[{"label":"Package ID","template":"`{packageId}`","whenVar":"packageId"},{"label":"Collection","template":"{collection}","whenVar":"collection"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Date Issued","template":"{dateIssued}","whenVar":"dateIssued"},{"label":"Last Modified","template":"{lastModified}","whenVar":"lastModified"},{"label":"Government Author","template":"{authors}","whenVar":"authors"},{"label":"Granules","template":"{granuleCount}","whenVar":"granuleCount"},{"label":"PDF Download","template":"{pdfLink}","whenVar":"pdfLink"},{"label":"HTML Download","template":"{htmlLink}","whenVar":"htmlLink"},{"label":"XML Download","template":"{xmlLink}","whenVar":"xmlLink"},{"label":"Text Download","template":"{txtLink}","whenVar":"txtLink"},{"label":"ZIP Archive","template":"{zipLink}","whenVar":"zipLink"}],"linksVars":["pdfLink","htmlLink","xmlLink","txtLink","zipLink","modsLink"]}}]},{"id":"usajobs","name":"USAJOBS Federal Jobs","category":"jobs","description":"Extracts federal job search listings and codelists from data.usajobs.gov (with Authorization-Key + User-Agent) and JobPosting/HTML job details from www.usajobs.gov.","domains":["data.usajobs.gov","www.usajobs.gov","usajobs.gov"],"auth_mode":"key","user_agent_profile":"usajobs","strict_robots":true,"exampleUrls":["https://data.usajobs.gov/api/search?Keyword=software","https://www.usajobs.gov/job/893002300"],"routes":[{"match":{"hosts":["data.usajobs.gov"],"anyOf":[{"pathPrefix":"/api/search"},{"pathPrefix":"/api/codelist/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usajobs_json"}}],"htmlRoutes":[{"id":"usajobs","mode":"usajobs_html","match":{"hosts":["www.usajobs.gov","usajobs.gov"],"exactSegments":false}}]},{"id":"usaspending","name":"USAspending.gov Federal Awards","category":"public-records","description":"Upgrades usaspending.gov/award/ pages to api.usaspending.gov/api/v2/awards// JSON details.","domains":["www.usaspending.gov","usaspending.gov"],"exampleUrls":["https://www.usaspending.gov/award/CONT_AWD_ZSMG_9700_HTC71114DR027_9700"],"match":{"exactSegments":false,"pathSegments":["award",{"param":"awardId","charset":"pkg","minLen":4,"maxLen":140}]},"twin":{"fetchUrl":"https://api.usaspending.gov/api/v2/awards/{awardId}/","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["generated_unique_award_id","piid","fain"],"vars":{"idLabel":{"paths":["piid","fain","uri"],"fallbackTemplate":"{awardId}"},"category":{"paths":["category"],"default":"Federal Award"},"recipient":{"paths":["recipient.recipient_name"]},"awardingAgency":{"paths":["awarding_agency.toptier_agency.name"]},"fundingAgency":{"paths":["funding_agency.toptier_agency.name"]},"obligation":{"paths":["total_obligation"],"format":"usd_compact"},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"startDate":{"paths":["period_of_performance.start_date"]},"hasPop":{"paths":["period_of_performance.start_date","period_of_performance.end_date"]},"startOrQ":{"paths":["period_of_performance.start_date"],"default":"?"},"endOrQ":{"paths":["period_of_performance.end_date"],"default":"?"}},"titleTemplate":"{idLabel} — {recipient} (USAspending)","titleWhenVar":"recipient","titleFallbackTemplate":"{idLabel} (USAspending)","descriptionVar":"descShort","publishedTimeVar":"startDate","bullets":[{"label":"Award ID","template":"`{idLabel}` ({category})"},{"label":"Recipient","template":"{recipient}","whenVar":"recipient"},{"label":"Total Obligation","template":"{obligation}","whenVar":"obligation"},{"label":"Awarding Agency","template":"{awardingAgency}","whenVar":"awardingAgency"},{"label":"Funding Agency","template":"{fundingAgency}","whenVar":"fundingAgency"},{"label":"Period of Performance","template":"{startOrQ} → {endOrQ}","whenVar":"hasPop"}],"sections":[{"heading":"Award Description","textVar":"desc"}]}},{"id":"uscode-house","name":"U.S. Code (House OLRC)","category":"public-records","description":"HTML extractor for U.S. House Office of the Law Revision Counsel United States Code sections, title browse trees, and legacy /view.xhtml pages.","domains":["uscode.house.gov"],"auth_mode":"pub","exampleUrls":["https://uscode.house.gov/us/usc/t17/s107/","https://uscode.house.gov/browse.html","https://uscode.house.gov/us/usc/t17/frontmatter/"],"htmlRoutes":[{"id":"uscode-house","match":{"anyOf":[{"pathPrefix":"/us/usc/"},{"pathEquals":["/browse.html"]},{"pathPrefix":"/browse-tree/"},{"pathEquals":["/view.xhtml"]}]},"mode":"uscode_house_html"}]},{"id":"usda-nass-fdc","name":"USDA FoodData Central & NASS QuickStats","category":"research-health","description":"USDA FoodData Central REST API v1 (/fdc/v1/...) and NASS QuickStats (/api/api_GET/) adapter with Angular SPA shell guard.","domains":["quickstats.nass.usda.gov","fdc.nal.usda.gov","api.nal.usda.gov"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://api.nal.usda.gov/fdc/v1/food/171705","https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=3","https://quickstats.nass.usda.gov/api/api_GET/?commodity_desc=CORN&year=2023&state_alpha=IA"],"routes":[{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":true,"pathSegments":["fdc","v1","food",{"param":"fdcId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://api.nal.usda.gov/fdc/v1/food/{fdcId}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":false,"pathPrefix":"/fdc/v1/foods"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["quickstats.nass.usda.gov"],"exactSegments":false,"pathEquals":["/api/api_GET","/api/api_GET/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"format":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_nass_json"}}],"htmlRoutes":[{"id":"usda-nass-fdc","match":{"hosts":["fdc.nal.usda.gov"],"exactSegments":false},"mode":"usda_fdc_html"}]},{"id":"usfs-blm-trails","name":"USFS & BLM Trails ArcGIS Services","category":"public-records","description":"US Forest Service (apps.fs.usda.gov) and BLM (gis.blm.gov) ArcGIS MapServer/FeatureServer layer metadata and /query feature adapter, scoped off *.arcgis.com.","domains":["apps.fs.usda.gov","gis.blm.gov"],"auth_mode":"pub","exampleUrls":["https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recreation_Offline/FeatureServer/0/query?where=1%3D1&outFields=*&resultRecordCount=1&f=json","https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recs_pts/MapServer/0?f=json","https://gis.blm.gov/arcgis/rest/services/transportation/BLM_Natl_GTLF_Public_Display/MapServer?f=json"],"routes":[{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","pathSuffix":"/query"},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","pathSuffix":"/query"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"defaultQueryParams":{"where":"1=1","outFields":"*","returnGeometry":"false","resultRecordCount":"25"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usfs_blm_trails_json"}},{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","arcgisRestLayer":true},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","arcgisRestLayer":true}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usfs_blm_trails_json"}}]},{"id":"usgs-earthquakes","name":"USGS Earthquake Hazards Program","category":"research-health","description":"USGS GeoJSON earthquake summary feeds, FDSNWS Event Query API, and eventpage JSON twins.","domains":["earthquake.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson","https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=5&minmagnitude=4.5","https://earthquake.usgs.gov/earthquakes/eventpage/us6000ue1k/executive"],"routes":[{"match":{"hosts":["earthquake.usgs.gov"],"anyOf":[{"pathPrefix":"/earthquakes/feed/"},{"pathPrefix":"/fdsnws/event/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_earthquakes_json"}},{"match":{"hosts":["earthquake.usgs.gov"],"exactSegments":false,"pathSegments":["earthquakes","eventpage",{"param":"eventId","charset":"alnum_dash","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"https://earthquake.usgs.gov/fdsnws/event/1/query?eventid={eventId}&format=geojson","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_earthquakes_json"}}]},{"id":"usgs-water","name":"USGS Water Services & OGC API","category":"research-health","description":"USGS NWIS Water Services (WaterML JSON and tab-delimited RDB) and api.waterdata.usgs.gov OGC API GeoJSON adapter.","domains":["waterservices.usgs.gov","api.waterdata.usgs.gov","waterdata.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://api.waterdata.usgs.gov/ogcapi/v0/collections/monitoring-locations?f=json","https://api.waterdata.usgs.gov/ogcapi/v0/collections?f=json"],"routes":[{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/","queryParams":[{"name":"format","param":"fmt","allowValues":["rdb","rdb,1.0"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"usgs_water_rdb"}},{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["api.waterdata.usgs.gov"],"pathPrefix":"/ogcapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["waterdata.usgs.gov"],"exactSegments":false,"pathSegments":["monitoring-location",{"param":"siteNo","charset":"digits","minLen":5,"maxLen":15}]},"twin":{"fetchUrl":"https://waterservices.usgs.gov/nwis/iv/?format=json&sites={siteNo}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_water_json"}}]},{"id":"uspto-patentsview","name":"USPTO PatentsView & Open Data Portal","category":"public-records","description":"USPTO Open Data Portal (api.uspto.gov) patent application and PatentsView API JSON adapter with HTML fallback.","domains":["patentsview.org","www.patentsview.org","search.patentsview.org","api.patentsview.org","api.uspto.gov","data.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.uspto.gov/api/v1/patent/applications/16330077","https://api.uspto.gov/api/v1/patent/applications/search?q=16330077"],"routes":[{"match":{"hosts":["api.uspto.gov"],"pathPrefix":"/api/v1/patent/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["api.patentsview.org"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patent",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patents",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}}],"htmlRoutes":[{"id":"uspto-patentsview","match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false},"mode":"uspto_patentsview_html"}]},{"id":"uspto-ppubs","name":"USPTO Patent Public Search (PPUBS)","category":"public-records","description":"USPTO Patent Public Search (ppubs.uspto.gov) HTML adapter rejecting empty SPA shells.","domains":["ppubs.uspto.gov","patft.uspto.gov"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://ppubs.uspto.gov/basic/"],"htmlRoutes":[{"id":"uspto-ppubs","match":{"hosts":["ppubs.uspto.gov","patft.uspto.gov"],"exactSegments":false},"mode":"uspto_ppubs_html"}]},{"id":"uspto-tsdr","name":"USPTO TSDR Trademark Status","category":"public-records","description":"USPTO Trademark Status & Document Retrieval (TSDR) API JSON adapter with keyless tsdr.uspto.gov/statusview HTML fallback.","domains":["tsdr.uspto.gov","tsdrapi.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://tsdrapi.uspto.gov/ts/cd/casestatus/sn78787878/info.json","https://tsdr.uspto.gov/statusview/sn78787878"],"routes":[{"match":{"hosts":["tsdrapi.uspto.gov"],"pathPrefix":"/ts/cd/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}},{"match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false,"pathSegments":["statusview",{"param":"caseNum","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://tsdrapi.uspto.gov/ts/cd/casestatus/{caseNum}/info.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}}],"htmlRoutes":[{"id":"uspto-tsdr","match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false},"mode":"uspto_tsdr_html"}]},{"id":"vanilla-forums","name":"Vanilla Forums","category":"commerce-social","description":"Upgrades Vanilla Forums /discussion/{discussionID} URLs to same-origin /api/v2/discussions/{discussionID} JSON twins with HTML fallback.","domains":["forum.onshape.com","forum.polkaudio.com","forum.linuxfoundation.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://forum.onshape.com/discussion/32195/new-feature-codes","https://forum.onshape.com/api/v2/discussions/32195","https://forum.polkaudio.com/api/v2/discussions/163343"],"routes":[{"match":{"exactSegments":false,"pathSegments":["discussion",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/api/v2/discussions/{discussionID}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}}],"htmlRoutes":[{"id":"vanilla-forums","match":{"exactSegments":false},"mode":"vanilla_forums_html"}]},{"id":"vimeo","name":"Vimeo Video & oEmbed","category":"commerce-social","description":"Extracts Vimeo video and player embed metadata via Vimeo oEmbed JSON and VideoObject HTML fallback.","domains":["vimeo.com","www.vimeo.com","player.vimeo.com"],"auth_mode":"pub","exampleUrls":["https://vimeo.com/76979871","https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F76979871","https://player.vimeo.com/video/76979871"],"routes":[{"match":{"hosts":["vimeo.com","www.vimeo.com"],"pathEquals":["/api/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["vimeo.com","www.vimeo.com"],"exactSegments":true,"pathSegments":[{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["player.vimeo.com"],"exactSegments":true,"pathSegments":["video",{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}}],"htmlRoutes":[{"id":"vimeo","match":{"exactSegments":false},"mode":"vimeo_html"}]},{"id":"vtex","name":"VTEX Storefronts & Catalog API","category":"commerce-social","description":"Extracts VTEX storefront product JSON from /api/catalog_system/pub/products/search and /variations endpoints, plus post-HTML storefront JSON-LD and companion discovery.","domains":["www.motorola.com.br"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.motorola.com.br/api/catalog_system/pub/products/search?fq=productId:488"],"routes":[{"match":{"pathEquals":["/api/catalog_system/pub/products/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathPrefix":"/api/catalog_system/pub/products/search/","pathSuffix":"/p"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathSegments":["api","catalog_system","pub","products","variations",{"param":"productId","charset":"pkg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}}],"htmlRoutes":[{"id":"vtex","match":{"exactSegments":false},"mode":"vtex_html"}]},{"id":"walmart","name":"Walmart Official Affiliate/IO API","category":"commerce-social","description":"Official Walmart Affiliate/IO API product lookup only (zero HTML scraping of walmart.com).","domains":["walmart.com","www.walmart.com","developer.api.walmart.com"],"auth_mode":"key","exampleUrls":["https://www.walmart.com/ip/132000132","https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/132000132"],"routes":[{"match":{"hosts":["walmart.com","www.walmart.com"],"anyOf":[{"exactSegments":true,"pathSegments":["ip",{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]},{"exactSegments":false,"pathSegments":["ip",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]}]},"twin":{"fetchUrl":"https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}},{"match":{"hosts":["developer.api.walmart.com"],"pathPrefix":"/api-proxy/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}}]},{"id":"weather-gov","name":"National Weather Service (weather.gov)","category":"research-health","description":"NOAA National Weather Service GeoJSON API (points, gridpoint forecasts, active alerts, observations) and forecast.weather.gov HTML extractor with identifying User-Agent.","domains":["weather.gov","www.weather.gov","api.weather.gov","forecast.weather.gov"],"auth_mode":"pub","user_agent_profile":"weather-gov","strict_robots":true,"exampleUrls":["https://forecast.weather.gov/MapClick.php?lat=39.7456&lon=-97.0892","https://forecast.weather.gov/MapClick.php?lat=40.7128&lon=-74.0060"],"routes":[{"match":{"hosts":["api.weather.gov"],"anyOf":[{"pathPrefix":"/points/"},{"pathPrefix":"/gridpoints/"},{"pathPrefix":"/alerts"},{"pathPrefix":"/stations/"},{"pathPrefix":"/zones/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json","maxBytes":2097152},"extract":{"jsonMode":"weather_gov_json"}}],"htmlRoutes":[{"id":"weather-gov","match":{"hosts":["weather.gov","www.weather.gov","forecast.weather.gov"],"exactSegments":false},"mode":"weather_gov_html"}]},{"id":"wikidata-openlibrary","name":"Wikidata & Open Library","category":"research-health","description":"Upgrades wikidata.org/wiki/Q* to Special:EntityData/Q*.json (handling labels.en, labels.mul, and sitelinks.enwiki fallbacks) and openlibrary.org/isbn/* to /isbn/*.json (never calling disallowed /api/*).","domains":["www.wikidata.org","wikidata.org","openlibrary.org","www.openlibrary.org"],"exampleUrls":["https://www.wikidata.org/wiki/Q42","https://openlibrary.org/isbn/9780140328721"],"routes":[{"match":{"hosts":["www.wikidata.org","wikidata.org"],"exactSegments":true,"pathPrefix":"/wiki/Q","pathSegments":["wiki",{"param":"qidNum","stripPrefix":"Q","charset":"digits","minLen":1,"maxLen":15}]},"twin":{"fetchUrl":"https://www.wikidata.org/wiki/Special:EntityData/Q{qidNum}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["entities"],"vars":{"qid":{"template":"Q{qidNum}"},"labelEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.en.value"},"trim":true},"labelMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.mul.value"},"trim":true},"labelEnwiki":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"trim":true},"labelMulOrEnwiki":{"template":"{labelMul}","whenVars":["labelMul"],"fallbackVar":"labelEnwiki"},"label":{"template":"{labelEn}","whenVars":["labelEn"],"fallbackVar":"labelMulOrEnwiki"},"descEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.en.value"},"trim":true},"descMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.mul.value"},"trim":true},"desc":{"template":"{descEn}","whenVars":["descEn"],"fallbackVar":"descMul"},"aliasesEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.en"},"subField":"value","join":", ","limit":10},"aliasesMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.mul"},"subField":"value","join":", ","limit":10},"aliases":{"template":"{aliasesEn}","whenVars":["aliasesEn"],"fallbackVar":"aliasesMul"},"modified":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"modified"},"sliceMax":10},"claimProps":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims"},"format":"object_keys","limit":25,"itemWrap":"`","join":", "},"instanceOf":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P31"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"sexOrGender":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P21"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":3},"citizenship":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P27"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":5},"occupation":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P106"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"birthDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P569"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"deathDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P570"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"inception":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P571"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"population":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P1082"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal","fallbackLast":true},"subField":"mainsnak.datavalue.value.amount","format":"int_comma"},"officialWebsite":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P856.0.mainsnak.datavalue.value"},"trim":true,"requireHttpPrefix":true},"enwikiSlug":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"replaceAll":{"from":" ","to":"_"}},"enwikiUrl":{"template":"https://en.wikipedia.org/wiki/{enwikiSlug}","whenVars":["enwikiSlug"],"requireHttps":true},"wikidataUrl":{"template":"https://www.wikidata.org/wiki/{qid}","requireHttps":true}},"requireVars":["label"],"titleTemplate":"{label} ({qid})","descriptionVar":"desc","publishedTimeVar":"modified","introVar":"desc","bullets":[{"label":"Wikidata ID","template":"`{qid}`"},{"label":"Also Known As","template":"{aliases}","whenVar":"aliases"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"Instance Of","template":"{instanceOf}","whenVar":"instanceOf"},{"label":"Sex or Gender","template":"{sexOrGender}","whenVar":"sexOrGender"},{"label":"Country of Citizenship","template":"{citizenship}","whenVar":"citizenship"},{"label":"Occupation","template":"{occupation}","whenVar":"occupation"},{"label":"Date of Birth","template":"{birthDate}","whenVar":"birthDate"},{"label":"Date of Death","template":"{deathDate}","whenVar":"deathDate"},{"label":"Inception","template":"{inception}","whenVar":"inception"},{"label":"Population","template":"{population}","whenVar":"population"},{"label":"Official Website","template":"{officialWebsite}","whenVar":"officialWebsite"},{"label":"Claim Properties","template":"{claimProps}","whenVar":"claimProps"},{"label":"English Wikipedia","template":"{enwikiUrl}","whenVar":"enwikiUrl"},{"label":"Wikidata URL","template":"{wikidataUrl}","whenVar":"wikidataUrl"}],"linksVars":["wikidataUrl","enwikiUrl","officialWebsite"]}},{"match":{"hosts":["openlibrary.org","www.openlibrary.org"],"exactSegments":true,"pathSegments":["isbn",{"param":"isbn","stripSuffix":".json","charset":"alnum_dash","minLen":10,"maxLen":17}]},"twin":{"fetchUrl":"https://openlibrary.org/isbn/{isbn}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"subtitle":{"paths":["subtitle"],"trim":true},"isbn13":{"paths":["isbn_13"],"itemWrap":"`","join":", "},"isbn10":{"paths":["isbn_10"],"itemWrap":"`","join":", "},"publishers":{"paths":["publishers"],"join":", ","limit":8},"publishDate":{"paths":["publish_date"],"trim":true},"pages":{"paths":["number_of_pages"],"format":"int_comma"},"contributions":{"paths":["contributions"],"join":", ","limit":8},"byStatement":{"paths":["by_statement"],"trim":true,"sliceMax":200},"authorLine":{"template":"{byStatement}","whenVars":["byStatement"],"fallbackVar":"contributions"},"authors":{"paths":["authors"],"subField":"key","join":", ","limit":8},"works":{"paths":["works"],"subField":"key","join":", ","limit":5},"olKey":{"paths":["key"]},"olUrl":{"template":"https://openlibrary.org{olKey}","whenVars":["olKey"],"requireHttps":true},"desc":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true},"descShort":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true,"sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"authorLine","publishedTimeVar":"publishDate","bullets":[{"label":"Subtitle","template":"{subtitle}","whenVar":"subtitle"},{"label":"ISBN-13","template":"{isbn13}","whenVar":"isbn13"},{"label":"ISBN-10","template":"{isbn10}","whenVar":"isbn10"},{"label":"Publishers","template":"{publishers}","whenVar":"publishers"},{"label":"Published","template":"{publishDate}","whenVar":"publishDate"},{"label":"Pages","template":"{pages}","whenVar":"pages"},{"label":"By","template":"{byStatement}","whenVar":"byStatement"},{"label":"Contributors","template":"{contributions}","whenVar":"contributions"},{"label":"Author Keys","template":"{authors}","whenVar":"authors"},{"label":"Work Keys","template":"{works}","whenVar":"works"},{"label":"Open Library URL","template":"{olUrl}","whenVar":"olUrl"}],"sections":[{"heading":"Description","textVar":"desc"}],"linksVars":["olUrl"]}}]},{"id":"wild-apricot","name":"Wild Apricot Member Associations & Events","category":"commerce-social","description":"Extracts public Wild Apricot association event details, upcoming event schedules, and member directories from WaGadget DOM while rejecting /sys/login and login-only gated shells.","domains":["www.ndshp.org","members.mbbi.org","*.wildapricot.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.ndshp.org/event-6925405","https://members.mbbi.org/event-6156275","https://members.mbbi.org/Member-Directory/"],"htmlRoutes":[{"id":"wild-apricot","match":{"exactSegments":false},"mode":"wild_apricot_html"}]},{"id":"wistia","name":"Wistia Video Hosting","category":"commerce-social","description":"Extracts Wistia /embed/medias/{mediaId}.json twins and Wistia video HTML while respecting robots.txt /oembed disallow and rejecting login walls.","domains":["fast.wistia.com","fast.wistia.net","home.wistia.com","wistia.com","www.wistia.com"],"auth_mode":"pub","exampleUrls":["https://fast.wistia.com/embed/medias/29b0fbf547.json","https://fast.wistia.com/embed/iframe/29b0fbf547","https://wistia.com/blog/video-marketing-statistics"],"routes":[{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSuffix":".json","pathSegments":["embed","medias",{"param":"mediaId","charset":"alnum","stripSuffix":".json","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}},{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSegments":["embed","iframe",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://{host}/embed/medias/{mediaId}.json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}}],"htmlRoutes":[{"id":"wistia","match":{"exactSegments":false},"mode":"wistia_html"}]},{"id":"wix-stores","name":"Wix Stores","category":"commerce-social","description":"Extracts Wix Stores product details, pricing, stock, options, and media from wix-warmup-data hydration and JSON-LD/Microdata.","domains":["www.vivietmargot.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.vivietmargot.com/product-page/bon-appetit-linen-napkin-lin-bleu"],"htmlRoutes":[{"id":"wix-stores","match":{"exactSegments":false},"mode":"wix_stores_html"}]},{"id":"woocommerce","name":"WooCommerce Store API & Storefronts","category":"commerce-social","description":"Formats public WooCommerce Store API (/wp-json/wc/store/v1/products) feeds, extracts WooCommerce product pages, and implements polite full-store catalog pulls.","domains":["woocommerce.com"],"universalEngine":true,"exampleUrls":["https://yithemes.com/wp-json/wc/store/v1/products?per_page=20&page=1"],"catalog":{"platform":"woocommerce","pauseMs":2000,"pageCap":200,"firstPageTemplate":"{origin}/wp-json/wc/store/v1/products?per_page=100&page=1","perPage":100,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products"]},"twin":{"id":"woocommerce-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_catalog_page"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products",{"param":"pid","charset":"digits"}]},"twin":{"id":"woocommerce-product","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_product"}}],"htmlRoutes":[{"id":"woocommerce","match":{"exactSegments":false},"mode":"woocommerce_html"}]},{"id":"wordpress-vip-newspack","name":"WordPress VIP & Newspack","category":"commerce-social","description":"Extracts WP REST v2 posts/pages JSON twins and Newspack/WP-VIP article HTML without colliding with WooCommerce or standard WordPress blogs.","domains":["calmatters.org","missionlocal.org","www.berkeleyside.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://calmatters.org/wp-json/wp/v2/posts/516249","https://calmatters.org/commentary/2026/11/californias-philanthropic-funders-give-bravely/"],"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}}],"htmlRoutes":[{"id":"wordpress-vip-newspack","match":{"exactSegments":false},"mode":"wp_vip_newspack_html"}]},{"id":"workable","name":"Workable Job Boards & Postings","category":"jobs","description":"Upgrades apply.workable.com boards to /api/v1/widget/accounts/?details=true (merging multi-location rows on shortcode) and single jobs to /api/v2/accounts//jobs/.","domains":["apply.workable.com"],"exampleUrls":["https://apply.workable.com/huggingface/","https://apply.workable.com/huggingface/j/81B46579FE/"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]},"j",{"param":"code","charset":"slug","minLen":4,"maxLen":24}]},"twin":{"id":"workable-job","fetchUrl":"https://apply.workable.com/api/v2/accounts/{org}/jobs/{code}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"jobTitle":{"paths":["title"],"trim":true},"city":{"paths":["location.city"],"trim":true},"region":{"paths":["location.region"],"trim":true},"country":{"paths":["location.country"],"trim":true},"loc3":{"template":"{city}, {region}, {country}","whenVars":["city","region","country"]},"loc2a":{"template":"{city}, {region}","whenVars":["city","region"]},"loc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"loc2c":{"template":"{region}, {country}","whenVars":["region","country"]},"loc1":{"paths":["location.city","location.region","location.country"],"trim":true},"locSub1":{"template":"{loc3}","whenVars":["loc3"],"fallbackVar":"loc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"loc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"loc2c"},"locStr":{"template":"{locSub3}","whenVars":["locSub3"],"fallbackVar":"loc1"},"teleRemote":{"paths":["location.telecommuting"],"format":"bool_map","trueValue":"remote","falseValue":""},"workplace":{"paths":["workplace"],"trim":true,"fallbackTemplate":"{teleRemote}"},"dept":{"paths":["department"],"join":", ","trim":true},"empType":{"paths":["type"],"trim":true},"published":{"paths":["published"],"sliceMax":10,"trim":true},"salCur":{"paths":["salary.salary_currency"],"upper":true,"trim":true,"default":"USD"},"salFrom":{"paths":["salary.salary_from"],"excludeEquals":"0"},"salTo":{"paths":["salary.salary_to"],"excludeEquals":"0"},"salRange":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"]},"salFromOnly":{"template":"{salCur} {salFrom}","whenVars":["salFrom"]},"salToOnly":{"template":"{salCur} – {salTo}","whenVars":["salTo"]},"salSub":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"],"fallbackVar":"salFromOnly"},"salStr":{"template":"{salSub}","whenVars":["salSub"],"fallbackVar":"salToOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","publishedTimeVar":"published","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{locStr}","whenVar":"locStr"},{"label":"Workplace","template":"{workplace}","whenVar":"workplace"},{"label":"Department","template":"{dept}","whenVar":"dept"},{"label":"Type","template":"{empType}","whenVar":"empType"},{"label":"Salary","template":"{salStr}","whenVar":"salStr"},{"label":"Published","template":"{published}","whenVar":"published"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Requirements","textVar":"reqs"},{"heading":"Benefits","textVar":"benefits"}],"linkTemplates":["https://apply.workable.com/{org}/j/{code}/apply/"]}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]}]},"twin":{"id":"workable-board","fetchUrl":"https://apply.workable.com/api/v1/widget/accounts/{org}?details=true","kind":"json","accept":"application/json"},"extract":{"vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"},"orgName":{"paths":["name"],"trim":true,"fallbackTemplate":"{org}"}},"requireVars":["rawCount"],"titleTemplate":"{orgName} — Open Roles ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":100,"linkScanLimit":2000,"emptyText":"No open positions are currently listed on this Workable board.","filter":{"requireField":"title"},"dedupeBy":{"keyPaths":["shortcode"],"mergeTextPaths":["city+state+country"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4,"orBoolPaths":["telecommuting","workplace_type"],"orBoolTargetField":"_isRemote"},"itemVars":{"code":{"paths":["shortcode"],"trim":true},"jTitle":{"paths":["title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://apply.workable.com/{org}/j/{code}/"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLocFallback":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"fallbackTemplate":"{remoteLocFallback}"},"workplace":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site / Hybrid"},"published":{"paths":["published_on"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"},{"header":"Workplace","template":"{workplace}"},{"header":"Published","template":"{published}"}]}]}}]},{"id":"xenforo-thread","name":"XenForo 2 Forum Threads","category":"commerce-social","description":"Extracts structured forum posts, authors, timestamps, and clean quote blocks from XenForo 2 thread HTML (article.message--post) while stripping signatures and sidebar chrome.","domains":["forums.electricbikereview.com","mtbr.com","www.mtbr.com","endless-sphere.com"],"universalEngine":true,"exampleUrls":["https://forums.electricbikereview.com/threads/where-we-are-in-2026.59397/","https://www.mtbr.com/threads/ozark-trail-fs-2-slalom-for-a-kid.1249288/","https://endless-sphere.com/sphere/threads/es-2-0-forum-updates-and-tribulations.119104/"],"htmlRoutes":[{"id":"xenforo-thread","match":{"pathContainsSegment":"threads"},"mode":"xenforo_html"}]},{"id":"ycombinator","name":"Y Combinator Directory & Work at a Startup","category":"finance","description":"Extracts YC company profiles, founders, batches, and open roles from ycombinator.com/companies/ (and upgrades login-gated workatastartup.com company pages to their public YC mirror).","domains":["www.ycombinator.com","ycombinator.com","www.workatastartup.com","workatastartup.com"],"exampleUrls":["https://www.ycombinator.com/companies/supabase","https://www.workatastartup.com/companies/supabase"],"routes":[{"match":{"hosts":["www.workatastartup.com","workatastartup.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"twin":{"id":"workatastartup-yc-mirror","fetchUrl":"https://www.ycombinator.com/companies/{slug}/jobs","kind":"text","accept":"text/html"},"extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}],"htmlRoutes":[{"match":{"hosts":["www.ycombinator.com","ycombinator.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"mode":"embedded_json","dataAttr":"data-page","extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}]},{"id":"yelp-fusion","name":"Yelp Fusion API v3","category":"commerce-social","description":"Extracts business search results, single business profiles, and reviews from the official Yelp Fusion v3 API (api.yelp.com) with a strict 24-hour max cache TTL; yelp.com HTML stays detect-only.","domains":["api.yelp.com"],"auth_mode":"key","max_cache_ttl_ms":86400000,"exampleUrls":["https://api.yelp.com/v3/businesses/search?term=coffee&location=San+Francisco","https://api.yelp.com/v3/businesses/gary-danko-san-francisco"],"routes":[{"match":{"hosts":["api.yelp.com"],"anyOf":[{"pathEquals":["/v3/businesses/search","/v3/businesses/matches"]},{"pathPrefix":"/v3/businesses/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"yelp_fusion_json"}}]},{"id":"yext-locator","name":"Yext Store & Dealer Locator","category":"commerce-social","description":"Opt-in page-key adapter for Yext Live/Search API dealer locators; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["liveapi.yext.com","cdn.yextapis.com","locations.chipotle.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://cdn.yextapis.com/v2/accounts/me/answers/query?api_key=01db1d1e5ebbaa7ea2e6807ad2196ab3&v=20220511&experienceKey=yext-help-hitchhikers&input=locator"],"routes":[{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"entities"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}},{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"answers","query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}}],"htmlRoutes":[{"id":"yext-locator","match":{"exactSegments":false},"mode":"yext_locator_html"}]},{"id":"yotpo","name":"Yotpo Product Reviews","category":"commerce-social","description":"Extracts public Yotpo reviews widget JSON payloads and discovers Yotpo widget markers on storefront HTML pages.","domains":["api-cdn.yotpo.com","api.yotpo.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api-cdn.yotpo.com/v1/widget/MdtpPOdzecvdDWwA3pFvhLyB6ab4osWf5p8TQHpj/products/8158162911322/reviews.json"],"routes":[{"match":{"hosts":["api-cdn.yotpo.com","api.yotpo.com"],"pathSegments":["v1","widget",{"param":"appKey","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},"reviews.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"yotpo_reviews"}}],"htmlRoutes":[{"id":"yotpo","match":{"exactSegments":false},"mode":"yotpo_html"}]},{"id":"zendesk-hc","name":"Zendesk Help Center","category":"developer","description":"Upgrades *.zendesk.com Help Center article, section, and category pages to the official Help Center v2 JSON API with breadcrumbs, updated timestamps, and Markdown conversion.","domains":["*.zendesk.com","support.sram.com"],"exampleUrls":["https://support.zendesk.com/hc/en-us/articles/4408885959066-Lesson-4-Business-rules","https://support.zendesk.com/hc/en-us/sections/5634465167514-Business-rules","https://support.zendesk.com/hc/en-us/categories/6191910393754-Product-guides"],"routes":[{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"articles",{"param":"articleId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/articles/{articleId}.json?include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rejectIfFieldTruthy":"article.draft","requireFields":["article.title","article.body"],"vars":{"title":{"paths":["article.title"],"format":"strip_tags","trim":true},"updatedAt":{"paths":["article.updated_at","article.edited_at"]},"htmlUrl":{"paths":["article.html_url"],"requireHttps":true},"sectionName":{"paths":["sections.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"catAndSec":{"template":"{categoryName} › {sectionName}","whenVars":["categoryName","sectionName"],"fallbackVar":"sectionName"},"breadcrumbs":{"template":"{catAndSec}","whenVars":["catAndSec"],"fallbackVar":"categoryName"},"labels":{"paths":["article.label_names"],"itemWrap":"`","join":", ","limit":12},"bodyMd":{"paths":["article.body"],"format":"html_to_md","trim":true}},"requireVars":["title","bodyMd"],"titleTemplate":"{title}","publishedTimeVar":"updatedAt","bullets":[{"label":"Breadcrumbs","template":"{breadcrumbs}","whenVar":"breadcrumbs"},{"label":"Updated","template":"{updatedAt}","whenVar":"updatedAt"},{"label":"Labels","template":"{labels}","whenVar":"labels"},{"label":"Canonical URL","template":"{htmlUrl}","whenVar":"htmlUrl"}],"bodyVar":"bodyMd","linksVars":["htmlUrl","sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"sections",{"param":"sectionId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/sections/{sectionId}/articles.json?per_page=50&include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["articles","sections"],"vars":{"sectionTitle":{"paths":["sections.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Section #{sectionId}"},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"articleCount":{"paths":["articles"],"format":"array_len_comma"}},"titleTemplate":"{sectionTitle}","bullets":[{"label":"Category","template":"{categoryName}","whenVar":"categoryName"},{"label":"Articles","template":"{articleCount}","whenVar":"articleCount"}],"sections":[{"heading":"Articles","arrayPath":"articles","limit":50,"emptyText":"No published articles found in this section.","requireItemVar":"artTitle","collectLinkVars":["artUrl"],"itemVars":{"artTitle":{"paths":["title"],"format":"strip_tags","trim":true},"artUrl":{"paths":["html_url"],"requireHttps":true},"artLabels":{"paths":["label_names"],"join":", ","limit":8},"artUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{artTitle}","url":"{artUrl}","updatedAt":"{artUpdated}","labels":"{artLabels}"},"columns":[{"header":"Article","template":"[{artTitle}]({artUrl})"},{"header":"Updated","paths":["updated_at"],"sliceMax":10},{"header":"Labels","template":"{artLabels}"}]}],"linksVars":["sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"categories",{"param":"categoryId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/categories/{categoryId}/sections.json?per_page=50&include=categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["sections","categories"],"vars":{"categoryTitle":{"paths":["categories.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Category #{categoryId}"},"categoryDesc":{"paths":["categories.0.description"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"sectionCount":{"paths":["sections"],"format":"array_len_comma"}},"titleTemplate":"{categoryTitle}","descriptionVar":"categoryDesc","introVar":"categoryDesc","bullets":[{"label":"Sections","template":"{sectionCount}","whenVar":"sectionCount"}],"sections":[{"heading":"Sections","arrayPath":"sections","limit":50,"emptyText":"No sections found in this category.","requireItemVar":"secName","collectLinkVars":["secUrl"],"itemVars":{"secName":{"paths":["name"],"format":"strip_tags","trim":true},"secUrl":{"paths":["html_url"],"requireHttps":true},"secDesc":{"paths":["description"],"format":"strip_tags","trim":true,"sliceMax":160},"secUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{secName}","url":"{secUrl}","description":"{secDesc}","updatedAt":"{secUpdated}"},"columns":[{"header":"Section","template":"[{secName}]({secUrl})"},{"header":"Description","template":"{secDesc}"},{"header":"Updated","paths":["updated_at"],"sliceMax":10}]}],"linksVars":["categoryUrl"]}}]}]} +{"version":2,"manifests":[{"id":"acalog","name":"Acalog University Course Catalogs","category":"public-records","description":"Extracts Acalog university catalog course descriptions and program pages from preview_course_nopop.php and content.php while strictly honoring robots.txt and crawl delays.","domains":["*.acalog.com","catalog.highline.edu","catalog.missouristate.edu","catalog.purdue.edu","catalog.unlv.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://csulb.catalog.acalog.com/index.php","https://catalog.highline.edu/"],"htmlRoutes":[{"id":"acalog","match":{"exactSegments":false},"mode":"acalog_html"}]},{"id":"accela-citizen-access","name":"Accela Citizen Access Permitting Portals","category":"public-records","description":"Strictly read-only GET HTML extractor for Accela Citizen Access permit and license CapDetail pages (never submits forms).","domains":["aca-prod.accela.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://aca-prod.accela.com/SANDIEGO/Cap/CapDetail.aspx?Module=DSD&TabName=DSD&capID1=REC26&capID2=00000&capID3=008YQ&agencyCode=SANDIEGO"],"htmlRoutes":[{"id":"accela-citizen-access","match":{"exactSegments":false},"mode":"accela_html"}]},{"id":"aem","name":"Adobe Experience Manager (AEM)","category":"developer","description":"Upgrades AEM /content//...html pages to .model.json / .infinity.json Sling model twins, with clean HTML fallback when disabled or on 404/403.","domains":["wknd.site"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://wknd.site/content/wknd/us/en.html","https://wknd.site/content/wknd/us/en.model.json"],"routes":[{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".model.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".infinity.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".html","pathSegments":["content",{"param":"siteSeg","charset":"url_seg","reserved":["pkg","dam"],"minLen":1,"maxLen":120},{"param":"pagePath","charset":"safe_subpath","stripSuffix":".html","greedy":true,"minLen":1,"maxLen":400}]},"twin":{"fetchUrl":"https://{host}/content/{siteSeg}/{pagePath}.model.json","rawPathParams":["pagePath"],"kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}}],"htmlRoutes":[{"id":"aem","match":{"exactSegments":false},"mode":"aem_html"}]},{"id":"aftership-tracking-page","name":"AfterShip Order Tracking Pages","category":"commerce-social","description":"Extracts hydrated AfterShip tracking portals and shipment checkpoints while enforcing strict_robots for *.aftership.com and rejecting Cloudflare/empty shells.","domains":["*.aftership.com","www.aftership.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nealsyardremedies.aftership.com/"],"htmlRoutes":[{"id":"aftership-tracking-page","match":{"exactSegments":false},"mode":"aftership_tracking_html"}]},{"id":"agenda-portal-pack","name":"Municipal Agenda Portal Pack (eScribe, NovusAgenda, CivicWeb)","category":"public-records","description":"Extracts public meeting lists, agenda links, and documents from eScribe, NovusAgenda, and CivicWeb/iCompass portals.","domains":["*.escribemeetings.com","*.novusagenda.com","*.civicweb.net"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pub-london.escribemeetings.com/","https://houston.novusagenda.com/agendapublic/","https://millcreekwa.civicweb.net/Portal/"],"htmlRoutes":[{"id":"agenda-portal-pack","match":{"exactSegments":false},"mode":"agenda_portal_html"}]},{"id":"airnow","name":"AirNow Air Quality API","category":"research-health","description":"US EPA AirNow air quality observation and forecast JSON API (API_KEY query parameter) with airnow.gov HTML fallback.","domains":["www.airnowapi.org","airnowapi.org","www.airnow.gov","airnow.gov","docs.airnowapi.org"],"auth_mode":"key","exampleUrls":["https://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=20002&distance=25","https://www.airnow.gov/?city=Washington&state=DC&country=USA"],"routes":[{"match":{"hosts":["www.airnowapi.org","airnowapi.org"],"pathPrefix":"/aq/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"application/json"},"kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"airnow_json"}}],"htmlRoutes":[{"id":"airnow","match":{"hosts":["www.airnow.gov","airnow.gov","docs.airnowapi.org"],"exactSegments":false},"mode":"airnow_html"}]},{"id":"algolia","name":"Algolia On-Site Search","category":"developer","description":"Opt-in page-key adapter for Algolia search index JSON twins; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["latency-dsn.algolia.net"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://latency-dsn.algolia.net/1/indexes/instant_search?query=apple"],"routes":[{"match":{"hostSubdomain":{"suffix":".algolia.net","param":"appHost"},"pathSegments":["1","indexes",{"param":"indexName","charset":"url_seg","minLen":1,"maxLen":120},{"param":"op","allowValues":["query"],"optional":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"algolia_search"}}],"htmlRoutes":[{"id":"algolia","match":{"exactSegments":false},"mode":"algolia_html"}]},{"id":"american-legal-publishing","name":"American Legal Publishing Municipal Codes","category":"public-records","description":"HTML extractor for American Legal Publishing Code Library municipal codes and ordinance sections.","domains":["codelibrary.amlegal.com"],"auth_mode":"html","exampleUrls":["https://codelibrary.amlegal.com/codes/san_francisco/latest/overview","https://codelibrary.amlegal.com/codes/chicago/latest/overview"],"htmlRoutes":[{"id":"american-legal-publishing","match":{"exactSegments":false},"mode":"amlegal_html"}]},{"id":"ap-news","name":"Associated Press (AP News)","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and RichTextStoryBody from AP News HTML pages while respecting robots.txt feed exclusions.","domains":["apnews.com","www.apnews.com"],"auth_mode":"html","exampleUrls":["https://apnews.com/hub/us-news"],"htmlRoutes":[{"id":"ap-news","match":{"exactSegments":false},"mode":"ap_news_html"}]},{"id":"api-docs-portals","name":"API Docs Portals (OpenAPI, Redocly, Postman, Stoplight)","category":"developer","description":"Universal extractor for OpenAPI 2/3 JSON specs, Postman Collection JSON, and Redocly/Postman/Stoplight API documentation portals.","domains":["petstore3.swagger.io","redocly.com","www.postman.com","learn.openapis.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://petstore3.swagger.io/api/v3/openapi.json","https://learn.openapis.org/"],"routes":[{"match":{"anyOf":[{"pathEquals":["/openapi.json","/swagger.json","/api-docs","/v2/api-docs","/v3/api-docs"]},{"pathSuffix":"/openapi.json"},{"pathSuffix":"/swagger.json"},{"pathSuffix":"/collection.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openapi_postman_json"}}],"htmlRoutes":[{"id":"api-docs-portals","match":{"exactSegments":false},"mode":"api_docs_portal_html"}]},{"id":"appfolio-listings","name":"AppFolio Rental Listings","category":"commerce-social","description":"Extracts residential rental listings from AppFolio property management portals while strictly honoring Crawl-delay: 10, robots.txt, and /page-not-found-sub soft-404 rejection.","domains":["*.appfolio.com"],"universalEngine":false,"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"max_concurrent":1,"exampleUrls":["https://lapmg.appfolio.com/listings"],"htmlRoutes":[{"id":"appfolio-listings","match":{"exactSegments":false},"mode":"appfolio_listings_html"}]},{"id":"apple-app-store","name":"Apple App Store","category":"developer","description":"Extracts structured iOS/macOS App Store metadata (developer, rating, review count, price, category, version notes, and description).","domains":["apps.apple.com"],"exampleUrls":["https://apps.apple.com/us/app/cloudflare-one-agent/id6443476492"],"htmlRoutes":[{"match":{"pathContainsSegment":"app","minSegments":2},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication","WebApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s+on the App\\s*Store$","cssText":["h1"]},"developer":{"jsonLdPaths":["author.name"],"cssText":["h2.product-header__identity"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.reviewCount","aggregateRating.ratingCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} ratings)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"osSys":{"jsonLdPaths":["operatingSystem"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"version":{"regexExtract":{"source":"clean_html","pattern":"Version\\s+([0-9][0-9A-Za-z._-]*)","group":1}}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Platform","template":"{osSys}","whenVar":"osSys"},{"label":"Latest Version","template":"`{version}`","whenVar":"version"}],"sections":[{"heading":"Description","textVar":"desc"}]}]},{"id":"arc-xp","name":"Arc XP Publishing (Fusion / ANS)","category":"commerce-social","description":"Extracts Arc XP /pf/api/v3/content/fetch ANS JSON twins and inline Fusion.globalContent publisher articles.","domains":["www.clickondetroit.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.clickondetroit.com/news/local/2026/11/27/1-killed-in-shooting-in-downtown-birmingham/"],"routes":[{"match":{"pathPrefix":"/pf/api/v3/content/fetch/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"arc_xp_ans"}}],"htmlRoutes":[{"id":"arc-xp","match":{"exactSegments":false},"mode":"arc_xp_html"}]},{"id":"arcgis-hub","name":"Esri ArcGIS Hub Open Data Portals","category":"public-records","description":"Extracts ArcGIS Hub /api/v3/datasets (with sparse field projection) and /api/search/v1 OGC GeoJSON item collections plus hydrated HTML.","domains":["hub.arcgis.com","*.hub.arcgis.com","*.opendata.arcgis.com","opendata.dc.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3","https://opendata.dc.gov/api/v3/datasets?page[size]=1"],"routes":[{"match":{"pathPrefix":"/api/v3/datasets"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields[datasets]":"name,description,owner,modified,created,url,orgName,recordCount,licenseInfo,tags,hubType"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}},{"match":{"pathPrefix":"/api/search/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json, application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}}],"htmlRoutes":[{"id":"arcgis-hub","match":{"exactSegments":false},"mode":"arcgis_hub_html"}]},{"id":"arcgis","name":"ArcGIS REST FeatureServer & MapServer Layers","category":"public-records","description":"Upgrades public ArcGIS REST FeatureServer/MapServer layer URLs to ?f=json metadata, geometry type, spatial reference, and field schemas.","domains":["services.arcgis.com"],"universalEngine":true,"exampleUrls":["https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/2020_Census_State_Apportionment/FeatureServer/0"],"match":{"arcgisRestLayer":true,"pathSegments":[{"param":"restPath","charset":"safe_subpath","greedy":true,"maxLen":500}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"rejectIfFieldTruthy":"error","vars":{"name":{"paths":["name","mapName","serviceDescription"],"trim":true,"default":"ArcGIS Service"},"desc":{"paths":["description","serviceDescription"],"format":"strip_tags"},"descShort":{"paths":["description","serviceDescription"],"format":"strip_tags","sliceMax":260},"geomType":{"paths":["geometryType"]},"maxRec":{"paths":["maxRecordCount"]},"capabilities":{"paths":["capabilities"]},"wkid":{"paths":["extent.spatialReference.latestWkid","extent.spatialReference.wkid"]},"baseClean":{"template":"https://{host}/{restPath}"},"hasFields":{"paths":["fields"],"format":"array_len","excludeEquals":"0"},"hasLayers":{"paths":["layers"],"format":"array_len","excludeEquals":"0"}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"REST Endpoint","template":"`{baseClean}`"},{"label":"Geometry Type","template":"`{geomType}`","whenVar":"geomType"},{"label":"Spatial Reference (WKID)","template":"`EPSG:{wkid}`","whenVar":"wkid"},{"label":"Max Record Count / Query","template":"{maxRec}","whenVar":"maxRec"},{"label":"Capabilities","template":"{capabilities}","whenVar":"capabilities"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Layer Fields","headingTemplate":"Layer Fields ({count})","whenVar":"hasFields","arrayPath":"fields","limit":40,"columns":[{"header":"Field","paths":["name"],"code":true},{"header":"Alias","paths":["alias"]},{"header":"Type","paths":["type"],"stripPrefix":"esriFieldType"}]},{"heading":"Sublayers","headingTemplate":"Sublayers ({count})","whenVar":"hasLayers","unlessVar":"hasFields","arrayPath":"layers","limit":30,"itemVars":{"layerId":{"paths":["id"],"default":"0"},"layerName":{"paths":["name"],"default":"Layer"}},"columns":[{"header":"ID","paths":["id"]},{"header":"Layer","template":"[{layerName}]({baseClean}/{layerId})"},{"header":"Geometry","paths":["geometryType"]}]}]}},{"id":"arxiv","name":"arXiv Preprints","category":"research-health","description":"Extracts arXiv preprint title, authors, submission date, subject classifications, PDF/HTML links, and clean abstract from arxiv.org/abs/ (strictly respecting robots.txt).","domains":["arxiv.org","www.arxiv.org"],"exampleUrls":["https://arxiv.org/abs/1706.03762"],"htmlRoutes":[{"match":{"pathSegments":["abs",{"param":"arxivId","charset":"arxiv_id","greedy":true}]},"mode":"dom","requireVars":["title","abstract"],"vars":{"titleDom":{"cssText":["h1.title"],"stripPrefix":"Title:"},"title":{"metaKeys":["citation_title"],"fallbackVar":"titleDom"},"authors":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":20,"join":", "},"authorsShort":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":4,"join":", "},"date":{"metaKeys":["citation_date","citation_online_date"]},"doi":{"metaKeys":["citation_doi"]},"primarySubject":{"cssText":["span.primary-subject"]},"absMeta":{"metaKeys":["citation_abstract"]},"abstract":{"cssText":["blockquote.abstract"],"stripPrefix":"Abstract:","fallbackVar":"absMeta"},"abstractShort":{"template":"{abstract}","whenVars":["abstract"],"sliceMax":260},"pdfUrl":{"template":"https://arxiv.org/pdf/{arxivId}"},"htmlPaperUrl":{"template":"https://arxiv.org/html/{arxivId}"}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"date","bullets":[{"label":"arXiv ID","template":"`{arxivId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Submitted","template":"{date}","whenVar":"date"},{"label":"Primary Subject","template":"{primarySubject}","whenVar":"primarySubject"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text","template":"[PDF]({pdfUrl}) · [ar5iv / HTML]({htmlPaperUrl})"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linkTemplates":["https://arxiv.org/pdf/{arxivId}","https://arxiv.org/html/{arxivId}"]}]},{"id":"association-ams-pack","name":"Association AMS Pack (Novi AMS, MemberClicks, YourMembership)","category":"commerce-social","description":"Extracts association events and member directories from Novi AMS, MemberClicks / Personify WebLink, and YourMembership portals while rejecting login gates and error shells.","domains":["www.austinaptassoc.com","web.arlingtonchamber.org","*.memberclicks.net","*.site-ym.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.austinaptassoc.com/events","https://web.arlingtonchamber.org/events"],"htmlRoutes":[{"id":"association-ams-pack","match":{"exactSegments":false},"mode":"association_ams_html"}]},{"id":"atlassian-statuspage","name":"Atlassian Statuspage","category":"developer","description":"Extracts Atlassian Statuspage /api/v2/summary.json and incidents.json endpoints (when robots.txt permits) plus Statuspage HTML pages.","domains":["statuspage.io","www.statuspage.io","www.githubstatus.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.githubstatus.com/","https://discord.statuspage.io/"],"routes":[{"match":{"pathEquals":["/api/v2/summary.json","/api/v2/incidents.json","/api/v2/status.json","/api/v2/components.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"statuspage_v2"}}],"htmlRoutes":[{"id":"atlassian-statuspage","match":{"exactSegments":false},"mode":"statuspage_html"}]},{"id":"auto-dealer-inventory","name":"Auto Dealer Inventory (Universal)","category":"commerce-social","description":"Universal automotive dealer SRP/VDP HTML and Schema.org Vehicle/Car JSON-LD extractor for Dealer.com, Dealer Inspire, and DealerOn storefronts.","domains":["www.johneaglehonda.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.johneaglehonda.com/used-inventory/index.htm","https://www.johneaglehonda.com/used/Honda/2021-Honda-Accord--for-sale-houston-texas-f65329b9ac180db0f233180fce0b2e1d.htm"],"htmlRoutes":[{"id":"auto-dealer-inventory","match":{"anyOf":[{"pathPrefix":"/used-inventory/"},{"pathPrefix":"/new-inventory/"},{"pathPrefix":"/all-inventory/"},{"pathPrefix":"/certified-inventory/"},{"pathPrefix":"/inventory/"},{"pathPrefix":"/used/"},{"pathPrefix":"/new/"},{"pathPrefix":"/vehicles/"},{"pathPrefix":"/vehicle/"},{"pathPrefix":"/vdp/"},{"pathPrefix":"/srp/"},{"pathEquals":["/searchused.aspx","/searchnew.aspx","/searchall.aspx"]}]},"mode":"auto_dealer_html"}]},{"id":"auto-parts-fitment","name":"Auto Parts Fitment & SKU Extractor","category":"commerce-social","description":"Extracts auto parts SKUs, part numbers, strict GTINs, and explicit vehicle fitment (year, make, model, engine) for AutoZone, O'Reilly, NAPA, and Advance Auto Parts.","domains":["autozone.com","www.autozone.com","oreillyauto.com","www.oreillyauto.com","napaonline.com","www.napaonline.com","shop.advanceautoparts.com","www.advanceautoparts.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.autozone.com/brakes-and-traction-control/brake-pads/duralast-gold-ceramic-brake-pads-dg1410/141001_0_0","https://www.napaonline.com/en/p/NAPA1410"],"htmlRoutes":[{"id":"auto-parts-fitment","match":{"exactSegments":false},"mode":"auto_parts_fitment_html"}]},{"id":"bamboohr-breezy-recruitee","name":"BambooHR, Breezy HR, Recruitee & Personio Boards","category":"jobs","description":"Upgrades BambooHR (/careers/list & /detail), Breezy HR (/json), Recruitee (/api/offers), and Personio (/xml) career boards to structured feeds.","domains":["*.bamboohr.com","*.breezy.hr","*.recruitee.com","*.jobs.personio.de","*.jobs.personio.com"],"exampleUrls":["https://posthog.bamboohr.com/careers","https://breezy.breezy.hr/","https://bunq.recruitee.com/","https://personio.jobs.personio.de/"],"routes":[{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"pathSegments":[{"param":"boardSection","charset":"alnum","allowValues":["careers","jobs"],"optional":true}]},"twin":{"id":"bamboohr-board","fetchUrl":"https://{host}/careers/list","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["result"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — BambooHR Careers ({count} open roles)","sections":[{"heading":"","arrayPath":"result","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"id":{"paths":["id"]},"jTitle":{"paths":["jobOpeningName"],"trim":true,"default":"Role"},"jUrl":{"template":"https://{host}/careers/{id}"},"dept":{"paths":["departmentLabel"],"trim":true,"default":"-"},"city":{"paths":["location.city"],"trim":true},"state":{"paths":["location.state"],"trim":true},"bothLoc":{"template":"{city}, {state}","whenVars":["city","state"]},"oneLoc":{"paths":["location.city","location.state"],"trim":true},"remoteLoc":{"paths":["isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"template":"{bothLoc}","whenVars":["bothLoc"],"fallbackVar":"oneLoc","fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"exactSegments":false,"pathSegments":["careers",{"param":"jobId","charset":"digits"}]},"twin":{"id":"bamboohr-job","fetchUrl":"https://{host}/careers/{jobId}/detail","kind":"json","accept":"application/json"},"extract":{"rootPath":"result.jobOpening","requireFields":["jobOpeningName"],"vars":{"jobTitle":{"paths":["jobOpeningName"],"trim":true},"body":{"paths":["description"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"body"}},{"match":{"hosts":["*.breezy.hr"],"hostSubdomain":{"suffix":".breezy.hr","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"breezy-hr","fetchUrl":"https://{host}/json","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"count":{"paths":["jobs"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Breezy HR Board ({count} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["location.is_remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location.name"],"trim":true,"fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["o",{"param":"targetSlug","charset":"pkg"}]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"offers","matchField":"slug","matchTemplate":"{targetSlug}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Role"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"desc","sections":[{"heading":"Requirements","textVar":"reqs"}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["offers"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Recruitee Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"offers","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"oTitle":{"paths":["title"],"trim":true,"default":"Role"},"slug":{"paths":["slug"]},"rawUrl":{"paths":["careers_url"],"requireHttps":true},"oUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/o/{slug}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location"],"trim":true,"fallbackTemplate":"{remoteLoc}"},"isRemote":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":""},"hybridOrOnsite":{"paths":["hybrid"],"format":"bool_map","trueValue":"Hybrid","falseValue":"On-site"},"workplace":{"template":"{isRemote}","whenVars":["isRemote"],"fallbackVar":"hybridOrOnsite"}},"collectLinkVars":["oUrl"],"columns":[{"header":"Role","template":"[{oTitle}]({oUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{workplace}"}]}]}},{"match":{"anyOf":[{"hosts":["*.jobs.personio.de"],"hostSubdomain":{"suffix":".jobs.personio.de","param":"org"},"pathSegments":[]},{"hosts":["*.jobs.personio.com"],"hostSubdomain":{"suffix":".jobs.personio.com","param":"org"},"pathSegments":[]}]},"twin":{"id":"personio","fetchUrl":"https://{host}/xml?language=en","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["workzag-jobs","position"],"itemTag":"position","titleTemplate":"{org} — Personio Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"itemVars":{"id":{"tags":["id"]},"pName":{"tags":["name"],"default":"Role"},"dept":{"tags":["department"],"default":"-"},"office":{"tags":["office"],"default":"-"},"schedule":{"tags":["schedule"],"default":"-"}},"columns":[{"header":"Role","template":"[{pName}](https://{host}/job/{id})"},{"header":"Department","template":"{dept}"},{"header":"Office","template":"{office}"},{"header":"Schedule","template":"{schedule}"}]}}}]},{"id":"bazaarvoice","name":"Bazaarvoice Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for Bazaarvoice Display API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["api.bazaarvoice.com","www.bazaarvoice.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://api.bazaarvoice.com/data/reviews.json?apiversion=5.4&passkey=lgnkpccztvv6hpje273tu0cx8&Filter=ProductId:YWSHTS&Include=Products&Stats=Reviews&Limit=5"],"routes":[{"match":{"hosts":["api.bazaarvoice.com"],"pathEquals":["/data/reviews.json","/data/display/0.2alpha/product/summary"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bazaarvoice_reviews"}}],"htmlRoutes":[{"id":"bazaarvoice","match":{"exactSegments":false},"mode":"bazaarvoice_html"}]},{"id":"bbb","name":"Better Business Bureau (BBB)","category":"commerce-social","description":"Extracts BBB business profile metadata, accreditation status, rating, contact details, and categories from public bbb.org profile pages while strictly honoring robots.txt.","domains":["bbb.org","www.bbb.org"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bbb.org/us/md/linthicum-heights/profile/property-management/american-community-management-inc-0011-10073"],"htmlRoutes":[{"id":"bbb","match":{"exactSegments":false},"mode":"bbb_html"}]},{"id":"bea","name":"Bureau of Economic Analysis (BEA)","category":"finance","description":"U.S. Bureau of Economic Analysis apps.bea.gov JSON API adapter (NIPA/GDP/Regional/International) with bea.gov HTML fallback.","domains":["bea.gov","www.bea.gov","apps.bea.gov"],"auth_mode":"key","exampleUrls":["https://apps.bea.gov/api/data?method=GetDataSetList&ResultFormat=JSON","https://www.bea.gov/data/gdp/gross-domestic-product"],"routes":[{"match":{"hosts":["apps.bea.gov"],"exactSegments":true,"pathEquals":["/api/data","/API/data","/api/data/","/API/data/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"ResultFormat":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"bea_json"}}],"htmlRoutes":[{"id":"bea","match":{"hosts":["bea.gov","www.bea.gov"],"exactSegments":false},"mode":"bea_html"}]},{"id":"bentobox","name":"BentoBox Restaurant Menus & Venues","category":"commerce-social","description":"Extracts restaurant menus, sections, items, prices, and FoodEstablishment metadata from BentoBox (getbento.com) sites and custom restaurant domains.","domains":["getbento.com","www.getbento.com","*.getbento.com","www.gramercytavern.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gramercytavern.com/dining-room-menu/","https://www.getbento.com/"],"htmlRoutes":[{"id":"bentobox","match":{"exactSegments":false},"mode":"bentobox_html"}]},{"id":"bestbuy","name":"Best Buy Products API","category":"commerce-social","description":"Extracts Best Buy product pricing, SKU, UPC/GTIN, availability, and search results via the official Best Buy Products API.","domains":["bestbuy.com","www.bestbuy.com","api.bestbuy.com"],"auth_mode":"key","exampleUrls":["https://api.bestbuy.com/v1/products/6500131.json","https://api.bestbuy.com/v1/products?format=json"],"routes":[{"match":{"hosts":["bestbuy.com","www.bestbuy.com"],"exactSegments":false,"pathSegments":["site",{"param":"slug","charset":"slug","maxLen":200},{"param":"sku","charset":"digits","stripSuffix":".p","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.bestbuy.com/v1/products/{sku}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}},{"match":{"hosts":["api.bestbuy.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}}]},{"id":"bicycleretailer","name":"Bicycle Retailer & Industry News","category":"commerce-social","description":"Extracts Drupal .node-article body, .view-content listings, and author/publishedTime metadata from bicycleretailer.com while stripping sidebar ads and leaving /rss.xml to feed XML parsing.","domains":["www.bicycleretailer.com","bicycleretailer.com"],"exampleUrls":["https://www.bicycleretailer.com/industry-news/2026/11/25/preliminary-analysis-industry-spared-new-recommended-tariffs","https://www.bicycleretailer.com/industry-news"],"htmlRoutes":[{"id":"bicycleretailer","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["admin","user"],"excludeSegmentSuffixes":[".xml",".rss",".atom"]},"vars":{"title":{"cssText":["article.node-article h1","main h1","h1","title"],"metaKeys":["og:title"],"trim":true},"author":{"metaKeys":["author","article:author"],"trim":true},"publishedTime":{"metaKeys":["article:published_time"],"trim":true},"body":{"cssHtmlToMd":["article.node-article .field-name-body",".node-article .field-name-body",".field-name-body",".view-content","article.node-article","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"big-cartel","name":"Big Cartel Storefronts & Products","category":"commerce-social","description":"Extracts Big Cartel /products.json catalogs and /product/{slug}.js product twins without colliding with Shopify /products.json, plus storefront HTML/JSON-LD fallback.","domains":["shop.bigcartel.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://shop.bigcartel.com/product/buy-from-artists-tote-bag.js","https://shop.bigcartel.com/products.json"],"routes":[{"match":{"anyOf":[{"hosts":["shop.bigcartel.com"],"pathEquals":["/products.json"]},{"hostSubdomain":{"suffix":".bigcartel.com","param":"shopSub","reserved":["www","my","api","developers","blog","assets","help"]},"pathEquals":["/products.json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}},{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","api.bigcartel.com","my.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com","assets.bigcartel.com","help.bigcartel.com"],"exactSegments":true,"pathSuffix":".js","pathSegments":["product",{"param":"slug","charset":"pkg","stripSuffix":".js","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}}],"htmlRoutes":[{"id":"big-cartel","match":{"exactSegments":false},"mode":"big_cartel_html"}]},{"id":"bigcommerce-store","name":"BigCommerce Stencil Storefronts","category":"commerce-social","description":"Extracts BigCommerce Stencil BCData, JSON-LD, Microdata, cart-form options, product specs, category grids, and bounded /xmlsitemap.php product sitemaps.","domains":["*.mybigcommerce.com","www.bigcommerce.com","ascolour.com"],"universalEngine":true,"exampleUrls":["https://ascolour.com/xmlsitemap.php","https://ascolour.com/classic-organic-tee-5026g/"],"routes":[{"match":{"exactSegments":true,"pathEquals":["/xmlsitemap.php"]},"twin":{"id":"bigcommerce-store","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"commerceMode":"bigcommerce_sitemap"}}],"htmlRoutes":[{"id":"bigcommerce-store","match":{"exactSegments":false},"mode":"bigcommerce_html"}]},{"id":"bike-index","name":"Bike Index Registry","category":"public-records","description":"Public Bike Index REST API v3 adapter for bicycle registrations, stolen reports, and search queries with HTML detail fallback.","domains":["bikeindex.org","www.bikeindex.org"],"auth_mode":"pub","exampleUrls":["https://bikeindex.org/api/v3/search?page=1&per_page=5","https://bikeindex.org/api/v3/bikes/3550041","https://bikeindex.org/bikes/3550041"],"routes":[{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathEquals":["/api/v3/search","/api/v3/search/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["api","v3","bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}}],"htmlRoutes":[{"id":"bike-index","match":{"exactSegments":false},"mode":"bike_index_html"}]},{"id":"bikereg-usacycling","name":"BikeReg & USA Cycling Events & Results","category":"commerce-social","description":"Extracts BikeReg event search JSON (/api/search with ASP.NET /Date()/ timestamps), USA Cycling Sport80 Inertia data-page events and results, and unchallenged BikeReg HTML while rejecting Cloudflare challenges.","domains":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://www.bikereg.com/api/search?name=Hush%20Money","https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today","https://usacycling.sport80.com/pub/results"],"routes":[{"match":{"hosts":["bikereg.com","www.bikereg.com"],"exactSegments":true,"pathSegments":["api","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bikereg_json"}}],"htmlRoutes":[{"id":"bikereg-usacycling","match":{"hosts":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"exactSegments":false},"mode":"bikereg_usacycling_html"}]},{"id":"bis-entity-list","name":"BIS Export Administration Regulations & Entity List","category":"public-records","description":"Extracts Bureau of Industry and Security (BIS) EAR Part 744 / Entity List guidance and enforcement press releases from www.bis.gov, bis.gov, and media.bis.gov.","domains":["www.bis.gov","bis.gov","media.bis.gov"],"auth_mode":"pub","exampleUrls":["https://www.bis.gov/regulations/ear/744","https://www.bis.gov/regulations/ear","https://www.bis.gov/press-release/bis-reaches-administrative-enforcement-settlement-lambda-research-corporation"],"htmlRoutes":[{"id":"bis-entity-list","match":{"hosts":["www.bis.gov","bis.gov","media.bis.gov"],"exactSegments":false},"mode":"bis_entity_list_html"}]},{"id":"blackboard-wcm","name":"Blackboard WCM & SchoolMessenger Presence","category":"public-records","description":"Extracts Blackboard Web Community Manager (Schoolwires) and SchoolMessenger Presence K-12 district news, calendars, and staff directories while excluding Finalsite /fs/ sites.","domains":["www.bhusd.org","bhusd.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.bhusd.org/calendar","https://www.bhusd.org/media/filter/news"],"htmlRoutes":[{"id":"blackboard-wcm","match":{"excludeHosts":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"exactSegments":false},"mode":"blackboard_wcm_html"}]},{"id":"bloomreach-discovery","name":"Bloomreach Discovery On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Bloomreach Discovery core search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["core.dxpapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://core.dxpapi.com/api/v1/core/?account_id=6276&auth_key=jazzhands&domain_key=example_com&request_type=search&search_type=keyword&q=shoes&fl=pid,title,price,url&rows=10&start=0&url=https://www.example.com/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".dxpapi.com","param":"apiHost"},"pathEquals":["/api/v1/core","/api/v1/core/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bloomreach_discovery"}}],"htmlRoutes":[{"id":"bloomreach-discovery","match":{"exactSegments":false},"mode":"bloomreach_discovery_html"}]},{"id":"bls","name":"Bureau of Labor Statistics (BLS)","category":"public-records","description":"U.S. Bureau of Labor Statistics publicAPI v1 (pub) and v2 (key) time-series JSON adapter with bls.gov HTML fallback.","domains":["bls.gov","www.bls.gov","data.bls.gov","api.bls.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.bls.gov/cpi/","https://www.bls.gov/ooh/"],"routes":[{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v1/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"bls_json"}},{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v2/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"bls_json"}}],"htmlRoutes":[{"id":"bls","match":{"hosts":["bls.gov","www.bls.gov","data.bls.gov"],"exactSegments":false},"mode":"bls_html"}]},{"id":"bluesky-thread","name":"Bluesky ATProto Post Threads","category":"commerce-social","description":"Upgrades bsky.app post URLs to public.api.bsky.app ATProto getPostThread JSON with replies and embeds.","domains":["bsky.app","staging.bsky.app"],"exampleUrls":["https://bsky.app/profile/golang.org/post/3mzyghkrmjh2y"],"match":{"exactSegments":false,"pathSegments":["profile",{"param":"actor","charset":"url_seg"},"post",{"param":"rkey","charset":"pkg"}]},"twin":{"id":"bluesky-thread","fetchUrl":"https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=at%3A%2F%2F{actor}%2Fapp.bsky.feed.post%2F{rkey}&depth=6","kind":"json","accept":"application/json"},"extract":{"rootPath":"thread","requireFields":["post.record.text"],"vars":{"handle":{"paths":["post.author.handle"],"fallbackTemplate":"{actor}"},"displayName":{"paths":["post.author.displayName"],"fallbackTemplate":"{handle}"},"text":{"paths":["post.record.text"],"format":"plain_text","trim":true},"desc":{"paths":["post.record.text"],"trim":true,"sliceMax":220},"createdAt":{"paths":["post.record.createdAt"]},"createdAtShort":{"paths":["post.record.createdAt"],"replaceAll":{"from":"T","to":" "},"sliceMax":16},"postedPrefix":{"template":"{createdAtShort} UTC · ","whenVars":["createdAtShort"]},"likes":{"paths":["post.likeCount"],"default":"0"},"reposts":{"paths":["post.repostCount"],"default":"0"},"extUri":{"paths":["post.embed.external.uri"]},"extTitle":{"paths":["post.embed.external.title"],"fallbackTemplate":"{extUri}"},"extDesc":{"paths":["post.embed.external.description"]},"extDescSuffix":{"template":" — {extDesc}","whenVars":["extDesc"]},"linkedEmbed":{"template":"> **Linked**: [{extTitle}]({extUri}){extDescSuffix}","whenVars":["extUri"]}},"titleTemplate":"{displayName} (@{handle}) on Bluesky","descriptionVar":"desc","authorTemplate":"@{handle}","publishedTimeVar":"createdAt","bodyVar":"text","footerItalicTemplate":"Posted {postedPrefix}{likes} likes · {reposts} reposts","sections":[{"heading":"","textVar":"linkedEmbed"},{"heading":"","listArrayPath":"post.embed.images","limit":10,"requireItemVar":"imgAlt","itemVars":{"imgAlt":{"paths":["alt"],"trim":true}},"itemTemplate":"*Image alt*: {imgAlt}"},{"heading":"Replies","listArrayPath":"replies","limit":15,"requireItemVar":"replyText","itemVars":{"replyAuthor":{"paths":["post.author.handle"],"default":"user"},"replyText":{"paths":["post.record.text"],"trim":true,"replaceAll":{"from":"\n","to":" "}}},"itemTemplate":"**@{replyAuthor}**: {replyText}"}]}},{"id":"boarddocs","name":"Diligent BoardDocs Public Meeting Portals","category":"public-records","description":"Extracts public school board and municipal BoardDocs meeting lists, agendas, and HTML views while detecting CloudFront blocks.","domains":["go.boarddocs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://go.boarddocs.com/ca/sandi/Board.nsf/BD-GetMeetingsList","https://go.boarddocs.com/ca/sandi/Board.nsf/Public"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"state","charset":"alnum_dash","minLen":2,"maxLen":8},{"param":"org","charset":"alnum_dash","minLen":2,"maxLen":48},"Board.nsf",{"param":"action","allowValues":["BD-GetMeetingsList","BD-GetAgenda","BD-GetAgendaItem"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"boarddocs_text"}}],"htmlRoutes":[{"id":"boarddocs","match":{"exactSegments":false},"mode":"boarddocs_html"}]},{"id":"bosch-ebike-help","name":"Bosch eBike Systems Help Center","category":"developer","description":"Bosch eBike error codes from help.bosch-ebike.com via the keyless public /v2/error_code JSON endpoint the Help Center SPA renders (code / severity / component / description / remedy per system generation), with a bounded HTML fallback for SSR help articles that strips data:image blobs and dodo-service-include chrome and never presents the loading SPA shell as content. Never calls the robots-disallowed /api/* paths.","domains":["help.bosch-ebike.com"],"auth_mode":"pub","exampleUrls":["https://help.bosch-ebike.com/en/help-center/error/6A0004","https://help.bosch-ebike.com/help-center/error/6A0004"],"routes":[{"match":{"hosts":["help.bosch-ebike.com"],"anyOf":[{"pathSegments":[{"param":"lang","allowValues":["cs","da","de","en","es","fr","it","nl","no","pl","sv"]},"help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"optionalLeadingLocale":true,"defaults":{"lang":"en"},"pathSegments":["help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"defaults":{"lang":"en"},"pathSegments":["er",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]}]},"twin":{"fetchUrl":"https://help.bosch-ebike.com/v2/error_code?externalID={code}&languageId={lang}","kind":"json","accept":"application/json","maxBytes":524288},"extract":{"jsonMode":"bosch_ebike_error_code_json"}}],"htmlRoutes":[{"id":"bosch-ebike-help","match":{"exactSegments":false},"mode":"bosch_help_html"}]},{"id":"branded-tracking-pack","name":"Branded Tracking Pack (Narvar / Route / ParcelPanel)","category":"commerce-social","description":"Extracts hydrated Narvar, ParcelPanel, Route, Malomo, and Wonderment tracking pages while strictly rejecting empty CSR shells such as unhydrated Route pages.","domains":["*.narvar.com","tracking.route.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://tracking.narvar.com/asics/tracking"],"htmlRoutes":[{"id":"branded-tracking-pack","match":{"exactSegments":false},"mode":"branded_tracking_pack_html"}]},{"id":"brightcove","name":"Brightcove Playback & Player","category":"commerce-social","description":"Opt-in page-key adapter for Brightcove Playback API v1; defaults OFF and falls back cleanly to Brightcove player HTML extraction.","domains":["edge.api.brightcove.com","players.brightcove.net"],"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://edge.api.brightcove.com/playback/v1/accounts/1752604059001/videos/4093643993001","https://players.brightcove.net/1752604059001/default_default/index.html?videoId=4093643993001"],"routes":[{"match":{"hosts":["edge.api.brightcove.com"],"exactSegments":true,"pathSegments":["playback","v1","accounts",{"param":"accountId","charset":"digits","minLen":4,"maxLen":24},"videos",{"param":"videoId","charset":"url_seg","minLen":4,"maxLen":64}]},"twin":{"id":"brightcove","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"brightcove_playback_json"}}],"htmlRoutes":[{"id":"brightcove","match":{"exactSegments":false},"mode":"brightcove_html"}]},{"id":"brightspot","name":"Brightspot Publishing CMS","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Brightspot RichText article bodies across Brightspot-powered newsrooms.","domains":["www.latimes.com","news.byu.edu"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.latimes.com/travel/story/2023-10-19/los-angeles-neighborhood-city-guides"],"htmlRoutes":[{"id":"brightspot","match":{"exactSegments":false},"mode":"brightspot_html"}]},{"id":"bts-transtats","name":"BTS TranStats & Open Data","category":"public-records","description":"Bureau of Transportation Statistics (data.bts.gov Socrata views/resource/catalog JSON + www.transtats.bts.gov HTML tables with TranStats error page rejection).","domains":["data.bts.gov","transtats.bts.gov","www.transtats.bts.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.bts.gov/api/views/crem-w557.json","https://data.bts.gov/resource/crem-w557.json?$limit=2","https://www.transtats.bts.gov/Tables.asp?QO_VQ=EFD&QO_anzr=Nv4"],"routes":[{"match":{"hosts":["data.bts.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}},{"match":{"hosts":["data.bts.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://data.bts.gov/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}}],"htmlRoutes":[{"id":"bts-transtats","match":{"hosts":["transtats.bts.gov","www.transtats.bts.gov"],"exactSegments":false},"mode":"bts_transtats_html"}]},{"id":"bullhorn-career-portal","name":"Bullhorn Career Portal","category":"jobs","description":"Extracts open JobOrder listings from public-rest*.bullhornstaffing.com REST endpoints and hydrated Bullhorn Career Portal pages while rejecting errors.badCorpToken and empty results.","domains":["*.bullhornstaffing.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25"],"routes":[{"match":{"hostSubdomain":{"suffix":".bullhornstaffing.com","param":"cluster","reserved":["www","login","auth","static"]},"pathPrefix":"/rest-services/","pathContainsSegment":"JobOrder","exactSegments":false},"twin":{"id":"bullhorn-career-portal","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bullhorn_joborder_json"}}],"htmlRoutes":[{"id":"bullhorn-career-portal","mode":"bullhorn_portal_html","match":{"exactSegments":false}}]},{"id":"bumm-de","name":"Busch & Mueller (bumm.de)","category":"commerce-social","description":"Extracts TYPO3 JSON-LD Product metadata, table.attributes-table technical specs, and PDF mounting manual links from bumm.de product pages.","domains":["bumm.de","www.bumm.de"],"exampleUrls":["https://bumm.de/en/product-detail/iq-xl-highbeam/","https://bumm.de/de/produktdetail/briq-s/"],"htmlRoutes":[{"id":"bumm-de","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"reservedFirstSegment":["typo3"],"anyOf":[{"pathSegments":["product-detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["produktdetail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["products","detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"price":{"jsonLdPaths":["offers.price","offers.0.price"],"trim":true},"currency":{"jsonLdPaths":["offers.priceCurrency","offers.0.priceCurrency"],"trim":true},"body":{"cssHtmlToMd":["main",".product-detail","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"},{"label":"Price","template":"{price} {currency}","whenVar":"price"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"canvas-public-courses","name":"Canvas LMS Public Courses","category":"public-records","description":"Extracts public Instructure Canvas LMS courses via /api/v1/courses JSON and public syllabus HTML while classifying SAML SSO redirects as login_wall and 503 maintenance shells as non-active.","domains":["*.instructure.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://ocw.instructure.com/api/v1/courses/44012","https://lor.instructure.com/"],"routes":[{"match":{"pathPrefix":"/api/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"canvas_course_json"}}],"htmlRoutes":[{"id":"canvas-public-courses","match":{"exactSegments":false},"mode":"canvas_public_html"}]},{"id":"carrier-tracking-official","name":"Official Carrier Tracking APIs (USPS, UPS, FedEx)","category":"commerce-social","description":"Keyed OAuth Bearer official tracking APIs for USPS (/tracking/), UPS (/api/track/v1/details with transactionSrc/transId), and FedEx (POST /track/v1/trackingnumbers).","domains":["onlinetools.ups.com","wwwcie.ups.com","apis.fedex.com","apis-sandbox.fedex.com"],"universalEngine":true,"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://apis.usps.com/tracking/v3/tracking/9400111899223344556677","https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784","https://apis.fedex.com/track/v1/trackingnumbers"],"routes":[{"match":{"hosts":["apis.usps.com","apis-tem.usps.com"],"pathPrefix":"/tracking/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}},{"match":{"hosts":["onlinetools.ups.com","wwwcie.ups.com"],"pathPrefix":"/api/track/v1/details"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","headers":{"transactionSrc":"edgefetch"},"auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}},{"match":{"hosts":["apis.fedex.com","apis-sandbox.fedex.com"],"pathPrefix":"/track/v1/trackingnumbers","queryParams":[{"name":"trackingNumber","param":"trackingNumber","charset":"alnum_dash","optional":true,"default":"784592018372"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"includeDetailedScans\":true,\"trackingInfo\":[{\"trackingNumberInfo\":{\"trackingNumber\":\"{trackingNumber}\"}}]}","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}}]},{"id":"cbo","name":"Congressional Budget Office (CBO)","category":"public-records","description":"Extracts CBO publication and cost-estimate RSS feeds and HTML publication pages while cleanly classifying DataDome JS challenges as non-active.","domains":["www.cbo.gov","cbo.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.cbo.gov/publications/all/rss.xml","https://www.cbo.gov/publication/62899"],"routes":[{"match":{"pathPrefix":"/publications/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":1048576},"extract":{"textMode":"cbo_rss_xml"}}],"htmlRoutes":[{"id":"cbo","match":{"exactSegments":false},"mode":"cbo_html"}]},{"id":"cbp-cross-rulings","name":"CBP CROSS Customs Rulings","category":"public-records","description":"Extracts U.S. Customs and Border Protection CROSS ruling search and ruling detail JSON endpoints while rejecting unhydrated Angular CSR shells and security-parameter 403 blocks.","domains":["rulings.cbp.gov"],"auth_mode":"pub","exampleUrls":["https://rulings.cbp.gov/api/ruling/N328640","https://rulings.cbp.gov/search?term=bicycle","https://rulings.cbp.gov/ruling/N328640"],"routes":[{"match":{"hosts":["rulings.cbp.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cbp_cross_json"}}],"htmlRoutes":[{"id":"cbp-cross-rulings","match":{"hosts":["rulings.cbp.gov"],"exactSegments":false},"mode":"cbp_cross_html"}]},{"id":"cdc-wonder-healthdata","name":"CDC WONDER & HealthData.gov","category":"research-health","description":"HealthData.gov and data.cdc.gov Socrata views/resource/catalog JSON adapter (coexisting cleanly with socrata.yaml) plus CDC WONDER HTML.","domains":["healthdata.gov","www.healthdata.gov","wonder.cdc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://healthdata.gov/api/views/j8mb-icvb.json","https://data.cdc.gov/api/views/9bhg-hcku.json","https://wonder.cdc.gov/ucd-icd10.html"],"routes":[{"match":{"hosts":["healthdata.gov","www.healthdata.gov","data.cdc.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}},{"match":{"hosts":["healthdata.gov","www.healthdata.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}}],"htmlRoutes":[{"id":"cdc-wonder-healthdata","match":{"hosts":["wonder.cdc.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false},"mode":"cdc_wonder_html"}]},{"id":"census-foreign-trade","name":"U.S. Census Foreign Trade (USA Trade Online)","category":"public-records","description":"Covers USA Trade Online portal pages (usatradeonline.census.gov, usatrade.census.gov) disjoint from census.yaml, which handles api.census.gov/data/timeseries/intltrade/* via census_json.","domains":["usatradeonline.census.gov","usatrade.census.gov"],"auth_mode":"pub","exampleUrls":["https://usatradeonline.census.gov/"],"htmlRoutes":[{"id":"census-foreign-trade","match":{"hosts":["usatradeonline.census.gov","usatrade.census.gov"],"exactSegments":false},"mode":"census_foreign_trade_html"}]},{"id":"census","name":"U.S. Census Bureau Data API","category":"public-records","description":"U.S. Census Bureau Data API (/data/{year}/... keyed JSON matrix) and /data.json DCAT catalog adapter with data.census.gov fallback.","domains":["data.census.gov","api.census.gov","census.gov","www.census.gov"],"auth_mode":"key","exampleUrls":["https://api.census.gov/data/2023/acs/acs1?get=NAME,B01001_001E&for=state:06","https://api.census.gov/data/2023/acs/acs1.json","https://www.census.gov/topics/population.html"],"routes":[{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","excludeSegmentSuffixes":[".html",".htm"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":true,"pathEquals":["/data.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}}],"htmlRoutes":[{"id":"census","match":{"hosts":["data.census.gov","census.gov","www.census.gov"],"exactSegments":false},"mode":"census_html"}]},{"id":"cfpb-complaints","name":"CFPB Consumer Complaint Database","category":"finance","description":"Upgrades consumerfinance.gov complaint detail URLs to keyless CFPB Consumer Complaint Database JSON API v1 with HTML fallback.","domains":["www.consumerfinance.gov","consumerfinance.gov"],"auth_mode":"pub","exampleUrls":["https://www.consumerfinance.gov/data-research/consumer-complaints/search/detail/3204968","https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/3204968"],"routes":[{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"exactSegments":false,"pathSegments":["data-research","consumer-complaints","search","detail",{"param":"complaintId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/{complaintId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}},{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/search/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}}],"htmlRoutes":[{"id":"cfpb-complaints","match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/","exactSegments":false},"mode":"cfpb_complaints_html"}]},{"id":"chambermaster-growthzone","name":"ChamberMaster / GrowthZone Chamber Directories","category":"commerce-social","description":"Universal extractor for chamber-of-commerce member directories and event calendars hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages, and /events/ calendars): member name, address, phone, website, hours, categories, events, and description.","domains":["business.fortworthchamber.com","www.brownstownchamber.org","*.chambermaster.com","*.growthzoneapp.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://business.fortworthchamber.com/list/category/apartments-25","https://business.fortworthchamber.com/list/member/the-harden-at-public-market-50786","https://www.brownstownchamber.org/events/"],"htmlRoutes":[{"id":"chambermaster-growthzone","match":{"exactSegments":false},"mode":"chambermaster_html"}]},{"id":"changelog-roadmap-pack","name":"Changelog & Roadmap Pack","category":"developer","description":"Extracts changelog releases and roadmap items from Canny, Productboard Portal, Headway, Beamer (via /loadMoreNews companion), and LaunchNotes.","domains":["feedback.canny.io","portal.productboard.com","headwayapp.co","app.getbeamer.com","updates.launchnotes.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://feedback.canny.io/changelog","https://portal.productboard.com/pb/1-productboard-portal/tabs/7-under-consideration","https://app.getbeamer.com/beamer/changelog","https://updates.launchnotes.io/"],"routes":[{"match":{"pathEquals":["/changelog.json","/releases.json","/updates.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"changelog_roadmap_json"}}],"htmlRoutes":[{"id":"changelog-roadmap-pack","match":{"exactSegments":false},"mode":"changelog_roadmap_html"}]},{"id":"chronicling-america","name":"Chronicling America (Historic American Newspapers)","category":"public-records","description":"Library of Congress Chronicling America historic newspapers adapter rewriting legacy chroniclingamerica.loc.gov and collection URLs directly to www.loc.gov ?fo=json.","domains":["chroniclingamerica.loc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/collections/chronicling-america/?fo=json","https://chroniclingamerica.loc.gov/lccn/sn83030214.json","https://www.loc.gov/collections/chronicling-america/"],"routes":[{"match":{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false,"pathSegments":["lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["chroniclingamerica.loc.gov"],"anyOf":[{"pathEquals":["/","/newspapers.json"]},{"pathPrefix":"/search/"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"exactSegments":false,"pathSegments":["chroniclingamerica","lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"anyOf":[{"pathPrefix":"/collections/chronicling-america"},{"pathPrefix":"/chroniclingamerica"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}}],"htmlRoutes":[{"id":"chronicling-america","match":{"anyOf":[{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/collections/chronicling-america"},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/chroniclingamerica"}]},"mode":"chronicling_america_html"}]},{"id":"civicclerk","name":"CivicPlus CivicClerk Agenda Portals","category":"public-records","description":"Extracts municipal meeting events and agendas via CivicClerk OData v1 API with portal-to-API same-eTLD+1 twin upgrades.","domains":["*.civicclerk.com"],"auth_mode":"pub","exampleUrls":["https://mauicounty.api.civicclerk.com/v1/Events?$top=3","https://mauicounty.api.civicclerk.com/v1/Events/1023","https://mauicounty.portal.civicclerk.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".api.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathPrefix":"/v1/Events"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"exactSegments":false,"pathSegments":["event",{"param":"eventId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events/{eventId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathEquals":["/","/events"]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events?$top=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}}],"htmlRoutes":[{"id":"civicclerk","match":{"exactSegments":false},"mode":"civicclerk_html"}]},{"id":"civicplus","name":"CivicPlus CivicEngage Agenda & Document Portals","category":"public-records","description":"Universal extractor for CivicPlus CivicEngage /AgendaCenter, /DocumentCenter, and /CivicAlerts.aspx pages on city and county domains: meeting dates, agenda titles, agenda/HTML/packet/minutes links, public document directories, and municipal alerts. Fingerprint-gated; never touches robots.txt-disallowed /RSSFeed.aspx.","domains":["www.gulfshoresal.gov","www.ankenyiowa.gov","www.springfieldmo.gov","www.brownwoodtexas.gov","www.fayetteville-ar.gov"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.gulfshoresal.gov/AgendaCenter","https://www.brownwoodtexas.gov/DocumentCenter","https://www.springfieldmo.gov/CivicAlerts.aspx"],"htmlRoutes":[{"id":"civicplus","match":{"anyOf":[{"pathPrefix":"/AgendaCenter","exactSegments":false},{"pathPrefix":"/DocumentCenter","exactSegments":false},{"pathEquals":["/CivicAlerts.aspx"]}]},"mode":"civicplus_agenda_html"}]},{"id":"ckan","name":"CKAN Open Data Portals (Data.gov, UK, AU, Canada & City Portals)","category":"public-records","description":"Upgrades CKAN open-data portal dataset pages to /api/3/action/package_show JSON with organization, license, and downloadable resources.","domains":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org","data.gov.uk","www.data.gov.uk","data.gov.au","open.canada.ca"],"exampleUrls":["https://open.canada.ca/data/en/dataset/0032ce54-c5dd-4b66-99a0-320a7b5e99f2"],"routes":[{"match":{"hosts":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.uk","www.data.gov.uk"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.uk/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.au"],"exactSegments":true,"pathSegments":["data","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.au/data/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["open.canada.ca"],"exactSegments":true,"pathSegments":["data","en","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://open.canada.ca/data/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}}]},{"id":"classic-forum-pack","name":"Classic Forum Pack","category":"commerce-social","description":"Extracts structured posts, authors, timestamps, and quote blocks from Invision Community, vBulletin (vB3/4 & vB5), and phpBB thread HTML while rejecting HTTP 200 soft-404s.","domains":["gtaforums.com","forum.doom9.org","forum.image-line.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://gtaforums.com/topic/1007946-gtao-event-12th-nov-2026-as-the-trip-to-leonida-approaches-go-back-to-the-basics-w-bonuses-on-all-contact-missions-free-mode-challenges-stunt-race-series-more/","https://forum.doom9.org/showthread.php?t=187224","https://forum.image-line.com/viewtopic.php?t=343634"],"htmlRoutes":[{"id":"classic-forum-pack","match":{"exactSegments":false},"mode":"classic_forum_pack_html"}]},{"id":"clinicaltrials","name":"ClinicalTrials.gov Studies","category":"research-health","description":"Extracts clinical trial NCT ID, recruitment status, phase, conditions, interventions, sponsor, and summary from rendered clinicaltrials.gov/study/NCT... pages (strictly respecting robots.txt).","domains":["clinicaltrials.gov","www.clinicaltrials.gov"],"exampleUrls":["https://clinicaltrials.gov/study/NCT04280705"],"htmlRoutes":[{"match":{"scanSegment":{"param":"nctId","charset":"nct_id","transform":"upper"}},"mode":"dom","jsonLdTypes":["MedicalStudy","MedicalTrial","ClinicalTrial"],"embeddedBalancedKey":"protocolSection","requireVars":["title","hasAnyDetail"],"vars":{"title":{"embeddedPaths":["identificationModule.briefTitle"],"jsonLdPaths":["name"],"metaKeys":["og:title"]},"overallStatus":{"embeddedPaths":["statusModule.overallStatus"],"jsonLdPaths":["status"]},"phases":{"embeddedPaths":["designModule.phases"],"join":", "},"leadSponsor":{"embeddedPaths":["sponsorCollaboratorsModule.leadSponsor.name"],"jsonLdPaths":["sponsor.name"]},"conditions":{"embeddedPaths":["conditionsModule.conditions"],"jsonLdPaths":["healthCondition"],"limit":10,"join":", "},"summary":{"embeddedPaths":["descriptionModule.briefSummary"],"jsonLdPaths":["description"],"metaKeys":["description"]},"summaryShort":{"template":"{summary}","whenVars":["summary"],"sliceMax":260},"hasAnyDetail":{"template":"1","whenAnyVars":["overallStatus","phases","leadSponsor","conditions","summary"]}},"titleTemplate":"{title} ({nctId})","descriptionVar":"summaryShort","bullets":[{"label":"NCT Number","template":"`{nctId}`"},{"label":"Status","template":"{overallStatus}","whenVar":"overallStatus"},{"label":"Phase","template":"{phases}","whenVar":"phases"},{"label":"Lead Sponsor","template":"{leadSponsor}","whenVar":"leadSponsor"},{"label":"Conditions","template":"{conditions}","whenVar":"conditions"}],"sections":[{"heading":"Brief Summary","textVar":"summary"}],"appendCurrentMdDelta":{"baseVar":"summary","minExtraChars":120}}]},{"id":"cms-data","name":"CMS Data & Provider Data Catalog","category":"research-health","description":"Centers for Medicare & Medicaid Services (CMS) DKAN metastore, datastore query, and data-api v1 adapter enforcing 10s crawl-delay.","domains":["data.cms.gov"],"auth_mode":"pub","min_interval_ms":10000,"strict_robots":true,"exampleUrls":["https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/mj5m-pzi6","https://data.cms.gov/provider-data/api/1/datastore/query/mj5m-pzi6/0?limit=2","https://data.cms.gov/data-api/v1/dataset/9767cb68-8ea9-4f0b-8179-9431abc89f11/data?size=2"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/provider-data/api/"},{"pathPrefix":"/data-api/v1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cms_data_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-data","dataset",{"param":"datasetId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_data_json"}}],"htmlRoutes":[{"id":"cms-data","match":{"exactSegments":false},"mode":"cms_data_html"}]},{"id":"cms-price-transparency","name":"CMS Hospital & Payer Price Transparency (HPT & MRF)","category":"research-health","description":"Universal engine for hospital /cms-hpt.txt discovery files, bounded Range-streaming MRF JSON/CSV charge files, ZIP/gzip archive detection, and payer TiC index feeds.","domains":["stanfordhealthcare.org","www.mountsinai.org","nyulangone.org","www.ucsfhealth.org","transparency-in-coverage.uhc.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://stanfordhealthcare.org/cms-hpt.txt","https://nyulangone.org/cms-hpt.txt","https://stanfordhealthcare.org/content/dam/SHC/patientsandvisitors/pricingtransparency/946174066_stanford-health-care_standardcharges.json","https://transparency-in-coverage.uhc.com/api/v1/uhc/blobs/"],"routes":[{"match":{"pathEquals":["/cms-hpt.txt"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":524288},"extract":{"textMode":"cms_hpt_txt"}},{"match":{"pathSuffix":"standardcharges.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}},{"match":{"pathSuffix":"standardcharges.csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"cms_mrf_csv"}},{"match":{"hosts":["transparency-in-coverage.uhc.com"],"pathPrefix":"/api/v1/uhc/blobs"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}},{"match":{"anyOf":[{"pathSuffix":"table-of-contents.json"},{"pathSuffix":"_index.json"},{"pathSuffix":"-index.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}}],"htmlRoutes":[{"id":"cms-price-transparency","match":{"exactSegments":false},"mode":"cms_price_transparency_html"}]},{"id":"college-scorecard","name":"College Scorecard (U.S. Department of Education)","category":"public-records","description":"U.S. Department of Education College Scorecard API adapter scoped to api.data.gov/ed/collegescorecard with compact default fields.","domains":["collegescorecard.ed.gov","api.data.gov"],"auth_mode":"key","exampleUrls":["https://api.data.gov/ed/collegescorecard/v1/schools?id=166027","https://collegescorecard.ed.gov/school/?166027-Harvard-University"],"routes":[{"match":{"hosts":["api.data.gov"],"exactSegments":false,"pathPrefix":"/ed/collegescorecard"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"id,school.name,school.city,school.state,school.school_url,latest.student.size,latest.admissions.admission_rate.overall,latest.cost.tuition.in_state,latest.cost.tuition.out_of_state,latest.earnings.10_yrs_after_entry.median","per_page":"10"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"college_scorecard_json"}}],"htmlRoutes":[{"id":"college-scorecard","match":{"hosts":["collegescorecard.ed.gov"],"exactSegments":false},"mode":"college_scorecard_html"}]},{"id":"company-newsrooms","name":"Company Newsrooms (Prowly / Prezly / Cision)","category":"commerce-social","description":"Extracts corporate newsrooms and RSS/Atom press release feeds from Prowly, Prezly, and Cision PR portals.","domains":["news.cision.com","multimedia.cision.com","*.prowly.com","*.prezly.com","press.brusselsairlines.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://residence.prowly.com/rss","https://residence.prowly.com/","https://press.brusselsairlines.com/feed","https://news.cision.com/tietoevry"],"routes":[{"match":{"anyOf":[{"pathEquals":["/rss","/feed","/rss.xml","/feed.xml"]},{"pathSuffix":"/rss"},{"pathSuffix":"/feed"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"company_newsroom_rss_xml"}}],"htmlRoutes":[{"id":"company-newsrooms","match":{"exactSegments":false},"mode":"company_newsrooms_html"}]},{"id":"confluence-public","name":"Confluence Public Spaces","category":"developer","description":"Upgrades public Confluence /wiki/spaces/.../pages/{pageId} URLs to same-origin REST content API JSON twins with SSR HTML fallback; keyless public spaces only.","domains":["openmrs.atlassian.net","ecosystem.atlassian.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://openmrs.atlassian.net/wiki/spaces/docs/pages/25462110/Reporting+Module","https://openmrs.atlassian.net/wiki/spaces/docs/overview"],"routes":[{"match":{"pathPrefix":"/wiki/spaces/","exactSegments":false,"pathSegments":["wiki","spaces",{"param":"space","charset":"url_seg","minLen":1,"maxLen":80},"pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/wiki/rest/api/content/{pageId}?expand=body.view,space,version,ancestors","kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","rest","api","content",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"expand":"body.view,space,version,ancestors"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","api","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"body-format":"view"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}}],"htmlRoutes":[{"id":"confluence-public","match":{"exactSegments":false},"mode":"confluence_public_html"}]},{"id":"congress-gov","name":"Congress.gov Federal Legislation","category":"public-records","description":"Official api.congress.gov v3 API adapter for federal bills, amendments, nominations, committees, and members with HTML fallback for www.congress.gov.","domains":["congress.gov","www.congress.gov","api.congress.gov"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.congress.gov/v3/bill/118/hr/815?format=json","https://www.congress.gov/bill/118th-congress/house-bill/815"],"routes":[{"match":{"hosts":["api.congress.gov"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hr/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/s/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}}],"htmlRoutes":[{"id":"congress-gov","match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false},"mode":"congress_gov_html"}]},{"id":"constructor-io","name":"Constructor.io On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Constructor.io search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["ac.cnstrc.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://ac.cnstrc.com/search/shirt?key=key_kUTI6qLxMCLBIaN9&num_results_per_page=10"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]},{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["v1","search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"constructor_io"}}],"htmlRoutes":[{"id":"constructor-io","match":{"exactSegments":false},"mode":"constructor_io_html"}]},{"id":"copyright-office","name":"U.S. Copyright Office Public Records","category":"public-records","description":"U.S. Copyright Office Public Records System (publicrecords.copyright.gov) keyless JSON API adapter with HTML fallback.","domains":["publicrecords.copyright.gov","api.publicrecords.copyright.gov","cocatalog.loc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query=TX0009000001&page_number=1&records_per_page=5","https://publicrecords.copyright.gov/detailed-record/voyager_32941460"],"routes":[{"match":{"hosts":["api.publicrecords.copyright.gov"],"pathPrefix":"/search_service_external/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}},{"match":{"hosts":["publicrecords.copyright.gov"],"exactSegments":false,"pathSegments":["detailed-record",{"param":"recordId","charset":"alnum_dash","minLen":3,"maxLen":80}]},"twin":{"fetchUrl":"https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query={recordId}&page_number=1&records_per_page=5","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}}],"htmlRoutes":[{"id":"copyright-office","match":{"hosts":["publicrecords.copyright.gov","cocatalog.loc.gov"],"exactSegments":false},"mode":"copyright_office_html"}]},{"id":"cornell-lii","name":"Cornell Law LII (CFR & US Code)","category":"public-records","description":"Extracts clean statutory and CFR regulatory text from www.law.cornell.edu/cfr/* and /uscode/* while stripping navigation and donation sidebars.","domains":["www.law.cornell.edu","law.cornell.edu"],"exampleUrls":["https://www.law.cornell.edu/cfr/text/16/part-1512","https://www.law.cornell.edu/uscode/text/15/2051"],"htmlRoutes":[{"id":"cornell-lii","mode":"dom","match":{"anyOf":[{"exactSegments":false,"pathSegments":["cfr",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]},{"exactSegments":false,"pathSegments":["uscode",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]}]},"vars":{"title":{"cssText":["#page-title","main#content h1","#content h1","h1","title"],"trim":true},"body":{"cssHtmlToMd":["#content .tab-pane.active","main#content","#content","main","article"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"costco-sams-club","name":"Costco & Sam's Club","category":"commerce-social","description":"Extracts Costco and Sam's Club public product pages from schema.org Product JSON-LD and Sam's Club __NEXT_DATA__ hydration, strictly rejecting Kasada, Akamai, and empty SPA shells.","domains":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.costco.com/p/-/costco-shop-card/10024438","https://www.samsclub.com/ip/tnt-fireworks-revolution-rumble/20020700393"],"htmlRoutes":[{"id":"costco-sams-club","match":{"hosts":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"]},"mode":"costco_sams_club_html"}]},{"id":"county-assessor","name":"County Assessor & Property Records","category":"public-records","description":"Universal extractor for Vision Government Solutions (VGSI), Tyler Technologies iasWorld, and SchneiderCorp qPublic/Beacon county property assessor portals.","domains":["gis.vgsi.com","icare.fairfaxcounty.gov","property.muni.org","qpublic.schneidercorp.com","beacon.schneidercorp.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://gis.vgsi.com/madisonct/Parcel.aspx?pid=4","https://gis.vgsi.com/madisonct/Parcel.aspx?pid=10","https://gis.vgsi.com/newhavenct/Parcel.aspx?pid=1"],"htmlRoutes":[{"id":"county-assessor","match":{"exactSegments":false},"mode":"county_assessor_html"}]},{"id":"coursedog","name":"Coursedog University Catalogs","category":"public-records","description":"Extracts Coursedog public university catalogs from SSR __NUXT_DATA__ and rendered catalog DOM alongside public Coursedog JSON API routes.","domains":["*.coursedog.com","catalog.pratt.edu","catalogs.umn.edu"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://app.coursedog.com/api/v1/cm/umn/courses/search","https://catalog.pratt.edu/courses","https://catalogs.umn.edu/"],"routes":[{"match":{"hosts":["app.coursedog.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"coursedog_json"}}],"htmlRoutes":[{"id":"coursedog","match":{"exactSegments":false},"mode":"coursedog_html"}]},{"id":"courseleaf","name":"CourseLeaf University Course Catalogs","category":"public-records","description":"Universal extractor for CourseLeaf catalog pages (catalog..edu/courses// and program pages): course code, title, credits, description, requisites, and grading from div.courseblock. Fingerprint-gated; never calls /ribbit/, which CourseLeaf robots.txt files disallow.","domains":["catalog.unc.edu","catalog.colorado.edu","catalog.utexas.edu"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://catalog.unc.edu/courses/comp/","https://catalog.colorado.edu/courses-a-z/csci/","https://catalog.utexas.edu/courses/acc/"],"htmlRoutes":[{"id":"courseleaf","match":{"exactSegments":false},"mode":"courseleaf_courses_html"}]},{"id":"courtlistener","name":"CourtListener Federal & State Case Law","category":"public-records","description":"Official CourtListener REST API v4 adapter for opinions, clusters, RECAP dockets, and court metadata with HTML fallback.","domains":["courtlistener.com","www.courtlistener.com"],"auth_mode":"key","exampleUrls":["https://www.courtlistener.com/api/rest/v4/courts/scotus/","https://www.courtlistener.com/api/rest/v4/clusters/108713/","https://www.courtlistener.com/opinion/108713/marbury-v-madison/"],"routes":[{"match":{"pathPrefix":"/api/rest/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["opinion",{"param":"clusterId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/clusters/{clusterId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/dockets/{docketId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}}],"htmlRoutes":[{"id":"courtlistener","match":{"exactSegments":false},"mode":"courtlistener_html"}]},{"id":"coveo","name":"Coveo Cloud Search","category":"developer","description":"Opt-in page-key adapter for Coveo /rest/search/v2 endpoints; honors robots.txt Allow /rest/search and defaults OFF.","domains":["platform.cloud.coveo.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://platform.cloud.coveo.com/rest/search/v2?organizationId=mycoveocloudv2organizationg8tp8wu3&access_token=xx564559b1-0045-48e1-953c-3addd1ee4457&q=coveo&numberOfResults=10"],"routes":[{"match":{"hostSubdomain":{"suffix":".cloud.coveo.com","param":"regionHost"},"pathEquals":["/rest/search/v2"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"coveo"}}],"htmlRoutes":[{"id":"coveo","match":{"exactSegments":false},"mode":"coveo_html"}]},{"id":"cpsc-ebike-battery","name":"E-Bike Battery Safety Standards (UL 2849)","category":"public-records","description":"Extracts UL 2849 / UL 2271 e-bike electrical system and battery certification guidance from ul.com (complementing cpsc-recalls and ebike-state-laws).","domains":["ul.com","www.ul.com"],"auth_mode":"html","exampleUrls":["https://www.ul.com/services/e-bikes-certificationevaluating-and-testing-ul-2849","https://www.ul.com/industries/automotive-and-mobility/micromobility-device-evaluation-testing-and-certification","https://www.ul.com/resources/comparison-e-bikes-standards-en-15194-and-ul-2849"],"htmlRoutes":[{"id":"cpsc-ebike-battery","match":{"exactSegments":false},"mode":"cpsc_ebike_battery_html"}]},{"id":"cpsc-recalls","name":"CPSC Recalls & SaferProducts.gov","category":"public-records","description":"Formats bounded saferproducts.gov RecallNumber queries via JSON twin and extracts structured recall details and RecallNumber from cpsc.gov/Recalls pages (never fetching the unfiltered 25 MiB SaferProducts dump).","domains":["www.saferproducts.gov","saferproducts.gov","www.cpsc.gov","cpsc.gov"],"exampleUrls":["https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123","https://www.cpsc.gov/Recalls/2027/Cipton-Recalls-Bicycle-Helmets-Due-to-Risk-of-Serious-Injury-or-Death-from-Head-Injury-Violate-Mandatory-Standard-for-Bicycle-Helmets"],"routes":[{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["RecallNumber","recallnumber","recallNumber","RECALLNUMBER"],"param":"recallNum","charset":"cpsc_recall_num","minLen":2,"maxLen":24,"transform":"strip_dashes"}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber={recallNum}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"unwrapFirstArrayElement":true,"requireFields":["RecallNumber","Title"],"vars":{"title":{"paths":["Title"],"trim":true},"recallNumber":{"paths":["RecallNumber"],"trim":true},"recallDate":{"paths":["RecallDate"],"sliceMax":10},"lastPublishDate":{"paths":["LastPublishDate"],"sliceMax":10},"description":{"paths":["Description"],"trim":true},"descShort":{"paths":["Description"],"trim":true,"sliceMax":260},"consumerContact":{"paths":["ConsumerContact"],"trim":true},"recallUrl":{"paths":["URL"],"requireHttps":true},"hazards":{"paths":["Hazards"],"subField":"Name","join":"; ","limit":10},"remedies":{"paths":["Remedies"],"subField":"Name","join":"; ","limit":10},"manufacturers":{"paths":["Manufacturers"],"subField":"Name","join":", ","limit":10},"retailers":{"paths":["Retailers"],"subField":"Name","join":", ","limit":10},"injuries":{"paths":["Injuries"],"subField":"Name","join":"; ","limit":10}},"titleTemplate":"{title} (Recall #{recallNumber})","descriptionVar":"descShort","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"},{"label":"Last Published","template":"{lastPublishDate}","whenVar":"lastPublishDate"},{"label":"Hazards","template":"{hazards}","whenVar":"hazards"},{"label":"Remedies","template":"{remedies}","whenVar":"remedies"},{"label":"Injuries / Incidents","template":"{injuries}","whenVar":"injuries"},{"label":"Manufacturers","template":"{manufacturers}","whenVar":"manufacturers"},{"label":"Retailers","template":"{retailers}","whenVar":"retailers"},{"label":"Consumer Contact","template":"{consumerContact}","whenVar":"consumerContact"},{"label":"CPSC URL","template":"{recallUrl}","whenVar":"recallUrl"}],"sections":[{"heading":"Description","textVar":"description"},{"heading":"Products","arrayPath":"Products","limit":25,"columns":[{"header":"Name","paths":["Name"]},{"header":"Model","paths":["Model"],"code":true},{"header":"Units","paths":["NumberOfUnits"]},{"header":"Type","paths":["Type"]}]},{"heading":"Images","arrayPath":"Images","limit":10,"requireItemVar":"imgUrl","collectLinkVars":["imgUrl"],"itemVars":{"imgUrl":{"paths":["URL"],"requireHttps":true},"imgCap":{"paths":["Caption"],"default":"Recall product image"}},"itemTemplate":"[{imgCap}]({imgUrl})"}],"linksVars":["recallUrl"],"recordFields":{"recallNumber":"{recallNumber}","title":"{title}","recallDate":"{recallDate}","url":"{recallUrl}","hazards":"{hazards}","remedies":"{remedies}","manufacturers":"{manufacturers}"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["Recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]},{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]}]},"mode":"dom","vars":{"title":{"cssText":["h1"],"metaKeys":["og:title"],"trim":true},"recallNumber":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"(?i)Recall\\s*(?:Number|No\\.?|#)\\s*:?\\s*([0-9]{2}-?[0-9]{2,5})","group":1},"trim":true},"recallDate":{"metaKeys":["article:published_time"],"cssText":["time",".recall-detail__date"],"trim":true},"summary":{"metaKeys":["description","og:description"],"trim":true},"body":{"cssHtmlToMd":["main article",".recall-detail",".node--type-recall","main","article"],"format":"strip_leading_h1"}},"requireVars":["title","body"],"titleTemplate":"{title}","descriptionVar":"summary","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`","whenVar":"recallNumber"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"}],"bodyVar":"body"}]},{"id":"crates-io","name":"Rust Crates.io","category":"developer","description":"Upgrades crates.io pages to the v1 JSON API with Cargo install command, MSRV, Cargo features, downloads, and release history.","domains":["crates.io","www.crates.io"],"exampleUrls":["https://crates.io/crates/serde"],"match":{"exactSegments":false,"pathSegments":["crates",{"param":"crateName","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://crates.io/api/v1/crates/{crateName}","kind":"json","accept":"application/json"},"extract":{"requireFields":["crate.name"],"vars":{"name":{"paths":["crate.name"]},"ver":{"paths":["crate.max_stable_version","crate.max_version","versions.0.num"]},"desc":{"paths":["crate.description"],"trim":true},"license":{"paths":["versions.0.license"]},"msrv":{"paths":["versions.0.rust_version"]},"repo":{"paths":["crate.repository"]},"docs":{"paths":["crate.documentation"],"fallbackTemplate":"https://docs.rs/{name}"},"downloads":{"paths":["crate.downloads"],"format":"int_comma"},"features":{"paths":["versions.0.features"],"format":"object_keys","limit":14,"itemWrap":"`","join":", "},"categories":{"paths":["categories"],"subField":"category","join":", "},"keywords":{"paths":["keywords"],"subField":"keyword","join":", "}},"titleTemplate":"{name} v{ver} (Rust Crate)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Rust Crate)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Cargo","template":"`cargo add {name}`"},{"label":"Version","template":"`{ver}`","whenVar":"ver"},{"label":"MSRV","template":"Rust `{msrv}`","whenVar":"msrv"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"API Docs","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"},{"label":"Cargo Features","template":"{features}","whenVar":"features"},{"label":"Categories","template":"{categories}","whenVar":"categories"},{"label":"Keywords","template":"{keywords}","whenVar":"keywords"}],"sections":[{"heading":"Recent Releases","arrayPath":"versions","minItems":2,"limit":6,"columns":[{"header":"Version","paths":["num"],"code":true},{"header":"Published","paths":["created_at"],"sliceMax":10},{"header":"MSRV","paths":["rust_version"]}]}],"linksVars":["docs","repo"]}},{"id":"dailymed","name":"NLM DailyMed Drug Labels","category":"research-health","description":"National Library of Medicine DailyMed v2 REST API adapter for JSON catalog endpoints and HL7 SPL XML documents with drugInfo HTML fallback.","domains":["dailymed.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?pagesize=2","https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/0f3234b2-806e-4fab-99f5-b7d15177565b.xml","https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.json?drug_name=lipitor&pagesize=2"],"routes":[{"match":{"pathPrefix":"/dailymed/services/v2/spls/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}},{"match":{"pathEquals":["/dailymed/services/v2/spls.json","/dailymed/services/v2/drugnames.json","/dailymed/services/v2/drugclasses.json","/dailymed/services/v2/ndcs.json","/dailymed/services/v2/rxcuis.json","/dailymed/services/v2/uniis.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"dailymed_list_json"}},{"match":{"pathEquals":["/dailymed/drugInfo.cfm"],"queryParams":[{"name":"setid","param":"setid","charset":"alnum_dash","minLen":32,"maxLen":40}]},"twin":{"fetchUrl":"https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/{setid}.xml","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}}],"htmlRoutes":[{"id":"dailymed","match":{"pathPrefix":"/dailymed/","exactSegments":false},"mode":"dailymed_html"}]},{"id":"dealer-locator-pack","name":"Dealer Locator Pack (Bullseye, Storepoint, MetaLocator, Where2GetIt)","category":"commerce-social","description":"Opt-in page-key adapter pack for Bullseye, Storepoint, MetaLocator, and Where2GetIt locator APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["ws.bullseyelocations.com","www.bullseyelocations.com","api.storepoint.co","hosted.where2getit.com","api.metalocator.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.bullseyelocations.com/"],"routes":[{"match":{"anyOf":[{"hosts":["ws.bullseyelocations.com","www.bullseyelocations.com"],"pathEquals":["/RestSearch.svc/DoSearch2","/RestSearch.svc/DoSearch"]},{"hosts":["api.storepoint.co"],"pathPrefix":"/v1/"},{"hosts":["api.storepoint.co"],"pathPrefix":"/public/v1/"},{"hosts":["api.metalocator.com"],"pathPrefix":"/api/"},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"responsive","ajax"]},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"rest",{"param":"action","charset":"alnum_dash","minLen":1,"maxLen":64}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"dealer_locator_pack"}}],"htmlRoutes":[{"id":"dealer-locator-pack","match":{"exactSegments":false},"mode":"dealer_locator_pack_html"}]},{"id":"deps-dev","name":"Open Source Insights (deps.dev)","category":"developer","description":"Extracts package versions, default/latest stable release, licenses, advisories, and dependencies via the deps.dev v3 JSON API.","domains":["deps.dev","api.deps.dev"],"auth_mode":"pub","exampleUrls":["https://api.deps.dev/v3/systems/npm/packages/express"],"routes":[{"match":{"hosts":["api.deps.dev"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/npm/packages/{scope}%2F{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":[{"param":"system","allowValues":["npm","pypi","cargo","nuget","go","maven"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":200}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/{system}/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}}],"htmlRoutes":[{"id":"deps-dev","match":{"hosts":["deps.dev"],"exactSegments":false},"mode":"deps_dev_html"}]},{"id":"dev-to","name":"DEV Community Articles (dev.to)","category":"commerce-social","description":"Upgrades dev.to// articles to dev.to/api/articles raw body_markdown.","domains":["dev.to","www.dev.to"],"exampleUrls":["https://dev.to/ben/long-live-rails-3p21"],"match":{"exactSegments":true,"pathSegments":[{"param":"author","charset":"alnum_dash","reserved":["t","top","latest","pod","videos","tags","search","settings","enter","new","about","privacy","terms"]},{"param":"slug","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://dev.to/api/articles/{author}/{slug}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title","body_markdown"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"author":{"paths":["user.name"]},"publishedTime":{"paths":["published_timestamp"]},"body":{"paths":["body_markdown"],"stripFrontmatter":true,"trim":true}},"titleTemplate":"{title}","descriptionVar":"desc","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body"}},{"id":"dining-reservations","name":"Dining Reservations (OpenTable / Resy / ToastTab)","category":"commerce-social","description":"Extracts public restaurant venue metadata from OpenTable, Resy, and ToastTab Local pages via Restaurant/FoodEstablishment JSON-LD and hydrated DOM while rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.opentable.com/r/gary-danko-san-francisco","https://resy.com/cities/new-york-ny/venues/carbone","https://www.toasttab.com/local"],"htmlRoutes":[{"id":"dining-reservations","match":{"hosts":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"]},"mode":"dining_reservations_html"}]},{"id":"discourse-topic","name":"Discourse Forum Threads (Universal Engine)","category":"commerce-social","description":"Upgrades any Discourse forum thread (/t//) to its .json post_stream with Accepted Solution badges.","domains":["meta.discourse.org","community.home-assistant.io","users.rust-lang.org","discuss.python.org"],"universalEngine":true,"exampleUrls":["https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371"],"match":{"exactSegments":false,"pathSegments":["t",{"param":"slug","charset":"url_seg"},{"param":"topicId","charset":"digits"}]},"twin":{"id":"discourse-topic","fetchUrl":"https://{host}/t/{slug}/{topicId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"requireAnyFields":["post_stream.posts"],"vars":{"title":{"paths":["title"],"trim":true},"tags":{"paths":["tags"],"itemWrap":"`","join":", ","limit":20},"firstAuthor":{"paths":["post_stream.posts.0.username"]},"firstCreated":{"paths":["post_stream.posts.0.created_at"]},"acceptedPostNum":{"paths":["accepted_answer.post_number"]}},"titleTemplate":"{title}","authorVar":"firstAuthor","publishedTimeVar":"firstCreated","metaLine":[{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"","subsectionsArrayPath":"post_stream.posts","limit":20,"requireItemVar":"body","subsectionHeadingTemplate":"Original Post — {userWithDate}","subsectionAltWhenVar":"nonOpPostNum","subsectionAltHeadingTemplate":"{replyBadge} — {userWithDate}","subsectionBodyVar":"body","itemVars":{"postNum":{"paths":["post_number"],"fallbackTemplate":"{index1}"},"nonOpPostNum":{"paths":["post_number"],"excludeEquals":"1"},"isAcceptedFlag":{"paths":["accepted_answer"],"format":"bool_map","trueValue":"1","falseValue":""},"isAcceptedPostNum":{"paths":["post_number"],"equalsVar":"acceptedPostNum"},"replyBadge":{"template":"✅ Accepted Solution","whenAnyVars":["isAcceptedFlag","isAcceptedPostNum"],"fallbackTemplate":"Reply #{postNum}"},"username":{"paths":["username"]},"userLabel":{"template":"@{username}","whenVars":["username"],"default":"user"},"createdDate":{"paths":["created_at"],"sliceMax":10},"userWithDate":{"template":"{userLabel} ({createdDate})","whenVars":["createdDate"],"fallbackVar":"userLabel"},"body":{"paths":["cooked"],"format":"html_to_md"}}}]}},{"id":"dkan","name":"DKAN Open Data Portals (Metastore & Datastore)","category":"public-records","description":"Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters.","domains":["data.healthcare.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false","https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3","https://data.healthcare.gov/dataset/e4rr-zk4i"],"routes":[{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"pathPrefix":"/api/1/metastore/schemas/dataset/items"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}},{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false,"pathSegments":["api","1","datastore","query",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_datastore_json"}},{"match":{"hosts":["data.healthcare.gov"],"exactSegments":true,"pathSegments":["dataset",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/api/1/metastore/schemas/dataset/items/{datasetId}?show-reference-ids=false","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}}]},{"id":"docker-hub","name":"Docker Hub","category":"developer","description":"Upgrades hub.docker.com repository and /tags pages (both /_/ official library and /r//) to the keyless Docker Hub v2 JSON API.","domains":["hub.docker.com"],"exampleUrls":["https://hub.docker.com/_/alpine","https://hub.docker.com/_/alpine/tags","https://hub.docker.com/r/library/nginx","https://hub.docker.com/r/library/nginx/tags"],"routes":[{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {namespace}/{name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}}]},{"id":"docs-rs","name":"Rust docs.rs Crate Documentation","category":"developer","description":"Extracts Rust crate metadata, version, feature flags, doc coverage, and rustdoc API pages from docs.rs SSR HTML (avoiding /json zstd binary archives).","domains":["docs.rs"],"auth_mode":"pub","exampleUrls":["https://docs.rs/crate/serde/latest","https://docs.rs/serde/latest/serde/"],"htmlRoutes":[{"id":"docs-rs","match":{"hosts":["docs.rs"],"exactSegments":false},"mode":"docs_rs_html"}]},{"id":"doi-crossref","name":"DOI.org & Crossref Bibliographic Resolver","category":"research-health","description":"Upgrades doi.org/10./ links to api.crossref.org/works/ bibliographic JSON (authors, venue, citations, JATS abstract, and publisher URL).","domains":["doi.org","www.doi.org","dx.doi.org"],"exampleUrls":["https://doi.org/10.1038/s41586-021-03819-2"],"match":{"pathSegments":[{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"https://api.crossref.org/works/{doi}","kind":"json","accept":"application/json"},"extract":{"rootPath":"message","requireVars":["title"],"vars":{"title":{"paths":["title.0"],"fallbackTemplate":"{doi}","format":"strip_tags"},"authors":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":16},"authorsShort":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":4},"venue":{"paths":["container-title.0"]},"publisher":{"paths":["publisher"]},"venueFull":{"template":"{venue} ({publisher})","whenVars":["venue","publisher"],"fallbackVar":"venue"},"citations":{"paths":["is-referenced-by-count"],"format":"int_comma"},"pubUrl":{"paths":["URL"],"fallbackTemplate":"https://doi.org/{doi}","requireHttps":true},"pubDate":{"paths":["issued.date-parts.0"],"format":"date_parts"},"abstract":{"paths":["abstract"],"format":"jats_abstract"},"abstractShort":{"paths":["abstract"],"format":"jats_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"DOI","template":"`{doi}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Venue / Journal","template":"{venueFull}","whenVar":"venueFull"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Cited By (Crossref)","template":"{citations}","whenVar":"citations"},{"label":"Publisher Link","template":"{pubUrl}","whenVar":"pubUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["pubUrl"]}},{"id":"dol-enforcement","name":"U.S. Department of Labor Enforcement & Data","category":"public-records","description":"Extracts Wage and Hour Division (WHD) and OSHA enforcement records from apiprod.dol.gov v4 APIs (DOL_API_KEY) with HTML fallback for dol.gov and enforcedata/data.dol.gov while rejecting empty data.dol.gov shells.","domains":["apiprod.dol.gov","enforcedata.dol.gov","data.dol.gov","www.dol.gov","dol.gov"],"auth_mode":"key","exampleUrls":["https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2","https://apiprod.dol.gov/v4/get/OSHA/inspection/json?limit=2","https://www.dol.gov/agencies/whd/data"],"routes":[{"match":{"hosts":["apiprod.dol.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"dol_enforcement_json"}}],"htmlRoutes":[{"id":"dol-enforcement","match":{"hosts":["data.dol.gov","enforcedata.dol.gov","www.dol.gov","dol.gov"],"exactSegments":false},"mode":"dol_enforcement_html"}]},{"id":"dpla","name":"Digital Public Library of America (DPLA)","category":"public-records","description":"Digital Public Library of America (DPLA) API v2 adapter with HTML fallback and 2000ms Crawl-delay politeness.","domains":["dp.la","www.dp.la","api.dp.la"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.dp.la/v2/items?q=kittens","https://dp.la/item/c3e08f4945e5b7d26386942a4a7f24a2"],"routes":[{"match":{"hosts":["api.dp.la"],"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}},{"match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"pathSegments":["item",{"param":"itemId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://api.dp.la/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}}],"htmlRoutes":[{"id":"dpla","match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"reservedFirstSegment":["search","qa"]},"mode":"dpla_html"}]},{"id":"ebay","name":"eBay Official Browse API","category":"commerce-social","description":"Extracts eBay item pricing, condition, MPN, strict GTIN, and search summaries via the official eBay Browse API.","domains":["ebay.com","www.ebay.com","api.ebay.com"],"auth_mode":"key","exampleUrls":["https://www.ebay.com/itm/133000133001","https://api.ebay.com/buy/browse/v1/item/v1|133000133001|0"],"routes":[{"match":{"hosts":["ebay.com","www.ebay.com"],"anyOf":[{"exactSegments":true,"pathSegments":["itm",{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]},{"exactSegments":false,"pathSegments":["itm",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]}]},"twin":{"fetchUrl":"https://api.ebay.com/buy/browse/v1/item/v1|{itemId}|0","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}},{"match":{"hosts":["api.ebay.com"],"pathPrefix":"/buy/browse/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}}]},{"id":"ebike-state-laws","name":"US E-Bike & Bicycle State Laws","category":"public-records","description":"Extracts US state electric bicycle and cycling statutes from PeopleForBikes Prismic/Next.js state tables and League of American Bicyclists state law profiles.","domains":["peopleforbikes.org","www.peopleforbikes.org","bikeleague.org","www.bikeleague.org"],"auth_mode":"html","exampleUrls":["https://www.peopleforbikes.org/electric-bikes/state-laws","https://www.peopleforbikes.org/electric-bikes/policies-and-laws","https://bikeleague.org/bike-laws/state-bike-laws/?bikelaw-by-state=colorado"],"htmlRoutes":[{"id":"ebike-state-laws","match":{"exactSegments":false},"mode":"ebike_state_laws_html"}]},{"id":"ecfr","name":"Electronic Code of Federal Regulations (eCFR)","category":"public-records","description":"Public eCFR Versioner and Search API adapter enforcing strict robots.txt politeness on structure, ancestry, versions, titles, and search endpoints.","domains":["ecfr.gov","www.ecfr.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.ecfr.gov/api/versioner/v1/titles.json","https://www.ecfr.gov/api/versioner/v1/ancestry/2025-01-01/title-16.json?part=1512","https://www.ecfr.gov/api/search/v1/results?query=bicycle&per_page=2"],"routes":[{"match":{"anyOf":[{"pathEquals":["/api/versioner/v1/titles.json","/api/search/v1/results","/api/admin/v1/agencies.json"]},{"pathPrefix":"/api/versioner/v1/structure/"},{"pathPrefix":"/api/versioner/v1/ancestry/"},{"pathPrefix":"/api/versioner/v1/versions/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}},{"match":{"exactSegments":false,"pathSegments":["current",{"param":"title","charset":"alnum_dash","stripPrefix":"title-","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://www.ecfr.gov/api/search/v1/results?query=title+{title}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}}]},{"id":"ecode360-general-code","name":"eCode360 Municipal Codes","category":"public-records","description":"HTML extractor for General Code eCode360 municipal ordinances, chapters, and statutory sections.","domains":["ecode360.com","www.ecode360.com"],"auth_mode":"html","exampleUrls":["https://ecode360.com/44475260","https://ecode360.com/OR5214"],"htmlRoutes":[{"id":"ecode360-general-code","match":{"exactSegments":false},"mode":"ecode360_html"}]},{"id":"ecwid","name":"Ecwid Storefronts & REST API v3","category":"commerce-social","description":"Opt-in page-key adapter for Ecwid /api/v3/{storeId}/products JSON twins with clean HTML/JSON-LD storefront fallback when disabled.","domains":["app.ecwid.com","www.ecwid.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://mdemo.company.site/Black-Tank-p109736045"],"routes":[{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}},{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products",{"param":"productId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}}],"htmlRoutes":[{"id":"ecwid","match":{"exactSegments":false},"mode":"ecwid_html"}]},{"id":"edge-cloud-changelogs","name":"Edge & Cloud Changelogs (Cloudflare, Vercel, Netlify)","category":"developer","description":"Extracts RSS 2.0 and Atom 1.0 release changelogs from Cloudflare Developers, Vercel, and Netlify with same-origin HTML-to-feed upgrades.","domains":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"auth_mode":"pub","exampleUrls":["https://developers.cloudflare.com/changelog/rss/d1.xml","https://vercel.com/atom","https://www.netlify.com/changelog/feed.xml"],"routes":[{"match":{"hosts":["developers.cloudflare.com"],"anyOf":[{"pathEquals":["/changelog/rss/index.xml","/changelog/index.xml"]},{"pathPrefix":"/changelog/rss/","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["developers.cloudflare.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://developers.cloudflare.com/changelog/rss/index.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/atom","/changelog/atom"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://vercel.com/atom","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog/feed.xml","/changelog/rss.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://www.netlify.com/changelog/feed.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}}],"htmlRoutes":[{"id":"edge-cloud-changelogs","match":{"hosts":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"pathPrefix":"/changelog","exactSegments":false},"mode":"edge_cloud_changelog_html"}]},{"id":"edlio-thrillshare","name":"Edlio & Apptegy Thrillshare","category":"public-records","description":"Extracts K-12 school district news feeds, events, and announcements from Edlio (/apps/news/, /apps/events/) and Apptegy Thrillshare portals.","domains":["*.edlio.com","*.apptegy.us","*.sites.thrillshare.com","www.worldcompassacademy.com","www.windsorc1.com","www.eupschools.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.worldcompassacademy.com/apps/news/","https://www.windsorc1.com/o/wcmo/news","https://www.eupschools.org/"],"htmlRoutes":[{"id":"edlio-thrillshare","match":{"exactSegments":false},"mode":"edlio_thrillshare_html"}]},{"id":"edu-job-boards","name":"Education Job Boards (Chronicle Jobs, HigherEdJobs, K12JobSpot, EdJoin)","category":"jobs","description":"Extracts academic and K-12 JobPosting JSON-LD, Chronicle RSS feeds, and job board HTML while rejecting Incapsula/Cloudflare WAF challenges and unhydrated CSR templates.","domains":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"auth_mode":"pub","exampleUrls":["https://jobs.chronicle.com/job/38070836/director-of-occupational-therapy/","https://jobs.chronicle.com/jobsrss/?countrycode=US","https://www.k12jobspot.com/en","https://www.edjoin.org/Home/Jobs?keywords=teacher&searchType=all"],"routes":[{"match":{"hosts":["jobs.chronicle.com"],"pathPrefix":"/jobsrss","exactSegments":false},"twin":{"id":"edu-job-boards","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Chronicle of Higher Education Jobs ({itemCount})","emptyText":"No open academic positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","category":"{dept}","postedAt":"{pubDate}","source":"chronicle"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Category","template":"{dept}"},{"header":"Published","template":"{pubDate}"}]}}}],"htmlRoutes":[{"id":"edu-job-boards","mode":"edu_job_boards_html","match":{"hosts":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"exactSegments":false}}]},{"id":"edx-coursera","name":"edX & Coursera Course Catalog","category":"public-records","description":"Extracts edX course catalog API JSON and Coursera / edX public course landing pages via Course JSON-LD and DOM metadata.","domains":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/","https://www.coursera.org/learn/machine-learning","https://www.edx.org/learn/python"],"routes":[{"match":{"hosts":["courses.edx.org"],"pathPrefix":"/api/courses/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"edx_course_json"}}],"htmlRoutes":[{"id":"edx-coursera","match":{"hosts":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"exactSegments":false},"mode":"edx_coursera_html"}]},{"id":"eeoc-litigation","name":"EEOC Litigation & Enforcement Releases","category":"public-records","description":"Extracts EEOC enforcement press releases, litigation summaries, settlement figures, and district office metadata from eeoc.gov.","domains":["www.eeoc.gov","eeoc.gov"],"auth_mode":"pub","exampleUrls":["https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit","https://www.eeoc.gov/eeoc-litigation","https://www.eeoc.gov/newsroom"],"htmlRoutes":[{"id":"eeoc-litigation","match":{"exactSegments":false},"mode":"eeoc_litigation_html"}]},{"id":"eia","name":"U.S. Energy Information Administration (EIA)","category":"public-records","description":"U.S. Energy Information Administration Open Data v2 JSON API adapter with eia.gov HTML table/prose fallback.","domains":["eia.gov","www.eia.gov","api.eia.gov"],"auth_mode":"key","exampleUrls":["https://api.eia.gov/v2/petroleum/pri/gnd/data/?frequency=weekly&data[0]=value&length=10","https://www.eia.gov/opendata/","https://www.eia.gov/petroleum/gasdiesel/"],"routes":[{"match":{"hosts":["api.eia.gov"],"exactSegments":false,"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"eia_json"}}],"htmlRoutes":[{"id":"eia","match":{"hosts":["eia.gov","www.eia.gov"],"exactSegments":false},"mode":"eia_html"}]},{"id":"electronics-retail-specs","name":"US Electronics Retailers Spec Extractor","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical specification tables for Newegg, B&H Photo Video, and Micro Center.","domains":["newegg.com","www.newegg.com","bhphotovideo.com","www.bhphotovideo.com","microcenter.com","www.microcenter.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.microcenter.com/product/678482/amd-ryzen-7-7800x3d-raphael-am5-42ghz-8-core-boxed-processor-heatsink-not-included","https://www.bhphotovideo.com/c/product/1791390-REG/sony_ilce7m4_b.html"],"htmlRoutes":[{"id":"electronics-retail-specs","match":{"exactSegments":false},"mode":"electronics_retail_specs_html"}]},{"id":"enterprise-ats-full","name":"Enterprise ATS Full (Eightfold, Phenom, Avature, Cornerstone)","category":"jobs","description":"Upgrades Eightfold /careers & /careers/job/ to robots-allowed /api/pcsx/search & /api/pcsx/position_details JSON twins, plus Phenom, Avature, and Cornerstone HTML extractors.","domains":["www.phenom.com","eightfold.ai","nvidia.eightfold.ai","paypal.eightfold.ai","bloomberg.avature.net","www.avature.net","www.csod.com","cornerstone.csod.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://nvidia.eightfold.ai/careers/job/893391708161","https://cornerstone.csod.com/ux/ats/careersite/2/home/requisition/11818?c=cornerstone","https://bloomberg.avature.net/careers/JobDetail/Senior-Software-Engineer-Electronic-Trading/46354"],"routes":[{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathPrefix":"/careers/job/","scanSegment":{"afterLiteral":"job","param":"jobId","charset":"slug","minLen":1,"maxLen":64}},"twin":{"fetchUrl":"https://{host}/api/pcsx/position_details?position_id={jobId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/position_details"],"queryParams":[{"name":"position_id","param":"jobId","charset":"slug","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"],"queryParams":[{"name":"domain","param":"domain","charset":"pkg","minLen":3,"maxLen":120}]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={domain}&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={tenant}.com&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}}],"htmlRoutes":[{"id":"enterprise-ats-full","mode":"enterprise_ats_full_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"anyOf":[{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":false},{"hosts":["careers.phenom.com","www.phenom.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".avature.net","param":"tenant","reserved":["www","login","auth"]},"exactSegments":false},{"hosts":["www.avature.net"],"exactSegments":false},{"hostSubdomain":{"suffix":".csod.com","param":"tenant","reserved":["www","login","auth"]},"pathPrefix":"/ux/ats/careersite/","exactSegments":false},{"hosts":["www.csod.com"],"pathPrefix":"/ux/ats/careersite/","exactSegments":false}]}}]},{"id":"enterprise-ats","name":"SmartRecruiters, Oracle HCM Cloud & Jobvite","category":"jobs","description":"Keyless Oracle HCM Cloud recruitingCEJobRequisitions REST twin + robots.txt-safe SmartRecruiters and Jobvite HTML posting extractors.","domains":["jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"exampleUrls":["https://jobs.smartrecruiters.com/Canva/6000000001554828-enterprise-security-manager-","https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1001/requisitions","https://jobs.jobvite.com/optimizely/job/oHG8efwt"],"routes":[{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}}]},"twin":{"id":"oracle-hcm-job","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitionDetails?onlyData=true&expand=all&finder=ById;Id=%22{reqId}%22,siteNumber={siteNumber}","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["Title"],"vars":{"jobTitle":{"paths":["Title"],"trim":true},"loc":{"paths":["PrimaryLocation"],"trim":true},"wp":{"paths":["WorkplaceType"],"trim":true},"posted":{"paths":["ExternalPostedStartDate"],"sliceMax":10,"trim":true},"extDesc":{"paths":["ExternalDescriptionStr"],"format":"html_to_md"},"extResp":{"paths":["ExternalResponsibilitiesStr"],"format":"html_to_md"},"extQual":{"paths":["ExternalQualificationsStr"],"format":"html_to_md"}},"titleTemplate":"{jobTitle}","publishedTimeVar":"posted","bullets":[{"label":"Requisition ID","template":"`{reqId}`"},{"label":"Primary Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Posted","template":"{posted}","whenVar":"posted"}],"bodyVar":"extDesc","sections":[{"heading":"Responsibilities","textVar":"extResp"},{"heading":"Qualifications","textVar":"extQual"}]}},{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions/","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}]}]},"twin":{"id":"oracle-hcm-board","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitions?onlyData=true&expand=requisitionList.secondaryLocations&finder=findReqs;siteNumber={siteNumber},limit=25","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","vars":{"reqCount":{"paths":["requisitionList"],"format":"array_len"},"total":{"paths":["TotalJobsCount"],"fallbackTemplate":"{reqCount}"}},"requireVars":["reqCount"],"titleTemplate":"Oracle HCM ({siteNumber}) — Open Requisitions ({total})","sections":[{"heading":"","arrayPath":"requisitionList","limit":50,"emptyText":"No open requisitions currently listed.","itemVars":{"id":{"paths":["Id"]},"rTitle":{"paths":["Title"],"trim":true,"default":"Requisition"},"rUrl":{"template":"https://{host}/hcmUI/CandidateExperience/en/sites/{siteNumber}/job/{id}"},"loc":{"paths":["PrimaryLocation"],"trim":true,"default":"-"},"wp":{"paths":["WorkplaceType"],"trim":true,"default":"-"},"posted":{"paths":["PostedDate"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["rUrl"],"columns":[{"header":"Requisition","template":"[{rTitle}]({rUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Posted","template":"{posted}"}]}]}}],"htmlRoutes":[{"id":"smartrecruiters","mode":"dom","match":{"hosts":["jobs.smartrecruiters.com"],"exactSegments":false,"minSegments":2,"pathSegments":[{"param":"org","charset":"pkg"}]},"jsonLdTypes":["JobPosting"],"vars":{"jobTitle":{"jsonLdPaths":["title"],"cssText":["h1.job-title"]},"company":{"jsonLdPaths":["hiringOrganization.name"],"fallbackTemplate":"{org}"},"body":{"cssHtmlToMd":["div[itemprop=\"description\"]","section#st-jobDescription"],"jsonLdPaths":["description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"body"},{"id":"jobvite","mode":"dom","match":{"hosts":["jobs.jobvite.com"],"exactSegments":false,"pathSegments":[{"param":"org","charset":"pkg"},"job",{"param":"jobId","charset":"pkg"}]},"vars":{"jobTitle":{"cssText":["h2.jv-header"]},"meta":{"cssText":["p.jv-job-detail-meta"]},"body":{"cssHtmlToMd":["div.jv-job-detail-description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {org}","metaItalicTemplate":"{meta}","metaItalicWhenVar":"meta","bodyVar":"body"}]},{"id":"epa-envirofacts-echo","name":"EPA Envirofacts & ECHO","category":"research-health","description":"US EPA Envirofacts REST API (data.epa.gov/efservice), ECHO REST services, and echo.epa.gov HTML facility fallback with strict robots.txt politeness.","domains":["data.epa.gov","enviro.epa.gov","echo.epa.gov","echodata.epa.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://data.epa.gov/efservice/tri_facility/state_abbr/DC/rows/0:2/JSON","https://echo.epa.gov/detailed-facility-report?fid=110000350174"],"routes":[{"match":{"hosts":["data.epa.gov"],"pathPrefix":"/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["enviro.epa.gov"],"pathPrefix":"/enviro/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["echodata.epa.gov"],"pathPrefix":"/echo/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}}],"htmlRoutes":[{"id":"epa-envirofacts-echo","match":{"hosts":["echo.epa.gov"],"exactSegments":false},"mode":"epa_echo_html"}]},{"id":"epa-fueleconomy","name":"EPA FuelEconomy.gov","category":"public-records","description":"U.S. DOE/EPA FuelEconomy.gov /ws/rest/ JSON API adapter for vehicle MPG, range, CO2, and make/model/year menus.","domains":["fueleconomy.gov","www.fueleconomy.gov"],"auth_mode":"pub","exampleUrls":["https://www.fueleconomy.gov/ws/rest/vehicle/41276","https://www.fueleconomy.gov/ws/rest/vehicle/menu/make?year=2024"],"routes":[{"match":{"pathPrefix":"/ws/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"fueleconomy_json"}}]},{"id":"etsy","name":"Etsy Open API v3","category":"commerce-social","description":"Extracts Etsy listing title, converted price, SKU, quantity, state, and shop search results via the official Etsy Open API v3.","domains":["etsy.com","www.etsy.com","openapi.etsy.com"],"auth_mode":"key","exampleUrls":["https://www.etsy.com/listing/134000134/walnut-desk-tray","https://openapi.etsy.com/v3/application/listings/134000134"],"routes":[{"match":{"hosts":["etsy.com","www.etsy.com"],"exactSegments":false,"pathSegments":["listing",{"param":"listingId","charset":"digits","minLen":5,"maxLen":16}]},"twin":{"fetchUrl":"https://openapi.etsy.com/v3/application/listings/{listingId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}},{"match":{"hosts":["openapi.etsy.com"],"pathPrefix":"/v3/application/listings"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}}]},{"id":"eur-lex","name":"EUR-Lex","category":"public-records","description":"Upgrades eur-lex.europa.eu/legal-content//TXT/?uri=* pages to the static /TXT/HTML/?uri=* twin while respecting robots.txt Crawl-delay and never touching disallowed /TXT/DOC/.","domains":["eur-lex.europa.eu"],"exampleUrls":["https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679"],"match":{"exactSegments":true,"pathSegments":["legal-content",{"param":"lang","charset":"alnum","minLen":2,"maxLen":3,"transform":"upper"},"TXT"],"queryParams":[{"name":"uri","param":"uri","charset":"safe_subpath","minLen":3,"maxLen":200}]},"twin":{"fetchUrl":"https://eur-lex.europa.eu/legal-content/{lang}/TXT/HTML/?uri={uri}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"EUR-Lex {uri} ({lang})"}},{"id":"eventbrite","name":"Eventbrite Events","category":"commerce-social","description":"Extracts Eventbrite event details via the official Eventbrite v3 API when configured, with Event/Festival JSON-LD and __NEXT_DATA__ HTML fallback.","domains":["eventbrite.com","www.eventbrite.com","www.eventbriteapi.com"],"auth_mode":"key","exampleUrls":["https://www.eventbrite.com/e/music-mimosa-festival-fall-edition-tickets-2004426596909","https://www.eventbriteapi.com/v3/events/2004426596909/"],"routes":[{"match":{"hosts":["www.eventbriteapi.com"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}},{"match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":true,"pathSegments":["e",{"param":"eventId","charset":"digits","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://www.eventbriteapi.com/v3/events/{eventId}/","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}}],"htmlRoutes":[{"id":"eventbrite","match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":false},"mode":"eventbrite_html"}]},{"id":"everycrsreport","name":"EveryCRSReport Archive","category":"public-records","description":"Extracts Congressional Research Service reports from EveryCRSReport JSON metadata, /reports/{id}.html JSON twins, and bounded /reports.csv index.","domains":["www.everycrsreport.com","everycrsreport.com"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.everycrsreport.com/reports/IN11532.json","https://www.everycrsreport.com/reports/IN11532.html","https://www.everycrsreport.com/reports.csv"],"routes":[{"match":{"exactSegments":true,"pathSuffix":".json","pathSegments":["reports",{"param":"reportId","charset":"alnum_dash","stripSuffix":".json","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"everycrs_json"}},{"match":{"exactSegments":true,"pathSuffix":".html","pathSegments":["reports",{"param":"reportId","charset":"alnum_dash","stripSuffix":".html","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"https://{host}/reports/{reportId}.json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"everycrs_json"}},{"match":{"exactSegments":true,"pathEquals":["/reports.csv"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"everycrs_csv"}}],"htmlRoutes":[{"id":"everycrsreport","match":{"exactSegments":false},"mode":"everycrs_html"}]},{"id":"faa-registry","name":"FAA Aircraft Registry","category":"public-records","description":"FAA Civil Aviation Registry HTML extractor for N-Number lookups (/aircraftinquiry/Search/NNumberResult); note origin Akamai may return 403 to non-browser bot UAs.","domains":["registry.faa.gov"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=N101"],"htmlRoutes":[{"id":"faa-registry","match":{"hosts":["registry.faa.gov"],"pathPrefix":"/aircraftinquiry/search/","excludeSegmentSuffixes":[".asp"],"exactSegments":false},"mode":"faa_registry_html"}]},{"id":"fcc-ecfs","name":"FCC Electronic Comment Filing System (ECFS)","category":"public-records","description":"Extracts FCC Electronic Comment Filing System (ECFS) filings, proceedings, filers, and comment text via publicapi.fcc.gov/ecfs/ (api.data.gov key) with HTML fallback on www.fcc.gov/ecfs/.","domains":["publicapi.fcc.gov","www.fcc.gov","fcc.gov"],"auth_mode":"key","exampleUrls":["https://publicapi.fcc.gov/ecfs/filings?limit=2","https://www.fcc.gov/ecfs/search/search-filings"],"routes":[{"match":{"hosts":["publicapi.fcc.gov"],"pathPrefix":"/ecfs/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"fcc_ecfs_json"}}],"htmlRoutes":[{"id":"fcc-ecfs","match":{"hosts":["www.fcc.gov","fcc.gov"],"pathPrefix":"/ecfs"},"mode":"fcc_ecfs_html"}]},{"id":"fcc-id","name":"FCC ID Equipment Authorization","category":"public-records","description":"Extracts FCC ID grant metadata, technical frequency/power tables, and exhibit PDF links from fccid.io public HTML pages while respecting robots.txt disallows.","domains":["fccid.io","www.fccid.io"],"exampleUrls":["https://fccid.io/BCG-E3542A"],"htmlRoutes":[{"id":"fcc-id","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["ViewExhibitReport.cfm","subscribe.php","frequency","search","api"],"pathSegments":[{"param":"grantee","charset":"url_seg","minLen":2,"maxLen":64},{"param":"product","charset":"url_seg","optional":true,"minLen":1,"maxLen":120}]},"vars":{"title":{"cssText":["h1","title"],"metaKeys":["og:title"],"trim":true},"summary":{"cssText":["main p","article p"],"minLen":20,"sliceMax":400,"trim":true}},"requireVars":["title","summary"],"titleTemplate":"{title}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"FCC ID","template":"`{grantee}`"}],"appendCurrentMdDelta":{"minExtraChars":0}}]},{"id":"fcc-uls","name":"FCC Universal Licensing System (ULS)","category":"public-records","description":"Extracts FCC Universal Licensing System (ULS) Socrata datasets and catalog records on opendata.fcc.gov, legacy License View JSON on data.fcc.gov, and wireless2.fcc.gov HTML pages.","domains":["opendata.fcc.gov","data.fcc.gov","wireless2.fcc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2","https://opendata.fcc.gov/api/catalog/v1?q=ULS&limit=3","https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json"],"routes":[{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/resource/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/api/views/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/api/catalog/v1"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["data.fcc.gov"],"pathPrefix":"/api/license-view/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}}],"htmlRoutes":[{"id":"fcc-uls","match":{"hosts":["wireless2.fcc.gov","opendata.fcc.gov","data.fcc.gov"],"exactSegments":false},"mode":"fcc_uls_html"}]},{"id":"fdic-bankfind","name":"FDIC BankFind Suite","category":"finance","description":"Extracts insured institution profiles and failed bank lists directly from api.fdic.gov/banks/ (avoiding banks.data.fdic.gov/api 301 redirects) with 1 req/s politeness and SPA shell rejection.","domains":["banks.data.fdic.gov","api.fdic.gov","www.fdic.gov","fdic.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.fdic.gov/banks/institutions?filters=CERT:3511&limit=1","https://www.fdic.gov/resources/resolutions/bank-failures/","https://api.fdic.gov/banks/failures?limit=1"],"routes":[{"match":{"hosts":["api.fdic.gov"],"pathPrefix":"/banks/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["banks.data.fdic.gov"],"exactSegments":false,"pathSegments":["api",{"param":"endpoint","charset":"url_seg","minLen":2,"maxLen":64}]},"twin":{"fetchUrl":"https://api.fdic.gov/banks/{endpoint}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["www.fdic.gov","fdic.gov"],"pathPrefix":"/resources/resolutions/bank-failures"},"twin":{"fetchUrl":"https://api.fdic.gov/banks/failures?sort_by=FAILDATE&sort_order=DESC&limit=25","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}}],"htmlRoutes":[{"id":"fdic-bankfind","match":{"hosts":["banks.data.fdic.gov","www.fdic.gov","fdic.gov"],"exactSegments":false},"mode":"fdic_bankfind_html"}]},{"id":"fec","name":"FEC Campaign Finance","category":"public-records","description":"Upgrades fec.gov candidate and committee pages to official OpenFEC API v1 JSON summaries via api.data.gov key helper with HTML fallback.","domains":["www.fec.gov","fec.gov","api.open.fec.gov"],"auth_mode":"key","exampleUrls":["https://www.fec.gov/data/candidate/S8FL00216/","https://api.open.fec.gov/v1/candidate/S8FL00216/"],"routes":[{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","candidate",{"param":"candId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/candidate/{candId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","committee",{"param":"commId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/committee/{commId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["api.open.fec.gov"],"pathPrefix":"/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}}],"htmlRoutes":[{"id":"fec","match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false},"mode":"fec_html"}]},{"id":"federal-register","name":"Federal Register","category":"public-records","description":"Upgrades federalregister.gov/documents///
//* pages to the official /api/v1/documents/.json twin (strictly excluding disallowed /documents/current).","domains":["www.federalregister.gov","federalregister.gov"],"exampleUrls":["https://www.federalregister.gov/documents/2024/05/07/2024-09171/non-compete-clause-rule"],"match":{"exactSegments":false,"pathSegments":["documents",{"param":"yyyy","charset":"digits","minLen":4,"maxLen":4},{"param":"mm","charset":"digits","minLen":2,"maxLen":2},{"param":"dd","charset":"digits","minLen":2,"maxLen":2},{"param":"docNumber","charset":"alnum_dash","minLen":3,"maxLen":64}]},"twin":{"fetchUrl":"https://www.federalregister.gov/api/v1/documents/{docNumber}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title","document_number"],"vars":{"title":{"paths":["title"],"trim":true},"docNumber":{"paths":["document_number"]},"docType":{"paths":["type"]},"citation":{"paths":["citation"]},"pubDate":{"paths":["publication_date"]},"urlDate":{"template":"{yyyy}-{mm}-{dd}"},"pubDateMatchesUrl":{"paths":["publication_date"],"equalsVar":"urlDate"},"effectiveOn":{"paths":["effective_on"]},"dates":{"paths":["dates"],"trim":true},"action":{"paths":["action"],"trim":true},"agencies":{"paths":["agencies"],"subField":"name","join":", ","limit":12},"cfrRefs":{"paths":["cfr_references"],"subFieldsJoin":{"fields":["title","part"],"sep":" CFR Part ","fallbackField":"title"},"join":"; ","limit":20},"dockets":{"paths":["docket_ids"],"join":", ","limit":12},"abstract":{"paths":["abstract"],"trim":true},"abstractShort":{"paths":["abstract"],"trim":true,"sliceMax":260},"pdfUrl":{"paths":["pdf_url"],"requireHttps":true},"bodyHtmlUrl":{"paths":["body_html_url"],"requireHttps":true},"xmlUrl":{"paths":["full_text_xml_url"],"requireHttps":true},"htmlUrl":{"paths":["html_url"],"requireHttps":true}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"agencies","publishedTimeVar":"pubDate","bullets":[{"label":"Document Number","template":"`{docNumber}`"},{"label":"Type","template":"{docType}","whenVar":"docType"},{"label":"Citation","template":"{citation}","whenVar":"citation"},{"label":"Agencies","template":"{agencies}","whenVar":"agencies"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Warning","template":"Publication date {pubDate} does not match the URL date {urlDate}; the URL may point to a different document than its date suggests.","whenVar":"pubDate","unlessVar":"pubDateMatchesUrl"},{"label":"Effective On","template":"{effectiveOn}","whenVar":"effectiveOn"},{"label":"Dates","template":"{dates}","whenVar":"dates"},{"label":"Action","template":"{action}","whenVar":"action"},{"label":"CFR References","template":"{cfrRefs}","whenVar":"cfrRefs"},{"label":"Docket IDs","template":"{dockets}","whenVar":"dockets"},{"label":"PDF","template":"{pdfUrl}","whenVar":"pdfUrl"},{"label":"Body HTML","template":"{bodyHtmlUrl}","whenVar":"bodyHtmlUrl"},{"label":"Full Text XML","template":"{xmlUrl}","whenVar":"xmlUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"},{"heading":"CFR References","arrayPath":"cfr_references","limit":25,"columns":[{"header":"Title","paths":["title"]},{"header":"Part","paths":["part"]},{"header":"Chapter","paths":["chapter"]}]}],"linksVars":["pdfUrl","htmlUrl","bodyHtmlUrl","xmlUrl"]}},{"id":"fediverse-pack","name":"Fediverse Pack (Misskey, Kbin, Mbin)","category":"commerce-social","description":"Extracts Misskey notes via POST /api/notes/show JSON and Kbin/Mbin threads via ActivityPub JSON or SSR HTML while rejecting Anubis proof-of-work and /login gates.","domains":["kbin.earth","gehirneimer.de","misskey.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://misskey.io/notes/au4n1wud00cl0t3s","https://kbin.earth/m/news@lemmy.world/t/3423982/Iran-reportedly-used-Starlink-in-military-operations-against-U-S"],"routes":[{"match":{"exactSegments":true,"pathSegments":["notes",{"param":"noteId","charset":"alnum","minLen":8,"maxLen":24}]},"twin":{"fetchUrl":"https://{host}/api/notes/show","method":"POST","contentType":"application/json","requestBody":"{\"noteId\":\"{noteId}\"}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":true,"pathSegments":["api","notes","show"]},"twin":{"fetchUrl":"{requestUrl}","method":"POST","contentType":"application/json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":false,"pathSegments":["m",{"param":"mag","charset":"brew_id","minLen":1,"maxLen":120},"t",{"param":"threadId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/activity+json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}}],"htmlRoutes":[{"id":"fediverse-pack","match":{"exactSegments":false},"mode":"fediverse_pack_html"}]},{"id":"fema-openfema","name":"FEMA OpenFEMA API v2","category":"public-records","description":"FEMA OpenFEMA v2 JSON dataset API (DisasterDeclarationsSummaries and public datasets) honoring strict robots.txt 15s crawl-delay.","domains":["www.fema.gov","fema.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":15000,"exampleUrls":["https://www.fema.gov/api/open/v2/DisasterDeclarationsSummaries?%24top=2"],"routes":[{"match":{"hosts":["www.fema.gov","fema.gov"],"pathPrefix":"/api/open/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fema_openfema_json"}}]},{"id":"ferc-nrc-dockets","name":"FERC eLibrary & NRC ADAMS Dockets","category":"public-records","description":"Extracts public FERC eLibrary and NRC ADAMS docket/document pages while strictly honoring robots.txt and rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["elibrary.ferc.gov","www.ferc.gov","ferc.gov","adams.nrc.gov","adams-search.nrc.gov","www.nrc.gov","nrc.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.nrc.gov/documents-reports/adams-public-documents","https://elibrary.ferc.gov/eLibrary/search","https://adams-search.nrc.gov/"],"htmlRoutes":[{"id":"ferc-nrc-dockets","match":{"exactSegments":false},"mode":"ferc_nrc_dockets_html"}]},{"id":"finalsite","name":"Finalsite K-12 & Independent Schools","category":"public-records","description":"Extracts Finalsite K-12 school and independent school calendar events, news announcements, and resource blocks from /fs/ and fsElement DOM.","domains":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":5000,"exampleUrls":["https://www.greenwichschools.org/calendar","https://www.choate.edu/"],"htmlRoutes":[{"id":"finalsite","match":{"exactSegments":false},"mode":"finalsite_html"}]},{"id":"financial-regulators-enforcement","name":"CFTC, OCC & FinCEN Enforcement & Bulletins","category":"finance","description":"Extracts enforcement actions, press releases, bulletins, and advisories from CFTC, OCC (including occ_news.xml RSS), and FinCEN.","domains":["www.cftc.gov","cftc.gov","www.occ.gov","occ.gov","www.fincen.gov","fincen.gov"],"auth_mode":"pub","exampleUrls":["https://www.cftc.gov/PressRoom/PressReleases/9331-26","https://www.occ.gov/news-issuances/bulletins/2023/bulletin-2023-17.html","https://www.occ.gov/rss/occ_news.xml","https://www.fincen.gov/news"],"routes":[{"match":{"hosts":["www.occ.gov","occ.gov"],"pathEquals":["/rss/occ_news.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Release"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"financial-regulators-enforcement"},"columns":[{"header":"Title","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"financial-regulators-enforcement","match":{"exactSegments":false},"mode":"financial_regulators_html"}]},{"id":"finra-brokercheck","name":"FINRA BrokerCheck","category":"finance","description":"Extracts FINRA BrokerCheck individual broker and firm registration, employment, exam, and disclosure records via same-eTLD+1 api.brokercheck.finra.org.","domains":["brokercheck.finra.org","api.brokercheck.finra.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://brokercheck.finra.org/individual/summary/810315","https://brokercheck.finra.org/firm/summary/79","https://api.brokercheck.finra.org/search/firm/79"],"routes":[{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["individual","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/individual/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["firm","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/firm/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["api.brokercheck.finra.org"],"pathPrefix":"/search/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}}],"htmlRoutes":[{"id":"finra-brokercheck","match":{"hosts":["brokercheck.finra.org"]},"mode":"finra_brokercheck_html"}]},{"id":"fmcsa-safer","name":"FMCSA SAFER Carrier Registry","category":"public-records","description":"FMCSA QCMobile REST API (webKey) adapter for USDOT/MC carrier lookups with safer.fmcsa.dot.gov Company Snapshot HTML fallback.","domains":["safer.fmcsa.dot.gov","mobile.fmcsa.dot.gov"],"auth_mode":"key","exampleUrls":["https://mobile.fmcsa.dot.gov/qc/services/carriers/44110","https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=44110"],"routes":[{"match":{"hosts":["mobile.fmcsa.dot.gov"],"pathPrefix":"/qc/services/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}},{"match":{"hosts":["safer.fmcsa.dot.gov"],"pathEquals":["/query.asp"],"queryParams":[{"name":"query_param","param":"queryParam","allowValues":["USDOT"]},{"name":"query_string","param":"dotNumber","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mobile.fmcsa.dot.gov/qc/services/carriers/{dotNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}}],"htmlRoutes":[{"id":"fmcsa-safer","match":{"hosts":["safer.fmcsa.dot.gov"],"exactSegments":false},"mode":"fmcsa_safer_html"}]},{"id":"foursquare-places","name":"Foursquare Places API v3","category":"commerce-social","description":"Extracts place search results, venue details, and tips from the official Foursquare Places API v3 (api.foursquare.com).","domains":["api.foursquare.com"],"auth_mode":"key","exampleUrls":["https://api.foursquare.com/v3/places/search?query=coffee&near=Seattle","https://api.foursquare.com/v3/places/4b86a9f7f964a520d69331e3"],"routes":[{"match":{"hosts":["api.foursquare.com"],"anyOf":[{"pathEquals":["/v3/places/search"]},{"pathPrefix":"/v3/places/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"foursquare_places_json"}}]},{"id":"fpds-sam-contract-awards","name":"FPDS & SAM.gov Contract Awards","category":"public-records","description":"Extracts keyless FPDS Atom XML contract award feeds (FEEDNAME=PUBLIC) and key-authenticated api.sam.gov/contract-awards JSON without colliding with sam-gov.","domains":["fpds.gov","www.fpds.gov"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q=LAST_MOD_DATE:[2026/06/25,2026/06/26]","https://api.sam.gov/contract-awards/v1/search?limit=1"],"routes":[{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/FEEDS/ATOM"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"FEEDNAME":"PUBLIC"},"kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"q","param":"q","charset":"safe_subpath","minLen":1,"maxLen":240}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q={q}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"s","param":"s","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&s={s}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/contract-awards"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fpds_sam_awards_json"}}],"htmlRoutes":[{"id":"fpds-sam-contract-awards","match":{"hosts":["fpds.gov","www.fpds.gov"],"exactSegments":false},"mode":"fpds_sam_awards_html"}]},{"id":"fred","name":"FRED Economic Data","category":"finance","description":"Federal Reserve Economic Data (FRED) API v1 JSON observations/series adapter with stlouisfed.org HTML series fallback.","domains":["fred.stlouisfed.org","api.stlouisfed.org"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://fred.stlouisfed.org/series/GDP","https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json","https://api.stlouisfed.org/fred/series?series_id=GDP&file_type=json"],"routes":[{"match":{"hosts":["api.stlouisfed.org"],"exactSegments":false,"pathPrefix":"/fred/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"file_type":"json"},"kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}},{"match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.stlouisfed.org/fred/series/observations?series_id={seriesId}&file_type=json&limit=25&sort_order=desc","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}}],"htmlRoutes":[{"id":"fred","match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"mode":"fred_html"}]},{"id":"freshdesk-portal","name":"Freshdesk Support Portal","category":"developer","description":"Extracts Freshdesk support portal articles, folders, and categories from public knowledge base HTML.","domains":["support.freshdesk.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.freshdesk.com/support/solutions/articles/240170-setting-up-your-support-email-in-gmail-video-guide","https://support.freshdesk.com/support/solutions/folders/275395"],"htmlRoutes":[{"id":"freshdesk-portal","match":{"exactSegments":false},"mode":"freshdesk_portal_html"}]},{"id":"ftc-cases","name":"FTC Cases, Proceedings & Early Termination Notices","category":"public-records","description":"Extracts FTC Legal Library cases, proceedings, matter numbers, and Hart-Scott-Rodino early termination notices while honoring FTC Crawl-delay: 5.","domains":["www.ftc.gov","ftc.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":5000,"max_concurrent":1,"exampleUrls":["https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors","https://www.ftc.gov/legal-library/browse/cases-proceedings","https://www.ftc.gov/legal-library/browse/early-termination-notices"],"htmlRoutes":[{"id":"ftc-cases","match":{"exactSegments":false},"mode":"ftc_cases_html"}]},{"id":"gannett-usatoday-network","name":"Gannett / USA TODAY Network","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Gannett story content across USA TODAY and Gannett regional newspapers while rejecting Access Restricted gates.","domains":["www.usatoday.com","usatoday.com","www.azcentral.com","www.freep.com","www.indystar.com","www.cincinnati.com","www.dispatch.com","www.detroitnews.com","www.jsonline.com","www.tennessean.com","www.courier-journal.com"],"auth_mode":"html","exampleUrls":["https://www.usatoday.com/"],"htmlRoutes":[{"id":"gannett-usatoday-network","match":{"exactSegments":false},"mode":"gannett_usatoday_html"}]},{"id":"gao-reports","name":"U.S. GAO Reports & Testimonies","category":"public-records","description":"Extracts U.S. Government Accountability Office RSS report feeds and product detail pages while honoring strict_robots and rejecting Akamai Access Denied shells.","domains":["www.gao.gov","gao.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gao.gov/products/gao-27-108423","https://www.gao.gov/rss/reports.xml"],"routes":[{"match":{"pathPrefix":"/rss/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":1048576},"extract":{"textMode":"gao_rss_xml"}}],"htmlRoutes":[{"id":"gao-reports","match":{"exactSegments":false},"mode":"gao_reports_html"}]},{"id":"gem-ats","name":"Gem Job Boards","category":"jobs","description":"Upgrades jobs.gem.com/ boards and job posts to the keyless api.gem.com/job_board/v0//job_posts/ JSON feed.","domains":["jobs.gem.com"],"exampleUrls":["https://jobs.gem.com/gem"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"postId","charset":"pkg"}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","findInArray":{"arrayPath":"posts","matchFields":["id","public_id"],"matchTemplate":"{postId}","endsWithField":"absolute_url","endsWithTemplate":"/{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name","location_type"],"trim":true},"depts":{"paths":["departments"],"subField":"name","join":", "},"bodyHtml":{"paths":["content"],"format":"html_to_md"},"bodyPlain":{"paths":["content_plain"],"format":"plain_text","trim":true},"body":{"template":"{bodyHtml}","whenVars":["bodyHtml"],"fallbackVar":"bodyPlain"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Department","template":"{depts}","whenVar":"depts"}],"bodyVar":"body","fallbackExtract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}]},{"id":"giant-liv-bikes","name":"Giant & Liv Bicycles Specs & Manuals","category":"commerce-social","description":"Extracts bike specifications, geometry GFM tables, and owner manual PDF links from Giant and Liv regional HTML pages while respecting Crawl-delay and never hitting /shop*, /comparison*, /account*, or /apiproxy/*.","domains":["www.giant-bicycles.com","*.giant-bicycles.com","giant-bicycles.com","www.liv-cycling.com","*.liv-cycling.com","liv-cycling.com"],"exampleUrls":["https://www.giant-bicycles.com/us/defy-advanced-pro-0","https://www.liv-cycling.com/us/avail-advanced-pro-0","https://www.giant-bicycles.com/us/manuals"],"htmlRoutes":[{"id":"giant-liv-bikes","mode":"giant_liv_html","match":{"exactSegments":false,"excludeSegmentSuffixes":[".xml",".json"],"anyOf":[{"exactSegments":false,"optionalLeadingLocale":true,"reservedFirstSegment":["shop","comparison","account","apiproxy","int","global"]},{"exactSegments":false,"pathSegments":[{"param":"locale3","allowValues":["int","global"]},{"param":"seg1","charset":"url_seg","minLen":1,"maxLen":160,"reserved":["shop","comparison","account","apiproxy"]}]}]}}]},{"id":"github-gist","name":"GitHub Gists","category":"developer","description":"Extracts multi-file GitHub Gist code blocks with fenced language tags and rendered Markdown.","domains":["gist.github.com"],"exampleUrls":["https://gist.github.com/octocat/6cad326836d38bd3a7ae"],"htmlRoutes":[{"match":{"minSegments":2},"mode":"gist_files"}]},{"id":"gitlab-forgejo","name":"GitLab, Codeberg & Forgejo Twins","category":"developer","description":"Upgrades GitLab repo roots and file blobs via robots.txt-allowed ?format=json&viewer=simple endpoints, and extracts clean README content from Codeberg/Gitea SSR repo pages.","domains":["gitlab.com","gitlab.*","codeberg.org","gitea.com"],"exampleUrls":["https://gitlab.com/gitlab-org/cli","https://gitlab.com/inkscape/inkscape/-/blob/master/CMakeLists.txt","https://codeberg.org/forgejo/forgejo"],"routes":[{"match":{"hosts":["gitlab.com","gitlab.*"],"splitOnSegment":{"delimiter":"-","leftParam":"nsProj","leftMinSegs":2,"afterLiteral":"blob","rightParam":"rawTail","tailParam":"filePath"}},"twin":{"id":"gitlab-blob-json","fetchUrl":"https://{host}/{nsProj}/-/blob/{rawTail}?format=json&viewer=simple","rawPathParams":["nsProj","rawTail"],"kind":"json","accept":"application/json"},"extract":{"vars":{"plain":{"paths":["html"],"format":"gitlab_blob_html"}},"requireVars":["plain"],"titleTemplate":"{nsProj}/{filePath}","codeByPath":{"sourceVar":"plain","pathParam":"filePath","rawIfMarkdown":true}}},{"match":{"hosts":["gitlab.com","gitlab.*"],"minSegments":2,"maxSegments":5,"allSegmentsCharset":"pkg","reservedFirstSegment":["explore","groups","users","dashboard","help","topics","orgs","admin","search","abuse_reports","oauth","snippets","-"],"excludeSegmentSuffixes":[".git",".atom"]},"twin":{"id":"gitlab-readme-json","fetchUrl":"https://{host}/{joinedPath}/-/blob/HEAD/README.md?format=json&viewer=simple","rawPathParams":["joinedPath"],"kind":"json","accept":"application/json"},"extract":{"vars":{"readme":{"paths":["html"],"format":"gitlab_blob_html","trim":true}},"requireVars":["readme"],"titleTemplate":"{joinedPath}","bodyVar":"readme"}}],"htmlRoutes":[{"match":{"hosts":["codeberg.org","gitea.com"],"exactSegments":true,"pathSegments":[{"param":"owner","charset":"pkg"},{"param":"repo","charset":"pkg"}]},"mode":"dom","vars":{"desc":{"metaKeys":["og:description","description"]},"readme":{"cssHtmlToMd":["div.markup"],"minLen":40}},"requireVars":["readme"],"titleTemplate":"{owner}/{repo}","descriptionVar":"desc","blockquoteTemplate":"> **{owner}/{repo}** — {desc}","blockquoteWhenVar":"desc","bodyVar":"readme","preserveBodyLinksFromVar":"readme"}]},{"id":"google-my-maps-kml","name":"Google My Maps KML","category":"commerce-social","description":"Upgrades public Google My Maps /maps/d/ viewer, embed, and KML links to bounded KML placemark extraction with validated coordinates.","domains":["google.com","www.google.com","maps.google.com"],"auth_mode":"pub","exampleUrls":["https://www.google.com/maps/d/viewer?mid=1Mdlz2iXu_iZCPhUhzKvT2B2j-6E"],"routes":[{"match":{"anyOf":[{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d",{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]},{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d","u",{"param":"userIdx","charset":"digits","minLen":1,"maxLen":4},{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]}]},"twin":{"fetchUrl":"https://www.google.com/maps/d/kml?mid={mid}&forcekml=1","kind":"text","accept":"application/xml"},"extract":{"textMode":"kml_placemarks"}}]},{"id":"google-places","name":"Google Places API (New)","category":"commerce-social","description":"Extracts place details and text/nearby search results from the official Google Places API (New) with required X-Goog-Api-Key and X-Goog-FieldMask headers.","domains":["developers.google.com"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://places.googleapis.com/v1/places/ChIJj61dQgK6j4AR4GeTYWZsKWw","https://places.googleapis.com/v1/places:searchText?textQuery=coffee"],"routes":[{"match":{"hosts":["places.googleapis.com"],"anyOf":[{"pathEquals":["/v1/places:searchText","/v1/places:searchNearby"]}],"queryParams":[{"name":"textQuery","param":"textQuery","charset":"url_seg","maxLen":120,"optional":true,"default":"coffee"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"textQuery\":\"{textQuery}\"}","headers":{"X-Goog-FieldMask":"places.id,places.displayName,places.formattedAddress,places.rating,places.userRatingCount,places.websiteUri,places.nationalPhoneNumber,places.googleMapsUri,places.primaryType,places.businessStatus,places.priceLevel"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}},{"match":{"hosts":["places.googleapis.com"],"pathPrefix":"/v1/places/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"X-Goog-FieldMask":"id,displayName,formattedAddress,rating,userRatingCount,websiteUri,nationalPhoneNumber,googleMapsUri,primaryType,businessStatus,priceLevel,regularOpeningHours"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}}]},{"id":"google-play","name":"Google Play Store","category":"developer","description":"Extracts structured Google Play app metadata (package ID, developer, rating, downloads/reviews, category, price, and full description).","domains":["play.google.com"],"exampleUrls":["https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone"],"htmlRoutes":[{"match":{"pathPrefix":"/store/apps/details","queryParams":[{"name":"id","param":"pkgId","charset":"pkg","optional":true}]},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*-\\s*Apps on Google Play$"},"developer":{"jsonLdPaths":["author.name"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.ratingCount","aggregateRating.reviewCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} reviews)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"contentRating":{"jsonLdPaths":["contentRating"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Package ID","template":"`{pkgId}`","whenVar":"pkgId"},{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Content Rating","template":"{contentRating}","whenVar":"contentRating"}],"sections":[{"heading":"About This App","textVar":"desc"}]}]},{"id":"google-shopping-feed","name":"Google Shopping Merchant Center XML/Atom Feed","category":"commerce-social","description":"Universal XML/Atom parser for Google Merchant Center RSS 2.0 and Atom 1.0 product feeds with strict GTIN validation and compact records.","domains":["btrsports.co.uk"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://raw.githubusercontent.com/web3at50/btr-feed/main/affiliate-feed.xml"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/google-merchant.xml","/google-shopping.xml","/merchant-feed.xml","/product-feed.xml","/shopping-feed.xml"]},{"pathPrefix":"/feeds/","pathSuffix":".xml"},{"pathPrefix":"/feeds/","pathSuffix":".atom"},{"pathPrefix":"/feeds/","pathSuffix":".rss"},{"pathContainsSegment":"google-merchant","pathSuffix":".xml"},{"pathContainsSegment":"google-shopping","pathSuffix":".xml"},{"hosts":["raw.githubusercontent.com"],"pathEquals":["/web3at50/btr-feed/main/affiliate-feed.xml"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"google_shopping_feed_xml"}}]},{"id":"gorgias-reamaze","name":"Gorgias & Re:amaze Help Centers","category":"commerce-social","description":"Extracts help-center articles, topic indexes, and Q&A content from Gorgias (__NEXT_DATA__) and Re:amaze knowledge base portals.","domains":["*.gorgias.help","*.reamaze.com","support.burga.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.burga.com/en-US/articles/contact-us-24868","https://storypod.reamaze.com/kb/all-about-storypod/firmware-update"],"htmlRoutes":[{"id":"gorgias-reamaze","match":{"exactSegments":false},"mode":"gorgias_reamaze_html"}]},{"id":"gov-wordpress-newsrooms","name":"Federal .gov WordPress Newsrooms","category":"public-records","description":"Extracts official federal .gov WordPress REST v2 posts (excluding whitehouse.gov 403 /wp-json/) and briefing/newsroom HTML pages.","domains":["www.whitehouse.gov","whitehouse.gov","news.va.gov","www.nasa.gov","nasa.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://news.va.gov/wp-json/wp/v2/posts?per_page=1","https://news.va.gov/151377/memphis-veterans-received-help-claims-clinic/","https://www.whitehouse.gov/presidential-actions/"],"routes":[{"match":{"excludeHosts":["www.whitehouse.gov","whitehouse.gov"],"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"gov_wp_posts_json"}},{"match":{"excludeHosts":["www.whitehouse.gov","whitehouse.gov"],"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"gov_wp_posts_json"}}],"htmlRoutes":[{"id":"gov-wordpress-newsrooms","match":{"exactSegments":false},"mode":"gov_wp_newsroom_html"}]},{"id":"granicus-govdelivery","name":"Granicus GovDelivery Public Bulletins","category":"public-records","description":"Extracts public government bulletins and optional RSS feeds from Granicus GovDelivery without rewriting HTML bulletins to .rss.","domains":["content.govdelivery.com","public.govdelivery.com"],"auth_mode":"pub","exampleUrls":["https://content.govdelivery.com/accounts/ILEVANSTON/bulletins.rss","https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149"],"routes":[{"match":{"pathSuffix":".rss","pathPrefix":"/accounts/"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Bulletin"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"granicus-govdelivery"},"columns":[{"header":"Bulletin","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"granicus-govdelivery","match":{"exactSegments":false},"mode":"govdelivery_html"}]},{"id":"grants-gov","name":"Grants.gov Federal Grant Opportunities","category":"public-records","description":"Upgrades grants.gov opportunity pages to official keyless POST api.grants.gov/v1/api/fetchOpportunity JSON with HTML fallback.","domains":["grants.gov","www.grants.gov","api.grants.gov"],"auth_mode":"pub","exampleUrls":["https://www.grants.gov/search-results-detail/357601","https://api.grants.gov/v1/api/fetchOpportunity"],"routes":[{"match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false,"pathSegments":["search-results-detail",{"param":"oppId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://api.grants.gov/v1/api/fetchOpportunity","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"opportunityId\":{oppId}}","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}},{"match":{"hosts":["api.grants.gov"],"pathPrefix":"/v1/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}}],"htmlRoutes":[{"id":"grants-gov","match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false},"mode":"grants_gov_html"}]},{"id":"greenhouse-lever-boards","name":"Greenhouse & Lever Whole-Board + EU APIs","category":"jobs","description":"Upgrades Greenhouse (US & EU) and Lever (US & EU) board root URLs to their official JSON posting feeds with truncation metadata.","domains":["boards.greenhouse.io","job-boards.greenhouse.io","eu-boards.greenhouse.io","job-boards.eu.greenhouse.io","jobs.lever.co","jobs.eu.lever.co"],"exampleUrls":["https://job-boards.greenhouse.io/anthropic","https://job-boards.greenhouse.io/celonis","https://jobs.lever.co/spotify"],"routes":[{"match":{"hosts":["boards.greenhouse.io","job-boards.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-board","fetchUrl":"https://boards-api.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["eu-boards.greenhouse.io","job-boards.eu.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-eu-board","fetchUrl":"https://boards-api.eu.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["jobs.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-board","fetchUrl":"https://api.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["jobs.eu.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-eu-board","fetchUrl":"https://api.eu.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}}]},{"id":"gsa-site-scanning","name":"GSA Site Scanning API","category":"public-records","description":"GSA Technology Transformation Services Site Scanning API (DATA_GOV_API_KEY) and open.gsa.gov documentation fallback.","domains":["api.gsa.gov","open.gsa.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5","https://api.gsa.gov/technology/site-scanning/v1/websites/usa.gov"],"routes":[{"match":{"hosts":["api.gsa.gov"],"pathPrefix":"/technology/site-scanning/v1/websites"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"gsa_site_scanning_json"}}],"htmlRoutes":[{"id":"gsa-site-scanning","match":{"hosts":["open.gsa.gov"],"exactSegments":false},"mode":"gsa_site_scanning_html"}]},{"id":"hackernews","name":"Hacker News Stories & Who is Hiring (Algolia API)","category":"commerce-social","description":"Upgrades news.ycombinator.com/item?id= threads (including monthly Who is Hiring threads) to hn.algolia.com/api/v1/items/ JSON.","domains":["news.ycombinator.com"],"exampleUrls":["https://news.ycombinator.com/item?id=41000000"],"match":{"exactSegments":true,"pathSegments":["item"],"queryParams":[{"name":"id","param":"itemId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"id":"hackernews","fetchUrl":"https://hn.algolia.com/api/v1/items/{itemId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["id"],"vars":{"title":{"paths":["title"],"trim":true,"fallbackTemplate":"HN Comment #{itemId}"},"author":{"paths":["author"]},"points":{"paths":["points"]},"createdAt":{"paths":["created_at"]},"postedDate":{"paths":["created_at"],"sliceMax":10},"storyUrl":{"paths":["url"]},"storyText":{"paths":["text"],"format":"html_to_md"}},"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"createdAt","metaLine":[{"label":"Points","template":"{points}","whenVar":"points"},{"label":"By","template":"{author}","whenVar":"author"},{"label":"Posted","template":"{postedDate}","whenVar":"postedDate"},{"label":"URL","template":"{storyUrl}","whenVar":"storyUrl"}],"bodyVar":"storyText","linksVars":["storyUrl"],"sections":[{"heading":"Comments","headingTemplate":"Comments ({topCount} top-level)","treeComments":{"childrenPath":"children","authorPath":"author","htmlTextPath":"text","maxDepth":2,"maxItems":60}}]}},{"id":"hardware-farm-specs","name":"Hardware & Farm Supply Spec Extractor","category":"commerce-social","description":"Extracts Product JSON-LD, specification tables, and Apollo SimpleProduct metadata for Tractor Supply and Harbor Freight.","domains":["tractorsupply.com","www.tractorsupply.com","harborfreight.com","www.harborfreight.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.harborfreight.com/20v-brushless-cordless-12-in-drilldriver-tool-only-59420.html"],"htmlRoutes":[{"id":"hardware-farm-specs","match":{"exactSegments":false},"mode":"hardware_farm_specs_html"}]},{"id":"hathitrust","name":"HathiTrust Digital Library","category":"public-records","description":"HathiTrust Bibliographic API (catalog.hathitrust.org/api/volumes) adapter for OCLC, ISBN, LCCN, ISSN, and Record IDs.","domains":["catalog.hathitrust.org","babel.hathitrust.org"],"auth_mode":"pub","min_interval_ms":1000,"strict_robots":false,"exampleUrls":["https://catalog.hathitrust.org/api/volumes/brief/oclc/424023.json","https://catalog.hathitrust.org/api/volumes/brief/isbn/9780030110405.json","https://catalog.hathitrust.org/Record/000578050"],"routes":[{"match":{"hosts":["catalog.hathitrust.org"],"pathPrefix":"/api/volumes/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}},{"match":{"hosts":["catalog.hathitrust.org"],"exactSegments":false,"pathSegments":["Record",{"param":"recordId","charset":"digits","minLen":5,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.hathitrust.org/api/volumes/brief/recordnumber/{recordId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}}]},{"id":"hcl-websphere-commerce","name":"HCL / WebSphere Commerce (WCS)","category":"commerce-social","description":"Extracts HCL/IBM WebSphere Commerce /wcs/resources/store//productview REST JSON and storefront HTML/companion twins.","domains":["www.childrensplace.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.childrensplace.com/us/p/Girls-Basic-Super-Skinny-Jeans-3044219-33C4"],"routes":[{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byPartNumber",{"param":"partNumber","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}},{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byId",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}}],"htmlRoutes":[{"id":"hcl-websphere-commerce","match":{"exactSegments":false},"mode":"hcl_wcs_html"}]},{"id":"headless-cms-delivery","name":"Headless CMS Delivery","category":"developer","description":"Opt-in single-page doc delivery twin for Sanity, Storyblok, Prismic, Contentful, Builder.io, and Strapi (gated by allowPageKeyTwins; falls back to HTML/JSON-LD when OFF).","domains":["3do82whm.apicdn.sanity.io","www.sanity.io","api.storyblok.com","www.storyblok.com","nextjs-starter-prismic-blog.cdn.prismic.io","prismic.io","cdn.contentful.com","cdn.builder.io","www.builder.io","strapi.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://3do82whm.apicdn.sanity.io/v2021-10-21/data/query/next?query=*%5Bslug.current%20%3D%3D%20%22content-lake%22%5D%5B0%5D%7B_id%2C_type%2Ctitle%2Cslug%7D","https://nextjs-starter-prismic-blog.cdn.prismic.io/api/v2/documents/search?ref=ZuGtnBkAAEcAW15g&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22YlcmoRMAACMAI0gs%22%29+%5D%5D","https://cdn.builder.io/api/v3/content/docs/9f6f5d07-9c2e-4b44-983a-3f065151247f?apiKey=YJIGb4i01jvw0SRdL5Bt","https://www.sanity.io/docs/content-lake"],"routes":[{"match":{"hosts":["cdn.contentful.com"],"exactSegments":true,"pathSegments":["spaces",{"param":"spaceId","charset":"url_seg","minLen":1,"maxLen":64},"environments",{"param":"envId","charset":"url_seg","minLen":1,"maxLen":64},"entries",{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["api.storyblok.com","api-us.storyblok.com"],"exactSegments":false,"pathSegments":["v2","cdn","stories",{"param":"slug","charset":"safe_subpath","minLen":1,"maxLen":200,"greedy":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["cdn.builder.io"],"exactSegments":true,"pathSegments":["api","v3","content",{"param":"model","charset":"url_seg","minLen":1,"maxLen":80},{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".apicdn.sanity.io","param":"projectId"},"exactSegments":true,"pathSegments":[{"param":"version","charset":"url_seg","minLen":4,"maxLen":24},"data","query",{"param":"dataset","charset":"url_seg","minLen":1,"maxLen":64}],"queryParams":[{"name":"query","param":"groqQuery","charset":"sanity_single_doc_query","minLen":5,"maxLen":400}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".cdn.prismic.io","param":"repo"},"exactSegments":true,"pathSegments":["api","v2","documents","search"],"queryParams":[{"name":"q","param":"prismicQ","charset":"prismic_single_doc_query","minLen":5,"maxLen":300}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json",".xml",".csv"],"pathSegments":["api",{"param":"contentType","charset":"strapi_content_type","minLen":1,"maxLen":80,"reserved":["auth","users","upload","graphql","all","list","search","export","v0","v1","v2","v3","v4","v5","v6","v7","v8","v9"]},{"param":"docId","charset":"strapi_doc_id","minLen":1,"maxLen":128,"reserved":["all","list","search","export","graphql","graphql.json","users"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}}],"htmlRoutes":[{"id":"headless-cms-delivery","match":{"exactSegments":false},"mode":"headless_cms_html"}]},{"id":"headless-commerce","name":"Headless & Enterprise Commerce (commercetools, Elastic Path, Kibo, Optimizely)","category":"commerce-social","description":"Extracts commercetools, Elastic Path, Kibo/Mozu, and Optimizely Configured Commerce JSON-LD (with additionalProperty specs), Microdata, and hydration state.","domains":["www.bang-olufsen.com","www.guestsupply.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.bang-olufsen.com/en/us/headphones/beoplay-h100","https://www.guestsupply.com/product/0078423-Keystone-Liquid-Laundry-Built-Detergent-5-Gallon-1602538"],"htmlRoutes":[{"id":"headless-commerce","match":{"exactSegments":false},"mode":"headless_commerce_html"}]},{"id":"healthcare-careers","name":"Healthcare Careers (HealthcareSource & symplr)","category":"jobs","description":"Extracts hospital and clinical job postings from HealthcareSource (*.healthcaresource.com) and symplr career pages while rejecting Application Error and WAF shells and deferring careers.symplr.com to Jibe.","domains":["*.healthcaresource.com","www.symplr.com","symplr.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.symplr.com/careers"],"htmlRoutes":[{"id":"healthcare-careers","mode":"healthcare_careers_html","match":{"excludeHosts":["careers.symplr.com"],"exactSegments":false}}]},{"id":"healthcare-gov-marketplace","name":"HealthCare.gov Marketplace API","category":"research-health","description":"CMS HealthCare.gov Marketplace Plan Search (POST), States, Counties, and Plan Detail API (HEALTHCARE_GOV_API_KEY) with healthcare.gov HTML fallback.","domains":["marketplace.api.healthcare.gov","www.healthcare.gov","healthcare.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://marketplace.api.healthcare.gov/api/v1/plans/search","https://marketplace.api.healthcare.gov/api/v1/states","https://www.healthcare.gov/glossary/affordable-care-act/"],"routes":[{"match":{"hosts":["marketplace.api.healthcare.gov"],"pathPrefix":"/api/v1/plans/search"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"household\":{\"income\":52000,\"people\":[{\"age\":30,\"aptc_eligible\":true,\"uses_tobacco\":false}]},\"market\":\"Individual\",\"place\":{\"zipcode\":\"27360\",\"state\":\"NC\",\"countyfips\":\"37057\"},\"year\":2026}","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"healthcare_marketplace_json"}},{"match":{"hosts":["marketplace.api.healthcare.gov"],"anyOf":[{"pathPrefix":"/api/v1/states"},{"pathPrefix":"/api/v1/counties/"},{"pathPrefix":"/api/v1/plans/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"healthcare_marketplace_json"}}],"htmlRoutes":[{"id":"healthcare-gov-marketplace","match":{"hosts":["www.healthcare.gov","healthcare.gov"],"exactSegments":false},"mode":"healthcare_gov_html"}]},{"id":"helpscout-docs","name":"Help Scout Docs","category":"developer","description":"Extracts Help Scout Docs knowledge base articles and collections from server-rendered HTML and BreadcrumbList JSON-LD.","domains":["docs.helpscout.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://docs.helpscout.com/article/666-use-dkim-to-help-with-email-delivery","https://docs.helpscout.com/collection/1543-getting-started"],"htmlRoutes":[{"id":"helpscout-docs","match":{"exactSegments":false},"mode":"helpscout_docs_html"}]},{"id":"hex-pm","name":"Hex.pm Elixir & Erlang Registry","category":"developer","description":"Upgrades hex.pm package pages to /api/packages/ metadata and HexDocs links.","domains":["hex.pm","www.hex.pm"],"exampleUrls":["https://hex.pm/packages/phoenix"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://hex.pm/api/packages/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["meta.description"],"trim":true},"licenses":{"paths":["meta.licenses"],"join":", "},"ver":{"paths":["releases.0.version"]},"verOrDefault":{"paths":["releases.0.version"],"default":"0.1"},"docsUrl":{"paths":["docs_html_url"],"fallbackTemplate":"https://hexdocs.pm/{name}"}},"titleTemplate":"{name} {ver} (Hex)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Hex)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Mix","template":"`{:{name}, \"~> {verOrDefault}\"}`"},{"label":"HexDocs","template":"{docsUrl}"},{"label":"License","template":"{licenses}","whenVar":"licenses"}],"objectLinksPath":"meta.links"}},{"id":"home-depot-lowes","name":"Home Depot & Lowe's Product JSON-LD","category":"commerce-social","description":"Strictly low-rate, robots-enforced JSON-LD Product/ProductGroup extractor for Home Depot and Lowe's product pages.","domains":["homedepot.com","www.homedepot.com","lowes.com","www.lowes.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.homedepot.com/p/Milwaukee-M18-FUEL-Hammer-Drill-2904-20/320326137","https://www.lowes.com/pd/DEWALT-20V-MAX-Drill/501326137"],"htmlRoutes":[{"id":"home-depot-lowes","match":{"exactSegments":false},"mode":"home_depot_lowes_html"}]},{"id":"home-goods-jsonld","name":"US Home Goods Product JSON-LD","category":"commerce-social","description":"Structured Product and ProductGroup JSON-LD extractor for Wayfair and Overstock.","domains":["wayfair.com","www.wayfair.com","overstock.com","www.overstock.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.wayfair.com/furniture/pdp/mercury-row-perdue-815-velvet-square-arm-convertible-sofa-w009315804.html?piid=1134429065","https://www.overstock.com/Home-Garden/accent-chair/1400001/product.html"],"htmlRoutes":[{"id":"home-goods-jsonld","match":{"exactSegments":false},"mode":"home_goods_jsonld_html"}]},{"id":"homebrew-formulae","name":"Homebrew Formulae & Casks","category":"developer","description":"Upgrades formulae.brew.sh/formula/ and /cask/ pages to the official Homebrew JSON API with install commands, dependencies, deprecation/disable notices, and 30-day install analytics.","domains":["formulae.brew.sh"],"exampleUrls":["https://formulae.brew.sh/formula/jq","https://formulae.brew.sh/cask/iterm2"],"routes":[{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["formula",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/formula/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"fullName":{"paths":["full_name","name"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["versions.stable","versions.head"]},"license":{"paths":["license"]},"homepage":{"paths":["homepage"],"requireHttps":true},"deps":{"paths":["dependencies"],"itemWrap":"`","join":", ","limit":20},"buildDeps":{"paths":["build_dependencies"],"itemWrap":"`","join":", ","limit":15},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_formula","disable_replacement_cask","deprecation_replacement_formula","deprecation_replacement_cask"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{fullName} (Homebrew Formula)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install {name}`"},{"label":"Stable Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Dependencies","template":"{deps}","whenVar":"deps"},{"label":"Build Dependencies","template":"{buildDeps}","whenVar":"buildDeps"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage"]}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["cask",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/cask/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["token"],"vars":{"token":{"paths":["token"]},"displayName":{"paths":["name.0","full_token","token"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["version"]},"homepage":{"paths":["homepage"],"requireHttps":true},"downloadUrl":{"paths":["url"],"requireHttps":true},"sha256":{"paths":["sha256"]},"autoUpdates":{"paths":["auto_updates"],"format":"bool_map","trueValue":"Yes","falseValue":"No"},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_cask","disable_replacement_formula","deprecation_replacement_cask","deprecation_replacement_formula"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{displayName} (Homebrew Cask)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install --cask {token}`"},{"label":"Token","template":"`{token}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"Auto Updates","template":"{autoUpdates}","whenVar":"autoUpdates"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Download URL","template":"{downloadUrl}","whenVar":"downloadUrl"},{"label":"SHA-256","template":"`{sha256}`","whenVar":"sha256"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage","downloadUrl"]}}]},{"id":"hourly-smb-ats","name":"Hourly & SMB ATS (Hireology, ApplicantPro, Harri, Fountain, ClearCompany, Workstream)","category":"jobs","description":"Extracts JobPosting JSON-LD, Next.js SSR boards, and structured HTML job postings from Hireology, ApplicantPro, Harri, Fountain, ClearCompany, and Workstream.","domains":["www.applicantpro.com","www.clearcompany.com","app.hireology.com","harri.com","web.fountain.com","www.workstream.us"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.hireology.com/hireology2/2908935/description","https://harri.com/Kitchen-Putters-Cw"],"htmlRoutes":[{"id":"hourly-smb-ats","mode":"hourly_smb_ats_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","app.clearcompany.com"],"anyOf":[{"hostSubdomain":{"suffix":".applicantpro.com","param":"tenant","reserved":["www","login","admin"]},"exactSegments":false},{"hosts":["www.applicantpro.com"],"pathPrefix":"/careers","exactSegments":false},{"hostSubdomain":{"suffix":".clearcompany.com","param":"tenant","reserved":["app","login","admin"]},"exactSegments":false},{"hosts":["careers.hireology.com","app.hireology.com"],"exactSegments":false},{"hosts":["harri.com","www.harri.com"],"exactSegments":false},{"hosts":["web.fountain.com"],"pathPrefix":"/apply/","exactSegments":false},{"hostSubdomain":{"suffix":".workstream.us","param":"tenant","reserved":["app","login","api"]},"exactSegments":false}]}}]},{"id":"hrsa-samhsa-locator","name":"HRSA & SAMHSA Treatment Locator","category":"research-health","description":"SAMHSA FindTreatment.gov locator JSON export API adapter with HRSA/SAMHSA portal HTML fallback.","domains":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"auth_mode":"pub","exampleUrls":["https://findtreatment.gov/locator/exportsAsJson/v2?sAddr=40.7506%2C-73.9972&sType=SA&limitValue=5000&limitType=2&pageSize=2&page=1","https://data.hrsa.gov/tools/web-services"],"routes":[{"match":{"hosts":["findtreatment.gov","www.findtreatment.gov"],"pathPrefix":"/locator/exportsAsJson/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"samhsa_locator_json"}}],"htmlRoutes":[{"id":"hrsa-samhsa-locator","match":{"hosts":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"exactSegments":false},"mode":"hrsa_samhsa_html"}]},{"id":"hubspot-cms","name":"HubSpot CMS","category":"developer","description":"Extracts same-origin HubSpot HubDB table rows (/_hcms/api/hubdb/v3/... and /hs/api/hubdb/v2/...) and HubSpot CMS HTML metadata while rejecting page_id:0 404s.","domains":["www.hubspot.com","developers.hubspot.com","www.smartbugmedia.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.smartbugmedia.com/blog/hubspot-unbound-2026-recap-7-ai-updates-to-turn-on-first-and-what-each-one-costs"],"routes":[{"match":{"exactSegments":true,"pathSegments":["_hcms","api","hubdb","v3","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}},{"match":{"exactSegments":true,"pathSegments":["hs","api","hubdb","v2","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}}],"htmlRoutes":[{"id":"hubspot-cms","match":{"exactSegments":false},"mode":"hubspot_cms_html"}]},{"id":"hud-fhfa","name":"HUD User & FHFA House Price Index","category":"public-records","description":"Extracts HUD User Fair Market Rent / Income Limit API JSON (when HUD_API_KEY is configured), FHFA House Price Index JSON & CSV datasets, and FHFA HPI HTML pages.","domains":["huduser.gov","www.huduser.gov","fhfa.gov","www.fhfa.gov"],"auth_mode":"key","exampleUrls":["https://www.huduser.gov/hudapi/public/fmr/listStates","https://www.fhfa.gov/hpi/download/quarterly_datasets/hpi_at_state.csv","https://www.fhfa.gov/data/hpi"],"routes":[{"match":{"hosts":["huduser.gov","www.huduser.gov"],"pathPrefix":"/hudapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"hud_user_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"fhfa_hpi_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":4194304,"auth_mode":"pub"},"extract":{"textMode":"fhfa_hpi_csv"}}],"htmlRoutes":[{"id":"hud-fhfa","match":{"hosts":["fhfa.gov","www.fhfa.gov","huduser.gov","www.huduser.gov"],"exactSegments":false},"mode":"hud_fhfa_html"}]},{"id":"huggingface","name":"Hugging Face Models, Datasets & Spaces","category":"genai","description":"Upgrades Hugging Face model/dataset/space pages and file blobs to raw README.md with parsed YAML frontmatter tables.","domains":["huggingface.co","www.huggingface.co"],"exampleUrls":["https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct"],"routes":[{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{repoType}/{org}/{repo}"}},{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{org}/{repo}"}},{"match":{"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{repoType}/{org}/{repo}/{filePath}"}},{"match":{"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{org}/{repo}/{filePath}"}}]},{"id":"icims","name":"iCIMS Enterprise Career Portals","category":"jobs","description":"Upgrades *.icims.com/jobs/... portals and postings to their server-rendered ?ss=1&in_iframe=1 twin, extracting JobPosting JSON-LD and open role cards without outer iframe shells.","domains":["*.icims.com"],"exampleUrls":["https://careers-compsych.icims.com/jobs/search?ss=1","https://careers-compsych.icims.com/jobs/2526/senior-cloud-architect/job"],"routes":[{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":true,"pathSegments":[]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"anyOf":[{"exactSegments":true,"pathSegments":["jobs"]},{"exactSegments":true,"pathSegments":["jobs","intro"]},{"exactSegments":true,"pathSegments":["jobs","search"]}]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/jobs","/jobs/intro","/jobs/search"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}}],"htmlRoutes":[{"id":"icims","mode":"icims_portal","match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]}}]},{"id":"idx-broker-showcase","name":"IDX Broker & Showcase IDX Real Estate Portals","category":"commerce-social","description":"Extracts real estate property listings, MLS numbers, pricing, and RealEstateAgent/RealEstateListing metadata from IDX Broker and Showcase IDX portals while rejecting 403/WAF shells.","domains":["*.idxbroker.com","entityrealty.com","realtorrajaram.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://entityrealty.com/","https://realtorrajaram.com/"],"htmlRoutes":[{"id":"idx-broker-showcase","match":{"exactSegments":false},"mode":"idx_broker_showcase_html"}]},{"id":"ietf-rfc","name":"IETF Datatracker & RFC Editor","category":"developer","description":"Strips ASCII RFC running page headers/footers ([Page N]) and promotes numbered section headings to Markdown headings.","domains":["datatracker.ietf.org","rfc-editor.org","www.rfc-editor.org"],"exampleUrls":["https://datatracker.ietf.org/doc/html/rfc9421","https://www.rfc-editor.org/rfc/rfc9110"],"routes":[{"match":{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","exactSegments":true,"pathSegments":["rfc",{"param":"rfcId","stripPrefix":"rfc","charset":"digits","minLen":1,"maxLen":6}]},"twin":{"fetchUrl":"https://www.rfc-editor.org/rfc/rfc{rfcId}.html","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"RFC {rfcId}"}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/rfc"},{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/draft-"},{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","minSegments":2}]},"mode":"markdown_clean","cleanPreset":"ietf_rfc"}]},{"id":"import-alerts-aphis-fda","name":"FDA Import Alerts & USDA APHIS Import Manuals","category":"public-records","description":"Extracts FDA Import Alerts (/cms_ia/* on accessdata.fda.gov) and USDA APHIS import guidance and manuals (aphis.usda.gov).","domains":["www.accessdata.fda.gov","accessdata.fda.gov","www.aphis.usda.gov","aphis.usda.gov"],"auth_mode":"pub","exampleUrls":["https://www.accessdata.fda.gov/cms_ia/importalert_190.html","https://www.accessdata.fda.gov/cms_ia/ialist.html","https://www.aphis.usda.gov/plant-imports","https://www.aphis.usda.gov/trade-management-manuals"],"htmlRoutes":[{"id":"import-alerts-aphis-fda","match":{"hosts":["www.accessdata.fda.gov","accessdata.fda.gov"],"pathPrefix":"/cms_ia/"},"mode":"import_alerts_fda_aphis_html"},{"id":"import-alerts-aphis-fda","match":{"hosts":["www.aphis.usda.gov","aphis.usda.gov"],"exactSegments":false},"mode":"import_alerts_fda_aphis_html"}]},{"id":"intercom-help","name":"Intercom Help Center","category":"developer","description":"Extracts Intercom Help Center articles and collections from __NEXT_DATA__ hydration, JSON-LD, and semantic HTML.","domains":["support.claude.com","www.intercom.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://support.claude.com/en/articles/7996845-what-are-some-things-i-can-use-claude-for","https://support.claude.com/en/collections/4078531-claude"],"htmlRoutes":[{"id":"intercom-help","match":{"exactSegments":false},"mode":"intercom_help_html"}]},{"id":"internet-archive","name":"Internet Archive Items (archive.org)","category":"genai","description":"Upgrades archive.org/details/ pages to the official /metadata/ JSON feed with creator, license, and downloadable files.","domains":["archive.org","www.archive.org"],"exampleUrls":["https://archive.org/details/07-28-16_Space-to-Grounds.zip"],"match":{"exactSegments":true,"pathSegments":["details",{"param":"identifier","charset":"pkg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://archive.org/metadata/{identifier}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["metadata"],"vars":{"title":{"paths":["metadata.title"],"fallbackTemplate":"{identifier}","trim":true},"creator":{"paths":["metadata.creator"],"join":", "},"mediatype":{"paths":["metadata.mediatype"]},"date":{"paths":["metadata.date","metadata.publicdate"]},"license":{"paths":["metadata.licenseurl"]},"collections":{"paths":["metadata.collection"],"limit":6,"join":", "},"desc":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags"},"descShort":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"creator","publishedTimeVar":"date","bullets":[{"label":"Identifier","template":"`{identifier}`"},{"label":"Creator","template":"{creator}","whenVar":"creator"},{"label":"Media Type","template":"{mediatype}","whenVar":"mediatype"},{"label":"Date","template":"{date}","whenVar":"date"},{"label":"Collections","template":"{collections}","whenVar":"collections"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Files","arrayPath":"files","filter":{"excludeFieldSuffixes":{"field":"name","suffixes":["_meta.xml","_files.xml"]}},"limit":15,"requireItemVar":"fname","collectLinkVars":["dlUrl"],"itemVars":{"fname":{"paths":["name"]},"dlUrl":{"template":"https://archive.org/download/{identifier}/{fname}","whenVars":["fname"],"replaceAll":{"from":" ","to":"%20"}}},"columns":[{"header":"File","template":"[{fname}]({dlUrl})"},{"header":"Format","paths":["format"]},{"header":"Size","paths":["size"],"format":"bytes_human"}]}]}},{"id":"ir-portal-pack","name":"Investor Relations Portals (Notified / Equisolve / Nasdaq IR)","category":"finance","description":"Extracts Notified/Intrado (wd_newsfeed), Equisolve, and Nasdaq IR investor relations portals and RSS press release feeds.","domains":["investor.iridium.com","ir.bowheadspecialty.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://investor.iridium.com/press-releases","https://ir.bowheadspecialty.com/news-events/press-releases/rss","https://ir.bowheadspecialty.com/"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/rss"},{"pathSuffix":".rss"},{"pathPrefix":"/rss/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ir_portal_rss_xml"}}],"htmlRoutes":[{"id":"ir-portal-pack","match":{"exactSegments":false},"mode":"ir_portal_pack_html"}]},{"id":"irs-teos","name":"IRS Tax Exempt Organization Search (TEOS)","category":"public-records","description":"Extracts IRS Tax Exempt Organization Search (Pub 78 / Form 990-N) lookup records while respecting robots.txt and strictly rejecting Akamai WAF challenge pages.","domains":["apps.irs.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://apps.irs.gov/app/eos/allSearch?ein=521693387","https://apps.irs.gov/app/eos/details/521693387"],"routes":[{"match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/allSearch"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}},{"match":{"hosts":["apps.irs.gov"],"exactSegments":false,"pathSegments":["app","eos","details",{"param":"ein","charset":"alnum_dash","minLen":4,"maxLen":20}]},"twin":{"fetchUrl":"https://apps.irs.gov/app/eos/allSearch?ein={ein}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}}],"htmlRoutes":[{"id":"irs-teos","match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/","exactSegments":false},"mode":"irs_teos_html"}]},{"id":"javadoc-dokka","name":"Javadoc & Kotlin Dokka API Docs","category":"developer","description":"Universal extractor for Javadoc and Kotlin Dokka HTML API pages as well as element-list and package-list index manifests.","domains":["docs.oracle.com","kotlinlang.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html","https://docs.oracle.com/en/java/javase/21/docs/api/element-list","https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/element-list"},{"pathSuffix":"/package-list"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"javadoc_element_list_text"}}],"htmlRoutes":[{"id":"javadoc-dokka","match":{"exactSegments":false},"mode":"javadoc_dokka_html"}]},{"id":"jazzhr","name":"JazzHR Career Boards (applytojob.com)","category":"jobs","description":"Upgrades .applytojob.com boards to app.jazz.co/feeds/export/jobs/ XML export (which includes full job descriptions and returns clean 404 on invalid slugs).","domains":["*.applytojob.com"],"exampleUrls":["https://axiomcloud.applytojob.com/apply"],"match":{"hostSubdomain":{"suffix":".applytojob.com","param":"org","reserved":["www","app"]},"maxSegments":1},"twin":{"id":"jazzhr","fetchUrl":"https://app.jazz.co/feeds/export/jobs/{org}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["jobs","job"],"itemTag":"job","titleTemplate":"{org} — JazzHR Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jUrl","itemVars":{"jTitle":{"tags":["title"]},"jUrl":{"tags":["url"]},"dept":{"tags":["department"],"default":"-"},"city":{"tags":["city"]},"state":{"tags":["state"]},"country":{"tags":["country"]},"jType":{"tags":["type"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{city} {state} {country}"},{"header":"Type","template":"{jType}"}]}}},{"id":"job-boards-jsonld-pack","name":"Job Boards (CareerArc, Nexxt, Reed, Alljobs)","category":"jobs","description":"Extracts JobPosting JSON-LD from CareerArc, Nexxt, Reed.co.uk, and Alljobs posting pages: title, company, locations, employment type, salary, posting/expiry dates, job ID, and description. Repairs the unescaped quotes CareerArc emits inside descriptions in one linear pass. Honors robots.txt.","domains":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"auth_mode":"html","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://www.careerarc.com/job-listing/state-of-vermont-jobs-trooper-probationary-53326582","https://www.nexxt.com/jobs/registered-nurse-rn-lebanon-oh-3496987559-job.html","https://www.reed.co.uk/jobs/nurse-wca/57553089","https://www.alljobs.co.il/Search/UploadSingle.aspx?JobID=8822511"],"htmlRoutes":[{"id":"job-boards-jsonld-pack","match":{"hosts":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"exactSegments":false},"mode":"job_boards_jsonld_html"}]},{"id":"jsr-io","name":"JSR JavaScript Registry","category":"developer","description":"Strips top-bar navigation and duplicate version/scorecard tabs from jsr.io/@scope/pkg Markdown.","domains":["jsr.io"],"exampleUrls":["https://jsr.io/@std/path"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"scope","charset":"npm_scope"},{"param":"pkg","charset":"npm_pkg"}]},"mode":"markdown_clean","cleanPreset":"jsr_io"}]},{"id":"judge-me","name":"Judge.me Product Reviews","category":"commerce-social","description":"Extracts public Judge.me product reviews widget JSON and HTML-in-JSON payloads without preempting storefront extractors.","domains":["api.judge.me","judge.me","cache.judge.me"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.judge.me/reviews/reviews_for_widget?shop_domain=thebraindriver.myshopify.com&platform=shopify&product_id=3946432580&page=1&per_page=10"],"routes":[{"match":{"hosts":["api.judge.me","judge.me","cache.judge.me"],"pathEquals":["/reviews/reviews_for_widget","/api/v1/widgets/product_review","/api/v1/reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"judgeme_reviews"}}],"htmlRoutes":[{"id":"judge-me","match":{"exactSegments":false},"mode":"judgeme_html"}]},{"id":"junar-tyler-data","name":"Junar & Tyler Data & Insights Open Data Portals","category":"public-records","description":"Extracts Junar /dataviews/ HTML and /api/v2/datastreams/ JSON plus Tyler Data & Insights /api/catalog/v1 datasets (without overlapping Socrata claims).","domains":["data.paloalto.gov","*.junar.com","data.tylertech.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://data.tylertech.com/api/catalog/v1","https://data.paloalto.gov/dataviews/251890/business-registry-2018/","https://data.paloalto.gov/home"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v2/datastreams/"},{"pathPrefix":"/api/catalog/v1"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"junar_tyler_json"}}],"htmlRoutes":[{"id":"junar-tyler-data","match":{"exactSegments":false},"mode":"junar_tyler_html"}]},{"id":"jwplayer","name":"JW Player Delivery & Previews","category":"commerce-social","description":"Extracts JW Player CDN v2 media/playlist JSON twins, /previews/{mediaId} redirects to v2 media JSON, and JW Platform feeds.","domains":["cdn.jwplayer.com","content.jwplatform.com"],"auth_mode":"pub","exampleUrls":["https://cdn.jwplayer.com/v2/media/1b02B03R","https://cdn.jwplayer.com/previews/1b02B03R"],"routes":[{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["v2",{"param":"kind","allowValues":["media","playlists"]},{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["previews",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://cdn.jwplayer.com/v2/media/{mediaId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["content.jwplatform.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["feeds",{"param":"mediaFile","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}}],"htmlRoutes":[{"id":"jwplayer","match":{"exactSegments":false},"mode":"jwplayer_html"}]},{"id":"kaggle","name":"Kaggle Datasets, Models & Competitions","category":"developer","description":"Extracts Kaggle dataset, model, and competition metadata via Kaggle REST API v1 (KAGGLE_API_KEY) with public HTML fallback.","domains":["www.kaggle.com","kaggle.com"],"auth_mode":"key","exampleUrls":["https://www.kaggle.com/api/v1/datasets/view/heptapod/titanic","https://www.kaggle.com/datasets/heptapod/titanic"],"routes":[{"match":{"hosts":["www.kaggle.com","kaggle.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}},{"match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false,"pathSegments":["datasets",{"param":"owner","charset":"pkg","minLen":1,"maxLen":100},{"param":"slug","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.kaggle.com/api/v1/datasets/view/{owner}/{slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}}],"htmlRoutes":[{"id":"kaggle","match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false},"mode":"kaggle_html"}]},{"id":"kb-platform-pack","name":"KB Platform Pack (Document360, Helpjuice, KnowledgeOwl)","category":"developer","description":"Extracts public knowledge base articles and categories across Document360, Helpjuice, and KnowledgeOwl.","domains":["docs.document360.com","help.helpjuice.com","support.knowledgeowl.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.helpjuice.com/getting-started/what-is-a-knowledge-base","https://support.knowledgeowl.com/help/enable-single-sign-on-sso"],"htmlRoutes":[{"id":"kb-platform-pack","match":{"exactSegments":false},"mode":"kb_platform_pack_html"}]},{"id":"khoros-lithium","name":"Khoros / Lithium Communities","category":"developer","description":"Upgrades Khoros/Lithium /t5/.../td-p/ community threads to /api/2.0/messages/ JSON twins with HTML fallback.","domains":["community.qlik.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"exampleUrls":["https://community.qlik.com/t5/Product-Innovation/AI-Without-Context-Is-Guessing-With-Confidence-Our-October-Qlik/ba-p/2560737","https://community.qlik.com/api/2.0/messages/2560737"],"routes":[{"match":{"pathPrefix":"/t5/","anyOf":[{"scanSegment":{"afterLiteral":"td-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"m-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ba-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ta-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}}]},"twin":{"fetchUrl":"https://{host}/api/2.0/messages/{msgId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}},{"match":{"pathSegments":["api","2.0","messages",{"param":"msgId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}}],"htmlRoutes":[{"id":"khoros-lithium","match":{"exactSegments":false},"mode":"khoros_html"}]},{"id":"klaviyo-attentive-forms","name":"Klaviyo & Attentive Onsite Forms (Read-Only)","category":"commerce-social","description":"Strictly read-only extractor for Klaviyo onsite company/form IDs, signup offer metadata, and Attentive tag metadata without submitting forms; yields on product/article pages.","domains":["www.getcasely.com","static.klaviyo.com","cdn.attn.tv"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.getcasely.com/"],"htmlRoutes":[{"id":"klaviyo-attentive-forms","match":{"exactSegments":false},"mode":"klaviyo_attentive_forms_html"}]},{"id":"klevu","name":"Klevu Smart Search","category":"commerce-social","description":"Opt-in page-key adapter for Klevu v2 POST search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["eucs15v2.ksearchnet.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://eucs15v2.ksearchnet.com/cs/v2/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".ksearchnet.com","param":"clusterHost"},"pathEquals":["/cs/v2/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"context\":{\"apiKeys\":[\"klevu-156925593843210765\"]},\"recordQueries\":[{\"id\":\"productList\",\"typeOfRequest\":\"SEARCH\",\"settings\":{\"query\":{\"term\":\"bag\"},\"limit\":10}}]}","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"klevu"}}],"htmlRoutes":[{"id":"klevu","match":{"exactSegments":false},"mode":"klevu_html"}]},{"id":"kroger","name":"Kroger Public Products API","category":"commerce-social","description":"Extracts Kroger product UPC/GTIN, brand, size, pricing, and fulfillment metadata via the official Kroger v1 Products API.","domains":["kroger.com","www.kroger.com","api.kroger.com"],"auth_mode":"key","exampleUrls":["https://api.kroger.com/v1/products/0001111085135","https://api.kroger.com/v1/products?filter.term=oats"],"routes":[{"match":{"hosts":["kroger.com","www.kroger.com"],"exactSegments":false,"pathSegments":["p",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"upc","charset":"digits","minLen":8,"maxLen":14}]},"twin":{"fetchUrl":"https://api.kroger.com/v1/products/{upc}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}},{"match":{"hosts":["api.kroger.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}}]},{"id":"lang-registry-pack","name":"Language Registry Pack (pub.dev, CRAN, CocoaPods, Anaconda)","category":"developer","description":"Extracts package metadata and newest stable versions from Dart pub.dev, R CRAN HTML, CocoaPods HTML, and Anaconda/conda-forge API.","domains":["pub.dev","cran.r-project.org","cocoapods.org","anaconda.org","api.anaconda.org"],"auth_mode":"pub","exampleUrls":["https://pub.dev/packages/http","https://cocoapods.org/pods/Alamofire","https://anaconda.org/conda-forge/six"],"routes":[{"match":{"hosts":["pub.dev"],"pathPrefix":"/api/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["pub.dev"],"exactSegments":false,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://pub.dev/api/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["api.anaconda.org"],"pathPrefix":"/package/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}},{"match":{"hosts":["anaconda.org"],"exactSegments":true,"reservedFirstSegment":["search","admin","download","static","api","login","signup","docs","pricing","about"],"pathSegments":[{"param":"channel","charset":"pkg","minLen":1,"maxLen":80},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.anaconda.org/package/{channel}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}}],"htmlRoutes":[{"id":"lang-registry-pack","match":{"hosts":["cran.r-project.org"],"pathPrefix":"/web/packages/","exactSegments":false},"mode":"cran_html"},{"id":"lang-registry-pack","match":{"hosts":["cocoapods.org"],"pathPrefix":"/pods/","exactSegments":false},"mode":"cocoapods_html"}]},{"id":"laserfiche-weblink","name":"Laserfiche WebLink Public Document Portals","category":"public-records","description":"Universal Laserfiche WebLink adapter for city and county records portals. DocView.aspx and Browse.aspx links that carry id and repo (as WebLink share links do) upgrade to the anonymous JSON services the viewer itself calls: document name, folder path, template, created/modified dates, page count and metadata fields, or a folder listing with links. No cookies or login are used; the CookieCheck redirect only guards the HTML shell.","domains":["cc-publicdocs.santa-ana.org","records.hawaiicounty.gov","docs.southbendin.gov","weblink.winterspringsfl.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://cc-publicdocs.santa-ana.org/WebLink/DocView.aspx?id=82504&dbid=1&repo=Clerk","https://cc-publicdocs.santa-ana.org/WebLink/Browse.aspx?id=82479&dbid=1&repo=Clerk"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"DocView.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/DocumentService.aspx/GetBasicDocumentInfo","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"entryId\":{id}}","maxBytes":2097152},"extract":{"jsonMode":"laserfiche_doc_json"}},{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"Browse.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/FolderListingService.aspx/GetFolderListing2","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"folderId\":{id},\"getNewListing\":true,\"start\":0,\"end\":50,\"sortColumn\":\"\",\"sortAscending\":true}","maxBytes":4194304},"extract":{"jsonMode":"laserfiche_folder_json"}}],"htmlRoutes":[{"id":"laserfiche-weblink","match":{"exactSegments":false},"mode":"laserfiche_missing_repo_html"}]},{"id":"legacy-cart","name":"Legacy Shopping Carts (OpenCart, nopCommerce, Shift4Shop, Volusion)","category":"commerce-social","description":"Extracts OpenCart, nopCommerce, Shift4Shop, and Volusion product JSON-LD, Microdata, and spec-table DOM while filtering template noise.","domains":["www.eurekagolf.co.uk","www.sturdybuiltonline.com","www.cctvcamerapros.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.eurekagolf.co.uk/oakley-standard-polo-shirt-pacific-blue","https://www.sturdybuiltonline.com/Steel-Diamond-Plate-Utility-Trailer-Fender-Single-Axle-10-in-x-32-in-x-13-in_p_215.html","https://www.cctvcamerapros.com/HDMI-to-USB-Converter-p/hdmi-u3.htm"],"htmlRoutes":[{"id":"legacy-cart","match":{"exactSegments":false},"mode":"legacy_cart_html"}]},{"id":"legistar","name":"Legistar Municipal Council Legislation & Meetings","category":"public-records","description":"Upgrades .legistar.com municipal council portals to the keyless webapi.legistar.com REST API for ordinances, resolutions, and meetings.","domains":["*.legistar.com"],"exampleUrls":["https://seattle.legistar.com/Legislation.aspx","https://seattle.legistar.com/Calendar.aspx"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathSuffix":"calendar.aspx","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathContainsSegment":"calendar","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}}]},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/events?$top=20&$orderby=EventDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Council — Recent Meetings (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":20,"itemVars":{"agendaUrl":{"paths":["EventInSiteURL"],"requireHttps":true},"linkCell":{"template":"[Agenda]({agendaUrl})","whenVars":["agendaUrl"],"default":"-"}},"columns":[{"header":"Date","paths":["EventDate"],"sliceMax":10},{"header":"Body / Committee","paths":["EventBodyName"]},{"header":"Location","paths":["EventLocation"]},{"header":"Link","template":"{linkCell}"}]}]}},{"match":{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/matters?$top=25&$orderby=MatterIntroDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Legislation — Recent Matters (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":25,"columns":[{"header":"File #","paths":["MatterFile"],"code":true},{"header":"Type","paths":["MatterTypeName"]},{"header":"Status","paths":["MatterStatusName"]},{"header":"Introduced","paths":["MatterIntroDate"],"sliceMax":10},{"header":"Title","paths":["MatterTitle","MatterName"]}]}]}}]},{"id":"lemmy","name":"Lemmy Federated Link Aggregator (Universal Engine)","category":"commerce-social","description":"Upgrades Lemmy posts (/post/{id}), communities (/c/{name}), and /api/v3/* endpoints via JSON API with SSR HTML fallback while rejecting Cloudflare challenges.","domains":["lemmy.world","lemmy.ml","programming.dev","sh.itjust.works"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lemmy.world/api/v3/post?id=54926010","https://lemmy.world/api/v3/community?name=memes","https://lemmy.world/post/54926010","https://lemmy.ml/post/55819348"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v3","post"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","comment","list"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","community"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":false,"pathSegments":["post",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{host}/api/v3/post?id={postId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["c",{"param":"communityName","charset":"brew_id","minLen":1,"maxLen":120,"reserved":["api","pictrs","feeds","u","post","search","communities","login","signup"]}]},"twin":{"fetchUrl":"https://{host}/api/v3/community?name={communityName}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}}],"htmlRoutes":[{"id":"lemmy","match":{"exactSegments":false},"mode":"lemmy_html"}]},{"id":"libraries-io","name":"Libraries.io Package Metadata API","category":"developer","description":"Extracts cross-ecosystem package metadata, latest stable release, dependents, and repository signals via the official Libraries.io API (LIBRARIES_IO_API_KEY).","domains":["libraries.io"],"auth_mode":"key","exampleUrls":["https://libraries.io/api/npm/express"],"routes":[{"match":{"hosts":["libraries.io"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://libraries.io/api/npm/{scope}%2F{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":[{"param":"platform","allowValues":["npm","pypi","rubygems","cargo","go","nuget","packagist","hex","maven","pub","cran","cocoapods","conda"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://libraries.io/api/{platform}/{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}}]},{"id":"lightspeed-ecom","name":"Lightspeed eCom (C-Series)","category":"commerce-social","description":"Extracts Lightspeed eCom C-Series ?format=json product and collection twins plus custom-domain storefront HTML/companion discovery.","domains":["www.kayasieraden.nl"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html","https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html?format=json"],"routes":[{"match":{"hosts":["www.kayasieraden.nl"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"lightspeed_ecom_json"}}],"htmlRoutes":[{"id":"lightspeed-ecom","match":{"exactSegments":false},"mode":"lightspeed_ecom_html"}]},{"id":"lobsters","name":"Lobste.rs Computing Stories","category":"commerce-social","description":"Upgrades lobste.rs/s/ story pages to their .json feed with nested plain-text comments.","domains":["lobste.rs"],"exampleUrls":["https://lobste.rs/s/abc123/zero_alloc_go_parsers"],"match":{"exactSegments":false,"pathSegments":["s",{"param":"shortId","charset":"alnum","minLen":4,"maxLen":12}]},"twin":{"fetchUrl":"https://lobste.rs/s/{shortId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"storyUrl":{"paths":["url"]},"score":{"paths":["score"],"default":"0"},"user":{"paths":["submitter_user"]},"created":{"paths":["created_at"]},"tags":{"paths":["tags"],"itemWrap":"`","join":", "},"descPlain":{"paths":["description_plain"],"trim":true}},"titleTemplate":"{title}","authorVar":"user","publishedTimeVar":"created","metaLine":[{"label":"Score","template":"{score}"},{"label":"By","template":"@{user}","whenVar":"user"},{"label":"Tags","template":"{tags}","whenVar":"tags"},{"label":"Link","template":"{storyUrl}","whenVar":"storyUrl"}],"introVar":"descPlain","sections":[{"heading":"Comments","listArrayPath":"comments","limit":40,"indentField":"indent_level","indentOffset":-1,"maxIndent":6,"itemTemplate":"**@{user}** ({score} pts): {body}","requireItemVar":"body","itemVars":{"user":{"paths":["commenting_user"],"default":"user"},"score":{"paths":["score"],"default":"0"},"body":{"paths":["comment_plain"],"trim":true}}}],"linksVars":["storyUrl"]}},{"id":"loc-gov","name":"Library of Congress (loc.gov)","category":"public-records","description":"Library of Congress JSON (?fo=json) adapter for items, resources, and collections (excluding Chronicling America and disallowed search paths).","domains":["loc.gov","www.loc.gov"],"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/item/2014645520/","https://www.loc.gov/item/2014645520/?fo=json","https://www.loc.gov/resource/ds.05251/?fo=json"],"routes":[{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["item",{"param":"itemId","charset":"url_seg","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{itemId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["resource",{"param":"resourceId","charset":"url_seg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://www.loc.gov/resource/{resourceId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/{collectionId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}}],"htmlRoutes":[{"id":"loc-gov","match":{"anyOf":[{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/item/"},{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/resource/"},{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]}]},"mode":"loc_gov_html"}]},{"id":"mastodon-status","name":"Mastodon & Fediverse Statuses (Universal Engine)","category":"commerce-social","description":"Upgrades Fediverse status permalinks (/@/) on any Mastodon instance to /api/v1/statuses/ JSON.","domains":["mastodon.social","fosstodon.org","hachyderm.io"],"universalEngine":true,"exampleUrls":["https://fosstodon.org/@realpython/117694898741277050"],"match":{"excludeHosts":["medium.com","*.medium.com","tiktok.com","*.tiktok.com","threads.net","*.threads.net"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle"},{"param":"statusId","charset":"digits","minLen":15,"maxLen":24}]},"twin":{"id":"mastodon-status","fetchUrl":"https://{host}/api/v1/statuses/{statusId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["content","account.acct"],"vars":{"acct":{"paths":["account.acct"]},"displayName":{"paths":["account.display_name"],"fallbackTemplate":"{acct}"},"createdAt":{"paths":["created_at"]},"spoiler":{"paths":["spoiler_text"],"trim":true},"body":{"paths":["content"],"format":"html_to_md"}},"titleTemplate":"{displayName} (@{acct}@{host})","authorTemplate":"@{acct}@{host}","publishedTimeVar":"createdAt","blockquoteTemplate":"> [!NOTE]\n> **Content Note**: {spoiler}","blockquoteWhenVar":"spoiler","bodyVar":"body","sections":[{"heading":"","listArrayPath":"media_attachments","limit":16,"requireItemVar":"mediaDesc","itemVars":{"mediaDesc":{"paths":["description"],"trim":true}},"itemTemplate":"*Media description*: {mediaDesc}"}]}},{"id":"maven-central","name":"Maven Central","category":"developer","description":"Upgrades central.sonatype.com/artifact//[/] pages to the keyless Maven Central Solr JSON API (central.sonatype.com for versioned artifacts, search.maven.org for artifact summaries) with Maven/Gradle coordinates and artifact metadata.","domains":["central.sonatype.com"],"exampleUrls":["https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind","https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.18.2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160},{"param":"v","charset":"pkg","reserved":["versions","overview","dependencies","dependents","jar"],"minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://central.sonatype.com/solrsearch/select?q=g:{g}+AND+a:{a}+AND+v:{v}&core=gav&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["v","latestVersion"]},"packaging":{"paths":["p"]},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}/{ver}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}},{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://search.maven.org/solrsearch/select?q=g:{g}+AND+a:{a}&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["latestVersion","v"]},"packaging":{"paths":["p"]},"versionCount":{"paths":["versionCount"],"format":"int_comma"},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","titleWhenVar":"ver","titleFallbackTemplate":"{groupId}:{artifactId} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`","whenVar":"ver"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`","whenVar":"ver"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}}]},{"id":"mcp-directories","name":"Community MCP Directories (Smithery, Glama, PulseMCP)","category":"developer","description":"Extracts community MCP directory listings from Smithery Registry API and public Glama/PulseMCP HTML pages, tagging every record trustTier=community, untrusted=true.","domains":["smithery.ai","registry.smithery.ai","glama.ai","pulsemcp.com","www.pulsemcp.com"],"auth_mode":"pub","exampleUrls":["https://registry.smithery.ai/servers?pageSize=5","https://www.pulsemcp.com/servers?q=github","https://glama.ai/mcp/servers?query=github"],"routes":[{"match":{"hosts":["registry.smithery.ai"],"pathPrefix":"/servers"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{ns}/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}}],"htmlRoutes":[{"id":"mcp-directories","match":{"hosts":["glama.ai"],"pathPrefix":"/mcp/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["pulsemcp.com","www.pulsemcp.com"],"pathPrefix":"/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["smithery.ai"],"exactSegments":false},"mode":"mcp_directory_html"}]},{"id":"mcp-registry","name":"Official Model Context Protocol (MCP) Registry","category":"developer","description":"Extracts official MCP server listings, remotes, and packages from registry.modelcontextprotocol.io tagged trustTier=official, untrusted=false.","domains":["registry.modelcontextprotocol.io"],"auth_mode":"pub","exampleUrls":["https://registry.modelcontextprotocol.io/v0/servers?limit=5"],"routes":[{"match":{"hosts":["registry.modelcontextprotocol.io"],"anyOf":[{"pathPrefix":"/v0/"},{"pathPrefix":"/v0.1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mcp_registry_json"}}]},{"id":"mediawiki","name":"Wikipedia & MediaWiki Encyclopedias","category":"commerce-social","description":"Robots-compliant Wikipedia & MediaWiki adapter: strips [ ], Edit links, [n] citation markers, [edit], and navigation chrome with 24h article caching; pair with search({ query, wikipedia: true, lang }) for Special:Search-free article discovery and Wikimedia Enterprise or dumps.wikimedia.org for bulk corpus access.","domains":["*.wikipedia.org","wiki.archlinux.org"],"universalEngine":true,"exampleUrls":["https://en.wikipedia.org/wiki/HTTP/2"],"htmlRoutes":[{"id":"mediawiki","match":{"exactSegments":false},"mode":"markdown_clean","cleanPreset":"mediawiki"}]},{"id":"medicaid-nadac","name":"Medicaid NADAC Drug Pricing (DKAN)","category":"research-health","description":"Extracts data.medicaid.gov NADAC drug pricing DKAN metastore datasets, datastore queries, and /dataset/{id} twins while rejecting empty CMS Medicaid Data React shells.","domains":["data.medicaid.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/fbb83258-11c7-47f5-8b18-5f8e79f7e704","https://data.medicaid.gov/api/1/datastore/query/e3af839d-8175-5be0-b94e-4a302ed7a035/0?limit=5","https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704"],"routes":[{"match":{"pathPrefix":"/api/1/metastore/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}},{"match":{"pathPrefix":"/api/1/datastore/query/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}},{"match":{"exactSegments":false,"pathSegments":["dataset",{"param":"datasetId","charset":"alnum_dash","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}}],"htmlRoutes":[{"id":"medicaid-nadac","match":{"exactSegments":false},"mode":"medicaid_nadac_html"}]},{"id":"medium","name":"Medium","category":"commerce-social","description":"Extracts Medium ?format=json responses with linear anti-XSSI prefix stripping, Medium RSS feeds, and Medium article HTML.","domains":["medium.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://medium.com/p/62edea66ffa4?format=json","https://medium.com/@medium/updating-our-rules-june-2023-62edea66ffa4","https://medium.com/feed/@medium"],"routes":[{"match":{"hosts":["medium.com"],"exactSegments":false,"queryParams":[{"name":"format","param":"fmt","allowValues":["json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":["p",{"param":"postId","charset":"alnum","minLen":8,"maxLen":20}]},"twin":{"fetchUrl":"https://medium.com/p/{postId}?format=json","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle","minLen":2,"maxLen":80},{"param":"slugId","charset":"slug","minLen":10,"maxLen":200}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"pathPrefix":"/feed/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"medium_rss_xml"}}],"htmlRoutes":[{"id":"medium","match":{"exactSegments":false},"mode":"medium_html"}]},{"id":"medlineplus","name":"NLM MedlinePlus","category":"research-health","description":"MedlinePlus Health Topics XML web service, MedlinePlus Connect JSON API, and medlineplus.gov topic HTML extractor.","domains":["medlineplus.gov","www.medlineplus.gov","wsearch.nlm.nih.gov","connect.medlineplus.gov"],"auth_mode":"pub","exampleUrls":["https://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=diabetes&retmax=2","https://medlineplus.gov/diabetes.html"],"routes":[{"match":{"hosts":["wsearch.nlm.nih.gov"],"pathEquals":["/ws/query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/xml","maxBytes":2097152},"extract":{"textMode":"medlineplus_xml"}},{"match":{"hosts":["connect.medlineplus.gov"],"pathEquals":["/service"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"knowledgeResponseType":"application/json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medlineplus_connect_json"}}],"htmlRoutes":[{"id":"medlineplus","match":{"hosts":["medlineplus.gov","www.medlineplus.gov"],"exactSegments":false},"mode":"medlineplus_html"}]},{"id":"medusa","name":"Medusa Storefront & Store API","category":"commerce-social","description":"Opt-in page-key adapter for Medusa /store/products API twins with Next.js RSC, JSON-LD, and DOM storefront HTML fallback when disabled.","domains":["next.medusajs.com","www.mattsleeps.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://next.medusajs.com/dk/products/hoodie","https://www.mattsleeps.com/en/beds"],"routes":[{"match":{"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["store","products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}},{"match":{"optionalLeadingLocale":true,"pathSegments":["store","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}}],"htmlRoutes":[{"id":"medusa","match":{"exactSegments":false},"mode":"medusa_html"}]},{"id":"meetup-luma","name":"Meetup & Luma Events","category":"commerce-social","description":"Extracts event title, schedule, venue/location, organizer, and description from Meetup and Luma (lu.ma / luma.com) via Schema.org Event JSON-LD and __NEXT_DATA__ hydration.","domains":["meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com"],"auth_mode":"html","exampleUrls":["https://www.meetup.com/lawofattractioncentre/events/317269557/","https://luma.com/8jye50v0"],"htmlRoutes":[{"id":"meetup-luma","match":{"exactSegments":false},"mode":"meetup_luma_html"}]},{"id":"midmarket-career-portals","name":"Mid-Market Career Portals (Paycom, Paycor, ADP)","category":"jobs","description":"Extracts structured open roles from Paycom (/v4/ats/web.php/portal/ & /api/ats/job-postings/), ADP Workforce Now (/mascsr/default/careercenter/), and public Paycor career pages.","domains":["pc00.paycomonline.com","www.paycomonline.net","workforcenow.adp.com","recruiting.adp.com","www.paycor.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://workforcenow.adp.com/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions?cid=7a48330e-b9d5-4122-9051-71a47afa46d5"],"routes":[{"match":{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"pathPrefix":"/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"adp_wfn_json"}}],"htmlRoutes":[{"id":"midmarket-career-portals","mode":"midmarket_career_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","recruitingbypaycor.com"],"anyOf":[{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"exactSegments":false},{"hosts":["www.paycor.com"],"pathPrefix":"/company/careers","exactSegments":false}]}}]},{"id":"mlb-statsapi","name":"MLB Stats API","category":"commerce-social","description":"Extracts public MLB schedule, team, game linescore, standings, and player data from statsapi.mlb.com JSON endpoints with mlb.com HTML/JSON-LD fallback.","domains":["statsapi.mlb.com","mlb.com","www.mlb.com"],"auth_mode":"pub","exampleUrls":["https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=2024-10-30","https://statsapi.mlb.com/api/v1/teams/119","https://statsapi.mlb.com/api/v1/game/775296/linescore","https://www.mlb.com/dodgers"],"routes":[{"match":{"hosts":["statsapi.mlb.com"],"anyOf":[{"pathPrefix":"/api/v1/schedule"},{"pathPrefix":"/api/v1/teams"},{"pathPrefix":"/api/v1/game/"},{"pathPrefix":"/api/v1/standings"},{"pathPrefix":"/api/v1/people"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"mlb_statsapi_json"}}],"htmlRoutes":[{"id":"mlb-statsapi","mode":"mlb_statsapi_html","match":{"hosts":["mlb.com","www.mlb.com"],"exactSegments":false}}]},{"id":"model-hub-pack","name":"Model Hub Pack (Replicate & Civitai)","category":"genai","description":"Extracts ML model metadata, versions, hardware, and descriptions from Replicate and Civitai SSR/Next.js HTML pages while honoring robots.txt.","domains":["replicate.com","www.replicate.com","civitai.com","www.civitai.com"],"auth_mode":"pub","exampleUrls":["https://replicate.com/meta/meta-llama-3-8b-instruct","https://civitai.com/models/4201/realistic-vision-v60-b1"],"htmlRoutes":[{"id":"model-hub-pack","match":{"hosts":["replicate.com","www.replicate.com"],"exactSegments":false},"mode":"replicate_html"},{"id":"model-hub-pack","match":{"hosts":["civitai.com","www.civitai.com"],"exactSegments":false},"mode":"civitai_html"}]},{"id":"modern-community-pack","name":"Modern Community Pack","category":"commerce-social","description":"Extracts community discussions, authors, and timestamps from Higher Logic, Bettermode (rendered SSR DOM only), and Circle HTML while rejecting soft-404s and empty shells.","domains":["community.broadcom.com","community.flutterflow.io","community.xano.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://community.broadcom.com/vmware-cloud-foundation/discussion/black-screen-after-upgrading-opensuse-leap-16-0-to-16-1-disabling-vmware-graphics-driver-restores-desktop","https://community.flutterflow.io/discussions/post/how-to-build-a-browser-based-instagram-story-viewer-with-flutterflow-lldyNB3IG314wPU","https://community.xano.com/ask-the-community/post/api-cache-bug-0GJQtNpHlTb471k"],"htmlRoutes":[{"id":"modern-community-pack","match":{"exactSegments":false},"mode":"modern_community_pack_html"}]},{"id":"multifamily-portals","name":"Multifamily Apartment Portals (RentCafe / Entrata / RealPage / Jonah)","category":"commerce-social","description":"Extracts apartment floor plans, square footage, and lease pricing from RentCafe, Entrata, RealPage, and Jonah Systems multifamily portals while honoring Disallow: /*.ashx.","domains":["*.rentcafe.com","*.entrata.com","*.realpage.com","www.canvasatmidlothian.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.canvasatmidlothian.com/"],"htmlRoutes":[{"id":"multifamily-portals","match":{"exactSegments":false},"mode":"multifamily_portals_html"}]},{"id":"municipal-cms-pack","name":"Municipal CMS Pack (Revize & OpenCities)","category":"public-records","description":"Universal HTML extractor for Revize and Granicus OpenCities (formerly Vision Internet) municipal government portals.","domains":["www.maplevalleywa.gov","www.reno.gov","www.culvercity.gov","www.glendaleaz.gov"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.maplevalleywa.gov/government/city_council_meetings_agendas_and_minutes.php","https://www.culvercity.gov/Home","https://www.glendaleaz.gov/Home"],"htmlRoutes":[{"id":"municipal-cms-pack","match":{"exactSegments":false},"mode":"municipal_cms_html"}]},{"id":"municode","name":"Municode Municipal Codes","category":"public-records","description":"Municode API JSON and municipal code library HTML adapter for city and county ordinances.","domains":["library.municode.com","api.municode.com"],"auth_mode":"pub","exampleUrls":["https://library.municode.com/tx/austin/codes/code_of_ordinances","https://api.municode.com/States"],"routes":[{"match":{"hosts":["api.municode.com"],"pathPrefix":"/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"municode_json"}}],"htmlRoutes":[{"id":"municode","match":{"hosts":["library.municode.com"],"exactSegments":false},"mode":"municode_html"}]},{"id":"nasa-apis","name":"NASA Open APIs & Image Library","category":"research-health","description":"NASA api.nasa.gov (APOD, NeoWs, EPIC with DEMO_KEY fallback or configured NASA_API_KEY) and keyless images-api.nasa.gov search.","domains":["api.nasa.gov","images-api.nasa.gov"],"auth_mode":"key","exampleUrls":["https://api.nasa.gov/neo/rest/v1/feed/today?detailed=false","https://api.nasa.gov/planetary/apod?date=2024-07-04","https://images-api.nasa.gov/search?q=apollo+11&page_size=2"],"routes":[{"match":{"hosts":["api.nasa.gov"],"anyOf":[{"pathPrefix":"/planetary/apod"},{"pathPrefix":"/neo/"},{"pathPrefix":"/EPIC/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}},{"match":{"hosts":["images-api.nasa.gov"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/asset/"},{"pathPrefix":"/metadata/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}}]},{"id":"national-archives","name":"U.S. National Archives (NARA Catalog)","category":"public-records","description":"National Archives and Records Administration (NARA) Catalog API v2 adapter (catalog.archives.gov/api/v2) with HTML fallback.","domains":["catalog.archives.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://catalog.archives.gov/api/v2/records/search?q=constitution","https://catalog.archives.gov/id/1667751"],"routes":[{"match":{"hosts":["catalog.archives.gov"],"pathPrefix":"/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}},{"match":{"hosts":["catalog.archives.gov"],"exactSegments":false,"pathSegments":["id",{"param":"naId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.archives.gov/api/v2/records/search?naId={naId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}}],"htmlRoutes":[{"id":"national-archives","match":{"hosts":["catalog.archives.gov"],"exactSegments":false},"mode":"national_archives_html"}]},{"id":"ncaa-espn","name":"NCAA & ESPN","category":"commerce-social","description":"Extracts NCAA and ESPN sports articles, scoreboards, standings, and public sports API JSON plus HTML JSON-LD and __espnfitt__ / turner_metadata hydration.","domains":["ncaa.com","www.ncaa.com","espn.com","www.espn.com","site.api.espn.com","sports.core.api.espn.com","site.web.api.espn.com","data.ncaa.com","sdataprod.ncaa.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.espn.com/mlb/story/_/id/50328768/free-agency-tracker-offseason-trades-moves-2026-2027","https://www.espn.com/nfl/scoreboard","https://www.ncaa.com/news/football/article/2026-11-25/4-games-storylines-rivalry-week-could-impact-college-football-playoff-bracket","https://sports.core.api.espn.com/v2/sports/football/leagues/nfl"],"routes":[{"match":{"hosts":["sports.core.api.espn.com"],"pathPrefix":"/v2/sports/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.web.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["data.ncaa.com"],"pathPrefix":"/cas/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}}],"htmlRoutes":[{"id":"ncaa-espn","match":{"hosts":["espn.com","www.espn.com","ncaa.com","www.ncaa.com"]},"mode":"ncaa_espn_html"}]},{"id":"nces-ipeds","name":"NCES IPEDS & Urban Institute Education Data","category":"public-records","description":"NCES IPEDS and Digest of Education Statistics HTML adapter with Urban Institute Education Data API JSON support (strict robots).","domains":["nces.ed.gov","educationdata.urban.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nces.ed.gov/ipeds/use-the-data","https://nces.ed.gov/programs/digest/current_tables.asp"],"routes":[{"match":{"hosts":["educationdata.urban.org"],"exactSegments":false,"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"nces_ipeds_json"}}],"htmlRoutes":[{"id":"nces-ipeds","match":{"hosts":["nces.ed.gov","educationdata.urban.org"],"exactSegments":false},"mode":"nces_ipeds_html"}]},{"id":"ncua-credit-unions","name":"NCUA Credit Union Lookup","category":"finance","description":"Extracts NCUA credit union details and call report pages with strict robots.txt enforcement (honoring mapping.ncua.gov Disallow /) and ncua.gov HTML fallback.","domains":["mapping.ncua.gov","ncua.gov","www.ncua.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://ncua.gov/analysis/credit-union-corporate-call-report-data","https://mapping.ncua.gov/CreditUnionDetails/60006"],"routes":[{"match":{"hosts":["mapping.ncua.gov"],"exactSegments":false,"pathSegments":["CreditUnionDetails",{"param":"charter","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mapping.ncua.gov/api/CreditUnionDetails/{charter}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}},{"match":{"hosts":["mapping.ncua.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}}],"htmlRoutes":[{"id":"ncua-credit-unions","match":{"hosts":["ncua.gov","www.ncua.gov","mapping.ncua.gov"],"exactSegments":false},"mode":"ncua_html"}]},{"id":"neogov","name":"NeoGov GovernmentJobs & SchoolJobs","category":"jobs","description":"Extracts structured public-sector job feeds and postings from NeoGov GovernmentJobs and SchoolJobs RSS/JSON/HTML while strictly honoring robots.txt.","domains":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.governmentjobs.com/careers/lacounty/rss","https://www.governmentjobs.com/careers/lacounty","https://www.schooljobs.com/careers/lausd"],"routes":[{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":"/rss","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".rss","exactSegments":false}]},"twin":{"id":"neogov-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"NeoGov Public Sector Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category","department"],"default":"-"},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","department":"{dept}","location":"{loc}","postedAt":"{pubDate}","source":"neogov"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".json","exactSegments":false}]},"twin":{"id":"neogov-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"neogov_json"}}],"htmlRoutes":[{"id":"neogov","mode":"neogov_html","match":{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"exactSegments":false}}]},{"id":"newsletter-archives","name":"Newsletter Archives (Beehiiv / Ghost / Buttondown / Kit)","category":"commerce-social","description":"Extracts Ghost Content API posts, scoped Beehiiv/Ghost/Buttondown RSS feeds, and newsletter archive HTML pages.","domains":["ghost.org","buttondown.com","rss.beehiiv.com","aibrews.beehiiv.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://ghost.org/changelog/rss/","https://ghost.org/changelog/","https://buttondown.com/hillelwayne/rss","https://aibrews.beehiiv.com/"],"routes":[{"match":{"pathPrefix":"/ghost/api/content/posts","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"newsletter_ghost_json"}},{"match":{"hosts":["rss.beehiiv.com"],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["buttondown.com"],"exactSegments":true,"pathSegments":[{"param":"pub","charset":"slug","minLen":1,"maxLen":80},"rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["ghost.org"],"pathEquals":["/changelog/rss","/changelog/rss/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".beehiiv.com","param":"pub"},"pathEquals":["/feed","/rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".ghost.io","param":"pub"},"pathEquals":["/rss","/rss/","/feed","/feed/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}}],"htmlRoutes":[{"id":"newsletter-archives","match":{"exactSegments":false},"mode":"newsletter_archives_html"}]},{"id":"newswire-pack","name":"Newswire Pack (PR Newswire / Business Wire / GlobeNewswire)","category":"commerce-social","description":"Extracts PR Newswire, Business Wire, and GlobeNewswire RSS feeds and NewsArticle HTML press releases.","domains":["www.prnewswire.com","prnewswire.com","www.businesswire.com","businesswire.com","www.globenewswire.com","globenewswire.com"],"auth_mode":"pub","exampleUrls":["https://www.prnewswire.com/rss/news-releases-list.rss","https://www.prnewswire.com/news-releases/binance-secures-in-principle-approval-in-gelephu-mindfulness-city-plans-asia-hub-in-bhutan-302951995.html"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rss/"},{"pathPrefix":"/RssFeed/"},{"pathPrefix":"/feed/"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newswire_rss_xml"}}],"htmlRoutes":[{"id":"newswire-pack","match":{"exactSegments":false},"mode":"newswire_html"}]},{"id":"nfpa","name":"NFPA Standards & Codes (www.nfpa.org)","category":"public-records","description":"Unpacks Sitecore JSS __NEXT_DATA__ storefront-main placeholders (PageTitle, ContentBlock, SplitScreenCalloutComponent, Accordion, TwoColumnVideo) on www.nfpa.org without headless browser rendering, never touching link.nfpa.org or robots-disallowed /en/ and /-/media/.","domains":["www.nfpa.org"],"exampleUrls":["https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70","https://www.nfpa.org/for-professionals/codes-and-standards/list-of-codes-and-standards/free-access"],"htmlRoutes":[{"id":"nfpa","mode":"sitecore_jss_html","match":{"exactSegments":false,"reservedFirstSegment":["-","ar","en","data","standard_items"]}}]},{"id":"nhl-api","name":"NHL Web API","category":"commerce-social","description":"Extracts public NHL standings, schedule, club stats, and gamecenter landing JSON from api-web.nhle.com with nhl.com HTML/JSON-LD fallback.","domains":["api-web.nhle.com","nhl.com","www.nhl.com"],"auth_mode":"pub","exampleUrls":["https://api-web.nhle.com/v1/standings/now","https://api-web.nhle.com/v1/schedule/now","https://api-web.nhle.com/v1/club-stats/TOR/now","https://api-web.nhle.com/v1/gamecenter/2024020001/landing"],"routes":[{"match":{"hosts":["api-web.nhle.com"],"anyOf":[{"pathPrefix":"/v1/standings"},{"pathPrefix":"/v1/schedule"},{"pathPrefix":"/v1/club-stats/"},{"pathPrefix":"/v1/gamecenter/"},{"pathPrefix":"/v1/player/"},{"pathPrefix":"/v1/roster/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nhl_api_json"}}],"htmlRoutes":[{"id":"nhl-api","mode":"nhl_api_html","match":{"hosts":["nhl.com","www.nhl.com"],"exactSegments":false}}]},{"id":"nhtsa-vpic-recalls","name":"NHTSA vPIC & Safety Recalls API","category":"public-records","description":"Formats keyless vpic.nhtsa.dot.gov VIN decode and api.nhtsa.gov vehicle recalls & complaints JSON endpoints into structured Markdown tables (respecting HTTP 403/robots.txt without bypass).","domains":["vpic.nhtsa.dot.gov","api.nhtsa.gov"],"exampleUrls":["https://vpic.nhtsa.dot.gov/api/vehicles/decodevinvalues/1HGCM82633A004352?format=json","https://api.nhtsa.gov/recalls/recallsByVehicle?make=honda&model=accord&modelYear=2020"],"routes":[{"match":{"hosts":["vpic.nhtsa.dot.gov"],"exactSegments":true,"pathSegments":["api","vehicles",{"param":"endpoint","allowValues":["decodevinvalues","decodevinvaluesextended"]},{"param":"vin","charset":"alnum","minLen":3,"maxLen":32}]},"twin":{"fetchUrl":"https://vpic.nhtsa.dot.gov/api/vehicles/{endpoint}/{vin}?format=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["Results","Message"],"vars":{"vinOut":{"paths":["Results.0.VIN"],"fallbackTemplate":"{vin}"},"make":{"paths":["Results.0.Make"],"trim":true},"model":{"paths":["Results.0.Model"],"trim":true},"modelYear":{"paths":["Results.0.ModelYear"],"trim":true},"vehicleType":{"paths":["Results.0.VehicleType"],"trim":true},"bodyClass":{"paths":["Results.0.BodyClass"],"trim":true},"plantCountry":{"paths":["Results.0.PlantCountry"],"trim":true},"engineCylinders":{"paths":["Results.0.EngineCylinders"],"trim":true},"displacementL":{"paths":["Results.0.DisplacementL"],"trim":true},"fuelType":{"paths":["Results.0.FuelTypePrimary"],"trim":true},"errorCode":{"paths":["Results.0.ErrorCode"],"trim":true},"errorText":{"paths":["Results.0.ErrorText"],"trim":true},"message":{"paths":["Message"],"trim":true}},"titleTemplate":"{modelYear} {make} {model} — VIN {vinOut}","titleWhenVar":"make","titleFallbackTemplate":"NHTSA vPIC VIN Decode ({vinOut})","bullets":[{"label":"VIN","template":"`{vinOut}`"},{"label":"Make","template":"{make}","whenVar":"make"},{"label":"Model","template":"{model}","whenVar":"model"},{"label":"Model Year","template":"{modelYear}","whenVar":"modelYear"},{"label":"Vehicle Type","template":"{vehicleType}","whenVar":"vehicleType"},{"label":"Body Class","template":"{bodyClass}","whenVar":"bodyClass"},{"label":"Plant Country","template":"{plantCountry}","whenVar":"plantCountry"},{"label":"Engine Cylinders","template":"{engineCylinders}","whenVar":"engineCylinders"},{"label":"Displacement (L)","template":"{displacementL}","whenVar":"displacementL"},{"label":"Fuel Type","template":"{fuelType}","whenVar":"fuelType"},{"label":"Error Code","template":"`{errorCode}`","whenVar":"errorCode"},{"label":"Error Text","template":"{errorText}","whenVar":"errorText"},{"label":"Message","template":"{message}","whenVar":"message"}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/recalls/recallsByVehicle","/recalls/recallsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["Count","count"],"format":"int_comma","default":"0"},"message":{"paths":["Message","message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Recalls ({count} found)","introVar":"message","sections":[{"heading":"Recalls","arrayPath":"results","limit":50,"emptyText":"No recalls found.","columns":[{"header":"Campaign","paths":["NHTSACampaignNumber"],"code":true},{"header":"Date","paths":["ReportReceivedDate"]},{"header":"Component","paths":["Component"]},{"header":"Summary","paths":["Summary"],"sliceMax":240},{"header":"Consequence","paths":["Consequence"],"sliceMax":240},{"header":"Remedy","paths":["Remedy"],"sliceMax":240}]}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/complaints/complaintsByVehicle","/complaints/complaintsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["count","Count"],"format":"int_comma","default":"0"},"message":{"paths":["message","Message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Complaints ({count} found)","introVar":"message","sections":[{"heading":"Complaints","arrayPath":"results","limit":50,"emptyText":"No complaints found.","columns":[{"header":"ODI Number","paths":["odiNumber"],"code":true},{"header":"Date","paths":["dateOfIncident"]},{"header":"Components","paths":["components"]},{"header":"Summary","paths":["summary"],"sliceMax":240},{"header":"Crash","paths":["crash"]},{"header":"Fire","paths":["fire"]}]}]}}]},{"id":"nist-nvd","name":"NIST National Vulnerability Database (NVD)","category":"developer","description":"Upgrades nvd.nist.gov CVE pages to the keyless NVD REST v2 JSON API with CVSS scores, CWEs, and vendor advisories.","domains":["nvd.nist.gov","www.nvd.nist.gov"],"exampleUrls":["https://nvd.nist.gov/vuln/detail/CVE-2024-3094"],"match":{"exactSegments":false,"pathSegments":["vuln","detail",{"param":"cveId","charset":"cve_id","transform":"upper"}]},"twin":{"fetchUrl":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId={cveId}","kind":"json","accept":"application/json"},"extract":{"rootPath":"vulnerabilities.0.cve","requireFields":["id"],"vars":{"id":{"paths":["id"]},"desc":{"findInArrayLang":{"arrayPath":"descriptions","langField":"lang","langValue":"en","valueField":"value"},"trim":true},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"baseScore":{"paths":["metrics.cvssMetricV40.0.cvssData.baseScore","metrics.cvssMetricV31.0.cvssData.baseScore","metrics.cvssMetricV30.0.cvssData.baseScore"]},"severity":{"paths":["metrics.cvssMetricV40.0.cvssData.baseSeverity","metrics.cvssMetricV40.0.baseSeverity","metrics.cvssMetricV31.0.cvssData.baseSeverity","metrics.cvssMetricV31.0.baseSeverity","metrics.cvssMetricV30.0.cvssData.baseSeverity","metrics.cvssMetricV30.0.baseSeverity"]},"vector":{"paths":["metrics.cvssMetricV40.0.cvssData.vectorString","metrics.cvssMetricV31.0.cvssData.vectorString","metrics.cvssMetricV30.0.cvssData.vectorString"]},"titleWithScore":{"template":"{id} ({severity} {baseScore})","whenVars":["severity","baseScore"]},"titleSevOnly":{"template":"{id} ({severity})","whenVars":["severity"]},"titleFull":{"template":"{titleWithScore}","whenVars":["titleWithScore"],"fallbackVar":"titleSevOnly"},"cvssScoreOnly":{"template":"**{baseScore}**","whenVars":["baseScore"]},"cvssScoreVec":{"template":"**{baseScore}** — `{vector}`","whenVars":["baseScore","vector"],"fallbackVar":"cvssScoreOnly"},"cvssScoreSev":{"template":"**{baseScore}** ({severity})","whenVars":["baseScore","severity"],"fallbackVar":"cvssScoreVec"},"cvssDisplay":{"template":"**{baseScore}** ({severity}) — `{vector}`","whenVars":["baseScore","severity","vector"],"fallbackVar":"cvssScoreSev"},"cwes":{"nestedSubValues":{"arrayPath":"weaknesses","subArrayField":"description","valueField":"value","excludeValues":["NVD-CWE-noinfo"],"join":", "}},"published":{"paths":["published"]},"publishedDate":{"paths":["published"],"sliceMax":10},"vulnStatus":{"paths":["vulnStatus"]},"cisaExploit":{"paths":["cisaExploitAdd"]}},"titleTemplate":"{titleFull}","titleWhenVar":"severity","titleFallbackTemplate":"{id}","descriptionVar":"descShort","publishedTimeVar":"published","bullets":[{"label":"CVSS Score","template":"{cvssDisplay}","whenVar":"cvssDisplay"},{"label":"Status","template":"{vulnStatus}","whenVar":"vulnStatus"},{"label":"Published","template":"{publishedDate}","whenVar":"publishedDate"},{"label":"Weaknesses (CWE)","template":"{cwes}","whenVar":"cwes"},{"label":"CISA KEV (Known Exploited)","template":"Added {cisaExploit}","whenVar":"cisaExploit"}],"sections":[{"heading":"Summary","textVar":"desc"},{"heading":"References & Advisories","arrayPath":"references","limit":15,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refTags":{"paths":["tags"],"join":", "}},"columns":[{"header":"URL","template":"{refUrl}"},{"header":"Tags","template":"{refTags}"}]}]}},{"id":"nlrb-cases","name":"National Labor Relations Board Cases & Dockets","category":"public-records","description":"Extracts NLRB unfair labor practice and representation case metadata, docket activity rows, and decision links from nlrb.gov.","domains":["www.nlrb.gov","nlrb.gov"],"auth_mode":"pub","exampleUrls":["https://www.nlrb.gov/case/13-CA-394913","https://www.nlrb.gov/cases-decisions/cases"],"htmlRoutes":[{"id":"nlrb-cases","match":{"exactSegments":false},"mode":"nlrb_cases_html"}]},{"id":"noaa-ncei-cdo","name":"NOAA NCEI Climate Data Online (CDO)","category":"research-health","description":"NOAA National Centers for Environmental Information CDO API v2 (token header) on www.ncei.noaa.gov with HTML fallback.","domains":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"auth_mode":"key","exampleUrls":["https://www.ncei.noaa.gov/cdo-web/api/v2/datasets?limit=2","https://www.ncei.noaa.gov/cdo-web/"],"routes":[{"match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov"],"pathPrefix":"/cdo-web/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"noaa_ncei_cdo_json"}}],"htmlRoutes":[{"id":"noaa-ncei-cdo","match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"exactSegments":false},"mode":"noaa_ncei_html"}]},{"id":"noaa-tides-currents","name":"NOAA Tides & Currents (CO-OPS)","category":"research-health","description":"NOAA Center for Operational Oceanographic Products and Services (CO-OPS) DataGetter and station metadata JSON APIs with stationhome HTML fallback.","domains":["tidesandcurrents.noaa.gov","api.tidesandcurrents.noaa.gov"],"auth_mode":"pub","exampleUrls":["https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=latest&station=8518750&product=water_level&datum=MLLW&time_zone=gmt&units=english&format=json","https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/8518750.json","https://tidesandcurrents.noaa.gov/stationhome.html?id=8518750"],"routes":[{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathEquals":["/api/prod/datagetter"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathPrefix":"/mdapi/prod/webapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["tidesandcurrents.noaa.gov"],"pathEquals":["/stationhome.html"],"queryParams":[{"name":"id","param":"stationId","charset":"digits","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/{stationId}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}}],"htmlRoutes":[{"id":"noaa-tides-currents","match":{"hosts":["tidesandcurrents.noaa.gov"],"exactSegments":false},"mode":"noaa_tides_html"}]},{"id":"notion-public-site","name":"Notion Public Sites","category":"developer","description":"Extracts public Notion site pages (*.notion.site and www.notion.so) via POST /api/v3/loadCachedPageChunk with fail-closed SSR HTML fallback.","domains":["www.notion.so"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://matt-mike.notion.site/Matt-Mike-Data-Analyst-Portfolio-201029b2366680969986e484d1aa4373"],"routes":[{"match":{"hostSubdomain":{"suffix":".notion.site","param":"siteSub"},"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}},{"match":{"hosts":["www.notion.so","notion.so"],"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}}],"htmlRoutes":[{"id":"notion-public-site","match":{"exactSegments":false},"mode":"notion_public_site_html"}]},{"id":"npm-registry","name":"npm Package Registry","category":"developer","description":"Upgrades npmjs.com package pages to registry.npmjs.org JSON metadata, TypeScript declarations, dependency list, and README.","domains":["npmjs.com","www.npmjs.com"],"exampleUrls":["https://www.npmjs.com/package/@cfworker/json-schema"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/@{scopeNoAt}%2F{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}},{"match":{"anyOf":[{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}}]},{"id":"nppes-npi","name":"NPPES NPI Registry","category":"research-health","description":"CMS National Plan and Provider Enumeration System (NPPES) NPI Registry v2.1 JSON API adapter with Angular SPA shell rejection.","domains":["npiregistry.cms.hhs.gov"],"auth_mode":"pub","exampleUrls":["https://npiregistry.cms.hhs.gov/api/?version=2.1&number=1003000126","https://npiregistry.cms.hhs.gov/provider-view/1003000126"],"routes":[{"match":{"pathEquals":["/api","/api/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"version":"2.1"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-view",{"param":"npi","charset":"digits","minLen":10,"maxLen":10}]},"twin":{"fetchUrl":"https://npiregistry.cms.hhs.gov/api/?version=2.1&number={npi}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}}],"htmlRoutes":[{"id":"nppes-npi","match":{"pathPrefix":"/provider-view/","exactSegments":false},"mode":"nppes_npi_html"}]},{"id":"npr-pbs","name":"NPR & PBS NewsHour","category":"commerce-social","description":"Extracts NPR/PBS RSS XML feeds, text.npr.org stories, and NPR/PBS article HTML.","domains":["www.npr.org","npr.org","text.npr.org","feeds.npr.org","www.pbs.org","pbs.org"],"auth_mode":"html","exampleUrls":["https://feeds.npr.org/1001/rss.xml","https://www.pbs.org/newshour/feeds/rss/headlines","https://www.pbs.org/newshour/nation"],"routes":[{"match":{"hosts":["feeds.npr.org"],"pathSuffix":".xml","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}},{"match":{"hosts":["www.pbs.org","pbs.org"],"pathPrefix":"/newshour/feeds/rss/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}}],"htmlRoutes":[{"id":"npr-pbs","match":{"exactSegments":false},"mode":"npr_pbs_html"}]},{"id":"nps","name":"National Park Service (NPS)","category":"public-records","description":"National Park Service developer.nps.gov v1 JSON API (via DATA_GOV_API_KEY) with www.nps.gov HTML fallback.","domains":["developer.nps.gov","www.nps.gov","nps.gov"],"auth_mode":"key","exampleUrls":["https://www.nps.gov/yell/index.htm","https://developer.nps.gov/api/v1/parks?parkCode=yell&limit=1"],"routes":[{"match":{"hosts":["developer.nps.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nps_json"}},{"match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":true,"pathSegments":[{"param":"parkCode","charset":"alnum","minLen":4,"maxLen":4,"reserved":["news","plan","maps","fees","find","jobs","kids","faqs","more","docs","help","info","blog","home","data","form","apps","page"],"transform":"lower"},"index.htm"]},"twin":{"fetchUrl":"https://developer.nps.gov/api/v1/parks?parkCode={parkCode}&limit=5","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nps_json"}}],"htmlRoutes":[{"id":"nps","match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":false},"mode":"nps_html"}]},{"id":"nuget-gallery","name":"NuGet Gallery","category":"developer","description":"Upgrades nuget.org/packages/[/] pages to the official api.nuget.org v3 registration JSON API (supporting both inlined catalogEntry pages and un-inlined CatalogPage stubs).","domains":["www.nuget.org","nuget.org"],"exampleUrls":["https://www.nuget.org/packages/Newtonsoft.Json","https://www.nuget.org/packages/Newtonsoft.Json/13.0.3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"},{"param":"ver","charset":"url_seg","reserved":["ReportAbuse","ContactOwners","versions"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}},{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}}]},{"id":"nyt-api","name":"New York Times API & News","category":"commerce-social","description":"Official NYT Developer API (Article Search, Top Stories, Most Popular) with NYT_API_KEY and NewsArticle HTML fallback.","domains":["api.nytimes.com","www.nytimes.com","nytimes.com"],"auth_mode":"key","exampleUrls":["https://api.nytimes.com/svc/topstories/v2/home.json","https://www.nytimes.com/"],"routes":[{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSegments":["svc","search","v2","articlesearch.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","topstories","v2",{"param":"section","charset":"slug","stripSuffix":".json","minLen":2,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","mostpopular","v2",{"param":"kind","allowValues":["emailed","shared","viewed"]},{"param":"period","charset":"digits","stripSuffix":".json","allowValues":["1","7","30"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}}],"htmlRoutes":[{"id":"nyt-api","match":{"hosts":["www.nytimes.com","nytimes.com"],"exactSegments":false},"mode":"nyt_html"}]},{"id":"ofac-sdn","name":"OFAC SDN Sanctions List & Actions","category":"public-records","description":"Bounded Range-streaming XML scanner for OFAC SDN.XML (<= 2 MiB) plus recent-actions and sanctions program HTML extraction on ofac.treasury.gov.","domains":["sanctionslistservice.ofac.treas.gov","ofac.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML","https://ofac.treasury.gov/recent-actions"],"routes":[{"match":{"hosts":["sanctionslistservice.ofac.treas.gov"],"exactSegments":true,"pathEquals":["/api/PublicationPreview/exports/SDN.XML","/api/PublicationPreview/exports/CONS_PRIM.XML","/api/PublicationPreview/exports/SDN_ENHANCED.XML"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"ofac_sdn_xml"}}],"htmlRoutes":[{"id":"ofac-sdn","match":{"hosts":["ofac.treasury.gov"],"exactSegments":false},"mode":"ofac_html"}]},{"id":"okendo","name":"Okendo Product Reviews","category":"commerce-social","description":"Extracts public Okendo product review and review aggregate JSON payloads without preempting storefront HTML extractors.","domains":["api.okendo.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.okendo.io/v1/stores/892ce72b-10d2-4dd3-a7ab-e2dfdee9d001/products/shopify-6861943013449/reviews?limit=10"],"routes":[{"match":{"anyOf":[{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},{"param":"endpoint","allowValues":["reviews","review_aggregate"]}]},{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"reviews"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"okendo_reviews"}}],"htmlRoutes":[{"id":"okendo","match":{"exactSegments":false},"mode":"okendo_html"}]},{"id":"openalex","name":"OpenAlex Scholarly Works","category":"research-health","description":"Upgrades openalex.org work URLs to api.openalex.org JSON with reconstructed abstracts, citations, open-access PDF links, and topics.","domains":["openalex.org","www.openalex.org","api.openalex.org"],"exampleUrls":["https://openalex.org/W2741809807","https://openalex.org/works/W2741809807"],"match":{"anyOf":[{"exactSegments":false,"pathSegments":["works",{"param":"workId","charset":"openalex_work","transform":"upper"}]},{"exactSegments":false,"pathSegments":[{"param":"workId","charset":"openalex_work","transform":"upper"}]}]},"twin":{"fetchUrl":"https://api.openalex.org/works/{workId}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["display_name","title"],"requireVars":["title"],"vars":{"title":{"paths":["display_name","title"],"trim":true},"pubDate":{"paths":["publication_date"]},"citedBy":{"paths":["cited_by_count"],"format":"int_comma"},"doi":{"paths":["doi"]},"oaUrl":{"paths":["open_access.oa_url"],"requireHttps":true},"authors":{"paths":["authorships"],"subField":"author.display_name","limit":15,"join":", "},"authorsShort":{"paths":["authorships"],"subField":"author.display_name","limit":4,"join":", "},"abstract":{"paths":["abstract_inverted_index"],"format":"inverted_abstract"},"abstractShort":{"paths":["abstract_inverted_index"],"format":"inverted_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"OpenAlex ID","template":"`{workId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Citations","template":"{citedBy}","whenVar":"citedBy"},{"label":"DOI","template":"{doi}","whenVar":"doi"},{"label":"Open Access PDF","template":"{oaUrl}","whenVar":"oaUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["doi","oaUrl"]}},{"id":"opencorporates","name":"OpenCorporates Company Registry","category":"public-records","description":"Upgrades opencorporates.com company pages to key-authenticated OpenCorporates API v0.4 JSON with clean public HTML attributes fallback when unconfigured.","domains":["opencorporates.com","www.opencorporates.com","api.opencorporates.com"],"auth_mode":"key","exampleUrls":["https://opencorporates.com/companies/us_de/3857729","https://api.opencorporates.com/v0.4/companies/us_de/3857729"],"routes":[{"match":{"hosts":["opencorporates.com","www.opencorporates.com"],"exactSegments":false,"pathSegments":["companies",{"param":"jurisdiction","charset":"alnum_dash","minLen":2,"maxLen":16},{"param":"companyNumber","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.opencorporates.com/v0.4/companies/{jurisdiction}/{companyNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}},{"match":{"hosts":["api.opencorporates.com"],"pathPrefix":"/v0.4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}}],"htmlRoutes":[{"id":"opencorporates","match":{"hosts":["opencorporates.com","www.opencorporates.com"],"pathPrefix":"/companies/","exactSegments":false},"mode":"opencorporates_html"}]},{"id":"opendatasoft","name":"Opendatasoft Open Data Portals (Explore API v2.1)","category":"public-records","description":"Universal Opendatasoft adapter: /explore/dataset// pages and /api/explore/v2.1/catalog/datasets(/) upgrade to dataset metadata (publisher, license, record count, field schema, records/CSV API links); /records URLs render rows as a table while enforcing strict robots.txt compliance.","domains":["public.opendatasoft.com","*.opendatasoft.com","data.townofcary.org","data.jerseycitynj.gov"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://public.opendatasoft.com/explore/dataset/us-state-boundaries/","https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/us-state-boundaries/records?limit=3&select=name,stusab,region,division","https://data.townofcary.org/api/explore/v2.1/catalog/datasets?limit=3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160},"records"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_records_json"}},{"match":{"pathEquals":["/api/explore/v2.1/catalog/datasets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":false,"pathSegments":["explore","dataset",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}}]},{"id":"openfda","name":"openFDA Recalls, Labels & Adverse Events API","category":"research-health","description":"Formats keyless api.fda.gov JSON endpoints (drug/food/device enforcement recalls, drug labels, and adverse events) into clean Markdown tables.","domains":["api.fda.gov"],"exampleUrls":["https://api.fda.gov/food/enforcement.json?limit=5"],"match":{"pathSuffix":".json","pathSegments":[{"param":"endpointLabel","charset":"safe_subpath","greedy":true,"stripSuffix":".json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["results"],"vars":{"resultsCount":{"paths":["results"],"format":"array_len"},"total":{"paths":["meta.results.total"],"format":"int_comma","fallbackTemplate":"{resultsCount}"},"isRecall":{"paths":["results.0.recall_number","results.0.reason_for_recall"]}},"titleTemplate":"openFDA {endpointLabel} ({resultsCount} of {total} records)","sections":[{"heading":"","whenVar":"isRecall","arrayPath":"results","limit":25,"columns":[{"header":"Recall #","paths":["recall_number"],"code":true},{"header":"Class","paths":["classification"]},{"header":"Status","paths":["status"]},{"header":"Firm","paths":["recalling_firm"]},{"header":"Reason","paths":["reason_for_recall"]}]},{"heading":"","unlessVar":"isRecall","subsectionsArrayPath":"results","limit":10,"subsectionHeadingTemplate":"{recHeading}","subsectionSubkeys":["indications_and_usage","warnings","boxed_warning","dosage_and_administration","adverse_reactions"],"itemVars":{"brand":{"paths":["openfda.brand_name.0"]},"generic":{"paths":["openfda.generic_name.0"]},"genericParens":{"template":"({generic})","whenVars":["generic"]},"brandAndGeneric":{"template":"{brand} {genericParens}","whenVars":["brand","genericParens"],"fallbackVar":"brand"},"brandOrGeneric":{"template":"{brandAndGeneric}","whenVars":["brandAndGeneric"],"fallbackVar":"genericParens"},"recFallback":{"template":"Record #{index1}"},"recHeading":{"template":"{brandOrGeneric}","whenVars":["brandOrGeneric"],"fallbackVar":"recFallback"}}}]}},{"id":"openfoodfacts","name":"Open Food Facts Products","category":"commerce-social","description":"Extracts barcode, brand, Nutri-Score, NOVA group, ingredients, and nutrition facts from world.openfoodfacts.org/product/ (respecting robots.txt on /api).","domains":["world.openfoodfacts.org","openfoodfacts.org","*.openfoodfacts.org"],"exampleUrls":["https://world.openfoodfacts.org/product/3017620422003"],"htmlRoutes":[{"id":"openfoodfacts","match":{"exactSegments":false,"pathSegments":["product",{"param":"barcode","charset":"digits","minLen":6,"maxLen":16}]},"mode":"dom","jsonLdTypes":["Product"],"requireVars":["title"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"cssText":["h1"]},"brand":{"jsonLdPaths":["brand.name","brand"]},"nutriscore":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"Nutri-Score\\s*([A-E])\\b","group":1,"transform":"upper"}},"nova":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"NOVA\\s*([1-4])\\b","group":1}},"ingredientsLd":{"jsonLdPaths":["description"]},"ingredients":{"cssText":["#panel_ingredients_content"],"fallbackVar":"ingredientsLd"},"descShort":{"fallbackVar":"ingredients","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Barcode (GTIN)","template":"`{barcode}`"},{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"Nutri-Score","template":"**{nutriscore}**","whenVar":"nutriscore"},{"label":"NOVA Food Processing Group","template":"{nova}","whenVar":"nova"}],"sections":[{"heading":"Ingredients & Summary","textVar":"ingredients"}],"appendCurrentMdDelta":{"baseVar":"ingredients","minExtraChars":120}}]},{"id":"opengov-portals","name":"OpenGov Transparency & Procurement Portals","category":"public-records","description":"Extracts fiscal transparency datasets, window.gon/Zeus hydration, and public API data from OpenGov portals while classifying Cloudflare challenges honestly.","domains":["*.opengov.com"],"auth_mode":"pub","exampleUrls":["https://torranceca.opengov.com/api/v1/reports","https://torranceca.opengov.com/transparency","https://sanbernardinoca.opengov.com/transparency"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v1/"},{"pathPrefix":"/api/v2/"},{"pathPrefix":"/transparency/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opengov_json"}}],"htmlRoutes":[{"id":"opengov-portals","match":{"exactSegments":false},"mode":"opengov_html"}]},{"id":"openrouter","name":"OpenRouter AI Model Catalog","category":"genai","description":"Upgrades OpenRouter model pages to keyless /api/v1/models specs (context window, token pricing, modalities, and tool support).","domains":["openrouter.ai"],"exampleUrls":["https://openrouter.ai/anthropic/claude-sonnet-5.5","https://openrouter.ai/models/qwen/qwen4-max"],"match":{"anyOf":[{"exactSegments":true,"pathSegments":["models",{"param":"org","charset":"pkg"},{"param":"slug","charset":"model_slug"}]},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["docs","rankings","chat","activity","settings","keys","credits","privacy","terms","about","blog","pricing","providers"]},{"param":"slug","charset":"model_slug"}]}]},"twin":{"fetchUrl":"https://openrouter.ai/api/v1/models","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{org}/{slug}","ignoreCase":true},"vars":{"id":{"paths":["id"]},"name":{"paths":["name"],"fallbackTemplate":"{org}/{slug}","trim":true},"ctxLen":{"paths":["context_length"],"format":"int_comma"},"maxOut":{"paths":["top_provider.max_completion_tokens"],"format":"int_comma"},"promptPrice":{"paths":["pricing.prompt"],"format":"usd_per_million_tokens"},"compPrice":{"paths":["pricing.completion"],"format":"usd_per_million_tokens"},"modality":{"paths":["architecture.modality"]},"params":{"paths":["supported_parameters"],"join":"`, `","limit":14},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"Model ID","template":"`{id}`"},{"label":"Context Window","template":"{ctxLen} tokens","whenVar":"ctxLen"},{"label":"Max Output","template":"{maxOut} tokens","whenVar":"maxOut"},{"label":"Input Pricing","template":"{promptPrice}","whenVar":"promptPrice"},{"label":"Output Pricing","template":"{compPrice}","whenVar":"compPrice"},{"label":"Modality","template":"`{modality}`","whenVar":"modality"},{"label":"Supported Parameters","template":"`{params}`","whenVar":"params"}],"sections":[{"heading":"Description","textVar":"desc"}]}},{"id":"openstreetmap","name":"OpenStreetMap (Nominatim & Overpass)","category":"public-records","description":"OpenStreetMap Nominatim geocoding and Overpass API JSON adapter enforcing strict 1 req/s pacing, identifying User-Agent, and strict robots.txt politeness.","domains":["www.openstreetmap.org","openstreetmap.org","nominatim.openstreetmap.org","overpass-api.de"],"auth_mode":"pub","user_agent_profile":"openstreetmap","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.openstreetmap.org/about","https://www.openstreetmap.org/copyright"],"routes":[{"match":{"hosts":["nominatim.openstreetmap.org"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/reverse"},{"pathPrefix":"/lookup"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"jsonv2"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"openstreetmap_json"}},{"match":{"hosts":["overpass-api.de"],"pathPrefix":"/api/interpreter"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openstreetmap_json"}}],"htmlRoutes":[{"id":"openstreetmap","match":{"hosts":["www.openstreetmap.org","openstreetmap.org"],"exactSegments":false},"mode":"openstreetmap_html"}]},{"id":"oracle-commerce","name":"Oracle Commerce Cloud (ccstore)","category":"commerce-social","description":"Extracts Oracle Commerce Cloud /ccstore/v1 and /ccstoreui/v1 product and search JSON endpoints plus storefront HTML/companion twins.","domains":["www.dollartree.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.dollartree.com/ccstore/v1/products/805937","https://www.dollartree.com/ccstore/v1/search?Ntt=bag"],"routes":[{"match":{"pathSegments":["ccstore","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathSegments":["ccstoreui","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathEquals":["/ccstore/v1/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}}],"htmlRoutes":[{"id":"oracle-commerce","match":{"exactSegments":false},"mode":"oracle_commerce_html"}]},{"id":"os-package-pack","name":"OS Package Pack (Flathub, Snapcraft, AUR, Winget, Chocolatey)","category":"developer","description":"Extracts OS package metadata and newest stable versions from Flathub, Snapcraft (Snap-Device-Series: 16), Arch AUR RPC v5, Winget, and Chocolatey.","domains":["flathub.org","snapcraft.io","api.snapcraft.io","aur.archlinux.org","winget.run","api.winget.run","community.chocolatey.org"],"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://flathub.org/apps/org.mozilla.firefox","https://snapcraft.io/firefox","https://aur.archlinux.org/packages/yay","https://winget.run/pkg/Microsoft/PowerToys"],"routes":[{"match":{"hosts":["flathub.org"],"pathPrefix":"/api/v2/appstream/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["flathub.org"],"exactSegments":false,"pathSegments":["apps",{"param":"appId","charset":"pkg","minLen":3,"maxLen":160}]},"twin":{"fetchUrl":"https://flathub.org/api/v2/appstream/{appId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["api.snapcraft.io"],"pathPrefix":"/v2/snaps/info/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://api.snapcraft.io/v2/snaps/info/{snap}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["aur.archlinux.org"],"pathPrefix":"/rpc/v5/info"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["aur.archlinux.org"],"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://aur.archlinux.org/rpc/v5/info?arg[]={pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["api.winget.run"],"pathPrefix":"/v2/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["winget.run"],"exactSegments":false,"pathSegments":["pkg",{"param":"publisher","charset":"pkg","minLen":1,"maxLen":120},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.winget.run/v2/packages/{publisher}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/api/v2/Packages"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"chocolatey_xml"}}],"htmlRoutes":[{"id":"os-package-pack","match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"mode":"snapcraft_html"},{"id":"os-package-pack","match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/packages/","exactSegments":false},"mode":"chocolatey_html"}]},{"id":"osha-establishment","name":"OSHA Establishment Inspections & Injury Data","category":"public-records","description":"Extracts OSHA IMIS/ORDS establishment inspection records and ITA injury/illness data pages from osha.gov while honoring robots.txt and detecting CloudFront 403 blocks.","domains":["www.osha.gov","osha.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1500,"exampleUrls":["https://www.osha.gov/pls/imis/establishment.html","https://www.osha.gov/Establishment-Specific-Injury-and-Illness-Data"],"htmlRoutes":[{"id":"osha-establishment","match":{"exactSegments":false},"mode":"osha_establishment_html"}]},{"id":"osv-ghsa","name":"OSV & GitHub Security Advisories","category":"developer","description":"Upgrades osv.dev/vulnerability/ and github.com/advisories/GHSA-* pages to the keyless api.osv.dev/v1/vulns JSON API with canonical lowercase GHSA IDs and bounded affected-version slices.","domains":["osv.dev","www.osv.dev","github.com"],"exampleUrls":["https://osv.dev/vulnerability/GHSA-jfh8-c2jp-5v3q","https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"],"routes":[{"match":{"hosts":["osv.dev","www.osv.dev"],"exactSegments":false,"pathSegments":["vulnerability",{"param":"vulnId","charset":"url_seg","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/{vulnId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (OSV Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl"]}},{"match":{"hosts":["github.com"],"exactSegments":true,"pathPrefix":"/advisories/GHSA-","pathSegments":["advisories",{"param":"ghsaBody","stripPrefix":"GHSA-","charset":"alnum_dash","minLen":14,"maxLen":14,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/GHSA-{ghsaBody}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"ghsaUrl":{"template":"https://github.com/advisories/GHSA-{ghsaBody}","requireHttps":true},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (GitHub Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl","ghsaUrl"]}}]},{"id":"outdoor-retail-specs","name":"Outdoor & Cycling Retail Spec Extractor","category":"commerce-social","description":"Strictly rate-limited and robots-enforced HTML adapter for REI, Backcountry, and Competitive Cyclist product pages and technical specification tables.","domains":["rei.com","www.rei.com","backcountry.com","www.backcountry.com","competitivecyclist.com","www.competitivecyclist.com"],"auth_mode":"html","min_interval_ms":5000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.rei.com/product/230456/co-op-cycles-adv-22-bike","https://www.backcountry.com/santa-cruz-bicycles-hightower-c-s-mountain-bike","https://www.competitivecyclist.com/cervelo-caledonia-105-road-bike"],"htmlRoutes":[{"id":"outdoor-retail-specs","match":{"exactSegments":false},"mode":"outdoor_retail_specs_html"}]},{"id":"oversight-gov","name":"Oversight.gov Inspector General Reports","category":"public-records","description":"Extracts Council of the Inspectors General on Integrity and Efficiency (CIGIE) Inspector General reports and metadata from oversight.gov while rejecting Azure App Gateway 406 shells.","domains":["www.oversight.gov","oversight.gov"],"auth_mode":"pub","exampleUrls":["https://www.oversight.gov/reports"],"htmlRoutes":[{"id":"oversight-gov","match":{"exactSegments":false},"mode":"oversight_gov_html"}]},{"id":"pacer-case-locator","name":"PACER Case Locator","category":"public-records","description":"Extracts public PACER informational and case-finder pages on pacer.uscourts.gov while honestly classifying login-gated portals (pcl.uscourts.gov, pacer.login.uscourts.gov) as login_wall.","domains":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"],"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://pacer.uscourts.gov/find-case","https://pacer.uscourts.gov/","https://pcl.uscourts.gov/pcl/index.jsf"],"htmlRoutes":[{"id":"pacer-case-locator","match":{"hosts":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"]},"mode":"pacer_case_locator_html"}]},{"id":"packagist","name":"Packagist PHP Composer Registry","category":"developer","description":"Upgrades packagist.org PHP Composer package pages to their official .json metadata feed.","domains":["packagist.org","www.packagist.org"],"exampleUrls":["https://packagist.org/packages/monolog/monolog"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"vendor","charset":"pkg"},{"param":"pkg","charset":"pkg"}]},"twin":{"fetchUrl":"https://packagist.org/packages/{vendor}/{pkg}.json","kind":"json","accept":"application/json"},"extract":{"rootPath":"package","requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"repo":{"paths":["repository"]},"stableVer":{"paths":["versions"],"firstNonMatchingKey":"dev"},"license":{"dynamicKeyPath":{"base":"versions","keyVar":"stableVer","subPath":"license"},"join":", "}},"titleTemplate":"{name} {stableVer} (Composer)","titleWhenVar":"stableVer","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`composer require {name}`"},{"label":"Latest Version","template":"`{stableVer}`","whenVar":"stableVer"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"paradox-olivia","name":"Paradox Olivia Career Sites","category":"jobs","description":"Extracts JobPosting JSON-LD and __NEXT_DATA__ hydration job listings from Paradox Olivia career sites (*.paradox.ai, jobs.mchire.com, and custom brand portals via universalEngine).","domains":["*.paradox.ai","jobs.mchire.com","www.mchire.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.fedex.com/account-manager-ii/job/P25-397759-1","https://jobs.mchire.com/jobs"],"htmlRoutes":[{"id":"paradox-olivia","mode":"paradox_olivia_html","match":{"exactSegments":false}}]},{"id":"peertube","name":"PeerTube Federated Video Platform (Universal Engine)","category":"commerce-social","description":"Upgrades PeerTube video permalinks (/w/{videoId} and /videos/watch/{videoId}) and /api/v1/videos/* endpoints via JSON API with VideoObject HTML fallback.","domains":["video.blender.org","tilvids.com","framatube.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6","https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6","https://tilvids.com/api/v1/videos/6PsLUGoGiV9isoaHmht6Eu"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64},"captions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["w",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["videos","watch",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}}],"htmlRoutes":[{"id":"peertube","match":{"exactSegments":false},"mode":"peertube_html"}]},{"id":"pinpoint","name":"Pinpoint ATS Job Boards","category":"jobs","description":"Upgrades .pinpointhq.com career portals to /postings.json with compensation, responsibilities, and workplace types.","domains":["*.pinpointhq.com"],"exampleUrls":["https://workwithus.pinpointhq.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["postings",{"param":"postId","charset":"pkg"}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{postId}","endsWithField":"url","endsWithTemplate":"{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name"],"trim":true},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin} – {compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"compMaxOnly":{"template":"{cur} – {compMax}","whenVars":["compMax"]},"compSub":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly"},"comp":{"template":"{compSub}","whenVars":["compSub"],"fallbackVar":"compMaxOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"resp":{"paths":["key_responsibilities"],"format":"html_to_md"},"skills":{"paths":["skills_knowledge_expertise"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Compensation","template":"{comp}","whenVar":"comp"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Key Responsibilities","textVar":"resp"},{"heading":"Skills & Expertise","textVar":"skills"},{"heading":"Benefits","textVar":"benefits"}],"fallbackExtract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}},{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs","postings"],"optional":true}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}]},{"id":"pkg-go-dev","name":"Go Packages (pkg.go.dev)","category":"developer","description":"Extracts Go module README and API documentation sections cleanly from pkg.go.dev.","domains":["pkg.go.dev"],"exampleUrls":["https://pkg.go.dev/github.com/coder/websocket"],"htmlRoutes":[{"match":{"minSegments":1},"mode":"dom","vars":{"title":{"cssText":["title"],"stripSuffix":"- Go Packages"},"readme":{"cssHtmlToMd":["div.UnitReadme-content"]},"docs":{"cssHtmlToMd":["div.Documentation-content"],"replaceAll":{"from":"¶","to":""}}},"requireBulletsOrVars":["readme","docs"],"titleTemplate":"{title}","sections":[{"heading":"Overview / README","textVar":"readme"},{"heading":"Documentation","textVar":"docs"}]}]},{"id":"pm-listing-widgets","name":"Property Management Listing Widgets (Buildium / Propertyware / RentManager)","category":"commerce-social","description":"Extracts public rental unit listings, rent pricing, bed/bath counts, and detail links from Buildium (managebuilding.com), Propertyware, and RentManager portals.","domains":["*.managebuilding.com","*.propertyware.com","*.rentmanager.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://portland.managebuilding.com/Resident/public/rentals","https://hannibalrentals.managebuilding.com/Resident/public/rentals"],"htmlRoutes":[{"id":"pm-listing-widgets","match":{"exactSegments":false},"mode":"pm_listing_widgets_html"}]},{"id":"podcasts-apple-lookup","name":"Apple Podcasts & iTunes Lookup","category":"commerce-social","description":"Extracts iTunes Lookup JSON for podcast metadata and Apple Podcasts HTML schema:show + serialized-server-data without cross-domain twins.","domains":["podcasts.apple.com","itunes.apple.com"],"auth_mode":"pub","exampleUrls":["https://itunes.apple.com/lookup?id=1200361736&entity=podcast","https://podcasts.apple.com/us/podcast/the-daily/id1200361736"],"routes":[{"match":{"hosts":["itunes.apple.com"],"pathEquals":["/lookup"],"queryParams":[{"name":"id","param":"itunesId","charset":"digits","minLen":3,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"apple_podcast_lookup_json"}}],"htmlRoutes":[{"id":"podcasts-apple-lookup","match":{"hosts":["podcasts.apple.com"],"exactSegments":false},"mode":"podcasts_apple_html"}]},{"id":"polymarket","name":"Polymarket Prediction Markets","category":"finance","description":"Upgrades polymarket.com/event/ pages to gamma-api.polymarket.com JSON with live outcome probabilities, volume, and liquidity.","domains":["polymarket.com","www.polymarket.com"],"exampleUrls":["https://polymarket.com/event/fed-decision-in-december"],"match":{"exactSegments":false,"pathSegments":["event",{"param":"slug","charset":"alnum_dash","minLen":2,"maxLen":140}]},"twin":{"fetchUrl":"https://gamma-api.polymarket.com/events?slug={slug}","kind":"json","accept":"application/json"},"extract":{"unwrapFirstArrayElement":true,"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"vol":{"paths":["volume"],"format":"usd_compact"},"liq":{"paths":["liquidity"],"format":"usd_compact"},"endDate":{"paths":["endDate"],"sliceMax":10},"status":{"paths":["closed"],"format":"bool_map","trueValue":"Closed / Resolved","falseValue":"Active"}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Status","template":"{status}"},{"label":"Total Volume","template":"{vol}","whenVar":"vol"},{"label":"Liquidity","template":"{liq}","whenVar":"liq"},{"label":"End Date","template":"{endDate}","whenVar":"endDate"}],"sections":[{"heading":"Market Odds","arrayPath":"markets","limit":25,"columns":[{"header":"Market / Outcome","paths":["groupItemTitle","question"],"fallbackVar":"title"},{"header":"Implied Probability","format":"paired_percent","outcomesField":"outcomes","pricesField":"outcomePrices","defaultOutcomes":["Yes","No"]},{"header":"Volume","paths":["volume"],"format":"usd_compact"}]},{"heading":"Resolution Rules","textVar":"desc"}]}},{"id":"popmenu","name":"Popmenu Restaurant Menus","category":"commerce-social","description":"Extracts restaurant menu sections, dishes, descriptions, and prices from Popmenu DOM, Apollo state, and Menu JSON-LD while rejecting Cloudflare challenge interstitials.","domains":["popmenu.com","www.popmenu.com","*.popmenu.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.popmenu.com/"],"htmlRoutes":[{"id":"popmenu","match":{"exactSegments":false},"mode":"popmenu_html"}]},{"id":"powerreviews","name":"PowerReviews Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for PowerReviews Read API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["readservices-b2c.powerreviews.com","www.skechers.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://readservices-b2c.powerreviews.com/m/8162/l/en_US/product/177197/reviews?apikey=412df53d-8be4-4d9e-8657-e8c846f08b1d"],"routes":[{"match":{"hosts":["readservices-b2c.powerreviews.com"],"pathSegments":["m",{"param":"merchantId","charset":"alnum_dash","minLen":1,"maxLen":40},"l",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":24},"product",{"param":"pageId","charset":"pkg","minLen":1,"maxLen":120},"reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"powerreviews_reviews"}}],"htmlRoutes":[{"id":"powerreviews","match":{"exactSegments":false},"mode":"powerreviews_html"}]},{"id":"prestashop","name":"PrestaShop Storefronts","category":"commerce-social","description":"Extracts PrestaShop storefront JSON-LD, data-product attributes, features tables, and ?action=quickview AJAX JSON payloads.","domains":["www.esprit-barbecue.fr"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.esprit-barbecue.fr/barbecues/3364-master-touch-gbs-premium-e-5770-noir-weber-0077924129551.html"],"routes":[{"match":{"anyOf":[{"hosts":["www.esprit-barbecue.fr"],"queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"}]},{"pathSuffix":".html","queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"},{"name":"ajax","param":"ajax","allowValues":["1"],"charset":"digits"}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"prestashop_quickview"}}],"htmlRoutes":[{"id":"prestashop","match":{"exactSegments":false},"mode":"prestashop_html"}]},{"id":"primegov","name":"Rock Solid / Granicus PrimeGov Portals","category":"public-records","description":"Extracts upcoming municipal meetings and agendas from PrimeGov PublicPortal API and HTML views while strictly honoring robots.txt.","domains":["*.primegov.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://okc.primegov.com/api/v2/PublicPortal/ListUpcomingMeetings","https://okc.primegov.com/public/portal"],"routes":[{"match":{"pathPrefix":"/api/v2/PublicPortal/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}},{"match":{"pathEquals":["/public/portal","/public/portal/"]},"twin":{"fetchUrl":"https://{host}/api/v2/PublicPortal/ListUpcomingMeetings","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}}],"htmlRoutes":[{"id":"primegov","match":{"exactSegments":false},"mode":"primegov_html"}]},{"id":"product-feed-discovery","name":"Storefront Product Feed Discovery","category":"commerce-social","description":"Universal XML/Atom/RSS parser for storefront product discovery endpoints (/products.atom, /feed/, and /sitemap_products_*.xml).","domains":["www.gymshark.com","henryrose.com","janji.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.gymshark.com/sitemap_products_1.xml","https://henryrose.com/sitemap_products_1.xml?from=1645692747866&to=15498254843994","https://janji.com/sitemap_products_1.xml?from=310052787&to=15293477683563"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/products.atom","/feed","/feed/"]},{"pathPrefix":"/sitemap_products_","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":4194304},"extract":{"textMode":"product_feed_discovery_xml"}}]},{"id":"propublica-nonprofits","name":"ProPublica Nonprofit Explorer","category":"public-records","description":"Upgrades ProPublica Nonprofit Explorer organization pages to keyless Form 990 JSON API v2 with HTML fallback.","domains":["projects.propublica.org"],"auth_mode":"pub","exampleUrls":["https://projects.propublica.org/nonprofits/organizations/521693387","https://projects.propublica.org/nonprofits/api/v2/organizations/521693387.json"],"routes":[{"match":{"hosts":["projects.propublica.org"],"exactSegments":false,"pathSegments":["nonprofits","organizations",{"param":"ein","charset":"digits","minLen":8,"maxLen":10}]},"twin":{"fetchUrl":"https://projects.propublica.org/nonprofits/api/v2/organizations/{ein}.json","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}},{"match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}}],"htmlRoutes":[{"id":"propublica-nonprofits","match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/","exactSegments":false},"mode":"propublica_nonprofit_html"}]},{"id":"pubchem","name":"PubChem Chemical Compounds (NCBI)","category":"research-health","description":"Upgrades pubchem.ncbi.nlm.nih.gov/compound/ to NCBI PUG-REST compound properties + pharmacological descriptions (with HTML JSON-LD fallback).","domains":["pubchem.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubchem.ncbi.nlm.nih.gov/compound/2244"],"routes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"cid","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{cid}/JSON/?heading=Names+and+Identifiers","kind":"json","accept":"application/json"},"extract":{"rootPath":"Record","requireFields":["RecordTitle"],"vars":{"cidVal":{"paths":["RecordNumber"],"fallbackTemplate":"{cid}"},"recTitle":{"paths":["RecordTitle"],"trim":true,"fallbackTemplate":"Compound {cidVal}"},"formula":{"format":"pubchem_toc","tocHeading":"Molecular Formula"},"iupac":{"format":"pubchem_toc","tocHeading":"IUPAC Name"},"inchiKey":{"format":"pubchem_toc","tocHeading":"InChIKey"},"canonicalSmiles":{"format":"pubchem_toc","tocHeading":"Canonical SMILES"},"smilesRaw":{"format":"pubchem_toc","tocHeading":"SMILES"},"smiles":{"template":"{smilesRaw}","whenVars":["smilesRaw"],"fallbackVar":"canonicalSmiles"},"cas":{"format":"pubchem_toc","tocHeading":"CAS"},"desc":{"format":"pubchem_toc","tocHeading":"Record Description"},"descShort":{"format":"pubchem_toc","tocHeading":"Record Description","sliceMax":260}},"titleTemplate":"{recTitle} (PubChem CID {cidVal})","descriptionVar":"descShort","bullets":[{"label":"PubChem CID","template":"`{cidVal}`"},{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"CAS Number","template":"`{cas}`","whenVar":"cas"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"linkTemplates":["https://pubchem.ncbi.nlm.nih.gov/compound/{cidVal}"]}}],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"slug","charset":"url_seg"}]},"mode":"dom","jsonLdTypes":["MolecularEntity","ChemicalSubstance"],"requireVars":["title"],"requireBulletsOrVars":["desc"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*\\|\\s*C\\d+.*?\\s*-\\s*PubChem$"},"formula":{"jsonLdPaths":["molecularFormula"]},"weightValObj":{"jsonLdPaths":["molecularWeight.value"]},"weightFromObj":{"template":"{weightValObj} g/mol","whenVars":["weightValObj"]},"weight":{"jsonLdPaths":["molecularWeight"],"fallbackVar":"weightFromObj"},"iupac":{"jsonLdPaths":["iupacName"]},"inchiKey":{"jsonLdPaths":["inChIKey"]},"smiles":{"jsonLdPaths":["smiles"],"limit":1},"desc":{"metaKeys":["description"]},"descShort":{"metaKeys":["description"],"sliceMax":260}},"titleTemplate":"{title} (PubChem)","descriptionVar":"descShort","bullets":[{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"Molecular Weight","template":"{weight}","whenVar":"weight"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"appendCurrentMdDelta":{"minExtraChars":200}}]},{"id":"public-bid-portals","name":"Public Procurement & Bid Portals (Bonfire, BidNet, Periscope)","category":"public-records","description":"Extracts public municipal solicitations and RFPs from BidNet Direct, Bonfire, and Periscope S2G while classifying login-gated bid details as login_wall.","domains":["*.bonfirehub.com","www.bidnetdirect.com","bidnetdirect.com","www.bidsync.com","app.periscopeholdings.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bidnetdirect.com/colorado/cityandcountyofdenverdoti/solicitations/open-bids?selectedContent=BUYER","https://www.bidnetdirect.com/colorado/solicitations/open-bids/W-38th-Ave-Multimodal-Improvements-Design-Services/0000443656?purchasingGroupId=8409951&origin=2"],"htmlRoutes":[{"id":"public-bid-portals","match":{"exactSegments":false},"mode":"public_bid_html"}]},{"id":"public-booking","name":"Public Booking (Calendly & Acuity Scheduling)","category":"commerce-social","description":"Extracts public Calendly event types via queryless /api/booking/profiles/{profile}/event_types (honoring Disallow: /*?*) and Calendly/Acuity HTML booking pages, rejecting unavailability_reason error-only payloads.","domains":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://calendly.com/api/booking/profiles/demo/event_types","https://calendly.com/demo","https://calendly.com/calendly-sales"],"routes":[{"match":{"hosts":["calendly.com","www.calendly.com"],"exactSegments":true,"pathSegments":[{"param":"profile","charset":"slug","minLen":2,"maxLen":80,"reserved":["app","api","d","s","login","signup","pricing","features","solutions","enterprise","integrations","resources","blog","about","careers","legal","privacy","terms","help","abuse_reports","error","404","not-found"]}]},"twin":{"fetchUrl":"https://calendly.com/api/booking/profiles/{profile}/event_types","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}},{"match":{"hosts":["calendly.com","www.calendly.com"],"pathPrefix":"/api/booking/profiles/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}}],"htmlRoutes":[{"id":"public-booking","mode":"booking_html","match":{"hosts":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"exactSegments":false}}]},{"id":"public-forms","name":"Public Forms (Typeform & Jotform)","category":"commerce-social","description":"Extracts public Typeform field definitions via api.typeform.com/forms/{formId} or window.rendererData HTML and Jotform forms via HTML field labels/configs, rejecting typeform-incorrectURL soft-404 redirects.","domains":["typeform.com","www.typeform.com","form.typeform.com","api.typeform.com","jotform.com","www.jotform.com","form.jotform.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://tfsales.typeform.com/to/PxcVKQGb","https://api.typeform.com/forms/PxcVKQGb","https://form.jotform.com/240912145384959"],"routes":[{"match":{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["www","api","admin","help","developer","login","auth"]},"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["typeform.com","www.typeform.com"],"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["api.typeform.com"],"exactSegments":true,"pathSegments":["forms",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}}],"htmlRoutes":[{"id":"public-forms","mode":"typeform_html","match":{"anyOf":[{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["api","admin","login","auth"]},"exactSegments":false},{"hosts":["typeform.com","www.typeform.com","form.typeform.com"],"exactSegments":false}]}},{"id":"public-forms","mode":"jotform_html","match":{"anyOf":[{"hosts":["jotform.com","www.jotform.com","form.jotform.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".jotform.com","param":"org","reserved":["api","www","form","login","auth"]},"exactSegments":false}]}}]},{"id":"public-job-feeds","name":"Public Open Job Feeds (WWR, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow & RemoteOK)","category":"jobs","description":"Formats robots.txt-allowed keyless public job feeds (We Work Remotely RSS, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow, and RemoteOK) into clean job tables.","domains":["weworkremotely.com","www.weworkremotely.com","himalayas.app","www.himalayas.app","www.workingnomads.com","workingnomads.com","www.themuse.com","themuse.com","jobicy.com","www.arbeitnow.com","arbeitnow.com","remoteok.com"],"exampleUrls":["https://weworkremotely.com/remote-jobs.rss","https://himalayas.app/jobs/api?limit=50","https://www.workingnomads.com/api/exposed_jobs/","https://www.themuse.com/api/public/jobs?page=1","https://jobicy.com/api/v2/remote-jobs?count=20","https://remoteok.com/api"],"routes":[{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathSuffix":".rss"},"twin":{"id":"weworkremotely-feed","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathEquals":["/remote-jobs","/remote-jobs/"]},"twin":{"id":"weworkremotely-feed","fetchUrl":"https://weworkremotely.com/remote-jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs/api"},"twin":{"id":"himalayas-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs"},"twin":{"id":"himalayas-feed","fetchUrl":"https://himalayas.app/jobs/api?limit=50","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathPrefix":"/api/exposed_jobs"},"twin":{"id":"workingnomads-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"workingnomads-feed","fetchUrl":"https://www.workingnomads.com/api/exposed_jobs/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.themuse.com","themuse.com"],"pathPrefix":"/api/public/jobs"},"twin":{"id":"themuse-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"resCount":{"paths":["results"],"format":"array_len"},"totalFmt":{"paths":["total"],"format":"int_comma","fallbackTemplate":"{resCount}"}},"requireVars":["resCount"],"titleTemplate":"The Muse Public Jobs ({resCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"results","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"co":{"paths":["company.name"],"trim":true,"default":"-"},"locs":{"paths":["locations"],"subField":"name","join":"; ","default":"-"},"lUrl":{"paths":["refs.landing_page"],"requireHttps":true},"pub":{"paths":["publication_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({lUrl})","whenVars":["lUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["lUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{co}"},{"header":"Locations","template":"{locs}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["jobicy.com"],"pathPrefix":"/api/v2/remote-jobs"},"twin":{"id":"jobicy-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"anyOf":[{"hosts":["jobicy.com"],"pathEquals":["/jobs-rss-feed","/jobs-rss-feed/"]},{"hosts":["jobicy.com"],"pathPrefix":"/remote-"}]},"twin":{"id":"jobicy-feed","fetchUrl":"https://jobicy.com/api/v2/remote-jobs?count=30","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathPrefix":"/api/job-board-api"},"twin":{"id":"arbeitnow-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"arbeitnow-feed","fetchUrl":"https://www.arbeitnow.com/api/job-board-api","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"anyOf":[{"hosts":["remoteok.com"],"pathSegments":[]},{"hosts":["remoteok.com"],"pathSegments":["api"]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs/","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]}]},"twin":{"id":"remoteok-feed","fetchUrl":"https://remoteok.com/api","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"RemoteOK Remote Jobs ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","filter":{"requireField":"position","tagFilterParam":{"param":"catTag","skipIfEquals":"dev","tagsField":"tags"}},"itemVars":{"pos":{"paths":["position"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"salMin":{"paths":["salary_min"],"excludeEquals":"0"},"salMax":{"paths":["salary_max"],"excludeEquals":"0"},"salRange":{"template":"${salMin}–${salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"${salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{pos}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"pos"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Salary","template":"{sal}"}]}]}}]},{"id":"public-share-links","name":"Public Share Links (Google Docs/Sheets, OneDrive, Dropbox, Box)","category":"commerce-social","description":"Extracts public Google Sheets via same-origin /gviz/tq?tqx=out:csv (avoiding 307 cross-domain /export redirects) and public Google Docs /pub, OneDrive /embed, Dropbox, and Box share links while strictly enforcing robots.txt.","domains":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/gviz/tq?tqx=out:csv","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/htmlview"],"routes":[{"match":{"hosts":["docs.google.com"],"anyOf":[{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]}]},{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},{"param":"view","allowValues":["edit","view","htmlview","preview","copy"]}]}]},"twin":{"fetchUrl":"https://docs.google.com/spreadsheets/d/{sheetId}/gviz/tq?tqx=out:csv","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}},{"match":{"hosts":["docs.google.com"],"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},"gviz","tq"],"queryParams":[{"name":"tqx","param":"tqx","charset":"url_seg","allowValues":["out:csv"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}}],"htmlRoutes":[{"id":"public-share-links","mode":"public_share_html","match":{"hosts":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"exactSegments":false}}]},{"id":"pubmed-pmc","name":"PubMed & PubMed Central (NCBI / Europe PMC)","category":"research-health","description":"Upgrades PubMed & PMC URLs to robots.txt-allowed Europe PMC REST JSON/JATS XML (with NCBI HTML fallback).","domains":["pubmed.ncbi.nlm.nih.gov","pmc.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubmed.ncbi.nlm.nih.gov/31452104/","https://pmc.ncbi.nlm.nih.gov/articles/PMC7095418/"],"routes":[{"match":{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},"twin":{"id":"pubmed-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=EXT_ID:{pmid}%20AND%20SRC:MED&resultType=core&format=json","kind":"json","accept":"application/json"},"extract":{"rootPath":"resultList.result.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags","stripSuffix":".","trim":true},"authorString":{"paths":["authorString"],"trim":true},"journalTitle":{"paths":["journalInfo.journal.title"]},"pubYear":{"paths":["pubYear"]},"journalFull":{"template":"{journalTitle} ({pubYear})","whenVars":["journalTitle","pubYear"],"fallbackVar":"journalTitle"},"doi":{"paths":["doi"]},"doiUrl":{"template":"https://doi.org/{doi}","whenVars":["doi"]},"pmcid":{"paths":["pmcid"]},"pmcUrl":{"template":"https://pmc.ncbi.nlm.nih.gov/articles/{pmcid}/","whenVars":["pmcid"]},"citedBy":{"paths":["citedByCount"],"format":"int_comma"},"abstractText":{"paths":["abstractText"],"format":"strip_tags"}},"titleTemplate":"{title}","authorVar":"authorString","publishedTimeVar":"pubYear","bullets":[{"label":"PMID","template":"`{pmid}`"},{"label":"Authors","template":"{authorString}","whenVar":"authorString"},{"label":"Journal","template":"{journalFull}","whenVar":"journalFull"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text (PMC)","template":"[{pmcid}]({pmcUrl})","whenVar":"pmcid"},{"label":"Cited By","template":"{citedBy}","whenVar":"citedBy"}],"sections":[{"heading":"Abstract","textVar":"abstractText"}],"linksVars":["doiUrl","pmcUrl"]}},{"match":{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]},"twin":{"id":"pmc-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/{pmcid}/fullTextXML","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"jats_article"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]}]},"mode":"dom","requireVars":["title","body"],"vars":{"title":{"cssText":["h1.heading-title","h1"]},"authors":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":15},"authorsShort":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":4},"doi":{"cssText":["span.citation-doi"]},"body":{"cssHtmlToMd":["article.article","div#abstract","div#eng-abstract","section.abstract"]}},"titleTemplate":"{title}","authorVar":"authorsShort","bullets":[{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Citation","template":"{doi}","whenVar":"doi"}],"bodyVar":"body","bodyFallbackHeading":"Abstract"}]},{"id":"pypi-project","name":"PyPI Python Package Index","category":"developer","description":"Extracts PyPI package install command, summary, and project README from pypi.org/project// (respecting robots.txt on /json).","domains":["pypi.org","www.pypi.org"],"exampleUrls":["https://pypi.org/project/httpx/"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["project",{"param":"pkg","charset":"pkg"}]},"mode":"dom","vars":{"headerName":{"cssText":["h1.project-header__name","h1.package-header__name"]},"pipCmd":{"cssText":["#pip-command"]},"summary":{"cssText":["p.project-header__summary","p.package-description__summary"]},"readme":{"cssHtmlToMd":["#description","div.project-description"],"format":"strip_leading_h1"}},"requireVars":["headerName","readme"],"titleTemplate":"{headerName}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"Install","template":"`{pipCmd}`","whenVar":"pipCmd"}],"bodyVar":"readme"}]},{"id":"q4-ir","name":"Q4 Inc. Investor Relations Portals","category":"finance","description":"Extracts Q4 Investor Relations /feed/PressRelease.svc and /feed/Event.svc JSON endpoints plus HTML press release and event pages while rejecting Cloudflare challenges.","domains":["*.q4web.com","investors.braze.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0","https://investors.braze.com/feed/Event.svc/GetEventList?apiKey=BF185719B0464B3AB809D2E68A89D240&LanguageId=1&eventDateFilter=3&pageSize=5&pageNumber=0"],"routes":[{"match":{"pathPrefix":"/feed/PressRelease.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}},{"match":{"pathPrefix":"/feed/Event.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}}],"htmlRoutes":[{"id":"q4-ir","match":{"exactSegments":false},"mode":"q4_ir_html"}]},{"id":"race-results-pack","name":"Race Results Pack (Athlinks, Race Roster, ACTIVE)","category":"commerce-social","description":"Extracts endurance race events and results from Athlinks, Race Roster, and ACTIVE JSON-LD, hydration JSON, and results tables while strictly rejecting empty CSR SPA shells.","domains":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"universalEngine":false,"auth_mode":"html","exampleUrls":["https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026"],"htmlRoutes":[{"id":"race-results-pack","match":{"hosts":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"exactSegments":false},"mode":"race_results_pack_html"}]},{"id":"readthedocs-sphinx","name":"Read the Docs & Sphinx Documentation","category":"developer","description":"Universal HTML extractor for Sphinx and Read the Docs documentation sites (requests.readthedocs.io, docs.python.org, and Sphinx-themed portals).","domains":["docs.python.org","numpy.org","matplotlib.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://numpy.org/doc/stable/user/absolute_beginners.html","https://docs.python.org/3/library/json.html"],"htmlRoutes":[{"id":"readthedocs-sphinx","match":{"exactSegments":false},"mode":"readthedocs_sphinx_html"}]},{"id":"rebuy-searchanise","name":"Rebuy & Searchanise Storefront APIs","category":"commerce-social","description":"Page-key adapter for Rebuy recommendation APIs and Searchanise searchserverapi.com JSON results; companion HTML mode yields so shopify_html is never preempted.","domains":["rebuyengine.com","www.rebuyengine.com","searchserverapi.com","www.searchserverapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3"],"routes":[{"match":{"anyOf":[{"hosts":["rebuyengine.com","www.rebuyengine.com"],"pathPrefix":"/api/v1/"},{"hosts":["searchserverapi.com","www.searchserverapi.com"],"pathEquals":["/getresults","/getwidgets"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"rebuy_searchanise_json"}}],"htmlRoutes":[{"id":"rebuy-searchanise","match":{"exactSegments":false},"mode":"rebuy_searchanise_html"}]},{"id":"recharge-bold-subscriptions","name":"Recharge & Bold Subscriptions","category":"commerce-social","description":"Extracts product and recurring selling-plan subscription metadata from storefronts powered by Recharge or Bold Subscriptions; yields on non-subscription PDPs so shopify_html is not preempted.","domains":["us.whogivesacrap.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls"],"htmlRoutes":[{"id":"recharge-bold-subscriptions","match":{"exactSegments":false},"mode":"recharge_bold_subscriptions_html"}]},{"id":"recreation-gov-ridb","name":"Recreation.gov & RIDB API","category":"public-records","description":"Recreation Information Database (RIDB) v1 API (apikey header) with Recreation.gov Campground JSON-LD / SSR HTML fallback and strict robots politeness.","domains":["ridb.recreation.gov","www.recreation.gov","recreation.gov"],"auth_mode":"key","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://www.recreation.gov/camping/campgrounds/232447","https://ridb.recreation.gov/api/v1/facilities/232447"],"routes":[{"match":{"hosts":["ridb.recreation.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"ridb_json"}},{"match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":true,"pathSegments":["camping","campgrounds",{"param":"facilityId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://ridb.recreation.gov/api/v1/facilities/{facilityId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"ridb_json"}}],"htmlRoutes":[{"id":"recreation-gov-ridb","match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":false},"mode":"recreation_gov_html"}]},{"id":"reddit-thread","name":"Reddit Threads & Comments","category":"commerce-social","description":"Extracts shreddit-post prose, subreddit/author/score metadata, and nested shreddit-comment trees.","domains":["reddit.com","*.reddit.com"],"exampleUrls":["https://www.reddit.com/r/golang/comments/1abc123/single_binary_deployments/"],"htmlRoutes":[{"id":"reddit-thread","match":{"pathContainsSegment":"comments"},"mode":"reddit_shreddit"}]},{"id":"regulations-gov","name":"Regulations.gov Federal Rulemaking","category":"public-records","description":"Official api.regulations.gov v4 JSON:API adapter for federal rulemaking documents, dockets, and public comments with HTML fallback.","domains":["regulations.gov","www.regulations.gov","api.regulations.gov"],"auth_mode":"key","exampleUrls":["https://api.regulations.gov/v4/documents/FTC-2023-0007-0001","https://api.regulations.gov/v4/dockets/FTC-2023-0007","https://www.regulations.gov/document/FTC-2023-0007-0001"],"routes":[{"match":{"hosts":["api.regulations.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["document",{"param":"docId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/documents/{docId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/dockets/{docketId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["comment",{"param":"commentId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/comments/{commentId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}}],"htmlRoutes":[{"id":"regulations-gov","match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false},"mode":"regulations_gov_html"}]},{"id":"repology","name":"Repology Package Version Matrix","category":"developer","description":"Extracts cross-distribution package versions from Repology API v1 and project HTML pages, prioritizing status == newest rows.","domains":["repology.org"],"auth_mode":"pub","exampleUrls":["https://repology.org/api/v1/project/python","https://repology.org/project/python/versions"],"routes":[{"match":{"hosts":["repology.org"],"pathPrefix":"/api/v1/project/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}},{"match":{"hosts":["repology.org"],"exactSegments":false,"pathSegments":["project",{"param":"project","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://repology.org/api/v1/project/{project}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}}],"htmlRoutes":[{"id":"repology","match":{"hosts":["repology.org"],"exactSegments":false},"mode":"repology_html"}]},{"id":"rippling","name":"Rippling ATS Career Boards","category":"jobs","description":"Upgrades ats.rippling.com/[locale/]/jobs to api.rippling.com (merging multi-location rows by uuid) and extracts __NEXT_DATA__ jobPost on detail pages.","domains":["ats.rippling.com"],"exampleUrls":["https://ats.rippling.com/rippling/jobs","https://ats.rippling.com/rippling/jobs/96601a74-e7b6-469d-8c69-6fdfd1c83bc0"],"match":{"optionalLeadingLocale":true,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"rippling-board","fetchUrl":"https://api.rippling.com/platform/api/ats/v1/board/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"results","vars":{"rawCount":{"paths":["results"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"{org} — Rippling Job Board ({dedupCount} open roles)","sections":[{"heading":"","arrayPath":"results","limit":100,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","dedupeBy":{"keyPaths":["uuid","id"],"mergeTextPaths":["workLocation.label","workLocation"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4},"requireItemVar":"jName","itemVars":{"uuid":{"paths":["uuid","id"],"trim":true},"jName":{"paths":["name","title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://ats.rippling.com/{org}/jobs/{uuid}"},"dept":{"paths":["department.label","department"],"trim":true,"default":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jName}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"}]}]},"htmlRoutes":[{"id":"rippling-job","mode":"embedded_json","scriptId":"__NEXT_DATA__","match":{"hosts":["ats.rippling.com"]},"extract":{"vars":{"jobTitle":{"paths":["props.pageProps.apiData.jobPost.name","props.pageProps.apiData.jobPost.title","props.pageProps.jobPost.name","props.pageProps.jobPost.title"],"trim":true},"company":{"paths":["props.pageProps.apiData.jobPost.companyName","props.pageProps.jobPost.companyName"],"trim":true,"default":"Company"},"descDirect":{"paths":["props.pageProps.apiData.jobPost.description","props.pageProps.jobPost.description"],"format":"html_to_md"},"descCompany":{"paths":["props.pageProps.apiData.jobPost.description.company","props.pageProps.jobPost.description.company"],"format":"html_to_md"},"descRole":{"paths":["props.pageProps.apiData.jobPost.description.role","props.pageProps.jobPost.description.role"],"format":"html_to_md"},"descReqs":{"paths":["props.pageProps.apiData.jobPost.description.requirements","props.pageProps.jobPost.description.requirements"],"format":"html_to_md"},"descBenefits":{"paths":["props.pageProps.apiData.jobPost.description.benefits","props.pageProps.jobPost.description.benefits"],"format":"html_to_md"},"hasAnyBody":{"template":"ok","whenAnyVars":["descDirect","descCompany","descRole","descReqs","descBenefits"]}},"requireVars":["jobTitle","hasAnyBody"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"descDirect","sections":[{"heading":"","unlessVar":"descDirect","textVar":"descCompany"},{"heading":"","unlessVar":"descDirect","textVar":"descRole"},{"heading":"","unlessVar":"descDirect","textVar":"descReqs"},{"heading":"","unlessVar":"descDirect","textVar":"descBenefits"}]}}]},{"id":"rubygems","name":"RubyGems Registry","category":"developer","description":"Upgrades rubygems.org gem pages to /api/v1/gems/.json metadata.","domains":["rubygems.org","www.rubygems.org"],"exampleUrls":["https://rubygems.org/gems/rails"],"match":{"exactSegments":false,"pathSegments":["gems",{"param":"gem","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://rubygems.org/api/v1/gems/{gem}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"version":{"paths":["version"]},"info":{"paths":["info"],"trim":true},"infoShort":{"paths":["info"],"trim":true,"sliceMax":260},"licenses":{"paths":["licenses"],"join":", "},"authors":{"paths":["authors"]},"repo":{"paths":["source_code_uri","homepage_uri"]},"docs":{"paths":["documentation_uri"]}},"titleTemplate":"{name} {version} (RubyGem)","titleWhenVar":"version","titleFallbackTemplate":"{name} (RubyGem)","descriptionVar":"infoShort","authorVar":"authors","introVar":"info","bullets":[{"label":"Install","template":"`gem install {name}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{licenses}","whenVar":"licenses"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Documentation","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"rumble-odysee","name":"Rumble & Odysee Video","category":"commerce-social","description":"Extracts Odysee video claim oEmbed and LBRY JSON-RPC metadata plus Rumble/Odysee HTML without hitting disallowed rumble.com/api/* routes.","domains":["rumble.com","www.rumble.com","odysee.com","www.odysee.com","api.na-backend.odysee.com"],"auth_mode":"pub","exampleUrls":["https://odysee.com/@Odysee:8/channel-roundup-may-2026:e","https://odysee.com/$/oembed?url=https%3A%2F%2Fodysee.com%2F%40Odysee%3A8%2Fchannel-roundup-may-2026%3Ae&format=json","https://www.rumble.com/c/Rumble"],"routes":[{"match":{"hosts":["odysee.com","www.odysee.com"],"pathEquals":["/$/oembed"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["odysee.com","www.odysee.com"],"exactSegments":true,"pathSegments":[{"param":"chan","charset":"at_handle","minLen":2,"maxLen":100},{"param":"claimSlug","charset":"url_seg","minLen":2,"maxLen":180}]},"twin":{"fetchUrl":"https://{host}/$/oembed?url=https%3A%2F%2F{host}%2F{chan}%2F{claimSlug}&format=json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["api.na-backend.odysee.com"],"pathEquals":["/api/v1/proxy"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}}],"htmlRoutes":[{"id":"rumble-odysee","match":{"exactSegments":false},"mode":"rumble_odysee_html"}]},{"id":"runsignup","name":"RunSignup Races & Events","category":"commerce-social","description":"Extracts RunSignup race listings and single race event details from public /Rest/races and /Rest/race/{raceId} JSON APIs plus /Race/ SportsEvent HTML fallback.","domains":["runsignup.com","www.runsignup.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://runsignup.com/Rest/races?format=json&events=T&page=1&results_per_page=2","https://runsignup.com/Rest/race/68640?format=json","https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile"],"routes":[{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","races"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}},{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","race",{"param":"raceId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}}],"htmlRoutes":[{"id":"runsignup","match":{"hosts":["runsignup.com","www.runsignup.com"],"pathPrefix":"/Race/","exactSegments":false},"mode":"runsignup_html"}]},{"id":"rxnorm-rxnav","name":"NLM RxNorm / RxNav","category":"research-health","description":"National Library of Medicine RxNav REST JSON API adapter for RxCUI lookups, concept properties, drug groups, and approximate term matches.","domains":["rxnav.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://rxnav.nlm.nih.gov/REST/rxcui.json?name=lipitor","https://rxnav.nlm.nih.gov/REST/rxcui/153165/properties.json","https://rxnav.nlm.nih.gov/REST/drugs.json?name=acetaminophen"],"routes":[{"match":{"pathPrefix":"/REST/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"rxnorm_json"}}]},{"id":"saleor","name":"Saleor Storefront & GraphQL API","category":"commerce-social","description":"Extracts Saleor Storefront bounded /graphql/ product queries (including EditorJS descriptions) and post-HTML JSON-LD/Microdata product pages.","domains":["demo.saleor.io","storefront1.saleor.cloud"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storefront1.saleor.cloud/graphql/"],"routes":[{"match":{"pathEquals":["/graphql","/graphql/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProducts { products(first: 25, channel: \\\"default\\\") { pageInfo { hasNextPage endCursor } edges { node { id slug name description category { name slug } thumbnail { url alt } pricing { priceRange { start { gross { amount currency } } stop { gross { amount currency } } } } variants { id name sku quantityAvailable pricing { price { gross { amount currency } } } } } } } }\"}"},"extract":{"commerceMode":"saleor_graphql"}}],"htmlRoutes":[{"id":"saleor","match":{"exactSegments":false},"mode":"saleor_html"}]},{"id":"salesforce-knowledge","name":"Salesforce Knowledge (Experience Cloud)","category":"developer","description":"Extracts public Salesforce Knowledge and Experience Cloud articles when SSR/hydrated DOM or TechArticle JSON-LD is present; rejects unhydrated Aura error shells and login redirects.","domains":["help.salesforce.com","help.mulesoft.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.salesforce.com/s/articleView?language=en_US&id=000391748&type=1"],"htmlRoutes":[{"id":"salesforce-knowledge","match":{"exactSegments":false},"mode":"salesforce_knowledge_html"}]},{"id":"sam-gov","name":"SAM.gov Opportunities & Entities","category":"public-records","description":"Extracts SAM.gov contract opportunities and entity registrations via official SAM.gov v2/v3 APIs (excluding /contract-awards handled by fpds-sam-contract-awards) with HTML fallback.","domains":["sam.gov","www.sam.gov","api.sam.gov"],"auth_mode":"key","exampleUrls":["https://sam.gov/contracting","https://sam.gov/help","https://api.sam.gov/opportunities/v2/search?limit=1"],"routes":[{"match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false,"pathSegments":["opp",{"param":"noticeId","charset":"url_seg","minLen":4,"maxLen":120},"view"]},"twin":{"fetchUrl":"https://api.sam.gov/opportunities/v2/search?noticeid={noticeId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}}],"htmlRoutes":[{"id":"sam-gov","match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false},"mode":"sam_gov_html"}]},{"id":"sap-commerce-occ","name":"SAP Commerce Cloud (OCC v2)","category":"commerce-social","description":"Extracts SAP Commerce Cloud OCC v2 /rest/v2 product and search JSON endpoints plus Spartacus storefront HTML/companion twins.","domains":["www.kay.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.kay.com/kay-labgrown-diamonds-large-small-link-bracelet-14-ct-tw-sterling-silver-8/p/V-238867701"],"routes":[{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["rest","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}}],"htmlRoutes":[{"id":"sap-commerce-occ","match":{"exactSegments":false},"mode":"sap_occ_html"}]},{"id":"sap-rmk-jibe","name":"SAP SuccessFactors RMK & Jibe Enterprise Career Feeds","category":"jobs","description":"Formats Jibe /api/jobs JSON feeds and SAP SuccessFactors Recruiting Marketing (RMK) /sitemap.xml RSS job feeds.","domains":["careers.*.com","jobs.*.com"],"universalEngine":true,"exampleUrls":["https://careers.rivian.com/api/jobs?page=1&limit=25","https://jobs.eastman.com/sitemap.xml"],"routes":[{"match":{"pathEquals":["/api/jobs"],"excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"jibe-careers","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireArrayItemField":{"arrayPath":"jobs","field":"data"},"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["totalCount"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{host} — Jibe Career Feed ({jobCount} of {total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":80,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["data.title","title"],"trim":true,"default":"Role"},"reqId":{"paths":["data.req_id","data.slug","req_id","slug"],"trim":true},"reqCell":{"template":"`{reqId}`","whenVars":["reqId"],"default":"-"},"catArr":{"paths":["data.categories"],"subField":"name","join":", "},"catStr":{"paths":["data.category","category"],"trim":true},"cat":{"template":"{catArr}","whenVars":["catArr"],"fallbackVar":"catStr","default":"-"},"fullLoc":{"paths":["data.full_location","full_location"],"trim":true},"city":{"paths":["data.city","city"],"trim":true},"state":{"paths":["data.state","state"],"trim":true},"country":{"paths":["data.country","country"],"trim":true},"csc3":{"template":"{city}, {state}, {country}","whenVars":["city","state","country"]},"csc2a":{"template":"{city}, {state}","whenVars":["city","state"]},"csc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"csc1":{"paths":["data.city","data.state","data.country"],"trim":true},"locSub1":{"template":"{csc3}","whenVars":["csc3"],"fallbackVar":"csc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"csc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"csc1"},"loc":{"template":"{fullLoc}","whenVars":["fullLoc"],"fallbackVar":"locSub3","default":"-"},"canonUrl":{"paths":["data.meta_data.canonical_url"],"requireHttps":true},"appUrl":{"paths":["data.apply_url","apply_url"],"requireHttps":true},"finalUrl":{"template":"{canonUrl}","whenVars":["canonUrl"],"fallbackVar":"appUrl"},"roleCell":{"template":"[{jTitle}]({finalUrl})","whenVars":["finalUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["finalUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Req ID","template":"{reqCell}"},{"header":"Category","template":"{cat}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"sap-rmk-jibe","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}}],"htmlRoutes":[{"id":"sap-rmk-jibe","mode":"xml_items_table","match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}]},{"id":"sba-dsbs-loans","name":"SBA DSBS & 7(a)/504 Loan Datasets (DKAN)","category":"finance","description":"Extracts data.sba.gov DKAN 7(a)/504 loan datasets and dataset pages while rejecting empty React SPA shells on search.certifications.sba.gov.","domains":["data.sba.gov","search.certifications.sba.gov","dsbs.sba.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002","https://data.sba.gov/dataset/sba-foia-quarterly-reports"],"routes":[{"match":{"hosts":["data.sba.gov"],"pathPrefix":"/api/1/metastore/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"sba_dkan_json"}},{"match":{"hosts":["data.sba.gov"],"pathPrefix":"/api/1/datastore/query/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"sba_dkan_json"}}],"htmlRoutes":[{"id":"sba-dsbs-loans","match":{"exactSegments":false},"mode":"sba_dsbs_loans_html"}]},{"id":"schema-course","name":"Schema.org Course & Educational Program","category":"public-records","description":"Universal Schema.org extractor for Course, CourseInstance, and EducationalOccupationalProgram JSON-LD running before generic schema_org fallback.","domains":["pll.harvard.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pll.harvard.edu/course/cs50-introduction-computer-science"],"htmlRoutes":[{"id":"schema-course","match":{"exactSegments":false},"mode":"schema_course_html"}]},{"id":"schema-dataset","name":"Schema.org Dataset & DataCatalog","category":"research-health","description":"Universal Schema.org extractor for Dataset and DataCatalog JSON-LD including DataDownload distributions, license, creator, and temporal/spatial coverage.","domains":["registry.opendata.aws"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.opendata.aws/noaa-goes/"],"htmlRoutes":[{"id":"schema-dataset","match":{"exactSegments":false},"mode":"schema_dataset_html"}]},{"id":"schema-event","name":"Schema.org Event (Universal)","category":"commerce-social","description":"Universal Schema.org Event JSON-LD extractor for venues, parks departments, clubs, and event calendars: name, start/end, venue and address, organizer, performer, offers/price, status, and attendance mode. Lists every Event on series and calendar pages while yielding on dedicated ticketing/race platforms.","domains":["neworleanscitypark.org","events.stanford.edu","calendar.mit.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://neworleanscitypark.org/series/crescent-city-farmers-market-2/","https://events.stanford.edu/"],"htmlRoutes":[{"id":"schema-event","match":{"exactSegments":false,"excludeHosts":["eventbrite.com","www.eventbrite.com","meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com","ticketmaster.com","www.ticketmaster.com","runsignup.com","www.runsignup.com"]},"mode":"schema_event_html"}]},{"id":"schema-faq-howto","name":"Schema.org FAQPage & HowTo","category":"public-records","description":"Universal Schema.org extractor for FAQPage Q&A and HowTo step-by-step instructions, yielding when Recipe, Product, JobPosting, Course, SoftwareApplication, or Medical types are present.","domains":["yoast.com","www.wikihow.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://yoast.com/features/structured-data/faq-block/","https://www.wikihow.com/Tie-a-Tie"],"htmlRoutes":[{"id":"schema-faq-howto","match":{"exactSegments":false},"mode":"schema_faq_howto_html"}]},{"id":"schema-localbusiness","name":"Schema.org LocalBusiness (Universal)","category":"commerce-social","description":"Universal Schema.org LocalBusiness JSON-LD extractor (Restaurant, Store, AutoDealer, BikeStore and every *Business/*Store subtype) for location, dealer, and shop pages: name, address, phone, geo, opening hours, price range, rating, and amenities. Skips pages whose main entity is an article, product, recipe, job, vehicle, medical, or event.","domains":["www.chipotle.com","www.apple.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://locations.chipotle.com/co/boulder/1650-28th-st","https://www.apple.com/retail/fifthavenue/"],"htmlRoutes":[{"id":"schema-localbusiness","match":{"exactSegments":false},"mode":"schema_localbusiness_html"}]},{"id":"schema-medical","name":"Schema.org Medical Entities","category":"research-health","description":"Universal Schema.org extractor for MedicalCondition, Drug, Physician, MedicalClinic, and MedicalWebPage JSON-LD, yielding when Product is present.","domains":["my.clevelandclinic.org","www.nhs.uk"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://my.clevelandclinic.org/health/diseases/6424-asthma","https://www.nhs.uk/conditions/asthma/"],"htmlRoutes":[{"id":"schema-medical","match":{"exactSegments":false},"mode":"schema_medical_html"}]},{"id":"schema-menu","name":"Schema.org Restaurant Menu (Menu / MenuSection / MenuItem)","category":"commerce-social","description":"Universal Schema.org Menu extractor that matches only when Menu, MenuSection, MenuItem, or hasMenu JSON-LD entities exist, never hijacking plain Restaurant pages.","domains":["www.chilis.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.chilis.com/menu"],"htmlRoutes":[{"id":"schema-menu","match":{"exactSegments":false},"mode":"schema_menu_html"}]},{"id":"schema-recipe","name":"Schema.org Recipe (Universal)","category":"commerce-social","description":"Universal Schema.org Recipe JSON-LD extractor for any recipe site: ingredients, numbered steps (HowToStep/HowToSection), prep/cook/total times, yield, cuisine, rating, and nutrition. Resolves @graph @id author references.","domains":["www.budgetbytes.com","sallysbakingaddiction.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.budgetbytes.com/one-pot-creamy-cajun-chicken-pasta/","https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"],"htmlRoutes":[{"id":"schema-recipe","match":{"exactSegments":false},"mode":"schema_recipe_html"}]},{"id":"schema-software-app","name":"Schema.org SoftwareApplication","category":"developer","description":"Universal Schema.org extractor for SoftwareApplication, WebApplication, and MobileApplication JSON-LD (version, OS, category, offers, rating, and downloadUrl).","domains":["code.visualstudio.com","www.mozilla.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://code.visualstudio.com/","https://www.mozilla.org/en-US/firefox/new/"],"htmlRoutes":[{"id":"schema-software-app","match":{"exactSegments":false},"mode":"schema_software_app_html"}]},{"id":"schema-vehicle","name":"Schema.org Vehicle & Car","category":"commerce-social","description":"Universal Schema.org extractor for Vehicle, Car, Motorcycle, and MotorizedBicycle JSON-LD with strict 17-character VIN validation (excluding I, O, Q).","domains":["www.hondaofseattle.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.hondaofseattle.com/viewdetails/used/5tdkdrbh0rs544979/2024-toyota-highlander-sport-utility"],"htmlRoutes":[{"id":"schema-vehicle","match":{"exactSegments":false},"mode":"schema_vehicle_html"}]},{"id":"searchspring","name":"Searchspring On-Site Search","category":"commerce-social","description":"Extracts public Searchspring JSON search API payloads and discovers siteId markers from storefront HTML.","domains":["api.searchspring.net","www.searchspring.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.searchspring.net/api/search/search.json?siteId=rn129l&q=router&resultsFormat=native"],"routes":[{"match":{"pathEquals":["/api/search/search.json"],"queryParams":[{"name":"siteId","param":"siteId","charset":"alnum_dash","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"searchspring_search"}}],"htmlRoutes":[{"id":"searchspring","match":{"exactSegments":false},"mode":"searchspring_html"}]},{"id":"sec-edgar","name":"SEC EDGAR Company Submissions & Filings","category":"finance","description":"Upgrades sec.gov EDGAR company browse pages and CIK URLs to keyless data.sec.gov JSON submissions (10-K, 10-Q, 8-K, DEF 14A, Form 4, 13F).","domains":["www.sec.gov","sec.gov","data.sec.gov"],"exampleUrls":["https://www.sec.gov/edgar/browse/?CIK=0001477333","https://data.sec.gov/submissions/CIK0000320193.json"],"match":{"anyOf":[{"hosts":["www.sec.gov","sec.gov"],"exactSegments":false,"pathSegments":["edgar","browse"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["www.sec.gov","sec.gov"],"exactSegments":true,"pathSegments":["cgi-bin","browse-edgar"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["data.sec.gov"],"exactSegments":true,"pathSuffix":".json","pathSegments":["submissions",{"param":"rawCik","stripPrefix":"CIK","stripSuffix":".json","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}}]},"twin":{"fetchUrl":"https://data.sec.gov/submissions/CIK{paddedCik}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"],"trim":true},"tickersPlain":{"paths":["tickers"],"join":", "},"tickersCode":{"paths":["tickers"],"itemWrap":"`","join":", "},"exchanges":{"paths":["exchanges"],"join":", "},"tickersBullet":{"template":"{tickersCode} ({exchanges})","whenVars":["tickersCode","exchanges"],"fallbackVar":"tickersCode"},"sic":{"paths":["sic"]},"sicDesc":{"paths":["sicDescription"]},"sicOrDesc":{"paths":["sic","sicDescription"]},"sicFull":{"template":"{sic} — {sicDesc}","whenVars":["sic","sicDesc"],"fallbackVar":"sicOrDesc"},"category":{"paths":["category"]},"stateInc":{"paths":["stateOfIncorporation"]},"fye":{"paths":["fiscalYearEnd"],"format":"fiscal_mmdd"},"descTickerOrCik":{"paths":["tickers"],"join":", ","fallbackTemplate":"CIK {paddedCik}"}},"titleTemplate":"{name} ({tickersPlain}) — SEC EDGAR","titleWhenVar":"tickersPlain","titleFallbackTemplate":"{name} (CIK {paddedCik}) — SEC EDGAR","descriptionTemplate":"{name} SEC EDGAR filings ({descTickerOrCik})","bullets":[{"label":"CIK","template":"`{paddedCik}`"},{"label":"Tickers","template":"{tickersBullet}","whenVar":"tickersBullet"},{"label":"SIC Industry","template":"{sicFull}","whenVar":"sicFull"},{"label":"Filer Category","template":"{category}","whenVar":"category"},{"label":"Incorporation","template":"{stateInc}","whenVar":"stateInc"},{"label":"Fiscal Year End","template":"{fye}","whenVar":"fye"}],"sections":[{"heading":"Recent SEC Filings","parallelArrays":{"basePath":"filings.recent","fields":{"form":"form","filingDate":"filingDate","reportDate":"reportDate","accessionNumber":"accessionNumber","primaryDocument":"primaryDocument","items":"items"},"priorityFilterAfter":{"index":12,"field":"form","allowValues":["10-K","10-K/A","10-Q","10-Q/A","8-K","DEF 14A","20-F","S-1","13F-HR","4"]}},"limit":25,"requireItemVar":"form","collectLinkVars":["docUrl"],"itemVars":{"form":{"paths":["form"]},"accRaw":{"paths":["accessionNumber"]},"accNoDash":{"paths":["accessionNumber"],"replaceAll":{"from":"-","to":""}},"primaryDocument":{"paths":["primaryDocument"]},"indexUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{accRaw}-index.htm","whenVars":["accRaw","accNoDash"]},"docUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{primaryDocument}","whenVars":["accNoDash","primaryDocument"],"fallbackVar":"indexUrl"},"formBold":{"template":"**{form}**","whenVars":["form"]},"formCell":{"template":"[**{form}**]({docUrl})","whenVars":["form","docUrl"],"fallbackVar":"formBold"}},"columns":[{"header":"Form","template":"{formCell}"},{"header":"Filed","paths":["filingDate"]},{"header":"Period","paths":["reportDate"]},{"header":"8-K Items","paths":["items"]}]}]}},{"id":"senate-lda","name":"Senate Lobbying Disclosures (LDA)","category":"public-records","description":"Extracts Senate Lobbying Disclosure Act filings from lda.gov (and lda.senate.gov) REST API v1 JSON with Crawl-delay 4s politeness and HTML fallback.","domains":["lda.gov","lda.senate.gov"],"auth_mode":"pub","min_interval_ms":4000,"strict_robots":true,"exampleUrls":["https://lda.gov/api/v1/filings/a934e791-d564-4fd3-8b78-041f8cfcf115/","https://lda.gov/filings/public/filing/a934e791-d564-4fd3-8b78-041f8cfcf115/"],"routes":[{"match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false,"pathSegments":["filings","public","filing",{"param":"filingId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/filings/{filingId}/","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}},{"match":{"hosts":["lda.gov","lda.senate.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}}],"htmlRoutes":[{"id":"senate-lda","match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false},"mode":"senate_lda_html"}]},{"id":"servicenow-kb","name":"ServiceNow Knowledge Base","category":"developer","description":"Extracts public ServiceNow Knowledge Base articles from TechArticle JSON-LD and Service Portal KB DOM while rejecting soft-404 shells.","domains":["support.servicenow.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963589"],"htmlRoutes":[{"id":"servicenow-kb","match":{"exactSegments":false},"mode":"servicenow_kb_html"}]},{"id":"sfcc-demandware","name":"Salesforce Commerce Cloud (Demandware) Storefronts","category":"commerce-social","description":"Structurally detects Salesforce Commerce Cloud storefronts and extracts Product-Variation twins, JSON-LD, variation options, and product geometry/specification tables.","domains":["www.demandware.com"],"universalEngine":true,"exampleUrls":["https://www.demandware.com/product/sample"],"htmlRoutes":[{"id":"sfcc-demandware","match":{"exactSegments":false},"mode":"sfcc_html"}]},{"id":"shopify-filter-apps","name":"Shopify Filter Apps (Boost Commerce / Globo)","category":"commerce-social","description":"Page-key adapter for Boost Commerce (mybcapps.com) and Globo Smart Product Filter JSON endpoints; companion HTML mode yields so shopify_html is never preempted.","domains":["services.mybcapps.com","filter.globo.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5"],"routes":[{"match":{"anyOf":[{"hosts":["services.mybcapps.com"],"pathEquals":["/bc-sf-filter/filter","/bc-sf-filter/search"]},{"hosts":["filter.globo.io"],"pathPrefix":"/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"shopify_filter_apps_json"}}],"htmlRoutes":[{"id":"shopify-filter-apps","match":{"exactSegments":false},"mode":"shopify_filter_apps_html"}]},{"id":"shopify-hydrogen","name":"Shopify Hydrogen Storefronts","category":"commerce-social","description":"Page-key adapter extracting Shopify Hydrogen SSR __remixContext loaderData (shop, products, collections) while rejecting non-Shopify Remix apps and empty shells.","domains":["hydrogen.shop"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://hydrogen.shop/"],"htmlRoutes":[{"id":"shopify-hydrogen","match":{"exactSegments":false},"mode":"shopify_hydrogen_html"}]},{"id":"shopify-storefront-graphql","name":"Shopify Storefront API (Tokenless GraphQL)","category":"commerce-social","description":"Queries any Shopify store's public Storefront API (/api//graphql.json) with Shopify's documented tokenless access for one product by handle (plus same-origin page-key companion discovery on storefronts embedding Storefront API tokens): shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections.","domains":["www.tentree.com","www.henryrose.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://henryrose.com/api/2025-07/graphql.json?handle=the-layering-collection","https://www.tentree.com/api/2025-07/graphql.json?handle=e-gift-code"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api",{"param":"apiVersion","charset":"slug","minLen":7,"maxLen":10},"graphql.json"],"queryParams":[{"name":"handle","param":"handle","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/{apiVersion}/graphql.json","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProduct { shop { name } product(handle: \\\"{handle}\\\") { id handle title vendor productType description onlineStoreUrl availableForSale priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } options { name optionValues { name } } variants(first: 100) { nodes { id title sku availableForSale price { amount currencyCode } compareAtPrice { amount currencyCode } } } collections(first: 20) { nodes { handle title } } } }\"}","maxBytes":2097152},"extract":{"jsonMode":"shopify_storefront_graphql_json"}}]},{"id":"shopify","name":"Shopify Universal Storefront & Catalogs","category":"commerce-social","description":"Formats /products.json and /collections//products.json store inventories, upgrades *.myshopify.com and custom-domain /products/ pages, and implements polite full-store catalog pulls.","domains":["*.myshopify.com"],"universalEngine":true,"exampleUrls":["https://www.henryrose.com/products/the-layering-collection","https://www.henryrose.com/products.json?limit=30&page=1"],"catalog":{"platform":"shopify","pauseMs":1000,"pageCap":200,"firstPageTemplate":"{origin}/products.json?limit=250&page=1","collectionPageTemplate":"{origin}/collections/{collection}/products.json?limit=250&page=1","perPage":250,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","my.bigcartel.com","api.bigcartel.com","assets.bigcartel.com","help.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com"],"anyOf":[{"pathEquals":["/products.json"]},{"exactSegments":true,"pathSegments":["collections",{"param":"col","charset":"slug","maxLen":160},"products.json"]}]},"twin":{"id":"shopify-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_catalog_page"}},{"match":{"pathSuffix":".js","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".js","maxLen":160}},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.js","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product_js"}},{"match":{"anyOf":[{"pathSuffix":".json","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}},{"hosts":["*.myshopify.com"],"scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.json","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product"}},{"match":{"hosts":["*.myshopify.com"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["collections",{"param":"handle","charset":"slug","maxLen":160}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/collections/{handle}/products.json?limit=50","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"commerceMode":"shopify_catalog_page"}}],"htmlRoutes":[{"id":"shopify","match":{"pathContainsSegment":"products"},"mode":"shopify_html"}]},{"id":"shopware-magento","name":"Magento 2 & Shopware 6 Storefronts","category":"commerce-social","description":"Structurally detects Magento 2 (text/x-magento-init swatches and bounded products-render-info) and Shopware 6 (sw-product-detail and property tables) storefronts.","domains":["www.shopware.com","business.adobe.com"],"universalEngine":true,"exampleUrls":["https://frontends-demo.vercel.app/Pepper-white-Muntok-pearl/SW10095"],"htmlRoutes":[{"id":"shopware-magento","match":{"exactSegments":false},"mode":"shopware_magento_html"}]},{"id":"slide-decks","name":"Slide Decks (SlideShare & SpeakerDeck)","category":"commerce-social","description":"Extracts SpeakerDeck presentations via public oEmbed JSON and slide transcripts HTML, and SlideShare decks via __NEXT_DATA__ HTML (no /api/ twin per robots.txt).","domains":["slideshare.net","www.slideshare.net","speakerdeck.com","www.speakerdeck.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.slideshare.net/slideshow/slideshare-rebrand-announcement-deck-2025/283262633","https://speakerdeck.com/csswizardry/well-thats-weird"],"routes":[{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":true,"pathSegments":[{"param":"user","charset":"slug","minLen":1,"maxLen":80,"reserved":["search","signup","login","categories","features","pro","terms","privacy","about","jobs","assets","users","oembed.json"]},{"param":"deck","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://speakerdeck.com/oembed.json?url=https%3A%2F%2Fspeakerdeck.com%2F{user}%2F{deck}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}},{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"pathEquals":["/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}}],"htmlRoutes":[{"id":"slide-decks","mode":"slideshare_html","match":{"hosts":["slideshare.net","www.slideshare.net"],"exactSegments":false}},{"id":"slide-decks","mode":"speakerdeck_html","match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":false}}]},{"id":"small-search","name":"Searchanise, Doofinder, Findify & Nosto Search","category":"commerce-social","description":"Opt-in page-key adapter pack for Searchanise, Doofinder, Findify, and Nosto search APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["searchserverapi1.com","eu1-search.doofinder.com","api-v3.findify.io","api.nosto.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://searchserverapi1.com/getresults?apiKey=3O4A8B9F4q&q=brew&output=json&maxResults=10"],"routes":[{"match":{"hosts":["searchserverapi1.com","www.searchserverapi1.com"],"pathEquals":["/getresults","/getwidgets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"anyOf":[{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathEquals":["/5/search"]},{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathSegments":["6",{"param":"hashid","charset":"alnum_dash","minLen":8,"maxLen":64},"_search"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api-v3.findify.io"],"pathEquals":["/v3/search","/v3/autocomplete"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api.nosto.com"],"pathEquals":["/v1/graphql"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}}],"htmlRoutes":[{"id":"small-search","match":{"exactSegments":false},"mode":"small_search_html"}]},{"id":"smartetailing","name":"SmartEtailing IBD Storefronts","category":"commerce-social","description":"Structurally detects SmartEtailing independent bicycle dealer storefronts and extracts Product JSON-LD, spec tables, and dealer pickup info.","domains":["www.trekchicago.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.trekchicago.com/product/trek-precaliber-16-556127-1.htm"],"htmlRoutes":[{"id":"smartetailing","match":{"exactSegments":false},"mode":"smartetailing_html"}]},{"id":"smb-ats-full","name":"SMB ATS Full (Manatal, Homerun, Zoho Recruit, Freshteam)","category":"jobs","description":"Extracts open roles from Manatal career-page JSON API, Homerun JobPosting JSON-LD, Zoho Recruit, and Freshteam portals while rejecting 404.homerun.co and soft errors.","domains":["api.manatal.com","core.api.manatal.com","jobs.manatal.com","*.zohorecruit.com","*.freshteam.com","*.homerun.co"],"auth_mode":"pub","exampleUrls":["https://api.manatal.com/open/v3/career-page/manatal/jobs/","https://jobs.homerun.co/sales-executive-amsterdam"],"routes":[{"match":{"hosts":["api.manatal.com","core.api.manatal.com"],"pathPrefix":"/open/v3/career-page/","exactSegments":false},"twin":{"id":"smb-ats-full","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"hosts":["jobs.manatal.com"],"exactSegments":true,"pathSegments":[{"param":"slug","charset":"slug","reserved":["api","login","auth","static","assets","robots.txt","sitemap.xml","favicon.ico"],"minLen":1,"maxLen":120}]},"twin":{"id":"smb-ats-full-manatal","fetchUrl":"https://api.manatal.com/open/v3/career-page/{slug}/jobs/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"anyOf":[{"hosts":["*.freshteam.com"],"pathPrefix":"/api/job_postings","exactSegments":false},{"hosts":["*.zohorecruit.com"],"pathPrefix":"/recruit/v2/","exactSegments":false}]},"twin":{"id":"smb-ats-full-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"smb_ats_json"}}],"htmlRoutes":[{"id":"smb-ats-full","mode":"smb_ats_full_html","match":{"hosts":["*.homerun.co","*.zohorecruit.com","*.freshteam.com","jobs.manatal.com"],"exactSegments":false}}]},{"id":"smithsonian-open-access","name":"Smithsonian Open Access","category":"public-records","description":"Smithsonian Open Access API v1.0 adapter (api.si.edu/openaccess) via api.data.gov key helper with HTML fallback.","domains":["si.edu","www.si.edu","api.si.edu"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.si.edu/openaccess/api/v1.0/search?q=apollo","https://api.si.edu/openaccess/api/v1.0/content/edanmdm:nasm_A19700102000","https://www.si.edu/object/apollo-11-command-module-columbia:nasm_A19700102000"],"routes":[{"match":{"hosts":["api.si.edu"],"pathPrefix":"/openaccess/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}},{"match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"pathSegments":["object",{"param":"objectSlug","charset":"url_seg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://api.si.edu/openaccess/api/v1.0/search?q={objectSlug}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}}],"htmlRoutes":[{"id":"smithsonian-open-access","match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"reservedFirstSegment":["search","admin","core"]},"mode":"smithsonian_open_access_html"}]},{"id":"socrata","name":"Socrata Open Data Portals (SODA Universal Engine)","category":"public-records","description":"Upgrades city, state, and federal Socrata open-data dataset URLs (/d/<4x4-id> or /dataset/.../<4x4-id>) to /api/views/.json column schemas and SODA endpoints.","domains":["data.cityofnewyork.us","data.sfgov.org","data.sf.gov","data.seattle.gov","data.cityofchicago.org","data.lacity.org","data.wa.gov","data.nj.gov","data.colorado.gov","data.texas.gov","data.ny.gov","data.cdc.gov","*.socrata.com"],"universalEngine":true,"exampleUrls":["https://data.cityofnewyork.us/Housing-Development/DOB-Job-Application-Filings/ic3t-wcy2","https://data.sf.gov/d/i98e-djp9"],"match":{"socrataHost":true,"minSegments":2,"anyOf":[{"socrataHost":true,"minSegments":2,"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"socrataHost":true,"minSegments":2,"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name","id"],"vars":{"name":{"paths":["name"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"attribution":{"paths":["attribution"]},"category":{"paths":["category"]},"license":{"paths":["license.name"]},"updatedDate":{"paths":["rowsUpdatedAt"],"format":"epoch_sec_date"},"sodaJsonUrl":{"template":"https://{host}/resource/{viewId}.json?$limit=50"},"csvExportUrl":{"template":"https://{host}/api/views/{viewId}/rows.csv?accessType=DOWNLOAD"}},"titleTemplate":"{name} ({host})","descriptionVar":"descShort","publishedTimeVar":"updatedDate","bullets":[{"label":"Dataset ID","template":"`{viewId}` ({host})"},{"label":"SODA JSON API","template":"`{sodaJsonUrl}`"},{"label":"CSV Download","template":"{csvExportUrl}"},{"label":"Agency / Attribution","template":"{attribution}","whenVar":"attribution"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rows Last Updated","template":"{updatedDate}","whenVar":"updatedDate"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Schema","headingTemplate":"Schema ({shownCount} Columns)","arrayPath":"columns","filter":{"excludeFieldPrefix":{"field":"fieldName","prefix":":@"}},"limit":40,"columns":[{"header":"Field Name","paths":["fieldName"],"code":true},{"header":"Label","paths":["name"]},{"header":"Type","paths":["dataTypeName"]},{"header":"Description","paths":["description"]}]}],"linksVars":["sodaJsonUrl","csvExportUrl"]}},{"id":"specialized","name":"Specialized Bicycles & Geometry Specs","category":"commerce-social","description":"Polite HTML adapter for Specialized product pages extracting technical specifications, frame geometry tables, pricing, availability, and manual downloads.","domains":["specialized.com","www.specialized.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.specialized.com/us/en/s-works-tarmac-sl9-sram-red-axs/p/4293533"],"htmlRoutes":[{"id":"specialized","match":{"exactSegments":false},"mode":"specialized_html"}]},{"id":"spree-solidus","name":"Spree Commerce & Solidus","category":"commerce-social","description":"Extracts Spree/Solidus JSON:API /api/v2/storefront/products twins and post-HTML JSON-LD/Microdata product pages.","domains":["demo.spreecommerce.org","demo.solidus.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://demo.spreecommerce.org/us/en/products/espresso-barista-kit","https://demo.solidus.io/products/solidus-hoodie"],"routes":[{"match":{"pathEquals":["/api/v2/storefront/products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}},{"match":{"pathSegments":["api","v2","storefront","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}}],"htmlRoutes":[{"id":"spree-solidus","match":{"exactSegments":false},"mode":"spree_solidus_html"}]},{"id":"square-online","name":"Square Online Storefronts","category":"commerce-social","description":"Extracts Square Online storefront product JSON-LD, Microdata, and __BOOTSTRAP_STATE__ storeInfo/commerceLinks hydration while rejecting empty SPA shells.","domains":["www.pessosices.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.pessosices.com/product/ice-cream-gelato/92"],"htmlRoutes":[{"id":"square-online","match":{"exactSegments":false},"mode":"square_online_html"}]},{"id":"square-toast-menu","name":"Square Online Restaurant & Toast Online Ordering Menus","category":"commerce-social","description":"Extracts Square Online restaurant __BOOTSTRAP_STATE__ menus and Toast order.toasttab.com online ordering menus while rejecting Cloudflare challenges and empty shells.","domains":["order.toasttab.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR","https://rinconmx-restaurant.square.site/"],"htmlRoutes":[{"id":"square-toast-menu","match":{"exactSegments":false},"mode":"square_toast_menu_html"}]},{"id":"squarespace-commerce","name":"Squarespace Commerce Storefronts","category":"commerce-social","description":"Detects Squarespace Commerce storefronts structurally and formats ?format=json-pretty product/collection payloads and HTML fallback into GFM tables and normalized CatalogRecord arrays.","domains":["commerce.squarespace.com"],"universalEngine":true,"exampleUrls":["https://www.trice-co.com/shop/p/pink-flare-leggings"],"htmlRoutes":[{"id":"squarespace-commerce","match":{"exactSegments":false},"mode":"squarespace_html"}]},{"id":"sram-docs","name":"SRAM Technical Documentation (Fluid Topics)","category":"developer","description":"Extracts bounded Fluid Topics SSR HTML documentation from docs.sram.com, stripping inline data:image base64 blobs and error chrome while preserving breadcrumbs, model codes, and PDF manual links.","domains":["docs.sram.com"],"exampleUrls":["https://docs.sram.com/en-US/publications/2eIzVnWuTRM7vhoKQjadQr"],"htmlRoutes":[{"id":"sram-docs","match":{"exactSegments":false},"mode":"sram_docs_html"}]},{"id":"sram-models","name":"SRAM Component Models (www.sram.com)","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical component specification tables from www.sram.com/*/sram/models/* pages.","domains":["www.sram.com","sram.com"],"exampleUrls":["https://www.sram.com/en/sram/models/rd-xx-e-b1","https://www.sram.com/en/service/models/rd-gx-1-b1"],"htmlRoutes":[{"id":"sram-models","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["sram","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]},{"pathSegments":["service","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":[".product-detail h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main.product-detail",".product-detail","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"stackexchange-qa","name":"Stack Overflow & Stack Exchange Q&A","category":"developer","description":"Upgrades Stack Overflow / Stack Exchange URLs to keyless API v2.3 native Markdown (with HTML fallback), sorting the Accepted Answer first.","domains":["stackoverflow.com","www.stackoverflow.com","serverfault.com","superuser.com","askubuntu.com","mathoverflow.net","stackapps.com","*.stackexchange.com"],"exampleUrls":["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"],"match":{"hostMap":{"param":"siteParam","stripWww":true,"exact":{"stackoverflow.com":"stackoverflow","serverfault.com":"serverfault","superuser.com":"superuser","askubuntu.com":"askubuntu","mathoverflow.net":"mathoverflow","stackapps.com":"stackapps"},"suffixSubdomain":".stackexchange.com"},"exactSegments":false,"pathSegments":[{"param":"qPrefix","allowValues":["questions","q"]},{"param":"qid","charset":"digits"}]},"twin":{"fetchUrl":"https://api.stackexchange.com/2.3/questions/{qid}?site={siteParam}&filter=%2120aKG._8Oscv%2A6dguVOli","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags"},"score":{"paths":["score"],"default":"0"},"tags":{"paths":["tags"],"limit":8,"itemWrap":"`","join":", "},"qMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"qHtmlMd":{"paths":["body"],"format":"html_to_md"},"qMd":{"template":"{qMdRaw}","whenVars":["qMdRaw"],"fallbackVar":"qHtmlMd"},"link":{"paths":["link"],"requireHttps":true}},"requireVars":["qMd"],"titleTemplate":"{title}","metaLine":[{"label":"Votes","template":"{score}"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Question","textVar":"qMd"},{"heading":"","subsectionsArrayPath":"answers","sortBy":{"boolDescField":"is_accepted","numDescField":"score"},"limit":8,"requireItemVar":"ansMd","subsectionHeadingTemplate":"Answer {index1} (Score: {scoreLabel})","subsectionAltWhenVar":"acceptedFlag","subsectionAltHeadingTemplate":"✅ Accepted Answer (Score: {scoreLabel})","subsectionBodyVar":"ansMd","itemVars":{"ansMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"ansHtmlMd":{"paths":["body"],"format":"html_to_md"},"ansMd":{"template":"{ansMdRaw}","whenVars":["ansMdRaw"],"fallbackVar":"ansHtmlMd"},"ansScore":{"paths":["score"],"default":"0"},"ansAuthor":{"paths":["owner.display_name"],"format":"strip_tags"},"scoreLabel":{"template":"{ansScore} — by {ansAuthor}","whenVars":["ansAuthor"],"fallbackVar":"ansScore"},"acceptedFlag":{"paths":["is_accepted"],"format":"bool_map","trueValue":"1","falseValue":""}}}],"linksVars":["link"]},"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["questions",{"param":"qid","charset":"digits"}]},"mode":"stackexchange_html"}]},{"id":"staffing-ats-pack","name":"Staffing ATS Pack (Crelate, JobDiva, Ceipal)","category":"jobs","description":"Extracts public staffing job boards and postings from Crelate, JobDiva, and Ceipal while rejecting disabled portals (Organization Portal Disabled) and error shells.","domains":["jobs.crelate.com","app.crelate.com","*.jobdiva.com","*.ceipal.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://jobs.crelate.com/portal/promotive/rss","https://jobs.crelate.com/portal/promotive","https://www1.jobdiva.com/"],"routes":[{"match":{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/portal/","pathSuffix":"/rss","exactSegments":false},"twin":{"id":"staffing-ats-pack-crelate-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Crelate Staffing Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","location":"{loc}","postedAt":"{pubDate}","source":"crelate"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["*.ceipal.com"],"anyOf":[{"pathPrefix":"/jobs/api/","exactSegments":false},{"pathPrefix":"/api/","exactSegments":false}]},{"hosts":["*.jobdiva.com"],"pathPrefix":"/portal/api/","exactSegments":false}]},"twin":{"id":"staffing-ats-pack","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"staffing_ats_json"}}],"htmlRoutes":[{"id":"staffing-ats-pack","mode":"staffing_ats_pack_html","match":{"exactSegments":false}}]},{"id":"stamped-loox-junip","name":"Stamped, Loox & Junip Product Reviews","category":"commerce-social","description":"Extracts public Stamped, Junip, and Loox storefront API review JSON payloads without hitting disallowed loox.io/widget paths.","domains":["stamped.io","api.juniphq.com","apid.juniphq.com","storefront-api.loox.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stamped.io/api/widget/reviews?sId=291293&apiKey=a23ad1ea-e527-4a21-9a95-37fefe0ff5cd&productId=8317758832957&page=1&take=10"],"routes":[{"match":{"hosts":["stamped.io"],"pathEquals":["/api/widget/reviews","/api/widget/reviews/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"anyOf":[{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathEquals":["/v1/product_reviews","/v1/display_settings"]},{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathSegments":["v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"hosts":["storefront-api.loox.io"],"pathSegments":["storefront","v1","store",{"param":"storeId","charset":"alnum_dash","minLen":2,"maxLen":80},{"param":"endpoint","allowValues":["product-reviews","bottomline"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}}],"htmlRoutes":[{"id":"stamped-loox-junip","match":{"exactSegments":false},"mode":"stamped_loox_junip_html"}]},{"id":"state-court-portals","name":"State Court Portals","category":"public-records","description":"Extracts public state court appellate pages, orders, and opinions (www.txcourts.gov) while honestly detecting WAF, login, and SPA barriers on research.txcourts.gov.","domains":["research.txcourts.gov","www.txcourts.gov"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.txcourts.gov/supreme/orders-opinions/","https://research.txcourts.gov/CourtRecordsSearch/#!/home"],"htmlRoutes":[{"id":"state-court-portals","match":{"hosts":["research.txcourts.gov","www.txcourts.gov"]},"mode":"state_court_portals_html"}]},{"id":"state-legislatures","name":"State Legislatures (Open States & LegiScan)","category":"public-records","description":"Official Open States v3 API and LegiScan API adapter for state bills, sessions, legislators, and jurisdictions with HTML fallback.","domains":["openstates.org","www.openstates.org","v3.openstates.org","legiscan.com","www.legiscan.com","api.legiscan.com"],"auth_mode":"key","exampleUrls":["https://v3.openstates.org/bills/tx/89/HB%201","https://api.legiscan.com/?op=getBill&id=1167968"],"routes":[{"match":{"hosts":["v3.openstates.org"],"anyOf":[{"pathPrefix":"/bills"},{"pathPrefix":"/jurisdictions"},{"pathPrefix":"/people"},{"pathPrefix":"/events"},{"pathPrefix":"/committees"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["openstates.org","www.openstates.org"],"exactSegments":false,"pathSegments":[{"param":"state","charset":"alnum","minLen":2,"maxLen":2,"transform":"lower"},"bills",{"param":"session","charset":"url_seg","minLen":1,"maxLen":40},{"param":"billId","charset":"url_seg","minLen":1,"maxLen":40}]},"twin":{"fetchUrl":"https://v3.openstates.org/bills/{state}/{session}/{billId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["api.legiscan.com"],"queryParams":[{"name":"op","param":"op","charset":"alnum","minLen":3,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}}],"htmlRoutes":[{"id":"state-legislatures","match":{"hosts":["openstates.org","www.openstates.org","legiscan.com","www.legiscan.com"],"exactSegments":false},"mode":"state_legislatures_html"}]},{"id":"state-sos-business","name":"State Secretary of State Business Registries","category":"public-records","description":"Extracts public state business registry filings (DE, CA, FL, TX) with strict robots.txt enforcement, rate pacing, and WAF/Incapsula/Cloudflare rejection.","domains":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://comptroller.texas.gov/taxes/franchise/"],"routes":[{"match":{"hosts":["bizfileonline.sos.ca.gov"],"exactSegments":false,"pathSegments":["search","business",{"param":"recordId","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://bizfileonline.sos.ca.gov/api/Records/businesssearch/{recordId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}},{"match":{"hosts":["bizfileonline.sos.ca.gov"],"pathPrefix":"/api/Records/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}}],"htmlRoutes":[{"id":"state-sos-business","match":{"hosts":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"exactSegments":false},"mode":"state_sos_html"}]},{"id":"state-workforce-boards","name":"State Workforce & Public Job Boards","category":"jobs","description":"Extracts structured public job postings from state workforce portals (jobs.myflorida.com, statejobs.ny.gov, calcareers.ca.gov, usnlx.com) with Rule 5 honest fallbacks.","domains":["statejobs.ny.gov","calcareers.ca.gov","usnlx.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://jobs.myflorida.com/job/TALLAHASSEE-Attorney-FL-32301/1425569100/","https://statejobs.ny.gov/public/vacancyDetailsView.cfm?id=229697"],"htmlRoutes":[{"id":"state-workforce-boards","mode":"state_workforce_boards_html","match":{"excludeHosts":["governmentjobs.com","*.governmentjobs.com","workintexas.com","*.workintexas.com"],"anyOf":[{"hosts":["jobs.myflorida.com","statejobs.ny.gov","calcareers.ca.gov","www.calcareers.ca.gov","usnlx.com","www.usnlx.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".usnlx.com","param":"state","reserved":["www","api","login"]},"exactSegments":false}]}}]},{"id":"status-page-pack","name":"Status Page Pack","category":"developer","description":"Extracts service status, components, and incidents from Instatus, Better Stack, Status.io, and Cachet public JSON endpoints and SSR HTML pages.","domains":["deno.instatus.com","status.instatus.com","status.betterstack.com","status.raycast.com","status.gitlab.com","demo.cachethq.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://deno.instatus.com/","https://deno.instatus.com/v2/components.json","https://status.betterstack.com/","https://status.gitlab.com/1.0/status/5b36dc6502d06804c08349f7","https://demo.cachethq.io/api/v1/components"],"routes":[{"match":{"pathEquals":["/summary.json","/v2/components.json","/v2/incidents.json","/index.json","/api/v1/components","/api/v1/incidents","/api/v1/status"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}},{"match":{"exactSegments":true,"pathSegments":["1.0","status",{"param":"statusId","charset":"alnum","minLen":16,"maxLen":48}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}}],"htmlRoutes":[{"id":"status-page-pack","match":{"exactSegments":false},"mode":"status_page_pack_html"}]},{"id":"stockist","name":"Stockist Dealer Locator","category":"commerce-social","description":"Extracts public Stockist store/dealer locator JSON payloads and discovers Stockist widget tags on merchant HTML pages.","domains":["stockist.co","www.stockist.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stockist.co/api/v1/map_93wm75n3/locations/all"],"routes":[{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}},{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations","all"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}}],"htmlRoutes":[{"id":"stockist","match":{"exactSegments":false},"mode":"stockist_html"}]},{"id":"storemapper","name":"Storemapper Dealer Locator","category":"commerce-social","description":"Extracts public Storemapper store locator JSON feeds and discovers Storemapper widget IDs on merchant HTML pages.","domains":["www.storemapper.co","storemapper.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.storemapper.co/api/users/12873/stores.json"],"routes":[{"match":{"hosts":["www.storemapper.co","storemapper.co"],"pathSegments":["api","users",{"param":"userId","charset":"alnum_dash","minLen":1,"maxLen":64},"stores.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storemapper_locations"}}],"htmlRoutes":[{"id":"storemapper","match":{"exactSegments":false},"mode":"storemapper_html"}]},{"id":"storerocket","name":"StoreRocket Dealer Locator","category":"commerce-social","description":"Extracts public StoreRocket store locator JSON payloads and discovers StoreRocket widget IDs on merchant HTML pages.","domains":["storerocket.io","www.storerocket.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storerocket.io/api/user/OdJERNO8WE/locations"],"routes":[{"match":{"hosts":["storerocket.io","www.storerocket.io"],"pathSegments":["api","user",{"param":"userId","charset":"alnum_dash","minLen":2,"maxLen":64},"locations"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storerocket_locations"}}],"htmlRoutes":[{"id":"storerocket","match":{"exactSegments":false},"mode":"storerocket_html"}]},{"id":"strava-segments","name":"Strava Public Segments","category":"commerce-social","description":"Extracts Strava segments via authenticated API v3 (/api/v3/segments/* with STRAVA_ACCESS_TOKEN or Part 2 strava Virtual OAuth MCP) and public /segments/* __NEXT_DATA__ HTML fallback, rejecting /register/free authwalls.","domains":["www.strava.com","strava.com"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://www.strava.com/segments/229781","https://www.strava.com/api/v3/segments/229781"],"routes":[{"match":{"hosts":["www.strava.com","strava.com"],"exactSegments":true,"pathSegments":["api","v3","segments",{"param":"segmentId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576,"auth_mode":"key"},"extract":{"jsonMode":"strava_segments_json"}}],"htmlRoutes":[{"id":"strava-segments","mode":"strava_segments_html","match":{"hosts":["www.strava.com","strava.com"],"pathPrefix":"/segments/","exactSegments":false}}]},{"id":"supremecourt-gov","name":"U.S. Supreme Court Opinions, Dockets & Orders","category":"public-records","description":"Robots-enforced HTML adapter for Supreme Court slip opinions, public docket files, and orders of the Court.","domains":["supremecourt.gov","www.supremecourt.gov"],"auth_mode":"html","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.supremecourt.gov/opinions/slipopinion/24","https://www.supremecourt.gov/docket/docketfiles/html/public/23-939.html","https://www.supremecourt.gov/orders/ordersofthecourt/24"],"htmlRoutes":[{"id":"supremecourt-gov","match":{"anyOf":[{"pathPrefix":"/opinions/"},{"pathPrefix":"/docket/"},{"pathPrefix":"/orders/"}]},"mode":"supremecourt_html"}]},{"id":"taleo-full","name":"Oracle Taleo Career Section Job Search","category":"jobs","description":"Formats Oracle Taleo career-section job boards via the public /careersection/rest/jobboard/searchjobs endpoint (portal id from the page: title, location, posted date, contest number, total open requisitions) plus SSR FreeMarker /careersection/
/jobsearch.ftl and jobdetail.ftl HTML fallbacks.","domains":["hdr.taleo.net","*.taleo.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://hdr.taleo.net/careersection/rest/jobboard/searchjobs?lang=en&portal=101430233§ion=ex","https://chicago.taleo.net/careersection/100/jobsearch.ftl"],"routes":[{"match":{"hostSubdomain":{"suffix":".taleo.net","param":"tenant","reserved":["www"]},"pathEquals":["/careersection/rest/jobboard/searchjobs"],"queryParams":[{"name":"portal","param":"portal","charset":"digits","minLen":4,"maxLen":20},{"name":"section","param":"section","charset":"slug","minLen":1,"maxLen":40,"optional":true}]},"twin":{"fetchUrl":"https://{host}/careersection/rest/jobboard/searchjobs?lang=en&portal={portal}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","headers":{"tz":"GMT-06:00","tzname":"America/Chicago"},"requestBody":"{\"multilineEnabled\":false,\"sortingSelection\":{\"sortBySelectionParam\":\"3\",\"ascendingSortingOrder\":\"false\"},\"fieldData\":{\"fields\":{\"KEYWORD\":\"\",\"LOCATION\":\"\"},\"valid\":true},\"filterSelectionParam\":{\"searchFilterSelections\":[]},\"advancedSearchFiltersSelectionParam\":{\"searchFilterSelections\":[]},\"pageNo\":1}","maxBytes":4194304},"extract":{"jsonMode":"taleo_searchjobs_json"}}],"htmlRoutes":[{"id":"taleo-full","mode":"taleo_full_html","match":{"pathPrefix":"/careersection/","exactSegments":false}}]},{"id":"target","name":"Target","category":"commerce-social","description":"Extracts Target product pages from schema.org Product JSON-LD (including entity-encoded ld+json) and live Target SSR HTML metadata without calling disallowed redsky endpoints.","domains":["target.com","www.target.com","redsky.target.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.target.com/p/campus-lab-university-of-arkansas-at-monticello-official-uam-boll-weevils-logo-unisex-adult-pull-over-hoodie/-/A-1000000076"],"htmlRoutes":[{"id":"target","match":{"hosts":["target.com","www.target.com"]},"mode":"target_html"}]},{"id":"teamtailor","name":"Teamtailor Career Portals","category":"jobs","description":"Upgrades [.na].teamtailor.com career roots to their /jobs.rss feed with locations and departments.","domains":["*.teamtailor.com"],"exampleUrls":["https://stratio.teamtailor.com/","https://stratio.teamtailor.com/jobs"],"match":{"hostSubdomain":{"suffix":".teamtailor.com","param":"org","stripOptional2LetterRegion":true,"reserved":["www","app","career"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"teamtailor","fetchUrl":"https://{host}/jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"org","titleTemplate":"{channelTitle} — Open Roles ({itemCount})","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["tt:department","category"],"default":"-"},"loc":{"tags":["tt:location","g:location","location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"id":"tech-job-boards-jsonld","name":"Tech Job Boards (BuiltIn, Wellfound, Dice)","category":"jobs","description":"Extracts JobPosting JSON-LD (including HTML-entity-encoded application/ld+json) from BuiltIn, Wellfound, and Dice while honoring robots.txt and rejecting Cloudflare Turnstile/SPA shells.","domains":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://builtin.com/job/executive-employee-social-media-vice-president/12592638"],"htmlRoutes":[{"id":"tech-job-boards-jsonld","mode":"tech_job_boards_jsonld_html","match":{"hosts":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"exactSegments":false}}]},{"id":"terraform-registry","name":"Terraform Registry","category":"developer","description":"Upgrades registry.terraform.io provider and module pages to the official keyless /v1/ JSON API with versions, documentation entries, inputs, outputs, and README.","domains":["registry.terraform.io"],"exampleUrls":["https://registry.terraform.io/providers/hashicorp/random","https://registry.terraform.io/providers/hashicorp/random/3.8.1","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/5.1.0"],"routes":[{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","docs"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","submodules","examples"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}}]},{"id":"ticketmaster-discovery","name":"Ticketmaster Discovery API","category":"commerce-social","description":"Extracts Ticketmaster events, venues, and attractions via the official Ticketmaster Discovery API v2 with Schema.org Event JSON-LD HTML fallback.","domains":["ticketmaster.com","www.ticketmaster.com","app.ticketmaster.com"],"auth_mode":"key","exampleUrls":["https://app.ticketmaster.com/discovery/v2/events.json?keyword=concert&countryCode=US","https://www.ticketmaster.com/demo-tour-los-angeles-california-12-01-2026/event/3C006457CF441F75"],"routes":[{"match":{"hosts":["app.ticketmaster.com"],"pathPrefix":"/discovery/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}},{"match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"scanSegment":{"afterLiteral":"event","param":"eventId","charset":"alnum","minLen":6,"maxLen":32}},"twin":{"fetchUrl":"https://app.ticketmaster.com/discovery/v2/events/{eventId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}}],"htmlRoutes":[{"id":"ticketmaster-discovery","match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"exactSegments":false},"mode":"ticketmaster_html"}]},{"id":"townnews-blox","name":"TownNews BLOX CMS","category":"commerce-social","description":"Extracts TownNews BLOX ?f=json news asset twins and discovers tncms/bloxcms markers on local publisher HTML pages.","domains":["lancasteronline.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lancasteronline.com/sports/highschool/football/district-3-gold-piaa-glory-up-for-grabs-for-4-l-l-league-football-teams/article_a6f1fede-b459-44f2-a5cd-8224c48f76a8.html"],"routes":[{"match":{"hosts":["lancasteronline.com"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"townnews_blox_json"}}],"htmlRoutes":[{"id":"townnews-blox","match":{"exactSegments":false},"mode":"townnews_blox_html"}]},{"id":"tq-ebike","name":"TQ e-Mobility Products & Support","category":"commerce-social","description":"Extracts Product JSON-LD, drive system technical specs, and support documentation from www.tq-ebike.com product and help-support pages.","domains":["www.tq-ebike.com","tq-ebike.com"],"exampleUrls":["https://www.tq-ebike.com/en/e-bike-system/hpr50/"],"htmlRoutes":[{"id":"tq-ebike","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["products",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["e-bike-system",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["help-support",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main","article",".tx-specs",".site-content","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"trade-gov-csl","name":"Trade.gov Consolidated Screening List","category":"public-records","description":"Official keyed Trade.gov Consolidated Screening List (CSL) API adapter (TRADE_GOV_CSL_API_KEY via subscription-key header) with HTML fallback on www.trade.gov.","domains":["data.trade.gov","api.trade.gov","www.trade.gov","trade.gov"],"auth_mode":"key","exampleUrls":["https://data.trade.gov/consolidated_screening_list/v1/search?q=huawei","https://www.trade.gov/consolidated-screening-list"],"routes":[{"match":{"hosts":["data.trade.gov","api.trade.gov"],"pathPrefix":"/consolidated_screening_list/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"trade_gov_csl_json"}}],"htmlRoutes":[{"id":"trade-gov-csl","match":{"hosts":["www.trade.gov","trade.gov"],"exactSegments":false},"mode":"trade_gov_csl_html"}]},{"id":"trailforks-mtb-project","name":"Trailforks & MTB Project Trail Intelligence","category":"commerce-social","description":"Official Trailforks API v1 key-authenticated twin + HTML fallback for Trailforks and MTB Project trail reports (honoring mtbproject.com Crawl-delay: 60 and Disallow: /data*).","domains":["trailforks.com","www.trailforks.com","mtbproject.com","www.mtbproject.com"],"auth_mode":"key","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.trailforks.com/trails/betasso-preserve-canyon-loop/","https://www.trailforks.com/api/1/trail?id=40401","https://www.mtbproject.com/trail/12376/buffehr-creek-trail"],"routes":[{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathEquals":["/api/1/trail","/api/1/trail/","/api/1/trails","/api/1/trails/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}},{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathSegments":["trails",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}],"exactSegments":false},"twin":{"fetchUrl":"https://www.trailforks.com/api/1/trail?id={slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}}],"htmlRoutes":[{"id":"trailforks-mtb-project","match":{"exactSegments":false},"mode":"trailforks_mtb_html"}]},{"id":"transitland-gtfs","name":"Transitland GTFS Registry","category":"public-records","description":"Transitland v2 REST API (apikey header on apex transit.land) for GTFS feeds/operators/routes/stops with www.transit.land/data/feeds HTML fallback.","domains":["transit.land","www.transit.land"],"auth_mode":"key","exampleUrls":["https://transit.land/api/v2/rest/feeds?limit=1","https://www.transit.land/data/feeds/f-9q9-bart"],"routes":[{"match":{"hosts":["transit.land"],"pathPrefix":"/api/v2/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}},{"match":{"hosts":["www.transit.land","transit.land"],"exactSegments":true,"pathSegments":["data","feeds",{"param":"feedId","charset":"alnum_dash","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://transit.land/api/v2/rest/feeds/{feedId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}}],"htmlRoutes":[{"id":"transitland-gtfs","match":{"hosts":["www.transit.land","transit.land"],"exactSegments":false},"mode":"transitland_html"}]},{"id":"treasury-fiscal-data","name":"U.S. Treasury Fiscal Data","category":"finance","description":"Upgrades fiscaldata.treasury.gov dataset pages to keyless api.fiscaldata.treasury.gov JSON endpoints with metadata-labeled GFM tables and HTML fallback.","domains":["fiscaldata.treasury.gov","api.fiscaldata.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/debt-to-the-penny","https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1"],"routes":[{"match":{"hosts":["api.fiscaldata.treasury.gov"],"pathPrefix":"/services/api/fiscal_service/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}},{"match":{"hosts":["fiscaldata.treasury.gov"],"pathPrefix":"/datasets/debt-to-the-penny"},"twin":{"fetchUrl":"https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page[size]=1","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}}],"htmlRoutes":[{"id":"treasury-fiscal-data","match":{"hosts":["fiscaldata.treasury.gov"],"exactSegments":false},"mode":"treasury_fiscal_html"}]},{"id":"trustpilot","name":"Trustpilot Business Reviews","category":"commerce-social","description":"Extracts Trustpilot business summary and review records from __NEXT_DATA__ or JSON-LD while honoring robots.txt policies.","domains":["trustpilot.com","www.trustpilot.com"],"auth_mode":"html","exampleUrls":["https://www.trustpilot.com/review/shopify.com"],"htmlRoutes":[{"id":"trustpilot","match":{"hosts":["trustpilot.com","www.trustpilot.com"],"exactSegments":false},"mode":"trustpilot_html"}]},{"id":"twitch-kick","name":"Twitch & Kick Streaming","category":"commerce-social","description":"Extracts Twitch Helix (Bearer + Client-Id) and Kick public v1/v2 channel APIs plus Twitch/Kick channel HTML.","domains":["api.twitch.tv","www.twitch.tv","twitch.tv","api.kick.com","kick.com","www.kick.com"],"auth_mode":"key","exampleUrls":["https://kick.com/api/v2/channels/kick","https://www.twitch.tv/twitch","https://kick.com/kick","https://api.twitch.tv/helix/users?login=twitch"],"routes":[{"match":{"hosts":["api.twitch.tv"],"pathPrefix":"/helix/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["api.kick.com"],"pathPrefix":"/public/v1/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["kick.com","www.kick.com"],"exactSegments":true,"pathSegments":["api","v2","channels",{"param":"slug","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub"},"extract":{"jsonMode":"twitch_kick_json"}}],"htmlRoutes":[{"id":"twitch-kick","match":{"hosts":["www.twitch.tv","twitch.tv","kick.com","www.kick.com"],"exactSegments":false},"mode":"twitch_kick_html"}]},{"id":"tyler-energov","name":"Tyler Technologies EnerGov SelfService","category":"public-records","description":"Extracts public permit, plan, and license records from Tyler EnerGov SelfService APIs and SSR HTML while rejecting empty AngularJS shells and WAF challenges.","domains":["energovweb.capecoral.gov","energovcss.miamibeachfl.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://energovweb.capecoral.gov/EnerGovProd/selfservice/api/energov/permits","https://energovweb.capecoral.gov/EnerGovProd/selfservice","https://energovcss.miamibeachfl.gov/energovprod/selfservice/"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/EnerGov_Prod/SelfService/api/"},{"pathPrefix":"/EnerGovProd/selfservice/api/"},{"pathPrefix":"/energovprod/selfservice/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"tyler_energov_json"}}],"htmlRoutes":[{"id":"tyler-energov","match":{"exactSegments":false},"mode":"tyler_energov_html"}]},{"id":"ukg-paylocity-dover","name":"UKG Pro, Paylocity & Dover Job Boards","category":"jobs","description":"Extracts structured open roles from Paylocity (/recruiting/api/feed/jobs & window.pageData), UKG Pro (*/JobBoard/* only, never / or */JobBoardView), and Dover HTML/SSR __NEXT_DATA__ (never /api/).","domains":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com"],"exampleUrls":["https://recruiting.paylocity.com/Recruiting/Jobs/All/cfe0e892-760a-4f34-b732-e6d0be968d4f"],"routes":[{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/all/","scanSegment":{"afterLiteral":"all","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"https://recruiting.paylocity.com/recruiting/api/feed/jobs/{guid}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}},{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/api/feed/jobs/","scanSegment":{"afterLiteral":"jobs","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}}],"htmlRoutes":[{"id":"ukg-paylocity-dover","mode":"ukg_pro_html","match":{"hosts":["recruiting.ultipro.com"],"pathContainsSegment":"JobBoard","minSegments":3}},{"id":"ukg-paylocity-dover","mode":"paylocity_html","match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/"}},{"id":"ukg-paylocity-dover","mode":"dover_html","match":{"anyOf":[{"hosts":["app.dover.com"],"exactSegments":false,"pathSegments":["jobs",{"param":"org","charset":"slug","minLen":1,"maxLen":120}]},{"hosts":["jobs.dover.com"],"minSegments":1,"reservedFirstSegment":["api","apply","static","assets","_next","login"]}]}}]},{"id":"us-cfr-govinfo","name":"U.S. CFR & GovInfo","category":"public-records","description":"Bypasses the empty Angular /app/details/ SPA on govinfo.gov by fetching static /content/pkg//html/*.htm documents or /wssearch/getContentDetail summary JSON.","domains":["www.govinfo.gov","govinfo.gov"],"exampleUrls":["https://www.govinfo.gov/app/details/CFR-2023-title16-vol2/CFR-2023-title16-vol2-part1500","https://www.govinfo.gov/app/details/CFR-2023-title16-vol2","https://www.govinfo.gov/wssearch/getContentDetail?packageId=CFR-2023-title16-vol2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"param":"granuleId","charset":"pkg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{granuleId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{granuleId} ({pkgId})"}},{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{pkgId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{pkgId}"}},{"match":{"pathEquals":["/wssearch/getContentDetail"],"queryParams":[{"name":"packageId","param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"name":"granuleId","param":"granuleId","charset":"pkg","optional":true,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["title","packageId"],"vars":{"title":{"paths":["title"],"fallbackTemplate":"{pkgId}","trim":true},"packageId":{"paths":["packageId"],"fallbackTemplate":"{pkgId}"},"collection":{"paths":["collectionName","collection","collectionCode"]},"category":{"paths":["category"]},"dateIssued":{"paths":["dateIssued"]},"lastModified":{"paths":["lastModified"],"sliceMax":10},"authors":{"paths":["governmentAuthor","metadata.agency"],"join":", ","limit":10},"granuleCount":{"paths":["granuleCount"],"format":"int_comma"},"pdfLink":{"paths":["download.pdfLink"],"requireHttps":true},"htmlLink":{"paths":["download.htmlLink","download.htmLink"],"requireHttps":true},"xmlLink":{"paths":["download.xmlLink"],"requireHttps":true},"txtLink":{"paths":["download.txtLink"],"requireHttps":true},"zipLink":{"paths":["download.zipLink"],"requireHttps":true},"modsLink":{"paths":["download.modsLink"],"requireHttps":true}},"titleTemplate":"{title}","authorVar":"authors","publishedTimeVar":"dateIssued","bullets":[{"label":"Package ID","template":"`{packageId}`","whenVar":"packageId"},{"label":"Collection","template":"{collection}","whenVar":"collection"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Date Issued","template":"{dateIssued}","whenVar":"dateIssued"},{"label":"Last Modified","template":"{lastModified}","whenVar":"lastModified"},{"label":"Government Author","template":"{authors}","whenVar":"authors"},{"label":"Granules","template":"{granuleCount}","whenVar":"granuleCount"},{"label":"PDF Download","template":"{pdfLink}","whenVar":"pdfLink"},{"label":"HTML Download","template":"{htmlLink}","whenVar":"htmlLink"},{"label":"XML Download","template":"{xmlLink}","whenVar":"xmlLink"},{"label":"Text Download","template":"{txtLink}","whenVar":"txtLink"},{"label":"ZIP Archive","template":"{zipLink}","whenVar":"zipLink"}],"linksVars":["pdfLink","htmlLink","xmlLink","txtLink","zipLink","modsLink"]}}]},{"id":"usajobs","name":"USAJOBS Federal Jobs","category":"jobs","description":"Extracts federal job search listings and codelists from data.usajobs.gov (with Authorization-Key + User-Agent) and JobPosting/HTML job details from www.usajobs.gov.","domains":["data.usajobs.gov","www.usajobs.gov","usajobs.gov"],"auth_mode":"key","user_agent_profile":"usajobs","strict_robots":true,"exampleUrls":["https://data.usajobs.gov/api/search?Keyword=software","https://www.usajobs.gov/job/893002300"],"routes":[{"match":{"hosts":["data.usajobs.gov"],"anyOf":[{"pathPrefix":"/api/search"},{"pathPrefix":"/api/codelist/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usajobs_json"}}],"htmlRoutes":[{"id":"usajobs","mode":"usajobs_html","match":{"hosts":["www.usajobs.gov","usajobs.gov"],"exactSegments":false}}]},{"id":"usaspending","name":"USAspending.gov Federal Awards","category":"public-records","description":"Upgrades usaspending.gov/award/ pages to api.usaspending.gov/api/v2/awards// JSON details.","domains":["www.usaspending.gov","usaspending.gov"],"exampleUrls":["https://www.usaspending.gov/award/CONT_AWD_ZSMG_9700_HTC71114DR027_9700"],"match":{"exactSegments":false,"pathSegments":["award",{"param":"awardId","charset":"pkg","minLen":4,"maxLen":140}]},"twin":{"fetchUrl":"https://api.usaspending.gov/api/v2/awards/{awardId}/","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["generated_unique_award_id","piid","fain"],"vars":{"idLabel":{"paths":["piid","fain","uri"],"fallbackTemplate":"{awardId}"},"category":{"paths":["category"],"default":"Federal Award"},"recipient":{"paths":["recipient.recipient_name"]},"awardingAgency":{"paths":["awarding_agency.toptier_agency.name"]},"fundingAgency":{"paths":["funding_agency.toptier_agency.name"]},"obligation":{"paths":["total_obligation"],"format":"usd_compact"},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"startDate":{"paths":["period_of_performance.start_date"]},"hasPop":{"paths":["period_of_performance.start_date","period_of_performance.end_date"]},"startOrQ":{"paths":["period_of_performance.start_date"],"default":"?"},"endOrQ":{"paths":["period_of_performance.end_date"],"default":"?"}},"titleTemplate":"{idLabel} — {recipient} (USAspending)","titleWhenVar":"recipient","titleFallbackTemplate":"{idLabel} (USAspending)","descriptionVar":"descShort","publishedTimeVar":"startDate","bullets":[{"label":"Award ID","template":"`{idLabel}` ({category})"},{"label":"Recipient","template":"{recipient}","whenVar":"recipient"},{"label":"Total Obligation","template":"{obligation}","whenVar":"obligation"},{"label":"Awarding Agency","template":"{awardingAgency}","whenVar":"awardingAgency"},{"label":"Funding Agency","template":"{fundingAgency}","whenVar":"fundingAgency"},{"label":"Period of Performance","template":"{startOrQ} → {endOrQ}","whenVar":"hasPop"}],"sections":[{"heading":"Award Description","textVar":"desc"}]}},{"id":"uscode-house","name":"U.S. Code (House OLRC)","category":"public-records","description":"HTML extractor for U.S. House Office of the Law Revision Counsel United States Code sections, title browse trees, and legacy /view.xhtml pages.","domains":["uscode.house.gov"],"auth_mode":"pub","exampleUrls":["https://uscode.house.gov/us/usc/t17/s107/","https://uscode.house.gov/browse.html","https://uscode.house.gov/us/usc/t17/frontmatter/"],"htmlRoutes":[{"id":"uscode-house","match":{"anyOf":[{"pathPrefix":"/us/usc/"},{"pathEquals":["/browse.html"]},{"pathPrefix":"/browse-tree/"},{"pathEquals":["/view.xhtml"]}]},"mode":"uscode_house_html"}]},{"id":"usda-nass-fdc","name":"USDA FoodData Central & NASS QuickStats","category":"research-health","description":"USDA FoodData Central REST API v1 (/fdc/v1/...) and NASS QuickStats (/api/api_GET/) adapter with Angular SPA shell guard.","domains":["quickstats.nass.usda.gov","fdc.nal.usda.gov","api.nal.usda.gov"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://api.nal.usda.gov/fdc/v1/food/171705","https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=3","https://quickstats.nass.usda.gov/api/api_GET/?commodity_desc=CORN&year=2023&state_alpha=IA"],"routes":[{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":true,"pathSegments":["fdc","v1","food",{"param":"fdcId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://api.nal.usda.gov/fdc/v1/food/{fdcId}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":false,"pathPrefix":"/fdc/v1/foods"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["quickstats.nass.usda.gov"],"exactSegments":false,"pathEquals":["/api/api_GET","/api/api_GET/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"format":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_nass_json"}}],"htmlRoutes":[{"id":"usda-nass-fdc","match":{"hosts":["fdc.nal.usda.gov"],"exactSegments":false},"mode":"usda_fdc_html"}]},{"id":"usfs-blm-trails","name":"USFS & BLM Trails ArcGIS Services","category":"public-records","description":"US Forest Service (apps.fs.usda.gov) and BLM (gis.blm.gov) ArcGIS MapServer/FeatureServer layer metadata and /query feature adapter, scoped off *.arcgis.com.","domains":["apps.fs.usda.gov","gis.blm.gov"],"auth_mode":"pub","exampleUrls":["https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recreation_Offline/FeatureServer/0/query?where=1%3D1&outFields=*&resultRecordCount=1&f=json","https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recs_pts/MapServer/0?f=json","https://gis.blm.gov/arcgis/rest/services/transportation/BLM_Natl_GTLF_Public_Display/MapServer?f=json"],"routes":[{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","pathSuffix":"/query"},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","pathSuffix":"/query"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"defaultQueryParams":{"where":"1=1","outFields":"*","returnGeometry":"false","resultRecordCount":"25"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usfs_blm_trails_json"}},{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","arcgisRestLayer":true},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","arcgisRestLayer":true}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usfs_blm_trails_json"}}]},{"id":"usgs-earthquakes","name":"USGS Earthquake Hazards Program","category":"research-health","description":"USGS GeoJSON earthquake summary feeds, FDSNWS Event Query API, and eventpage JSON twins.","domains":["earthquake.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson","https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=5&minmagnitude=4.5","https://earthquake.usgs.gov/earthquakes/eventpage/us6000ue1k/executive"],"routes":[{"match":{"hosts":["earthquake.usgs.gov"],"anyOf":[{"pathPrefix":"/earthquakes/feed/"},{"pathPrefix":"/fdsnws/event/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_earthquakes_json"}},{"match":{"hosts":["earthquake.usgs.gov"],"exactSegments":false,"pathSegments":["earthquakes","eventpage",{"param":"eventId","charset":"alnum_dash","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"https://earthquake.usgs.gov/fdsnws/event/1/query?eventid={eventId}&format=geojson","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_earthquakes_json"}}]},{"id":"usgs-water","name":"USGS Water Services & OGC API","category":"research-health","description":"USGS NWIS Water Services (WaterML JSON and tab-delimited RDB) and api.waterdata.usgs.gov OGC API GeoJSON adapter.","domains":["waterservices.usgs.gov","api.waterdata.usgs.gov","waterdata.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://api.waterdata.usgs.gov/ogcapi/v0/collections/monitoring-locations?f=json","https://api.waterdata.usgs.gov/ogcapi/v0/collections?f=json"],"routes":[{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/","queryParams":[{"name":"format","param":"fmt","allowValues":["rdb","rdb,1.0"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"usgs_water_rdb"}},{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["api.waterdata.usgs.gov"],"pathPrefix":"/ogcapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["waterdata.usgs.gov"],"exactSegments":false,"pathSegments":["monitoring-location",{"param":"siteNo","charset":"digits","minLen":5,"maxLen":15}]},"twin":{"fetchUrl":"https://waterservices.usgs.gov/nwis/iv/?format=json&sites={siteNo}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_water_json"}}]},{"id":"usitc-hts","name":"USITC Harmonized Tariff Schedule","category":"public-records","description":"Extracts U.S. Harmonized Tariff Schedule (HTS) tariff lines, duty rates, and Chapter 99 / Section 301 footnotes from hts.usitc.gov reststop JSON endpoints with SPA shell guards.","domains":["hts.usitc.gov"],"auth_mode":"pub","exampleUrls":["https://hts.usitc.gov/reststop/search?keyword=bicycle","https://hts.usitc.gov/reststop/exportList?from=8712.00&to=8712.00&format=JSON&styles=false"],"routes":[{"match":{"hosts":["hts.usitc.gov"],"exactSegments":true,"pathEquals":["/reststop/search"],"queryParams":[{"name":"keyword","param":"keyword","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}},{"match":{"hosts":["hts.usitc.gov"],"exactSegments":true,"pathEquals":["/reststop/exportList"],"queryParams":[{"name":"from","param":"from","minLen":2,"maxLen":16},{"name":"to","param":"to","minLen":2,"maxLen":16},{"name":"format","param":"format","allowValues":["JSON","json"],"optional":true,"default":"JSON"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}},{"match":{"hosts":["hts.usitc.gov"],"pathPrefix":"/reststop/","excludeSegmentSuffixes":[".csv",".xlsx",".pdf"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}}],"htmlRoutes":[{"id":"usitc-hts","match":{"hosts":["hts.usitc.gov"],"exactSegments":false},"mode":"usitc_hts_html"}]},{"id":"usps-addresses","name":"USPS Addresses v3 Official API","category":"public-records","description":"USPS Addresses v3 API for address standardization, city/state, and ZIP lookup (USPS_ACCESS_TOKEN) with developers.usps.com HTML fallback.","domains":["apis.usps.com","apis-tem.usps.com","developers.usps.com"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC","https://apis.usps.com/addresses/v3/city-state?ZIPCode=20260"],"routes":[{"match":{"hosts":["apis.usps.com","apis-tem.usps.com"],"anyOf":[{"pathPrefix":"/addresses/v3/address"},{"pathPrefix":"/addresses/v3/city-state"},{"pathPrefix":"/addresses/v3/zipcode"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"usps_addresses_json"}}],"htmlRoutes":[{"id":"usps-addresses","match":{"hosts":["developers.usps.com"],"exactSegments":false},"mode":"usps_docs_html"}]},{"id":"uspto-patentsview","name":"USPTO PatentsView & Open Data Portal","category":"public-records","description":"USPTO Open Data Portal (api.uspto.gov) patent application and PatentsView API JSON adapter with HTML fallback.","domains":["patentsview.org","www.patentsview.org","search.patentsview.org","api.patentsview.org","api.uspto.gov","data.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.uspto.gov/api/v1/patent/applications/16330077","https://api.uspto.gov/api/v1/patent/applications/search?q=16330077"],"routes":[{"match":{"hosts":["api.uspto.gov"],"pathPrefix":"/api/v1/patent/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["api.patentsview.org"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patent",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patents",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}}],"htmlRoutes":[{"id":"uspto-patentsview","match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false},"mode":"uspto_patentsview_html"}]},{"id":"uspto-ppubs","name":"USPTO Patent Public Search (PPUBS)","category":"public-records","description":"USPTO Patent Public Search (ppubs.uspto.gov) HTML adapter rejecting empty SPA shells.","domains":["ppubs.uspto.gov","patft.uspto.gov"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://ppubs.uspto.gov/basic/"],"htmlRoutes":[{"id":"uspto-ppubs","match":{"hosts":["ppubs.uspto.gov","patft.uspto.gov"],"exactSegments":false},"mode":"uspto_ppubs_html"}]},{"id":"uspto-tsdr","name":"USPTO TSDR Trademark Status","category":"public-records","description":"USPTO Trademark Status & Document Retrieval (TSDR) API JSON adapter with keyless tsdr.uspto.gov/statusview HTML fallback.","domains":["tsdr.uspto.gov","tsdrapi.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://tsdrapi.uspto.gov/ts/cd/casestatus/sn78787878/info.json","https://tsdr.uspto.gov/statusview/sn78787878"],"routes":[{"match":{"hosts":["tsdrapi.uspto.gov"],"pathPrefix":"/ts/cd/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}},{"match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false,"pathSegments":["statusview",{"param":"caseNum","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://tsdrapi.uspto.gov/ts/cd/casestatus/{caseNum}/info.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}}],"htmlRoutes":[{"id":"uspto-tsdr","match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false},"mode":"uspto_tsdr_html"}]},{"id":"ustr-301","name":"USTR Section 301 Trade Actions","category":"public-records","description":"Extracts U.S. Trade Representative Section 301 investigation actions, tariff lists, exclusion notices, and RSS feeds from ustr.gov.","domains":["ustr.gov","www.ustr.gov"],"auth_mode":"pub","exampleUrls":["https://ustr.gov/issue-areas/enforcement/section-301-investigations/tariff-actions","https://ustr.gov/issue-areas/enforcement/section-301-investigations/section-301-china/investigation","https://ustr.gov/rss.xml"],"routes":[{"match":{"hosts":["ustr.gov","www.ustr.gov"],"pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ustr_301_rss_xml"}}],"htmlRoutes":[{"id":"ustr-301","match":{"hosts":["ustr.gov","www.ustr.gov"],"exactSegments":false},"mode":"ustr_301_html"}]},{"id":"va-lighthouse-facilities","name":"VA Lighthouse Facilities API","category":"research-health","description":"U.S. Department of Veterans Affairs Lighthouse Facilities API (VA_LIGHTHOUSE_API_KEY) with www.va.gov / developer.va.gov HTML fallback.","domains":["api.va.gov","sandbox-api.va.gov","www.va.gov","developer.va.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5","https://www.va.gov/find-locations"],"routes":[{"match":{"hosts":["api.va.gov","sandbox-api.va.gov"],"pathPrefix":"/services/va_facilities/v1/facilities"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"va_facilities_json"}}],"htmlRoutes":[{"id":"va-lighthouse-facilities","match":{"hosts":["www.va.gov","developer.va.gov"],"exactSegments":false},"mode":"va_facilities_html"}]},{"id":"vanilla-forums","name":"Vanilla Forums","category":"commerce-social","description":"Upgrades Vanilla Forums /discussion/{discussionID} URLs to same-origin /api/v2/discussions/{discussionID} JSON twins with HTML fallback.","domains":["forum.onshape.com","forum.polkaudio.com","forum.linuxfoundation.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://forum.onshape.com/discussion/32195/new-feature-codes","https://forum.onshape.com/api/v2/discussions/32195","https://forum.polkaudio.com/api/v2/discussions/163343"],"routes":[{"match":{"exactSegments":false,"pathSegments":["discussion",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/api/v2/discussions/{discussionID}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}}],"htmlRoutes":[{"id":"vanilla-forums","match":{"exactSegments":false},"mode":"vanilla_forums_html"}]},{"id":"vimeo","name":"Vimeo Video & oEmbed","category":"commerce-social","description":"Extracts Vimeo video and player embed metadata via Vimeo oEmbed JSON and VideoObject HTML fallback.","domains":["vimeo.com","www.vimeo.com","player.vimeo.com"],"auth_mode":"pub","exampleUrls":["https://vimeo.com/76979871","https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F76979871","https://player.vimeo.com/video/76979871"],"routes":[{"match":{"hosts":["vimeo.com","www.vimeo.com"],"pathEquals":["/api/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["vimeo.com","www.vimeo.com"],"exactSegments":true,"pathSegments":[{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["player.vimeo.com"],"exactSegments":true,"pathSegments":["video",{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}}],"htmlRoutes":[{"id":"vimeo","match":{"exactSegments":false},"mode":"vimeo_html"}]},{"id":"vtex","name":"VTEX Storefronts & Catalog API","category":"commerce-social","description":"Extracts VTEX storefront product JSON from /api/catalog_system/pub/products/search and /variations endpoints, plus post-HTML storefront JSON-LD and companion discovery.","domains":["www.motorola.com.br"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.motorola.com.br/api/catalog_system/pub/products/search?fq=productId:488"],"routes":[{"match":{"pathEquals":["/api/catalog_system/pub/products/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathPrefix":"/api/catalog_system/pub/products/search/","pathSuffix":"/p"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathSegments":["api","catalog_system","pub","products","variations",{"param":"productId","charset":"pkg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}}],"htmlRoutes":[{"id":"vtex","match":{"exactSegments":false},"mode":"vtex_html"}]},{"id":"walmart","name":"Walmart Official Affiliate/IO API","category":"commerce-social","description":"Official Walmart Affiliate/IO API product lookup only (zero HTML scraping of walmart.com).","domains":["walmart.com","www.walmart.com","developer.api.walmart.com"],"auth_mode":"key","exampleUrls":["https://www.walmart.com/ip/132000132","https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/132000132"],"routes":[{"match":{"hosts":["walmart.com","www.walmart.com"],"anyOf":[{"exactSegments":true,"pathSegments":["ip",{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]},{"exactSegments":false,"pathSegments":["ip",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]}]},"twin":{"fetchUrl":"https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}},{"match":{"hosts":["developer.api.walmart.com"],"pathPrefix":"/api-proxy/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}}]},{"id":"weather-gov","name":"National Weather Service (weather.gov)","category":"research-health","description":"NOAA National Weather Service GeoJSON API (points, gridpoint forecasts, active alerts, observations) and forecast.weather.gov HTML extractor with identifying User-Agent.","domains":["weather.gov","www.weather.gov","api.weather.gov","forecast.weather.gov"],"auth_mode":"pub","user_agent_profile":"weather-gov","strict_robots":true,"exampleUrls":["https://forecast.weather.gov/MapClick.php?lat=39.7456&lon=-97.0892","https://forecast.weather.gov/MapClick.php?lat=40.7128&lon=-74.0060"],"routes":[{"match":{"hosts":["api.weather.gov"],"anyOf":[{"pathPrefix":"/points/"},{"pathPrefix":"/gridpoints/"},{"pathPrefix":"/alerts"},{"pathPrefix":"/stations/"},{"pathPrefix":"/zones/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json","maxBytes":2097152},"extract":{"jsonMode":"weather_gov_json"}}],"htmlRoutes":[{"id":"weather-gov","match":{"hosts":["weather.gov","www.weather.gov","forecast.weather.gov"],"exactSegments":false},"mode":"weather_gov_html"}]},{"id":"wikidata-openlibrary","name":"Wikidata & Open Library","category":"research-health","description":"Upgrades wikidata.org/wiki/Q* to Special:EntityData/Q*.json (handling labels.en, labels.mul, and sitelinks.enwiki fallbacks) and openlibrary.org/isbn/* to /isbn/*.json (never calling disallowed /api/*).","domains":["www.wikidata.org","wikidata.org","openlibrary.org","www.openlibrary.org"],"exampleUrls":["https://www.wikidata.org/wiki/Q42","https://openlibrary.org/isbn/9780140328721"],"routes":[{"match":{"hosts":["www.wikidata.org","wikidata.org"],"exactSegments":true,"pathPrefix":"/wiki/Q","pathSegments":["wiki",{"param":"qidNum","stripPrefix":"Q","charset":"digits","minLen":1,"maxLen":15}]},"twin":{"fetchUrl":"https://www.wikidata.org/wiki/Special:EntityData/Q{qidNum}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["entities"],"vars":{"qid":{"template":"Q{qidNum}"},"labelEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.en.value"},"trim":true},"labelMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.mul.value"},"trim":true},"labelEnwiki":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"trim":true},"labelMulOrEnwiki":{"template":"{labelMul}","whenVars":["labelMul"],"fallbackVar":"labelEnwiki"},"label":{"template":"{labelEn}","whenVars":["labelEn"],"fallbackVar":"labelMulOrEnwiki"},"descEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.en.value"},"trim":true},"descMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.mul.value"},"trim":true},"desc":{"template":"{descEn}","whenVars":["descEn"],"fallbackVar":"descMul"},"aliasesEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.en"},"subField":"value","join":", ","limit":10},"aliasesMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.mul"},"subField":"value","join":", ","limit":10},"aliases":{"template":"{aliasesEn}","whenVars":["aliasesEn"],"fallbackVar":"aliasesMul"},"modified":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"modified"},"sliceMax":10},"claimProps":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims"},"format":"object_keys","limit":25,"itemWrap":"`","join":", "},"instanceOf":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P31"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"sexOrGender":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P21"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":3},"citizenship":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P27"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":5},"occupation":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P106"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"birthDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P569"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"deathDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P570"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"inception":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P571"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"population":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P1082"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal","fallbackLast":true},"subField":"mainsnak.datavalue.value.amount","format":"int_comma"},"officialWebsite":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P856.0.mainsnak.datavalue.value"},"trim":true,"requireHttpPrefix":true},"enwikiSlug":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"replaceAll":{"from":" ","to":"_"}},"enwikiUrl":{"template":"https://en.wikipedia.org/wiki/{enwikiSlug}","whenVars":["enwikiSlug"],"requireHttps":true},"wikidataUrl":{"template":"https://www.wikidata.org/wiki/{qid}","requireHttps":true}},"requireVars":["label"],"titleTemplate":"{label} ({qid})","descriptionVar":"desc","publishedTimeVar":"modified","introVar":"desc","bullets":[{"label":"Wikidata ID","template":"`{qid}`"},{"label":"Also Known As","template":"{aliases}","whenVar":"aliases"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"Instance Of","template":"{instanceOf}","whenVar":"instanceOf"},{"label":"Sex or Gender","template":"{sexOrGender}","whenVar":"sexOrGender"},{"label":"Country of Citizenship","template":"{citizenship}","whenVar":"citizenship"},{"label":"Occupation","template":"{occupation}","whenVar":"occupation"},{"label":"Date of Birth","template":"{birthDate}","whenVar":"birthDate"},{"label":"Date of Death","template":"{deathDate}","whenVar":"deathDate"},{"label":"Inception","template":"{inception}","whenVar":"inception"},{"label":"Population","template":"{population}","whenVar":"population"},{"label":"Official Website","template":"{officialWebsite}","whenVar":"officialWebsite"},{"label":"Claim Properties","template":"{claimProps}","whenVar":"claimProps"},{"label":"English Wikipedia","template":"{enwikiUrl}","whenVar":"enwikiUrl"},{"label":"Wikidata URL","template":"{wikidataUrl}","whenVar":"wikidataUrl"}],"linksVars":["wikidataUrl","enwikiUrl","officialWebsite"]}},{"match":{"hosts":["openlibrary.org","www.openlibrary.org"],"exactSegments":true,"pathSegments":["isbn",{"param":"isbn","stripSuffix":".json","charset":"alnum_dash","minLen":10,"maxLen":17}]},"twin":{"fetchUrl":"https://openlibrary.org/isbn/{isbn}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"subtitle":{"paths":["subtitle"],"trim":true},"isbn13":{"paths":["isbn_13"],"itemWrap":"`","join":", "},"isbn10":{"paths":["isbn_10"],"itemWrap":"`","join":", "},"publishers":{"paths":["publishers"],"join":", ","limit":8},"publishDate":{"paths":["publish_date"],"trim":true},"pages":{"paths":["number_of_pages"],"format":"int_comma"},"contributions":{"paths":["contributions"],"join":", ","limit":8},"byStatement":{"paths":["by_statement"],"trim":true,"sliceMax":200},"authorLine":{"template":"{byStatement}","whenVars":["byStatement"],"fallbackVar":"contributions"},"authors":{"paths":["authors"],"subField":"key","join":", ","limit":8},"works":{"paths":["works"],"subField":"key","join":", ","limit":5},"olKey":{"paths":["key"]},"olUrl":{"template":"https://openlibrary.org{olKey}","whenVars":["olKey"],"requireHttps":true},"desc":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true},"descShort":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true,"sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"authorLine","publishedTimeVar":"publishDate","bullets":[{"label":"Subtitle","template":"{subtitle}","whenVar":"subtitle"},{"label":"ISBN-13","template":"{isbn13}","whenVar":"isbn13"},{"label":"ISBN-10","template":"{isbn10}","whenVar":"isbn10"},{"label":"Publishers","template":"{publishers}","whenVar":"publishers"},{"label":"Published","template":"{publishDate}","whenVar":"publishDate"},{"label":"Pages","template":"{pages}","whenVar":"pages"},{"label":"By","template":"{byStatement}","whenVar":"byStatement"},{"label":"Contributors","template":"{contributions}","whenVar":"contributions"},{"label":"Author Keys","template":"{authors}","whenVar":"authors"},{"label":"Work Keys","template":"{works}","whenVar":"works"},{"label":"Open Library URL","template":"{olUrl}","whenVar":"olUrl"}],"sections":[{"heading":"Description","textVar":"desc"}],"linksVars":["olUrl"]}}]},{"id":"wild-apricot","name":"Wild Apricot Member Associations & Events","category":"commerce-social","description":"Extracts public Wild Apricot association event details, upcoming event schedules, and member directories from WaGadget DOM while rejecting /sys/login and login-only gated shells.","domains":["www.ndshp.org","members.mbbi.org","*.wildapricot.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.ndshp.org/event-6925405","https://members.mbbi.org/event-6156275","https://members.mbbi.org/Member-Directory/"],"htmlRoutes":[{"id":"wild-apricot","match":{"exactSegments":false},"mode":"wild_apricot_html"}]},{"id":"wistia","name":"Wistia Video Hosting","category":"commerce-social","description":"Extracts Wistia /embed/medias/{mediaId}.json twins and Wistia video HTML while respecting robots.txt /oembed disallow and rejecting login walls.","domains":["fast.wistia.com","fast.wistia.net","home.wistia.com","wistia.com","www.wistia.com"],"auth_mode":"pub","exampleUrls":["https://fast.wistia.com/embed/medias/29b0fbf547.json","https://fast.wistia.com/embed/iframe/29b0fbf547","https://wistia.com/blog/video-marketing-statistics"],"routes":[{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSuffix":".json","pathSegments":["embed","medias",{"param":"mediaId","charset":"alnum","stripSuffix":".json","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}},{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSegments":["embed","iframe",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://{host}/embed/medias/{mediaId}.json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}}],"htmlRoutes":[{"id":"wistia","match":{"exactSegments":false},"mode":"wistia_html"}]},{"id":"wix-stores","name":"Wix Stores","category":"commerce-social","description":"Extracts Wix Stores product details, pricing, stock, options, and media from wix-warmup-data hydration and JSON-LD/Microdata.","domains":["www.vivietmargot.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.vivietmargot.com/product-page/bon-appetit-linen-napkin-lin-bleu"],"htmlRoutes":[{"id":"wix-stores","match":{"exactSegments":false},"mode":"wix_stores_html"}]},{"id":"woocommerce","name":"WooCommerce Store API & Storefronts","category":"commerce-social","description":"Formats public WooCommerce Store API (/wp-json/wc/store/v1/products) feeds, extracts WooCommerce product pages, and implements polite full-store catalog pulls.","domains":["woocommerce.com"],"universalEngine":true,"exampleUrls":["https://yithemes.com/wp-json/wc/store/v1/products?per_page=20&page=1"],"catalog":{"platform":"woocommerce","pauseMs":2000,"pageCap":200,"firstPageTemplate":"{origin}/wp-json/wc/store/v1/products?per_page=100&page=1","perPage":100,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products"]},"twin":{"id":"woocommerce-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_catalog_page"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products",{"param":"pid","charset":"digits"}]},"twin":{"id":"woocommerce-product","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_product"}}],"htmlRoutes":[{"id":"woocommerce","match":{"exactSegments":false},"mode":"woocommerce_html"}]},{"id":"wordpress-vip-newspack","name":"WordPress VIP & Newspack","category":"commerce-social","description":"Extracts WP REST v2 posts/pages JSON twins and Newspack/WP-VIP article HTML without colliding with WooCommerce or standard WordPress blogs.","domains":["calmatters.org","missionlocal.org","www.berkeleyside.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://calmatters.org/wp-json/wp/v2/posts/516249","https://calmatters.org/commentary/2026/11/californias-philanthropic-funders-give-bravely/"],"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}}],"htmlRoutes":[{"id":"wordpress-vip-newspack","match":{"exactSegments":false},"mode":"wp_vip_newspack_html"}]},{"id":"workable","name":"Workable Job Boards & Postings","category":"jobs","description":"Upgrades apply.workable.com boards to /api/v1/widget/accounts/?details=true (merging multi-location rows on shortcode) and single jobs to /api/v2/accounts//jobs/.","domains":["apply.workable.com"],"exampleUrls":["https://apply.workable.com/huggingface/","https://apply.workable.com/huggingface/j/81B46579FE/"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]},"j",{"param":"code","charset":"slug","minLen":4,"maxLen":24}]},"twin":{"id":"workable-job","fetchUrl":"https://apply.workable.com/api/v2/accounts/{org}/jobs/{code}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"jobTitle":{"paths":["title"],"trim":true},"city":{"paths":["location.city"],"trim":true},"region":{"paths":["location.region"],"trim":true},"country":{"paths":["location.country"],"trim":true},"loc3":{"template":"{city}, {region}, {country}","whenVars":["city","region","country"]},"loc2a":{"template":"{city}, {region}","whenVars":["city","region"]},"loc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"loc2c":{"template":"{region}, {country}","whenVars":["region","country"]},"loc1":{"paths":["location.city","location.region","location.country"],"trim":true},"locSub1":{"template":"{loc3}","whenVars":["loc3"],"fallbackVar":"loc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"loc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"loc2c"},"locStr":{"template":"{locSub3}","whenVars":["locSub3"],"fallbackVar":"loc1"},"teleRemote":{"paths":["location.telecommuting"],"format":"bool_map","trueValue":"remote","falseValue":""},"workplace":{"paths":["workplace"],"trim":true,"fallbackTemplate":"{teleRemote}"},"dept":{"paths":["department"],"join":", ","trim":true},"empType":{"paths":["type"],"trim":true},"published":{"paths":["published"],"sliceMax":10,"trim":true},"salCur":{"paths":["salary.salary_currency"],"upper":true,"trim":true,"default":"USD"},"salFrom":{"paths":["salary.salary_from"],"excludeEquals":"0"},"salTo":{"paths":["salary.salary_to"],"excludeEquals":"0"},"salRange":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"]},"salFromOnly":{"template":"{salCur} {salFrom}","whenVars":["salFrom"]},"salToOnly":{"template":"{salCur} – {salTo}","whenVars":["salTo"]},"salSub":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"],"fallbackVar":"salFromOnly"},"salStr":{"template":"{salSub}","whenVars":["salSub"],"fallbackVar":"salToOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","publishedTimeVar":"published","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{locStr}","whenVar":"locStr"},{"label":"Workplace","template":"{workplace}","whenVar":"workplace"},{"label":"Department","template":"{dept}","whenVar":"dept"},{"label":"Type","template":"{empType}","whenVar":"empType"},{"label":"Salary","template":"{salStr}","whenVar":"salStr"},{"label":"Published","template":"{published}","whenVar":"published"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Requirements","textVar":"reqs"},{"heading":"Benefits","textVar":"benefits"}],"linkTemplates":["https://apply.workable.com/{org}/j/{code}/apply/"]}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]}]},"twin":{"id":"workable-board","fetchUrl":"https://apply.workable.com/api/v1/widget/accounts/{org}?details=true","kind":"json","accept":"application/json"},"extract":{"vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"},"orgName":{"paths":["name"],"trim":true,"fallbackTemplate":"{org}"}},"requireVars":["rawCount"],"titleTemplate":"{orgName} — Open Roles ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":100,"linkScanLimit":2000,"emptyText":"No open positions are currently listed on this Workable board.","filter":{"requireField":"title"},"dedupeBy":{"keyPaths":["shortcode"],"mergeTextPaths":["city+state+country"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4,"orBoolPaths":["telecommuting","workplace_type"],"orBoolTargetField":"_isRemote"},"itemVars":{"code":{"paths":["shortcode"],"trim":true},"jTitle":{"paths":["title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://apply.workable.com/{org}/j/{code}/"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLocFallback":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"fallbackTemplate":"{remoteLocFallback}"},"workplace":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site / Hybrid"},"published":{"paths":["published_on"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"},{"header":"Workplace","template":"{workplace}"},{"header":"Published","template":"{published}"}]}]}}]},{"id":"xenforo-thread","name":"XenForo 2 Forum Threads","category":"commerce-social","description":"Extracts structured forum posts, authors, timestamps, and clean quote blocks from XenForo 2 thread HTML (article.message--post) while stripping signatures and sidebar chrome.","domains":["forums.electricbikereview.com","mtbr.com","www.mtbr.com","endless-sphere.com"],"universalEngine":true,"exampleUrls":["https://forums.electricbikereview.com/threads/where-we-are-in-2026.59397/","https://www.mtbr.com/threads/ozark-trail-fs-2-slalom-for-a-kid.1249288/","https://endless-sphere.com/sphere/threads/es-2-0-forum-updates-and-tribulations.119104/"],"htmlRoutes":[{"id":"xenforo-thread","match":{"pathContainsSegment":"threads"},"mode":"xenforo_html"}]},{"id":"ycombinator","name":"Y Combinator Directory & Work at a Startup","category":"finance","description":"Extracts YC company profiles, founders, batches, and open roles from ycombinator.com/companies/ (and upgrades login-gated workatastartup.com company pages to their public YC mirror).","domains":["www.ycombinator.com","ycombinator.com","www.workatastartup.com","workatastartup.com"],"exampleUrls":["https://www.ycombinator.com/companies/supabase","https://www.workatastartup.com/companies/supabase"],"routes":[{"match":{"hosts":["www.workatastartup.com","workatastartup.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"twin":{"id":"workatastartup-yc-mirror","fetchUrl":"https://www.ycombinator.com/companies/{slug}/jobs","kind":"text","accept":"text/html"},"extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}],"htmlRoutes":[{"match":{"hosts":["www.ycombinator.com","ycombinator.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"mode":"embedded_json","dataAttr":"data-page","extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}]},{"id":"yelp-fusion","name":"Yelp Fusion API v3","category":"commerce-social","description":"Extracts business search results, single business profiles, and reviews from the official Yelp Fusion v3 API (api.yelp.com) with a strict 24-hour max cache TTL; yelp.com HTML stays detect-only.","domains":["api.yelp.com"],"auth_mode":"key","max_cache_ttl_ms":86400000,"exampleUrls":["https://api.yelp.com/v3/businesses/search?term=coffee&location=San+Francisco","https://api.yelp.com/v3/businesses/gary-danko-san-francisco"],"routes":[{"match":{"hosts":["api.yelp.com"],"anyOf":[{"pathEquals":["/v3/businesses/search","/v3/businesses/matches"]},{"pathPrefix":"/v3/businesses/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"yelp_fusion_json"}}]},{"id":"yext-locator","name":"Yext Store & Dealer Locator","category":"commerce-social","description":"Opt-in page-key adapter for Yext Live/Search API dealer locators; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["liveapi.yext.com","cdn.yextapis.com","locations.chipotle.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://cdn.yextapis.com/v2/accounts/me/answers/query?api_key=01db1d1e5ebbaa7ea2e6807ad2196ab3&v=20220511&experienceKey=yext-help-hitchhikers&input=locator"],"routes":[{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"entities"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}},{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"answers","query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}}],"htmlRoutes":[{"id":"yext-locator","match":{"exactSegments":false},"mode":"yext_locator_html"}]},{"id":"yotpo","name":"Yotpo Product Reviews","category":"commerce-social","description":"Extracts public Yotpo reviews widget JSON payloads and discovers Yotpo widget markers on storefront HTML pages.","domains":["api-cdn.yotpo.com","api.yotpo.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api-cdn.yotpo.com/v1/widget/MdtpPOdzecvdDWwA3pFvhLyB6ab4osWf5p8TQHpj/products/8158162911322/reviews.json"],"routes":[{"match":{"hosts":["api-cdn.yotpo.com","api.yotpo.com"],"pathSegments":["v1","widget",{"param":"appKey","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},"reviews.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"yotpo_reviews"}}],"htmlRoutes":[{"id":"yotpo","match":{"exactSegments":false},"mode":"yotpo_html"}]},{"id":"zendesk-hc","name":"Zendesk Help Center","category":"developer","description":"Upgrades *.zendesk.com Help Center article, section, and category pages to the official Help Center v2 JSON API with breadcrumbs, updated timestamps, and Markdown conversion.","domains":["*.zendesk.com","support.sram.com"],"exampleUrls":["https://support.zendesk.com/hc/en-us/articles/4408885959066-Lesson-4-Business-rules","https://support.zendesk.com/hc/en-us/sections/5634465167514-Business-rules","https://support.zendesk.com/hc/en-us/categories/6191910393754-Product-guides"],"routes":[{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"articles",{"param":"articleId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/articles/{articleId}.json?include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rejectIfFieldTruthy":"article.draft","requireFields":["article.title","article.body"],"vars":{"title":{"paths":["article.title"],"format":"strip_tags","trim":true},"updatedAt":{"paths":["article.updated_at","article.edited_at"]},"htmlUrl":{"paths":["article.html_url"],"requireHttps":true},"sectionName":{"paths":["sections.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"catAndSec":{"template":"{categoryName} › {sectionName}","whenVars":["categoryName","sectionName"],"fallbackVar":"sectionName"},"breadcrumbs":{"template":"{catAndSec}","whenVars":["catAndSec"],"fallbackVar":"categoryName"},"labels":{"paths":["article.label_names"],"itemWrap":"`","join":", ","limit":12},"bodyMd":{"paths":["article.body"],"format":"html_to_md","trim":true}},"requireVars":["title","bodyMd"],"titleTemplate":"{title}","publishedTimeVar":"updatedAt","bullets":[{"label":"Breadcrumbs","template":"{breadcrumbs}","whenVar":"breadcrumbs"},{"label":"Updated","template":"{updatedAt}","whenVar":"updatedAt"},{"label":"Labels","template":"{labels}","whenVar":"labels"},{"label":"Canonical URL","template":"{htmlUrl}","whenVar":"htmlUrl"}],"bodyVar":"bodyMd","linksVars":["htmlUrl","sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"sections",{"param":"sectionId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/sections/{sectionId}/articles.json?per_page=50&include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["articles","sections"],"vars":{"sectionTitle":{"paths":["sections.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Section #{sectionId}"},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"articleCount":{"paths":["articles"],"format":"array_len_comma"}},"titleTemplate":"{sectionTitle}","bullets":[{"label":"Category","template":"{categoryName}","whenVar":"categoryName"},{"label":"Articles","template":"{articleCount}","whenVar":"articleCount"}],"sections":[{"heading":"Articles","arrayPath":"articles","limit":50,"emptyText":"No published articles found in this section.","requireItemVar":"artTitle","collectLinkVars":["artUrl"],"itemVars":{"artTitle":{"paths":["title"],"format":"strip_tags","trim":true},"artUrl":{"paths":["html_url"],"requireHttps":true},"artLabels":{"paths":["label_names"],"join":", ","limit":8},"artUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{artTitle}","url":"{artUrl}","updatedAt":"{artUpdated}","labels":"{artLabels}"},"columns":[{"header":"Article","template":"[{artTitle}]({artUrl})"},{"header":"Updated","paths":["updated_at"],"sliceMax":10},{"header":"Labels","template":"{artLabels}"}]}],"linksVars":["sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"categories",{"param":"categoryId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/categories/{categoryId}/sections.json?per_page=50&include=categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["sections","categories"],"vars":{"categoryTitle":{"paths":["categories.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Category #{categoryId}"},"categoryDesc":{"paths":["categories.0.description"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"sectionCount":{"paths":["sections"],"format":"array_len_comma"}},"titleTemplate":"{categoryTitle}","descriptionVar":"categoryDesc","introVar":"categoryDesc","bullets":[{"label":"Sections","template":"{sectionCount}","whenVar":"sectionCount"}],"sections":[{"heading":"Sections","arrayPath":"sections","limit":50,"emptyText":"No sections found in this category.","requireItemVar":"secName","collectLinkVars":["secUrl"],"itemVars":{"secName":{"paths":["name"],"format":"strip_tags","trim":true},"secUrl":{"paths":["html_url"],"requireHttps":true},"secDesc":{"paths":["description"],"format":"strip_tags","trim":true,"sliceMax":160},"secUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{secName}","url":"{secUrl}","description":"{secDesc}","updatedAt":"{secUpdated}"},"columns":[{"header":"Section","template":"[{secName}]({secUrl})"},{"header":"Description","template":"{secDesc}"},{"header":"Updated","paths":["updated_at"],"sliceMax":10}]}],"linksVars":["categoryUrl"]}}]}]} diff --git a/internal/extract/manifests/dkan.yaml b/internal/extract/manifests/dkan.yaml index 1cb128f..1f56ddf 100644 --- a/internal/extract/manifests/dkan.yaml +++ b/internal/extract/manifests/dkan.yaml @@ -4,15 +4,13 @@ name: DKAN Open Data Portals (Metastore & Datastore) category: public-records description: "Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters." domains: - - data.medicaid.gov - data.healthcare.gov universalEngine: true auth_mode: pub min_interval_ms: 2000 exampleUrls: - - "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false" - - "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3" - - "https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8" + - "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false" + - "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3" - "https://data.healthcare.gov/dataset/e4rr-zk4i" routes: @@ -55,7 +53,6 @@ routes: - match: hosts: - - data.medicaid.gov - data.healthcare.gov exactSegments: true pathSegments: diff --git a/internal/extract/manifests/dol-enforcement.yaml b/internal/extract/manifests/dol-enforcement.yaml new file mode 100644 index 0000000..f7e515e --- /dev/null +++ b/internal/extract/manifests/dol-enforcement.yaml @@ -0,0 +1,41 @@ +# Shared Go + TypeScript Declarative Site Adapter: DOL Enforcement (#279) +id: dol-enforcement +name: U.S. Department of Labor Enforcement & Data +category: public-records +description: "Extracts Wage and Hour Division (WHD) and OSHA enforcement records from apiprod.dol.gov v4 APIs (DOL_API_KEY) with HTML fallback for dol.gov and enforcedata/data.dol.gov while rejecting empty data.dol.gov shells." +domains: + - apiprod.dol.gov + - enforcedata.dol.gov + - data.dol.gov + - www.dol.gov + - dol.gov +auth_mode: key +exampleUrls: + - "https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2" + - "https://apiprod.dol.gov/v4/get/OSHA/inspection/json?limit=2" + - "https://www.dol.gov/agencies/whd/data" + +routes: + - match: + hosts: + - apiprod.dol.gov + pathPrefix: /v4/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: dol_enforcement_json + +htmlRoutes: + - id: dol-enforcement + match: + hosts: + - data.dol.gov + - enforcedata.dol.gov + - www.dol.gov + - dol.gov + exactSegments: false + mode: dol_enforcement_html diff --git a/internal/extract/manifests/eeoc-litigation.yaml b/internal/extract/manifests/eeoc-litigation.yaml new file mode 100644 index 0000000..99556d9 --- /dev/null +++ b/internal/extract/manifests/eeoc-litigation.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: EEOC Litigation (#282) +id: eeoc-litigation +name: EEOC Litigation & Enforcement Releases +category: public-records +description: "Extracts EEOC enforcement press releases, litigation summaries, settlement figures, and district office metadata from eeoc.gov." +domains: + - www.eeoc.gov + - eeoc.gov +auth_mode: pub +exampleUrls: + - "https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit" + - "https://www.eeoc.gov/eeoc-litigation" + - "https://www.eeoc.gov/newsroom" + +htmlRoutes: + - id: eeoc-litigation + match: + exactSegments: false + mode: eeoc_litigation_html diff --git a/internal/extract/manifests/everycrsreport.yaml b/internal/extract/manifests/everycrsreport.yaml new file mode 100644 index 0000000..94eb995 --- /dev/null +++ b/internal/extract/manifests/everycrsreport.yaml @@ -0,0 +1,69 @@ +# Shared Go + TypeScript Declarative Site Adapter: EveryCRSReport (#291) +id: everycrsreport +name: "EveryCRSReport Archive" +category: public-records +description: "Extracts Congressional Research Service reports from EveryCRSReport JSON metadata, /reports/{id}.html JSON twins, and bounded /reports.csv index." +domains: + - www.everycrsreport.com + - everycrsreport.com +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.everycrsreport.com/reports/IN11532.json" + - "https://www.everycrsreport.com/reports/IN11532.html" + - "https://www.everycrsreport.com/reports.csv" + +routes: + - match: + exactSegments: true + pathSuffix: .json + pathSegments: + - reports + - param: reportId + charset: alnum_dash + stripSuffix: .json + minLen: 2 + maxLen: 32 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: everycrs_json + + - match: + exactSegments: true + pathSuffix: .html + pathSegments: + - reports + - param: reportId + charset: alnum_dash + stripSuffix: .html + minLen: 2 + maxLen: 32 + twin: + fetchUrl: "https://{host}/reports/{reportId}.json" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: everycrs_json + + - match: + exactSegments: true + pathEquals: + - /reports.csv + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: text/plain + maxBytes: 1048576 + extract: + textMode: everycrs_csv + +htmlRoutes: + - id: everycrsreport + match: + exactSegments: false + mode: everycrs_html diff --git a/internal/extract/manifests/fcc-ecfs.yaml b/internal/extract/manifests/fcc-ecfs.yaml new file mode 100644 index 0000000..18ea154 --- /dev/null +++ b/internal/extract/manifests/fcc-ecfs.yaml @@ -0,0 +1,36 @@ +# Shared Go + TypeScript Declarative Site Adapter: FCC ECFS (#284) +id: fcc-ecfs +name: FCC Electronic Comment Filing System (ECFS) +category: public-records +description: "Extracts FCC Electronic Comment Filing System (ECFS) filings, proceedings, filers, and comment text via publicapi.fcc.gov/ecfs/ (api.data.gov key) with HTML fallback on www.fcc.gov/ecfs/." +domains: + - publicapi.fcc.gov + - www.fcc.gov + - fcc.gov +auth_mode: key +exampleUrls: + - "https://publicapi.fcc.gov/ecfs/filings?limit=2" + - "https://www.fcc.gov/ecfs/search/search-filings" + +routes: + - match: + hosts: + - publicapi.fcc.gov + pathPrefix: /ecfs/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: fcc_ecfs_json + +htmlRoutes: + - id: fcc-ecfs + match: + hosts: + - www.fcc.gov + - fcc.gov + pathPrefix: /ecfs + mode: fcc_ecfs_html diff --git a/internal/extract/manifests/fcc-uls.yaml b/internal/extract/manifests/fcc-uls.yaml new file mode 100644 index 0000000..d86b733 --- /dev/null +++ b/internal/extract/manifests/fcc-uls.yaml @@ -0,0 +1,76 @@ +# Shared Go + TypeScript Declarative Site Adapter: FCC ULS (#285) +id: fcc-uls +name: FCC Universal Licensing System (ULS) +category: public-records +description: "Extracts FCC Universal Licensing System (ULS) Socrata datasets and catalog records on opendata.fcc.gov, legacy License View JSON on data.fcc.gov, and wireless2.fcc.gov HTML pages." +domains: + - opendata.fcc.gov + - data.fcc.gov + - wireless2.fcc.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2" + - "https://opendata.fcc.gov/api/catalog/v1?q=ULS&limit=3" + - "https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json" + +routes: + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /resource/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /api/views/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /api/catalog/v1 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - data.fcc.gov + pathPrefix: /api/license-view/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + +htmlRoutes: + - id: fcc-uls + match: + hosts: + - wireless2.fcc.gov + - opendata.fcc.gov + - data.fcc.gov + exactSegments: false + mode: fcc_uls_html diff --git a/internal/extract/manifests/ferc-nrc-dockets.yaml b/internal/extract/manifests/ferc-nrc-dockets.yaml new file mode 100644 index 0000000..d91a0df --- /dev/null +++ b/internal/extract/manifests/ferc-nrc-dockets.yaml @@ -0,0 +1,25 @@ +# Shared Go + TypeScript Declarative Site Adapter: FERC & NRC Dockets (#286) +id: ferc-nrc-dockets +name: FERC eLibrary & NRC ADAMS Dockets +category: public-records +description: "Extracts public FERC eLibrary and NRC ADAMS docket/document pages while strictly honoring robots.txt and rejecting Cloudflare challenges and unhydrated Angular shells." +domains: + - elibrary.ferc.gov + - www.ferc.gov + - ferc.gov + - adams.nrc.gov + - adams-search.nrc.gov + - www.nrc.gov + - nrc.gov +auth_mode: pub +strict_robots: true +exampleUrls: + - "https://www.nrc.gov/documents-reports/adams-public-documents" + - "https://elibrary.ferc.gov/eLibrary/search" + - "https://adams-search.nrc.gov/" + +htmlRoutes: + - id: ferc-nrc-dockets + match: + exactSegments: false + mode: ferc_nrc_dockets_html diff --git a/internal/extract/manifests/financial-regulators-enforcement.yaml b/internal/extract/manifests/financial-regulators-enforcement.yaml new file mode 100644 index 0000000..b7af78e --- /dev/null +++ b/internal/extract/manifests/financial-regulators-enforcement.yaml @@ -0,0 +1,76 @@ +# Shared Go + TypeScript Declarative Site Adapter: Financial Regulators Enforcement (#287) +id: financial-regulators-enforcement +name: CFTC, OCC & FinCEN Enforcement & Bulletins +category: finance +description: "Extracts enforcement actions, press releases, bulletins, and advisories from CFTC, OCC (including occ_news.xml RSS), and FinCEN." +domains: + - www.cftc.gov + - cftc.gov + - www.occ.gov + - occ.gov + - www.fincen.gov + - fincen.gov +auth_mode: pub +exampleUrls: + - "https://www.cftc.gov/PressRoom/PressReleases/9331-26" + - "https://www.occ.gov/news-issuances/bulletins/2023/bulletin-2023-17.html" + - "https://www.occ.gov/rss/occ_news.xml" + - "https://www.fincen.gov/news" + +routes: + - match: + hosts: + - www.occ.gov + - occ.gov + pathEquals: + - /rss/occ_news.xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/xml + maxBytes: 2097152 + extract: + xml: + mode: items_table + requireAnyTags: + - rss + - channel + itemTag: item + channelTitleFallbackParam: host + titleTemplate: "{channelTitle} ({itemCount})" + limit: 25 + collectLinkVar: itemLink + emitTotals: true + itemVars: + title: + tags: [title] + default: Release + itemLink: + tags: [link] + pubDate: + tags: [pubDate] + sliceMax: 24 + default: "-" + desc: + tags: [description] + sliceMax: 180 + default: "-" + recordFields: + title: "{title}" + url: "{itemLink}" + publishedAt: "{pubDate}" + description: "{desc}" + source: financial-regulators-enforcement + columns: + - header: Title + template: "[{title}]({itemLink})" + - header: Published + template: "{pubDate}" + - header: Summary + template: "{desc}" + +htmlRoutes: + - id: financial-regulators-enforcement + match: + exactSegments: false + mode: financial_regulators_html diff --git a/internal/extract/manifests/ftc-cases.yaml b/internal/extract/manifests/ftc-cases.yaml new file mode 100644 index 0000000..70d7d4b --- /dev/null +++ b/internal/extract/manifests/ftc-cases.yaml @@ -0,0 +1,22 @@ +# Shared Go + TypeScript Declarative Site Adapter: FTC Cases & Proceedings (#283) +id: ftc-cases +name: FTC Cases, Proceedings & Early Termination Notices +category: public-records +description: "Extracts FTC Legal Library cases, proceedings, matter numbers, and Hart-Scott-Rodino early termination notices while honoring FTC Crawl-delay: 5." +domains: + - www.ftc.gov + - ftc.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 5000 +max_concurrent: 1 +exampleUrls: + - "https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors" + - "https://www.ftc.gov/legal-library/browse/cases-proceedings" + - "https://www.ftc.gov/legal-library/browse/early-termination-notices" + +htmlRoutes: + - id: ftc-cases + match: + exactSegments: false + mode: ftc_cases_html diff --git a/internal/extract/manifests/gao-reports.yaml b/internal/extract/manifests/gao-reports.yaml new file mode 100644 index 0000000..0aabd52 --- /dev/null +++ b/internal/extract/manifests/gao-reports.yaml @@ -0,0 +1,32 @@ +# Shared Go + TypeScript Declarative Site Adapter: U.S. GAO Reports & Testimonies (#289) +id: gao-reports +name: "U.S. GAO Reports & Testimonies" +category: public-records +description: "Extracts U.S. Government Accountability Office RSS report feeds and product detail pages while honoring strict_robots and rejecting Akamai Access Denied shells." +domains: + - www.gao.gov + - gao.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 1000 +exampleUrls: + - "https://www.gao.gov/products/gao-27-108423" + - "https://www.gao.gov/rss/reports.xml" + +routes: + - match: + pathPrefix: /rss/ + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 1048576 + extract: + textMode: gao_rss_xml + +htmlRoutes: + - id: gao-reports + match: + exactSegments: false + mode: gao_reports_html diff --git a/internal/extract/manifests/gov-wordpress-newsrooms.yaml b/internal/extract/manifests/gov-wordpress-newsrooms.yaml new file mode 100644 index 0000000..4c7aab1 --- /dev/null +++ b/internal/extract/manifests/gov-wordpress-newsrooms.yaml @@ -0,0 +1,64 @@ +# Shared Go + TypeScript Declarative Site Adapter: Federal .gov WordPress Newsrooms (#292) +id: gov-wordpress-newsrooms +name: "Federal .gov WordPress Newsrooms" +category: public-records +description: "Extracts official federal .gov WordPress REST v2 posts (excluding whitehouse.gov 403 /wp-json/) and briefing/newsroom HTML pages." +domains: + - www.whitehouse.gov + - whitehouse.gov + - news.va.gov + - www.nasa.gov + - nasa.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://news.va.gov/wp-json/wp/v2/posts?per_page=1" + - "https://news.va.gov/151377/memphis-veterans-received-help-claims-clinic/" + - "https://www.whitehouse.gov/presidential-actions/" + +routes: + - match: + excludeHosts: + - www.whitehouse.gov + - whitehouse.gov + exactSegments: true + pathSegments: + - wp-json + - wp + - v2 + - posts + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: gov_wp_posts_json + + - match: + excludeHosts: + - www.whitehouse.gov + - whitehouse.gov + exactSegments: true + pathSegments: + - wp-json + - wp + - v2 + - posts + - param: postId + charset: digits + minLen: 1 + maxLen: 16 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: gov_wp_posts_json + +htmlRoutes: + - id: gov-wordpress-newsrooms + match: + exactSegments: false + mode: gov_wp_newsroom_html diff --git a/internal/extract/manifests/gsa-site-scanning.yaml b/internal/extract/manifests/gsa-site-scanning.yaml new file mode 100644 index 0000000..79c697c --- /dev/null +++ b/internal/extract/manifests/gsa-site-scanning.yaml @@ -0,0 +1,35 @@ +# Shared Go + TypeScript Declarative Site Adapter: GSA Site Scanning API (#293) +id: gsa-site-scanning +name: "GSA Site Scanning API" +category: public-records +description: "GSA Technology Transformation Services Site Scanning API (DATA_GOV_API_KEY) and open.gsa.gov documentation fallback." +domains: + - api.gsa.gov + - open.gsa.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5" + - "https://api.gsa.gov/technology/site-scanning/v1/websites/usa.gov" + +routes: + - match: + hosts: + - api.gsa.gov + pathPrefix: /technology/site-scanning/v1/websites + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: gsa_site_scanning_json + +htmlRoutes: + - id: gsa-site-scanning + match: + hosts: + - open.gsa.gov + exactSegments: false + mode: gsa_site_scanning_html diff --git a/internal/extract/manifests/healthcare-gov-marketplace.yaml b/internal/extract/manifests/healthcare-gov-marketplace.yaml new file mode 100644 index 0000000..e6c8073 --- /dev/null +++ b/internal/extract/manifests/healthcare-gov-marketplace.yaml @@ -0,0 +1,58 @@ +# Shared Go + TypeScript Declarative Site Adapter: HealthCare.gov Marketplace API (#295) +id: healthcare-gov-marketplace +name: "HealthCare.gov Marketplace API" +category: research-health +description: "CMS HealthCare.gov Marketplace Plan Search (POST), States, Counties, and Plan Detail API (HEALTHCARE_GOV_API_KEY) with healthcare.gov HTML fallback." +domains: + - marketplace.api.healthcare.gov + - www.healthcare.gov + - healthcare.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://marketplace.api.healthcare.gov/api/v1/plans/search" + - "https://marketplace.api.healthcare.gov/api/v1/states" + - "https://www.healthcare.gov/glossary/affordable-care-act/" + +routes: + - match: + hosts: + - marketplace.api.healthcare.gov + pathPrefix: /api/v1/plans/search + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + method: POST + contentType: application/json + requestBody: '{"household":{"income":52000,"people":[{"age":30,"aptc_eligible":true,"uses_tobacco":false}]},"market":"Individual","place":{"zipcode":"27360","state":"NC","countyfips":"37057"},"year":2026}' + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: healthcare_marketplace_json + + - match: + hosts: + - marketplace.api.healthcare.gov + anyOf: + - pathPrefix: /api/v1/states + - pathPrefix: /api/v1/counties/ + - pathPrefix: /api/v1/plans/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + method: GET + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: healthcare_marketplace_json + +htmlRoutes: + - id: healthcare-gov-marketplace + match: + hosts: + - www.healthcare.gov + - healthcare.gov + exactSegments: false + mode: healthcare_gov_html diff --git a/internal/extract/manifests/import-alerts-aphis-fda.yaml b/internal/extract/manifests/import-alerts-aphis-fda.yaml new file mode 100644 index 0000000..f38d313 --- /dev/null +++ b/internal/extract/manifests/import-alerts-aphis-fda.yaml @@ -0,0 +1,33 @@ +# Shared Go + TypeScript Declarative Site Adapter: FDA Import Alerts & USDA APHIS Import Manuals (#278) +id: import-alerts-aphis-fda +name: FDA Import Alerts & USDA APHIS Import Manuals +category: public-records +description: "Extracts FDA Import Alerts (/cms_ia/* on accessdata.fda.gov) and USDA APHIS import guidance and manuals (aphis.usda.gov)." +domains: + - www.accessdata.fda.gov + - accessdata.fda.gov + - www.aphis.usda.gov + - aphis.usda.gov +auth_mode: pub +exampleUrls: + - "https://www.accessdata.fda.gov/cms_ia/importalert_190.html" + - "https://www.accessdata.fda.gov/cms_ia/ialist.html" + - "https://www.aphis.usda.gov/plant-imports" + - "https://www.aphis.usda.gov/trade-management-manuals" + +htmlRoutes: + - id: import-alerts-aphis-fda + match: + hosts: + - www.accessdata.fda.gov + - accessdata.fda.gov + pathPrefix: /cms_ia/ + mode: import_alerts_fda_aphis_html + + - id: import-alerts-aphis-fda + match: + hosts: + - www.aphis.usda.gov + - aphis.usda.gov + exactSegments: false + mode: import_alerts_fda_aphis_html diff --git a/internal/extract/manifests/medicaid-nadac.yaml b/internal/extract/manifests/medicaid-nadac.yaml new file mode 100644 index 0000000..6541038 --- /dev/null +++ b/internal/extract/manifests/medicaid-nadac.yaml @@ -0,0 +1,56 @@ +# Shared Go + TypeScript Declarative Site Adapter: Medicaid NADAC Drug Pricing (#297) +id: medicaid-nadac +name: "Medicaid NADAC Drug Pricing (DKAN)" +category: research-health +description: "Extracts data.medicaid.gov NADAC drug pricing DKAN metastore datasets, datastore queries, and /dataset/{id} twins while rejecting empty CMS Medicaid Data React shells." +domains: + - data.medicaid.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/fbb83258-11c7-47f5-8b18-5f8e79f7e704" + - "https://data.medicaid.gov/api/1/datastore/query/e3af839d-8175-5be0-b94e-4a302ed7a035/0?limit=5" + - "https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704" + +routes: + - match: + pathPrefix: /api/1/metastore/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + + - match: + pathPrefix: /api/1/datastore/query/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + + - match: + exactSegments: false + pathSegments: + - dataset + - param: datasetId + charset: alnum_dash + minLen: 8 + maxLen: 64 + twin: + fetchUrl: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/{datasetId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + +htmlRoutes: + - id: medicaid-nadac + match: + exactSegments: false + mode: medicaid_nadac_html diff --git a/internal/extract/manifests/nlrb-cases.yaml b/internal/extract/manifests/nlrb-cases.yaml new file mode 100644 index 0000000..9a2d82f --- /dev/null +++ b/internal/extract/manifests/nlrb-cases.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: NLRB Cases (#281) +id: nlrb-cases +name: National Labor Relations Board Cases & Dockets +category: public-records +description: "Extracts NLRB unfair labor practice and representation case metadata, docket activity rows, and decision links from nlrb.gov." +domains: + - www.nlrb.gov + - nlrb.gov +auth_mode: pub +exampleUrls: + - "https://www.nlrb.gov/case/13-CA-394913" + - "https://www.nlrb.gov/cases-decisions/cases" + +htmlRoutes: + - id: nlrb-cases + match: + exactSegments: false + mode: nlrb_cases_html diff --git a/internal/extract/manifests/ofac-sdn.yaml b/internal/extract/manifests/ofac-sdn.yaml new file mode 100644 index 0000000..9726294 --- /dev/null +++ b/internal/extract/manifests/ofac-sdn.yaml @@ -0,0 +1,39 @@ +# Shared Go + TypeScript Declarative Site Adapter: OFAC SDN Sanctions List & Actions (#276) +id: ofac-sdn +name: OFAC SDN Sanctions List & Actions +category: public-records +description: "Bounded Range-streaming XML scanner for OFAC SDN.XML (<= 2 MiB) plus recent-actions and sanctions program HTML extraction on ofac.treasury.gov." +domains: + - sanctionslistservice.ofac.treas.gov + - ofac.treasury.gov +auth_mode: pub +exampleUrls: + - "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML" + - "https://ofac.treasury.gov/recent-actions" + +routes: + - match: + hosts: + - sanctionslistservice.ofac.treas.gov + exactSegments: true + pathEquals: + - /api/PublicationPreview/exports/SDN.XML + - /api/PublicationPreview/exports/CONS_PRIM.XML + - /api/PublicationPreview/exports/SDN_ENHANCED.XML + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/xml + headers: + Range: bytes=0-2097151 + maxBytes: 2097152 + extract: + textMode: ofac_sdn_xml + +htmlRoutes: + - id: ofac-sdn + match: + hosts: + - ofac.treasury.gov + exactSegments: false + mode: ofac_html diff --git a/internal/extract/manifests/osha-establishment.yaml b/internal/extract/manifests/osha-establishment.yaml new file mode 100644 index 0000000..2beb010 --- /dev/null +++ b/internal/extract/manifests/osha-establishment.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: OSHA Establishment Search & ITA (#280) +id: osha-establishment +name: OSHA Establishment Inspections & Injury Data +category: public-records +description: "Extracts OSHA IMIS/ORDS establishment inspection records and ITA injury/illness data pages from osha.gov while honoring robots.txt and detecting CloudFront 403 blocks." +domains: + - www.osha.gov + - osha.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 1500 +exampleUrls: + - "https://www.osha.gov/pls/imis/establishment.html" + - "https://www.osha.gov/Establishment-Specific-Injury-and-Illness-Data" + +htmlRoutes: + - id: osha-establishment + match: + exactSegments: false + mode: osha_establishment_html diff --git a/internal/extract/manifests/oversight-gov.yaml b/internal/extract/manifests/oversight-gov.yaml new file mode 100644 index 0000000..46b1a05 --- /dev/null +++ b/internal/extract/manifests/oversight-gov.yaml @@ -0,0 +1,17 @@ +# Shared Go + TypeScript Declarative Site Adapter: Oversight.gov IG Reports (#288) +id: oversight-gov +name: Oversight.gov Inspector General Reports +category: public-records +description: "Extracts Council of the Inspectors General on Integrity and Efficiency (CIGIE) Inspector General reports and metadata from oversight.gov while rejecting Azure App Gateway 406 shells." +domains: + - www.oversight.gov + - oversight.gov +auth_mode: pub +exampleUrls: + - "https://www.oversight.gov/reports" + +htmlRoutes: + - id: oversight-gov + match: + exactSegments: false + mode: oversight_gov_html diff --git a/internal/extract/manifests/sba-dsbs-loans.yaml b/internal/extract/manifests/sba-dsbs-loans.yaml new file mode 100644 index 0000000..ec7dfb6 --- /dev/null +++ b/internal/extract/manifests/sba-dsbs-loans.yaml @@ -0,0 +1,45 @@ +# Shared Go + TypeScript Declarative Site Adapter: SBA DSBS & 7(a)/504 Loans (#300) +id: sba-dsbs-loans +name: "SBA DSBS & 7(a)/504 Loan Datasets (DKAN)" +category: finance +description: "Extracts data.sba.gov DKAN 7(a)/504 loan datasets and dataset pages while rejecting empty React SPA shells on search.certifications.sba.gov." +domains: + - data.sba.gov + - search.certifications.sba.gov + - dsbs.sba.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002" + - "https://data.sba.gov/dataset/sba-foia-quarterly-reports" + +routes: + - match: + hosts: + - data.sba.gov + pathPrefix: /api/1/metastore/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: sba_dkan_json + + - match: + hosts: + - data.sba.gov + pathPrefix: /api/1/datastore/query/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: sba_dkan_json + +htmlRoutes: + - id: sba-dsbs-loans + match: + exactSegments: false + mode: sba_dsbs_loans_html diff --git a/internal/extract/manifests/trade-gov-csl.yaml b/internal/extract/manifests/trade-gov-csl.yaml new file mode 100644 index 0000000..24a3172 --- /dev/null +++ b/internal/extract/manifests/trade-gov-csl.yaml @@ -0,0 +1,38 @@ +# Shared Go + TypeScript Declarative Site Adapter: Trade.gov Consolidated Screening List (#275) +id: trade-gov-csl +name: Trade.gov Consolidated Screening List +category: public-records +description: "Official keyed Trade.gov Consolidated Screening List (CSL) API adapter (TRADE_GOV_CSL_API_KEY via subscription-key header) with HTML fallback on www.trade.gov." +domains: + - data.trade.gov + - api.trade.gov + - www.trade.gov + - trade.gov +auth_mode: key +exampleUrls: + - "https://data.trade.gov/consolidated_screening_list/v1/search?q=huawei" + - "https://www.trade.gov/consolidated-screening-list" + +routes: + - match: + hosts: + - data.trade.gov + - api.trade.gov + pathPrefix: /consolidated_screening_list/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: trade_gov_csl_json + +htmlRoutes: + - id: trade-gov-csl + match: + hosts: + - www.trade.gov + - trade.gov + exactSegments: false + mode: trade_gov_csl_html diff --git a/internal/extract/manifests/usitc-hts.yaml b/internal/extract/manifests/usitc-hts.yaml new file mode 100644 index 0000000..e1cc9e7 --- /dev/null +++ b/internal/extract/manifests/usitc-hts.yaml @@ -0,0 +1,85 @@ +# Shared Go + TypeScript Declarative Site Adapter: USITC Harmonized Tariff Schedule (#271) +id: usitc-hts +name: USITC Harmonized Tariff Schedule +category: public-records +description: "Extracts U.S. Harmonized Tariff Schedule (HTS) tariff lines, duty rates, and Chapter 99 / Section 301 footnotes from hts.usitc.gov reststop JSON endpoints with SPA shell guards." +domains: + - hts.usitc.gov +auth_mode: pub +exampleUrls: + - "https://hts.usitc.gov/reststop/search?keyword=bicycle" + - "https://hts.usitc.gov/reststop/exportList?from=8712.00&to=8712.00&format=JSON&styles=false" + +routes: + - match: + hosts: + - hts.usitc.gov + exactSegments: true + pathEquals: + - /reststop/search + queryParams: + - name: keyword + param: keyword + minLen: 1 + maxLen: 120 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + + - match: + hosts: + - hts.usitc.gov + exactSegments: true + pathEquals: + - /reststop/exportList + queryParams: + - name: from + param: from + minLen: 2 + maxLen: 16 + - name: to + param: to + minLen: 2 + maxLen: 16 + - name: format + param: format + allowValues: + - JSON + - json + optional: true + default: JSON + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + + - match: + hosts: + - hts.usitc.gov + pathPrefix: /reststop/ + excludeSegmentSuffixes: + - .csv + - .xlsx + - .pdf + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + +htmlRoutes: + - id: usitc-hts + match: + hosts: + - hts.usitc.gov + exactSegments: false + mode: usitc_hts_html diff --git a/internal/extract/manifests/usps-addresses.yaml b/internal/extract/manifests/usps-addresses.yaml new file mode 100644 index 0000000..e047db1 --- /dev/null +++ b/internal/extract/manifests/usps-addresses.yaml @@ -0,0 +1,40 @@ +# Shared Go + TypeScript Declarative Site Adapter: USPS Addresses v3 (#298) +id: usps-addresses +name: "USPS Addresses v3 Official API" +category: public-records +description: "USPS Addresses v3 API for address standardization, city/state, and ZIP lookup (USPS_ACCESS_TOKEN) with developers.usps.com HTML fallback." +domains: + - apis.usps.com + - apis-tem.usps.com + - developers.usps.com +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC" + - "https://apis.usps.com/addresses/v3/city-state?ZIPCode=20260" + +routes: + - match: + hosts: + - apis.usps.com + - apis-tem.usps.com + anyOf: + - pathPrefix: /addresses/v3/address + - pathPrefix: /addresses/v3/city-state + - pathPrefix: /addresses/v3/zipcode + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 1048576 + extract: + jsonMode: usps_addresses_json + +htmlRoutes: + - id: usps-addresses + match: + hosts: + - developers.usps.com + exactSegments: false + mode: usps_docs_html diff --git a/internal/extract/manifests/ustr-301.yaml b/internal/extract/manifests/ustr-301.yaml new file mode 100644 index 0000000..58b0369 --- /dev/null +++ b/internal/extract/manifests/ustr-301.yaml @@ -0,0 +1,36 @@ +# Shared Go + TypeScript Declarative Site Adapter: USTR Section 301 Trade Actions (#274) +id: ustr-301 +name: USTR Section 301 Trade Actions +category: public-records +description: "Extracts U.S. Trade Representative Section 301 investigation actions, tariff lists, exclusion notices, and RSS feeds from ustr.gov." +domains: + - ustr.gov + - www.ustr.gov +auth_mode: pub +exampleUrls: + - "https://ustr.gov/issue-areas/enforcement/section-301-investigations/tariff-actions" + - "https://ustr.gov/issue-areas/enforcement/section-301-investigations/section-301-china/investigation" + - "https://ustr.gov/rss.xml" + +routes: + - match: + hosts: + - ustr.gov + - www.ustr.gov + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 2097152 + extract: + textMode: ustr_301_rss_xml + +htmlRoutes: + - id: ustr-301 + match: + hosts: + - ustr.gov + - www.ustr.gov + exactSegments: false + mode: ustr_301_html diff --git a/internal/extract/manifests/va-lighthouse-facilities.yaml b/internal/extract/manifests/va-lighthouse-facilities.yaml new file mode 100644 index 0000000..52e79c6 --- /dev/null +++ b/internal/extract/manifests/va-lighthouse-facilities.yaml @@ -0,0 +1,39 @@ +# Shared Go + TypeScript Declarative Site Adapter: VA Lighthouse Facilities API (#294) +id: va-lighthouse-facilities +name: "VA Lighthouse Facilities API" +category: research-health +description: "U.S. Department of Veterans Affairs Lighthouse Facilities API (VA_LIGHTHOUSE_API_KEY) with www.va.gov / developer.va.gov HTML fallback." +domains: + - api.va.gov + - sandbox-api.va.gov + - www.va.gov + - developer.va.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5" + - "https://www.va.gov/find-locations" + +routes: + - match: + hosts: + - api.va.gov + - sandbox-api.va.gov + pathPrefix: /services/va_facilities/v1/facilities + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: va_facilities_json + +htmlRoutes: + - id: va-lighthouse-facilities + match: + hosts: + - www.va.gov + - developer.va.gov + exactSegments: false + mode: va_facilities_html diff --git a/internal/extract/official_api_providers.go b/internal/extract/official_api_providers.go index 56cd179..00e9fb8 100644 --- a/internal/extract/official_api_providers.go +++ b/internal/extract/official_api_providers.go @@ -31,6 +31,8 @@ var dataGovAdapterIDSet = map[string]bool{ "college-scorecard": true, "nps": true, "smithsonian-open-access": true, + "fcc-ecfs": true, + "gsa-site-scanning": true, } // DataGovAdapterIDs returns the sorted list of adapter IDs backed by api.data.gov (`DATA_GOV_API_KEY`). @@ -344,6 +346,48 @@ var officialProviderSpecs = map[string]OfficialAPIKeyProviderSpec{ Aliases: []string{"strava", "STRAVA_ACCESS_TOKEN", "STRAVA_API_KEY"}, DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, }, + "trade-gov-csl": { + Provider: "trade-gov-csl", + EnvKeyName: "TRADE_GOV_CSL_API_KEY", + VaultProvider: "trade-gov-csl", + Aliases: []string{"TRADE_GOV_CSL_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "subscription-key"}, + }, + "dol-enforcement": { + Provider: "dol-enforcement", + EnvKeyName: "DOL_API_KEY", + VaultProvider: "dol-enforcement", + Aliases: []string{"DOL_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "X-API-KEY"}, + }, + "va-lighthouse-facilities": { + Provider: "va-lighthouse-facilities", + EnvKeyName: "VA_LIGHTHOUSE_API_KEY", + VaultProvider: "va-lighthouse-facilities", + Aliases: []string{"va-lighthouse", "va-facilities", "VA_LIGHTHOUSE_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "apikey"}, + }, + "healthcare-gov-marketplace": { + Provider: "healthcare-gov-marketplace", + EnvKeyName: "HEALTHCARE_GOV_API_KEY", + VaultProvider: "healthcare-gov-marketplace", + Aliases: []string{"healthcare-gov", "cms-marketplace", "HEALTHCARE_GOV_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "query", Name: "apikey"}, + }, + "usps-addresses": { + Provider: "usps-addresses", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, + "carrier-tracking-official": { + Provider: "carrier-tracking-official", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "usps-addresses", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, } // NormalizeAPIKeyUserID normalizes a Hub API-key vault user identifier. @@ -486,7 +530,36 @@ func ResolveOfficialAPIProviderSpecForURL(providerOrAdapter, targetURL string) O return resolveWave3ProviderSpecForHostGo(base, host) } -func resolveWave3ProviderSpecForHostGo(base OfficialAPIKeyProviderSpec, _ string) OfficialAPIKeyProviderSpec { +func resolveWave3ProviderSpecForHostGo(base OfficialAPIKeyProviderSpec, host string) OfficialAPIKeyProviderSpec { + if base.Provider == "carrier-tracking-official" { + if host == "apis.usps.com" || host == "apis-tem.usps.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "usps-addresses", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "usps-addresses", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + if host == "onlinetools.ups.com" || host == "wwwcie.ups.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "ups", + EnvKeyName: "UPS_ACCESS_TOKEN", + VaultProvider: "ups", + Aliases: []string{"ups", "UPS_ACCESS_TOKEN", "UPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + if host == "apis.fedex.com" || host == "apis-sandbox.fedex.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "fedex", + EnvKeyName: "FEDEX_ACCESS_TOKEN", + VaultProvider: "fedex", + Aliases: []string{"fedex", "FEDEX_ACCESS_TOKEN", "FEDEX_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + } return base } @@ -864,6 +937,28 @@ func encodeURIComponentJSGo(s string) string { return sb.String() } +// encodeURLSearchParamsJSGo implements WHATWG application/x-www-form-urlencoded byte serialization +// matching JavaScript `new URLSearchParams([['k', s]]).toString().slice(2)` (`*` unescaped, `~` -> `%7E`, `' '` -> `+`). +func encodeURLSearchParamsJSGo(s string) string { + const hexUpper = "0123456789ABCDEF" + var sb strings.Builder + sb.Grow(len(s)) + for i := 0; i < len(s); i++ { + b := s[i] + if b == ' ' { + sb.WriteByte('+') + } else if (b >= 'A' && b <= 'Z') || (b >= 'a' && b <= 'z') || (b >= '0' && b <= '9') || + b == '*' || b == '-' || b == '.' || b == '_' { + sb.WriteByte(b) + } else { + sb.WriteByte('%') + sb.WriteByte(hexUpper[b>>4]) + sb.WriteByte(hexUpper[b&0x0F]) + } + } + return sb.String() +} + func isHexByteProviderGo(b byte) bool { return (b >= '0' && b <= '9') || (b >= 'A' && b <= 'F') || (b >= 'a' && b <= 'f') } @@ -962,10 +1057,12 @@ func RedactSecretsInBody(body string, secrets []string) string { } enc := encodeURIComponentJSGo(s) encPlus := strings.ReplaceAll(enc, "%20", "+") - usp := url.QueryEscape(s) + usp := encodeURLSearchParamsJSGo(s) uspSpacePct20 := strings.ReplaceAll(usp, "+", "%20") + goQ := url.QueryEscape(s) + goQSpacePct20 := strings.ReplaceAll(goQ, "+", "%20") seen := map[string]bool{s: true} - for _, v := range []string{enc, encPlus, usp, uspSpacePct20} { + for _, v := range []string{enc, encPlus, usp, uspSpacePct20, goQ, goQSpacePct20} { if v == "" || seen[v] { continue } diff --git a/internal/extract/round2_platforms_test.go b/internal/extract/round2_platforms_test.go index 36db808..99a77d8 100644 --- a/internal/extract/round2_platforms_test.go +++ b/internal/extract/round2_platforms_test.go @@ -44,22 +44,22 @@ func TestRound2JSONTwins(t *testing.T) { cases := []round2TwinCase{ { name: "dkan-metastore-list", - reqURL: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false", + reqURL: "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false", fixture: "dkan_items.json", wantAdapter: "dkan", wantRecords: 3, - wantTitle: "data.medicaid.gov DKAN datasets", + wantTitle: "data.healthcare.gov DKAN datasets", needles: []string{"State Drug Utilization Data 1991", "`ae4d5347-5137-5f6c-b66c-3420fa0316d8`", "| csv |"}, }, { name: "dkan-dataset-page", - reqURL: "https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8", + reqURL: "https://data.healthcare.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8", wantAdapter: "dkan", - wantFetchURL: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/ae4d5347-5137-5f6c-b66c-3420fa0316d8?show-reference-ids=false", + wantFetchURL: "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items/ae4d5347-5137-5f6c-b66c-3420fa0316d8?show-reference-ids=false", }, { name: "dkan-datastore-query", - reqURL: "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", + reqURL: "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", fixture: "dkan_query.json", wantAdapter: "dkan", wantRecords: 3, diff --git a/internal/extract/wave2c_econ.go b/internal/extract/wave2c_econ.go index 22b2c1c..5e6d1a3 100644 --- a/internal/extract/wave2c_econ.go +++ b/internal/extract/wave2c_econ.go @@ -1008,19 +1008,28 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt return nil, false } var headers []string + isIntlTrade := strings.Contains(strings.ToLower(origURL), "/intltrade/") for _, h := range headerRow { col := wave2cEconPlain(h, 64) if col == "" { col = fmt.Sprintf("col_%d", len(headers)) } + switch strings.ToUpper(col) { + case "I_COMMODITY", "E_COMMODITY", "GEN_VAL_MO", "CON_VAL_MO", "ALL_VAL_MO", "CTY_CODE", "CTY_NAME": + isIntlTrade = true + } headers = append(headers, col) if len(headers) >= 12 { break } } tableCols := len(headers) - if tableCols > 6 { - tableCols = 6 + maxTableCols := 6 + if isIntlTrade { + maxTableCols = 8 + } + if tableCols > maxTableCols { + tableCols = maxTableCols } totalRows := len(matrix) - 1 var recs []map[string]any @@ -1034,6 +1043,9 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt continue } rec := map[string]any{"source": "census"} + if isIntlTrade { + rec["dataset"] = "intltrade" + } tRow := make([]string, tableCols) for c := 0; c < len(headers) && c < len(rowArr); c++ { val := wave2cEconPlain(rowArr[c], 160) @@ -1049,10 +1061,17 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt return nil, false } title := "U.S. Census Data Query" + if isIntlTrade { + title = "U.S. Census International Trade" + } if u, err := url.Parse(origURL); err == nil { p := strings.Trim(u.Path, "/") if p != "" { - title = "U.S. Census: " + p + if isIntlTrade { + title = "U.S. Census International Trade: " + p + } else { + title = "U.S. Census: " + p + } } } blocks := []string{ @@ -1124,6 +1143,23 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt links = append(links, lp) } } + if cDS, okCDS := m["c_dataset"].([]any); okCDS && len(cDS) > 0 { + var parts []string + for _, p := range cDS { + if ps := wave2cEconPlain(p, 40); ps != "" { + parts = append(parts, ps) + } + } + if len(parts) > 0 { + rec["datasetPath"] = strings.Join(parts, "/") + } + } + for _, linkKey := range []string{"c_variablesLink", "c_examplesLink"} { + if extraLink := SanitizeSchemaHTTPSURL(m[linkKey], origURL); extraLink != "" && !seen[extraLink] { + seen[extraLink] = true + links = append(links, extraLink) + } + } recs = append(recs, rec) rows = append(rows, []string{dTitle, vintage, mod, ident}) } diff --git a/internal/extract/wave3_gov_test.go b/internal/extract/wave3_gov_test.go index 865ce43..9cc5a7f 100644 --- a/internal/extract/wave3_gov_test.go +++ b/internal/extract/wave3_gov_test.go @@ -397,8 +397,8 @@ func TestWave3GovDKANExcludedHostsAndPublicBidHeader(t *testing.T) { if m, ok := ResolveDeclarativeTwin("https://data.healthcare.gov/dataset/e4rr-zk4i"); !ok || m == nil || m.AdapterID != "dkan" { t.Fatalf("dkan must match data.healthcare.gov: ok=%v m=%+v", ok, m) } - if m, ok := ResolveDeclarativeTwin("https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8"); !ok || m == nil || m.AdapterID != "dkan" { - t.Fatalf("dkan must match data.medicaid.gov: ok=%v m=%+v", ok, m) + if m, ok := ResolveDeclarativeTwin("https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8"); !ok || m == nil || m.AdapterID != "medicaid-nadac" { + t.Fatalf("medicaid-nadac must match data.medicaid.gov: ok=%v m=%+v", ok, m) } // #212 Public Bid Portals: concise (<65w) BidNet solicitation with header .loginWindow password input extracts cleanly diff --git a/internal/extract/wave3_regulators.go b/internal/extract/wave3_regulators.go new file mode 100644 index 0000000..bfa8fb4 --- /dev/null +++ b/internal/extract/wave3_regulators.go @@ -0,0 +1,2347 @@ +package extract + +import ( + "bytes" + "encoding/json" + stdhtml "html" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3K1MaxHTMLBytes = 4 * 1024 * 1024 + wave3K1MaxJSONBytes = 4 * 1024 * 1024 + wave3K1MaxRecords = 25 +) + +var ( + wave3K1RxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\s+found|case\s+not\s+found|not\s+found|not\s+acceptable|bad\s+request|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|403\s+error)(?:\b|$)`) + wave3K1RxMaintTitle = newLazyRegexp(`(?i)(?:scheduled\s+maintenance|temporarily\s+unavailable|service\s+unavailable|site\s+maintenance|under\s+maintenance|502\s+bad\s+gateway|503\s+service|down\s+for\s+maintenance)`) + wave3K1RxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:400|401|403|404|406|410|429|500|502|503)\s+)?(?:internal\s+)?server\s+error|application\s+error|system\s+error|unexpected\s+error|error\s+page|(?:400|401|403|404|406|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:400|401|403|404|406|410|429|500|502|503)|error)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3K1RxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|cases|legal\s+library|ecfs|uls|adams)$`) + wave3K1RxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3K1RxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3K1RxHref = newLazyRegexp(`(?i)]*\bhref\s*=\s*["']([^"'#][^"']*)["'][^>]*>(.*?)`) + wave3K1RxTRow = newLazyRegexp(`(?is)]*>(.*?)`) + wave3K1RxTCell = newLazyRegexp(`(?is)]*>(.*?)`) + wave3K1RxDateLike = newLazyRegexp(`\b(?:\d{4}-\d{2}-\d{2}|\d{1,2}[-/]\d{1,2}[-/]\d{2,4}|(?:January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\.?\s+\d{1,2},\s+\d{4})\b`) + wave3K1RxISODate = newLazyRegexp(`^\d{4}-\d{2}-\d{2}`) + wave3K1RxMoney = newLazyRegexp(`\$[0-9]{1,3}(?:,[0-9]{3})*(?:\.[0-9]{2})?(?:\s*(?:million|billion))?`) + wave3K1RxNLRBCaseNo = newLazyRegexp(`(?i)\b\d{2}-[A-Z]{2}-\d{5,7}\b`) + wave3K1RxNLRBField = newLazyRegexp(`(?is)]*>\s*(Case Number|Date Filed|Status|Location|Region Assigned)\s*:?\s*\s*([^<\r\n]+)`) + wave3K1RxFTCMatter = newLazyRegexp(`(?is)(?:Matter(?:/File)?\s*Number|File\s*Number|Civil\s*Action\s*Number|Docket\s*Number)\s*:?\s*\s*(?:<[^>]+>\s*)*([A-Z0-9][A-Z0-9\-\.\s/:]{2,48})`) + wave3K1RxCallSign = newLazyRegexp(`\b[KW][A-Z0-9]{2,6}\b`) + wave3K1RxAccession = newLazyRegexp(`\bML\d{8,11}\b`) + wave3K1RxReleaseNum = newLazyRegexp(`(?i)\b(?:Release\s+(?:Number|No\.?)\s*[:#]?\s*|OCC\s+(?:Bulletin|News\s+Release)\s+)([A-Z0-9\-]{4,24})`) + wave3K1RxTitleTag = newLazyRegexp(`(?is)]*>(.*?)`) + wave3RxEmptyRootDiv = newLazyRegexp(`(?i)]*\bid=["'](?:root|app|__next|react-root)["'][^>]*>\s*`) + wave3RxEmptyRootDivMain = newLazyRegexp(`(?i)]*\bid=["'](?:root|app|__next|react-root|main-content)["'][^>]*>\s*`) +) + +func wave3HasEmptyRootDivShell(rawHTML, probeLower string, includeMainContent bool) bool { + rx := wave3RxEmptyRootDiv + if includeMainContent { + rx = wave3RxEmptyRootDivMain + } + if strings.Contains(probeLower, " 65536 && len(rawHTML) <= 262144 { + tail := rawHTML[65400:] + if indexFoldASCIIExtract(tail, "= 0 && rx.MatchString(tail) { + return true + } + } + return false +} + +func init() { + for _, mode := range []string{ + "dol_enforcement_html", + "osha_establishment_html", + "nlrb_cases_html", + "eeoc_litigation_html", + "ftc_cases_html", + "fcc_ecfs_html", + "fcc_uls_html", + "ferc_nrc_dockets_html", + "financial_regulators_html", + "oversight_gov_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return wave3K1RunHTMLModeCore(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3RegulatorsHTMLMode reports whether mode is one of the 10 Category K Part 1 HTML extractors (#279-#288). +func IsWave3RegulatorsHTMLMode(mode string) bool { + switch mode { + case "dol_enforcement_html", + "osha_establishment_html", + "nlrb_cases_html", + "eeoc_litigation_html", + "ftc_cases_html", + "fcc_ecfs_html", + "fcc_uls_html", + "ferc_nrc_dockets_html", + "financial_regulators_html", + "oversight_gov_html": + return true + default: + return false + } +} + +// RunWave3RegulatorsHTMLMode executes a Category K Part 1 HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3RegulatorsHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + if !IsWave3RegulatorsHTMLMode(mode) || strings.TrimSpace(rawHTML) == "" { + return "", false + } + res := wave3K1RunHTMLModeCore(mode, rawHTML, baseURL, wave3K1DefaultExtractorID(mode)) + res = sanitizePostFetchResultDeclHTML(res) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return "", false + } + encoded, err := json.Marshal(res) + if err != nil { + return "", false + } + return string(encoded), true +} + +// IsWave3RegulatorsJSONMode reports whether mode is one of the Category K Part 1 JSON formatters. +func IsWave3RegulatorsJSONMode(mode string) bool { + switch mode { + case "dol_enforcement_json", + "fcc_ecfs_json", + "fcc_uls_json": + return true + default: + return false + } +} + +// FormatWave3RegulatorsJSONDoc formats a Category K Part 1 JSON payload into DeclarativeFormattedDoc. +func FormatWave3RegulatorsJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3RegulatorsJSONMode(mode) || len(raw) == 0 || len(raw) > wave3K1MaxJSONBytes { + return nil, false + } + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || (trimmed[0] != '{' && trimmed[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(trimmed) + if !ok || parsed == nil { + return nil, false + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "dol_enforcement_json": + doc, handled = wave3K1FormatDOLJSON(parsed, origURL) + case "fcc_ecfs_json": + doc, handled = wave3K1FormatFCCECFSJSON(parsed, origURL) + case "fcc_uls_json": + doc, handled = wave3K1FormatFCCULSJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3K1FinalizeDoc(doc), true +} + +// FormatWave3RegulatorsJSONMode formats a Category K Part 1 JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3RegulatorsJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3RegulatorsJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +func wave3K1DefaultExtractorID(mode string) string { + switch mode { + case "dol_enforcement_html": + return "dol-enforcement" + case "osha_establishment_html": + return "osha-establishment" + case "nlrb_cases_html": + return "nlrb-cases" + case "eeoc_litigation_html": + return "eeoc-litigation" + case "ftc_cases_html": + return "ftc-cases" + case "fcc_ecfs_html": + return "fcc-ecfs" + case "fcc_uls_html": + return "fcc-uls" + case "ferc_nrc_dockets_html": + return "ferc-nrc-dockets" + case "financial_regulators_html": + return "financial-regulators-enforcement" + case "oversight_gov_html": + return "oversight-gov" + default: + return "" + } +} + +func wave3K1RunHTMLModeCore(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3K1MaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3K1MaxHTMLBytes) + } + trimmedStart := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmedStart == "" || trimmedStart[0] == '{' || trimmedStart[0] == '[' { + return nil + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + probeLower := asciiLowerExtractString(probe) + urlLower := asciiLowerExtractString(baseURL) + + // Cheap byte prefilter BEFORE negative-shell checks or DOM extraction. + if !wave3K1MatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3K1HasCommonNegativeShell(rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3K1DefaultExtractorID(mode) + } + + switch mode { + case "dol_enforcement_html": + return wave3K1ExtractDOLHTML(rawHTML, probeLower, baseURL, extractorID) + case "osha_establishment_html": + return wave3K1ExtractOSHAHTML(rawHTML, baseURL, extractorID) + case "nlrb_cases_html": + return wave3K1ExtractNLRBHTML(rawHTML, baseURL, urlLower, extractorID) + case "eeoc_litigation_html": + return wave3K1ExtractEEOCHTML(rawHTML, baseURL, extractorID) + case "ftc_cases_html": + return wave3K1ExtractFTCHTML(rawHTML, baseURL, extractorID) + case "fcc_ecfs_html": + return wave3K1ExtractFCCECFSHTML(rawHTML, baseURL, extractorID) + case "fcc_uls_html": + return wave3K1ExtractFCCULSHTML(rawHTML, baseURL, extractorID) + case "ferc_nrc_dockets_html": + return wave3K1ExtractFERCNRCHTML(rawHTML, baseURL, urlLower, extractorID) + case "financial_regulators_html": + return wave3K1ExtractFinRegHTML(rawHTML, baseURL, urlLower, extractorID) + case "oversight_gov_html": + return wave3K1ExtractOversightHTML(rawHTML, baseURL, extractorID) + default: + return nil + } +} + +func wave3K1MatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "dol_enforcement_html": + return strings.Contains(urlLower, "dol.gov") || + strings.Contains(probeLower, "dol.gov") || + strings.Contains(probeLower, "department of labor") || + strings.Contains(probeLower, "wage and hour division") || + strings.Contains(probeLower, "whd_enforcement") + case "osha_establishment_html": + return strings.Contains(urlLower, "osha.gov") || + strings.Contains(probeLower, "osha.gov") || + strings.Contains(probeLower, "occupational safety and health") || + strings.Contains(probeLower, "/pls/imis/") || + strings.Contains(probeLower, "establishment") + case "nlrb_cases_html": + return strings.Contains(urlLower, "nlrb.gov") || + strings.Contains(probeLower, "nlrb.gov") || + strings.Contains(probeLower, "national labor relations board") || + strings.Contains(probeLower, "case_docket_activity") + case "eeoc_litigation_html": + return strings.Contains(urlLower, "eeoc.gov") || + strings.Contains(probeLower, "eeoc.gov") || + strings.Contains(probeLower, "equal employment opportunity commission") + case "ftc_cases_html": + return strings.Contains(urlLower, "ftc.gov") || + strings.Contains(probeLower, "ftc.gov") || + strings.Contains(probeLower, "federal trade commission") + case "fcc_ecfs_html": + return strings.Contains(urlLower, "fcc.gov/ecfs") || + strings.Contains(probeLower, "electronic comment filing") || + strings.Contains(probeLower, "ecfs") + case "fcc_uls_html": + return strings.Contains(urlLower, "wireless2.fcc.gov") || + strings.Contains(urlLower, "opendata.fcc.gov") || + strings.Contains(urlLower, "data.fcc.gov") || + strings.Contains(probeLower, "universal licensing system") || + strings.Contains(probeLower, "ulsapp") + case "ferc_nrc_dockets_html": + return strings.Contains(urlLower, "ferc.gov") || + strings.Contains(urlLower, "nrc.gov") || + strings.Contains(probeLower, "ferc") || + strings.Contains(probeLower, "nrc.gov") || + strings.Contains(probeLower, "elibrary") || + strings.Contains(probeLower, "adams") + case "financial_regulators_html": + return strings.Contains(urlLower, "cftc.gov") || + strings.Contains(urlLower, "occ.gov") || + strings.Contains(urlLower, "fincen.gov") || + strings.Contains(probeLower, "cftc.gov") || + strings.Contains(probeLower, "occ.gov") || + strings.Contains(probeLower, "fincen.gov") || + strings.Contains(probeLower, "commodity futures trading commission") || + strings.Contains(probeLower, "office of the comptroller of the currency") || + strings.Contains(probeLower, "financial crimes enforcement network") + case "oversight_gov_html": + return strings.Contains(urlLower, "oversight.gov") || + strings.Contains(probeLower, "oversight.gov") || + strings.Contains(probeLower, "inspector general") + default: + return false + } +} + +// ── Shared Negative-Shell, Sanitizing & DOM Helpers ────────────────────────────────────────────── + +func wave3K1IsNegativeURL(urlLower string) bool { + if urlLower == "" { + return false + } + if strings.Contains(urlLower, "/404") || + strings.Contains(urlLower, "/not-found") || + strings.Contains(urlLower, "/maintenance") || + strings.Contains(urlLower, "missing_key.html") || + strings.Contains(urlLower, "error=true") { + return true + } + pathOnly := urlLower + if idx := strings.Index(pathOnly, "://"); idx >= 0 { + rest := pathOnly[idx+3:] + if slash := strings.IndexByte(rest, '/'); slash >= 0 { + pathOnly = rest[slash:] + } else { + pathOnly = "/" + } + } + if cut := strings.IndexAny(pathOnly, "?#"); cut >= 0 { + pathOnly = pathOnly[:cut] + } + return strings.HasSuffix(pathOnly, "/error") || + strings.Contains(pathOnly, "/error/") || + strings.HasSuffix(pathOnly, "/error.html") || + strings.HasSuffix(pathOnly, "/error.htm") || + strings.HasSuffix(pathOnly, "/error.aspx") || + strings.HasSuffix(pathOnly, "/login") || + strings.Contains(pathOnly, "/login/") +} + +func wave3K1IsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3K1RxNotFoundTitle.MatchString(t) || + wave3K1RxMaintTitle.MatchString(t) || + wave3K1RxErrorTitle.MatchString(t) +} + +func wave3K1IsGenericTitle(title string) bool { + return wave3K1RxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3K1HasEmptyTitleTag(probeLower string) bool { + m := wave3K1RxTitleTag.FindStringSubmatch(probeLower) + if len(m) < 2 { + return false + } + return strings.TrimSpace(wave3K1RxHTMLTag.ReplaceAllString(m[1], "")) == "" +} + +func wave3K1HasCommonNegativeShell(rawHTML, probeLower, urlLower string) bool { + if wave3K1IsNegativeURL(urlLower) { + return true + } + for _, marker := range []string{ + "cf-browser-verification", + "cf-turnstile", + "challenge-platform", + "/cdn-cgi/challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "just a moment...", + "errors.edgesuite.net", + "error from cloudfront", + "generated by cloudfront", + "the request could not be satisfied", + "you don't have permission to access", + "access denied", + "403 forbidden", + "403 error", + "not acceptable", + "406 not acceptable", + "bad request. reference:", + "missing authentication token", + "api key is either incorrect or missing", + "api_key_missing", + "no api_key was supplied", + `rx-contentitemname" content="404"`, + "page not found | fincen.gov", + "404 page not found", + "window.kpsdk", + "kp_uidz", + "_incapsula_resource", + "incapsula incident", + "x-amzn-waf-action", + "the requested url was rejected", + "your support id is", + "var dd=", + "var dd =", + "dd={'rt'", + "geo.captcha-delivery.com", + "captcha-delivery.com", + "please enable js and disable any ad blocker", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(rawHTML) + if wave3K1IsNegativeTitle(title) { + return true + } + if wave3K1HasEmptyTitleTag(probeLower) && + !strings.Contains(probeLower, "") + if !hasAppRoot && len(rawHTML) > 65536 && len(rawHTML) <= 262144 { + hasAppRoot = indexFoldASCIIExtract(rawHTML[65536:], "") >= 0 + } + hasTailRealMarkers := len(rawHTML) > 65536 && + (indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0) + if hasAppRoot && + !hasJSONLDScriptToken(rawHTML) && + !strings.Contains(probeLower, " 0 { + return true + } + case map[string]any: + if len(tv) > 0 { + if k == "Errors" { + if errVal, okE := tv["Err"]; okE && errVal != nil { + if s, okS := errVal.(string); !okS || strings.TrimSpace(s) != "" { + return true + } + } + continue + } + return true + } + case bool: + if tv { + return true + } + } + } + } + for _, k := range []string{"error_code", "statusCode", "status_code", "status"} { + if f, ok := wave3K1FloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if st := strings.ToUpper(wave3K1Plain(obj["status"], 48)); st == "ERROR" || st == "ERR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "NOTAUTHENTICATED" { + return true + } + if msg := wave3K1Plain(obj["message"], 200); msg != "" && len(obj) <= 3 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "unauthorized") || strings.Contains(lm, "not found") || + strings.Contains(lm, "invalid") || strings.Contains(lm, "forbidden") || + strings.Contains(lm, "missing authentication") || strings.Contains(lm, "api key") || + strings.Contains(lm, "no http resource") { + return true + } + } + return false +} + +func wave3K1CleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3K1RxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + } + return strings.TrimSpace(wave3K1RxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3K1Plain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3K1StringVal(v), maxLen) +} + +func wave3K1FirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3K1StringVal(v any) string { + switch tv := v.(type) { + case string: + return strings.TrimSpace(tv) + case json.Number: + return tv.String() + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return "" + } + if tv == math.Trunc(tv) { + return strconv.FormatInt(int64(tv), 10) + } + return strconv.FormatFloat(tv, 'f', -1, 64) + case int: + return strconv.Itoa(tv) + case int64: + return strconv.FormatInt(tv, 10) + case bool: + if tv { + return "true" + } + return "false" + default: + return "" + } +} + +func wave3K1FloatVal(v any) (float64, bool) { + switch tv := v.(type) { + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return 0, false + } + return tv, true + case int: + return float64(tv), true + case int64: + return float64(tv), true + case json.Number: + f, err := tv.Float64() + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + case string: + s := strings.TrimSpace(strings.ReplaceAll(tv, ",", "")) + if s == "" { + return 0, false + } + f, err := strconv.ParseFloat(s, 64) + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + default: + return 0, false + } +} + +func wave3K1Map(v any) map[string]any { + if m, ok := v.(map[string]any); ok { + return m + } + return nil +} + +func wave3K1Slice(v any) []any { + if s, ok := v.([]any); ok { + return s + } + return nil +} + +func wave3K1IntPtr(n int) *int { + v := n + return &v +} + +func wave3K1BoolPtr(b bool) *bool { + v := b + return &v +} + +func wave3K1AddLink(links *[]string, seen map[string]bool, raw, base string) { + u := SanitizeSchemaHTTPSURL(raw, base) + if u != "" && !seen[u] { + seen[u] = true + *links = append(*links, u) + } +} + +func wave3K1ExtractH1(rawHTML string) string { + inner, ok := findElementInnerLinearDeclHTML(rawHTML, "h1", nil, 0) + if !ok { + return "" + } + return wave3K1CleanText(inner) +} + +func wave3K1ExtractMeta(rawHTML, key string) string { + target := strings.ToLower(strings.TrimSpace(key)) + pos := 0 + for i := 0; i < 64 && pos < len(rawHTML); i++ { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "meta", nil, pos) + if !ok { + break + } + pos = open.openEnd + nameVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "name") + propVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "property") + if strings.EqualFold(strings.TrimSpace(nameVal), target) || strings.EqualFold(strings.TrimSpace(propVal), target) { + if content, okC := getAttrValueLinearDeclHTML(open.attrStr, "content"); okC { + return wave3K1CleanText(content) + } + } + } + return "" +} + +func wave3K1ExtractByID(rawHTML, tagName, id string) string { + if strings.EqualFold(tagName, "div") { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "div", func(attrStr string) bool { + v, okID := getAttrValueLinearDeclHTML(attrStr, "id") + return okID && strings.EqualFold(strings.TrimSpace(v), id) + }, 0) + if !ok { + return "" + } + if inner, okB := extractBalancedDivAtDeclHTML(rawHTML, open.index); okB { + return inner + } + return "" + } + inner, ok := findElementInnerLinearDeclHTML(rawHTML, tagName, func(attrStr string) bool { + v, okID := getAttrValueLinearDeclHTML(attrStr, "id") + return okID && strings.EqualFold(strings.TrimSpace(v), id) + }, 0) + if !ok { + return "" + } + return inner +} + +func wave3K1ExtractByClassSub(rawHTML, tagName, classNeedle string) string { + needle := strings.ToLower(classNeedle) + if strings.EqualFold(tagName, "div") { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "div", func(attrStr string) bool { + v, okC := getAttrValueLinearDeclHTML(attrStr, "class") + return okC && strings.Contains(strings.ToLower(v), needle) + }, 0) + if !ok { + return "" + } + if inner, okB := extractBalancedDivAtDeclHTML(rawHTML, open.index); okB { + return inner + } + return "" + } + inner, ok := findElementInnerLinearDeclHTML(rawHTML, tagName, func(attrStr string) bool { + v, okC := getAttrValueLinearDeclHTML(attrStr, "class") + return okC && strings.Contains(strings.ToLower(v), needle) + }, 0) + if !ok { + return "" + } + return inner +} + +// wave3K1MainRegion slices the primary
or content container so large Drupal/Gov +// headers and megamenus (e.g., nlrb.gov, ftc.gov, fincen.gov) are bypassed quickly. +func wave3K1MainRegion(rawHTML string) string { + if open, ok := findOpenTagLinearDeclHTML(rawHTML, "main", nil, 0); ok { + if _, closeEnd, okC := findCloseTagLinearDeclHTML(rawHTML, "main", open.openEnd); okC && closeEnd > open.openEnd { + return rawHTML[open.openEnd:closeEnd] + } + if open.openEnd < len(rawHTML) { + return rawHTML[open.openEnd:] + } + } + for _, id := range []string{"main-content", "main_content", "block-mainpagecontent", "content"} { + if frag := wave3K1ExtractByID(rawHTML, "div", id); frag != "" { + return frag + } + } + if art, okA := findElementInnerLinearDeclHTML(rawHTML, "article", nil, 0); okA && art != "" { + return art + } + return rawHTML +} + +func wave3K1FragToMD(frag, baseURL string) string { + if strings.TrimSpace(frag) == "" { + return "" + } + doc := ExtractHTMLDocumentFull(""+frag+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: false, + IncludeImages: false, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return strings.TrimSpace(doc.Markdown) +} + +func wave3K1ExtractLinks(frag, baseURL string, maxLinks int) []struct{ Text, URL string } { + matches := wave3K1RxHref.FindAllStringSubmatch(frag, maxLinks*3) + out := make([]struct{ Text, URL string }, 0, maxLinks) + seen := make(map[string]bool) + for _, m := range matches { + if len(out) >= maxLinks { + break + } + if len(m) < 3 { + continue + } + u := SanitizeSchemaHTTPSURL(stdhtml.UnescapeString(strings.TrimSpace(m[1])), baseURL) + if u == "" || seen[u] { + continue + } + txt := wave3K1CleanText(m[2]) + if txt == "" { + continue + } + seen[u] = true + out = append(out, struct{ Text, URL string }{Text: txt, URL: u}) + } + return out +} + +func wave3K1FinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + doc.Title = SanitizeScrapedMeta(doc.Title) + doc.Description = SanitizeScrapedMeta(doc.Description) + doc.Author = SanitizeScrapedMeta(doc.Author) + doc.PublishedTime = SanitizeSchemaPlainField(doc.PublishedTime, 64) + doc.Markdown = SanitizeScrapedMarkdown(escapeDangerousRawHTMLOutsideFencesDeclGo(doc.Markdown)) + if len(doc.Links) > 0 { + clean := make([]string, 0, len(doc.Links)) + seen := make(map[string]bool, len(doc.Links)) + for _, l := range doc.Links { + if u := SanitizeSchemaHTTPSURL(l, ""); u != "" && !seen[u] { + seen[u] = true + clean = append(clean, u) + } + } + doc.Links = clean + } + if len(doc.Records) > wave3K1MaxRecords { + total := len(doc.Records) + if doc.Total != nil && *doc.Total > total { + total = *doc.Total + } + doc.Records = doc.Records[:wave3K1MaxRecords] + doc.Total = wave3K1IntPtr(total) + doc.Returned = wave3K1IntPtr(len(doc.Records)) + doc.Truncated = wave3K1BoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } else if len(doc.Records) > 0 { + if doc.Returned == nil { + doc.Returned = wave3K1IntPtr(len(doc.Records)) + } + if doc.Total == nil { + doc.Total = wave3K1IntPtr(len(doc.Records)) + } + } + return doc +} + +func wave3K1CapRecords(recs []map[string]any, total int) ([]map[string]any, *int, *int, *bool) { + if len(recs) == 0 { + return nil, nil, nil, nil + } + if total < len(recs) { + total = len(recs) + } + if len(recs) > wave3K1MaxRecords { + recs = recs[:wave3K1MaxRecords] + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), wave3K1BoolPtr(true) + } + if total > len(recs) { + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), wave3K1BoolPtr(true) + } + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), nil +} + +func wave3K1HostFromURL(rawURL string) string { + u, err := url.Parse(strings.TrimSpace(rawURL)) + if err != nil { + return "" + } + return strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") +} + +func wave3K1MDCell(s string) string { + s = strings.ReplaceAll(s, "|", "\\|") + s = strings.ReplaceAll(s, "\n", " ") + return strings.TrimSpace(s) +} + +func wave3K1PickISODate(raw string) string { + raw = strings.TrimSpace(raw) + if len(raw) >= 10 && wave3K1RxISODate.MatchString(raw[:10]) { + return raw[:10] + } + return "" +} + +func wave3K1ExtractTables(frag, baseURL, source string, maxRows int) ([]map[string]any, [][]string, []string, []string) { + var headers []string + var rowsMD [][]string + var recs []map[string]any + var links []string + seen := make(map[string]bool) + + for _, tr := range wave3K1RxTRow.FindAllStringSubmatch(frag, maxRows+10) { + cells := wave3K1RxTCell.FindAllStringSubmatch(tr[1], 12) + if len(cells) < 2 { + continue + } + if len(headers) == 0 && strings.Contains(strings.ToLower(tr[1]), " 0 { + rawItems = []any{obj} + } + if t, ok := wave3K1FloatVal(obj["count"]); ok && t > 0 { + totalCount = int(t) + } else if t, ok := wave3K1FloatVal(obj["total"]); ok && t > 0 { + totalCount = int(t) + } + } else if arr := wave3K1Slice(parsed); arr != nil { + rawItems = arr + } + if len(rawItems) == 0 { + return nil, false + } + + var recs []map[string]any + var latestDate string + isOSHA := strings.Contains(strings.ToLower(origURL), "/osha/") + + for _, el := range rawItems { + m := wave3K1Map(el) + if m == nil { + continue + } + caseID := wave3K1Plain(wave3K1FirstNonEmpty( + wave3K1StringVal(m["case_id"]), + wave3K1StringVal(m["activity_nr"]), + wave3K1StringVal(m["inspection_nr"]), + wave3K1StringVal(m["id"]), + ), 48) + entity := wave3K1Plain(wave3K1FirstNonEmpty( + wave3K1StringVal(m["trade_nm"]), + wave3K1StringVal(m["legal_name"]), + wave3K1StringVal(m["estab_name"]), + wave3K1StringVal(m["establishment_name"]), + wave3K1StringVal(m["name"]), + ), 140) + city := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["city_nm"]), wave3K1StringVal(m["site_city"]), wave3K1StringVal(m["city"])), 64) + state := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["st_cd"]), wave3K1StringVal(m["site_state"]), wave3K1StringVal(m["state"])), 16) + naics := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["naics_code_description"]), wave3K1StringVal(m["naics_cd"]), wave3K1StringVal(m["naics_code"])), 120) + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty( + wave3K1StringVal(m["findings_end_date"]), + wave3K1StringVal(m["findings_start_date"]), + wave3K1StringVal(m["close_case_date"]), + wave3K1StringVal(m["open_date"]), + wave3K1StringVal(m["load_dt"]), + )) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + if caseID == "" && entity == "" { + continue + } + rec := map[string]any{ + "source": "dol-enforcement", + } + if caseID != "" { + rec["caseId"] = caseID + } + if entity != "" { + rec["entity"] = entity + } + if city != "" || state != "" { + rec["location"] = strings.Trim(city+", "+state, ", ") + } + if naics != "" { + rec["industry"] = naics + } + if dateStr != "" { + rec["date"] = dateStr + } + if amt, ok := wave3K1FloatVal(m["bw_atp_amt"]); ok { + rec["backWagesUsd"] = amt + } + if cmp, ok := wave3K1FloatVal(m["cmp_assd_cnt"]); ok { + rec["civilPenaltyUsd"] = cmp + } + if pen, ok := wave3K1FloatVal(m["total_current_penalty"]); ok { + rec["currentPenaltyUsd"] = pen + } + if vcnt, ok := wave3K1FloatVal(m["flsa_violtn_cnt"]); ok { + rec["flsaViolations"] = int(vcnt) + } + if inst, ok := wave3K1FloatVal(m["nr_instances"]); ok { + rec["instances"] = int(inst) + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + title := "DOL WHD Enforcement Records" + if isOSHA { + title = "DOL OSHA Inspection Records" + } + if len(capped) == 1 { + if ent := wave3K1StringVal(capped[0]["entity"]); ent != "" { + title += ": " + ent + } + } + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: U.S. Department of Labor Open Data API (`apiprod.dol.gov`)\n") + if latestDate != "" { + md.WriteString("- **Latest Record Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteString("\n| Case / Activity | Entity | Location | Date | Penalty / Back Wages |\n|---|---|---|---|---|\n") + for _, r := range capped { + amt := "-" + if bw, ok := wave3K1FloatVal(r["backWagesUsd"]); ok { + amt = "$" + strconv.FormatFloat(bw, 'f', 2, 64) + " back wages" + } else if pen, ok := wave3K1FloatVal(r["currentPenaltyUsd"]); ok { + amt = "$" + strconv.FormatFloat(pen, 'f', 2, 64) + " penalty" + } else if cmp, ok := wave3K1FloatVal(r["civilPenaltyUsd"]); ok { + amt = "$" + strconv.FormatFloat(cmp, 'f', 2, 64) + " CMP" + } + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["caseId"]), "-"))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["entity"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["location"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["date"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(amt)) + md.WriteString(" |\n") + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "U.S. Department of Labor enforcement records (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractDOLHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + // Reject empty React shell on data.dol.gov + if strings.Contains(probeLower, "data.dol.gov") && + (wave3K1HasEmptyTitleTag(probeLower) || strings.Contains(probeLower, `
`)) && + !strings.Contains(probeLower, " 0 && len(headers) >= 2 { + md.WriteString("\n## Inspection & Establishment Records\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #281 NLRB Cases HTML ───────────────────────────────────────────────────────────────────────── + +func wave3K1ExtractNLRBHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + if block := wave3K1ExtractByID(mainFrag, "div", "block-mainpagecontent"); block != "" { + mainFrag = block + } + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + fields := make(map[string]string) + for _, m := range wave3K1RxNLRBField.FindAllStringSubmatch(mainFrag, 10) { + if len(m) >= 3 { + k := strings.TrimSpace(m[1]) + v := wave3K1CleanText(m[2]) + if k != "" && v != "" { + fields[k] = v + } + } + } + if fields["Case Number"] == "" { + if cm := wave3K1RxNLRBCaseNo.FindString(baseURL + " " + mainFrag); cm != "" { + fields["Case Number"] = cm + } + } + + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "nlrb-cases", wave3K1MaxRecords) + seen := make(map[string]bool, len(links)) + for _, l := range links { + seen[l] = true + } + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + low := strings.ToLower(lk.URL) + if strings.Contains(low, "/case/") || strings.Contains(low, ".pdf") || strings.Contains(low, "/sites/default/files/") { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + if len(rowsMD) == 0 && strings.Contains(low, "/case/") { + recs = append(recs, map[string]any{"source": "nlrb-cases", "title": lk.Text, "url": lk.URL}) + } + } + } + + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if fields["Case Number"] == "" && len(recs) == 0 && len(strings.Fields(bodyMD)) < 15 { + return nil + } + // Reject generic "Cases" landing page without docket/case rows or case number + if strings.Contains(urlLower, "/cases-decisions/") && fields["Case Number"] == "" && len(recs) == 0 { + return nil + } + + if len(recs) == 0 { + rec := map[string]any{ + "source": "nlrb-cases", + "title": title, + "url": baseURL, + } + if cn := fields["Case Number"]; cn != "" { + rec["caseNumber"] = cn + } + if df := fields["Date Filed"]; df != "" { + rec["dateFiled"] = df + } + if st := fields["Status"]; st != "" { + rec["status"] = st + } + if loc := fields["Location"]; loc != "" { + rec["location"] = loc + } + if reg := fields["Region Assigned"]; reg != "" { + rec["region"] = reg + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: National Labor Relations Board (NLRB)\n") + for _, k := range []string{"Case Number", "Date Filed", "Status", "Location", "Region Assigned"} { + if v := fields[k]; v != "" { + md.WriteString("- **") + md.WriteString(k) + md.WriteString("**: ") + if k == "Case Number" { + md.WriteByte('`') + md.WriteString(v) + md.WriteByte('`') + } else { + md.WriteString(v) + } + md.WriteByte('\n') + } + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n## Docket & Case Table\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: fields["Date Filed"], + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #282 EEOC Litigation HTML ──────────────────────────────────────────────────────────────────── + +func wave3K1ExtractEEOCHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + if art, okA := findElementInnerLinearDeclHTML(mainFrag, "article", nil, 0); okA && art != "" { + mainFrag = art + } + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + subHead := wave3K1CleanText(wave3K1ExtractByClassSub(mainFrag, "div", "press-release__site-subheading")) + pubDate := wave3K1RxDateLike.FindString(subHead) + if pubDate == "" { + pubDate = wave3K1RxDateLike.FindString(wave3K1CleanText(mainFrag)) + } + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(strings.Fields(bodyMD)) < 12 { + return nil + } + settlement := wave3K1RxMoney.FindString(title + " " + bodyMD) + + var links []string + seen := make(map[string]bool) + var recs []map[string]any + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if strings.Contains(low, "/newsroom/") && len(lk.Text) >= 12 { + recs = append(recs, map[string]any{"source": "eeoc-litigation", "title": lk.Text, "url": lk.URL}) + } + } + if len(recs) == 0 { + rec := map[string]any{ + "source": "eeoc-litigation", + "title": title, + "url": baseURL, + } + if pubDate != "" { + rec["date"] = pubDate + } + if settlement != "" { + rec["monetaryRelief"] = settlement + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: U.S. Equal Employment Opportunity Commission (EEOC)\n") + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + if settlement != "" { + md.WriteString("- **Monetary Relief / Amount**: ") + md.WriteString(settlement) + md.WriteByte('\n') + } + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #283 FTC Cases & Proceedings HTML ──────────────────────────────────────────────────────────── + +func wave3K1ExtractFTCHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + matterNum := "" + if mm := wave3K1RxFTCMatter.FindStringSubmatch(mainFrag); len(mm) >= 2 { + matterNum = wave3K1CleanText(mm[1]) + } + pubDate := wave3K1RxDateLike.FindString(wave3K1CleanText(wave3K1FirstNonEmpty( + wave3K1ExtractByClassSub(mainFrag, "div", "field--name-field-date"), + wave3K1ExtractByClassSub(mainFrag, "div", "field--name-field-last-updated"), + mainFrag, + ))) + + var links []string + seen := make(map[string]bool) + var recs []map[string]any + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 30) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if (strings.Contains(low, "/legal-library/browse/") || strings.Contains(low, ".pdf")) && len(lk.Text) >= 8 { + recs = append(recs, map[string]any{ + "source": "ftc-cases", + "title": lk.Text, + "url": lk.URL, + }) + } + } + + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + if len(recs) == 0 { + rec := map[string]any{"source": "ftc-cases", "title": title, "url": baseURL} + if matterNum != "" { + rec["matterNumber"] = matterNum + } + if pubDate != "" { + rec["date"] = pubDate + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: Federal Trade Commission (FTC)\n") + if matterNum != "" { + md.WriteString("- **Matter / Docket Number**: `") + md.WriteString(matterNum) + md.WriteString("`\n") + } + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #284 FCC ECFS JSON & HTML ──────────────────────────────────────────────────────────────────── + +func wave3K1FormatFCCECFSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var rawFilings []any + totalCount := 0 + if obj := wave3K1Map(parsed); obj != nil { + if wave3K1IsGenericJSONError(obj) { + return nil, false + } + if f := wave3K1Slice(obj["filing"]); f != nil { + rawFilings = f + } else if f := wave3K1Slice(obj["filings"]); f != nil { + rawFilings = f + } else if obj["id_submission"] != nil { + rawFilings = []any{obj} + } + if agg := wave3K1Map(obj["aggregations"]); agg != nil { + if t, ok := wave3K1FloatVal(agg["total"]); ok && t > 0 { + totalCount = int(t) + } + } + if totalCount == 0 { + if t, ok := wave3K1FloatVal(obj["total"]); ok && t > 0 { + totalCount = int(t) + } + } + } else if arr := wave3K1Slice(parsed); arr != nil { + rawFilings = arr + } + if len(rawFilings) == 0 { + return nil, false + } + + var recs []map[string]any + var links []string + seen := make(map[string]bool) + var latestDate string + + for _, el := range rawFilings { + m := wave3K1Map(el) + if m == nil { + continue + } + subID := wave3K1Plain(m["id_submission"], 48) + if subID == "" { + continue + } + subType := "" + if st := wave3K1Map(m["submissiontype"]); st != nil { + subType = wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(st["description"]), wave3K1StringVal(st["short"])), 64) + } + status := "" + if fs := wave3K1Map(m["filingstatus"]); fs != nil { + status = wave3K1Plain(fs["description"], 48) + } + var filerNames []string + for _, fl := range wave3K1Slice(m["filers"]) { + if fm := wave3K1Map(fl); fm != nil { + if n := wave3K1Plain(fm["name"], 100); n != "" { + filerNames = append(filerNames, n) + } + } + } + var procNames []string + var procDesc string + var bureau string + for _, pr := range wave3K1Slice(m["proceedings"]) { + if pm := wave3K1Map(pr); pm != nil { + if pn := wave3K1Plain(pm["name"], 32); pn != "" { + procNames = append(procNames, pn) + } + if procDesc == "" { + procDesc = wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(pm["description_display"]), wave3K1StringVal(pm["description"])), 200) + } + if bureau == "" { + bureau = wave3K1Plain(pm["bureau_name"], 80) + } + } + } + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty( + wave3K1StringVal(m["date_disseminated"]), + wave3K1StringVal(m["date_submission"]), + wave3K1StringVal(m["date_received"]), + )) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + textExcerpt := wave3K1Plain(m["text_data"], 220) + for _, dm := range wave3K1Slice(m["documents"]) { + if docObj := wave3K1Map(dm); docObj != nil { + wave3K1AddLink(&links, seen, wave3K1StringVal(docObj["src"]), "https://www.fcc.gov") + } + } + filingURL := "https://www.fcc.gov/ecfs/filing/" + url.PathEscape(subID) + wave3K1AddLink(&links, seen, filingURL, "") + + rec := map[string]any{ + "source": "fcc-ecfs", + "submissionId": subID, + "url": filingURL, + } + if subType != "" { + rec["submissionType"] = subType + } + if status != "" { + rec["status"] = status + } + if len(filerNames) > 0 { + rec["filers"] = strings.Join(filerNames, "; ") + } + if len(procNames) > 0 { + rec["proceedings"] = strings.Join(procNames, ", ") + } + if bureau != "" { + rec["bureau"] = bureau + } + if dateStr != "" { + rec["date"] = dateStr + } + if textExcerpt != "" { + rec["excerpt"] = textExcerpt + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + title := "FCC ECFS Filings" + if p := wave3K1StringVal(capped[0]["proceedings"]); p != "" { + title += " — Docket " + p + } + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: FCC Electronic Comment Filing System (`publicapi.fcc.gov`)\n") + if latestDate != "" { + md.WriteString("- **Latest Disseminated Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteString("\n| Submission ID | Type | Proceeding(s) | Filer(s) | Date | Excerpt |\n|---|---|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1StringVal(r["submissionId"]))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["submissionType"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["proceedings"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["filers"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["date"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["excerpt"]), "-"))) + md.WriteString(" |\n") + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "FCC ECFS public filings (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractFCCECFSHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "fcc-ecfs", wave3K1MaxRecords) + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 15 { + return nil + } + if len(recs) == 0 { + recs = append(recs, map[string]any{"source": "fcc-ecfs", "title": title, "url": baseURL}) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **System**: FCC Electronic Comment Filing System (ECFS)\n") + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #285 FCC ULS JSON & HTML ───────────────────────────────────────────────────────────────────── + +func wave3K1FormatFCCULSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var recs []map[string]any + var links []string + seen := make(map[string]bool) + totalCount := 0 + var latestDate string + title := "FCC ULS Licensing Records" + + // Format 1: Socrata ULS row array (`opendata.fcc.gov/resource/*.json`) + if arr := wave3K1Slice(parsed); arr != nil { + if len(arr) == 0 { + return nil, false + } + for _, el := range arr { + m := wave3K1Map(el) + if m == nil { + continue + } + callSign := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_call_sign"]), wave3K1StringVal(m["call_sign"]), wave3K1StringVal(m["callsign"])), 32) + licName := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_license_name"]), wave3K1StringVal(m["license_name"]), wave3K1StringVal(m["lic_name"]), wave3K1StringVal(m["entity_name"])), 140) + frn := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_frns"]), wave3K1StringVal(m["frn"])), 32) + status := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_application_status"]), wave3K1StringVal(m["status_desc"]), wave3K1StringVal(m["license_status"])), 48) + city := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_location_city"]), wave3K1StringVal(m["city"])), 64) + state := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_location_state"]), wave3K1StringVal(m["state"])), 16) + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_status_date"]), wave3K1StringVal(m["grant_date"]), wave3K1StringVal(m["expired_date"]))) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + if callSign == "" && licName == "" && frn == "" { + continue + } + rec := map[string]any{"source": "fcc-uls"} + if callSign != "" { + rec["callSign"] = callSign + } + if licName != "" { + rec["licensee"] = licName + } + if frn != "" { + rec["frn"] = frn + } + if status != "" { + rec["status"] = status + } + if city != "" || state != "" { + rec["location"] = strings.Trim(city+", "+state, ", ") + } + if dateStr != "" { + rec["date"] = dateStr + } + recs = append(recs, rec) + } + } else if obj := wave3K1Map(parsed); obj != nil { + if wave3K1IsGenericJSONError(obj) { + return nil, false + } + // Format 2a: Legacy data.fcc.gov License View (`Licenses.License[]`) + if licsObj := wave3K1Map(obj["Licenses"]); licsObj != nil { + if t, ok := wave3K1FloatVal(licsObj["totalRows"]); ok && t > 0 { + totalCount = int(t) + } + licArr := wave3K1Slice(licsObj["License"]) + if len(licArr) == 0 { + if single := wave3K1Map(licsObj["License"]); single != nil { + licArr = []any{single} + } + } + for _, el := range licArr { + m := wave3K1Map(el) + if m == nil { + continue + } + callSign := wave3K1Plain(m["callsign"], 32) + licName := wave3K1Plain(m["licName"], 140) + frn := wave3K1Plain(m["frn"], 32) + service := wave3K1Plain(m["serviceDesc"], 80) + status := wave3K1Plain(m["statusDesc"], 48) + expDate := wave3K1Plain(m["expiredDate"], 32) + detailURL := SanitizeSchemaHTTPSURL(wave3K1StringVal(m["licDetailURL"]), "https://wireless2.fcc.gov") + if detailURL != "" { + wave3K1AddLink(&links, seen, detailURL, "") + } + if callSign == "" && licName == "" { + continue + } + rec := map[string]any{ + "source": "fcc-uls", + "callSign": callSign, + "licensee": licName, + } + if frn != "" { + rec["frn"] = frn + } + if service != "" { + rec["service"] = service + } + if status != "" { + rec["status"] = status + } + if expDate != "" { + rec["expiredDate"] = expDate + } + if detailURL != "" { + rec["url"] = detailURL + } + recs = append(recs, rec) + } + } else if results := wave3K1Slice(obj["results"]); results != nil { + // Format 2b: Socrata Catalog API (`/api/catalog/v1`) + title = "FCC Open Data Catalog (ULS)" + if rs, ok := wave3K1FloatVal(obj["resultSetSize"]); ok && rs > 0 { + totalCount = int(rs) + } + for _, el := range results { + m := wave3K1Map(el) + if m == nil { + continue + } + resObj := wave3K1Map(m["resource"]) + if resObj == nil { + continue + } + id := wave3K1Plain(resObj["id"], 24) + name := wave3K1Plain(resObj["name"], 160) + desc := wave3K1Plain(resObj["description"], 200) + upd := wave3K1PickISODate(wave3K1StringVal(resObj["updatedAt"])) + if upd != "" && upd > latestDate { + latestDate = upd + } + dsURL := SanitizeSchemaHTTPSURL(wave3K1StringVal(m["link"]), "https://opendata.fcc.gov") + if dsURL == "" && id != "" { + dsURL = "https://opendata.fcc.gov/resource/" + id + ".json" + } + if dsURL != "" { + wave3K1AddLink(&links, seen, dsURL, "") + } + if id == "" && name == "" { + continue + } + recs = append(recs, map[string]any{ + "source": "fcc-uls", + "datasetId": id, + "name": name, + "description": desc, + "updatedAt": upd, + "url": dsURL, + }) + } + } else if viewID := wave3K1Plain(obj["id"], 24); viewID != "" && wave3K1Plain(obj["name"], 160) != "" { + // Format 2c: Socrata View Metadata (`/api/views/.json`) + name := wave3K1Plain(obj["name"], 160) + title = name + " (FCC Open Data)" + desc := wave3K1Plain(obj["description"], 300) + for _, col := range wave3K1Slice(obj["columns"]) { + if cm := wave3K1Map(col); cm != nil { + fn := wave3K1Plain(cm["fieldName"], 64) + if fn == "" || strings.HasPrefix(fn, ":@") { + continue + } + recs = append(recs, map[string]any{ + "source": "fcc-uls", + "datasetId": viewID, + "fieldName": fn, + "dataType": wave3K1Plain(cm["dataTypeName"], 32), + }) + } + } + if len(recs) == 0 { + recs = append(recs, map[string]any{"source": "fcc-uls", "datasetId": viewID, "name": name, "description": desc}) + } + } + } + + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: FCC Universal Licensing System / Open Data (`") + md.WriteString(wave3K1FirstNonEmpty(wave3K1HostFromURL(origURL), "opendata.fcc.gov")) + md.WriteString("`)\n") + if latestDate != "" { + md.WriteString("- **Latest Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteByte('\n') + if _, isCatalog := capped[0]["datasetId"]; isCatalog { + md.WriteString("| ID | Name / Field | Detail | URL |\n|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1StringVal(r["datasetId"]))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["name"]), wave3K1StringVal(r["fieldName"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["dataType"]), wave3K1StringVal(r["description"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["url"]), "-"))) + md.WriteString(" |\n") + } + } else { + md.WriteString("| Call Sign | Licensee | FRN | Status | Service / Location |\n|---|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["callSign"]), "-"))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["licensee"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["frn"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["status"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["service"]), wave3K1StringVal(r["location"]), "-"))) + md.WriteString(" |\n") + } + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "FCC ULS licensing & dataset records (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractFCCULSHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "fcc-uls", wave3K1MaxRecords) + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + callSign := wave3K1RxCallSign.FindString(title + " " + bodyMD) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + if len(recs) == 0 { + rec := map[string]any{"source": "fcc-uls", "title": title, "url": baseURL} + if callSign != "" { + rec["callSign"] = callSign + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **System**: FCC Universal Licensing System (ULS)\n") + if callSign != "" { + md.WriteString("- **Call Sign**: `") + md.WriteString(callSign) + md.WriteString("`\n") + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #286 FERC eLibrary & NRC ADAMS Dockets HTML ────────────────────────────────────────────────── + +func wave3K1ExtractFERCNRCHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + agency := "NRC ADAMS" + if strings.Contains(urlLower, "ferc.gov") || strings.Contains(strings.ToLower(title), "ferc") || strings.Contains(strings.ToLower(title), "elibrary") { + agency = "FERC eLibrary" + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "ferc-nrc-dockets", wave3K1MaxRecords) + seen := make(map[string]bool, len(links)) + for _, l := range links { + seen[l] = true + } + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + } + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + accNo := wave3K1RxAccession.FindString(title + " " + bodyMD) + if len(recs) == 0 { + rec := map[string]any{ + "source": "ferc-nrc-dockets", + "agency": agency, + "title": title, + "url": baseURL, + } + if accNo != "" { + rec["accessionNumber"] = accNo + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency / System**: ") + md.WriteString(agency) + md.WriteByte('\n') + if accNo != "" { + md.WriteString("- **Accession Number**: `") + md.WriteString(accNo) + md.WriteString("`\n") + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n## Docket & Document Table\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #287 CFTC, OCC & FinCEN Enforcement HTML ───────────────────────────────────────────────────── + +func wave3K1ExtractFinRegHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + agency := "Financial Regulator" + switch { + case strings.Contains(urlLower, "cftc.gov"): + agency = "Commodity Futures Trading Commission (CFTC)" + case strings.Contains(urlLower, "occ.gov"): + agency = "Office of the Comptroller of the Currency (OCC)" + case strings.Contains(urlLower, "fincen.gov"): + agency = "Financial Crimes Enforcement Network (FinCEN)" + } + + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + ogTitle := wave3K1ExtractMeta(rawHTML, "og:title") + rawTitle := wave3K1CleanText(extractTitleLinearQuick(rawHTML)) + // On CFTC, the first

is "Release Number 9331-26" and the headline is in

...

or . + releaseNum := "" + if rm := wave3K1RxReleaseNum.FindStringSubmatch(h1 + " " + wave3K1CleanText(mainFrag[:minIntReg(len(mainFrag), 2048)])); len(rm) >= 2 { + releaseNum = strings.TrimSpace(rm[1]) + } + title := wave3K1FirstNonEmpty(ogTitle, rawTitle, h1) + if strings.HasPrefix(strings.ToLower(h1), "release number") && rawTitle != "" { + title = rawTitle + } else if h1 != "" && !strings.HasPrefix(strings.ToLower(h1), "release number") { + title = h1 + } + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + pubDate := wave3K1RxDateLike.FindString(wave3K1CleanText(mainFrag[:minIntReg(len(mainFrag), 4096)])) + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(strings.Fields(bodyMD)) < 10 { + return nil + } + + var links []string + seen := make(map[string]bool) + var recs []map[string]any + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if (strings.Contains(low, "/pressroom/") || strings.Contains(low, "/news-issuances/") || strings.Contains(low, "/news/") || strings.Contains(low, ".pdf")) && len(lk.Text) >= 10 { + recs = append(recs, map[string]any{ + "source": "financial-regulators-enforcement", + "agency": agency, + "title": lk.Text, + "url": lk.URL, + }) + } + } + if len(recs) == 0 { + rec := map[string]any{ + "source": "financial-regulators-enforcement", + "agency": agency, + "title": title, + "url": baseURL, + } + if releaseNum != "" { + rec["releaseNumber"] = releaseNum + } + if pubDate != "" { + rec["date"] = pubDate + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: ") + md.WriteString(agency) + md.WriteByte('\n') + if releaseNum != "" { + md.WriteString("- **Release / Bulletin**: `") + md.WriteString(releaseNum) + md.WriteString("`\n") + } + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +func minIntReg(a, b int) int { + if a < b { + return a + } + return b +} + +// ── #288 Oversight.gov IG Reports HTML ─────────────────────────────────────────────────────────── + +func wave3K1ExtractOversightHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "oversight-gov", wave3K1MaxRecords) + seen := make(map[string]bool, len(links)) + for _, l := range links { + seen[l] = true + } + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if len(rowsMD) == 0 && (strings.Contains(low, "/report") || strings.Contains(low, ".pdf")) && len(lk.Text) >= 10 { + recs = append(recs, map[string]any{ + "source": "oversight-gov", + "title": lk.Text, + "url": lk.URL, + }) + } + } + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + pubDate := wave3K1RxDateLike.FindString(wave3K1CleanText(mainFrag[:minIntReg(len(mainFrag), 4096)])) + if len(recs) == 0 { + rec := map[string]any{"source": "oversight-gov", "title": title, "url": baseURL} + if pubDate != "" { + rec["date"] = pubDate + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: Oversight.gov (CIGIE Inspector General Reports)\n") + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n## Reports\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} diff --git a/internal/extract/wave3_regulators_health.go b/internal/extract/wave3_regulators_health.go new file mode 100644 index 0000000..eb00730 --- /dev/null +++ b/internal/extract/wave3_regulators_health.go @@ -0,0 +1,3237 @@ +package extract + +import ( + "bytes" + "encoding/csv" + "encoding/json" + "fmt" + stdhtml "html" + "io" + "math" + "net/url" + "sort" + "strconv" + "strings" +) + +const ( + wave3K2MaxHTMLBytes = 2 * 1024 * 1024 + wave3K2MaxJSONBytes = 4 * 1024 * 1024 + wave3K2MaxTextBytes = 4 * 1024 * 1024 + wave3K2MaxRecords = 25 + wave3K2MaxHPTLocations = 50 +) + +var ( + wave3K2RxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\s+found|not\s+found|not\s+acceptable|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|403\s+error|error\s+403)(?:\b|$)`) + wave3K2RxMaintTitle = newLazyRegexp(`(?i)(?:scheduled\s+maintenance|temporarily\s+unavailable|service\s+unavailable|site\s+maintenance|under\s+maintenance|system\s+maintenance|502\s+bad\s+gateway|503\s+service|down\s+for\s+maintenance)`) + wave3K2RxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:401|403|404|406|410|429|500|502|503)\s+)?(?:internal\s+)?server\s+error|application\s+error|system\s+error|unexpected\s+error|error\s+page|(?:401|403|404|406|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:401|403|404|406|410|429|500|502|503)|error)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3K2RxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|cms\s+medicaid\s+data|medicaid\.gov|sba\s+small\s+business\s+search|usps\s+developer\s+portal|va\.gov|healthcare\.gov)$`) + wave3K2RxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3K2RxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3K2RxHref = newLazyRegexp(`(?i)<a\b[^>]*\bhref\s*=\s*["']([^"'#][^"']*)["'][^>]*>(.*?)</a>`) + wave3K2RxGAOID = newLazyRegexp(`(?i)\bGAO-\d{2}-\d{4,7}[A-Z]?\b`) + wave3K2RxPubID = newLazyRegexp(`(?i)/publication/(\d+)`) + wave3K2RxCRSID = newLazyRegexp(`(?i)\b([A-Z]{1,3}\d{4,6})\b`) + wave3K2RxISODate = newLazyRegexp(`\b(\d{4}-\d{2}-\d{2})\b`) +) + +func init() { + for _, mode := range []string{ + "gao_reports_html", + "cbo_html", + "everycrs_html", + "gov_wp_newsroom_html", + "gsa_site_scanning_html", + "va_facilities_html", + "healthcare_gov_html", + "cms_price_transparency_html", + "medicaid_nadac_html", + "usps_docs_html", + "sba_dsbs_loans_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3RegulatorsHealthRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3RegulatorsHealthHTMLMode reports whether mode is one of the Category K Part 2 HTML extractors (#289-#300). +func IsWave3RegulatorsHealthHTMLMode(mode string) bool { + switch mode { + case "gao_reports_html", + "cbo_html", + "everycrs_html", + "gov_wp_newsroom_html", + "gsa_site_scanning_html", + "va_facilities_html", + "healthcare_gov_html", + "cms_price_transparency_html", + "medicaid_nadac_html", + "usps_docs_html", + "sba_dsbs_loans_html": + return true + default: + return false + } +} + +// IsWave3RegulatorsHealthJSONMode reports whether mode is one of the Category K Part 2 JSON formatters (#291-#300). +func IsWave3RegulatorsHealthJSONMode(mode string) bool { + switch mode { + case "everycrs_json", + "gov_wp_posts_json", + "gsa_site_scanning_json", + "va_facilities_json", + "healthcare_marketplace_json", + "cms_mrf_json", + "medicaid_nadac_json", + "usps_addresses_json", + "carrier_tracking_json", + "sba_dkan_json": + return true + default: + return false + } +} + +// IsWave3RegulatorsHealthTextMode reports whether mode is one of the Category K Part 2 text/RSS/CSV formatters (#289-#291, #296). +func IsWave3RegulatorsHealthTextMode(mode string) bool { + switch mode { + case "gao_rss_xml", + "cbo_rss_xml", + "everycrs_csv", + "cms_hpt_txt", + "cms_mrf_csv": + return true + default: + return false + } +} + +func wave3K2DefaultExtractorID(mode string) string { + switch mode { + case "gao_reports_html", "gao_rss_xml": + return "gao-reports" + case "cbo_html", "cbo_rss_xml": + return "cbo" + case "everycrs_html", "everycrs_json", "everycrs_csv": + return "everycrsreport" + case "gov_wp_newsroom_html", "gov_wp_posts_json": + return "gov-wordpress-newsrooms" + case "gsa_site_scanning_html", "gsa_site_scanning_json": + return "gsa-site-scanning" + case "va_facilities_html", "va_facilities_json": + return "va-lighthouse-facilities" + case "healthcare_gov_html", "healthcare_marketplace_json": + return "healthcare-gov-marketplace" + case "cms_price_transparency_html", "cms_hpt_txt", "cms_mrf_json", "cms_mrf_csv": + return "cms-price-transparency" + case "medicaid_nadac_html", "medicaid_nadac_json": + return "medicaid-nadac" + case "usps_docs_html", "usps_addresses_json": + return "usps-addresses" + case "carrier_tracking_json": + return "carrier-tracking-official" + case "sba_dsbs_loans_html", "sba_dkan_json": + return "sba-dsbs-loans" + default: + return "" + } +} + +// Wave3RegulatorsHealthRunHTML executes a Category K Part 2 HTML extractor (#289-#300). +func Wave3RegulatorsHealthRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3RegulatorsHealthHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3K2MaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3K2MaxHTMLBytes) + } + trimmedStart := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmedStart == "" || trimmedStart[0] == '{' || trimmedStart[0] == '[' { + return nil + } + + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + probeLower := asciiLowerExtractString(probe) + urlLower := asciiLowerExtractString(baseURL) + + // Cheap byte prefilter BEFORE common negative-shell checks or DOM extraction. + if !wave3K2MatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3K2HasCommonNegativeShell(rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3K2DefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "gao_reports_html": + res = wave3K2ExtractGAOHTML(rawHTML, probeLower, baseURL, extractorID) + case "cbo_html": + res = wave3K2ExtractCBOHTML(rawHTML, probeLower, baseURL, extractorID) + case "everycrs_html": + res = wave3K2ExtractEveryCRSHTML(rawHTML, probeLower, baseURL, extractorID) + case "gov_wp_newsroom_html": + res = wave3K2ExtractGovWPHTML(rawHTML, probeLower, baseURL, extractorID) + case "gsa_site_scanning_html": + res = wave3K2ExtractGSAHTML(rawHTML, probeLower, baseURL, extractorID) + case "va_facilities_html": + res = wave3K2ExtractVAFacilitiesHTML(rawHTML, probeLower, baseURL, extractorID) + case "healthcare_gov_html": + res = wave3K2ExtractHealthcareGovHTML(rawHTML, probeLower, baseURL, extractorID) + case "cms_price_transparency_html": + res = wave3K2ExtractCMSPriceHTML(rawHTML, probeLower, baseURL, extractorID) + case "medicaid_nadac_html": + res = wave3K2ExtractMedicaidHTML(rawHTML, probeLower, baseURL, extractorID) + case "usps_docs_html": + res = wave3K2ExtractUSPSDocsHTML(rawHTML, probeLower, baseURL, extractorID) + case "sba_dsbs_loans_html": + res = wave3K2ExtractSBADSBSHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return res +} + +// RunWave3RegulatorsHealthHTMLMode executes a Category K Part 2 HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3RegulatorsHealthHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3RegulatorsHealthRunHTML(mode, rawHTML, baseURL, wave3K2DefaultExtractorID(mode)) + res = sanitizePostFetchResultDeclHTML(res) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return "", false + } + encoded, err := json.Marshal(res) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3RegulatorsHealthJSONDoc formats a Category K Part 2 JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3RegulatorsHealthJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3RegulatorsHealthJSONMode(mode) || len(raw) == 0 || len(raw) > wave3K2MaxJSONBytes { + return nil, false + } + + // #296 cms_mrf_json must detect ZIP (PK\x03\x04) and gzip (\x1f\x8b) magic bytes before JSON parsing. + if mode == "cms_mrf_json" { + if archFmt := wave3K2DetectArchiveFormat(raw); archFmt != "" { + doc := wave3K2FormatCMSArchiveDoc(archFmt, len(raw), origURL) + return wave3K2FinalizeDoc(doc), true + } + doc, handled := wave3K2FormatCMSMRFJSON(raw, origURL) + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3K2FinalizeDoc(doc), true + } + + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || (trimmed[0] != '{' && trimmed[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(trimmed) + if !ok || parsed == nil { + return nil, false + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "everycrs_json": + doc, handled = wave3K2FormatEveryCRSJSON(parsed, origURL) + case "gov_wp_posts_json": + doc, handled = wave3K2FormatGovWPPostsJSON(parsed, origURL) + case "gsa_site_scanning_json": + doc, handled = wave3K2FormatGSASiteScanningJSON(parsed, origURL) + case "va_facilities_json": + doc, handled = wave3K2FormatVAFacilitiesJSON(parsed, origURL) + case "healthcare_marketplace_json": + doc, handled = wave3K2FormatHealthcareMarketplaceJSON(parsed, origURL) + case "medicaid_nadac_json": + doc, handled = wave3K2FormatMedicaidDKANJSON(parsed, origURL, "Medicaid NADAC Data") + case "usps_addresses_json": + doc, handled = wave3K2FormatUSPSAddressesJSON(parsed, origURL) + case "carrier_tracking_json": + doc, handled = wave3K2FormatCarrierTrackingJSON(parsed, origURL) + case "sba_dkan_json": + doc, handled = wave3K2FormatMedicaidDKANJSON(parsed, origURL, "SBA Open Data (DKAN)") + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3K2FinalizeDoc(doc), true +} + +// FormatWave3RegulatorsHealthJSONMode formats a Category K Part 2 JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3RegulatorsHealthJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3RegulatorsHealthJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3RegulatorsHealthTextDoc formats a Category K Part 2 text/RSS/CSV payload into DeclarativeFormattedDoc. +func FormatWave3RegulatorsHealthTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3RegulatorsHealthTextMode(mode) || len(rawBody) == 0 || len(rawBody) > wave3K2MaxTextBytes { + return nil, false + } + + if mode == "cms_mrf_csv" { + if archFmt := wave3K2DetectArchiveFormat([]byte(rawBody)); archFmt != "" { + doc := wave3K2FormatCMSArchiveDoc(archFmt, len(rawBody), origURL) + return wave3K2FinalizeDoc(doc), true + } + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "gao_rss_xml": + doc, handled = wave3K2FormatRSSXML(rawBody, origURL, "GAO Reports & Testimonies") + case "cbo_rss_xml": + doc, handled = wave3K2FormatRSSXML(rawBody, origURL, "Congressional Budget Office (CBO)") + case "everycrs_csv": + doc, handled = wave3K2FormatEveryCRSCSV(rawBody, origURL) + case "cms_hpt_txt": + doc, handled = wave3K2FormatCMSHPTTxt(rawBody, origURL) + case "cms_mrf_csv": + doc, handled = wave3K2FormatCMSMRFCSV(rawBody, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3K2FinalizeDoc(doc), true +} + +// FormatWave3RegulatorsHealthTextMode formats a Category K Part 2 text payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3RegulatorsHealthTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3RegulatorsHealthTextDoc(mode, rawBody, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// ── Prefilters & Common Negative Shell Guards ─────────────────────────────────────────────────── + +func wave3K2MatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "gao_reports_html": + return strings.Contains(urlLower, "gao.gov") || + strings.Contains(probeLower, "page-node-type-product") || + strings.Contains(probeLower, "gao-uswds") || + strings.Contains(probeLower, "what gao found") || + strings.Contains(probeLower, "u.s. government accountability office") + case "cbo_html": + return strings.Contains(urlLower, "cbo.gov") || + strings.Contains(probeLower, "congressional budget office") || + strings.Contains(probeLower, "cbo-") + case "everycrs_html": + return strings.Contains(urlLower, "everycrsreport.com") || + strings.Contains(probeLower, "everycrsreport") || + strings.Contains(probeLower, "every crs report") || + strings.Contains(probeLower, "crsreports.congress.gov") + case "gov_wp_newsroom_html": + if strings.Contains(probeLower, "woocommerce") || strings.Contains(probeLower, "wc-block") || strings.Contains(probeLower, "wc-ajax") { + return false + } + return strings.Contains(probeLower, "wp-content") || + strings.Contains(probeLower, "wp-block-") || + strings.Contains(probeLower, "wp-json") || + strings.Contains(probeLower, "yoast") || + strings.Contains(urlLower, "whitehouse.gov") || + strings.Contains(urlLower, "news.va.gov") || + strings.Contains(urlLower, "nasa.gov") + case "gsa_site_scanning_html": + return strings.Contains(probeLower, "site-scanning") || + strings.Contains(probeLower, "site scanning") || + strings.Contains(probeLower, "api.gsa.gov") || + strings.Contains(urlLower, "open.gsa.gov") + case "va_facilities_html": + return strings.Contains(urlLower, "va.gov") || + strings.Contains(probeLower, "va facilities") || + strings.Contains(probeLower, "veterans affairs") || + strings.Contains(probeLower, "lighthouse") + case "healthcare_gov_html": + return strings.Contains(urlLower, "healthcare.gov") || + strings.Contains(probeLower, "healthcare.gov") || + strings.Contains(probeLower, "health insurance marketplace") + case "cms_price_transparency_html": + return strings.Contains(probeLower, "cms-hpt.txt") || + strings.Contains(probeLower, "standardcharges") || + strings.Contains(probeLower, "45 cfr 180") || + strings.Contains(probeLower, "transparency in coverage") || + (strings.Contains(probeLower, "price transparency") && + (strings.Contains(probeLower, "machine-readable") || strings.Contains(probeLower, "machine readable") || strings.Contains(probeLower, "mrf"))) + case "medicaid_nadac_html": + return strings.Contains(urlLower, "data.medicaid.gov") || + strings.Contains(probeLower, "nadac") || + strings.Contains(probeLower, "medicaid") + case "usps_docs_html": + return strings.Contains(urlLower, "developers.usps.com") || + strings.Contains(probeLower, "usps") || + strings.Contains(probeLower, "addresses/v3") + case "sba_dsbs_loans_html": + return strings.Contains(urlLower, "sba.gov") || + strings.Contains(probeLower, "sba open data") || + strings.Contains(probeLower, "small business administration") || + strings.Contains(probeLower, "dkan") + default: + return false + } +} + +func wave3K2IsNegativeURL(urlLower string) bool { + if urlLower == "" { + return false + } + if strings.Contains(urlLower, "/404") || + strings.Contains(urlLower, "/not-found") || + strings.Contains(urlLower, "/maintenance") || + strings.Contains(urlLower, "error=true") { + return true + } + pathOnly := urlLower + if idx := strings.Index(pathOnly, "://"); idx >= 0 { + rest := pathOnly[idx+3:] + if slash := strings.IndexByte(rest, '/'); slash >= 0 { + pathOnly = rest[slash:] + } else { + pathOnly = "/" + } + } + if cut := strings.IndexAny(pathOnly, "?#"); cut >= 0 { + pathOnly = pathOnly[:cut] + } + return strings.HasSuffix(pathOnly, "/error") || + strings.Contains(pathOnly, "/error/") || + strings.HasSuffix(pathOnly, "/error.html") || + strings.HasSuffix(pathOnly, "/error.htm") || + strings.HasSuffix(pathOnly, "/error.aspx") || + strings.HasSuffix(pathOnly, "/login") || + strings.Contains(pathOnly, "/login/") +} + +func wave3K2IsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3K2RxNotFoundTitle.MatchString(t) || + wave3K2RxMaintTitle.MatchString(t) || + wave3K2RxErrorTitle.MatchString(t) +} + +func wave3K2IsGenericTitle(title string) bool { + return wave3K2RxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3K2HasWAFOrChallengeMarkers(lower string) bool { + for _, marker := range []string{ + "var dd=", + "var dd =", + "dd={'rt'", + "geo.captcha-delivery.com", + "captcha-delivery.com", + "please enable js and disable any ad blocker", + "cf-browser-verification", + "cf-turnstile", + "cf-mitigated", + "challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "just a moment...", + "errors.edgesuite.net", + "error from cloudfront", + "the request could not be satisfied", + "you don't have permission to access", + "<title>access denied", + "403 forbidden", + "error 403", + "not acceptable", + "window.kpsdk", + "kp_uidz", + "_incapsula_resource", + "incapsula incident", + "x-amzn-waf-action", + "the requested url was rejected", + "your support id is", + } { + if strings.Contains(lower, marker) { + return true + } + } + return false +} + +func wave3K2HasCommonNegativeShell(rawHTML, probeLower, urlLower string) bool { + if wave3K2IsNegativeURL(urlLower) { + return true + } + if wave3K2HasWAFOrChallengeMarkers(probeLower) { + return true + } + title := extractTitleLinearQuick(rawHTML) + if wave3K2IsNegativeTitle(title) { + return true + } + hasSPAShell := wave3HasEmptyRootDivShell(rawHTML, probeLower, false) || + strings.Contains(probeLower, ``) + if !hasSPAShell && len(rawHTML) > 65536 && len(rawHTML) <= 262144 { + tail := rawHTML[65400:] + hasSPAShell = indexFoldASCIIExtract(tail, ``) >= 0 + } + hasTailRealMarkers := len(rawHTML) > 65536 && + (indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0) + if hasSPAShell && + !hasJSONLDScriptToken(rawHTML) && + !strings.Contains(probeLower, " 0 { + return true + } + case map[string]any: + if len(tv) > 0 { + return true + } + case bool: + if tv { + return true + } + } + } + } + for _, k := range []string{"error_code", "statusCode", "status_code", "status"} { + if f, ok := wave3K2FloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if code := wave3K2Plain(obj["code"], 80); strings.HasPrefix(code, "rest_") { + return true + } + if msg := wave3K2Plain(obj["message"], 200); msg != "" && len(obj) <= 3 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "unauthorized") || strings.Contains(lm, "not found") || + strings.Contains(lm, "no api key") || strings.Contains(lm, "invalid api key") || + strings.Contains(lm, "invalid_token") || strings.Contains(lm, "access token") || + strings.Contains(lm, "forbidden") || strings.Contains(lm, "api_key_missing") { + return true + } + } + return false +} + +// ── Shared Formatting & DOM Helpers ───────────────────────────────────────────────────────────── + +func wave3K2IntPtr(n int) *int { return &n } +func wave3K2BoolPtr(b bool) *bool { return &b } + +func wave3K2FinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3K2MaxRecords { + if doc.Total == nil { + doc.Total = wave3K2IntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3K2MaxRecords] + doc.Returned = wave3K2IntPtr(len(doc.Records)) + doc.Truncated = wave3K2BoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3K2CleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3K2RxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + } + return strings.TrimSpace(wave3K2RxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3K2Plain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3K2StringVal(v), maxLen) +} + +func wave3K2FirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3K2StringVal(v any) string { + switch tv := v.(type) { + case string: + return strings.TrimSpace(tv) + case json.Number: + return tv.String() + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return "" + } + if tv == math.Trunc(tv) { + return strconv.FormatInt(int64(tv), 10) + } + return strconv.FormatFloat(tv, 'f', -1, 64) + case int: + return strconv.Itoa(tv) + case int64: + return strconv.FormatInt(tv, 10) + case bool: + if tv { + return "true" + } + return "false" + default: + return "" + } +} + +func wave3K2FloatVal(v any) (float64, bool) { + switch tv := v.(type) { + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return 0, false + } + return tv, true + case int: + return float64(tv), true + case int64: + return float64(tv), true + case json.Number: + f, err := tv.Float64() + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + case string: + s := strings.TrimSpace(strings.ReplaceAll(tv, ",", "")) + if s == "" { + return 0, false + } + f, err := strconv.ParseFloat(s, 64) + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + default: + return 0, false + } +} + +func wave3K2Map(v any) map[string]any { + if m, ok := v.(map[string]any); ok { + return m + } + return nil +} + +func wave3K2Slice(v any) []any { + if s, ok := v.([]any); ok { + return s + } + return nil +} + +func wave3K2AddLink(links *[]string, seen map[string]bool, raw, base string) { + u := SanitizeSchemaHTTPSURL(raw, base) + if u != "" && !seen[u] { + seen[u] = true + *links = append(*links, u) + } +} + +func wave3K2ExtractH1(rawHTML string) string { + inner, ok := findElementInnerLinearDeclHTML(rawHTML, "h1", nil, 0) + if !ok { + return "" + } + return wave3K2CleanText(inner) +} + +func wave3K2ExtractMeta(rawHTML, key string) string { + target := strings.ToLower(strings.TrimSpace(key)) + pos := 0 + for i := 0; i < 64 && pos < len(rawHTML); i++ { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "meta", nil, pos) + if !ok { + break + } + pos = open.openEnd + nameVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "name") + propVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "property") + if strings.EqualFold(strings.TrimSpace(nameVal), target) || strings.EqualFold(strings.TrimSpace(propVal), target) { + if content, okC := getAttrValueLinearDeclHTML(open.attrStr, "content"); okC { + return wave3K2CleanText(content) + } + } + } + return "" +} + +func wave3K2ExtractMainHTML(rawHTML, baseURL string) string { + frag := "" + for _, tag := range []string{"main", "article"} { + if inner, ok := findElementInnerLinearDeclHTML(rawHTML, tag, nil, 0); ok && len(strings.TrimSpace(inner)) > 40 { + frag = inner + break + } + } + if frag == "" { + if body, ok := findElementInnerLinearDeclHTML(rawHTML, "body", nil, 0); ok { + frag = body + } else { + frag = rawHTML + } + } + doc := ExtractHTMLDocumentFull(""+frag+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return strings.TrimSpace(doc.Markdown) +} + +func wave3K2FragToMD(frag, baseURL string) string { + if strings.TrimSpace(frag) == "" { + return "" + } + doc := ExtractHTMLDocumentFull(""+frag+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: false, + IncludeImages: false, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return strings.TrimSpace(doc.Markdown) +} + +func wave3K2ExtractLinks(frag, baseURL string, maxLinks int) []struct{ Text, URL string } { + matches := wave3K2RxHref.FindAllStringSubmatch(frag, maxLinks*3) + out := make([]struct{ Text, URL string }, 0, maxLinks) + seen := make(map[string]bool) + for _, m := range matches { + if len(out) >= maxLinks { + break + } + if len(m) < 3 { + continue + } + u := SanitizeSchemaHTTPSURL(stdhtml.UnescapeString(strings.TrimSpace(m[1])), baseURL) + if u == "" || seen[u] { + continue + } + txt := wave3K2CleanText(m[2]) + if txt == "" { + continue + } + seen[u] = true + out = append(out, struct{ Text, URL string }{Text: txt, URL: u}) + } + return out +} + +func wave3K2JoinBullets(bullets []string) string { + if len(bullets) == 0 { + return "" + } + return strings.Join(bullets, "\n") +} + +// ── #289 GAO Reports & #290 CBO RSS/HTML ──────────────────────────────────────────────────────── + +func wave3K2FormatRSSXML(rawBody, origURL, fallbackTitle string) (*DeclarativeFormattedDoc, bool) { + lowerProbe := asciiLowerExtractString(rawBody) + if len(lowerProbe) > 65536 { + lowerProbe = lowerProbe[:65536] + } + if isLikelyHTMLSoft404(rawBody) || wave3K2HasWAFOrChallengeMarkers(lowerProbe) { + return nil, false + } + if !strings.Contains(lowerProbe, " 0 { + head = head[:idx] + } + feedTitle := SanitizeScrapedMeta(extractXMLTagTextGo(head, "title")) + if feedTitle == "" { + feedTitle = fallbackTitle + } + + var rows [][]string + var records []map[string]any + var links []string + seenLink := make(map[string]bool) + + for _, blk := range blocks { + itemTitle := wave3K2CleanText(extractXMLTagTextGo(blk, "title")) + itemLink := strings.TrimSpace(extractXMLTagTextGo(blk, "link")) + if itemLink == "" { + if open, ok := findOpenTagLinearDeclHTML(blk, "link", nil, 0); ok { + if href, okH := getAttrValueLinearDeclHTML(open.attrStr, "href"); okH { + itemLink = strings.TrimSpace(href) + } + } + } + if itemLink == "" { + itemLink = strings.TrimSpace(extractXMLTagTextGo(blk, "guid")) + } + pubDate := wave3K2CleanText(wave3K2FirstNonEmpty( + extractXMLTagTextGo(blk, "pubDate"), + extractXMLTagTextGo(blk, "published"), + extractXMLTagTextGo(blk, "updated"), + extractXMLTagTextGo(blk, "dc:date"), + )) + desc := wave3K2CleanText(wave3K2FirstNonEmpty( + extractXMLTagTextGo(blk, "description"), + extractXMLTagTextGo(blk, "summary"), + )) + if itemTitle == "" && itemLink == "" { + continue + } + safeLink := SanitizeSchemaHTTPSURL(itemLink, origURL) + if safeLink != "" { + wave3K2AddLink(&links, seenLink, safeLink, origURL) + } + + if len(records) < wave3K2MaxRecords { + rec := map[string]any{ + "title": itemTitle, + } + if pubDate != "" { + rec["published"] = pubDate + } + if safeLink != "" { + rec["url"] = safeLink + } + if desc != "" { + rec["summary"] = sliceRunesMax(desc, 240) + } + if gaoID := wave3K2RxGAOID.FindString(itemTitle + " " + safeLink); gaoID != "" { + rec["reportId"] = strings.ToUpper(gaoID) + } else if pm := wave3K2RxPubID.FindStringSubmatch(safeLink); len(pm) > 1 { + rec["publicationId"] = pm[1] + } + records = append(records, rec) + + titleCell := escapeDeclMarkdownBrackets(itemTitle) + if safeLink != "" { + titleCell = "[" + escapeDeclMarkdownBrackets(itemTitle) + "](" + safeLink + ")" + } + rows = append(rows, []string{titleCell, pubDate, sliceRunesMax(desc, 140)}) + } + } + + if len(rows) == 0 { + return nil, false + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(feedTitle)) + md = append(md, fmt.Sprintf("- **Feed Items**: %d", len(blocks))) + md = append(md, formatDeclarativeGFMTable([]string{"Title", "Published", "Summary"}, rows)) + + total := len(blocks) + ret := len(records) + trunc := total > ret + return &DeclarativeFormattedDoc{ + Title: feedTitle, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + Total: wave3K2IntPtr(total), + Returned: wave3K2IntPtr(ret), + Truncated: wave3K2BoolPtr(trunc), + }, true +} + +func wave3K2ExtractGAOHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + ogTitle := wave3K2ExtractMeta(rawHTML, "og:title") + rawTitle := extractTitleLinearQuick(rawHTML) + title := wave3K2FirstNonEmpty(h1, ogTitle, rawTitle) + title = strings.TrimSpace(strings.TrimSuffix(title, "| U.S. GAO")) + title = strings.TrimSpace(strings.TrimSuffix(title, "- U.S. GAO")) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + + reportID := wave3K2RxGAOID.FindString(baseURL + " " + title + " " + probeLower) + reportID = strings.ToUpper(reportID) + pubDate := wave3K2FirstNonEmpty( + wave3K2ExtractMeta(rawHTML, "article:published_time"), + wave3K2ExtractMeta(rawHTML, "dc.date"), + wave3K2RxISODate.FindString(probeLower), + ) + desc := wave3K2ExtractMeta(rawHTML, "description") + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" && desc == "" { + return nil + } + + var links []string + seen := make(map[string]bool) + for _, lnk := range wave3K2ExtractLinks(rawHTML, baseURL, 20) { + if strings.Contains(strings.ToLower(lnk.URL), ".pdf") || strings.Contains(strings.ToLower(lnk.URL), "/products/") { + wave3K2AddLink(&links, seen, lnk.URL, baseURL) + } + } + + var bullets []string + bullets = append(bullets, "- **Source**: U.S. Government Accountability Office (GAO)") + if reportID != "" { + bullets = append(bullets, "- **Report Number**: `"+sanitizeDeclInlineCodeVal(reportID)+"`") + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+escapeDeclMarkdownBrackets(pubDate)) + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + blocks = append(blocks, wave3K2JoinBullets(bullets)) + if bodyMD != "" { + blocks = append(blocks, bodyMD) + } else if desc != "" { + blocks = append(blocks, escapeDeclMarkdownBlock(desc)) + } + + rec := map[string]any{"title": title} + if reportID != "" { + rec["reportId"] = reportID + } + if pubDate != "" { + rec["published"] = pubDate + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +func wave3K2ExtractCBOHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + ogTitle := wave3K2ExtractMeta(rawHTML, "og:title") + rawTitle := extractTitleLinearQuick(rawHTML) + title := wave3K2FirstNonEmpty(h1, ogTitle, rawTitle) + title = strings.TrimSpace(strings.TrimSuffix(title, "| Congressional Budget Office")) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + + pubID := "" + if pm := wave3K2RxPubID.FindStringSubmatch(baseURL); len(pm) > 1 { + pubID = pm[1] + } + pubDate := wave3K2FirstNonEmpty( + wave3K2ExtractMeta(rawHTML, "article:published_time"), + wave3K2ExtractMeta(rawHTML, "dc.date"), + wave3K2RxISODate.FindString(probeLower), + ) + desc := wave3K2ExtractMeta(rawHTML, "description") + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" && desc == "" { + return nil + } + + var links []string + seen := make(map[string]bool) + for _, lnk := range wave3K2ExtractLinks(rawHTML, baseURL, 20) { + if strings.Contains(strings.ToLower(lnk.URL), ".pdf") || strings.Contains(strings.ToLower(lnk.URL), "/publication/") { + wave3K2AddLink(&links, seen, lnk.URL, baseURL) + } + } + + var bullets []string + bullets = append(bullets, "- **Source**: Congressional Budget Office (CBO)") + if pubID != "" { + bullets = append(bullets, "- **Publication ID**: `"+sanitizeDeclInlineCodeVal(pubID)+"`") + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+escapeDeclMarkdownBrackets(pubDate)) + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + blocks = append(blocks, wave3K2JoinBullets(bullets)) + if bodyMD != "" { + blocks = append(blocks, bodyMD) + } else if desc != "" { + blocks = append(blocks, escapeDeclMarkdownBlock(desc)) + } + + rec := map[string]any{"title": title} + if pubID != "" { + rec["publicationId"] = pubID + } + if pubDate != "" { + rec["published"] = pubDate + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #291 EveryCRSReport (JSON, CSV, HTML) ─────────────────────────────────────────────────────── + +func wave3K2FormatEveryCRSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj := wave3K2Map(parsed) + if obj == nil || wave3K2IsGenericJSONError(obj) { + return nil, false + } + number := wave3K2Plain(obj["number"], 64) + versions := wave3K2Slice(obj["versions"]) + if number == "" && len(versions) == 0 { + return nil, false + } + + reportType := wave3K2Plain(obj["type"], 120) + source := wave3K2Plain(obj["source"], 180) + activeStr := wave3K2Plain(obj["active"], 16) + + var latestTitle, latestDate, latestSummary, latestSourceLink string + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + + for idx, v := range versions { + vm := wave3K2Map(v) + if vm == nil { + continue + } + vTitle := wave3K2Plain(vm["title"], 280) + vDate := wave3K2Plain(vm["date"], 48) + vSummary := wave3K2Plain(vm["summary"], 1600) + vSource := SanitizeSchemaHTTPSURL(vm["sourceLink"], origURL) + if idx == 0 { + latestTitle = vTitle + latestDate = vDate + latestSummary = vSummary + latestSourceLink = vSource + } + var fmtNames []string + for _, f := range wave3K2Slice(vm["formats"]) { + fm := wave3K2Map(f) + if fm == nil { + continue + } + fn := wave3K2Plain(fm["format"], 32) + fu := SanitizeSchemaHTTPSURL(fm["url"], origURL) + if fn != "" { + fmtNames = append(fmtNames, fn) + } + if fu != "" { + wave3K2AddLink(&links, seen, fu, origURL) + } + } + if vSource != "" { + wave3K2AddLink(&links, seen, vSource, origURL) + } + if len(records) < wave3K2MaxRecords { + records = append(records, map[string]any{ + "number": number, + "date": vDate, + "title": vTitle, + "formats": strings.Join(fmtNames, ", "), + }) + rows = append(rows, []string{vDate, escapeDeclMarkdownBrackets(vTitle), strings.Join(fmtNames, ", ")}) + } + } + + title := wave3K2FirstNonEmpty(latestTitle, "CRS Report "+number) + var bullets []string + if number != "" { + bullets = append(bullets, "- **Report Number**: `"+sanitizeDeclInlineCodeVal(number)+"`") + } + if reportType != "" { + bullets = append(bullets, "- **Type**: "+escapeDeclMarkdownBrackets(reportType)) + } + if latestDate != "" { + bullets = append(bullets, "- **Latest Version**: "+escapeDeclMarkdownBrackets(latestDate)) + } + if activeStr != "" { + bullets = append(bullets, "- **Active**: "+escapeDeclMarkdownBrackets(activeStr)) + } + if source != "" { + bullets = append(bullets, "- **Source**: "+escapeDeclMarkdownBrackets(source)) + } + if latestSourceLink != "" { + bullets = append(bullets, "- **Official Link**: ["+latestSourceLink+"]("+latestSourceLink+")") + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + md = append(md, wave3K2JoinBullets(bullets)) + } + if latestSummary != "" { + md = append(md, "## Summary\n\n"+escapeDeclMarkdownBlock(latestSummary)) + } + if len(rows) > 0 { + md = append(md, "## Versions\n\n"+formatDeclarativeGFMTable([]string{"Date", "Title", "Formats"}, rows)) + } + + total := len(versions) + ret := len(records) + trunc := total > ret + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(latestSummary, 500), + PublishedTime: latestDate, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + Total: wave3K2IntPtr(total), + Returned: wave3K2IntPtr(ret), + Truncated: wave3K2BoolPtr(trunc), + }, true +} + +func wave3K2FormatEveryCRSCSV(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + if isLikelyHTMLSoft404(rawBody) { + return nil, false + } + clean := strings.TrimPrefix(rawBody, "\ufeff") + r := csv.NewReader(strings.NewReader(clean)) + r.FieldsPerRecord = -1 + + header, err := r.Read() + if err != nil || len(header) < 2 { + return nil, false + } + colIdx := make(map[string]int, len(header)) + for i, h := range header { + colIdx[strings.ToLower(strings.TrimSpace(h))] = i + } + if _, hasNum := colIdx["number"]; !hasNum { + if _, hasTitle := colIdx["title"]; !hasTitle { + return nil, false + } + } + + getCol := func(row []string, name string) string { + if idx, ok := colIdx[name]; ok && idx < len(row) { + return strings.TrimSpace(row[idx]) + } + return "" + } + + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + + for len(records) < wave3K2MaxRecords { + recRow, rErr := r.Read() + if rErr == io.EOF { + break + } + if rErr != nil { + // Tolerate truncated final row at maxBytes boundary. + break + } + num := getCol(recRow, "number") + title := getCol(recRow, "title") + pubDate := getCol(recRow, "latestpubdate") + relURL := getCol(recRow, "url") + pdfURL := getCol(recRow, "latestpdf") + htmlURL := getCol(recRow, "latesthtml") + if num == "" && title == "" { + continue + } + fullHTML := SanitizeSchemaHTTPSURL(wave3K2FirstNonEmpty(htmlURL, relURL), origURL) + fullPDF := SanitizeSchemaHTTPSURL(pdfURL, origURL) + if fullHTML != "" { + wave3K2AddLink(&links, seen, fullHTML, origURL) + } + if fullPDF != "" { + wave3K2AddLink(&links, seen, fullPDF, origURL) + } + records = append(records, map[string]any{ + "number": num, + "title": title, + "latestPubDate": pubDate, + "url": fullHTML, + }) + titleCell := escapeDeclMarkdownBrackets(title) + if fullHTML != "" { + titleCell = "[" + titleCell + "](" + fullHTML + ")" + } + rows = append(rows, []string{"`" + sanitizeDeclInlineCodeVal(num) + "`", titleCell, pubDate}) + } + + if len(records) == 0 { + return nil, false + } + title := "EveryCRSReport Index" + md := "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"Report", "Title", "Latest Date"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: records, + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(true), + }, true +} + +func wave3K2ExtractEveryCRSHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + rawTitle := extractTitleLinearQuick(rawHTML) + title := wave3K2FirstNonEmpty(h1, wave3K2ExtractMeta(rawHTML, "og:title"), rawTitle) + title = strings.TrimSpace(strings.TrimSuffix(title, "- EveryCRSReport.com")) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + reportID := wave3K2RxCRSID.FindString(baseURL + " " + title) + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" { + return nil + } + var bullets []string + bullets = append(bullets, "- **Source**: EveryCRSReport") + if reportID != "" { + bullets = append(bullets, "- **Report Number**: `"+sanitizeDeclInlineCodeVal(strings.ToUpper(reportID))+"`") + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + wave3K2JoinBullets(bullets) + "\n\n" + bodyMD, + } +} + +// ── #292 Federal .gov WordPress Newsrooms ─────────────────────────────────────────────────────── + +func wave3K2GovAgencyName(origURL string) string { + u, err := url.Parse(origURL) + if err != nil { + return "Federal .gov Newsroom" + } + h := strings.ToLower(u.Hostname()) + switch { + case strings.HasSuffix(h, "whitehouse.gov"): + return "The White House" + case h == "news.va.gov" || strings.HasSuffix(h, ".va.gov"): + return "U.S. Department of Veterans Affairs (VA News)" + case strings.HasSuffix(h, "nasa.gov"): + return "NASA" + default: + return "Federal .gov Newsroom" + } +} + +func wave3K2FormatGovWPPostsJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + agency := wave3K2GovAgencyName(origURL) + var posts []map[string]any + switch tv := parsed.(type) { + case map[string]any: + if wave3K2IsGenericJSONError(tv) { + return nil, false + } + if _, hasTitle := tv["title"]; !hasTitle { + if _, hasSlug := tv["slug"]; !hasSlug { + return nil, false + } + } + posts = []map[string]any{tv} + case []any: + if len(tv) == 0 { + return nil, false + } + for _, el := range tv { + if m := wave3K2Map(el); m != nil { + posts = append(posts, m) + } + } + default: + return nil, false + } + if len(posts) == 0 { + return nil, false + } + + if len(posts) == 1 { + p := posts[0] + titleObj := wave3K2Map(p["title"]) + titleRaw := "" + if titleObj != nil { + titleRaw = wave3K2CleanText(wave3K2StringVal(titleObj["rendered"])) + } else { + titleRaw = wave3K2CleanText(wave3K2StringVal(p["title"])) + } + if titleRaw == "" { + return nil, false + } + link := SanitizeSchemaHTTPSURL(p["link"], origURL) + date := wave3K2Plain(wave3K2FirstNonEmpty(wave3K2StringVal(p["date_gmt"]), wave3K2StringVal(p["date"])), 48) + contentObj := wave3K2Map(p["content"]) + excerptObj := wave3K2Map(p["excerpt"]) + contentHTML := "" + if contentObj != nil { + contentHTML = wave3K2StringVal(contentObj["rendered"]) + } + excerptHTML := "" + if excerptObj != nil { + excerptHTML = wave3K2StringVal(excerptObj["rendered"]) + } + bodyMD := wave3K2FragToMD(contentHTML, origURL) + if bodyMD == "" { + bodyMD = wave3K2FragToMD(excerptHTML, origURL) + } + if bodyMD == "" { + return nil, false + } + var bullets []string + bullets = append(bullets, "- **Agency**: "+escapeDeclMarkdownBrackets(agency)) + if date != "" { + bullets = append(bullets, "- **Published**: "+escapeDeclMarkdownBrackets(date)) + } + if idStr := wave3K2Plain(p["id"], 32); idStr != "" { + bullets = append(bullets, "- **Post ID**: `"+sanitizeDeclInlineCodeVal(idStr)+"`") + } + if link != "" { + bullets = append(bullets, "- **Canonical URL**: ["+link+"]("+link+")") + } + var links []string + if link != "" { + links = append(links, link) + } + return &DeclarativeFormattedDoc{ + Title: titleRaw, + Author: agency, + PublishedTime: date, + Markdown: "# " + escapeDeclMarkdownBrackets(titleRaw) + "\n\n" + wave3K2JoinBullets(bullets) + "\n\n" + bodyMD, + Links: links, + Records: []map[string]any{{ + "id": wave3K2Plain(p["id"], 32), + "title": titleRaw, + "date": date, + "url": link, + "publisher": agency, + }}, + }, true + } + + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + for _, p := range posts { + if len(records) >= wave3K2MaxRecords { + break + } + titleObj := wave3K2Map(p["title"]) + titleRaw := "" + if titleObj != nil { + titleRaw = wave3K2CleanText(wave3K2StringVal(titleObj["rendered"])) + } else { + titleRaw = wave3K2CleanText(wave3K2StringVal(p["title"])) + } + if titleRaw == "" { + continue + } + link := SanitizeSchemaHTTPSURL(p["link"], origURL) + date := wave3K2Plain(wave3K2FirstNonEmpty(wave3K2StringVal(p["date_gmt"]), wave3K2StringVal(p["date"])), 48) + if link != "" { + wave3K2AddLink(&links, seen, link, origURL) + } + records = append(records, map[string]any{ + "id": wave3K2Plain(p["id"], 32), + "title": titleRaw, + "date": date, + "url": link, + "publisher": agency, + }) + cell := escapeDeclMarkdownBrackets(titleRaw) + if link != "" { + cell = "[" + cell + "](" + link + ")" + } + rows = append(rows, []string{cell, date}) + } + if len(records) == 0 { + return nil, false + } + title := agency + " — Newsroom Posts" + return &DeclarativeFormattedDoc{ + Title: title, + Author: agency, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"Title", "Published"}, rows), + Links: links, + Records: records, + Total: wave3K2IntPtr(len(posts)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(posts) > len(records)), + }, true +} + +func wave3K2ExtractGovWPHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + ogTitle := wave3K2ExtractMeta(rawHTML, "og:title") + rawTitle := extractTitleLinearQuick(rawHTML) + title := wave3K2FirstNonEmpty(h1, ogTitle, rawTitle) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + if strings.Contains(probeLower, "nothing found") && len(rawHTML) < 16384 { + return nil + } + agency := wave3K2GovAgencyName(baseURL) + pubDate := wave3K2FirstNonEmpty( + wave3K2ExtractMeta(rawHTML, "article:published_time"), + wave3K2ExtractMeta(rawHTML, "article:modified_time"), + ) + desc := wave3K2ExtractMeta(rawHTML, "description") + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" && desc == "" { + return nil + } + + var bullets []string + bullets = append(bullets, "- **Agency**: "+escapeDeclMarkdownBrackets(agency)) + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+escapeDeclMarkdownBrackets(pubDate)) + } + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + blocks = append(blocks, wave3K2JoinBullets(bullets)) + if bodyMD != "" { + blocks = append(blocks, bodyMD) + } else { + blocks = append(blocks, escapeDeclMarkdownBlock(desc)) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Author: agency, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #293 GSA Site Scanning ────────────────────────────────────────────────────────────────────── + +func wave3K2FormatGSASiteScanningJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj := wave3K2Map(parsed) + if obj == nil || wave3K2IsGenericJSONError(obj) { + return nil, false + } + + var items []map[string]any + if rawItems := wave3K2Slice(obj["items"]); rawItems != nil { + for _, el := range rawItems { + if m := wave3K2Map(el); m != nil { + items = append(items, m) + } + } + } else if _, hasDom := obj["initial_base_domain"]; hasDom { + items = []map[string]any{obj} + } else if _, hasDom2 := obj["target_url_domain"]; hasDom2 { + items = []map[string]any{obj} + } + if len(items) == 0 { + return nil, false + } + + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + + for _, it := range items { + if len(records) >= wave3K2MaxRecords { + break + } + dom := wave3K2Plain(firstNonNilSchemaGo(it["initial_base_domain"], it["target_url_domain"], it["final_url_domain"]), 120) + finalU := SanitizeSchemaHTTPSURL(it["final_url"], origURL) + agency := wave3K2Plain(it["agency"], 120) + bureau := wave3K2Plain(it["bureau"], 120) + scanDate := wave3K2Plain(it["scan_date"], 48) + status := wave3K2Plain(firstNonNilSchemaGo(it["final_url_status_code"], it["primary_scan_status"]), 32) + uswds := wave3K2Plain(it["uswds_semantic_version"], 32) + dap := wave3K2Plain(it["dap_detected"], 16) + if dom == "" && finalU == "" { + continue + } + if finalU != "" { + wave3K2AddLink(&links, seen, finalU, origURL) + } + rec := map[string]any{ + "domain": dom, + "finalUrl": finalU, + "agency": agency, + "bureau": bureau, + "scanDate": scanDate, + "status": status, + "uswds": uswds, + "dap": dap, + } + records = append(records, rec) + rows = append(rows, []string{ + "`" + sanitizeDeclInlineCodeVal(dom) + "`", + escapeDeclMarkdownBrackets(wave3K2FirstNonEmpty(agency, bureau, "-")), + status, + uswds, + dap, + }) + } + if len(records) == 0 { + return nil, false + } + + title := "GSA Site Scanning Websites" + if len(records) == 1 { + if dom, ok := records[0]["domain"].(string); ok && dom != "" { + title = "GSA Site Scan: " + dom + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"Domain", "Agency", "Status", "USWDS", "DAP"}, rows), + Links: links, + Records: records, + Total: wave3K2IntPtr(len(items)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(items) > len(records)), + }, true +} + +func wave3K2ExtractGSAHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + title := wave3K2FirstNonEmpty(h1, wave3K2ExtractMeta(rawHTML, "og:title"), extractTitleLinearQuick(rawHTML)) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n- **Source**: GSA Site Scanning\n\n" + bodyMD, + } +} + +// ── #294 VA Lighthouse Facilities ─────────────────────────────────────────────────────────────── + +func wave3K2FormatVAFacilitiesJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj := wave3K2Map(parsed) + if obj == nil || wave3K2IsGenericJSONError(obj) { + return nil, false + } + + var rawFacilities []map[string]any + switch d := obj["data"].(type) { + case []any: + for _, el := range d { + if m := wave3K2Map(el); m != nil { + rawFacilities = append(rawFacilities, m) + } + } + case map[string]any: + rawFacilities = []map[string]any{d} + } + if len(rawFacilities) == 0 { + return nil, false + } + + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + + for _, fac := range rawFacilities { + if len(records) >= wave3K2MaxRecords { + break + } + facID := wave3K2Plain(fac["id"], 64) + attrs := wave3K2Map(fac["attributes"]) + if attrs == nil { + attrs = fac + } + name := wave3K2Plain(attrs["name"], 200) + if name == "" && facID == "" { + continue + } + facType := wave3K2Plain(attrs["facilityType"], 80) + classification := wave3K2Plain(attrs["classification"], 120) + website := SanitizeSchemaHTTPSURL(attrs["website"], origURL) + if website != "" { + wave3K2AddLink(&links, seen, website, origURL) + } + phone := "" + if ph := wave3K2Map(attrs["phone"]); ph != nil { + phone = wave3K2Plain(ph["main"], 48) + } + addrStr := "" + if addr := wave3K2Map(attrs["address"]); addr != nil { + if phys := wave3K2Map(addr["physical"]); phys != nil { + addrStr = strings.TrimSpace(strings.Join([]string{ + wave3K2Plain(phys["address1"], 120), + wave3K2Plain(phys["city"], 64), + wave3K2Plain(phys["state"], 16), + wave3K2Plain(phys["zip"], 20), + }, ", ")) + addrStr = strings.Trim(addrStr, ", ") + } + } + opStatus := "" + if osMap := wave3K2Map(attrs["operatingStatus"]); osMap != nil { + opStatus = wave3K2Plain(osMap["code"], 40) + } + + records = append(records, map[string]any{ + "id": facID, + "name": name, + "facilityType": facType, + "classification": classification, + "address": addrStr, + "phone": phone, + "status": opStatus, + "website": website, + }) + nameCell := escapeDeclMarkdownBrackets(name) + if website != "" { + nameCell = "[" + nameCell + "](" + website + ")" + } + rows = append(rows, []string{"`" + sanitizeDeclInlineCodeVal(facID) + "`", nameCell, wave3K2FirstNonEmpty(classification, facType), addrStr, phone, opStatus}) + } + + if len(records) == 0 { + return nil, false + } + + title := "VA Facilities Directory" + if len(records) == 1 { + if n, ok := records[0]["name"].(string); ok && n != "" { + title = n + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"ID", "Facility", "Type", "Address", "Phone", "Status"}, rows), + Links: links, + Records: records, + Total: wave3K2IntPtr(len(rawFacilities)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(rawFacilities) > len(records)), + }, true +} + +func wave3K2ExtractVAFacilitiesHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + // Reject unhydrated VA React locator shells when there is no rendered heading/content. + if strings.Contains(probeLower, `id="react-root"`) && !strings.Contains(probeLower, " 0 { + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + for _, el := range rawPlans { + if len(records) >= wave3K2MaxRecords { + break + } + pm := wave3K2Map(el) + if pm == nil { + continue + } + id := wave3K2Plain(pm["id"], 64) + name := wave3K2Plain(pm["name"], 200) + metal := wave3K2Plain(pm["metal_level"], 32) + ptype := wave3K2Plain(pm["type"], 32) + issuerName := "" + if iss := wave3K2Map(pm["issuer"]); iss != nil { + issuerName = wave3K2Plain(iss["name"], 120) + } + prem := wave3K2Plain(pm["premium"], 24) + premCredit := wave3K2Plain(pm["premium_w_credit"], 24) + if urlVal := SanitizeSchemaHTTPSURL(firstNonNilSchemaGo(pm["benefits_url"], pm["brochure_url"]), origURL); urlVal != "" { + wave3K2AddLink(&links, seen, urlVal, origURL) + } + if id == "" && name == "" { + continue + } + records = append(records, map[string]any{ + "id": id, + "name": name, + "issuer": issuerName, + "metalLevel": metal, + "planType": ptype, + "premium": prem, + "premiumWithCredit": premCredit, + }) + rows = append(rows, []string{ + "`" + sanitizeDeclInlineCodeVal(id) + "`", + escapeDeclMarkdownBrackets(name), + escapeDeclMarkdownBrackets(issuerName), + metal, + ptype, + wave3K2FirstNonEmpty(premCredit, prem), + }) + } + if len(records) == 0 { + return nil, false + } + title := "HealthCare.gov Marketplace Plans" + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"Plan ID", "Plan Name", "Issuer", "Metal", "Type", "Premium"}, rows), + Links: links, + Records: records, + Total: wave3K2IntPtr(len(rawPlans)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(rawPlans) > len(records)), + }, true + } + + if singlePlan := wave3K2Map(obj["plan"]); singlePlan != nil { + id := wave3K2Plain(singlePlan["id"], 64) + name := wave3K2Plain(singlePlan["name"], 200) + if id == "" && name == "" { + return nil, false + } + metal := wave3K2Plain(singlePlan["metal_level"], 32) + ptype := wave3K2Plain(singlePlan["type"], 32) + prem := wave3K2Plain(singlePlan["premium"], 24) + title := wave3K2FirstNonEmpty(name, id) + var bullets []string + if id != "" { + bullets = append(bullets, "- **Plan ID**: `"+sanitizeDeclInlineCodeVal(id)+"`") + } + if metal != "" { + bullets = append(bullets, "- **Metal Level**: "+metal) + } + if ptype != "" { + bullets = append(bullets, "- **Plan Type**: "+ptype) + } + if prem != "" { + bullets = append(bullets, "- **Premium**: $"+prem) + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + wave3K2JoinBullets(bullets), + Records: []map[string]any{{ + "id": id, + "name": name, + "metalLevel": metal, + "planType": ptype, + "premium": prem, + }}, + }, true + } + + if rawStates := wave3K2Slice(obj["states"]); len(rawStates) > 0 { + var rows [][]string + var records []map[string]any + for _, el := range rawStates { + if len(records) >= wave3K2MaxRecords { + break + } + sm := wave3K2Map(el) + if sm == nil { + continue + } + abbr := wave3K2Plain(sm["abbrev"], 16) + name := wave3K2Plain(sm["name"], 120) + model := wave3K2Plain(sm["marketplace_model"], 64) + if abbr == "" && name == "" { + continue + } + records = append(records, map[string]any{"abbrev": abbr, "name": name, "marketplaceModel": model}) + rows = append(rows, []string{abbr, escapeDeclMarkdownBrackets(name), model}) + } + if len(records) == 0 { + return nil, false + } + title := "HealthCare.gov Marketplace States" + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"State", "Name", "Model"}, rows), + Records: records, + Total: wave3K2IntPtr(len(rawStates)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(rawStates) > len(records)), + }, true + } + + if rawCounties := wave3K2Slice(obj["counties"]); len(rawCounties) > 0 { + var rows [][]string + var records []map[string]any + for _, el := range rawCounties { + if len(records) >= wave3K2MaxRecords { + break + } + cm := wave3K2Map(el) + if cm == nil { + continue + } + fips := wave3K2Plain(cm["fips"], 16) + name := wave3K2Plain(cm["name"], 120) + state := wave3K2Plain(cm["state"], 16) + zip := wave3K2Plain(cm["zipcode"], 16) + if fips == "" && name == "" { + continue + } + records = append(records, map[string]any{"fips": fips, "name": name, "state": state, "zipcode": zip}) + rows = append(rows, []string{"`" + sanitizeDeclInlineCodeVal(fips) + "`", escapeDeclMarkdownBrackets(name), state, zip}) + } + if len(records) == 0 { + return nil, false + } + title := "HealthCare.gov Marketplace Counties" + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"FIPS", "County", "State", "ZIP"}, rows), + Records: records, + Total: wave3K2IntPtr(len(rawCounties)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(rawCounties) > len(records)), + }, true + } + + return nil, false +} + +func wave3K2ExtractHealthcareGovHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + title := wave3K2FirstNonEmpty(h1, wave3K2ExtractMeta(rawHTML, "og:title"), extractTitleLinearQuick(rawHTML)) + title = strings.TrimSpace(strings.TrimSuffix(title, "| HealthCare.gov")) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K2ExtractMeta(rawHTML, "description"), + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n- **Source**: HealthCare.gov\n\n" + bodyMD, + } +} + +// ── #296 CMS Price Transparency (HPT, MRF JSON, MRF CSV, Archive Magic, HTML) ─────────────────── + +func wave3K2DetectArchiveFormat(raw []byte) string { + if len(raw) >= 4 && raw[0] == 'P' && raw[1] == 'K' && raw[2] == 0x03 && raw[3] == 0x04 { + return "zip" + } + if len(raw) >= 2 && raw[0] == 0x1f && raw[1] == 0x8b { + return "gzip" + } + // Handle UTF-8 encoded 0x1f 0x8b when passed as a JS string across the WASM boundary. + if len(raw) >= 3 && raw[0] == 0x1f && raw[1] == 0xc2 && raw[2] == 0x8b { + return "gzip" + } + return "" +} + +func wave3K2FormatCMSArchiveDoc(formatName string, sampleBytes int, origURL string) *DeclarativeFormattedDoc { + upper := strings.ToUpper(formatName) + title := "CMS Machine-Readable Archive (" + upper + ")" + bullets := []string{ + "- **Format**: `" + upper + "`", + fmt.Sprintf("- **Sample Bytes Read**: %d", sampleBytes), + "- **Status**: Compressed archive detected via magic bytes; download and decompress offline for full charge tables.", + } + if safeU := SanitizeSchemaHTTPSURL(origURL, origURL); safeU != "" { + bullets = append(bullets, "- **Source URL**: ["+safeU+"]("+safeU+")") + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + wave3K2JoinBullets(bullets), + Records: []map[string]any{{ + "format": formatName, + "archive": true, + "sampleBytes": sampleBytes, + "url": SanitizeSchemaHTTPSURL(origURL, origURL), + }}, + } +} + +func wave3K2FormatCMSHPTTxt(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + lowerHead := asciiLowerExtractString(rawBody) + if len(lowerHead) > 4096 { + lowerHead = lowerHead[:4096] + } + if isLikelyHTMLSoft404(rawBody) || wave3K2HasWAFOrChallengeMarkers(lowerHead) { + return nil, false + } + + type hptStanza struct { + locationName string + sourcePageURL string + mrfURL string + contactName string + contactEmail string + lastUpdated string + hospitalName string + } + + var stanzas []hptStanza + var cur hptStanza + hasFields := false + flush := func() { + if !hasFields { + return + } + if cur.locationName != "" || cur.mrfURL != "" || cur.sourcePageURL != "" || cur.hospitalName != "" { + stanzas = append(stanzas, cur) + } + cur = hptStanza{} + hasFields = false + } + + norm := strings.ReplaceAll(strings.TrimPrefix(rawBody, "\ufeff"), "\r\n", "\n") + for _, rawLine := range strings.Split(norm, "\n") { + line := strings.TrimSpace(rawLine) + if line == "" { + flush() + continue + } + if strings.HasPrefix(line, "#") { + continue + } + colon := strings.IndexByte(line, ':') + if colon <= 0 { + continue + } + key := strings.ToLower(strings.TrimSpace(line[:colon])) + val := strings.TrimSpace(line[colon+1:]) + if val == "" { + continue + } + // Start a new stanza automatically if location-name repeats without blank line + if key == "location-name" && hasFields && cur.locationName != "" { + flush() + } + switch key { + case "location-name": + cur.locationName = val + hasFields = true + case "hospital-name": + cur.hospitalName = val + hasFields = true + case "source-page-url": + cur.sourcePageURL = val + hasFields = true + case "mrf-url": + cur.mrfURL = val + hasFields = true + case "contact-name": + cur.contactName = val + hasFields = true + case "contact-email": + cur.contactEmail = val + hasFields = true + case "last-updated": + cur.lastUpdated = val + hasFields = true + } + } + flush() + + if len(stanzas) == 0 { + return nil, false + } + + var rows [][]string + var records []map[string]any + var links []string + seen := make(map[string]bool) + + for i, st := range stanzas { + if i >= wave3K2MaxHPTLocations { + break + } + mrfSafe := SanitizeSchemaHTTPSURL(st.mrfURL, origURL) + srcSafe := SanitizeSchemaHTTPSURL(st.sourcePageURL, origURL) + if mrfSafe != "" { + wave3K2AddLink(&links, seen, mrfSafe, origURL) + } + if srcSafe != "" { + wave3K2AddLink(&links, seen, srcSafe, origURL) + } + loc := wave3K2FirstNonEmpty(st.locationName, st.hospitalName, "-") + mrfCell := "-" + if mrfSafe != "" { + mrfCell = "[MRF](" + mrfSafe + ")" + } + srcCell := "-" + if srcSafe != "" { + srcCell = "[Source](" + srcSafe + ")" + } + rows = append(rows, []string{escapeDeclMarkdownBrackets(loc), mrfCell, srcCell, escapeDeclMarkdownBrackets(st.contactEmail)}) + if len(records) < wave3K2MaxRecords { + records = append(records, map[string]any{ + "locationName": loc, + "mrfUrl": mrfSafe, + "sourcePageUrl": srcSafe, + "contactName": st.contactName, + "contactEmail": st.contactEmail, + "lastUpdated": st.lastUpdated, + }) + } + } + + title := "CMS Hospital Price Transparency (cms-hpt.txt)" + if len(stanzas) > 0 { + if firstLoc := wave3K2FirstNonEmpty(stanzas[0].hospitalName, stanzas[0].locationName); firstLoc != "" { + title = firstLoc + " — CMS HPT Index" + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + fmt.Sprintf("- **Locations Listed**: %d\n\n", len(stanzas)) + formatDeclarativeGFMTable([]string{"Location", "MRF URL", "Source Page", "Contact"}, rows), + Links: links, + Records: records, + Total: wave3K2IntPtr(len(stanzas)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(stanzas) > len(records)), + }, true +} + +func wave3K2FormatCMSMRFJSON(raw []byte, origURL string) (*DeclarativeFormattedDoc, bool) { + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || trimmed[0] != '{' { + return nil, false + } + + dec := json.NewDecoder(bytes.NewReader(trimmed)) + dec.UseNumber() + + tok, err := dec.Token() + if err != nil { + return nil, false + } + delim, ok := tok.(json.Delim) + if !ok || delim != '{' { + return nil, false + } + + var hospitalName, lastUpdated, version, entityName, entityType string + var locationNames, addresses, npis []string + var chargeRows [][]string + var chargeRecords []map[string]any + var ticRows [][]string + var ticRecords []map[string]any + var blobRows [][]string + var blobRecords []map[string]any + var links []string + seenLinks := make(map[string]bool) + hasMRFSignal := false + + for dec.More() { + kt, kErr := dec.Token() + if kErr != nil { + break + } + key, isKey := kt.(string) + if !isKey { + break + } + switch key { + case "hospital_name": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + hospitalName = wave3K2Plain(v, 200) + if hospitalName != "" { + hasMRFSignal = true + } + case "reporting_entity_name": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + entityName = wave3K2Plain(v, 200) + if entityName != "" { + hasMRFSignal = true + } + case "reporting_entity_type": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + entityType = wave3K2Plain(v, 120) + case "last_updated_on": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + lastUpdated = wave3K2Plain(v, 64) + case "version": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + version = wave3K2Plain(v, 32) + case "location_name": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + switch tv := v.(type) { + case string: + if s := wave3K2Plain(tv, 160); s != "" { + locationNames = append(locationNames, s) + } + case []any: + for _, el := range tv { + if len(locationNames) >= 10 { + break + } + if s := wave3K2Plain(el, 160); s != "" { + locationNames = append(locationNames, s) + } + } + } + case "hospital_address": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + switch tv := v.(type) { + case string: + if s := wave3K2Plain(tv, 200); s != "" { + addresses = append(addresses, s) + } + case []any: + for _, el := range tv { + if len(addresses) >= 10 { + break + } + if s := wave3K2Plain(el, 200); s != "" { + addresses = append(addresses, s) + } + } + } + case "type_2_npi": + var v any + if dec.Decode(&v) != nil { + goto doneStream + } + switch tv := v.(type) { + case string, json.Number: + if s := wave3K2Plain(tv, 32); s != "" { + npis = append(npis, s) + } + case []any: + for _, el := range tv { + if len(npis) >= 10 { + break + } + if s := wave3K2Plain(el, 32); s != "" { + npis = append(npis, s) + } + } + } + case "standard_charge_information": + hasMRFSignal = true + arrTok, aErr := dec.Token() + if aErr != nil { + goto doneStream + } + if arrDelim, isArr := arrTok.(json.Delim); isArr && arrDelim == '[' { + for dec.More() && len(chargeRecords) < wave3K2MaxRecords { + var item map[string]any + if iErr := dec.Decode(&item); iErr != nil { + goto doneStream + } + desc := wave3K2Plain(item["description"], 200) + codeStr, codeType := "", "" + for _, ci := range wave3K2Slice(item["code_information"]) { + cm := wave3K2Map(ci) + if cm == nil { + continue + } + codeStr = wave3K2Plain(cm["code"], 40) + codeType = wave3K2Plain(cm["type"], 32) + if codeStr != "" { + break + } + } + gross, cash, minChg, maxChg := "", "", "", "" + for _, sc := range wave3K2Slice(item["standard_charges"]) { + sm := wave3K2Map(sc) + if sm == nil { + continue + } + gross = wave3K2FirstNonEmpty(gross, wave3K2Plain(sm["gross_charge"], 24)) + cash = wave3K2FirstNonEmpty(cash, wave3K2Plain(sm["discounted_cash"], 24)) + minChg = wave3K2FirstNonEmpty(minChg, wave3K2Plain(sm["minimum"], 24)) + maxChg = wave3K2FirstNonEmpty(maxChg, wave3K2Plain(sm["maximum"], 24)) + } + chargeRecords = append(chargeRecords, map[string]any{ + "description": desc, + "code": codeStr, + "codeType": codeType, + "grossCharge": gross, + "discountedCash": cash, + "minimumCharge": minChg, + "maximumCharge": maxChg, + }) + chargeRows = append(chargeRows, []string{ + escapeDeclMarkdownBrackets(desc), + wave3K2FirstNonEmpty(codeType+" "+codeStr, "-"), + gross, + cash, + }) + } + // Stop scanning once bounded sample is collected to keep bounded 2 MiB parsing fast. + if len(chargeRecords) >= wave3K2MaxRecords { + goto doneStream + } + } + case "reporting_structure": + hasMRFSignal = true + arrTok, aErr := dec.Token() + if aErr != nil { + goto doneStream + } + if arrDelim, isArr := arrTok.(json.Delim); isArr && arrDelim == '[' { + for dec.More() && len(ticRecords) < wave3K2MaxRecords { + var entry map[string]any + if iErr := dec.Decode(&entry); iErr != nil { + goto doneStream + } + var planNames []string + for _, rp := range wave3K2Slice(entry["reporting_plans"]) { + pm := wave3K2Map(rp) + if pm == nil { + continue + } + if pn := wave3K2Plain(pm["plan_name"], 120); pn != "" && len(planNames) < 3 { + planNames = append(planNames, pn) + } + } + var fileURLs []string + for _, inf := range wave3K2Slice(entry["in_network_files"]) { + fm := wave3K2Map(inf) + if fm == nil { + continue + } + if loc := SanitizeSchemaHTTPSURL(fm["location"], origURL); loc != "" { + wave3K2AddLink(&links, seenLinks, loc, origURL) + if len(fileURLs) < 2 { + fileURLs = append(fileURLs, loc) + } + } + } + if aa := wave3K2Map(entry["allowed_amount_file"]); aa != nil { + if loc := SanitizeSchemaHTTPSURL(aa["location"], origURL); loc != "" { + wave3K2AddLink(&links, seenLinks, loc, origURL) + } + } + plansJoined := strings.Join(planNames, "; ") + fileCell := "-" + if len(fileURLs) > 0 { + fileCell = "[MRF](" + fileURLs[0] + ")" + } + ticRecords = append(ticRecords, map[string]any{ + "plans": plansJoined, + "inNetworkFiles": len(wave3K2Slice(entry["in_network_files"])), + "sampleFileUrl": wave3K2FirstNonEmpty(append(fileURLs, "")[0]), + }) + ticRows = append(ticRows, []string{ + escapeDeclMarkdownBrackets(wave3K2FirstNonEmpty(plansJoined, "Plan Group")), + strconv.Itoa(len(wave3K2Slice(entry["in_network_files"]))), + fileCell, + }) + } + if len(ticRecords) >= wave3K2MaxRecords { + goto doneStream + } + } + case "blobs": + hasMRFSignal = true + arrTok, aErr := dec.Token() + if aErr != nil { + goto doneStream + } + if arrDelim, isArr := arrTok.(json.Delim); isArr && arrDelim == '[' { + for dec.More() && len(blobRecords) < wave3K2MaxRecords { + var b map[string]any + if iErr := dec.Decode(&b); iErr != nil { + goto doneStream + } + bName := wave3K2Plain(b["name"], 180) + dl := SanitizeSchemaHTTPSURL(b["downloadUrl"], origURL) + sz := wave3K2Plain(b["size"], 32) + if dl != "" { + wave3K2AddLink(&links, seenLinks, dl, origURL) + } + if bName == "" && dl == "" { + continue + } + blobRecords = append(blobRecords, map[string]any{ + "name": bName, + "downloadUrl": dl, + "size": sz, + }) + nameCell := escapeDeclMarkdownBrackets(bName) + if dl != "" { + nameCell = "[" + nameCell + "](" + dl + ")" + } + blobRows = append(blobRows, []string{nameCell, sz}) + } + if len(blobRecords) >= wave3K2MaxRecords { + goto doneStream + } + } + default: + if skipJSONValue(dec) != nil { + goto doneStream + } + } + } + +doneStream: + if !hasMRFSignal { + return nil, false + } + + if len(blobRecords) > 0 { + title := "UHC Transparency in Coverage Index" + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"File", "Size (Bytes)"}, blobRows), + Links: links, + Records: blobRecords, + Returned: wave3K2IntPtr(len(blobRecords)), + Truncated: wave3K2BoolPtr(len(blobRecords) >= wave3K2MaxRecords), + }, true + } + + if entityName != "" || len(ticRecords) > 0 { + title := wave3K2FirstNonEmpty(entityName, "CMS Transparency in Coverage Table of Contents") + var bullets []string + if entityType != "" { + bullets = append(bullets, "- **Reporting Entity Type**: "+escapeDeclMarkdownBrackets(entityType)) + } + if lastUpdated != "" { + bullets = append(bullets, "- **Last Updated**: "+escapeDeclMarkdownBrackets(lastUpdated)) + } + if version != "" { + bullets = append(bullets, "- **Schema Version**: `"+sanitizeDeclInlineCodeVal(version)+"`") + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + md = append(md, wave3K2JoinBullets(bullets)) + } + if len(ticRows) > 0 { + md = append(md, formatDeclarativeGFMTable([]string{"Reporting Plans", "In-Network Files", "Sample File"}, ticRows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: lastUpdated, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: ticRecords, + Returned: wave3K2IntPtr(len(ticRecords)), + Truncated: wave3K2BoolPtr(len(ticRecords) >= wave3K2MaxRecords), + }, true + } + + title := wave3K2FirstNonEmpty(hospitalName, "Hospital Standard Charges MRF") + var bullets []string + if lastUpdated != "" { + bullets = append(bullets, "- **Last Updated**: "+escapeDeclMarkdownBrackets(lastUpdated)) + } + if version != "" { + bullets = append(bullets, "- **CMS Version**: `"+sanitizeDeclInlineCodeVal(version)+"`") + } + if len(locationNames) > 0 { + bullets = append(bullets, "- **Locations**: "+escapeDeclMarkdownBrackets(strings.Join(locationNames, ", "))) + } + if len(addresses) > 0 { + bullets = append(bullets, "- **Address**: "+escapeDeclMarkdownBrackets(strings.Join(addresses, "; "))) + } + if len(npis) > 0 { + bullets = append(bullets, "- **Type 2 NPI**: `"+sanitizeDeclInlineCodeVal(strings.Join(npis, ", "))+"`") + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + md = append(md, wave3K2JoinBullets(bullets)) + } + if len(chargeRows) > 0 { + md = append(md, "## Sample Standard Charges\n\n"+formatDeclarativeGFMTable([]string{"Description", "Code", "Gross Charge", "Discounted Cash"}, chargeRows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: lastUpdated, + Markdown: strings.Join(md, "\n\n"), + Records: chargeRecords, + Returned: wave3K2IntPtr(len(chargeRecords)), + Truncated: wave3K2BoolPtr(len(chargeRecords) >= wave3K2MaxRecords), + }, true +} + +func wave3K2FormatCMSMRFCSV(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + if isLikelyHTMLSoft404(rawBody) { + return nil, false + } + clean := strings.TrimPrefix(rawBody, "\ufeff") + r := csv.NewReader(strings.NewReader(clean)) + r.FieldsPerRecord = -1 + + row0, err0 := r.Read() + if err0 != nil || len(row0) < 2 { + return nil, false + } + + // CMS MRF v2/v3 CSV puts metadata headers in Row 0, metadata values in Row 1, charge headers in Row 2, and charge rows in Row 3+. + metaHeaders := make(map[string]int, len(row0)) + for i, h := range row0 { + metaHeaders[strings.ToLower(strings.TrimSpace(h))] = i + } + _, hasHospName := metaHeaders["hospital_name"] + _, hasVersion := metaHeaders["version"] + _, hasLastUpd := metaHeaders["last_updated_on"] + + if hasHospName || hasVersion || hasLastUpd { + row1, err1 := r.Read() + if err1 != nil { + return nil, false + } + getMeta := func(keys ...string) string { + for _, k := range keys { + for hName, idx := range metaHeaders { + if (hName == k || strings.HasPrefix(hName, k+"|")) && idx < len(row1) { + if v := strings.TrimSpace(row1[idx]); v != "" { + return v + } + } + } + } + return "" + } + + hospName := getMeta("hospital_name") + lastUpd := getMeta("last_updated_on") + version := getMeta("version") + locName := getMeta("location_name") + hospAddr := getMeta("hospital_address") + npi := getMeta("type_2_npi") + licenseNum := getMeta("license_number") + + var chargeHeaders []string + if row2, err2 := r.Read(); err2 == nil { + chargeHeaders = row2 + } + + var chargeRows [][]string + var records []map[string]any + if len(chargeHeaders) > 0 { + chIdx := make(map[string]int, len(chargeHeaders)) + for i, h := range chargeHeaders { + chIdx[strings.ToLower(strings.TrimSpace(h))] = i + } + getCell := func(row []string, candidates ...string) string { + for _, c := range candidates { + if idx, ok := chIdx[c]; ok && idx < len(row) { + if v := strings.TrimSpace(row[idx]); v != "" { + return v + } + } + } + return "" + } + for len(records) < wave3K2MaxRecords { + crow, cErr := r.Read() + if cErr != nil { + // Tolerate io.EOF or truncated quote at the 2 MiB boundary. + break + } + desc := getCell(crow, "description") + code := getCell(crow, "code|1", "code") + codeType := getCell(crow, "code|1|type", "code_type") + gross := getCell(crow, "standard_charge|gross", "gross_charge") + cash := getCell(crow, "standard_charge|discounted_cash", "discounted_cash") + if desc == "" && code == "" { + continue + } + records = append(records, map[string]any{ + "description": desc, + "code": code, + "codeType": codeType, + "grossCharge": gross, + "discountedCash": cash, + }) + chargeRows = append(chargeRows, []string{ + escapeDeclMarkdownBrackets(desc), + wave3K2FirstNonEmpty(codeType+" "+code, "-"), + gross, + cash, + }) + } + } + + title := wave3K2FirstNonEmpty(hospName, "Hospital Standard Charges CSV") + var bullets []string + if lastUpd != "" { + bullets = append(bullets, "- **Last Updated**: "+escapeDeclMarkdownBrackets(lastUpd)) + } + if version != "" { + bullets = append(bullets, "- **CMS Version**: `"+sanitizeDeclInlineCodeVal(version)+"`") + } + if locName != "" { + bullets = append(bullets, "- **Location**: "+escapeDeclMarkdownBrackets(locName)) + } + if hospAddr != "" { + bullets = append(bullets, "- **Address**: "+escapeDeclMarkdownBrackets(hospAddr)) + } + if licenseNum != "" { + bullets = append(bullets, "- **License**: `"+sanitizeDeclInlineCodeVal(licenseNum)+"`") + } + if npi != "" { + bullets = append(bullets, "- **Type 2 NPI**: `"+sanitizeDeclInlineCodeVal(npi)+"`") + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + md = append(md, wave3K2JoinBullets(bullets)) + } + if len(chargeRows) > 0 { + md = append(md, "## Sample Standard Charges\n\n"+formatDeclarativeGFMTable([]string{"Description", "Code", "Gross Charge", "Discounted Cash"}, chargeRows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: lastUpd, + Markdown: strings.Join(md, "\n\n"), + Records: records, + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(records) >= wave3K2MaxRecords), + }, true + } + + return nil, false +} + +func wave3K2ExtractCMSPriceHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + title := wave3K2FirstNonEmpty(h1, wave3K2ExtractMeta(rawHTML, "og:title"), extractTitleLinearQuick(rawHTML)) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + var links []string + seen := make(map[string]bool) + for _, lnk := range wave3K2ExtractLinks(rawHTML, baseURL, 25) { + lowU := strings.ToLower(lnk.URL) + if strings.Contains(lowU, "cms-hpt.txt") || strings.Contains(lowU, "standardcharges") || strings.Contains(lowU, "transparency") { + wave3K2AddLink(&links, seen, lnk.URL, baseURL) + } + } + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" && len(links) == 0 { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K2ExtractMeta(rawHTML, "description"), + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n- **Category**: CMS Price Transparency\n\n" + bodyMD, + Links: links, + } +} + +// ── #297 Medicaid NADAC & #300 SBA DKAN ───────────────────────────────────────────────────────── + +func wave3K2FormatMedicaidDKANJSON(parsed any, origURL, fallbackTitle string) (*DeclarativeFormattedDoc, bool) { + switch tv := parsed.(type) { + case map[string]any: + if wave3K2IsGenericJSONError(tv) { + return nil, false + } + // DKAN Datastore query response (`{"results":[...], "count":..., "schema":...}`) + if rawResults := wave3K2Slice(tv["results"]); rawResults != nil { + if len(rawResults) == 0 { + return nil, false + } + firstRow := wave3K2Map(rawResults[0]) + if firstRow == nil { + return nil, false + } + isNADAC := firstRow["ndc_description"] != nil || firstRow["nadac_per_unit"] != nil + var headers []string + var keys []string + if isNADAC { + headers = []string{"NDC Description", "NDC", "NADAC / Unit", "Unit", "Effective Date"} + keys = []string{"ndc_description", "ndc", "nadac_per_unit", "pricing_unit", "effective_date"} + } else { + for k := range firstRow { + keys = append(keys, k) + } + sort.Strings(keys) + if len(keys) > 5 { + keys = keys[:5] + } + headers = append(headers, keys...) + } + var rows [][]string + var records []map[string]any + for _, el := range rawResults { + if len(records) >= wave3K2MaxRecords { + break + } + rm := wave3K2Map(el) + if rm == nil { + continue + } + records = append(records, rm) + rowCells := make([]string, len(keys)) + for i, k := range keys { + rowCells[i] = escapeDeclMarkdownBrackets(wave3K2Plain(rm[k], 120)) + } + rows = append(rows, rowCells) + } + if len(records) == 0 { + return nil, false + } + title := fallbackTitle + " — Datastore Query" + if isNADAC { + title = "Medicaid NADAC Drug Pricing Query" + } + total := len(rawResults) + if cnt, okC := wave3K2FloatVal(tv["count"]); okC && int(cnt) > total { + total = int(cnt) + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + fmt.Sprintf("- **Total Matching Rows**: %d\n\n", total) + formatDeclarativeGFMTable(headers, rows), + Records: records, + Total: wave3K2IntPtr(total), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(total > len(records)), + }, true + } + + // DKAN Metastore single dataset + title := wave3K2Plain(tv["title"], 280) + ident := wave3K2Plain(tv["identifier"], 80) + if title == "" && ident == "" { + return nil, false + } + desc := wave3K2Plain(tv["description"], 1600) + modified := wave3K2Plain(tv["modified"], 64) + pubName := "" + if pub := wave3K2Map(tv["publisher"]); pub != nil { + if pd := wave3K2Map(pub["data"]); pd != nil { + pubName = wave3K2Plain(pd["name"], 120) + } else { + pubName = wave3K2Plain(pub["name"], 120) + } + } + var links []string + seen := make(map[string]bool) + var distRows [][]string + for _, d := range wave3K2Slice(tv["distribution"]) { + dm := wave3K2Map(d) + if dm == nil { + continue + } + inner := dm + if dd := wave3K2Map(dm["data"]); dd != nil { + inner = dd + } + dl := SanitizeSchemaHTTPSURL(firstNonNilSchemaGo(inner["downloadURL"], inner["accessURL"]), origURL) + fm := wave3K2Plain(firstNonNilSchemaGo(inner["format"], inner["mediaType"]), 40) + if dl != "" { + wave3K2AddLink(&links, seen, dl, origURL) + distRows = append(distRows, []string{wave3K2FirstNonEmpty(fm, "Data"), "[Download](" + dl + ")"}) + } + } + var bullets []string + if ident != "" { + bullets = append(bullets, "- **Identifier**: `"+sanitizeDeclInlineCodeVal(ident)+"`") + } + if pubName != "" { + bullets = append(bullets, "- **Publisher**: "+escapeDeclMarkdownBrackets(pubName)) + } + if modified != "" { + bullets = append(bullets, "- **Modified**: "+escapeDeclMarkdownBrackets(modified)) + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(wave3K2FirstNonEmpty(title, ident))) + if len(bullets) > 0 { + md = append(md, wave3K2JoinBullets(bullets)) + } + if desc != "" { + md = append(md, escapeDeclMarkdownBlock(desc)) + } + if len(distRows) > 0 { + md = append(md, "## Distributions\n\n"+formatDeclarativeGFMTable([]string{"Format", "URL"}, distRows)) + } + return &DeclarativeFormattedDoc{ + Title: wave3K2FirstNonEmpty(title, ident), + Description: sliceRunesMax(desc, 500), + PublishedTime: modified, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: []map[string]any{{"identifier": ident, "title": title, "modified": modified, "publisher": pubName}}, + }, true + + case []any: + if len(tv) == 0 { + return nil, false + } + var rows [][]string + var records []map[string]any + for _, el := range tv { + if len(records) >= wave3K2MaxRecords { + break + } + dm := wave3K2Map(el) + if dm == nil { + continue + } + title := wave3K2Plain(dm["title"], 240) + ident := wave3K2Plain(dm["identifier"], 80) + mod := wave3K2Plain(dm["modified"], 48) + if title == "" && ident == "" { + continue + } + records = append(records, map[string]any{"identifier": ident, "title": title, "modified": mod}) + rows = append(rows, []string{"`" + sanitizeDeclInlineCodeVal(ident) + "`", escapeDeclMarkdownBrackets(title), mod}) + } + if len(records) == 0 { + return nil, false + } + return &DeclarativeFormattedDoc{ + Title: fallbackTitle + " Catalog", + Markdown: "# " + escapeDeclMarkdownBrackets(fallbackTitle+" Catalog") + "\n\n" + formatDeclarativeGFMTable([]string{"Identifier", "Title", "Modified"}, rows), + Records: records, + Total: wave3K2IntPtr(len(tv)), + Returned: wave3K2IntPtr(len(records)), + Truncated: wave3K2BoolPtr(len(tv) > len(records)), + }, true + } + return nil, false +} + +func wave3K2ExtractMedicaidHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K2ExtractH1(rawHTML) + ogTitle := wave3K2ExtractMeta(rawHTML, "og:title") + rawTitle := extractTitleLinearQuick(rawHTML) + title := wave3K2FirstNonEmpty(h1, ogTitle, rawTitle) + if title == "" || wave3K2IsNegativeTitle(title) || wave3K2IsGenericTitle(title) { + return nil + } + // Reject unhydrated DKAN React shell when title is generic "CMS Medicaid Data" and there is no real dataset content. + if strings.EqualFold(strings.TrimSpace(ogTitle), "cms medicaid data") && h1 == "" && !hasJSONLDScriptToken(rawHTML) { + return nil + } + bodyMD := wave3K2ExtractMainHTML(rawHTML, baseURL) + if bodyMD == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K2ExtractMeta(rawHTML, "description"), + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n- **Source**: data.medicaid.gov\n\n" + bodyMD, + } +} + +func wave3K2ExtractSBADSBSHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + // Reject empty React SPA shell on search.certifications.sba.gov / dsbs.sba.gov. + if (strings.Contains(urlLower, "search.certifications.sba.gov") || strings.Contains(urlLower, "dsbs.sba.gov") || strings.Contains(probeLower, `sba small business search`)) && + strings.Contains(probeLower, `
`) && !strings.Contains(probeLower, "= wave3K2MaxRecords { + break + } + em := wave3K2Map(ev) + if em == nil { + continue + } + ts := wave3K2Plain(em["eventTimestamp"], 64) + evType := wave3K2Plain(em["eventType"], 160) + loc := strings.Trim(strings.Join([]string{ + wave3K2Plain(em["eventCity"], 64), + wave3K2Plain(em["eventState"], 16), + wave3K2Plain(em["eventZIP"], 16), + }, ", "), ", ") + records = append(records, map[string]any{ + "carrier": "USPS", + "trackingNumber": tn, + "timestamp": ts, + "event": evType, + "location": loc, + }) + rows = append(rows, []string{ts, escapeDeclMarkdownBrackets(evType), escapeDeclMarkdownBrackets(loc)}) + } + if tn == "" && len(records) == 0 { + return nil, false + } + if len(records) == 0 { + records = []map[string]any{{"carrier": "USPS", "trackingNumber": tn, "status": status}} + } + title := "USPS Tracking: " + wave3K2FirstNonEmpty(tn, status) + var bullets []string + bullets = append(bullets, "- **Carrier**: USPS") + if tn != "" { + bullets = append(bullets, "- **Tracking Number**: `"+sanitizeDeclInlineCodeVal(tn)+"`") + } + if status != "" { + bullets = append(bullets, "- **Status**: "+escapeDeclMarkdownBrackets(status)) + } + if mailClass != "" { + bullets = append(bullets, "- **Service**: "+escapeDeclMarkdownBrackets(mailClass)) + } + if expected != "" { + bullets = append(bullets, "- **Expected Delivery**: "+escapeDeclMarkdownBrackets(expected)) + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title), wave3K2JoinBullets(bullets)) + if summary != "" { + md = append(md, escapeDeclMarkdownBlock(summary)) + } + if len(rows) > 0 { + md = append(md, "## Checkpoints\n\n"+formatDeclarativeGFMTable([]string{"Timestamp", "Event", "Location"}, rows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(md, "\n\n"), + Records: records, + }, true + } + + // 2. UPS Track v1 (`trackResponse.shipment[0].package[0]`) + if tr := wave3K2Map(obj["trackResponse"]); tr != nil { + ships := wave3K2Slice(tr["shipment"]) + if len(ships) == 0 { + return nil, false + } + ship := wave3K2Map(ships[0]) + if ship == nil { + return nil, false + } + pkgs := wave3K2Slice(ship["package"]) + if len(pkgs) == 0 { + return nil, false + } + pkg := wave3K2Map(pkgs[0]) + if pkg == nil { + return nil, false + } + tn := wave3K2Plain(pkg["trackingNumber"], 64) + curStatus := "" + if cs := wave3K2Map(pkg["currentStatus"]); cs != nil { + curStatus = wave3K2Plain(cs["description"], 120) + } + delivDate := "" + if dd := wave3K2Slice(pkg["deliveryDate"]); len(dd) > 0 { + if dm := wave3K2Map(dd[0]); dm != nil { + delivDate = wave3K2Plain(dm["date"], 32) + } + } + + var rows [][]string + var records []map[string]any + for _, act := range wave3K2Slice(pkg["activity"]) { + if len(records) >= wave3K2MaxRecords { + break + } + am := wave3K2Map(act) + if am == nil { + continue + } + dt := strings.TrimSpace(wave3K2Plain(am["date"], 16) + " " + wave3K2Plain(am["time"], 16)) + stDesc := "" + if sm := wave3K2Map(am["status"]); sm != nil { + stDesc = wave3K2Plain(sm["description"], 160) + } + if curStatus == "" { + curStatus = stDesc + } + locStr := "" + if lm := wave3K2Map(am["location"]); lm != nil { + if addr := wave3K2Map(lm["address"]); addr != nil { + locStr = strings.Trim(strings.Join([]string{ + wave3K2Plain(addr["city"], 64), + wave3K2Plain(addr["stateProvince"], 16), + wave3K2Plain(addr["countryCode"], 16), + }, ", "), ", ") + } + } + records = append(records, map[string]any{ + "carrier": "UPS", + "trackingNumber": tn, + "timestamp": dt, + "event": stDesc, + "location": locStr, + }) + rows = append(rows, []string{dt, escapeDeclMarkdownBrackets(stDesc), escapeDeclMarkdownBrackets(locStr)}) + } + if tn == "" && len(records) == 0 { + return nil, false + } + if len(records) == 0 { + records = []map[string]any{{"carrier": "UPS", "trackingNumber": tn, "status": curStatus}} + } + title := "UPS Tracking: " + wave3K2FirstNonEmpty(tn, curStatus) + var bullets []string + bullets = append(bullets, "- **Carrier**: UPS") + if tn != "" { + bullets = append(bullets, "- **Tracking Number**: `"+sanitizeDeclInlineCodeVal(tn)+"`") + } + if curStatus != "" { + bullets = append(bullets, "- **Status**: "+escapeDeclMarkdownBrackets(curStatus)) + } + if delivDate != "" { + bullets = append(bullets, "- **Delivery Date**: "+escapeDeclMarkdownBrackets(delivDate)) + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title), wave3K2JoinBullets(bullets)) + if len(rows) > 0 { + md = append(md, "## Checkpoints\n\n"+formatDeclarativeGFMTable([]string{"Timestamp", "Event", "Location"}, rows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(md, "\n\n"), + Records: records, + }, true + } + + // 3. FedEx Track v1 (`output.completeTrackResults[0].trackResults[0]`) + if outMap := wave3K2Map(obj["output"]); outMap != nil { + complete := wave3K2Slice(outMap["completeTrackResults"]) + if len(complete) == 0 { + return nil, false + } + c0 := wave3K2Map(complete[0]) + if c0 == nil { + return nil, false + } + trs := wave3K2Slice(c0["trackResults"]) + if len(trs) == 0 { + return nil, false + } + tr0 := wave3K2Map(trs[0]) + if tr0 == nil || wave3K2Map(tr0["error"]) != nil { + return nil, false + } + tn := "" + if tni := wave3K2Map(tr0["trackingNumberInfo"]); tni != nil { + tn = wave3K2Plain(tni["trackingNumber"], 64) + } + status := "" + if lsd := wave3K2Map(tr0["latestStatusDetail"]); lsd != nil { + status = wave3K2Plain(firstNonNilSchemaGo(lsd["statusByLocale"], lsd["description"]), 120) + } + var rows [][]string + var records []map[string]any + for _, se := range wave3K2Slice(tr0["scanEvents"]) { + if len(records) >= wave3K2MaxRecords { + break + } + sem := wave3K2Map(se) + if sem == nil { + continue + } + dt := wave3K2Plain(sem["date"], 48) + desc := wave3K2Plain(sem["eventDescription"], 160) + locStr := "" + if sl := wave3K2Map(sem["scanLocation"]); sl != nil { + locStr = strings.Trim(strings.Join([]string{ + wave3K2Plain(sl["city"], 64), + wave3K2Plain(sl["stateOrProvinceCode"], 16), + wave3K2Plain(sl["countryCode"], 16), + }, ", "), ", ") + } + records = append(records, map[string]any{ + "carrier": "FedEx", + "trackingNumber": tn, + "timestamp": dt, + "event": desc, + "location": locStr, + }) + rows = append(rows, []string{dt, escapeDeclMarkdownBrackets(desc), escapeDeclMarkdownBrackets(locStr)}) + } + if tn == "" && len(records) == 0 { + return nil, false + } + if len(records) == 0 { + records = []map[string]any{{"carrier": "FedEx", "trackingNumber": tn, "status": status}} + } + title := "FedEx Tracking: " + wave3K2FirstNonEmpty(tn, status) + var bullets []string + bullets = append(bullets, "- **Carrier**: FedEx") + if tn != "" { + bullets = append(bullets, "- **Tracking Number**: `"+sanitizeDeclInlineCodeVal(tn)+"`") + } + if status != "" { + bullets = append(bullets, "- **Status**: "+escapeDeclMarkdownBrackets(status)) + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title), wave3K2JoinBullets(bullets)) + if len(rows) > 0 { + md = append(md, "## Checkpoints\n\n"+formatDeclarativeGFMTable([]string{"Timestamp", "Event", "Location"}, rows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(md, "\n\n"), + Records: records, + }, true + } + + return nil, false +} diff --git a/internal/extract/wave3_regulators_health_test.go b/internal/extract/wave3_regulators_health_test.go new file mode 100644 index 0000000..4630949 --- /dev/null +++ b/internal/extract/wave3_regulators_health_test.go @@ -0,0 +1,501 @@ +package extract + +import ( + "encoding/json" + "fmt" + "net/url" + "os" + "path/filepath" + "strings" + "testing" +) + +func wave3K2DecodeDoc(t *testing.T, raw string) *DeclarativeFormattedDoc { + t.Helper() + var doc DeclarativeFormattedDoc + if err := json.Unmarshal([]byte(raw), &doc); err != nil { + t.Fatalf("unmarshal DeclarativeFormattedDoc: %v\nraw=%s", err, raw) + } + return &doc +} + +func wave3K2ResolveManifest(t *testing.T, m *DeclarativeAdapterManifest, rawURL string) (*DeclarativeTwinMatch, bool) { + t.Helper() + u, err := url.Parse(rawURL) + if err != nil { + t.Fatalf("url.Parse(%q): %v", rawURL, err) + } + host := strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") + rawParts := splitNonEmptyEscapedSegments(u.EscapedPath()) + return resolveManifestTwinOnParsedURL(m, u, host, rawParts, DeclarativeResolveOptions{}) +} + +func TestWave3RegulatorsHealthManifestsAndRoutingPrecedence(t *testing.T) { + catK2IDs := []string{ + "gao-reports", + "cbo", + "everycrsreport", + "gov-wordpress-newsrooms", + "gsa-site-scanning", + "va-lighthouse-facilities", + "healthcare-gov-marketplace", + "cms-price-transparency", + "medicaid-nadac", + "usps-addresses", + "carrier-tracking-official", + "sba-dsbs-loans", + } + + byID := make(map[string]*DeclarativeAdapterManifest, len(catK2IDs)) + for _, id := range catK2IDs { + raw, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", id, err) + } + m, err := ParseDeclarativeYAMLManifest(raw) + if err != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s.yaml): %v", id, err) + } + if m.ID != id { + t.Fatalf("%s.yaml has mismatched id=%q", id, m.ID) + } + if m.AuthMode == "detect-only" || m.DetectOnly != nil { + t.Fatalf("%s.yaml uses retired detect-only", id) + } + for _, hr := range m.HTMLRoutes { + for _, b := range hr.Bullets { + if strings.ContainsAny(b.Label, "{}") { + t.Fatalf("%s.yaml bullet label contains {}: %q", id, b.Label) + } + } + } + byID[id] = m + } + + // #289 gao-reports must set strict_robots: true + if !byID["gao-reports"].StrictRobots { + t.Fatalf("gao-reports must enforce strict_robots: true") + } + + // #291 everycrsreport must map .html -> .json and /reports.csv (not reports.json) + ecrs := byID["everycrsreport"] + if tm, ok := wave3K2ResolveManifest(t, ecrs, "https://www.everycrsreport.com/reports/IN11532.html"); !ok || tm.FetchURL != "https://www.everycrsreport.com/reports/IN11532.json" { + t.Fatalf("everycrsreport .html twin mismatch: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3K2ResolveManifest(t, ecrs, "https://www.everycrsreport.com/reports.csv"); !ok || tm.route.Extract.TextMode != "everycrs_csv" { + t.Fatalf("everycrsreport /reports.csv route mismatch: ok=%v tm=%+v", ok, tm) + } + + // #292 gov-wordpress-newsrooms must exclude whitehouse.gov from /wp-json/wp/v2/posts + gwp := byID["gov-wordpress-newsrooms"] + if tm, ok := wave3K2ResolveManifest(t, gwp, "https://www.whitehouse.gov/wp-json/wp/v2/posts"); ok || tm != nil { + t.Fatalf("gov-wordpress-newsrooms must exclude whitehouse.gov from /wp-json/: %+v", tm) + } + if tm, ok := wave3K2ResolveManifest(t, gwp, "https://news.va.gov/wp-json/wp/v2/posts?per_page=1"); !ok || tm.route.Extract.JSONMode != "gov_wp_posts_json" { + t.Fatalf("gov-wordpress-newsrooms news.va.gov wp-json failed: ok=%v tm=%+v", ok, tm) + } + + // #295 healthcare-gov-marketplace POST /api/v1/plans/search + hc := byID["healthcare-gov-marketplace"] + if tm, ok := wave3K2ResolveManifest(t, hc, "https://marketplace.api.healthcare.gov/api/v1/plans/search"); !ok || tm.Method != "POST" || tm.ContentType != "application/json" || tm.RequestBody == "" { + t.Fatalf("healthcare-gov-marketplace POST route mismatch: ok=%v tm=%+v", ok, tm) + } + + // #296 cms-price-transparency universalEngine, Range header, maxBytes, and no collision with my.clevelandclinic.org + cms := byID["cms-price-transparency"] + if !cms.UniversalEngine { + t.Fatalf("cms-price-transparency must set universalEngine: true") + } + for _, d := range cms.Domains { + if d == "my.clevelandclinic.org" { + t.Fatalf("cms-price-transparency must NOT duplicate my.clevelandclinic.org (owned by schema-medical.yaml)") + } + } + if tm, ok := wave3K2ResolveManifest(t, cms, "https://stanfordhealthcare.org/content/dam/SHC/946174066_stanford_standardcharges.json"); !ok || tm.EffectiveMaxBytes() != 2097152 || tm.Headers["Range"] != "bytes=0-2097151" { + t.Fatalf("cms-price-transparency MRF JSON Range/maxBytes mismatch: ok=%v tm=%+v", ok, tm) + } + + // #299 carrier-tracking-official headers & POST + ct := byID["carrier-tracking-official"] + if tm, ok := wave3K2ResolveManifest(t, ct, "https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784"); !ok || tm.Headers["transactionSrc"] != "edgefetch" { + t.Fatalf("carrier-tracking-official UPS transactionSrc mismatch: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3K2ResolveManifest(t, ct, "https://apis.fedex.com/track/v1/trackingnumbers?trackingNumber=794812345678"); !ok || tm.Method != "POST" || !strings.Contains(tm.RequestBody, "794812345678") { + t.Fatalf("carrier-tracking-official FedEx POST mismatch: ok=%v tm=%+v", ok, tm) + } + + // Full manifest set validation on disk + live registry precedence check for #298 vs #299 and #296 universalEngine! + entries, err := os.ReadDir("manifests") + if err != nil { + t.Fatalf("ReadDir(manifests): %v", err) + } + var allManifests []DeclarativeAdapterManifest + reg := &declarativeRegistry{byHost: make(map[string][]*DeclarativeAdapterManifest)} + seenIDs := make(map[string]bool) + twinOwners := make(map[string]string) + for _, ent := range entries { + if ent.IsDir() || !strings.HasSuffix(ent.Name(), ".yaml") { + continue + } + raw, rErr := os.ReadFile(filepath.Join("manifests", ent.Name())) + if rErr != nil { + t.Fatalf("read %s: %v", ent.Name(), rErr) + } + m, pErr := ParseDeclarativeYAMLManifest(raw) + if pErr != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s): %v", ent.Name(), pErr) + } + allManifests = append(allManifests, *m) + mCopy := *m + if regErr := registerManifestInRegistry(reg, &mCopy, seenIDs, twinOwners); regErr != nil { + t.Fatalf("registerManifestInRegistry(%s): %v", ent.Name(), regErr) + } + } + if err := ValidateDeclarativeManifests(allManifests); err != nil { + t.Fatalf("ValidateDeclarativeManifests across all disk YAML files failed: %v", err) + } + + // Verify #298 usps-addresses vs #299 carrier-tracking-official routing precedence on apis.usps.com! + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://apis.usps.com/addresses/v3/address?streetAddress=475&city=DC&state=DC", DeclarativeResolveOptions{}); !ok || m.AdapterID != "usps-addresses" { + t.Fatalf("apis.usps.com/addresses/v3/... must resolve to usps-addresses: ok=%v m=%+v", ok, m) + } + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://apis.usps.com/tracking/v3/tracking/9400111899223344556677", DeclarativeResolveOptions{}); !ok || m.AdapterID != "carrier-tracking-official" { + t.Fatalf("apis.usps.com/tracking/... must resolve to carrier-tracking-official via universalEngine: ok=%v m=%+v", ok, m) + } + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://apis-tem.usps.com/tracking/v3/tracking/9400111899223344556677", DeclarativeResolveOptions{}); !ok || m.AdapterID != "carrier-tracking-official" { + t.Fatalf("apis-tem.usps.com/tracking/... must resolve to carrier-tracking-official: ok=%v m=%+v", ok, m) + } + + // Verify #296 universalEngine resolves my.clevelandclinic.org/cms-hpt.txt cleanly even though schema-medical owns my.clevelandclinic.org! + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://my.clevelandclinic.org/cms-hpt.txt", DeclarativeResolveOptions{}); !ok || m.AdapterID != "cms-price-transparency" { + t.Fatalf("my.clevelandclinic.org/cms-hpt.txt must resolve to cms-price-transparency: ok=%v m=%+v", ok, m) + } + + // Verify #297 medicaid-nadac owns data.medicaid.gov and #300 sba-dsbs-loans owns data.sba.gov over universal dkan! + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704", DeclarativeResolveOptions{}); !ok || m.AdapterID != "medicaid-nadac" { + t.Fatalf("data.medicaid.gov/dataset/... must resolve to medicaid-nadac: ok=%v m=%+v", ok, m) + } + if m, ok := resolveDeclarativeTwinWithRegistry(reg, "https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002", DeclarativeResolveOptions{}); !ok || m.AdapterID != "sba-dsbs-loans" { + t.Fatalf("data.sba.gov/api/1/metastore/... must resolve to sba-dsbs-loans: ok=%v m=%+v", ok, m) + } +} + +func TestWave3RegulatorsHealthHTMLExtractorsAndNegatives(t *testing.T) { + modes := []string{ + "gao_reports_html", + "cbo_html", + "everycrs_html", + "gov_wp_newsroom_html", + "gsa_site_scanning_html", + "va_facilities_html", + "healthcare_gov_html", + "cms_price_transparency_html", + "medicaid_nadac_html", + "usps_docs_html", + "sba_dsbs_loans_html", + } + for _, m := range modes { + if !IsWave3RegulatorsHealthHTMLMode(m) { + t.Fatalf("IsWave3RegulatorsHealthHTMLMode(%q) = false", m) + } + if getExternalHTMLModeLazy(m) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", m) + } + } + + // #289 GAO positive + Akamai Access Denied negative + gaoGood := `GAO-27-108423 | U.S. GAO

Federal Cybersecurity Governance

What GAO Found: agencies need stronger risk monitoring.

PDF
` + if raw, ok := RunWave3RegulatorsHealthHTMLMode("gao_reports_html", gaoGood, "https://www.gao.gov/products/gao-27-108423"); !ok || !strings.Contains(raw, "GAO-27-108423") { + t.Fatalf("gao_reports_html positive failed: ok=%v raw=%s", ok, raw) + } + if _, ok := RunWave3RegulatorsHealthHTMLMode("gao_reports_html", `Access Denied

Access Denied

Reference #18.errors.edgesuite.net

`, "https://www.gao.gov/reports-testimonies"); ok { + t.Fatalf("gao_reports_html must reject Akamai Access Denied") + } + + // #290 CBO DataDome challenge must return false + ddHTML := `cbo.gov

Please enable JS and disable any ad blocker

` + if _, ok := RunWave3RegulatorsHealthHTMLMode("cbo_html", ddHTML, "https://www.cbo.gov/publication/62899"); ok { + t.Fatalf("cbo_html must reject DataDome challenge") + } + cboGood := `Cost Estimate H.R. 4120 | Congressional Budget Office

Cost Estimate for H.R. 4120

CBO estimates enacting this bill would increase spending by $1.4 billion.

` + if raw, ok := RunWave3RegulatorsHealthHTMLMode("cbo_html", cboGood, "https://www.cbo.gov/publication/62899"); !ok || !strings.Contains(raw, "62899") { + t.Fatalf("cbo_html positive failed: ok=%v raw=%s", ok, raw) + } + + // #292 gov_wp_newsroom_html rejects WooCommerce & 403, extracts White House HTML + whGood := `Presidential Actions - The White House

Presidential Actions Briefing

Executive actions published by the White House press office.

` + if raw, ok := RunWave3RegulatorsHealthHTMLMode("gov_wp_newsroom_html", whGood, "https://www.whitehouse.gov/presidential-actions/"); !ok || !strings.Contains(raw, "The White House") { + t.Fatalf("gov_wp_newsroom_html positive failed: ok=%v raw=%s", ok, raw) + } + if _, ok := RunWave3RegulatorsHealthHTMLMode("gov_wp_newsroom_html", `Store

Shop

Cart

`, "https://example.gov/shop"); ok { + t.Fatalf("gov_wp_newsroom_html must reject WooCommerce") + } + + // #294 VA Facilities rejects unhydrated page-react.html shell + vaReactShell := `Find VA Locations | Veterans Affairs
` + if _, ok := RunWave3RegulatorsHealthHTMLMode("va_facilities_html", vaReactShell, "https://www.va.gov/find-locations"); ok { + t.Fatalf("va_facilities_html must reject unhydrated React locator shell") + } + + // #296 cms_price_transparency_html prefilter & positive + cmsHTML := `Hospital Price Transparency

Hospital Price Transparency (45 CFR 180)

Download our machine-readable standard charges file.

cms-hpt.txt
` + if raw, ok := RunWave3RegulatorsHealthHTMLMode("cms_price_transparency_html", cmsHTML, "https://stanfordhealthcare.org/pricing-transparency"); !ok || !strings.Contains(raw, "cms-hpt.txt") { + t.Fatalf("cms_price_transparency_html positive failed: ok=%v raw=%s", ok, raw) + } + if _, ok := RunWave3RegulatorsHealthHTMLMode("cms_price_transparency_html", `Regular Blog

Hello World

Unrelated post.

`, "https://example.com/blog"); ok { + t.Fatalf("cms_price_transparency_html prefilter must reject unrelated pages") + } + + // #297 medicaid_nadac_html rejects empty DKAN React shell ("CMS Medicaid Data" generic title) + medicaidShell := `CMS Medicaid Data
` + if _, ok := RunWave3RegulatorsHealthHTMLMode("medicaid_nadac_html", medicaidShell, "https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704"); ok { + t.Fatalf("medicaid_nadac_html must reject generic CMS Medicaid Data React shell") + } + + // #300 sba_dsbs_loans_html rejects empty React SPA shell on search.certifications.sba.gov + sbaShell := `SBA Small Business Search
` + if _, ok := RunWave3RegulatorsHealthHTMLMode("sba_dsbs_loans_html", sbaShell, "https://search.certifications.sba.gov/"); ok { + t.Fatalf("sba_dsbs_loans_html must reject empty React SPA shell") + } + sbaDataHTML := `SBA FOIA Quarterly Reports | SBA open data

SBA FOIA Quarterly Reports

DKAN dataset containing quarterly FOIA metrics.

` + if raw, ok := RunWave3RegulatorsHealthHTMLMode("sba_dsbs_loans_html", sbaDataHTML, "https://data.sba.gov/dataset/sba-foia-quarterly-reports"); !ok || !strings.Contains(raw, "SBA FOIA Quarterly Reports") { + t.Fatalf("sba_dsbs_loans_html positive failed: ok=%v raw=%s", ok, raw) + } +} + +func TestWave3RegulatorsHealthCMSPriceTransparencyStreamingAndArchives(t *testing.T) { + // 1. ZIP (PK\x03\x04) & gzip (\x1f\x8b) magic bytes in BOTH cms_mrf_json and cms_mrf_csv + zipBytes := append([]byte{'P', 'K', 0x03, 0x04}, []byte("mock-zip-central-dir-bytes")...) + gzipBytes := append([]byte{0x1f, 0x8b, 0x08, 0x00}, []byte("mock-gzip-stream")...) + + for _, tc := range []struct { + name string + raw []byte + want string + }{ + {"zip", zipBytes, "ZIP"}, + {"gzip", gzipBytes, "GZIP"}, + } { + rawJ, okJ := FormatWave3RegulatorsHealthJSONMode("cms_mrf_json", tc.raw, nil, "https://my.clevelandclinic.org/panacea_standardcharges.json") + if !okJ || !strings.Contains(rawJ, tc.want) { + t.Fatalf("cms_mrf_json %s magic detection failed: ok=%v raw=%s", tc.name, okJ, rawJ) + } + rawC, okC := FormatWave3RegulatorsHealthTextMode("cms_mrf_csv", string(tc.raw), nil, "https://my.clevelandclinic.org/panacea_standardcharges.csv") + if !okC || !strings.Contains(rawC, tc.want) { + t.Fatalf("cms_mrf_csv %s magic detection failed: ok=%v raw=%s", tc.name, okC, rawC) + } + } + + // 2. Truncated Hospital MRF JSON (> 25 items + incomplete tail at 2 MiB boundary) + var mrfItems []string + for i := 1; i <= 28; i++ { + mrfItems = append(mrfItems, fmt.Sprintf(`{"description":"MRI Brain Scan %d","code_information":[{"code":"7055%d","type":"CPT"}],"standard_charges":[{"gross_charge":2500.00,"discounted_cash":1250.00}]}`, i, i)) + } + truncatedMRFJSON := `{"hospital_name":"Stanford Health Care","last_updated_on":"2026-04-01","version":"3.0.0","location_name":["Stanford Hospital"],"hospital_address":["300 Pasteur Dr"],"type_2_npi":["1234567890"],"standard_charge_information":[` + + strings.Join(mrfItems, ",") + `,{"description":"Truncated tail` // intentionally truncated without closing brace/bracket! + rawMRFJ, okMRFJ := FormatWave3RegulatorsHealthJSONMode("cms_mrf_json", []byte(truncatedMRFJSON), nil, "https://stanfordhealthcare.org/946174066_standardcharges.json") + if !okMRFJ { + t.Fatalf("cms_mrf_json truncated stream failed") + } + docMRFJ := wave3K2DecodeDoc(t, rawMRFJ) + if len(docMRFJ.Records) != 25 || !strings.Contains(docMRFJ.Markdown, "Stanford Health Care") { + t.Fatalf("cms_mrf_json cap/title mismatch: len=%d md=%s", len(docMRFJ.Records), docMRFJ.Markdown) + } + + // Also verify early truncation (< 25 items, EOF mid-object) + earlyTrunc := `{"hospital_name":"Mount Sinai Hospital","last_updated_on":"2026-03-01","version":"3.0.0","standard_charge_information":[{"description":"Chest X-Ray","code_information":[{"code":"71046","type":"CPT"}],"standard_charges":[{"gross_charge":450,"discounted_cash":220}]},{"description":"Broken` + rawEarly, okEarly := FormatWave3RegulatorsHealthJSONMode("cms_mrf_json", []byte(earlyTrunc), nil, "https://www.mountsinai.org/mrf_standardcharges.json") + if !okEarly || !strings.Contains(rawEarly, "Mount Sinai Hospital") || !strings.Contains(rawEarly, "Chest X-Ray") { + t.Fatalf("cms_mrf_json early truncation failed: ok=%v raw=%s", okEarly, rawEarly) + } + + // 3. CMS TiC Table of Contents & UHC TiC Blobs + ticTOC := `{"reporting_entity_name":"Example Health Plan","reporting_entity_type":"health insurance issuer","last_updated_on":"2026-11-01","version":"1.0.0","reporting_structure":[{"reporting_plans":[{"plan_name":"Gold PPO 1000"}],"in_network_files":[{"location":"https://example.org/in_network_1.json.gz"}]}]}` + if rawTOC, okTOC := FormatWave3RegulatorsHealthJSONMode("cms_mrf_json", []byte(ticTOC), nil, "https://example.org/table-of-contents.json"); !okTOC || !strings.Contains(rawTOC, "Example Health Plan") || !strings.Contains(rawTOC, "Gold PPO 1000") { + t.Fatalf("cms_mrf_json TiC TOC failed: ok=%v raw=%s", okTOC, rawTOC) + } + uhcBlobs := `{"blobs":[{"name":"2026-11-01_uhc_index.json.gz","downloadUrl":"https://transparency-in-coverage.uhc.com/api/v1/uhc/blobs/download/123","size":9876543}]}` + if rawUHC, okUHC := FormatWave3RegulatorsHealthJSONMode("cms_mrf_json", []byte(uhcBlobs), nil, "https://transparency-in-coverage.uhc.com/api/v1/uhc/blobs/"); !okUHC || !strings.Contains(rawUHC, "2026-11-01_uhc_index.json.gz") { + t.Fatalf("cms_mrf_json UHC blobs failed: ok=%v raw=%s", okUHC, rawUHC) + } + + // 4. Hospital MRF CSV with quoted multiline Row-0 attestation + > 25 rows + truncated final quote + var csvLines []string + csvLines = append(csvLines, `hospital_name,last_updated_on,version,location_name,hospital_address,license_number|NY,type_2_npi,"To the best of its knowledge and belief, the hospital has included all applicable standard charge information in accordance with`+"\n"+`45 CFR 180.50 requirements.",attester_name`) + csvLines = append(csvLines, `NYU Langone Health,2026-02-01,3.0.0,Tisch Hospital,"550 First Ave, New York, NY 10016",7002053H,1234567890,Attested,Jane Doe`) + csvLines = append(csvLines, `description,code|1,code|1|type,standard_charge|gross,standard_charge|discounted_cash`) + for i := 1; i <= 27; i++ { + csvLines = append(csvLines, fmt.Sprintf(`"Procedure Item %d",9921%d,CPT,500.00,250.00`, i, i%9)) + } + csvLines = append(csvLines, `"Truncated final row without closing quote`) + rawCSV, okCSV := FormatWave3RegulatorsHealthTextMode("cms_mrf_csv", strings.Join(csvLines, "\n"), nil, "https://nyulangone.org/nyu_standardcharges.csv") + if !okCSV { + t.Fatalf("cms_mrf_csv failed on multiline attestation + truncated tail") + } + docCSV := wave3K2DecodeDoc(t, rawCSV) + if len(docCSV.Records) != 25 || !strings.Contains(docCSV.Markdown, "NYU Langone Health") || !strings.Contains(docCSV.Markdown, "7002053H") { + t.Fatalf("cms_mrf_csv mismatch: len=%d md=%s", len(docCSV.Records), docCSV.Markdown) + } + + // 5. cms_hpt_txt stanza parser + hpt := "location-name: Stanford Health Care\nsource-page-url: https://stanfordhealthcare.org/pricing.html\nmrf-url: https://stanfordhealthcare.org/mrf.json\ncontact-email: pricing@stanfordhealthcare.org\n\nlocation-name: ValleyCare\nmrf-url: https://stanfordhealthcare.org/valleycare_mrf.json\n" + if rawHPT, okHPT := FormatWave3RegulatorsHealthTextMode("cms_hpt_txt", hpt, nil, "https://stanfordhealthcare.org/cms-hpt.txt"); !okHPT || !strings.Contains(rawHPT, "ValleyCare") { + t.Fatalf("cms_hpt_txt failed: ok=%v raw=%s", okHPT, rawHPT) + } +} + +func TestWave3RegulatorsHealthOtherJSONAndTextModes(t *testing.T) { + // #291 everycrs_csv + truncated tail + csvCRS := "number,url,sha1,latestPubDate,title,latestPDF,latestHTML\nIN11532,/reports/IN11532.html,abc,2026-10-14,\"Federal Grants, Overview\",/files/IN11532.pdf,/reports/IN11532.html\nR47000,/reports/R47000.html,def,2026-10-01,\"Truncated" + if raw, ok := FormatWave3RegulatorsHealthTextMode("everycrs_csv", csvCRS, nil, "https://www.everycrsreport.com/reports.csv"); !ok || !strings.Contains(raw, "IN11532") { + t.Fatalf("everycrs_csv failed: ok=%v raw=%s", ok, raw) + } + + // #299 carrier_tracking_json: USPS, UPS, FedEx + error rejections + upsPayload := `{"trackResponse":{"shipment":[{"package":[{"trackingNumber":"1Z999AA10123456784","currentStatus":{"description":"Delivered"},"deliveryDate":[{"date":"20261126"}],"activity":[{"date":"20261126","time":"103000","status":{"description":"Delivered"},"location":{"address":{"city":"ATLANTA","stateProvince":"GA","countryCode":"US"}}}]}]}]}}` + if raw, ok := FormatWave3RegulatorsHealthJSONMode("carrier_tracking_json", []byte(upsPayload), nil, "https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784"); !ok || !strings.Contains(raw, "UPS Tracking") || !strings.Contains(raw, "ATLANTA") { + t.Fatalf("carrier_tracking_json UPS failed: ok=%v raw=%s", ok, raw) + } + fedexPayload := `{"output":{"completeTrackResults":[{"trackResults":[{"trackingNumberInfo":{"trackingNumber":"784592018372"},"latestStatusDetail":{"statusByLocale":"Delivered"},"scanEvents":[{"date":"2026-11-26T09:15:00-06:00","eventDescription":"Delivered","scanLocation":{"city":"MEMPHIS","stateOrProvinceCode":"TN","countryCode":"US"}}]}]}]}}` + if raw, ok := FormatWave3RegulatorsHealthJSONMode("carrier_tracking_json", []byte(fedexPayload), nil, "https://apis.fedex.com/track/v1/trackingnumbers"); !ok || !strings.Contains(raw, "FedEx Tracking") || !strings.Contains(raw, "MEMPHIS") { + t.Fatalf("carrier_tracking_json FedEx failed: ok=%v raw=%s", ok, raw) + } + + // #297 medicaid_nadac_json datastore query + nadacQuery := `{"results":[{"ndc_description":"ATORVASTATIN 20 MG TABLET","ndc":"00093505798","nadac_per_unit":"0.04123","pricing_unit":"EA","effective_date":"2026-11-18"}],"count":1}` + if raw, ok := FormatWave3RegulatorsHealthJSONMode("medicaid_nadac_json", []byte(nadacQuery), nil, "https://data.medicaid.gov/api/1/datastore/query/e3af839d/0"); !ok || !strings.Contains(raw, "ATORVASTATIN 20 MG TABLET") { + t.Fatalf("medicaid_nadac_json datastore query failed: ok=%v raw=%s", ok, raw) + } +} + +func TestWave3RegulatorsHealthFixturesJSONValidAndSelfConsistent(t *testing.T) { + catK2IDs := []string{ + "gao-reports", + "cbo", + "everycrsreport", + "gov-wordpress-newsrooms", + "gsa-site-scanning", + "va-lighthouse-facilities", + "healthcare-gov-marketplace", + "cms-price-transparency", + "medicaid-nadac", + "usps-addresses", + "carrier-tracking-official", + "sba-dsbs-loans", + } + + for _, id := range catK2IDs { + raw, err := os.ReadFile(filepath.Join("..", "..", "hub", "test", "fixtures", "adapters", id+".json")) + if err != nil { + t.Fatalf("read fixture %s.json: %v", id, err) + } + var fx struct { + AdapterID string `json:"adapterId"` + Mode string `json:"mode"` + InputURL string `json:"inputUrl"` + ExpectedFetchURL string `json:"expectedFetchUrl"` + MockPayload string `json:"mockPayload"` + ExpectTitle string `json:"expectTitleIncludes"` + ExpectIncludes []string `json:"expectMarkdownIncludes"` + NegativeCases []struct { + Name string `json:"name"` + Status int `json:"status"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } `json:"negativeCases"` + } + if err := json.Unmarshal(raw, &fx); err != nil { + t.Fatalf("invalid JSON in %s.json: %v", id, err) + } + if fx.AdapterID != id || (fx.Mode != "twin" && fx.Mode != "html") || fx.InputURL == "" || fx.MockPayload == "" || len(fx.NegativeCases) < 4 { + t.Fatalf("fixture %s.json contract failed: id=%q mode=%q neg=%d", id, fx.AdapterID, fx.Mode, len(fx.NegativeCases)) + } + + // Verify golden + negative payloads against Go extractor/formatter + mRaw, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read manifest %s.yaml: %v", id, err) + } + m, err := ParseDeclarativeYAMLManifest(mRaw) + if err != nil { + t.Fatalf("parse %s.yaml: %v", id, err) + } + + if fx.Mode == "html" { + mode := m.HTMLRoutes[0].Mode + out, ok := RunWave3RegulatorsHealthHTMLMode(mode, fx.MockPayload, fx.InputURL) + if !ok { + t.Fatalf("fixture %s golden HTML failed", id) + } + for _, needle := range fx.ExpectIncludes { + if !strings.Contains(out, needle) { + t.Fatalf("fixture %s HTML missing %q in %s", id, needle, out) + } + } + for _, nc := range fx.NegativeCases { + targetURL := nc.FinalURL + if targetURL == "" { + targetURL = fx.InputURL + } + if negOut, okNeg := RunWave3RegulatorsHealthHTMLMode(mode, nc.Payload, targetURL); okNeg { + t.Fatalf("fixture %s negative case %q unexpectedly matched: %s", id, nc.Name, negOut) + } + } + } else { + tm, ok := wave3K2ResolveManifest(t, m, fx.InputURL) + if !ok || tm == nil { + t.Fatalf("fixture %s inputUrl %s failed to match manifest twin", id, fx.InputURL) + } + if fx.ExpectedFetchURL != "" && tm.FetchURL != fx.ExpectedFetchURL { + t.Fatalf("fixture %s expectedFetchUrl %q != %q", id, fx.ExpectedFetchURL, tm.FetchURL) + } + var out string + var okFmt bool + if tm.route.Extract.TextMode != "" { + out, okFmt = FormatWave3RegulatorsHealthTextMode(tm.route.Extract.TextMode, fx.MockPayload, tm.params, fx.InputURL) + } else { + out, okFmt = FormatWave3RegulatorsHealthJSONMode(tm.route.Extract.JSONMode, []byte(fx.MockPayload), tm.params, fx.InputURL) + } + if !okFmt { + t.Fatalf("fixture %s golden twin format failed", id) + } + for _, needle := range fx.ExpectIncludes { + if !strings.Contains(out, needle) { + t.Fatalf("fixture %s twin missing %q in %s", id, needle, out) + } + } + for _, nc := range fx.NegativeCases { + if nc.FinalURL != "" { + continue + } + var okNeg bool + if tm.route.Extract.TextMode != "" { + _, okNeg = FormatWave3RegulatorsHealthTextMode(tm.route.Extract.TextMode, nc.Payload, tm.params, fx.InputURL) + } else { + _, okNeg = FormatWave3RegulatorsHealthJSONMode(tm.route.Extract.JSONMode, []byte(nc.Payload), tm.params, fx.InputURL) + } + if okNeg { + t.Fatalf("fixture %s negative case %q unexpectedly formatted", id, nc.Name) + } + } + } + } + + // Regression tests for P2: F5 BIG-IP ASM (neutral ) and 78 KB <div id="root"></div> shells + f5Shell := `<!doctype html><html><head><title>Notice

The requested URL was rejected. Please consult with your administrator.
Your support ID is: 12345678901234567890

` + largeReactRoot := `SBA Search
` + for _, tc := range []struct { + mode string + url string + html string + name string + }{ + {"gao_reports_html", "https://www.gao.gov/products/gao-26-100001", f5Shell, "gao-f5-asm"}, + {"cbo_html", "https://www.cbo.gov/publication/60001", f5Shell, "cbo-f5-asm"}, + {"sba_dsbs_loans_html", "https://search.certifications.sba.gov/profile/123", largeReactRoot, "sba-78kb-div-root"}, + } { + if _, ok := RunWave3RegulatorsHealthHTMLMode(tc.mode, tc.html, tc.url); ok { + t.Fatalf("%s must reject negative shell", tc.name) + } + } +} diff --git a/internal/extract/wave3_regulators_test.go b/internal/extract/wave3_regulators_test.go new file mode 100644 index 0000000..85c8905 --- /dev/null +++ b/internal/extract/wave3_regulators_test.go @@ -0,0 +1,411 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" +) + +func wave3K1DecodeDoc(t *testing.T, raw string) *DeclarativeFormattedDoc { + t.Helper() + var doc DeclarativeFormattedDoc + if err := json.Unmarshal([]byte(raw), &doc); err != nil { + t.Fatalf("unmarshal DeclarativeFormattedDoc: %v\nraw=%s", err, raw) + } + return &doc +} + +func wave3K1ResolveManifest(t *testing.T, m *DeclarativeAdapterManifest, rawURL string) (*DeclarativeTwinMatch, bool) { + t.Helper() + u, err := url.Parse(rawURL) + if err != nil { + t.Fatalf("url.Parse(%q): %v", rawURL, err) + } + host := strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") + rawParts := splitNonEmptyEscapedSegments(u.EscapedPath()) + return resolveManifestTwinOnParsedURL(m, u, host, rawParts, DeclarativeResolveOptions{}) +} + +func TestWave3RegulatorsManifestsOnDisk(t *testing.T) { + catK1IDs := []string{ + "dol-enforcement", + "osha-establishment", + "nlrb-cases", + "eeoc-litigation", + "ftc-cases", + "fcc-ecfs", + "fcc-uls", + "ferc-nrc-dockets", + "financial-regulators-enforcement", + "oversight-gov", + } + + byID := make(map[string]*DeclarativeAdapterManifest, len(catK1IDs)) + for _, id := range catK1IDs { + raw, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", id, err) + } + m, err := ParseDeclarativeYAMLManifest(raw) + if err != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s.yaml): %v", id, err) + } + if m.ID != id { + t.Fatalf("%s.yaml has mismatched id=%q", id, m.ID) + } + if m.AuthMode == "detect-only" || m.DetectOnly != nil { + t.Fatalf("%s.yaml uses retired detect-only", id) + } + for _, hr := range m.HTMLRoutes { + for _, b := range hr.Bullets { + if strings.ContainsAny(b.Label, "{}") { + t.Fatalf("%s.yaml bullet label contains {}: %q", id, b.Label) + } + } + } + byID[id] = m + } + + // #283 ftc-cases: Crawl-delay: 5 enforcement + ftc := byID["ftc-cases"] + if !ftc.StrictRobots || ftc.MinIntervalMs != 5000 || ftc.MaxConcurrent != 1 { + t.Fatalf("ftc-cases.yaml politeness mismatch: strict_robots=%v min_interval_ms=%d max_concurrent=%d", ftc.StrictRobots, ftc.MinIntervalMs, ftc.MaxConcurrent) + } + + // #280 osha-establishment: strict_robots + min_interval_ms: 1500 + osha := byID["osha-establishment"] + if !osha.StrictRobots || osha.MinIntervalMs != 1500 { + t.Fatalf("osha-establishment.yaml politeness mismatch: strict_robots=%v min_interval_ms=%d", osha.StrictRobots, osha.MinIntervalMs) + } + + // #286 ferc-nrc-dockets: strict_robots: true + if !byID["ferc-nrc-dockets"].StrictRobots { + t.Fatalf("ferc-nrc-dockets.yaml must set strict_robots: true") + } + + // #284 fcc-ecfs: must NOT claim apps.fcc.gov; keyed route on publicapi.fcc.gov/ecfs/ + ecfs := byID["fcc-ecfs"] + if ecfs.AuthMode != "key" { + t.Fatalf("fcc-ecfs.yaml auth_mode=%q want key", ecfs.AuthMode) + } + for _, d := range ecfs.Domains { + if d == "apps.fcc.gov" { + t.Fatalf("fcc-ecfs.yaml must NOT claim apps.fcc.gov") + } + } + if tm, ok := wave3K1ResolveManifest(t, ecfs, "https://publicapi.fcc.gov/ecfs/filings?limit=2"); !ok || tm.AuthMode != "key" || tm.route.Extract.JSONMode != "fcc_ecfs_json" { + t.Fatalf("fcc-ecfs API route mismatch: ok=%v tm=%+v", ok, tm) + } + + // #285 fcc-uls: must NOT claim apps.fcc.gov or www.fcc.gov; min_interval_ms: 1000 + uls := byID["fcc-uls"] + if uls.MinIntervalMs != 1000 { + t.Fatalf("fcc-uls.yaml min_interval_ms=%d want 1000", uls.MinIntervalMs) + } + for _, d := range uls.Domains { + if d == "apps.fcc.gov" || d == "www.fcc.gov" { + t.Fatalf("fcc-uls.yaml must NOT claim %q", d) + } + } + for _, u := range []string{ + "https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2", + "https://opendata.fcc.gov/api/catalog/v1?q=ULS&limit=3", + "https://opendata.fcc.gov/api/views/dpvg-tvcx.json", + "https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json", + } { + if tm, ok := wave3K1ResolveManifest(t, uls, u); !ok || tm.route.Extract.JSONMode != "fcc_uls_json" { + t.Fatalf("fcc-uls route mismatch for %s: ok=%v tm=%+v", u, ok, tm) + } + } + + // #279 dol-enforcement: keyed route on apiprod.dol.gov/v4/ + dol := byID["dol-enforcement"] + if dol.AuthMode != "key" { + t.Fatalf("dol-enforcement.yaml auth_mode=%q want key", dol.AuthMode) + } + if tm, ok := wave3K1ResolveManifest(t, dol, "https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2"); !ok || tm.AuthMode != "key" || tm.route.Extract.JSONMode != "dol_enforcement_json" { + t.Fatalf("dol-enforcement API route mismatch: ok=%v tm=%+v", ok, tm) + } + + // #287 financial-regulators-enforcement: OCC RSS XML route + fin := byID["financial-regulators-enforcement"] + tmRSS, okRSS := wave3K1ResolveManifest(t, fin, "https://www.occ.gov/rss/occ_news.xml") + if !okRSS || tmRSS.route.Extract.XML == nil || tmRSS.route.Extract.XML.Mode != "items_table" { + t.Fatalf("financial-regulators-enforcement OCC RSS route mismatch: ok=%v tm=%+v", okRSS, tmRSS) + } + occRSS := `OCC NewsAgencies Announce ThresholdAnnual appraisal exemption threshold update.25 Nov 2026 15:00:00 -0500https://www.occ.gov/news-issuances/news-releases/2026/nr-ia-2026-105.html` + rssDoc, okDoc := formatXMLTwinGo(occRSS, tmRSS.route.Extract.XML, map[string]string{"host": "www.occ.gov"}) + if !okDoc || !strings.Contains(rssDoc.Title, "OCC News") || !strings.Contains(rssDoc.Markdown, "Agencies Announce Threshold") { + t.Fatalf("OCC RSS XML format failed: ok=%v doc=%+v", okDoc, rssDoc) + } +} + +func TestWave3RegulatorsHTMLExtractorsAndGuardrails(t *testing.T) { + modes := []string{ + "dol_enforcement_html", + "osha_establishment_html", + "nlrb_cases_html", + "eeoc_litigation_html", + "ftc_cases_html", + "fcc_ecfs_html", + "fcc_uls_html", + "ferc_nrc_dockets_html", + "financial_regulators_html", + "oversight_gov_html", + } + for _, m := range modes { + if !IsWave3RegulatorsHTMLMode(m) { + t.Fatalf("IsWave3RegulatorsHTMLMode(%q) = false", m) + } + if getExternalHTMLModeLazy(m) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", m) + } + } + + // #279 DOL HTML positive & empty data.dol.gov React shell rejection + dolHTML := `Wage and Hour Division Data | U.S. Department of Labor

Wage and Hour Division Enforcement Data

Explore FLSA back wages, civil money penalties, and enforcement case records published by the U.S. Department of Labor.

WHD Enforcement API
` + rawDOL, okDOL := RunWave3RegulatorsHTMLMode("dol_enforcement_html", dolHTML, "https://www.dol.gov/agencies/whd/data") + if !okDOL || !strings.Contains(rawDOL, "Wage and Hour Division") { + t.Fatalf("dol_enforcement_html failed: ok=%v raw=%s", okDOL, rawDOL) + } + if _, okEmpty := RunWave3RegulatorsHTMLMode("dol_enforcement_html", `
`, "https://data.dol.gov/"); okEmpty { + t.Fatalf("dol_enforcement_html must reject empty data.dol.gov React shell") + } + + // #280 OSHA HTML positive & CloudFront 403 rejection + oshaHTML := `Establishment Search Results | OSHA

Establishment Search Results

Inspection history for industrial manufacturing establishments in Region 5.

ActivityOpenedEstablishment
17452102026-04-12Midwest Metalworks Inc.
` + rawOSHA, okOSHA := RunWave3RegulatorsHTMLMode("osha_establishment_html", oshaHTML, "https://www.osha.gov/pls/imis/establishment.html") + if !okOSHA || !strings.Contains(rawOSHA, "Midwest Metalworks Inc.") { + t.Fatalf("osha_establishment_html failed: ok=%v raw=%s", okOSHA, rawOSHA) + } + if _, okCF := RunWave3RegulatorsHTMLMode("osha_establishment_html", `ERROR: The request could not be satisfied

403 ERROR

Generated by cloudfront (CloudFront).

`, "https://www.osha.gov/pls/imis/establishment.html"); okCF { + t.Fatalf("osha_establishment_html must reject CloudFront 403 block") + } + + // #281 NLRB HTML (including >200KB header padding before
) & generic/not-found rejection + pad := strings.Repeat("", 20000) + nlrbHTML := `Trader Joe's East Inc. | National Labor Relations Board` + pad + `

Trader Joe's East Inc.

Case Number: 13-CA-394913

Date Filed: 09/15/2026

Status: Open

Region Assigned: Region 13, Chicago, Illinois

DateDocument
2026-09-15Charge Filed
` + rawNLRB, okNLRB := RunWave3RegulatorsHTMLMode("nlrb_cases_html", nlrbHTML, "https://www.nlrb.gov/case/13-CA-394913") + if !okNLRB || !strings.Contains(rawNLRB, "13-CA-394913") || !strings.Contains(rawNLRB, "Region 13, Chicago, Illinois") { + t.Fatalf("nlrb_cases_html failed on padded Drupal page: ok=%v raw=%s", okNLRB, rawNLRB) + } + if _, okGen := RunWave3RegulatorsHTMLMode("nlrb_cases_html", `Cases | National Labor Relations Board

Cases

Search NLRB case filings.

`, "https://www.nlrb.gov/cases-decisions/cases"); okGen { + t.Fatalf("nlrb_cases_html must reject generic /cases-decisions/cases shell without docket rows or case number") + } + + // #282 EEOC HTML positive & negative + eeocHTML := `Boss Man Tacos to Pay $42,000 | EEOC
Press Release 11-25-2026

Boss Man Tacos to Pay $42,000 in EEOC Sexual Harassment Suit

The U.S. Equal Employment Opportunity Commission announced a $42,000 federal consent decree resolving Title VII retaliation claims.

` + rawEEOC, okEEOC := RunWave3RegulatorsHTMLMode("eeoc_litigation_html", eeocHTML, "https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit") + if !okEEOC || !strings.Contains(rawEEOC, "$42,000") || !strings.Contains(rawEEOC, "11-25-2026") { + t.Fatalf("eeoc_litigation_html failed: ok=%v raw=%s", okEEOC, rawEEOC) + } + + // #283 FTC HTML positive & negative + ftcHTML := `Banned Debt Collectors | Federal Trade Commission

Legal Library: Banned Debt Collectors

Matter Number: 192 3088

The Federal Trade Commission maintains a list of individuals and businesses banned from debt collection.

Phantom Recovery LLC
` + rawFTC, okFTC := RunWave3RegulatorsHTMLMode("ftc_cases_html", ftcHTML, "https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors") + if !okFTC || !strings.Contains(rawFTC, "192 3088") { + t.Fatalf("ftc_cases_html failed: ok=%v raw=%s", okFTC, rawFTC) + } + + // #284 & #285 FCC HTML positive & Akamai 403 rejection + if _, okAkamai := RunWave3RegulatorsHTMLMode("fcc_ecfs_html", `Access Denied

Access Denied

errors.edgesuite.net

`, "https://www.fcc.gov/ecfs/search/search-filings"); okAkamai { + t.Fatalf("fcc_ecfs_html must reject Akamai 403") + } + ulsHTML := `ULS License - WQVF475

ULS License WQVF475 - Electronic Innovations Inc.

Universal Licensing System active license details.

Call SignFRNStatus
WQVF4750024248098Active
` + rawULS, okULS := RunWave3RegulatorsHTMLMode("fcc_uls_html", ulsHTML, "https://wireless2.fcc.gov/UlsApp/UlsSearch/license.jsp?licKey=12345") + if !okULS || !strings.Contains(rawULS, "WQVF475") { + t.Fatalf("fcc_uls_html failed: ok=%v raw=%s", okULS, rawULS) + } + + // #286 FERC/NRC HTML positive & Cloudflare / Angular shell rejection + nrcHTML := `ADAMS Public Documents | U.S. NRC

ADAMS Public Documents

Publicly available NRC regulatory records including ML26101A014.

AccessionTitle
ML26101A014Inspection Report
` + rawNRC, okNRC := RunWave3RegulatorsHTMLMode("ferc_nrc_dockets_html", nrcHTML, "https://www.nrc.gov/documents-reports/adams-public-documents") + if !okNRC || !strings.Contains(rawNRC, "ML26101A014") { + t.Fatalf("ferc_nrc_dockets_html failed: ok=%v raw=%s", okNRC, rawNRC) + } + if _, okCFChl := RunWave3RegulatorsHTMLMode("ferc_nrc_dockets_html", `Just a moment...`, "https://elibrary.ferc.gov/eLibrary/search"); okCFChl { + t.Fatalf("ferc_nrc_dockets_html must reject Cloudflare challenge") + } + if _, okAng := RunWave3RegulatorsHTMLMode("ferc_nrc_dockets_html", `NRC ADAMS`, "https://adams-search.nrc.gov/"); okAng { + t.Fatalf("ferc_nrc_dockets_html must reject unhydrated ") + } + + // #287 CFTC / OCC / FinCEN HTML + OCC 404 marker rejection + occHTML := `Third-Party Relationships | OCC

OCC Bulletin 2023-17 | June 6, 2023

Third-Party Relationships: Interagency Guidance on Risk Management

Summary

The Office of the Comptroller of the Currency issued interagency third-party risk management guidance for national banks and federal savings associations.

` + rawOCC, okOCC := RunWave3RegulatorsHTMLMode("financial_regulators_html", occHTML, "https://www.occ.gov/news-issuances/bulletins/2023/bulletin-2023-17.html") + if !okOCC || !strings.Contains(rawOCC, "2023-17") || !strings.Contains(rawOCC, "Office of the Comptroller of the Currency") { + t.Fatalf("financial_regulators_html OCC failed: ok=%v raw=%s", okOCC, rawOCC) + } + if _, okOCC404 := RunWave3RegulatorsHTMLMode("financial_regulators_html", `OCC

Missing

Not available.

`, "https://www.occ.gov/news-issuances/missing.html"); okOCC404 { + t.Fatalf("financial_regulators_html must reject OCC rx-contentitemname=404") + } + + // #288 Oversight.gov positive & Azure App GW 406 rejection + ovHTML := `Reports | Oversight.gov

Inspector General Reports

Federal Offices of Inspector General audit and evaluation reports.

TitleOIG
Cybersecurity AuditDOJ OIG
` + rawOV, okOV := RunWave3RegulatorsHTMLMode("oversight_gov_html", ovHTML, "https://www.oversight.gov/reports") + if !okOV || !strings.Contains(rawOV, "DOJ OIG") { + t.Fatalf("oversight_gov_html failed: ok=%v raw=%s", okOV, rawOV) + } + if _, ok406 := RunWave3RegulatorsHTMLMode("oversight_gov_html", `406 Not Acceptable

Bad request. Reference: abc123

`, "https://www.oversight.gov/reports"); ok406 { + t.Fatalf("oversight_gov_html must reject Azure App GW 406") + } +} + +func TestWave3RegulatorsJSONFormattersAndFixtures(t *testing.T) { + for _, m := range []string{"dol_enforcement_json", "fcc_ecfs_json", "fcc_uls_json"} { + if !IsWave3RegulatorsJSONMode(m) { + t.Fatalf("IsWave3RegulatorsJSONMode(%q) = false", m) + } + } + + // 1. DOL OSHA inspection JSON + missing token rejection + oshaJSON := `{"data":[{"activity_nr":"1745210","estab_name":"Midwest Metalworks","site_city":"Cleveland","site_state":"OH","open_date":"2026-04-12","total_current_penalty":16131,"nr_instances":2}]}` + rawDOL, okDOL := FormatWave3RegulatorsJSONMode("dol_enforcement_json", []byte(oshaJSON), nil, "https://apiprod.dol.gov/v4/get/OSHA/inspection/json?limit=2") + if !okDOL || !strings.Contains(rawDOL, "1745210") || !strings.Contains(rawDOL, "16131.00") { + t.Fatalf("dol_enforcement_json OSHA failed: ok=%v raw=%s", okDOL, rawDOL) + } + if _, okErr := FormatWave3RegulatorsJSONMode("dol_enforcement_json", []byte(`{"message":"Missing Authentication Token"}`), nil, "https://apiprod.dol.gov/v4/get/OSHA/inspection/json"); okErr { + t.Fatalf("dol_enforcement_json must reject Missing Authentication Token") + } + + // 2. FCC ULS legacy data.fcc.gov + Socrata catalog v1 + Errors.Err rejection + legacyULS := `{"status":"OK","Licenses":{"totalRows":"1","License":[{"callsign":"WPTJ776","licName":"VERIZON WIRELESS","frn":"0003290673","serviceDesc":"AW - AWS","statusDesc":"Active","expiredDate":"04/15/2031","licDetailURL":"https://wireless2.fcc.gov/UlsApp/UlsSearch/license.jsp?licKey=123"}]}}` + rawLeg, okLeg := FormatWave3RegulatorsJSONMode("fcc_uls_json", []byte(legacyULS), nil, "https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json") + if !okLeg || !strings.Contains(rawLeg, "WPTJ776") || !strings.Contains(rawLeg, "VERIZON WIRELESS") { + t.Fatalf("fcc_uls_json legacy format failed: ok=%v raw=%s", okLeg, rawLeg) + } + catULS := `{"resultSetSize":1,"results":[{"resource":{"id":"dpvg-tvcx","name":"ULS Microwave Locations","description":"FCC ULS microwave dataset","updatedAt":"2026-01-15T00:00:00.000Z"},"link":"https://opendata.fcc.gov/d/dpvg-tvcx"}]}` + rawCat, okCat := FormatWave3RegulatorsJSONMode("fcc_uls_json", []byte(catULS), nil, "https://opendata.fcc.gov/api/catalog/v1?q=ULS") + if !okCat || !strings.Contains(rawCat, "dpvg-tvcx") || !strings.Contains(rawCat, "ULS Microwave Locations") { + t.Fatalf("fcc_uls_json catalog format failed: ok=%v raw=%s", okCat, rawCat) + } + if _, okErrULS := FormatWave3RegulatorsJSONMode("fcc_uls_json", []byte(`{"status":"Err","Errors":{"Err":{"code":"100","msg":"No records"}}}`), nil, "https://data.fcc.gov/api/license-view/basicSearch/getLicenses"); okErrULS { + t.Fatalf("fcc_uls_json must reject Errors.Err") + } + + // 3. Validate all 10 JSON fixtures on disk + type fixtureNeg struct { + Name string `json:"name"` + Status int `json:"status"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } + type fixtureFile struct { + AdapterID string `json:"adapterId"` + Mode string `json:"mode"` + InputURL string `json:"inputUrl"` + ExpectedFetchURL string `json:"expectedFetchUrl"` + MockPayload string `json:"mockPayload"` + ExpectTitleIncludes string `json:"expectTitleIncludes"` + ExpectMarkdownIncludes []string `json:"expectMarkdownIncludes"` + NegativeCases []fixtureNeg `json:"negativeCases"` + } + + fixtures := []struct { + slug string + goMode string + isJSON bool + }{ + {"dol-enforcement", "dol_enforcement_json", true}, + {"osha-establishment", "osha_establishment_html", false}, + {"nlrb-cases", "nlrb_cases_html", false}, + {"eeoc-litigation", "eeoc_litigation_html", false}, + {"ftc-cases", "ftc_cases_html", false}, + {"fcc-ecfs", "fcc_ecfs_json", true}, + {"fcc-uls", "fcc_uls_json", true}, + {"ferc-nrc-dockets", "ferc_nrc_dockets_html", false}, + {"financial-regulators-enforcement", "financial_regulators_html", false}, + {"oversight-gov", "oversight_gov_html", false}, + } + + for _, tc := range fixtures { + raw, err := os.ReadFile(filepath.Join("..", "..", "hub", "test", "fixtures", "adapters", tc.slug+".json")) + if err != nil { + t.Fatalf("read fixture %s.json: %v", tc.slug, err) + } + var fx fixtureFile + if err := json.Unmarshal(raw, &fx); err != nil { + t.Fatalf("parse fixture %s.json: %v", tc.slug, err) + } + if fx.AdapterID != tc.slug { + t.Fatalf("%s.json adapterId=%q want %q", tc.slug, fx.AdapterID, tc.slug) + } + if len(fx.NegativeCases) < 4 { + t.Fatalf("%s.json has %d negativeCases; want >= 4", tc.slug, len(fx.NegativeCases)) + } + if tc.isJSON { + out, ok := FormatWave3RegulatorsJSONMode(tc.goMode, []byte(fx.MockPayload), nil, fx.InputURL) + if !ok { + t.Fatalf("%s.json golden JSON formatting failed", tc.slug) + } + doc := wave3K1DecodeDoc(t, out) + if fx.ExpectTitleIncludes != "" && !strings.Contains(doc.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s.json title %q missing %q", tc.slug, doc.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(doc.Markdown, needle) { + t.Fatalf("%s.json markdown missing %q", tc.slug, needle) + } + } + for _, nc := range fx.NegativeCases { + if _, okNeg := FormatWave3RegulatorsJSONMode(tc.goMode, []byte(nc.Payload), nil, fx.InputURL); okNeg { + t.Fatalf("%s.json negativeCase %q unexpectedly succeeded", tc.slug, nc.Name) + } + } + } else { + out, ok := RunWave3RegulatorsHTMLMode(tc.goMode, fx.MockPayload, fx.InputURL) + if !ok { + t.Fatalf("%s.json golden HTML extraction failed", tc.slug) + } + var res DeclarativePostFetchResult + if err := json.Unmarshal([]byte(out), &res); err != nil { + t.Fatalf("%s.json decode PostFetchResult: %v", tc.slug, err) + } + if fx.ExpectTitleIncludes != "" && !strings.Contains(res.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s.json title %q missing %q", tc.slug, res.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(res.Markdown, needle) { + t.Fatalf("%s.json markdown missing %q", tc.slug, needle) + } + } + for _, nc := range fx.NegativeCases { + targetURL := fx.InputURL + if nc.FinalURL != "" { + targetURL = nc.FinalURL + } + if _, okNeg := RunWave3RegulatorsHTMLMode(tc.goMode, nc.Payload, targetURL); okNeg { + t.Fatalf("%s.json negativeCase %q unexpectedly succeeded", tc.slug, nc.Name) + } + } + } + } + + // Regression tests for P2: F5 BIG-IP ASM (neutral ), DataDome var dd=, and 78 KB <div id="root"></div> shells + f5Shell := `<!doctype html><html><head><title>Notice

The requested URL was rejected. Please consult with your administrator.
Your support ID is: 12345678901234567890

` + ddShell := `Notice` + ddMinimalShell := `Notice

Please enable JS and disable any ad blocker.

` + largeReactRoot := `NLRB Case Search
` + attrFirstReactRoot := `NLRB Case Search
` + for _, tc := range []struct { + mode string + url string + html string + name string + }{ + {"ftc_cases_html", "https://www.ftc.gov/legal-library/browse/cases-proceedings/example-case", f5Shell, "ftc-f5-asm"}, + {"nlrb_cases_html", "https://www.nlrb.gov/case/01-CA-123456", f5Shell, "nlrb-f5-asm"}, + {"nlrb_cases_html", "https://www.nlrb.gov/case/01-CA-123456", ddShell, "nlrb-datadome"}, + {"nlrb_cases_html", "https://www.nlrb.gov/case/01-CA-123456", largeReactRoot, "nlrb-78kb-div-root"}, + {"nlrb_cases_html", "https://www.nlrb.gov/case/01-CA-123456", attrFirstReactRoot, "nlrb-78kb-attr-div-root"}, + {"bis_entity_list_html", "https://www.bis.gov/entity-list", ddMinimalShell, "bis-datadome-minimal"}, + {"bis_entity_list_html", "https://www.bis.gov/entity-list", attrFirstReactRoot, "bis-78kb-attr-div-root"}, + } { + if _, ok := RunWave3RegulatorsHTMLMode(tc.mode, tc.html, tc.url); ok { + t.Fatalf("%s must reject negative shell", tc.name) + } + } +} diff --git a/internal/extract/wave3_trade.go b/internal/extract/wave3_trade.go new file mode 100644 index 0000000..9562bf8 --- /dev/null +++ b/internal/extract/wave3_trade.go @@ -0,0 +1,2222 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3TradeMaxHTMLBytes = 2 * 1024 * 1024 + wave3TradeMaxJSONBytes = 4 * 1024 * 1024 + wave3TradeMaxTextBytes = 4 * 1024 * 1024 + wave3TradeMaxRecords = 25 + wave3TradeMaxOFACRecords = 25 +) + +var ( + wave3TradeRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\s+found|page\s+cannot\s+be\s+found|not\s+found|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|403\s+error|ruling\s+not\s+found)(?:\b|$)`) + wave3TradeRxMaintTitle = newLazyRegexp(`(?i)(?:scheduled\s+maintenance|temporarily\s+unavailable|service\s+unavailable|site\s+maintenance|under\s+maintenance|502\s+bad\s+gateway|503\s+service|down\s+for\s+maintenance)`) + wave3TradeRxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:401|403|404|406|410|429|500|502|503)\s+)?(?:internal\s+)?server\s+error|application\s+error|system\s+error|unexpected\s+error|error\s+page|(?:401|403|404|406|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:401|403|404|406|410|429|500|502|503)|error|invalid\s+key)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3TradeRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|menu|navigation|harmonized\s+tariff\s+schedule|customs\s+rulings\s+online\s+search\s+system\s*\(cross\)|usa\s+trade\s+online)$`) + wave3TradeRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3TradeRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3TradeRxHref = newLazyRegexp(`(?is)]*\bhref\s*=\s*["']([^"'#][^"']*)["'][^>]*>(.*?)`) + wave3TradeRxSlashDate = newLazyRegexp(`^(\d{1,2})/(\d{1,2})/(\d{4})$`) + wave3TradeRxNextData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NEXT_DATA__["'][^>]*>(.*?)`) + wave3TradeRxFDAField = newLazyRegexp(`(?i)(Import\s+Alert\s*#\s*:?|(?:Published\s+Date|Type|Import\s+Alert\s+Name|Reason\s+for\s+Alert)\s*:)\s*`) +) + +func init() { + for _, mode := range []string{ + "usitc_hts_html", + "cbp_cross_html", + "census_foreign_trade_html", + "ustr_301_html", + "trade_gov_csl_html", + "ofac_html", + "bis_entity_list_html", + "import_alerts_fda_aphis_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3TradeRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3TradeHTMLMode reports whether mode is one of the 8 Category J Trade, Tariffs & Sanctions HTML extractors (#271-#278). +func IsWave3TradeHTMLMode(mode string) bool { + switch mode { + case "usitc_hts_html", + "cbp_cross_html", + "census_foreign_trade_html", + "ustr_301_html", + "trade_gov_csl_html", + "ofac_html", + "bis_entity_list_html", + "import_alerts_fda_aphis_html": + return true + default: + return false + } +} + +// IsWave3TradeJSONMode reports whether mode is handled by Category J JSON formatters (#271, #272, #275). +func IsWave3TradeJSONMode(mode string) bool { + switch mode { + case "usitc_hts_json", + "cbp_cross_json", + "trade_gov_csl_json": + return true + default: + return false + } +} + +// IsWave3TradeTextMode reports whether mode is handled by Category J XML/text formatters (#274, #276). +func IsWave3TradeTextMode(mode string) bool { + switch mode { + case "ofac_sdn_xml", + "ustr_301_rss_xml": + return true + default: + return false + } +} + +func wave3TradeDefaultExtractorID(mode string) string { + switch mode { + case "usitc_hts_html", "usitc_hts_json": + return "usitc-hts" + case "cbp_cross_html", "cbp_cross_json": + return "cbp-cross-rulings" + case "census_foreign_trade_html": + return "census-foreign-trade" + case "ustr_301_html", "ustr_301_rss_xml": + return "ustr-301" + case "trade_gov_csl_html", "trade_gov_csl_json": + return "trade-gov-csl" + case "ofac_html", "ofac_sdn_xml": + return "ofac-sdn" + case "bis_entity_list_html": + return "bis-entity-list" + case "import_alerts_fda_aphis_html": + return "import-alerts-aphis-fda" + default: + return "" + } +} + +// Wave3TradeRunHTML executes a Category J HTML extractor and returns DeclarativePostFetchResult. +func Wave3TradeRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3TradeHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3TradeMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3TradeMaxHTMLBytes) + } + trimmedStart := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmedStart == "" || trimmedStart[0] == '{' || trimmedStart[0] == '[' { + return nil + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + probeLower := asciiLowerExtractString(probe) + urlLower := asciiLowerExtractString(baseURL) + + // Cheap byte prefilter BEFORE common negative-shell checks or DOM parsing. + if !wave3TradeMatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3TradeHasCommonNegativeShell(rawHTML, probeLower, baseURL, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3TradeDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "usitc_hts_html": + res = wave3TradeExtractUSITCHTSHTML(rawHTML, probeLower, baseURL, extractorID) + case "cbp_cross_html": + res = wave3TradeExtractCBPCrossHTML(rawHTML, probeLower, baseURL, extractorID) + case "census_foreign_trade_html": + res = wave3TradeExtractCensusForeignTradeHTML(rawHTML, baseURL, extractorID) + case "ustr_301_html": + res = wave3TradeExtractUSTR301HTML(rawHTML, baseURL, extractorID) + case "trade_gov_csl_html": + res = wave3TradeExtractTradeGovCSLHTML(rawHTML, baseURL, extractorID) + case "ofac_html": + res = wave3TradeExtractOFACHTML(rawHTML, baseURL, extractorID) + case "bis_entity_list_html": + res = wave3TradeExtractBISEntityListHTML(rawHTML, probeLower, baseURL, extractorID) + case "import_alerts_fda_aphis_html": + res = wave3TradeExtractImportAlertsHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3TradeFinalizePostFetch(res) +} + +// RunWave3TradeHTMLMode executes a Category J HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3TradeHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3TradeRunHTML(mode, rawHTML, baseURL, wave3TradeDefaultExtractorID(mode)) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return "", false + } + res = sanitizePostFetchResultDeclHTML(res) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return "", false + } + encoded, err := json.Marshal(res) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3TradeJSONDoc formats a Category J JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3TradeJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3TradeJSONMode(mode) || len(raw) == 0 || len(raw) > wave3TradeMaxJSONBytes { + return nil, false + } + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || (trimmed[0] != '{' && trimmed[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(trimmed) + if !ok || parsed == nil { + return nil, false + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "usitc_hts_json": + doc, handled = wave3TradeFormatUSITCHTSJSON(parsed, origURL) + case "cbp_cross_json": + doc, handled = wave3TradeFormatCBPCrossJSON(parsed, origURL) + case "trade_gov_csl_json": + doc, handled = wave3TradeFormatTradeGovCSLJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3TradeFinalizeDoc(doc), true +} + +// FormatWave3TradeJSONMode formats a Category J JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3TradeJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3TradeJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3TradeTextDoc formats a Category J XML/text twin payload (`ofac_sdn_xml`, `ustr_301_rss_xml`). +func FormatWave3TradeTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3TradeTextMode(mode) || len(rawBody) == 0 { + return nil, false + } + if len(rawBody) > wave3TradeMaxTextBytes { + rawBody = truncateUTF8SafeFullDocGo(rawBody, wave3TradeMaxTextBytes) + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "ofac_sdn_xml": + doc, handled = wave3TradeFormatOFACSDNXML(rawBody, origURL) + case "ustr_301_rss_xml": + doc, handled = wave3TradeFormatUSTR301RSS(rawBody, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3TradeFinalizeDoc(doc), true +} + +// FormatWave3TradeTextMode formats a Category J XML/text payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3TradeTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3TradeTextDoc(mode, rawBody, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// ── Prefilters & Shared Hygiene Helpers ────────────────────────────────────────────────────────── + +func wave3TradeMatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "usitc_hts_html": + return strings.Contains(urlLower, "hts.usitc.gov") || + strings.Contains(probeLower, "hts.usitc.gov") || + strings.Contains(probeLower, "harmonized tariff schedule") || + strings.Contains(probeLower, "hts-root") + case "cbp_cross_html": + return strings.Contains(urlLower, "rulings.cbp.gov") || + strings.Contains(probeLower, "rulings.cbp.gov") || + strings.Contains(probeLower, "customs rulings online search system") || + strings.Contains(probeLower, "rulingnumber") + case "census_foreign_trade_html": + return strings.Contains(urlLower, "usatradeonline.census.gov") || + strings.Contains(urlLower, "usatrade.census.gov") || + strings.Contains(probeLower, "usa trade online") || + strings.Contains(probeLower, "usatradeonline") + case "ustr_301_html": + return strings.Contains(urlLower, "ustr.gov") || + strings.Contains(probeLower, "ustr.gov") || + strings.Contains(probeLower, "united states trade representative") || + strings.Contains(probeLower, "section 301") + case "trade_gov_csl_html": + return strings.Contains(urlLower, "trade.gov") || + strings.Contains(probeLower, "trade.gov") || + strings.Contains(probeLower, "consolidated screening list") || + strings.Contains(probeLower, "international trade administration") + case "ofac_html": + return strings.Contains(urlLower, "ofac.treasury.gov") || + strings.Contains(probeLower, "ofac.treasury.gov") || + strings.Contains(probeLower, "office of foreign assets control") || + strings.Contains(probeLower, "sanctions-programs") + case "bis_entity_list_html": + return strings.Contains(urlLower, "bis.gov") || + strings.Contains(probeLower, "bis.gov") || + strings.Contains(probeLower, "bureau of industry and security") || + strings.Contains(probeLower, "export administration regulations") + case "import_alerts_fda_aphis_html": + return strings.Contains(urlLower, "accessdata.fda.gov") || + strings.Contains(urlLower, "aphis.usda.gov") || + strings.Contains(probeLower, "import alert") || + strings.Contains(probeLower, "cms_ia") || + strings.Contains(probeLower, "aphis.usda.gov") || + strings.Contains(probeLower, "animal and plant health inspection service") + default: + return false + } +} + +func wave3TradeIsNegativeURL(urlLower string) bool { + if urlLower == "" { + return false + } + if strings.Contains(urlLower, "/404") || + strings.Contains(urlLower, "/not-found") || + strings.Contains(urlLower, "/page-not-found") || + strings.Contains(urlLower, "/maintenance") || + strings.Contains(urlLower, "missing_key.html") || + strings.Contains(urlLower, "error=true") || + strings.Contains(urlLower, "error=1") { + return true + } + pathOnly := urlLower + if idx := strings.Index(pathOnly, "://"); idx >= 0 { + rest := pathOnly[idx+3:] + if slash := strings.IndexByte(rest, '/'); slash >= 0 { + pathOnly = rest[slash:] + } else { + pathOnly = "/" + } + } + if cut := strings.IndexAny(pathOnly, "?#"); cut >= 0 { + pathOnly = pathOnly[:cut] + } + return strings.HasSuffix(pathOnly, "/error") || + strings.Contains(pathOnly, "/error/") || + strings.HasSuffix(pathOnly, "/error.html") || + strings.HasSuffix(pathOnly, "/error.htm") || + strings.HasSuffix(pathOnly, "/error.aspx") || + strings.HasSuffix(pathOnly, "/login") || + strings.Contains(pathOnly, "/login/") +} + +func wave3TradeIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3TradeRxNotFoundTitle.MatchString(t) || + wave3TradeRxMaintTitle.MatchString(t) || + wave3TradeRxErrorTitle.MatchString(t) +} + +func wave3TradeIsGenericTitle(title string) bool { + return wave3TradeRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3TradeHasCommonNegativeShell(rawHTML, probeLower, baseURL, urlLower string) bool { + if wave3TradeIsNegativeURL(urlLower) { + return true + } + for _, marker := range []string{ + "cf-browser-verification", + "cf-turnstile", + "challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "just a moment...", + "errors.edgesuite.net", + "error from cloudfront", + "the request could not be satisfied", + "you don't have permission to access", + "the requested url was rejected", + "your support id is", + "var dd=", + "var dd =", + "dd={'rt'", + "geo.captcha-delivery.com", + "captcha-delivery.com", + "please enable js and disable any ad blocker", + "missing_key.html", + "security parameters are missing", + "missing subscription key", + "invalid subscription key", + "scheduled maintenance", + "down for maintenance", + "temporarily unavailable", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(rawHTML) + if wave3TradeIsNegativeTitle(title) { + return true + } + if canon := strings.ToLower(extractMetaContentDeclHTML(rawHTML, "og:url")); strings.HasSuffix(canon, "/404") || strings.Contains(canon, "/404?") { + return true + } + rawLower := asciiLowerExtractString(rawHTML) + hasRealBodyMarkers := hasJSONLDScriptToken(rawHTML) || + strings.Contains(rawLower, ", ) can ship with >60KB inline CSS; + // reject them regardless of byte length when no SSR heading, article, table, or JSON-LD exists. + if (strings.Contains(rawLower, "") || strings.Contains(rawLower, "")) && + !hasRealBodyMarkers { + return true + } + if wave3HasEmptyRootDivShell(rawHTML, probeLower, true) && + !hasRealBodyMarkers { + return true + } + return false +} + +func wave3TradeIsGenericJSONError(obj map[string]any) bool { + if obj == nil { + return true + } + if succ, ok := obj["success"].(bool); ok && !succ { + return true + } + for _, k := range []string{"error", "errors", "error_message", "errorMessage", "errorCode", "error_description", "fault"} { + if v, exists := obj[k]; exists && v != nil { + switch tv := v.(type) { + case string: + if strings.TrimSpace(tv) != "" { + return true + } + case []any: + if len(tv) > 0 { + return true + } + case map[string]any: + if len(tv) > 0 { + return true + } + case bool: + if tv { + return true + } + } + } + } + for _, k := range []string{"error_code", "statusCode", "status_code", "status"} { + if f, ok := wave3TradeFloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if st := strings.ToUpper(wave3TradePlain(obj["status"], 48)); st == "ERROR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "UNAUTHORIZED" { + return true + } + if msg := wave3TradePlain(obj["message"], 240); msg != "" && len(obj) <= 4 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "unauthorized") || + strings.Contains(lm, "not found") || + strings.Contains(lm, "invalid") || + strings.Contains(lm, "forbidden") || + strings.Contains(lm, "security parameters") || + strings.Contains(lm, "subscription key") || + strings.Contains(lm, "missing") { + return true + } + } + return false +} + +func wave3TradeIntPtr(n int) *int { return &n } +func wave3TradeBoolPtr(b bool) *bool { return &b } + +func wave3TradeFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3TradeMaxRecords { + if doc.Total == nil { + doc.Total = wave3TradeIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3TradeMaxRecords] + doc.Returned = wave3TradeIntPtr(len(doc.Records)) + doc.Truncated = wave3TradeBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3TradeFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3TradeMaxRecords { + if res.Total == nil { + res.Total = wave3TradeIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3TradeMaxRecords] + res.Returned = wave3TradeIntPtr(len(res.Records)) + res.Truncated = wave3TradeBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3TradeCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3TradeRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3TradeRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3TradeRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3TradeStringVal(v any) string { + switch tv := v.(type) { + case string: + return strings.TrimSpace(tv) + case json.Number: + return tv.String() + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return "" + } + if tv == math.Trunc(tv) { + return strconv.FormatInt(int64(tv), 10) + } + return strconv.FormatFloat(tv, 'f', -1, 64) + case int: + return strconv.Itoa(tv) + case int64: + return strconv.FormatInt(tv, 10) + case bool: + if tv { + return "true" + } + return "false" + default: + return "" + } +} + +func wave3TradeFloatVal(v any) (float64, bool) { + switch tv := v.(type) { + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return 0, false + } + return tv, true + case int: + return float64(tv), true + case int64: + return float64(tv), true + case json.Number: + f, err := tv.Float64() + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + case string: + s := strings.TrimSpace(strings.ReplaceAll(tv, ",", "")) + if s == "" { + return 0, false + } + f, err := strconv.ParseFloat(s, 64) + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + default: + return 0, false + } +} + +func wave3TradePlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3TradeStringVal(v), maxLen) +} + +func wave3TradeFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3TradeNormalizeDate(raw string) string { + s := SanitizeSchemaPlainField(raw, 48) + if s == "" { + return "" + } + if m := wave3TradeRxSlashDate.FindStringSubmatch(s); len(m) == 4 { + mo, _ := strconv.Atoi(m[1]) + da, _ := strconv.Atoi(m[2]) + if mo >= 1 && mo <= 12 && da >= 1 && da <= 31 { + return fmt.Sprintf("%s-%02d-%02d", m[3], mo, da) + } + } + if len(s) >= 10 && s[4] == '-' && s[7] == '-' { + return s[:10] + } + return s +} + +func wave3TradeAddLink(links *[]string, seen map[string]bool, raw, base string) { + u := SanitizeSchemaHTTPSURL(raw, base) + if u != "" && !seen[u] { + seen[u] = true + *links = append(*links, u) + } +} + +func wave3TradeExtractTitle(doc *HTMLDoc, rawHTML string) string { + if doc != nil { + if h1 := SanitizeSchemaPlainField(wave3TradeCleanText(doc.Text("h1")), 240); h1 != "" && !wave3TradeIsGenericTitle(h1) { + return h1 + } + } + if og := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240); og != "" && !wave3TradeIsGenericTitle(og) { + return og + } + if t := SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240); t != "" && !wave3TradeIsGenericTitle(t) { + return t + } + return "" +} + +func wave3TradeExtractMetaDesc(rawHTML string) string { + return wave3TradeFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "dc.description"), 600), + ) +} + +func wave3TradeFragToMD(frag, baseURL string) string { + if strings.TrimSpace(frag) == "" { + return "" + } + doc := ExtractHTMLDocumentFull(""+frag+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: false, + IncludeImages: false, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return strings.TrimSpace(doc.Markdown) +} + +func wave3TradeExtractTableBlock(doc *HTMLDoc) (string, [][]string) { + if doc == nil { + return "", nil + } + rows := doc.TableRows("table") + if len(rows) < 2 { + return "", nil + } + headers := rows[0] + if len(headers) == 0 { + return "", nil + } + cols := len(headers) + if cols > 6 { + cols = 6 + } + cleanHdr := make([]string, cols) + for i := 0; i < cols; i++ { + cleanHdr[i] = SanitizeSchemaPlainField(headers[i], 80) + if cleanHdr[i] == "" { + cleanHdr[i] = fmt.Sprintf("Col %d", i+1) + } + } + var dataRows [][]string + for rIdx := 1; rIdx < len(rows) && len(dataRows) < wave3TradeMaxRecords; rIdx++ { + r := rows[rIdx] + if len(r) == 0 { + continue + } + dr := make([]string, cols) + nonEmpty := false + for c := 0; c < cols; c++ { + if c < len(r) { + dr[c] = SanitizeSchemaPlainField(r[c], 140) + if dr[c] != "" { + nonEmpty = true + } + } + } + if nonEmpty { + dataRows = append(dataRows, dr) + } + } + if len(dataRows) == 0 { + return "", nil + } + return formatDeclarativeGFMTable(cleanHdr, dataRows), dataRows +} + +func wave3TradeExtractParagraphs(doc *HTMLDoc, maxParas int) []string { + if doc == nil { + return nil + } + var paras []string + seen := make(map[string]bool) + for _, sel := range []string{"main p, article p, .field--name-body p", "p"} { + for _, p := range doc.Select(sel, maxParas*2) { + txt := SanitizeSchemaPlainField(wave3TradeCleanText(p.Text()), 800) + if len(txt) < 20 || seen[txt] { + continue + } + seen[txt] = true + paras = append(paras, txt) + if len(paras) >= maxParas { + return paras + } + } + if len(paras) > 0 { + break + } + } + return paras +} + +func wave3TradeExtractLinksFromHTML(rawHTML, baseURL string, maxLinks int) []struct{ Text, URL string } { + matches := wave3TradeRxHref.FindAllStringSubmatch(rawHTML, maxLinks*4) + out := make([]struct{ Text, URL string }, 0, maxLinks) + seen := make(map[string]bool) + for _, m := range matches { + if len(out) >= maxLinks { + break + } + if len(m) < 3 { + continue + } + href := stdhtml.UnescapeString(strings.TrimSpace(m[1])) + if href == "" || strings.HasPrefix(strings.ToLower(href), "javascript:") { + continue + } + u := SanitizeSchemaHTTPSURL(href, baseURL) + if u == "" || seen[u] { + continue + } + txt := SanitizeSchemaPlainField(wave3TradeCleanText(m[2]), 140) + if txt == "" { + continue + } + seen[u] = true + out = append(out, struct{ Text, URL string }{Text: txt, URL: u}) + } + return out +} + +// ── #271 USITC HTS JSON & HTML ────────────────────────────────────────────────────────────────── + +func wave3TradeFormatUSITCHTSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var items []any + switch pv := parsed.(type) { + case []any: + items = pv + case map[string]any: + if wave3TradeIsGenericJSONError(pv) { + return nil, false + } + for _, k := range []string{"results", "items", "hts", "data"} { + if arr, ok := pv[k].([]any); ok && len(arr) > 0 { + items = arr + break + } + } + } + if len(items) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + for _, it := range items { + if len(recs) >= wave3TradeMaxRecords { + break + } + m, ok := it.(map[string]any) + if !ok { + continue + } + htsno := wave3TradePlain(m["htsno"], 32) + desc := wave3TradePlain(m["description"], 240) + if htsno == "" && desc == "" { + continue + } + indent := wave3TradePlain(m["indent"], 8) + general := wave3TradePlain(m["general"], 80) + special := wave3TradePlain(m["special"], 140) + other := wave3TradePlain(m["other"], 80) + addDuties := wave3TradeFirstNonEmpty( + wave3TradePlain(m["additionalDuties"], 120), + wave3TradePlain(m["addiitionalDuties"], 120), + ) + + var units []string + if uArr, okU := m["units"].([]any); okU { + for _, uv := range uArr { + if us := wave3TradePlain(uv, 24); us != "" { + units = append(units, us) + } + } + } + + var footnoteStrs []string + if fnArr, okF := m["footnotes"].([]any); okF { + for _, fv := range fnArr { + fm, okFM := fv.(map[string]any) + if !okFM { + continue + } + val := wave3TradePlain(fm["value"], 160) + if val == "" { + continue + } + var cols []string + if cArr, okC := fm["columns"].([]any); okC { + for _, cv := range cArr { + if cs := wave3TradePlain(cv, 24); cs != "" { + cols = append(cols, cs) + } + } + } + if len(cols) > 0 { + footnoteStrs = append(footnoteStrs, strings.Join(cols, "/")+": "+val) + } else { + footnoteStrs = append(footnoteStrs, val) + } + if len(footnoteStrs) >= 4 { + break + } + } + } + footnotesJoined := strings.Join(footnoteStrs, "; ") + if addDuties != "" { + if footnotesJoined != "" { + footnotesJoined += "; Additional: " + addDuties + } else { + footnotesJoined = "Additional: " + addDuties + } + } + + rec := map[string]any{ + "source": "usitc-hts", + "htsno": htsno, + "description": desc, + } + if indent != "" { + rec["indent"] = indent + } + if len(units) > 0 { + rec["units"] = units + } + if general != "" { + rec["general"] = general + } + if special != "" { + rec["special"] = special + } + if other != "" { + rec["other"] = other + } + if footnotesJoined != "" { + rec["footnotes"] = footnotesJoined + } + if addDuties != "" { + rec["additionalDuties"] = addDuties + } + recs = append(recs, rec) + rows = append(rows, []string{ + wave3TradeFirstNonEmpty(htsno, "-"), + wave3TradeFirstNonEmpty(desc, "-"), + wave3TradeFirstNonEmpty(general, "-"), + wave3TradeFirstNonEmpty(special, "-"), + wave3TradeFirstNonEmpty(other, "-"), + wave3TradeFirstNonEmpty(footnotesJoined, "-"), + }) + } + if len(recs) == 0 { + return nil, false + } + + title := "USITC Harmonized Tariff Schedule" + if u, err := url.Parse(origURL); err == nil { + if kw := SanitizeSchemaPlainField(u.Query().Get("keyword"), 80); kw != "" { + title = fmt.Sprintf("USITC HTS Search: %s", kw) + } else if from := SanitizeSchemaPlainField(u.Query().Get("from"), 32); from != "" { + to := SanitizeSchemaPlainField(u.Query().Get("to"), 32) + if to != "" && to != from { + title = fmt.Sprintf("USITC HTS Range: %s to %s", from, to) + } else { + title = fmt.Sprintf("USITC HTS Heading: %s", from) + } + } + } + + blocks := []string{ + "# " + escapeDeclMarkdownBrackets(title), + fmt.Sprintf("- **Returned**: %d of %d tariff lines", len(recs), len(items)), + "## Tariff Lines\n\n" + formatDeclarativeGFMTable( + []string{"HTS No.", "Description", "General", "Special", "Other", "Footnotes / Sec. 301"}, + rows, + ), + } + truncated := len(items) > len(recs) + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Records: recs, + Total: wave3TradeIntPtr(len(items)), + Returned: wave3TradeIntPtr(len(recs)), + Truncated: wave3TradeBoolPtr(truncated), + } + if truncated { + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +func wave3TradeExtractUSITCHTSHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + tableMD, tableRows := wave3TradeExtractTableBlock(doc) + paras := wave3TradeExtractParagraphs(doc, 8) + if tableMD == "" && len(paras) == 0 { + return nil + } + title := wave3TradeFirstNonEmpty(wave3TradeExtractTitle(doc, rawHTML), "USITC Harmonized Tariff Schedule") + if wave3TradeIsNegativeTitle(title) { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if tableMD != "" { + blocks = append(blocks, "## Tariff Schedule\n\n"+tableMD) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + rec := map[string]any{ + "source": "usitc-hts", + "title": title, + "url": baseURL, + } + if len(tableRows) > 0 { + rec["rowCount"] = len(tableRows) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3TradeExtractMetaDesc(rawHTML), + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{rec}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +// ── #272 CBP CROSS Rulings JSON & HTML ─────────────────────────────────────────────────────────── + +func wave3TradeFormatCBPCrossJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + switch pv := parsed.(type) { + case map[string]any: + if wave3TradeIsGenericJSONError(pv) { + return nil, false + } + // 1. Search response: {"rulings": [...]} or {"results": [...]} or {"items": [...]} + for _, k := range []string{"rulings", "results", "items"} { + if arr, ok := pv[k].([]any); ok && len(arr) > 0 { + totalCount := len(arr) + for _, tk := range []string{"total", "totalCount", "totalHits", "count"} { + if tf, okT := wave3TradeFloatVal(pv[tk]); okT && int(tf) > totalCount { + totalCount = int(tf) + break + } + } + return wave3TradeFormatCBPCrossList(arr, totalCount, origURL) + } + } + // 2. Single ruling detail: {"rulingNumber": "...", "subject": "...", ...} + rulingNo := wave3TradeFirstNonEmpty( + wave3TradePlain(pv["rulingNumber"], 48), + wave3TradePlain(pv["ruling_number"], 48), + wave3TradePlain(pv["number"], 48), + ) + subject := wave3TradeFirstNonEmpty( + wave3TradePlain(pv["subject"], 300), + wave3TradePlain(pv["title"], 300), + ) + if rulingNo == "" && subject == "" { + return nil, false + } + rDate := wave3TradeNormalizeDate(wave3TradeFirstNonEmpty( + wave3TradeStringVal(pv["rulingDate"]), + wave3TradeStringVal(pv["date"]), + wave3TradeStringVal(pv["issuedDate"]), + )) + cat := wave3TradeFirstNonEmpty( + wave3TradePlain(pv["category"], 120), + wave3TradePlain(pv["collection"], 120), + ) + var tariffs []string + if tArr, okT := pv["tariffs"].([]any); okT { + for _, tv := range tArr { + if ts := wave3TradePlain(tv, 32); ts != "" { + tariffs = append(tariffs, ts) + } + } + } + fullText := wave3TradeFirstNonEmpty( + wave3TradePlain(pv["fullText"], 4000), + wave3TradePlain(pv["text"], 4000), + wave3TradePlain(pv["summary"], 2000), + ) + if fullText == "" && subject == "" { + return nil, false + } + title := rulingNo + if subject != "" && rulingNo != "" { + title = rulingNo + " — " + subject + } else if subject != "" { + title = subject + } + var bullets []string + if rulingNo != "" { + bullets = append(bullets, "- **Ruling Number**: `"+rulingNo+"`") + } + if rDate != "" { + bullets = append(bullets, "- **Ruling Date**: "+rDate) + } + if cat != "" { + bullets = append(bullets, "- **Category**: "+cat) + } + if len(tariffs) > 0 { + bullets = append(bullets, "- **Tariff Numbers**: "+strings.Join(tariffs, ", ")) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if fullText != "" { + blocks = append(blocks, "## Ruling Text\n\n"+escapeDeclMarkdownBlock(fullText)) + } + rec := map[string]any{ + "source": "cbp-cross-rulings", + "title": title, + "url": origURL, + } + if rulingNo != "" { + rec["rulingNumber"] = rulingNo + } + if rDate != "" { + rec["rulingDate"] = rDate + } + if len(tariffs) > 0 { + rec["tariffs"] = tariffs + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{origURL}, + Records: []map[string]any{rec}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + }, true + case []any: + return wave3TradeFormatCBPCrossList(pv, len(pv), origURL) + default: + return nil, false + } +} + +func wave3TradeFormatCBPCrossList(arr []any, totalCount int, origURL string) (*DeclarativeFormattedDoc, bool) { + if len(arr) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, it := range arr { + if len(recs) >= wave3TradeMaxRecords { + break + } + m, ok := it.(map[string]any) + if !ok { + continue + } + rNum := wave3TradeFirstNonEmpty( + wave3TradePlain(m["rulingNumber"], 48), + wave3TradePlain(m["ruling_number"], 48), + wave3TradePlain(m["number"], 48), + ) + subj := wave3TradeFirstNonEmpty( + wave3TradePlain(m["subject"], 240), + wave3TradePlain(m["title"], 240), + ) + if rNum == "" && subj == "" { + continue + } + rDate := wave3TradeNormalizeDate(wave3TradeFirstNonEmpty( + wave3TradeStringVal(m["rulingDate"]), + wave3TradeStringVal(m["date"]), + )) + var tariffs []string + if tArr, okT := m["tariffs"].([]any); okT { + for _, tv := range tArr { + if ts := wave3TradePlain(tv, 32); ts != "" { + tariffs = append(tariffs, ts) + } + if len(tariffs) >= 4 { + break + } + } + } + rURL := "" + if rNum != "" { + rURL = "https://rulings.cbp.gov/ruling/" + url.PathEscape(rNum) + if !seen[rURL] { + seen[rURL] = true + links = append(links, rURL) + } + } + rec := map[string]any{ + "source": "cbp-cross-rulings", + } + if rNum != "" { + rec["rulingNumber"] = rNum + } + if subj != "" { + rec["subject"] = subj + } + if rDate != "" { + rec["rulingDate"] = rDate + } + if len(tariffs) > 0 { + rec["tariffs"] = tariffs + } + if rURL != "" { + rec["url"] = rURL + } + recs = append(recs, rec) + rows = append(rows, []string{ + wave3TradeFirstNonEmpty(rNum, "-"), + wave3TradeFirstNonEmpty(rDate, "-"), + wave3TradeFirstNonEmpty(strings.Join(tariffs, ", "), "-"), + wave3TradeFirstNonEmpty(subj, "-"), + }) + } + if len(recs) == 0 { + return nil, false + } + title := "CBP CROSS Customs Rulings" + if u, err := url.Parse(origURL); err == nil { + if term := SanitizeSchemaPlainField(u.Query().Get("term"), 80); term != "" { + title = fmt.Sprintf("CBP CROSS Rulings: %s", term) + } + } + blocks := []string{ + "# " + escapeDeclMarkdownBrackets(title), + fmt.Sprintf("- **Returned**: %d of %d rulings", len(recs), totalCount), + "## Rulings\n\n" + formatDeclarativeGFMTable([]string{"Ruling", "Date", "Tariff", "Subject"}, rows), + } + truncated := totalCount > len(recs) + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3TradeIntPtr(totalCount), + Returned: wave3TradeIntPtr(len(recs)), + Truncated: wave3TradeBoolPtr(truncated), + } + if truncated { + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +func wave3TradeExtractCBPCrossHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + tableMD, _ := wave3TradeExtractTableBlock(doc) + paras := wave3TradeExtractParagraphs(doc, 8) + if tableMD == "" && len(paras) == 0 { + return nil + } + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if tableMD != "" { + blocks = append(blocks, tableMD) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3TradeExtractMetaDesc(rawHTML), + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{{ + "source": "cbp-cross-rulings", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +// ── #273 Census Foreign Trade (USA Trade Online) HTML ──────────────────────────────────────────── + +func wave3TradeExtractCensusForeignTradeHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + tableMD, _ := wave3TradeExtractTableBlock(doc) + paras := wave3TradeExtractParagraphs(doc, 8) + if desc == "" && tableMD == "" && len(paras) == 0 { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if tableMD != "" { + blocks = append(blocks, tableMD) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{{ + "source": "census-foreign-trade", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +// ── #274 USTR Section 301 HTML & RSS ───────────────────────────────────────────────────────────── + +func wave3TradeExtractUSTR301HTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" { + // USTR Drupal sometimes puts the page title in + if spanInner, ok := findElementInnerLinearDeclHTML(rawHTML, "span", func(attrStr string) bool { + idVal, okID := getAttrValueLinearDeclHTML(attrStr, "id") + return okID && strings.EqualFold(strings.TrimSpace(idVal), "pageTitle") + }, 0); ok { + title = SanitizeSchemaPlainField(wave3TradeCleanText(spanInner), 240) + } + } + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + tableMD, _ := wave3TradeExtractTableBlock(doc) + + bodyFrag := "" + if inner, ok := findElementInnerLinearDeclHTML(rawHTML, "div", func(attrStr string) bool { + cls, okC := getAttrValueLinearDeclHTML(attrStr, "class") + return okC && strings.Contains(strings.ToLower(cls), "field--name-body") + }, 0); ok { + bodyFrag = inner + } else if mainInner, okM := findElementInnerLinearDeclHTML(rawHTML, "main", nil, 0); okM { + bodyFrag = mainInner + } + bodyMD := wave3TradeFragToMD(bodyFrag, baseURL) + paras := wave3TradeExtractParagraphs(doc, 10) + if desc == "" && tableMD == "" && bodyMD == "" && len(paras) == 0 { + return nil + } + + var links []string + seenLinks := make(map[string]bool) + wave3TradeAddLink(&links, seenLinks, baseURL, baseURL) + for _, lk := range wave3TradeExtractLinksFromHTML(rawHTML, baseURL, 20) { + if strings.Contains(strings.ToLower(lk.URL), "section-301") || + strings.Contains(strings.ToLower(lk.URL), "tariff") || + strings.Contains(strings.ToLower(lk.URL), ".pdf") { + wave3TradeAddLink(&links, seenLinks, lk.URL, baseURL) + } + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if tableMD != "" { + blocks = append(blocks, "## Section 301 Actions\n\n"+tableMD) + } + if bodyMD != "" { + blocks = append(blocks, bodyMD) + } else if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "source": "ustr-301", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +func wave3TradeFormatUSTR301RSS(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + lower := asciiLowerExtractString(rawBody) + if strings.Contains(lower, " 0 { + head := rawBody[:idx] + if ct := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(head, "title")), 200); ct != "" { + channelTitle = ct + } + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, it := range items { + if len(recs) >= wave3TradeMaxRecords { + break + } + iTitle := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(it, "title")), 240) + iLink := SanitizeSchemaHTTPSURL(wave3TradeCleanText(extractXMLTagTextGo(it, "link")), origURL) + iDate := wave3TradeNormalizeDate(wave3TradeCleanText(wave3TradeFirstNonEmpty( + extractXMLTagTextGo(it, "pubDate"), + extractXMLTagTextGo(it, "updated"), + extractXMLTagTextGo(it, "dc:date"), + ))) + iDesc := SanitizeSchemaPlainField(wave3TradeCleanText(wave3TradeFirstNonEmpty( + extractXMLTagTextGo(it, "description"), + extractXMLTagTextGo(it, "summary"), + )), 240) + if iTitle == "" { + continue + } + rec := map[string]any{ + "source": "ustr-301", + "title": iTitle, + } + if iLink != "" { + rec["url"] = iLink + if !seen[iLink] { + seen[iLink] = true + links = append(links, iLink) + } + } + if iDate != "" { + rec["publishedAt"] = iDate + } + if iDesc != "" { + rec["description"] = iDesc + } + recs = append(recs, rec) + rows = append(rows, []string{ + wave3TradeFirstNonEmpty(iDate, "-"), + iTitle, + wave3TradeFirstNonEmpty(iDesc, "-"), + }) + } + if len(recs) == 0 { + return nil, false + } + + title := fmt.Sprintf("%s (%d items)", channelTitle, len(items)) + blocks := []string{ + "# " + escapeDeclMarkdownBrackets(title), + "## Feed Items\n\n" + formatDeclarativeGFMTable([]string{"Date", "Title", "Summary"}, rows), + } + truncated := len(items) > len(recs) + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3TradeIntPtr(len(items)), + Returned: wave3TradeIntPtr(len(recs)), + Truncated: wave3TradeBoolPtr(truncated), + } + if truncated { + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +// ── #275 Trade.gov Consolidated Screening List JSON & HTML ─────────────────────────────────────── + +func wave3TradeFormatTradeGovCSLJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3TradeIsGenericJSONError(obj) { + return nil, false + } + results, okRes := obj["results"].([]any) + if !okRes || len(results) == 0 { + return nil, false + } + totalCount := len(results) + if tf, okT := wave3TradeFloatVal(obj["total"]); okT && int(tf) > totalCount { + totalCount = int(tf) + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, it := range results { + if len(recs) >= wave3TradeMaxRecords { + break + } + m, okM := it.(map[string]any) + if !okM { + continue + } + name := wave3TradePlain(m["name"], 200) + src := wave3TradePlain(m["source"], 160) + entType := wave3TradePlain(m["type"], 64) + entNum := wave3TradeFirstNonEmpty( + wave3TradePlain(m["entity_number"], 64), + wave3TradePlain(m["id"], 64), + ) + if name == "" && entNum == "" { + continue + } + + var programs []string + if pArr, okP := m["programs"].([]any); okP { + for _, pv := range pArr { + if ps := wave3TradePlain(pv, 48); ps != "" { + programs = append(programs, ps) + } + if len(programs) >= 4 { + break + } + } + } + + var altNames []string + if aArr, okA := m["alt_names"].([]any); okA { + for _, av := range aArr { + if as := wave3TradePlain(av, 120); as != "" { + altNames = append(altNames, as) + } + if len(altNames) >= 4 { + break + } + } + } + + var countries []string + seenCountry := make(map[string]bool) + if addrArr, okAddr := m["addresses"].([]any); okAddr { + for _, adv := range addrArr { + am, okAM := adv.(map[string]any) + if !okAM { + continue + } + if c := wave3TradePlain(am["country"], 16); c != "" && !seenCountry[c] { + seenCountry[c] = true + countries = append(countries, c) + } + } + } + + srcURL := SanitizeSchemaHTTPSURL(m["source_information_url"], origURL) + if srcURL == "" { + srcURL = SanitizeSchemaHTTPSURL(m["source_list_url"], origURL) + } + if srcURL != "" && !seen[srcURL] { + seen[srcURL] = true + links = append(links, srcURL) + } + + rec := map[string]any{ + "source": "trade-gov-csl", + "name": name, + } + if src != "" { + rec["listSource"] = src + } + if entType != "" { + rec["type"] = entType + } + if entNum != "" { + rec["id"] = entNum + } + if len(programs) > 0 { + rec["programs"] = programs + } + if len(altNames) > 0 { + rec["altNames"] = altNames + } + if len(countries) > 0 { + rec["countries"] = countries + } + if srcURL != "" { + rec["url"] = srcURL + } + recs = append(recs, rec) + rows = append(rows, []string{ + wave3TradeFirstNonEmpty(name, "-"), + wave3TradeFirstNonEmpty(src, "-"), + wave3TradeFirstNonEmpty(entType, "-"), + wave3TradeFirstNonEmpty(strings.Join(programs, ", "), "-"), + wave3TradeFirstNonEmpty(strings.Join(countries, ", "), "-"), + wave3TradeFirstNonEmpty(entNum, "-"), + }) + } + if len(recs) == 0 { + return nil, false + } + + title := "Trade.gov Consolidated Screening List" + if u, err := url.Parse(origURL); err == nil { + if q := SanitizeSchemaPlainField(u.Query().Get("q"), 80); q != "" { + title = fmt.Sprintf("Trade.gov CSL Search: %s", q) + } else if nm := SanitizeSchemaPlainField(u.Query().Get("name"), 80); nm != "" { + title = fmt.Sprintf("Trade.gov CSL Search: %s", nm) + } + } + + blocks := []string{ + "# " + escapeDeclMarkdownBrackets(title), + fmt.Sprintf("- **Returned**: %d of %d matching entities", len(recs), totalCount), + "## Screening Matches\n\n" + formatDeclarativeGFMTable( + []string{"Name", "List Source", "Type", "Programs", "Country", "ID"}, + rows, + ), + } + truncated := totalCount > len(recs) + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3TradeIntPtr(totalCount), + Returned: wave3TradeIntPtr(len(recs)), + Truncated: wave3TradeBoolPtr(truncated), + } + if truncated { + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +func wave3TradeExtractTradeGovCSLHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + paras := wave3TradeExtractParagraphs(doc, 10) + tableMD, _ := wave3TradeExtractTableBlock(doc) + + var links []string + seenLinks := make(map[string]bool) + wave3TradeAddLink(&links, seenLinks, baseURL, baseURL) + var downloadBullets []string + for _, lk := range wave3TradeExtractLinksFromHTML(rawHTML, baseURL, 24) { + lu := strings.ToLower(lk.URL) + if strings.Contains(lu, "consolidated") || strings.Contains(lu, "csl") || + strings.HasSuffix(lu, ".csv") || strings.HasSuffix(lu, ".tsv") || strings.HasSuffix(lu, ".json") { + wave3TradeAddLink(&links, seenLinks, lk.URL, baseURL) + if len(downloadBullets) < 8 { + downloadBullets = append(downloadBullets, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(lk.Text), lk.URL)) + } + } + } + + if desc == "" && tableMD == "" && len(paras) == 0 && len(downloadBullets) == 0 { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if len(downloadBullets) > 0 { + blocks = append(blocks, "## Screening Resources\n\n"+strings.Join(downloadBullets, "\n")) + } + if tableMD != "" { + blocks = append(blocks, tableMD) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "source": "trade-gov-csl", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +// ── #276 OFAC SDN Bounded Streaming XML & HTML ─────────────────────────────────────────────────── + +func indexOFACSDNOpenGo(s string) int { + const needle = " limit { + return -1 + } + c2 := s[cand+2] + if c2 == 's' || c2 == 'S' { + if asciiLowerExtractByte(s[cand+3]) == 'd' && + asciiLowerExtractByte(s[cand+4]) == 'n' && + asciiLowerExtractByte(s[cand+5]) == 'e' && + asciiLowerExtractByte(s[cand+6]) == 'n' && + asciiLowerExtractByte(s[cand+7]) == 't' && + asciiLowerExtractByte(s[cand+8]) == 'r' && + asciiLowerExtractByte(s[cand+9]) == 'y' && + s[cand+10] == '>' { + return cand + } + } + pos = cand + 2 + } + return -1 +} + +func wave3TradeFormatOFACSDNXML(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + probe := rawBody + if len(probe) > 8192 { + probe = probe[:8192] + } + probeLower := asciiLowerExtractString(probe) + if strings.Contains(probeLower, " 0 { + declaredTotal = rc + } + } + } + + // Bounded linear scan of complete ... elements. + // Stops cleanly before any partial/truncated trailing at the Range boundary. + var recs []map[string]any + var rows [][]string + truncatedTail := false + for len(recs) < wave3TradeMaxOFACRecords && pos < len(rawBody) { + relOpen := indexOFACSDNOpenGo(rawBody[pos:]) + if relOpen < 0 { + break + } + openStart := pos + relOpen + afterName := openStart + len("= len(rawBody) { + truncatedTail = true + break + } + ch := rawBody[afterName] + if ch != '>' && ch != ' ' && ch != '\t' && ch != '\r' && ch != '\n' { + pos = afterName + continue + } + gtRel := strings.IndexByte(rawBody[afterName:], '>') + if gtRel < 0 { + truncatedTail = true + break + } + bodyStart := afterName + gtRel + 1 + closeRel := indexOFACSDNCloseGo(rawBody[bodyStart:]) + if closeRel < 0 { + // Truncated trailing entry at 2 MiB byte boundary — stop cleanly. + truncatedTail = true + break + } + entryXML := rawBody[bodyStart : bodyStart+closeRel] + pos = bodyStart + closeRel + len("") + + uid := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(entryXML, "uid")), 32) + firstName := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(entryXML, "firstName")), 120) + lastName := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(entryXML, "lastName")), 160) + fullName := strings.TrimSpace(strings.TrimSpace(firstName + " " + lastName)) + sdnType := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(entryXML, "sdnType")), 48) + if fullName == "" && uid == "" { + continue + } + + var programs []string + seenProg := make(map[string]bool) + if progList, _, okP := findLinearElementInnerGo(entryXML, "programlist", 0); okP { + for _, pInner := range findAllLinearElementInnersGo(progList, "program", 8) { + p := SanitizeSchemaPlainField(wave3TradeCleanText(pInner), 48) + if p != "" && !seenProg[p] { + seenProg[p] = true + programs = append(programs, p) + } + } + } + + var akas []string + if akaList, _, okA := findLinearElementInnerGo(entryXML, "akalist", 0); okA { + for _, aInner := range findAllLinearElementInnersGo(akaList, "aka", 4) { + af := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(aInner, "firstName")), 80) + al := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(aInner, "lastName")), 100) + aName := strings.TrimSpace(strings.TrimSpace(af + " " + al)) + if aName != "" { + akas = append(akas, aName) + } + } + } + + var countries []string + seenCountry := make(map[string]bool) + if addrList, _, okAddr := findLinearElementInnerGo(entryXML, "addresslist", 0); okAddr { + for _, addrInner := range findAllLinearElementInnersGo(addrList, "address", 4) { + country := SanitizeSchemaPlainField(wave3TradeCleanText(extractXMLTagTextGo(addrInner, "country")), 64) + if country != "" && !seenCountry[country] { + seenCountry[country] = true + countries = append(countries, country) + } + } + } + + rec := map[string]any{ + "source": "ofac-sdn", + "uid": uid, + "name": fullName, + } + if sdnType != "" { + rec["sdnType"] = sdnType + } + if len(programs) > 0 { + rec["programs"] = programs + } + if len(akas) > 0 { + rec["aliases"] = akas + } + if len(countries) > 0 { + rec["countries"] = countries + } + recs = append(recs, rec) + rows = append(rows, []string{ + wave3TradeFirstNonEmpty(uid, "-"), + wave3TradeFirstNonEmpty(fullName, "-"), + wave3TradeFirstNonEmpty(sdnType, "-"), + wave3TradeFirstNonEmpty(strings.Join(programs, ", "), "-"), + wave3TradeFirstNonEmpty(strings.Join(countries, ", "), "-"), + }) + } + + if len(recs) == 0 { + return nil, false + } + + totalCount := len(recs) + if declaredTotal > totalCount { + totalCount = declaredTotal + } else if pos < len(rawBody) && indexOFACSDNOpenGo(rawBody[pos:]) >= 0 { + totalCount = len(recs) + 1 + } + + title := "OFAC Specially Designated Nationals (SDN) List" + var bullets []string + if pubDate != "" { + bullets = append(bullets, "- **Published Date**: "+pubDate) + } + if declaredTotal > 0 { + bullets = append(bullets, fmt.Sprintf("- **Declared Record Count**: %d", declaredTotal)) + } + bullets = append(bullets, fmt.Sprintf("- **Returned Sample**: %d complete entries", len(recs))) + if truncatedTail { + bullets = append(bullets, "- **Bounded Scan**: Stopped cleanly before truncated trailing ``") + } + + blocks := []string{ + "# " + title, + strings.Join(bullets, "\n"), + "## SDN Entries\n\n" + formatDeclarativeGFMTable( + []string{"UID", "Name", "Type", "Programs", "Countries"}, + rows, + ), + } + truncated := totalCount > len(recs) || truncatedTail + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{origURL}, + Records: recs, + Total: wave3TradeIntPtr(totalCount), + Returned: wave3TradeIntPtr(len(recs)), + Truncated: wave3TradeBoolPtr(truncated), + } + if truncated { + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +func wave3TradeExtractOFACHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + tableMD, _ := wave3TradeExtractTableBlock(doc) + paras := wave3TradeExtractParagraphs(doc, 10) + + var links []string + seen := make(map[string]bool) + wave3TradeAddLink(&links, seen, baseURL, baseURL) + var actionBullets []string + for _, lk := range wave3TradeExtractLinksFromHTML(rawHTML, baseURL, 25) { + lu := strings.ToLower(lk.URL) + if strings.Contains(lu, "/recent-actions/") || strings.Contains(lu, "/sanctions-programs") { + wave3TradeAddLink(&links, seen, lk.URL, baseURL) + if len(actionBullets) < 12 { + actionBullets = append(actionBullets, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(lk.Text), lk.URL)) + } + } + } + + if desc == "" && tableMD == "" && len(paras) == 0 && len(actionBullets) == 0 { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if len(actionBullets) > 0 { + blocks = append(blocks, "## Sanctions Actions & Programs\n\n"+strings.Join(actionBullets, "\n")) + } + if tableMD != "" { + blocks = append(blocks, tableMD) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "source": "ofac-sdn", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +// ── #277 BIS Entity List / EAR HTML ────────────────────────────────────────────────────────────── + +func wave3TradeExtractBISEntityListHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + tableMD, _ := wave3TradeExtractTableBlock(doc) + + mainFrag := "" + if inner, ok := findElementInnerLinearDeclHTML(rawHTML, "main", nil, 0); ok { + mainFrag = inner + } else if inner, ok := findElementInnerLinearDeclHTML(rawHTML, "article", nil, 0); ok { + mainFrag = inner + } + mainMD := wave3TradeFragToMD(mainFrag, baseURL) + paras := wave3TradeExtractParagraphs(doc, 10) + + // Next.js __NEXT_DATA__ supplemental metadata if DOM paragraphs are light + nextSummary := "" + if m := wave3TradeRxNextData.FindStringSubmatch(rawHTML); len(m) >= 2 { + if parsed, ok := decodeJSONWithNumbers([]byte(strings.TrimSpace(m[1]))); ok { + if root := mapFieldMap(parsed, "props", "pageProps"); root != nil { + for _, k := range []string{"summary", "description", "body", "subtitle"} { + if v := wave3TradePlain(root[k], 600); v != "" { + nextSummary = v + break + } + } + } + } + } + + if desc == "" && tableMD == "" && mainMD == "" && len(paras) == 0 && nextSummary == "" { + return nil + } + + var links []string + seen := make(map[string]bool) + wave3TradeAddLink(&links, seen, baseURL, baseURL) + for _, lk := range wave3TradeExtractLinksFromHTML(rawHTML, baseURL, 24) { + lu := strings.ToLower(lk.URL) + if strings.Contains(lu, "/regulations/") || strings.Contains(lu, "744") || strings.Contains(lu, "csl-search") { + wave3TradeAddLink(&links, seen, lk.URL, baseURL) + } + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if nextSummary != "" && nextSummary != desc { + blocks = append(blocks, nextSummary) + } + if tableMD != "" { + blocks = append(blocks, tableMD) + } + if mainMD != "" { + blocks = append(blocks, mainMD) + } else if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "source": "bis-entity-list", + "title": title, + "url": baseURL, + }}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} + +func mapFieldMap(v any, keys ...string) map[string]any { + cur := v + for _, k := range keys { + m, ok := cur.(map[string]any) + if !ok { + return nil + } + cur = m[k] + } + m, _ := cur.(map[string]any) + return m +} + +// ── #278 FDA Import Alerts & USDA APHIS HTML ───────────────────────────────────────────────────── + +func wave3TradeExtractImportAlertsHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3TradeMaxHTMLBytes) + title := wave3TradeExtractTitle(doc, rawHTML) + if title == "" || wave3TradeIsNegativeTitle(title) { + return nil + } + desc := wave3TradeExtractMetaDesc(rawHTML) + tableMD, tableRows := wave3TradeExtractTableBlock(doc) + paras := wave3TradeExtractParagraphs(doc, 10) + + isFDA := strings.Contains(urlLower, "accessdata.fda.gov") || strings.Contains(probeLower, "cms_ia") || strings.Contains(probeLower, "import alert #") + var bullets []string + var pubDate string + var alertNum, alertType, alertName string + + if isFDA { + // Parse FDA structured labels ("Import Alert #", "Published Date:", "Type:", "Import Alert Name:", "Reason for Alert:") + fullText := wave3TradeCleanText(doc.Text("body")) + if fullText == "" { + fullText = wave3TradeCleanText(rawHTML) + } + locs := wave3TradeRxFDAField.FindAllStringSubmatchIndex(fullText, 10) + for i, loc := range locs { + if len(loc) < 4 { + continue + } + label := strings.TrimSpace(fullText[loc[2]:loc[3]]) + valStart := loc[1] + valEnd := len(fullText) + if i+1 < len(locs) { + valEnd = locs[i+1][0] + } + if valEnd-valStart > 500 { + valEnd = valStart + 500 + } + val := SanitizeSchemaPlainField(fullText[valStart:valEnd], 400) + if val == "" { + continue + } + lowLabel := strings.ToLower(label) + switch { + case strings.Contains(lowLabel, "import alert #"): + alertNum = val + bullets = append(bullets, "- **Import Alert #**: `"+val+"`") + case strings.Contains(lowLabel, "published date"): + pubDate = wave3TradeNormalizeDate(val) + bullets = append(bullets, "- **Published Date**: "+pubDate) + case lowLabel == "type": + alertType = val + bullets = append(bullets, "- **Type**: "+val) + case strings.Contains(lowLabel, "import alert name"): + alertName = val + bullets = append(bullets, "- **Import Alert Name**: "+val) + case strings.Contains(lowLabel, "reason for alert"): + bullets = append(bullets, "- **Reason for Alert**: "+val) + } + } + } else { + // APHIS Article JSON-LD metadata + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 12) { + if pubDate == "" { + pubDate = wave3TradeNormalizeDate(wave3TradePlain(ld["datePublished"], 48)) + } + if desc == "" { + desc = wave3TradePlain(ld["description"], 600) + } + } + if pubDate != "" { + bullets = append(bullets, "- **Published Date**: "+pubDate) + } + } + + var links []string + seen := make(map[string]bool) + wave3TradeAddLink(&links, seen, baseURL, baseURL) + var itemBullets []string + for _, lk := range wave3TradeExtractLinksFromHTML(rawHTML, baseURL, 25) { + lu := strings.ToLower(lk.URL) + if strings.Contains(lu, "importalert_") || strings.Contains(lu, "import") || strings.Contains(lu, "manual") { + wave3TradeAddLink(&links, seen, lk.URL, baseURL) + if len(itemBullets) < 12 && tableMD == "" { + itemBullets = append(itemBullets, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(lk.Text), lk.URL)) + } + } + } + + if desc == "" && tableMD == "" && len(paras) == 0 && len(bullets) == 0 && len(itemBullets) == 0 { + return nil + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if tableMD != "" { + blocks = append(blocks, tableMD) + } else if len(itemBullets) > 0 { + blocks = append(blocks, "## Import Resources\n\n"+strings.Join(itemBullets, "\n")) + } + if len(paras) > 0 { + blocks = append(blocks, strings.Join(paras, "\n\n")) + } + + rec := map[string]any{ + "source": "import-alerts-aphis-fda", + "title": title, + "url": baseURL, + } + if alertNum != "" { + rec["alertNumber"] = alertNum + } + if alertType != "" { + rec["alertType"] = alertType + } + if alertName != "" { + rec["alertName"] = alertName + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if len(tableRows) > 0 { + rec["rowCount"] = len(tableRows) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3TradeIntPtr(1), + Returned: wave3TradeIntPtr(1), + Truncated: wave3TradeBoolPtr(false), + } +} diff --git a/internal/extract/wave3_trade_test.go b/internal/extract/wave3_trade_test.go new file mode 100644 index 0000000..a5aae75 --- /dev/null +++ b/internal/extract/wave3_trade_test.go @@ -0,0 +1,403 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" + "time" +) + +func wave3TradeDecodeDoc(t *testing.T, raw string) *DeclarativeFormattedDoc { + t.Helper() + var doc DeclarativeFormattedDoc + if err := json.Unmarshal([]byte(raw), &doc); err != nil { + t.Fatalf("unmarshal DeclarativeFormattedDoc: %v\nraw=%s", err, raw) + } + return &doc +} + +func wave3TradeResolveManifest(t *testing.T, m *DeclarativeAdapterManifest, rawURL string) (*DeclarativeTwinMatch, bool) { + t.Helper() + u, err := url.Parse(rawURL) + if err != nil { + t.Fatalf("url.Parse(%q): %v", rawURL, err) + } + host := strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") + rawParts := splitNonEmptyEscapedSegments(u.EscapedPath()) + return resolveManifestTwinOnParsedURL(m, u, host, rawParts, DeclarativeResolveOptions{}) +} + +func TestWave3TradeManifestsAndDisjointDomains(t *testing.T) { + catJIDs := []string{ + "usitc-hts", + "cbp-cross-rulings", + "census-foreign-trade", + "ustr-301", + "trade-gov-csl", + "ofac-sdn", + "bis-entity-list", + "import-alerts-aphis-fda", + } + + byID := make(map[string]*DeclarativeAdapterManifest) + claimedDomains := make(map[string]string) + for _, id := range catJIDs { + raw, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", id, err) + } + m, err := ParseDeclarativeYAMLManifest(raw) + if err != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s.yaml): %v", id, err) + } + if m.ID != id { + t.Fatalf("%s.yaml has mismatched id=%q", id, m.ID) + } + if m.Category != "public-records" { + t.Fatalf("%s.yaml must use category public-records, got %q", id, m.Category) + } + if m.AuthMode == "detect-only" || m.DetectOnly != nil { + t.Fatalf("%s.yaml uses retired detect-only", id) + } + for _, d := range m.Domains { + ld := strings.ToLower(strings.TrimSpace(d)) + if prev, exists := claimedDomains[ld]; exists { + t.Fatalf("duplicate domain %q across %s and %s", ld, prev, id) + } + claimedDomains[ld] = id + } + for _, hr := range m.HTMLRoutes { + for _, b := range hr.Bullets { + if strings.ContainsAny(b.Label, "{}") { + t.Fatalf("%s.yaml bullet label contains {}: %q", id, b.Label) + } + } + } + byID[id] = m + } + + // Verify strict disjointness from existing baseline manifests + for _, existingID := range []string{"census", "federal-register", "ecfr", "openfda", "usda-nass-fdc", "treasury-fiscal-data"} { + raw, err := os.ReadFile(filepath.Join("manifests", existingID+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", existingID, err) + } + em, err := ParseDeclarativeYAMLManifest(raw) + if err != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s.yaml): %v", existingID, err) + } + for _, d := range em.Domains { + ld := strings.ToLower(strings.TrimSpace(d)) + if catOwner, overlap := claimedDomains[ld]; overlap { + t.Fatalf("Cat J %s overlaps %s domain %q", catOwner, existingID, ld) + } + } + } + + // #271 usitc-hts routes + hts := byID["usitc-hts"] + if tm, ok := wave3TradeResolveManifest(t, hts, "https://hts.usitc.gov/reststop/search?keyword=bicycle"); !ok || tm.route.Extract.JSONMode != "usitc_hts_json" { + t.Fatalf("usitc-hts search route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3TradeResolveManifest(t, hts, "https://hts.usitc.gov/reststop/exportList?from=8712.00&to=8712.00&format=JSON&styles=false"); !ok || tm.route.Extract.JSONMode != "usitc_hts_json" { + t.Fatalf("usitc-hts exportList route failed: ok=%v tm=%+v", ok, tm) + } + + // #272 cbp-cross-rulings routes + cbp := byID["cbp-cross-rulings"] + if tm, ok := wave3TradeResolveManifest(t, cbp, "https://rulings.cbp.gov/api/ruling/N328640"); !ok || tm.EffectiveMaxBytes() != 2097152 || tm.route.Extract.JSONMode != "cbp_cross_json" { + t.Fatalf("cbp-cross-rulings API route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3TradeResolveManifest(t, cbp, "https://rulings.cbp.gov/search?term=bicycle"); ok || tm != nil { + t.Fatalf("cbp-cross-rulings HTML search URL should fall through to htmlRoutes: %+v", tm) + } + + // #274 ustr-301 RSS route + ustr := byID["ustr-301"] + if tm, ok := wave3TradeResolveManifest(t, ustr, "https://ustr.gov/rss.xml"); !ok || tm.route.Extract.TextMode != "ustr_301_rss_xml" { + t.Fatalf("ustr-301 rss route failed: ok=%v tm=%+v", ok, tm) + } + + // #275 trade-gov-csl keyed API + HTML fallback + csl := byID["trade-gov-csl"] + if tm, ok := wave3TradeResolveManifest(t, csl, "https://data.trade.gov/consolidated_screening_list/v1/search?q=example"); !ok || tm.route.Twin.AuthMode != "key" || tm.route.Extract.JSONMode != "trade_gov_csl_json" { + t.Fatalf("trade-gov-csl API route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3TradeResolveManifest(t, csl, "https://www.trade.gov/consolidated-screening-list"); ok || tm != nil { + t.Fatalf("trade-gov-csl www.trade.gov URL must fall through to htmlRoutes: %+v", tm) + } + + // #276 ofac-sdn case-insensitive SDN.XML + Range header + 2 MiB maxBytes + ofac := byID["ofac-sdn"] + for _, sdnURL := range []string{ + "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + "https://sanctionslistservice.ofac.treas.gov/api/publicationpreview/exports/sdn.xml", + } { + tm, ok := wave3TradeResolveManifest(t, ofac, sdnURL) + if !ok || tm.EffectiveMaxBytes() != 2097152 || tm.route.Extract.TextMode != "ofac_sdn_xml" { + t.Fatalf("ofac-sdn route failed for %s: ok=%v tm=%+v", sdnURL, ok, tm) + } + if tm.route.Twin.Headers["Range"] != "bytes=0-2097151" { + t.Fatalf("ofac-sdn missing Range header: %+v", tm.route.Twin.Headers) + } + } +} + +func TestWave3TradeJSONAndXMLFormatters(t *testing.T) { + // 1. #271 usitc_hts_json + htsPayload := `[{"htsno":"8712.00.15.00","indent":"1","description":"Bicycles having both wheels not exceeding 63.5 cm in diameter","units":["No."],"general":"11%","special":"Free (A+,AU)","other":"30%","footnotes":[{"columns":["general"],"marker":"1","value":"See 9903.88.15."}],"additionalDuties":"See 9903.88.15"}]` + htsRaw, ok := FormatWave3TradeJSONMode("usitc_hts_json", []byte(htsPayload), nil, "https://hts.usitc.gov/reststop/search?keyword=bicycle") + if !ok { + t.Fatalf("usitc_hts_json failed") + } + htsDoc := wave3TradeDecodeDoc(t, htsRaw) + if len(htsDoc.Records) != 1 || !strings.Contains(htsDoc.Markdown, "8712.00.15.00") || !strings.Contains(htsDoc.Markdown, "9903.88.15") { + t.Fatalf("unexpected usitc_hts_json output: %+v", htsDoc) + } + if _, negOK := FormatWave3TradeJSONMode("usitc_hts_json", []byte(`[]`), nil, "https://hts.usitc.gov/reststop/search?keyword=none"); negOK { + t.Fatalf("usitc_hts_json must reject empty array") + } + + // 2. #272 cbp_cross_json (single ruling + search error rejection) + cbpPayload := `{"rulingNumber":"N328640","rulingDate":"2022-10-18","category":"Classification","tariffs":["8712.00.1500"],"subject":"Bicycle frame assemblies","fullText":"Classified under subheading 8712.00.1500."}` + cbpRaw, ok := FormatWave3TradeJSONMode("cbp_cross_json", []byte(cbpPayload), nil, "https://rulings.cbp.gov/api/ruling/N328640") + if !ok { + t.Fatalf("cbp_cross_json failed") + } + cbpDoc := wave3TradeDecodeDoc(t, cbpRaw) + if !strings.Contains(cbpDoc.Title, "N328640") || !strings.Contains(cbpDoc.Markdown, "8712.00.1500") { + t.Fatalf("unexpected cbp_cross_json output: %+v", cbpDoc) + } + if _, negOK := FormatWave3TradeJSONMode("cbp_cross_json", []byte(`{"message":"Security parameters are missing from this request context."}`), nil, "https://rulings.cbp.gov/api/search?term=bicycle"); negOK { + t.Fatalf("cbp_cross_json must reject 403 security parameters error") + } + + // 3. #275 trade_gov_csl_json + cslPayload := `{"total":2,"offset":0,"results":[{"id":"100","entity_number":"100","name":"EXAMPLE TECH LTD","type":"Entity","source":"Entity List (EL) - BIS","programs":["EAR"],"alt_names":["Example Tech"],"addresses":[{"country":"CN"}],"source_information_url":"https://www.bis.gov/regulations/ear/744"}]}` + cslRaw, ok := FormatWave3TradeJSONMode("trade_gov_csl_json", []byte(cslPayload), nil, "https://data.trade.gov/consolidated_screening_list/v1/search?q=example") + if !ok { + t.Fatalf("trade_gov_csl_json failed") + } + cslDoc := wave3TradeDecodeDoc(t, cslRaw) + if len(cslDoc.Records) != 1 || !strings.Contains(cslDoc.Markdown, "EXAMPLE TECH LTD") { + t.Fatalf("unexpected trade_gov_csl_json output: %+v", cslDoc) + } + if _, negOK := FormatWave3TradeJSONMode("trade_gov_csl_json", []byte(`{"statusCode":401,"message":"Access denied due to missing subscription key."}`), nil, "https://data.trade.gov/consolidated_screening_list/v1/search?q=example"); negOK { + t.Fatalf("trade_gov_csl_json must reject 401 missing subscription key") + } + + // 4. #276 ofac_sdn_xml bounded scan + truncated trailing entry handling + var xmlBuf strings.Builder + xmlBuf.WriteString(`11/23/202619629`) + for i := 1; i <= 30; i++ { + xmlBuf.WriteString(``) + xmlBuf.WriteString(strings.Repeat("1", 1)) + xmlBuf.WriteString(`ENTITY `) + xmlBuf.WriteString(strings.Repeat("X", 20)) + xmlBuf.WriteString(`EntityCUBA
Cuba
`) + } + // Plus a truncated entry at the end + xmlBuf.WriteString(`99999TRUNCATED_ENTRY`) + ofacRaw, ok := FormatWave3TradeTextMode("ofac_sdn_xml", xmlBuf.String(), nil, "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML") + if !ok { + t.Fatalf("ofac_sdn_xml failed") + } + ofacDoc := wave3TradeDecodeDoc(t, ofacRaw) + if len(ofacDoc.Records) != wave3TradeMaxOFACRecords { + t.Fatalf("expected %d OFAC records, got %d", wave3TradeMaxOFACRecords, len(ofacDoc.Records)) + } + if !strings.Contains(ofacDoc.Markdown, "2026-11-23") || !strings.Contains(ofacDoc.Markdown, "CUBA") || !strings.Contains(ofacDoc.Markdown, "Cuba") { + t.Fatalf("ofac_sdn_xml missing publish date/program/country: %s", ofacDoc.Markdown) + } + if ofacDoc.Total == nil || *ofacDoc.Total != 19629 || ofacDoc.Truncated == nil || !*ofacDoc.Truncated { + t.Fatalf("expected OFAC total=19629 and truncated=true, got total=%v trunc=%v", ofacDoc.Total, ofacDoc.Truncated) + } + if strings.Contains(ofacDoc.Markdown, "TRUNCATED_ENTRY") { + t.Fatalf("ofac_sdn_xml must not emit truncated trailing entry") + } + + // Specifically test 1 complete entry + 1 truncated trailing entry (below cap) + partialXML := `11/23/2026236AEROCARIBBEAN AIRLINESEntityCUBA173INCOMPLETE_TAIL` + partialRaw, ok := FormatWave3TradeTextMode("ofac_sdn_xml", partialXML, nil, "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML") + if !ok { + t.Fatalf("ofac_sdn_xml partial tail failed") + } + partialDoc := wave3TradeDecodeDoc(t, partialRaw) + if len(partialDoc.Records) != 1 || strings.Contains(partialDoc.Markdown, "INCOMPLETE_TAIL") { + t.Fatalf("expected exactly 1 complete record without INCOMPLETE_TAIL: %+v", partialDoc) + } + if _, negOK := FormatWave3TradeTextMode("ofac_sdn_xml", `11/23/20260`, nil, "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML"); negOK { + t.Fatalf("ofac_sdn_xml must reject empty sdnList") + } + + // 2 MiB OFAC XML with 30+ entries cut mid-entry + latency budget check + var twoMiB strings.Builder + twoMiB.Grow(2*1024*1024 + 512) + twoMiB.WriteString(`11/23/202619629`) + entryTemplate := `42TEST ENTITYEntitySDGT
United States
` + for twoMiB.Len()+len(entryTemplate) < 2*1024*1024 { + twoMiB.WriteString(entryTemplate) + } + twoMiBSrc := (twoMiB.String() + `99CUT` + strings.Repeat("A", 512))[:2*1024*1024] + tStart := time.Now() + twoMiBRaw, twoMiBOK := FormatWave3TradeTextMode("ofac_sdn_xml", twoMiBSrc, nil, "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML") + tElapsed := time.Since(tStart) + if !twoMiBOK { + t.Fatalf("ofac_sdn_xml 2 MiB failed") + } + if tElapsed > 25*time.Millisecond { + t.Fatalf("ofac_sdn_xml 2 MiB exceeded 25ms Go budget: %v", tElapsed) + } + twoMiBDoc := wave3TradeDecodeDoc(t, twoMiBRaw) + if len(twoMiBDoc.Records) != wave3TradeMaxOFACRecords { + t.Fatalf("expected %d records from 2 MiB OFAC XML, got %d", wave3TradeMaxOFACRecords, len(twoMiBDoc.Records)) + } + + // 5. #274 ustr_301_rss_xml + rss := `United States Trade RepresentativeSection 301 Exclusion Noticehttps://ustr.gov/about-us/policy-offices/press-office/press-releases/section-3012026-11-20<p>USTR announces Section 301 tariff exclusion updates.</p>` + rssRaw, ok := FormatWave3TradeTextMode("ustr_301_rss_xml", rss, nil, "https://ustr.gov/rss.xml") + if !ok || !strings.Contains(rssRaw, "Section 301 Exclusion Notice") || strings.Contains(rssRaw, "

") { + t.Fatalf("ustr_301_rss_xml failed: ok=%v raw=%s", ok, rssRaw) + } +} + +func TestWave3TradeHTMLExtractorsAndGuardrails(t *testing.T) { + modes := []string{ + "usitc_hts_html", + "cbp_cross_html", + "census_foreign_trade_html", + "ustr_301_html", + "trade_gov_csl_html", + "ofac_html", + "bis_entity_list_html", + "import_alerts_fda_aphis_html", + } + for _, m := range modes { + if getExternalHTMLModeLazy(m) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", m) + } + } + + // Test every fixture (positive + all negative cases) and verify latency < 25ms + slugs := []string{ + "usitc-hts", + "cbp-cross-rulings", + "census-foreign-trade", + "ustr-301", + "trade-gov-csl", + "ofac-sdn", + "bis-entity-list", + "import-alerts-aphis-fda", + } + type adapterFixture struct { + AdapterID string `json:"adapterId"` + Mode string `json:"mode"` + InputURL string `json:"inputUrl"` + ExpectedFetchURL string `json:"expectedFetchUrl"` + MockPayload string `json:"mockPayload"` + ExpectTitleIncludes string `json:"expectTitleIncludes"` + ExpectMarkdownIncludes []string `json:"expectMarkdownIncludes"` + NegativeCases []struct { + Name string `json:"name"` + Status int `json:"status"` + InputURL string `json:"inputUrl"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } `json:"negativeCases"` + } + + for _, slug := range slugs { + rawFX, err := os.ReadFile(filepath.Join("..", "..", "hub", "test", "fixtures", "adapters", slug+".json")) + if err != nil { + t.Fatalf("read fixture %s.json: %v", slug, err) + } + var fx adapterFixture + if err := json.Unmarshal(rawFX, &fx); err != nil { + t.Fatalf("unmarshal %s.json: %v", slug, err) + } + if len(fx.NegativeCases) < 4 { + t.Fatalf("%s.json must have >= 4 negativeCases, got %d", slug, len(fx.NegativeCases)) + } + if fx.Mode == "html" { + modeName := "" + for _, candidate := range modes { + if wave3TradeDefaultExtractorID(candidate) == slug { + modeName = candidate + break + } + } + start := time.Now() + out, ok := RunWave3TradeHTMLMode(modeName, fx.MockPayload, fx.InputURL) + elapsed := time.Since(start) + if !ok { + t.Fatalf("%s HTML golden failed", slug) + } + if elapsed > 75*time.Millisecond { + t.Fatalf("%s HTML extraction exceeded 75ms budget: %v", slug, elapsed) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(out, needle) { + t.Fatalf("%s output missing %q", slug, needle) + } + } + for _, nc := range fx.NegativeCases { + u := nc.FinalURL + if u == "" { + u = nc.InputURL + } + if u == "" { + u = fx.InputURL + } + if _, negOK := RunWave3TradeHTMLMode(modeName, nc.Payload, u); negOK { + t.Fatalf("%s negative case %q must be rejected", slug, nc.Name) + } + } + } + } + + // Large 78KB Angular Material CSR shell for CBP CROSS must be rejected quickly + largeAppRoot := "Customs Rulings Online Search System (CROSS)" + if _, ok := RunWave3TradeHTMLMode("cbp_cross_html", largeAppRoot, "https://rulings.cbp.gov/search?term=bicycle"); ok { + t.Fatalf("cbp_cross_html must reject 78KB unhydrated shell") + } + + // Non-matching unrelated HTML must be rejected by cheap prefilter in < 1ms + unrelated := "Example Blog

Hello World

Just a blog post.

" + for _, m := range modes { + if _, ok := RunWave3TradeHTMLMode(m, unrelated, "https://blog.example.org/post"); ok { + t.Fatalf("%s must not match unrelated host/content", m) + } + } +} + +func TestCensusIntlTradeEnrichment(t *testing.T) { + // 1. 2D intltrade matrix + intlMatrix := `[["CTY_CODE","CTY_NAME","I_COMMODITY","E_COMMODITY","GEN_VAL_MO","CON_VAL_MO","ALL_VAL_MO","time"],["5700","CHINA","871200","","12345678","12000000","12500000","2024-01"]]` + raw, ok := FormatWave2cEconJSONMode("census_json", []byte(intlMatrix), nil, "https://api.census.gov/data/timeseries/intltrade/imports/hs?get=CTY_CODE,CTY_NAME,I_COMMODITY,E_COMMODITY,GEN_VAL_MO,CON_VAL_MO,ALL_VAL_MO&time=2024-01") + if !ok { + t.Fatalf("census_json intltrade matrix failed") + } + doc := wave3TradeDecodeDoc(t, raw) + if !strings.Contains(doc.Title, "International Trade") || len(doc.Records) != 1 || doc.Records[0]["dataset"] != "intltrade" || doc.Records[0]["CTY_NAME"] != "CHINA" { + t.Fatalf("unexpected intltrade doc: %+v", doc) + } + if !strings.Contains(doc.Markdown, "ALL_VAL_MO") { + t.Fatalf("expected 7th intltrade column ALL_VAL_MO in table: %s", doc.Markdown) + } + + // 2. DCAT intltrade catalog JSON + dcat := `{"dataset":[{"title":"Time Series International Trade: Monthly U.S. Imports by HS Code","identifier":"https://api.census.gov/data/timeseries/intltrade/imports/hs","c_dataset":["timeseries","intltrade","imports","hs"],"c_variablesLink":"https://api.census.gov/data/timeseries/intltrade/imports/hs/variables.json","landingPage":"https://www.census.gov/foreign-trade/"}]}` + dRaw, dOK := FormatWave2cEconJSONMode("census_json", []byte(dcat), nil, "https://api.census.gov/data/timeseries/intltrade/imports/hs.json") + if !dOK { + t.Fatalf("census_json intltrade DCAT failed") + } + dDoc := wave3TradeDecodeDoc(t, dRaw) + if len(dDoc.Records) != 1 || dDoc.Records[0]["datasetPath"] != "timeseries/intltrade/imports/hs" { + t.Fatalf("expected datasetPath on intltrade DCAT record: %+v", dDoc) + } +}