From 95a60d91d6696abcba644decdb537015d66ecfbd Mon Sep 17 00:00:00 2001 From: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:23:47 -0600 Subject: [PATCH] feat(adapters): add Wave 3 Batch B4 research, security & dev infra (#301-#340) Implement Wave 3 / Round 2 Batch B4 (#301-#340, 40 adapters) across Categories L-N: - Category L (Research & Scholarly, #301-#314): semantic-scholar, unpaywall, core-ac, orcid, ror, dblp, biorxiv-medrxiv, nasa-ads, nih-reporter, nsf-awards, doe-osti, research-repo-pack, datacite, ssrn-nber - Category M (Security & Vulnerability Intelligence, #315-#326): cisa-kev, first-epss, mitre-attack, mitre-cwe-capec, cve-org, cisa-advisories-ics, vendor-csaf, security-txt, exploit-db, certificate-transparency, rdap, bgp-asn - Category N (Developer Infrastructure, #327-#340): bitbucket-cloud, sourceforge-launchpad, gerrit, bugzilla, jira-public, wordpress-org-plugins, vscode-open-vsx, browser-addons-amo-cws, artifact-hub, ansible-puppet-forge, apis-guru, endoflife-date, web-compat-data, bundlephobia-packagephobia Includes official keyed API specs in hub/src/api-keys.ts for core-ac (CORE_AC_API_KEY), nasa-ads (NASA_ADS_API_KEY), and semantic-scholar (SEMANTIC_SCHOLAR_API_KEY) preserving makeKeyHint and redactSecretsInBody, strict robots and host rate-pacing defaults in internal/extract/policy.go (dblp, biorxiv-medrxiv, research-repo-pack, ssrn-nber), unpaywall bot@edgefetch.dev query normalization, gerrit XSSI prefix stripping, zero detect-only stubs, zero Rule 7 cross-domain/wildcard twin additions, and 425 compiled manifests with Go lazy HTML/JSON/text extractors, golden + >=4 negative shell fixtures, and telemetry/registry parity. Inner gates verified: gofmt, go vet, staticcheck, ZERO_CRYPTO_DEPS, targeted Go extract/classify tests, adapter:check (425 manifests), psl:check, tsc --noEmit, adapter:test (425 YAML, 386 fixtures, 10233 fuzz cases, max 63.68ms < 75ms), wasm-memory-budget (10.50 MiB linear memory, 255.7 KiB initHeapAlloc), security-audit (38/38), and wave3-b4-research-security-dev (6/6). Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> --- hub/scripts/compile-manifests.mjs | 38 + hub/scripts/run-tests.mjs | 1 + hub/src/adapter-policy.ts | 2 + hub/src/extractors/declarative.ts | 89 +- hub/src/overflow.ts | 37 +- hub/src/scrape.ts | 71 +- hub/src/search-index.ts | 25 +- .../adapters/ansible-puppet-forge.json | 36 + hub/test/fixtures/adapters/apis-guru.json | 38 + hub/test/fixtures/adapters/artifact-hub.json | 38 + hub/test/fixtures/adapters/bgp-asn.json | 37 + .../fixtures/adapters/biorxiv-medrxiv.json | 44 + .../fixtures/adapters/bitbucket-cloud.json | 38 + .../adapters/browser-addons-amo-cws.json | 44 + hub/test/fixtures/adapters/bugzilla.json | 36 + .../adapters/bundlephobia-packagephobia.json | 43 + .../adapters/certificate-transparency.json | 37 + .../adapters/cisa-advisories-ics.json | 37 + hub/test/fixtures/adapters/cisa-kev.json | 44 + hub/test/fixtures/adapters/core-ac.json | 44 + hub/test/fixtures/adapters/cve-org.json | 38 + hub/test/fixtures/adapters/datacite.json | 43 + hub/test/fixtures/adapters/dblp.json | 43 + hub/test/fixtures/adapters/doe-osti.json | 38 + .../fixtures/adapters/endoflife-date.json | 38 + hub/test/fixtures/adapters/exploit-db.json | 35 + hub/test/fixtures/adapters/first-epss.json | 37 + hub/test/fixtures/adapters/gerrit.json | 43 + hub/test/fixtures/adapters/jira-public.json | 38 + hub/test/fixtures/adapters/mitre-attack.json | 37 + .../fixtures/adapters/mitre-cwe-capec.json | 42 + hub/test/fixtures/adapters/nasa-ads.json | 43 + hub/test/fixtures/adapters/nih-reporter.json | 38 + hub/test/fixtures/adapters/nsf-awards.json | 43 + hub/test/fixtures/adapters/orcid.json | 37 + hub/test/fixtures/adapters/rdap.json | 37 + .../fixtures/adapters/research-repo-pack.json | 44 + hub/test/fixtures/adapters/ror.json | 44 + hub/test/fixtures/adapters/security-txt.json | 36 + .../fixtures/adapters/semantic-scholar.json | 44 + .../adapters/sourceforge-launchpad.json | 38 + hub/test/fixtures/adapters/ssrn-nber.json | 42 + hub/test/fixtures/adapters/unpaywall.json | 39 + hub/test/fixtures/adapters/vendor-csaf.json | 38 + .../fixtures/adapters/vscode-open-vsx.json | 38 + .../fixtures/adapters/web-compat-data.json | 39 + .../adapters/wordpress-org-plugins.json | 36 + hub/test/post-fetch-wasm.ts | 13 +- .../wave3-b4-research-security-dev.test.ts | 1013 ++++ internal/classify/content_state.go | 129 +- .../classify/content_state_soft404_test.go | 164 + internal/extract/declarative.go | 28 + internal/extract/declarative_html.go | 30 + internal/extract/declarative_test.go | 12 + internal/extract/html_doc_extract.go | 3 + .../manifests/ansible-puppet-forge.yaml | 46 + internal/extract/manifests/apis-guru.yaml | 52 + internal/extract/manifests/artifact-hub.yaml | 52 + internal/extract/manifests/bgp-asn.yaml | 36 + .../extract/manifests/biorxiv-medrxiv.yaml | 41 + .../extract/manifests/bitbucket-cloud.yaml | 61 + .../manifests/browser-addons-amo-cws.yaml | 51 + internal/extract/manifests/bugzilla.yaml | 44 + .../manifests/bundlephobia-packagephobia.yaml | 73 + .../manifests/certificate-transparency.yaml | 51 + .../manifests/cisa-advisories-ics.yaml | 42 + internal/extract/manifests/cisa-kev.yaml | 55 + internal/extract/manifests/compiled.json | 2 +- internal/extract/manifests/core-ac.yaml | 66 + internal/extract/manifests/cve-org.yaml | 41 + internal/extract/manifests/datacite.yaml | 64 + internal/extract/manifests/dblp.yaml | 57 + internal/extract/manifests/doe-osti.yaml | 57 + .../extract/manifests/endoflife-date.yaml | 71 + internal/extract/manifests/exploit-db.yaml | 55 + internal/extract/manifests/first-epss.yaml | 24 + internal/extract/manifests/gerrit.yaml | 29 + internal/extract/manifests/jira-public.yaml | 38 + internal/extract/manifests/mitre-attack.yaml | 55 + .../extract/manifests/mitre-cwe-capec.yaml | 58 + internal/extract/manifests/nasa-ads.yaml | 54 + internal/extract/manifests/nih-reporter.yaml | 58 + internal/extract/manifests/nsf-awards.yaml | 62 + internal/extract/manifests/orcid.yaml | 55 + internal/extract/manifests/rdap.yaml | 62 + .../extract/manifests/research-repo-pack.yaml | 109 + internal/extract/manifests/ror.yaml | 60 + internal/extract/manifests/security-txt.yaml | 26 + .../extract/manifests/semantic-scholar.yaml | 98 + .../manifests/sourceforge-launchpad.yaml | 65 + internal/extract/manifests/ssrn-nber.yaml | 24 + internal/extract/manifests/unpaywall.yaml | 59 + internal/extract/manifests/vendor-csaf.yaml | 46 + .../extract/manifests/vscode-open-vsx.yaml | 39 + .../extract/manifests/web-compat-data.yaml | 89 + .../manifests/wordpress-org-plugins.yaml | 35 + internal/extract/official_api_providers.go | 21 + internal/extract/policy.go | 60 +- internal/extract/wave3_dev_infra.go | 3797 +++++++++++++++ internal/extract/wave3_dev_infra_test.go | 531 +++ internal/extract/wave3_scholarly.go | 4139 +++++++++++++++++ internal/extract/wave3_scholarly_test.go | 558 +++ internal/extract/wave3_security_intel.go | 3334 +++++++++++++ internal/extract/wave3_security_intel_test.go | 507 ++ 104 files changed, 18288 insertions(+), 60 deletions(-) create mode 100644 hub/test/fixtures/adapters/ansible-puppet-forge.json create mode 100644 hub/test/fixtures/adapters/apis-guru.json create mode 100644 hub/test/fixtures/adapters/artifact-hub.json create mode 100644 hub/test/fixtures/adapters/bgp-asn.json create mode 100644 hub/test/fixtures/adapters/biorxiv-medrxiv.json create mode 100644 hub/test/fixtures/adapters/bitbucket-cloud.json create mode 100644 hub/test/fixtures/adapters/browser-addons-amo-cws.json create mode 100644 hub/test/fixtures/adapters/bugzilla.json create mode 100644 hub/test/fixtures/adapters/bundlephobia-packagephobia.json create mode 100644 hub/test/fixtures/adapters/certificate-transparency.json create mode 100644 hub/test/fixtures/adapters/cisa-advisories-ics.json create mode 100644 hub/test/fixtures/adapters/cisa-kev.json create mode 100644 hub/test/fixtures/adapters/core-ac.json create mode 100644 hub/test/fixtures/adapters/cve-org.json create mode 100644 hub/test/fixtures/adapters/datacite.json create mode 100644 hub/test/fixtures/adapters/dblp.json create mode 100644 hub/test/fixtures/adapters/doe-osti.json create mode 100644 hub/test/fixtures/adapters/endoflife-date.json create mode 100644 hub/test/fixtures/adapters/exploit-db.json create mode 100644 hub/test/fixtures/adapters/first-epss.json create mode 100644 hub/test/fixtures/adapters/gerrit.json create mode 100644 hub/test/fixtures/adapters/jira-public.json create mode 100644 hub/test/fixtures/adapters/mitre-attack.json create mode 100644 hub/test/fixtures/adapters/mitre-cwe-capec.json create mode 100644 hub/test/fixtures/adapters/nasa-ads.json create mode 100644 hub/test/fixtures/adapters/nih-reporter.json create mode 100644 hub/test/fixtures/adapters/nsf-awards.json create mode 100644 hub/test/fixtures/adapters/orcid.json create mode 100644 hub/test/fixtures/adapters/rdap.json create mode 100644 hub/test/fixtures/adapters/research-repo-pack.json create mode 100644 hub/test/fixtures/adapters/ror.json create mode 100644 hub/test/fixtures/adapters/security-txt.json create mode 100644 hub/test/fixtures/adapters/semantic-scholar.json create mode 100644 hub/test/fixtures/adapters/sourceforge-launchpad.json create mode 100644 hub/test/fixtures/adapters/ssrn-nber.json create mode 100644 hub/test/fixtures/adapters/unpaywall.json create mode 100644 hub/test/fixtures/adapters/vendor-csaf.json create mode 100644 hub/test/fixtures/adapters/vscode-open-vsx.json create mode 100644 hub/test/fixtures/adapters/web-compat-data.json create mode 100644 hub/test/fixtures/adapters/wordpress-org-plugins.json create mode 100644 hub/test/wave3-b4-research-security-dev.test.ts create mode 100644 internal/extract/manifests/ansible-puppet-forge.yaml create mode 100644 internal/extract/manifests/apis-guru.yaml create mode 100644 internal/extract/manifests/artifact-hub.yaml create mode 100644 internal/extract/manifests/bgp-asn.yaml create mode 100644 internal/extract/manifests/biorxiv-medrxiv.yaml create mode 100644 internal/extract/manifests/bitbucket-cloud.yaml create mode 100644 internal/extract/manifests/browser-addons-amo-cws.yaml create mode 100644 internal/extract/manifests/bugzilla.yaml create mode 100644 internal/extract/manifests/bundlephobia-packagephobia.yaml create mode 100644 internal/extract/manifests/certificate-transparency.yaml create mode 100644 internal/extract/manifests/cisa-advisories-ics.yaml create mode 100644 internal/extract/manifests/cisa-kev.yaml create mode 100644 internal/extract/manifests/core-ac.yaml create mode 100644 internal/extract/manifests/cve-org.yaml create mode 100644 internal/extract/manifests/datacite.yaml create mode 100644 internal/extract/manifests/dblp.yaml create mode 100644 internal/extract/manifests/doe-osti.yaml create mode 100644 internal/extract/manifests/endoflife-date.yaml create mode 100644 internal/extract/manifests/exploit-db.yaml create mode 100644 internal/extract/manifests/first-epss.yaml create mode 100644 internal/extract/manifests/gerrit.yaml create mode 100644 internal/extract/manifests/jira-public.yaml create mode 100644 internal/extract/manifests/mitre-attack.yaml create mode 100644 internal/extract/manifests/mitre-cwe-capec.yaml create mode 100644 internal/extract/manifests/nasa-ads.yaml create mode 100644 internal/extract/manifests/nih-reporter.yaml create mode 100644 internal/extract/manifests/nsf-awards.yaml create mode 100644 internal/extract/manifests/orcid.yaml create mode 100644 internal/extract/manifests/rdap.yaml create mode 100644 internal/extract/manifests/research-repo-pack.yaml create mode 100644 internal/extract/manifests/ror.yaml create mode 100644 internal/extract/manifests/security-txt.yaml create mode 100644 internal/extract/manifests/semantic-scholar.yaml create mode 100644 internal/extract/manifests/sourceforge-launchpad.yaml create mode 100644 internal/extract/manifests/ssrn-nber.yaml create mode 100644 internal/extract/manifests/unpaywall.yaml create mode 100644 internal/extract/manifests/vendor-csaf.yaml create mode 100644 internal/extract/manifests/vscode-open-vsx.yaml create mode 100644 internal/extract/manifests/web-compat-data.yaml create mode 100644 internal/extract/manifests/wordpress-org-plugins.yaml create mode 100644 internal/extract/wave3_dev_infra.go create mode 100644 internal/extract/wave3_dev_infra_test.go create mode 100644 internal/extract/wave3_scholarly.go create mode 100644 internal/extract/wave3_scholarly_test.go create mode 100644 internal/extract/wave3_security_intel.go create mode 100644 internal/extract/wave3_security_intel_test.go diff --git a/hub/scripts/compile-manifests.mjs b/hub/scripts/compile-manifests.mjs index 2bc5492..6316bde 100644 --- a/hub/scripts/compile-manifests.mjs +++ b/hub/scripts/compile-manifests.mjs @@ -347,6 +347,44 @@ export const VALID_HTML_MODES = new Set([ 'medicaid_nadac_html', 'usps_docs_html', 'sba_dsbs_loans_html', + // Wave 3 B4 Category L (Research & Scholarly #301-#314) + 'semantic_scholar_html', + 'unpaywall_html', + 'core_ac_html', + 'orcid_html', + 'ror_html', + 'dblp_html', + 'biorxiv_medrxiv_html', + 'nasa_ads_html', + 'nih_reporter_html', + 'nsf_awards_html', + 'doe_osti_html', + 'research_repo_pack_html', + 'datacite_html', + 'ssrn_nber_html', + // Wave 3 B4 Category M (Security & Vulnerability Intelligence #315-#326) + 'cisa_kev_html', + 'mitre_attack_html', + 'mitre_cwe_capec_html', + 'cve_org_html', + 'cisa_advisories_html', + 'exploit_db_html', + 'cert_transparency_html', + 'bgp_he_html', + // Wave 3 B4 Category N (Developer Infrastructure #327-#340) + 'bitbucket_html', + 'sourceforge_launchpad_html', + 'bugzilla_html', + 'jira_public_html', + 'wordpress_plugin_html', + 'vscode_marketplace_html', + 'chrome_web_store_html', + 'artifact_hub_html', + 'puppet_forge_html', + 'apis_guru_html', + 'endoflife_html', + 'caniuse_html', + 'bundle_packagephobia_html', ]); const pslDatPath = join(manifestsDir, 'public_suffix_list.dat'); diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 3afa19b..9c2ab6c 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -105,6 +105,7 @@ const suiteSpecs = [ ['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/wave3-b4-research-security-dev.test.ts', 'wave3-b4-research-security-dev.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/adapter-policy.ts b/hub/src/adapter-policy.ts index 960d25f..8133c1c 100644 --- a/hub/src/adapter-policy.ts +++ b/hub/src/adapter-policy.ts @@ -25,6 +25,8 @@ export interface AdapterPolicy { maxCacheTtlMs?: number; maxConcurrent?: number; strictRobots?: boolean; + maxFetchBytes?: number; + allowTruncatedStream?: boolean; } export function isValidUserAgentHeaderValue(ua: string): boolean { diff --git a/hub/src/extractors/declarative.ts b/hub/src/extractors/declarative.ts index be21d42..37ea9d1 100644 --- a/hub/src/extractors/declarative.ts +++ b/hub/src/extractors/declarative.ts @@ -615,7 +615,46 @@ export type DeclarativeJsonMode = | 'medicaid_nadac_json' | 'usps_addresses_json' | 'carrier_tracking_json' - | 'sba_dkan_json'; + | 'sba_dkan_json' + | 'semantic_scholar_json' + | 'unpaywall_json' + | 'core_ac_json' + | 'orcid_json' + | 'ror_json' + | 'dblp_json' + | 'biorxiv_medrxiv_json' + | 'nasa_ads_json' + | 'nih_reporter_json' + | 'nsf_awards_json' + | 'doe_osti_json' + | 'research_repo_pack_json' + | 'datacite_json' + | 'cisa_kev_json' + | 'first_epss_json' + | 'mitre_attack_index_json' + | 'mitre_cwe_json' + | 'cve_org_json' + | 'vendor_csaf_json' + | 'cert_transparency_json' + | 'rdap_bootstrap_json' + | 'rdap_json' + | 'bgp_asn_ripe_json' + | 'bitbucket_json' + | 'sourceforge_json' + | 'launchpad_json' + | 'bugzilla_json' + | 'jira_public_json' + | 'wordpress_plugin_json' + | 'open_vsx_json' + | 'amo_addon_json' + | 'artifact_hub_json' + | 'ansible_galaxy_json' + | 'puppet_forge_json' + | 'apis_guru_json' + | 'endoflife_json' + | 'web_compat_json' + | 'bundlephobia_json' + | 'packagephobia_json'; export interface DeclarativeExtractSpec { commerceMode?: DeclarativeCommerceMode; @@ -655,7 +694,16 @@ export interface DeclarativeExtractSpec { | 'cbo_rss_xml' | 'everycrs_csv' | 'cms_hpt_txt' - | 'cms_mrf_csv'; + | 'cms_mrf_csv' + | 'dblp_xml' + | 'cisa_kev_csv' + | 'mitre_attack_stix_bundle' + | 'cisa_advisories_rss' + | 'security_txt_text' + | 'exploit_db_csv' + | 'exploit_db_rss' + | 'gerrit_json' + | 'apis_guru_list_bounded'; pathParam?: string; codeByPath?: DeclarativeCodeByPathSpec; xml?: DeclarativeXmlSpec; @@ -1020,7 +1068,42 @@ export type DeclarativeHtmlMode = | 'cms_price_transparency_html' | 'medicaid_nadac_html' | 'usps_docs_html' - | 'sba_dsbs_loans_html'; + | 'sba_dsbs_loans_html' + | 'semantic_scholar_html' + | 'unpaywall_html' + | 'core_ac_html' + | 'orcid_html' + | 'ror_html' + | 'dblp_html' + | 'biorxiv_medrxiv_html' + | 'nasa_ads_html' + | 'nih_reporter_html' + | 'nsf_awards_html' + | 'doe_osti_html' + | 'research_repo_pack_html' + | 'datacite_html' + | 'ssrn_nber_html' + | 'cisa_kev_html' + | 'mitre_attack_html' + | 'mitre_cwe_capec_html' + | 'cve_org_html' + | 'cisa_advisories_html' + | 'exploit_db_html' + | 'cert_transparency_html' + | 'bgp_he_html' + | 'bitbucket_html' + | 'sourceforge_launchpad_html' + | 'bugzilla_html' + | 'jira_public_html' + | 'wordpress_plugin_html' + | 'vscode_marketplace_html' + | 'chrome_web_store_html' + | 'artifact_hub_html' + | 'puppet_forge_html' + | 'apis_guru_html' + | 'endoflife_html' + | 'caniuse_html' + | 'bundle_packagephobia_html'; export interface DeclarativeHtmlRouteSpec { id?: string; diff --git a/hub/src/overflow.ts b/hub/src/overflow.ts index ace7651..75a9c34 100644 --- a/hub/src/overflow.ts +++ b/hub/src/overflow.ts @@ -1004,6 +1004,25 @@ export function decodeBase64TextWireBody(base64Body: unknown, contentType?: unkn } } +function trimTrailingIncompleteUtf8(bytes: Uint8Array): Uint8Array { + const n = bytes.byteLength; + if (n === 0) return bytes; + let i = n - 1; + while (i >= 0 && n - i <= 3 && (bytes[i]! & 0xc0) === 0x80) { + i--; + } + if (i < 0) return bytes; + const b = bytes[i]!; + let expectedLen = 1; + if ((b & 0xe0) === 0xc0) expectedLen = 2; + else if ((b & 0xf0) === 0xe0) expectedLen = 3; + else if ((b & 0xf8) === 0xf0) expectedLen = 4; + if (expectedLen > 1 && n - i < expectedLen) { + return bytes.subarray(0, i); + } + return bytes; +} + export function encodeBodyForWire( bytes: Uint8Array, contentType?: string, @@ -1446,6 +1465,7 @@ export async function cloudflareOverflowFetch( ifNoneMatch?: string; ifModifiedSince?: string; maxBytes?: number; + allowTruncatedStream?: boolean; userAgentProfile?: string; minIntervalMs?: number; blockCrossOriginRedirects?: boolean; @@ -1877,8 +1897,15 @@ export async function cloudflareOverflowFetch( aggregateBatchBytes += bytes.byteLength; const isPaymentRequired = resp.status === 402; + const allowTruncated = + Boolean(r.allowTruncatedStream) && + truncated && + resp.status >= 200 && + resp.status < 300; const decodedPreview = - !truncated && bytes.byteLength <= 98_304 ? new TextDecoder('utf-8', { fatal: false }).decode(bytes) : ''; + (!truncated || allowTruncated) && bytes.byteLength <= 98_304 + ? new TextDecoder('utf-8', { fatal: false }).decode(bytes) + : ''; if (resp.status === 403 && bytes.byteLength <= 512 && /^\s*forbidden redirect target:/i.test(decodedPreview)) { results.push({ id: r.id, @@ -1899,13 +1926,15 @@ export async function cloudflareOverflowFetch( !truncated && !isPaymentRequired ? classifyWafAndChallenge({ status: resp.status, headers: resp.headers, rawBody: decodedPreview }) : null; + const bodyBytesForWire = + allowTruncated && !hasBinaryControlBytes(bytes) ? trimTrailingIncompleteUtf8(bytes) : bytes; const encodedBody = isPaymentRequired ? !truncated && bytes.byteLength <= 65_536 ? encodeBodyForWire(bytes, respCt) : undefined - : includeBody && !truncated - ? encodeBodyForWire(bytes, respCt) + : includeBody && (!truncated || allowTruncated) + ? encodeBodyForWire(bodyBytesForWire, respCt) : undefined; const isNotModified = resp.status === 304 && Boolean(callerIfNoneMatch || callerIfModifiedSince); const isAutoKindSkip = @@ -1917,7 +1946,7 @@ export async function cloudflareOverflowFetch( // HTTP 402 MUST ALWAYS surface as `payment_required` (status 402) even if an untrusted origin sent an oversized `> maxBytes` body (`x402_7.mjs`)! const outcome = isPaymentRequired ? 'payment_required' - : truncated + : truncated && !allowTruncated ? 'error' : wafMatch || cfMitigated ? 'challenge' diff --git a/hub/src/scrape.ts b/hub/src/scrape.ts index a0c99dd..8d670c5 100644 --- a/hub/src/scrape.ts +++ b/hub/src/scrape.ts @@ -33,6 +33,7 @@ import { isTrustedTwinRedirectUrl, isTwinRedirectedToErrorPage, selectRawBodyForContentState, + sliceToPolicyMaxFetchBytes, } from './twin-transport'; import type { McpVaultStore } from './mcp-vault'; import { buildDetectOnlyErrorResponse, classifyDetectOnly, extractDetectOnlyJsonLdDoc } from './detect-only'; @@ -300,6 +301,7 @@ export interface ExtractedDocument { truncated?: boolean; nextCursor?: string; inertiaHydrated?: boolean; + authoritative?: boolean; warnings?: string[]; markdown: string; text: string; @@ -459,6 +461,11 @@ export function extractHtmlDocument( stripHiddenSubtrees = false, } = optsObj; + let boundedRawHtml = String(rawHtml ?? ''); + if (baseUrl && boundedRawHtml.length > 1_048_576) { + boundedRawHtml = sliceToPolicyMaxFetchBytes(boundedRawHtml, resolveAdapterPolicyForUrl(baseUrl).maxFetchBytes); + } + const rawDoc = callCoreWasmRaw<{ doc: { title?: string; @@ -479,6 +486,7 @@ export function extractHtmlDocument( truncated?: boolean; nextCursor?: string; inertiaHydrated?: boolean; + authoritative?: boolean; markdown?: string; text?: string; links?: string[]; @@ -496,7 +504,7 @@ export function extractHtmlDocument( redactPii: Boolean(redactPii), ...(stripHiddenSubtrees ? { stripHiddenSubtrees: true } : {}), }, - String(rawHtml ?? ''), + boundedRawHtml, ).doc; if (rawDoc.extractorId) { @@ -522,6 +530,7 @@ export function extractHtmlDocument( ...(rawDoc.truncated ? { truncated: true } : {}), ...(rawDoc.nextCursor ? { nextCursor: rawDoc.nextCursor } : {}), ...(rawDoc.inertiaHydrated ? { inertiaHydrated: true } : {}), + ...(rawDoc.authoritative ? { authoritative: true } : {}), markdown: rawDoc.markdown ?? '', text: rawDoc.text ?? '', links: rawDoc.links ?? [], @@ -4347,6 +4356,8 @@ export async function executeScrapeCall(params: { ...(maxPagesCap ? { maxPages: maxPagesCap } : {}), ...(hostAdapterPolicy.userAgentProfile ? { userAgentProfile: hostAdapterPolicy.userAgentProfile } : {}), ...(hostAdapterPolicy.minIntervalMs ? { minIntervalMs: hostAdapterPolicy.minIntervalMs } : {}), + ...(hostAdapterPolicy.maxFetchBytes && !rawBase64Requested ? { maxBytes: hostAdapterPolicy.maxFetchBytes } : {}), + ...(hostAdapterPolicy.allowTruncatedStream && !rawBase64Requested ? { allowTruncatedStream: true } : {}), ...(Object.keys(mergedHeaders).length > 0 ? { headers: mergedHeaders } : {}), ...(inlineActions.length > 0 ? { interact: { actions: inlineActions } } : {}), }, @@ -6635,6 +6646,11 @@ export async function executeScrapeCall(params: { }; }; + if (!isPdfResponse && !rawBase64Explicit && rawBodyStr.length > 1_048_576) { + const finalPolicy = finalUrl === normalizedUrl ? hostAdapterPolicy : resolveAdapterPolicyForUrl(finalUrl); + rawBodyStr = sliceToPolicyMaxFetchBytes(rawBodyStr, finalPolicy.maxFetchBytes); + } + // Step 1 + Step 2: Over-budget (> 4 MiB) raw bodies NEVER enter Worker WASM or get truncated before sanitization. // Offload to a connected Go node (`target: 'agent'`) when available, or store the raw artifact and return a clear warning. const rawBodyOverBudget = @@ -7392,7 +7408,10 @@ export async function executeScrapeCall(params: { : ''; }; + const isAuthoritativeAdapter = Boolean(extracted?.authoritative); + if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7475,6 +7494,7 @@ export async function executeScrapeCall(params: { } } } else if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7546,6 +7566,7 @@ export async function executeScrapeCall(params: { } } } else if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7570,6 +7591,7 @@ export async function executeScrapeCall(params: { } } } else if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7594,6 +7616,7 @@ export async function executeScrapeCall(params: { } } } else if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7625,6 +7648,7 @@ export async function executeScrapeCall(params: { } } } else if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && @@ -7652,7 +7676,7 @@ export async function executeScrapeCall(params: { // Tier 1A: Universal Schema.org JSON-LD (`FAQPage`, `QAPage`, `DiscussionForumPosting`, `ItemList`, `Article`, `Event`, `SoftwareApplication`, `Dataset`) let universalSchemaDoc: UniversalSchemaOrgResult | null = - !hasCustomContentScoping && isHtmlBody && !isPdfResponse && !customShopifyDoc + !isAuthoritativeAdapter && !hasCustomContentScoping && isHtmlBody && !isPdfResponse && !customShopifyDoc ? extractUniversalSchemaOrg(rawBodyStr, finalUrl, htmlFragToMd) : null; if (detectOnlyJsonLdOnly && !universalSchemaDoc?.markdown && isHtmlBody && !isPdfResponse) { @@ -7753,7 +7777,7 @@ export async function executeScrapeCall(params: { // A site adapter that already emitted structured records (e.g. a commerce product from JSON-LD) is the // authoritative content: keyless SSR-hydration prose (site chrome, CSS, class strings) must not replace it. const adapterEmittedRecords = Boolean(extracted?.extractorId && extracted.records && extracted.records.length > 0); - if (!detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && !isPdfResponse && !customShopifyDoc && !cmsTwinDoc && !hydratedFromUniversalSchema) { + if (!isAuthoritativeAdapter && !detectOnlyJsonLdOnly && !hasCustomContentScoping && isHtmlBody && !isPdfResponse && !customShopifyDoc && !cmsTwinDoc && !hydratedFromUniversalSchema) { if (extracted?.inertiaHydrated && extracted.markdown.trim()) { ssrHydrated = { ...(extracted.title ? { title: extracted.title } : {}), @@ -7818,13 +7842,15 @@ export async function executeScrapeCall(params: { let hydratedFromJobPostingJsonLd = false; const shouldInspectJobPostingJsonLd = isHtmlBody && - /JobPosting/i.test(rawBodyStr) && - (checkPromptInjection || (!hasCustomContentScoping && !customShopifyDoc && !ssrHydrated && countTextWords(extracted?.markdown ?? '') < 50)); + (checkPromptInjection || + (!isAuthoritativeAdapter && !hasCustomContentScoping && !customShopifyDoc && !ssrHydrated && countTextWords(extracted?.markdown ?? '') < 50)) && + /JobPosting/i.test(rawBodyStr); const rawJobLdInspection = shouldInspectJobPostingJsonLd ? inspectRawJobPostingJsonLdLinear(rawBodyStr) : { descriptionHtml: '', rawDecodedStringsForPiCheck: '' }; let rawJsonLdStringsForPiCheck = checkPromptInjection ? rawJobLdInspection.rawDecodedStringsForPiCheck : ''; if ( + !isAuthoritativeAdapter && !hasCustomContentScoping && isHtmlBody && !customShopifyDoc && @@ -7858,21 +7884,10 @@ export async function executeScrapeCall(params: { !hydratedFromJobPostingJsonLd && countTextWords(extracted?.markdown ?? '') < 20 && !/JobPosting/i.test(rawBodyStr); - const preRenderClosedCheck = isHtmlBody - ? classifyContentState({ - status: typeof item.status === 'number' ? item.status : 200, - url: normalizedUrl, - finalUrl, - title: extracted?.title, - markdown: extracted?.markdown ?? '', - rawHtml: rawBodyStr, - rendered: false, - nowMs: now, - }) - : null; const hasThinExternalIframe = - isHtmlBody && !customShopifyDoc && countTextWords(extracted?.markdown ?? '') < 50 && hasExternalOrWidgetIframeLinear(rawBodyStr).found; + !isAuthoritativeAdapter && isHtmlBody && !customShopifyDoc && countTextWords(extracted?.markdown ?? '') < 50 && hasExternalOrWidgetIframeLinear(rawBodyStr).found; if ( + !isAuthoritativeAdapter && !detectOnlyJsonLdOnly && registryTwin?.id !== 'walmart' && isHtmlBody && @@ -7885,11 +7900,20 @@ export async function executeScrapeCall(params: { !ytWatchStaticMeta && extracted?.extractorId !== 'nfpa' && !isDeadWorkdayJobShell && - preRenderClosedCheck?.state !== 'closed_posting' && effectiveRenderMode === 'auto' && item.rendered !== true && target !== 'container' && - (isThinScriptedPage(rawBodyStr, extracted?.markdown ?? '') || hasThinExternalIframe) + (isThinScriptedPage(rawBodyStr, extracted?.markdown ?? '') || hasThinExternalIframe) && + classifyContentState({ + status: typeof item.status === 'number' ? item.status : 200, + url: normalizedUrl, + finalUrl, + title: extracted?.title, + markdown: extracted?.markdown ?? '', + rawHtml: rawBodyStr, + rendered: false, + nowMs: now, + }).state !== 'closed_posting' ) { try { const autoBrowserRes = await executeHubFetch( @@ -8193,7 +8217,7 @@ export async function executeScrapeCall(params: { // P4: Extract structured schema.org `JobPosting` JSON-LD on HTML pages and surface key facts (pay, workplace, location) at the top. const htmlJobPosting: StructuredJobPosting | null = - !hasCustomContentScoping && isHtmlBody + !isAuthoritativeAdapter && !hasCustomContentScoping && isHtmlBody ? extractJobPostingJsonLd(rawBodyStr, finalUrl, extracted?.markdown ?? '') : null; @@ -8359,6 +8383,7 @@ export async function executeScrapeCall(params: { const bodyWordsBeforeRescue = countTextWords(rawCleanMarkdown); const metaDescWords = prelimDescription ? countTextWords(prelimDescription) : 0; if ( + !isAuthoritativeAdapter && !hasCustomContentScoping && isHtmlBody && !isPdfResponse && @@ -8386,8 +8411,9 @@ export async function executeScrapeCall(params: { // Ethical Heavy-SPA Fallback (`Crawl4AI` / `Firecrawl`) when a `200 OK` `", + "expectTitleIncludes": "puppetlabs-stdlib", + "expectMarkdownIncludes": [ + "9.6.0", + "puppetlabs", + "Apache-2.0", + "185000000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Module not found | Puppet Forge

404 Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://forge.puppet.com/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-next-shell", + "status": 200, + "payload": "Puppet Forge
" + } + ] +} diff --git a/hub/test/fixtures/adapters/apis-guru.json b/hub/test/fixtures/adapters/apis-guru.json new file mode 100644 index 0000000..183f212 --- /dev/null +++ b/hub/test/fixtures/adapters/apis-guru.json @@ -0,0 +1,38 @@ +{ + "adapterId": "apis-guru", + "mode": "twin", + "inputUrl": "https://api.apis.guru/v2/list.json", + "expectedFetchUrl": "https://api.apis.guru/v2/list.json", + "mockPayload": "{\"github.com\":{\"preferred\":\"1.1.4\",\"versions\":{\"1.1.4\":{\"info\":{\"title\":\"GitHub v3 REST API\"},\"swaggerUrl\":\"https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.json\"}}},\"stripe.com\":{\"preferred\":\"2022-11-15\",\"versions\":{\"2022-11-15\":{\"info\":{\"title\":\"Stripe API\"},\"swaggerUrl\":\"https://api.apis.guru/v2/specs/stripe.com/2022-11-15/openapi.json\"}}},\"truncated.example.org\":{\"preferred\":\"1.0.0\",\"versions\":{\"1.0.0\":{\"info\":{\"title\":\"TRUNCATED_AT_RANGE", + "expectTitleIncludes": "APIs.guru Directory Index", + "expectMarkdownIncludes": [ + "github.com", + "GitHub v3 REST API", + "stripe.com", + "Stripe API" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.apis.guru/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-json-object", + "status": 200, + "inputUrl": "https://api.apis.guru/v2/metrics.json", + "payload": "{}" + } + ] +} diff --git a/hub/test/fixtures/adapters/artifact-hub.json b/hub/test/fixtures/adapters/artifact-hub.json new file mode 100644 index 0000000..2373ef6 --- /dev/null +++ b/hub/test/fixtures/adapters/artifact-hub.json @@ -0,0 +1,38 @@ +{ + "adapterId": "artifact-hub", + "mode": "twin", + "inputUrl": "https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx", + "expectedFetchUrl": "https://artifacthub.io/api/v1/packages/helm/ingress-nginx/ingress-nginx", + "mockPayload": "{\"package_id\":\"00000000-0000-0000-0000-000000000001\",\"name\":\"ingress-nginx\",\"display_name\":\"ingress-nginx\",\"category_display_name\":\"Networking\",\"description\":\"Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer\",\"version\":\"4.11.3\",\"app_version\":\"1.11.3\",\"license\":\"Apache-2.0\",\"stars\":1450,\"home_url\":\"https://kubernetes.github.io/ingress-nginx/\",\"repository\":{\"name\":\"ingress-nginx\",\"organization_display_name\":\"Kubernetes\",\"url\":\"https://kubernetes.github.io/ingress-nginx\"},\"readme\":\"# ingress-nginx\\n\\nNGINX Ingress Controller.\"}", + "expectTitleIncludes": "ingress-nginx", + "expectMarkdownIncludes": [ + "4.11.3", + "1.11.3", + "Apache-2.0", + "Kubernetes" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://artifacthub.io/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-csr-shell", + "status": 200, + "inputUrl": "https://artifacthub.io/packages/search", + "payload": "Artifact Hub
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bgp-asn.json b/hub/test/fixtures/adapters/bgp-asn.json new file mode 100644 index 0000000..d0d8f05 --- /dev/null +++ b/hub/test/fixtures/adapters/bgp-asn.json @@ -0,0 +1,37 @@ +{ + "adapterId": "bgp-asn", + "mode": "twin", + "inputUrl": "https://stat.ripe.net/data/as-overview/data.json?resource=AS13335", + "expectedFetchUrl": "https://stat.ripe.net/data/as-overview/data.json?resource=AS13335", + "mockPayload": "{\"status\":\"ok\",\"status_code\":200,\"data\":{\"type\":\"as\",\"resource\":\"13335\",\"block\":{\"resource\":\"13172-14195\",\"desc\":\"ARIN AS13172-AS14195\",\"name\":\"Administered by ARIN\"},\"holder\":\"CLOUDFLARENET - Cloudflare, Inc.\",\"announced\":true}}", + "expectTitleIncludes": "AS13335", + "expectMarkdownIncludes": [ + "CLOUDFLARENET", + "Administered by ARIN", + "true" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"status\":\"error\",\"status_code\":404,\"data\":{}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://stat.ripe.net/error", + "payload": "404 Page Not Found

Not Found

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

RIPEstat is undergoing scheduled maintenance.

" + }, + { + "name": "invalid-asn-html", + "status": 200, + "inputUrl": "https://bgp.he.net/AS999999999", + "payload": "AS999999999 - bgp.he.net
Invalid AS
" + } + ] +} diff --git a/hub/test/fixtures/adapters/biorxiv-medrxiv.json b/hub/test/fixtures/adapters/biorxiv-medrxiv.json new file mode 100644 index 0000000..43dd30b --- /dev/null +++ b/hub/test/fixtures/adapters/biorxiv-medrxiv.json @@ -0,0 +1,44 @@ +{ + "adapterId": "biorxiv-medrxiv", + "mode": "twin", + "inputUrl": "https://api.biorxiv.org/details/biorxiv/10.1101/2020.09.02.278911/na/json", + "expectedFetchUrl": "https://api.biorxiv.org/details/biorxiv/10.1101/2020.09.02.278911/na/json", + "mockPayload": "{\"messages\":[{\"status\":\"ok\"}],\"collection\":[{\"doi\":\"10.1101/2020.09.02.278911\",\"title\":\"Genomic surveillance of viral transmission clusters\",\"authors\":\"Smith, A.; Jones, B.\",\"date\":\"2020-09-03\",\"version\":\"1\",\"category\":\"Microbiology\",\"server\":\"bioRxiv\",\"license\":\"cc_by\",\"published\":\"10.1038/s41564-020-00800-0\",\"jatsxml\":\"https://www.biorxiv.org/content/early/2020/09/03/2020.09.02.278911.source.xml\",\"abstract\":\"High-throughput genomic sequencing provides insights into viral transmission dynamics.\"}]}", + "expectTitleIncludes": "Genomic surveillance of viral transmission clusters", + "expectMarkdownIncludes": [ + "10.1101/2020.09.02.278911", + "bioRxiv", + "Microbiology", + "2020-09-03" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"messages\":[{\"status\":\"DOI not recognizable\"}],\"collection\":[]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.biorxiv.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "medrxiv-cloudflare-challenge", + "status": 403, + "inputUrl": "https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1", + "payload": "Attention Required! | Cloudflare

Sorry, you have been blocked

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.biorxiv.org/content/10.1101/2020.09.02.278911v1", + "payload": "Loading...
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/bitbucket-cloud.json b/hub/test/fixtures/adapters/bitbucket-cloud.json new file mode 100644 index 0000000..44e68c3 --- /dev/null +++ b/hub/test/fixtures/adapters/bitbucket-cloud.json @@ -0,0 +1,38 @@ +{ + "adapterId": "bitbucket-cloud", + "mode": "twin", + "inputUrl": "https://bitbucket.org/atlassian/aui", + "expectedFetchUrl": "https://api.bitbucket.org/2.0/repositories/atlassian/aui", + "mockPayload": "{\"type\":\"repository\",\"full_name\":\"atlassian/aui\",\"name\":\"aui\",\"scm\":\"git\",\"is_private\":false,\"description\":\"Atlassian User Interface (AUI) is a tailor-made front-end library for creating a user interface according to the Atlassian Design Guidelines.\",\"language\":\"javascript\",\"size\":84210560,\"created_on\":\"2012-03-08T05:18:10.000000+00:00\",\"updated_on\":\"2026-11-12T09:15:22.000000+00:00\",\"mainbranch\":{\"name\":\"master\",\"type\":\"branch\"},\"owner\":{\"display_name\":\"Atlassian\",\"username\":\"atlassian\"},\"project\":{\"name\":\"AUI\"},\"links\":{\"html\":{\"href\":\"https://bitbucket.org/atlassian/aui\"}}}", + "expectTitleIncludes": "atlassian/aui", + "expectMarkdownIncludes": [ + "Atlassian", + "javascript", + "master", + "2026-11-12" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"type\":\"error\",\"error\":{\"message\":\"Repository atlassian/does-not-exist not found\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://bitbucket.org/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-bitbucket-csr-shell", + "status": 200, + "inputUrl": "https://bitbucket.org/account/signin", + "payload": "Bitbucket
" + } + ] +} diff --git a/hub/test/fixtures/adapters/browser-addons-amo-cws.json b/hub/test/fixtures/adapters/browser-addons-amo-cws.json new file mode 100644 index 0000000..156ef27 --- /dev/null +++ b/hub/test/fixtures/adapters/browser-addons-amo-cws.json @@ -0,0 +1,44 @@ +{ + "adapterId": "browser-addons-amo-cws", + "mode": "twin", + "inputUrl": "https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/", + "expectedFetchUrl": "https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/", + "mockPayload": "{\"id\":607454,\"slug\":\"ublock-origin\",\"guid\":\"uBlock0@raymondhill.net\",\"name\":{\"en-US\":\"uBlock Origin\"},\"summary\":{\"en-US\":\"Finally, an efficient wide-spectrum content blocker. Easy on CPU and memory.\"},\"average_daily_users\":8500000,\"ratings\":{\"average\":4.8,\"count\":21500},\"last_updated\":\"2026-11-15T10:00:00Z\",\"authors\":[{\"name\":\"Raymond Hill\"}],\"current_version\":{\"version\":\"1.60.0\",\"license\":{\"name\":{\"en-US\":\"GNU General Public License v3.0\"}}},\"url\":\"https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/\"}", + "expectTitleIncludes": "uBlock Origin", + "expectMarkdownIncludes": [ + "ublock-origin", + "1.60.0", + "Raymond Hill", + "8500000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"detail\":\"Not found.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://addons.mozilla.org/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "cws-item-not-available", + "status": 200, + "inputUrl": "https://chromewebstore.google.com/detail/missing/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "payload": "Item not available - Chrome Web Store

This item is no longer available.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://chromewebstore.google.com/detail/loading/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", + "payload": "Chrome Web Store
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bugzilla.json b/hub/test/fixtures/adapters/bugzilla.json new file mode 100644 index 0000000..f925692 --- /dev/null +++ b/hub/test/fixtures/adapters/bugzilla.json @@ -0,0 +1,36 @@ +{ + "adapterId": "bugzilla", + "mode": "html", + "inputUrl": "https://bugzilla.mozilla.org/show_bug.cgi?id=1800000", + "mockPayload": "1800000 - Improve WebGPU buffer validation

Improve WebGPU buffer validation

RESOLVED FIXED
Core
Graphics: WebGPU
Initial report: add bounds checks on staging buffer copies.
", + "expectTitleIncludes": "Improve WebGPU buffer validation", + "expectMarkdownIncludes": [ + "RESOLVED FIXED", + "Core", + "Graphics: WebGPU", + "bounds checks" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Invalid Bug ID

Bug #999999999 does not exist.

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

Not Found

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

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

" + }, + { + "name": "auth-or-empty-spa-shell", + "status": 200, + "payload": "Access Denied

You are not authorized to access bug #1800000.

" + } + ] +} diff --git a/hub/test/fixtures/adapters/bundlephobia-packagephobia.json b/hub/test/fixtures/adapters/bundlephobia-packagephobia.json new file mode 100644 index 0000000..98b20a5 --- /dev/null +++ b/hub/test/fixtures/adapters/bundlephobia-packagephobia.json @@ -0,0 +1,43 @@ +{ + "adapterId": "bundlephobia-packagephobia", + "mode": "twin", + "inputUrl": "https://bundlephobia.com/api/size?package=lodash@4.17.21", + "expectedFetchUrl": "https://bundlephobia.com/api/size?package=lodash@4.17.21", + "mockPayload": "{\"name\":\"lodash\",\"version\":\"4.17.21\",\"size\":71680,\"gzip\":24650,\"dependencyCount\":0,\"hasJSModule\":false,\"description\":\"Lodash modular utilities.\",\"repository\":\"https://github.com/lodash/lodash\"}", + "expectTitleIncludes": "lodash@4.17.21 Bundle Size (Bundlephobia)", + "expectMarkdownIncludes": [ + "70.00 KiB", + "24.07 KiB", + "Lodash modular utilities." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"code\":\"PackageNotFoundError\",\"message\":\"The package you were looking for doesn't exist.\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://bundlephobia.com/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "packagephobia-vercel-429-checkpoint", + "status": 429, + "inputUrl": "https://packagephobia.com/result?p=lodash", + "payload": "Vercel Security Checkpoint

Failed to verify your browser.

" + }, + { + "name": "empty-next-spa-shell", + "status": 200, + "inputUrl": "https://bundlephobia.com/package/missing", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/certificate-transparency.json b/hub/test/fixtures/adapters/certificate-transparency.json new file mode 100644 index 0000000..7ec55c5 --- /dev/null +++ b/hub/test/fixtures/adapters/certificate-transparency.json @@ -0,0 +1,37 @@ +{ + "adapterId": "certificate-transparency", + "mode": "twin", + "inputUrl": "https://api.certspotter.com/v1/issuances?domain=example.com", + "expectedFetchUrl": "https://api.certspotter.com/v1/issuances?domain=example.com", + "mockPayload": "[{\"id\":\"123456789\",\"tbs_sha256\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"cert_sha256\":\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\"dns_names\":[\"example.com\",\"www.example.com\"],\"not_before\":\"2026-10-01T00:00:00Z\",\"not_after\":\"2026-12-30T23:59:59Z\",\"revoked\":false,\"issuer\":{\"name\":\"DigiCert Inc\"}}]", + "expectTitleIncludes": "Certificate Transparency — example.com", + "expectMarkdownIncludes": [ + "example.com", + "www.example.com", + "2026-10-01", + "DigiCert Inc" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"code\":\"not_found\",\"message\":\"Not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.certspotter.com/error", + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "maintenance", + "status": 502, + "payload": "502 Bad Gateway

502 Bad Gateway

" + }, + { + "name": "empty-issuances-array", + "status": 200, + "payload": "[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/cisa-advisories-ics.json b/hub/test/fixtures/adapters/cisa-advisories-ics.json new file mode 100644 index 0000000..144dad6 --- /dev/null +++ b/hub/test/fixtures/adapters/cisa-advisories-ics.json @@ -0,0 +1,37 @@ +{ + "adapterId": "cisa-advisories-ics", + "mode": "twin", + "inputUrl": "https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml", + "expectedFetchUrl": "https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml", + "mockPayload": "CISA ICS Advisorieshttps://www.cisa.gov/news-events/cybersecurity-advisoriesICSA-26-328-01 Example PLC Controllerhttps://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01Tue, 24 Nov 2026 12:00:00 +0000<p>Addresses CVE-2026-41001. CSAF available at https://github.com/cisagov/CSAF/blob/develop/csaf_files/OT/white/2026/icsa-26-328-01.json</p>", + "expectTitleIncludes": "CISA ICS Advisories", + "expectMarkdownIncludes": [ + "ICSA-26-328-01", + "CVE-2026-41001", + "https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | CISA

Page not found

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

Application Error

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

CISA.gov is temporarily unavailable for scheduled maintenance.

" + }, + { + "name": "empty-advisory-shell", + "status": 200, + "inputUrl": "https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/cisa-kev.json b/hub/test/fixtures/adapters/cisa-kev.json new file mode 100644 index 0000000..2b5c07b --- /dev/null +++ b/hub/test/fixtures/adapters/cisa-kev.json @@ -0,0 +1,44 @@ +{ + "adapterId": "cisa-kev", + "mode": "twin", + "inputUrl": "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json", + "expectedFetchUrl": "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json", + "mockPayload": "{\"title\":\"CISA Catalog of Known Exploited Vulnerabilities\",\"catalogVersion\":\"2026.11.28\",\"dateReleased\":\"2026-11-28T16:00:00.000Z\",\"count\":1808,\"vulnerabilities\":[{\"cveID\":\"CVE-2024-3094\",\"vendorProject\":\"Tukaani\",\"product\":\"XZ Utils\",\"vulnerabilityName\":\"Tukaani XZ Utils Embedded Malicious Code Vulnerability\",\"dateAdded\":\"2024-04-01\",\"shortDescription\":\"XZ Utils contains malicious code in liblzma leading to unauthorized SSH access.\",\"requiredAction\":\"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.\",\"dueDate\":\"2024-04-22\",\"knownRansomwareCampaignUse\":\"Unknown\",\"notes\":\"https://nvd.nist.gov/vuln/detail/CVE-2024-3094\"},{\"cveID\":\"CVE-2024-21762\",\"vendorProject\":\"Fortinet\",\"product\":\"FortiOS\",\"vulnerabilityName\":\"Fortinet FortiOS Out-of-Bound Write Vulnerability\",\"dateAdded\":\"2024-02-09\",\"shortDescription\":\"Fortinet FortiOS SSL VPN contains an out-of-bounds write vulnerability.\",\"requiredAction\":\"Apply mitigations per vendor instructions.\",\"dueDate\":\"2024-02-16\",\"knownRansomwareCampaignUse\":\"Known\"}]}", + "expectTitleIncludes": "CISA Catalog of Known Exploited Vulnerabilities", + "expectMarkdownIncludes": [ + "CVE-2024-3094", + "Tukaani", + "XZ Utils", + "CVE-2024-21762", + "Fortinet" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | CISA

404 Page Not Found

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

Not Found

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

CISA.gov is temporarily unavailable for scheduled maintenance.

" + }, + { + "name": "empty-kev-vulnerabilities", + "status": 200, + "payload": "{\"count\":0,\"vulnerabilities\":[]}" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/core-ac.json b/hub/test/fixtures/adapters/core-ac.json new file mode 100644 index 0000000..55be386 --- /dev/null +++ b/hub/test/fixtures/adapters/core-ac.json @@ -0,0 +1,44 @@ +{ + "adapterId": "core-ac", + "mode": "twin", + "inputUrl": "https://api.core.ac.uk/v3/works/11689643", + "expectedFetchUrl": "https://api.core.ac.uk/v3/works/11689643", + "mockPayload": "{\"id\":11689643,\"title\":\"Solar Energy Conversion Systems in Distributed Grids\",\"doi\":\"10.1016/j.solener.2020.01.001\",\"publishedDate\":\"2020-02-01T00:00:00\",\"yearPublished\":2020,\"publisher\":\"Elsevier\",\"downloadUrl\":\"https://core.ac.uk/download/pdf/11689643.pdf\",\"authors\":[{\"name\":\"Elena Vance\"},{\"name\":\"Marcus Sterling\"}],\"abstract\":\"This study evaluates photovoltaic grid integration and battery dispatch under high renewable penetration.\"}", + "expectTitleIncludes": "Solar Energy Conversion Systems in Distributed Grids", + "expectMarkdownIncludes": [ + "11689643", + "Elena Vance", + "10.1016/j.solener.2020.01.001", + "2020-02-01" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Work not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://core.ac.uk/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "cloudflare-challenge-html", + "status": 403, + "inputUrl": "https://core.ac.uk/works/11689643", + "payload": "Just a moment...
Enable JavaScript and cookies to continue
" + }, + { + "name": "empty-nextjs-shell", + "status": 200, + "inputUrl": "https://core.ac.uk/works/11689643", + "payload": "CORE
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/cve-org.json b/hub/test/fixtures/adapters/cve-org.json new file mode 100644 index 0000000..895c7f9 --- /dev/null +++ b/hub/test/fixtures/adapters/cve-org.json @@ -0,0 +1,38 @@ +{ + "adapterId": "cve-org", + "mode": "twin", + "inputUrl": "https://cveawg.mitre.org/api/cve/CVE-2024-3094", + "expectedFetchUrl": "https://cveawg.mitre.org/api/cve/CVE-2024-3094", + "mockPayload": "{\"dataType\":\"CVE_RECORD\",\"dataVersion\":\"5.1\",\"cveMetadata\":{\"cveId\":\"CVE-2024-3094\",\"assignerShortName\":\"redhat\",\"state\":\"PUBLISHED\",\"datePublished\":\"2024-03-29T18:00:00.000Z\",\"dateUpdated\":\"2024-08-01T12:00:00.000Z\"},\"containers\":{\"cna\":{\"title\":\"Malicious code in xz-utils / liblzma\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"Malicious code was discovered in the upstream tarballs of xz, starting with version 5.6.0.\"}],\"affected\":[{\"vendor\":\"Tukaani\",\"product\":\"xz\",\"versions\":[{\"version\":\"5.6.0\",\"status\":\"affected\"},{\"version\":\"5.6.1\",\"status\":\"affected\"}]}],\"metrics\":[{\"cvssV3_1\":{\"baseScore\":10.0,\"baseSeverity\":\"CRITICAL\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H\"}}],\"problemTypes\":[{\"descriptions\":[{\"cweId\":\"CWE-506\",\"description\":\"CWE-506 Embedded Malicious Code\"}]}],\"references\":[{\"url\":\"https://www.openwall.com/lists/oss-security/2024/03/29/4\"}]}}}", + "expectTitleIncludes": "CVE-2024-3094", + "expectMarkdownIncludes": [ + "CRITICAL", + "CWE-506", + "Tukaani", + "5.6.0" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"CVE_RECORD_NOT_FOUND\",\"message\":\"CVE-9999-999999 not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.cve.org/error", + "payload": "404 Page Not Found

Not Found

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

CVE Services temporarily unavailable for maintenance.

" + }, + { + "name": "cve-org-vue-csr-shell", + "status": 200, + "inputUrl": "https://www.cve.org/CVERecord?id=CVE-2024-3094", + "payload": "CVE Record

Common vulnerabilities and Exposures (CVE)

" + } + ] +} diff --git a/hub/test/fixtures/adapters/datacite.json b/hub/test/fixtures/adapters/datacite.json new file mode 100644 index 0000000..4196d76 --- /dev/null +++ b/hub/test/fixtures/adapters/datacite.json @@ -0,0 +1,43 @@ +{ + "adapterId": "datacite", + "mode": "twin", + "inputUrl": "https://api.datacite.org/dois/10.5281/zenodo.24485086", + "expectedFetchUrl": "https://api.datacite.org/dois/10.5281/zenodo.24485086", + "mockPayload": "{\"data\":{\"id\":\"10.5281/zenodo.24485086\",\"type\":\"dois\",\"attributes\":{\"doi\":\"10.5281/zenodo.24485086\",\"titles\":[{\"title\":\"Open Benchmark Corpus for Multilingual Retrieval\"}],\"creators\":[{\"name\":\"Chen, Wei\"},{\"givenName\":\"Maria\",\"familyName\":\"Silva\"}],\"publisher\":\"Zenodo\",\"publicationYear\":2025,\"types\":{\"resourceTypeGeneral\":\"Dataset\"},\"descriptions\":[{\"description\":\"Curated multilingual retrieval benchmark covering 18 languages.\"}],\"url\":\"https://zenodo.org/records/24485086\"}}}", + "expectTitleIncludes": "Open Benchmark Corpus for Multilingual Retrieval", + "expectMarkdownIncludes": [ + "10.5281/zenodo.24485086", + "Zenodo", + "Dataset", + "Chen, Wei" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"errors\":[{\"status\":\"404\",\"title\":\"The resource you are looking for doesn't exist.\"}]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://commons.datacite.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "queue-full-overload-html", + "status": 503, + "payload": "

This website is under heavy load (queue full)

Please try again later.

" + }, + { + "name": "empty-nextjs-shell", + "status": 200, + "inputUrl": "https://commons.datacite.org/", + "payload": "DataCite Commons
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/dblp.json b/hub/test/fixtures/adapters/dblp.json new file mode 100644 index 0000000..f5374c8 --- /dev/null +++ b/hub/test/fixtures/adapters/dblp.json @@ -0,0 +1,43 @@ +{ + "adapterId": "dblp", + "mode": "twin", + "inputUrl": "https://dblp.org/search/publ/api?q=attention+is+all+you+need&format=json&h=2", + "expectedFetchUrl": "https://dblp.org/search/publ/api?q=attention+is+all+you+need&format=json&h=2", + "mockPayload": "{\"result\":{\"hits\":{\"@total\":\"1\",\"hit\":[{\"info\":{\"title\":\"Attention Is All You Need.\",\"authors\":{\"author\":[{\"text\":\"Ashish Vaswani\"},{\"text\":\"Noam Shazeer\"}]},\"venue\":\"NIPS\",\"year\":\"2017\",\"key\":\"conf/nips/VaswaniSPUJGKP17\",\"ee\":\"https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html\",\"url\":\"https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17\"}}]}}}", + "expectTitleIncludes": "DBLP Search Results", + "expectMarkdownIncludes": [ + "Attention Is All You Need", + "Ashish Vaswani", + "NIPS", + "2017" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "anubis-pow-challenge", + "status": 202, + "inputUrl": "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html", + "payload": "Making sure you're not a bot!

Making sure you're not a bot!

" + }, + { + "name": "empty-hits-json", + "status": 200, + "payload": "{\"result\":{\"hits\":{\"@total\":\"0\",\"hit\":[]}}}" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/doe-osti.json b/hub/test/fixtures/adapters/doe-osti.json new file mode 100644 index 0000000..f6fd9d7 --- /dev/null +++ b/hub/test/fixtures/adapters/doe-osti.json @@ -0,0 +1,38 @@ +{ + "adapterId": "doe-osti", + "mode": "twin", + "inputUrl": "https://www.osti.gov/biblio/1800000", + "expectedFetchUrl": "https://www.osti.gov/api/v1/records/1800000", + "mockPayload": "[{\"osti_id\":\"1800000\",\"title\":\"Thermal and Quantum Melting Phase Diagrams for a Magnetic-Field-Induced Wigner Solid\",\"doi\":\"10.1103/physrevlett.125.036601\",\"publication_date\":\"2020-07-14T00:00:00Z\",\"journal_name\":\"Physical Review Letters\",\"publisher\":\"American Physical Society (APS)\",\"product_type\":\"Journal Article\",\"authors\":[\"Ma, Meng K. [Princeton Univ., NJ (United States)]\",\"Shayegan, M. [Princeton Univ., NJ (United States)]\"],\"research_orgs\":[\"Princeton Univ., NJ (United States)\"],\"sponsor_orgs\":[\"USDOE Office of Science (SC)\"],\"description\":\"Measurements of the temperature vs filling phase diagram for two-dimensional hole Wigner solid melting.\",\"links\":[{\"rel\":\"citation\",\"href\":\"https://www.osti.gov/biblio/1800000\"}]}]", + "expectTitleIncludes": "Thermal and Quantum Melting Phase Diagrams", + "expectMarkdownIncludes": [ + "1800000", + "10.1103/physrevlett.125.036601", + "Physical Review Letters", + "Princeton Univ." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "[]" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.osti.gov/error", + "payload": "404 Page Not Found

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, + "inputUrl": "https://www.osti.gov/biblio/0", + "payload": "Loading...
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/endoflife-date.json b/hub/test/fixtures/adapters/endoflife-date.json new file mode 100644 index 0000000..6703977 --- /dev/null +++ b/hub/test/fixtures/adapters/endoflife-date.json @@ -0,0 +1,38 @@ +{ + "adapterId": "endoflife-date", + "mode": "twin", + "inputUrl": "https://endoflife.date/python", + "expectedFetchUrl": "https://endoflife.date/api/v1/products/python/", + "mockPayload": "{\"schema_version\":\"1.2.0\",\"result\":{\"name\":\"python\",\"label\":\"Python\",\"category\":\"lang\",\"link\":\"https://www.python.org/\",\"releases\":[{\"name\":\"3.13\",\"releaseDate\":\"2024-10-07\",\"eolFrom\":\"2029-10-31\",\"isEol\":false,\"isLts\":false,\"latest\":{\"name\":\"3.13.1\",\"date\":\"2024-12-03\"}},{\"name\":\"3.12\",\"releaseDate\":\"2023-10-02\",\"eolFrom\":\"2028-10-31\",\"isEol\":false,\"isLts\":false,\"latest\":{\"name\":\"3.12.8\",\"date\":\"2024-12-03\"}}]}}", + "expectTitleIncludes": "Python Lifecycle (endoflife.date)", + "expectMarkdownIncludes": [ + "3.13", + "2029-10-31", + "3.13.1", + "3.12.8" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Product not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://endoflife.date/error", + "payload": "404 Not Found

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, + "inputUrl": "https://endoflife.date/docs/api", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/exploit-db.json b/hub/test/fixtures/adapters/exploit-db.json new file mode 100644 index 0000000..b1a81a8 --- /dev/null +++ b/hub/test/fixtures/adapters/exploit-db.json @@ -0,0 +1,35 @@ +{ + "adapterId": "exploit-db", + "mode": "html", + "inputUrl": "https://www.exploit-db.com/exploits/51000", + "mockPayload": "Example Vendor Router 1.0 - Remote Command Injection (CVE-2020-20277)

Example Vendor Router 1.0 - Remote Command Injection

EDB-ID: 51000 | CVE: CVE-2020-20277 | Author: Researcher | Type: webapps | Platform: hardware | Date: 2022-08-01

#!/usr/bin/env python3\nimport requests\nprint('poc for CVE-2020-20277')\n
", + "expectTitleIncludes": "Remote Command Injection", + "expectMarkdownIncludes": [ + "51000", + "CVE-2020-20277", + "poc for CVE-2020-20277" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found | Exploit Database

404 Not Found

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

Page Not Found

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

Exploit-DB is undergoing scheduled maintenance.

" + }, + { + "name": "homepage-redirect-missing-id", + "status": 200, + "payload": "Exploit Database - Exploits for Penetration Testers
" + } + ] +} diff --git a/hub/test/fixtures/adapters/first-epss.json b/hub/test/fixtures/adapters/first-epss.json new file mode 100644 index 0000000..9a03fd5 --- /dev/null +++ b/hub/test/fixtures/adapters/first-epss.json @@ -0,0 +1,37 @@ +{ + "adapterId": "first-epss", + "mode": "twin", + "inputUrl": "https://api.first.org/data/v1/epss?cve=CVE-2024-3094", + "expectedFetchUrl": "https://api.first.org/data/v1/epss?cve=CVE-2024-3094", + "mockPayload": "{\"status\":\"OK\",\"status-code\":200,\"version\":\"1.0\",\"access\":\"public\",\"total\":1,\"offset\":0,\"limit\":100,\"data\":[{\"cve\":\"CVE-2024-3094\",\"epss\":\"0.942100000\",\"percentile\":\"0.999500000\",\"date\":\"2026-11-28\"}]}", + "expectTitleIncludes": "FIRST EPSS", + "expectMarkdownIncludes": [ + "CVE-2024-3094", + "0.94210", + "99.95%", + "2026-11-28" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"status\":\"ERROR\",\"status-code\":404,\"message\":\"CVE not found\",\"data\":[]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.first.org/error", + "payload": "404 Page Not Found

Not Found

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

Service is down for scheduled maintenance.

" + }, + { + "name": "empty-epss-data", + "status": 200, + "payload": "{\"status\":\"OK\",\"status-code\":200,\"total\":0,\"data\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/gerrit.json b/hub/test/fixtures/adapters/gerrit.json new file mode 100644 index 0000000..436971a --- /dev/null +++ b/hub/test/fixtures/adapters/gerrit.json @@ -0,0 +1,43 @@ +{ + "adapterId": "gerrit", + "mode": "twin", + "inputUrl": "https://review.opendev.org/changes/1010181/detail", + "expectedFetchUrl": "https://review.opendev.org/changes/1010181/detail", + "mockPayload": ")]}'\n{\"id\":\"openstack%2Fnova~master~I0123456789abcdef\",\"project\":\"openstack/nova\",\"branch\":\"master\",\"topic\":\"bug/2050000\",\"change_id\":\"I0123456789abcdef\",\"subject\":\"Fix scheduler race in placement allocation\",\"status\":\"MERGED\",\"created\":\"2026-11-10 14:22:01.000000000\",\"updated\":\"2026-11-12 08:45:19.000000000\",\"insertions\":42,\"deletions\":7,\"_number\":1010181,\"owner\":{\"name\":\"OpenDev Contributor\",\"username\":\"opendev-ci\"},\"messages\":[{\"date\":\"2026-11-12 08:45:19.000000000\",\"author\":{\"name\":\"Zuul\"},\"message\":\"Change has been successfully merged\"}]}", + "expectTitleIncludes": "Change 1010181: Fix scheduler race in placement allocation", + "expectMarkdownIncludes": [ + "openstack/nova", + "MERGED", + "+42 / -7", + "2026-11-12" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Not found: 99999999" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://review.opendev.org/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "polygerrit-spa-shell", + "status": 200, + "payload": "Gerrit Code Review" + }, + { + "name": "xssi-empty-array", + "status": 200, + "inputUrl": "https://review.opendev.org/changes/?q=status:merged", + "payload": ")]}'\n[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/jira-public.json b/hub/test/fixtures/adapters/jira-public.json new file mode 100644 index 0000000..0def3cc --- /dev/null +++ b/hub/test/fixtures/adapters/jira-public.json @@ -0,0 +1,38 @@ +{ + "adapterId": "jira-public", + "mode": "twin", + "inputUrl": "https://jira.mariadb.org/rest/api/2/issue/MDEV-30000", + "expectedFetchUrl": "https://jira.mariadb.org/rest/api/2/issue/MDEV-30000", + "mockPayload": "{\"id\":\"256000\",\"key\":\"MDEV-30000\",\"fields\":{\"summary\":\"Optimize InnoDB adaptive hash index contention\",\"issuetype\":{\"name\":\"Bug\"},\"status\":{\"name\":\"Closed\"},\"priority\":{\"name\":\"Major\"},\"resolution\":{\"name\":\"Fixed\"},\"project\":{\"key\":\"MDEV\",\"name\":\"MariaDB Server\"},\"reporter\":{\"displayName\":\"MariaDB Engineer\"},\"created\":\"2023-01-15T10:20:00.000+0000\",\"updated\":\"2026-11-01T16:40:00.000+0000\",\"description\":\"Reduce latch contention on multi-core ARM64 workloads.\",\"comment\":{\"comments\":[{\"created\":\"2026-11-01T16:40:00.000+0000\",\"author\":{\"displayName\":\"Reviewer\"},\"body\":\"Merged into 11.4.\"}]}}}", + "expectTitleIncludes": "[MDEV-30000] Optimize InnoDB adaptive hash index contention", + "expectMarkdownIncludes": [ + "MariaDB Server", + "Closed (Fixed)", + "Major", + "2026-11-01" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"errorMessages\":[\"Issue Does Not Exist\"],\"errors\":{}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://jira.mariadb.org/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "login-wall-or-401", + "status": 200, + "inputUrl": "https://jira.mariadb.org/browse/MDEV-99999", + "payload": "Log in - Jira

Log in to Jira to view this issue.

" + } + ] +} diff --git a/hub/test/fixtures/adapters/mitre-attack.json b/hub/test/fixtures/adapters/mitre-attack.json new file mode 100644 index 0000000..7782317 --- /dev/null +++ b/hub/test/fixtures/adapters/mitre-attack.json @@ -0,0 +1,37 @@ +{ + "adapterId": "mitre-attack", + "mode": "twin", + "inputUrl": "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json", + "expectedFetchUrl": "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json", + "mockPayload": "{\"type\":\"bundle\",\"id\":\"bundle--5560d822-f044-42ab-b68c-0a997eb0fd3f\",\"objects\":[{\"type\":\"x-mitre-collection\",\"id\":\"x-mitre-collection--1f5f1533-f617-4ca8-9ab4-6a02367fa019\",\"name\":\"Enterprise ATT&CK\",\"description\":\"MITRE ATT&CK Enterprise Matrix STIX 2.1 collection.\",\"x_mitre_version\":\"16.1\",\"modified\":\"2026-10-31T14:00:00.000Z\"},{\"type\":\"attack-pattern\",\"id\":\"attack-pattern--7385dfaf-6886-4229-9ecd-6fd678040830\",\"name\":\"Command and Scripting Interpreter\",\"description\":\"Adversaries may abuse command and script interpreters to execute commands.\",\"x_mitre_platforms\":[\"Linux\",\"macOS\",\"Windows\"],\"external_references\":[{\"source_name\":\"mitre-attack\",\"external_id\":\"T1059\",\"url\":\"https://attack.mitre.org/techniques/T1059\"}]},{\"type\":\"attack-pattern\",\"id\":\"attack-pattern--truncated-tail", + "expectTitleIncludes": "Enterprise ATT&CK (v16.1)", + "expectMarkdownIncludes": [ + "T1059", + "Command and Scripting Interpreter", + "Linux, macOS, Windows" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

404: Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://attack.mitre.org/error", + "payload": "Page Not Found | MITRE ATT&CK

Not Found

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

Service temporarily unavailable for maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://attack.mitre.org/techniques/T1059/", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/mitre-cwe-capec.json b/hub/test/fixtures/adapters/mitre-cwe-capec.json new file mode 100644 index 0000000..761c7af --- /dev/null +++ b/hub/test/fixtures/adapters/mitre-cwe-capec.json @@ -0,0 +1,42 @@ +{ + "adapterId": "mitre-cwe-capec", + "mode": "twin", + "inputUrl": "https://cwe-api.mitre.org/api/v1/cwe/weakness/79", + "expectedFetchUrl": "https://cwe-api.mitre.org/api/v1/cwe/weakness/79", + "mockPayload": "{\"Weaknesses\":[{\"ID\":\"79\",\"Name\":\"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\",\"Abstraction\":\"Base\",\"Structure\":\"Simple\",\"Status\":\"Stable\",\"Description\":\"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.\",\"LikelihoodOfExploit\":\"High\",\"PotentialMitigations\":[{\"Phase\":[\"Implementation\"],\"Description\":\"Use context-aware output encoding when rendering untrusted input.\"}]}]}", + "expectTitleIncludes": "CWE-79: Improper Neutralization of Input During Web Page Generation", + "expectMarkdownIncludes": [ + "CWE-79", + "High", + "context-aware output encoding" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Weakness not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://cwe.mitre.org/error", + "payload": "Page Not Found | MITRE CWE

404 Not Found

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

CWE portal is under scheduled maintenance.

" + }, + { + "name": "empty-weaknesses-array", + "status": 200, + "payload": "{\"Weaknesses\":[]}" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://cwe.mitre.org/data/definitions/79.html", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/nasa-ads.json b/hub/test/fixtures/adapters/nasa-ads.json new file mode 100644 index 0000000..b59343c --- /dev/null +++ b/hub/test/fixtures/adapters/nasa-ads.json @@ -0,0 +1,43 @@ +{ + "adapterId": "nasa-ads", + "mode": "twin", + "inputUrl": "https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V&fl=bibcode,title,author", + "expectedFetchUrl": "https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V&fl=bibcode,title,author", + "mockPayload": "{\"responseHeader\":{\"status\":0},\"response\":{\"numFound\":1,\"docs\":[{\"bibcode\":\"2017arXiv170603762V\",\"title\":[\"Attention Is All You Need\"],\"author\":[\"Vaswani, Ashish\",\"Shazeer, Noam\",\"Parmar, Niki\"],\"pub\":\"arXiv e-prints\",\"year\":\"2017\",\"pubdate\":\"2017-06-00\",\"citation_count\":95000,\"doi\":[\"10.48550/arXiv.1706.03762\"],\"abstract\":\"The dominant sequence transduction models are based on complex recurrent or convolutional neural networks.\"}]}}", + "expectTitleIncludes": "Attention Is All You Need", + "expectMarkdownIncludes": [ + "2017arXiv170603762V", + "Vaswani, Ashish", + "10.48550/arXiv.1706.03762", + "95000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://ui.adsabs.harvard.edu/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "missing-authorization-401", + "status": 401, + "payload": "{\"message\":\"Missing \\\"Authorization\\\" in headers.\"}" + }, + { + "name": "aws-waf-202-empty-shell", + "status": 202, + "inputUrl": "https://ui.adsabs.harvard.edu/abs/2017arXiv170603762V/abstract", + "payload": "" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/nih-reporter.json b/hub/test/fixtures/adapters/nih-reporter.json new file mode 100644 index 0000000..1a4f040 --- /dev/null +++ b/hub/test/fixtures/adapters/nih-reporter.json @@ -0,0 +1,38 @@ +{ + "adapterId": "nih-reporter", + "mode": "twin", + "inputUrl": "https://reporter.nih.gov/project-details/10476325", + "expectedFetchUrl": "https://api.reporter.nih.gov/v2/projects/search", + "mockPayload": "{\"meta\":{\"total\":1},\"results\":[{\"appl_id\":10476325,\"project_num\":\"5R01CA242003-04\",\"project_title\":\"Genomic Biomarkers for Early Cancer Detection\",\"fiscal_year\":2023,\"award_amount\":485000,\"project_start_date\":\"2020-07-01T00:00:00Z\",\"project_end_date\":\"2025-06-30T00:00:00Z\",\"organization\":{\"org_name\":\"STANFORD UNIVERSITY\",\"org_city\":\"STANFORD\",\"org_state\":\"CA\"},\"agency_ic_admin\":{\"name\":\"NATIONAL CANCER INSTITUTE\"},\"principal_investigators\":[{\"full_name\":\"JANE DOE\"}],\"abstract_text\":\"This project investigates circulating tumor DNA methylation signatures for early cancer screening.\",\"project_detail_url\":\"https://reporter.nih.gov/project-details/10476325\"}]}", + "expectTitleIncludes": "Genomic Biomarkers for Early Cancer Detection", + "expectMarkdownIncludes": [ + "5R01CA242003-04", + "STANFORD UNIVERSITY", + "JANE DOE", + "$485,000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"meta\":{\"total\":0},\"results\":[]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://reporter.nih.gov/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "empty-csr-spa-shell", + "status": 200, + "inputUrl": "https://reporter.nih.gov/", + "payload": "RePORT › RePORTER
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/nsf-awards.json b/hub/test/fixtures/adapters/nsf-awards.json new file mode 100644 index 0000000..cb898ad --- /dev/null +++ b/hub/test/fixtures/adapters/nsf-awards.json @@ -0,0 +1,43 @@ +{ + "adapterId": "nsf-awards", + "mode": "twin", + "inputUrl": "https://www.nsf.gov/awardsearch/show-award?AWD_ID=2535346", + "expectedFetchUrl": "https://api.nsf.gov/services/v1/awards/2535346.json", + "mockPayload": "{\"response\":{\"award\":[{\"id\":\"2535346\",\"agency\":\"NSF\",\"title\":\"EPSCoR Graduate Fellowship Program (EGFP): Fueling the Research Pathway\",\"awardeeName\":\"University of Nebraska-Lincoln\",\"awardeeCity\":\"LINCOLN\",\"awardeeStateCode\":\"NE\",\"pdPIName\":\"Brigitte Tenhumberg\",\"fundsObligatedAmt\":\"1749000\",\"date\":\"08/25/2026\",\"startDate\":\"03/15/2027\",\"expDate\":\"02/28/2030\",\"fundProgramName\":\"EGF-EPSCoR Graduate Fellowship\",\"abstractText\":\"The National Science Foundation supports graduate fellowships for eligible applicants in EPSCoR jurisdictions.\"}]}}", + "expectTitleIncludes": "EPSCoR Graduate Fellowship Program", + "expectMarkdownIncludes": [ + "2535346", + "University of Nebraska-Lincoln", + "Brigitte Tenhumberg", + "$1,749,000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"response\":{\"award\":[]}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.nsf.gov/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "empty-award-array-200", + "status": 200, + "payload": "{\"response\":{\"award\":[]}}" + }, + { + "name": "empty-csr-spa-shell", + "status": 200, + "inputUrl": "https://www.nsf.gov/awardsearch/", + "payload": "Award Details - NSF Award Search" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/orcid.json b/hub/test/fixtures/adapters/orcid.json new file mode 100644 index 0000000..72e36a6 --- /dev/null +++ b/hub/test/fixtures/adapters/orcid.json @@ -0,0 +1,37 @@ +{ + "adapterId": "orcid", + "mode": "twin", + "inputUrl": "https://pub.orcid.org/v3.0/0000-0002-1825-0097/record", + "expectedFetchUrl": "https://pub.orcid.org/v3.0/0000-0002-1825-0097/record", + "mockPayload": "{\"orcid-identifier\":{\"uri\":\"https://orcid.org/0000-0002-1825-0097\",\"path\":\"0000-0002-1825-0097\"},\"person\":{\"name\":{\"given-names\":{\"value\":\"Josiah\"},\"family-name\":{\"value\":\"Carberry\"},\"credit-name\":{\"value\":\"Josiah Stinkney Carberry\"}},\"biography\":{\"content\":\"Professor of Psychoceramics at Brown University.\"},\"researcher-urls\":{\"researcher-url\":[{\"url\":{\"value\":\"https://library.brown.edu/\"}}]}},\"activities-summary\":{\"employments\":{\"affiliation-group\":[{\"summaries\":[{\"employment-summary\":{\"organization\":{\"name\":\"Brown University\"},\"role-title\":\"Professor of Psychoceramics\",\"start-date\":{\"year\":{\"value\":\"1929\"}}}}]}]},\"works\":{\"group\":[{\"work-summary\":[{\"title\":{\"title\":{\"value\":\"Cracked Pots and Ancient Ceramics\"}},\"type\":\"journal-article\",\"publication-date\":{\"year\":{\"value\":\"1955\"}}}]}]}}}", + "expectTitleIncludes": "Josiah Stinkney Carberry", + "expectMarkdownIncludes": [ + "0000-0002-1825-0097", + "Brown University", + "Cracked Pots and Ancient Ceramics" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error-code\":9016,\"developer-message\":\"ORCID iD not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://orcid.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "empty-angular-csr-shell", + "status": 200, + "inputUrl": "https://orcid.org/0000-0002-1825-0097", + "payload": "ORCID" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/rdap.json b/hub/test/fixtures/adapters/rdap.json new file mode 100644 index 0000000..d9e736f --- /dev/null +++ b/hub/test/fixtures/adapters/rdap.json @@ -0,0 +1,37 @@ +{ + "adapterId": "rdap", + "mode": "twin", + "inputUrl": "https://rdap.verisign.com/com/v1/domain/example.com", + "expectedFetchUrl": "https://rdap.verisign.com/com/v1/domain/example.com", + "mockPayload": "{\"objectClassName\":\"domain\",\"handle\":\"2336799_DOMAIN_COM-VRSN\",\"ldhName\":\"EXAMPLE.COM\",\"status\":[\"client delete prohibited\",\"client transfer prohibited\",\"client update prohibited\"],\"events\":[{\"eventAction\":\"registration\",\"eventDate\":\"1995-08-14T04:00:00Z\"},{\"eventAction\":\"expiration\",\"eventDate\":\"2027-08-13T04:00:00Z\"}],\"nameservers\":[{\"objectClassName\":\"nameserver\",\"ldhName\":\"A.IANA-SERVERS.NET\"},{\"objectClassName\":\"nameserver\",\"ldhName\":\"B.IANA-SERVERS.NET\"}],\"entities\":[{\"objectClassName\":\"entity\",\"handle\":\"376\",\"roles\":[\"registrar\"],\"vcardArray\":[\"vcard\",[[\"fn\",{},\"text\",\"RESERVED-Internet Assigned Numbers Authority\"]]]}]}", + "expectTitleIncludes": "RDAP (domain) — EXAMPLE.COM", + "expectMarkdownIncludes": [ + "2336799_DOMAIN_COM-VRSN", + "A.IANA-SERVERS.NET", + "1995-08-14", + "RESERVED-Internet Assigned Numbers Authority" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"errorCode\":404,\"title\":\"Not Found\",\"description\":[\"Domain not found\"]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://rdap.verisign.com/error", + "payload": "404 Page Not Found

Not Found

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

RDAP service temporarily unavailable for maintenance.

" + }, + { + "name": "rdap-error-400", + "status": 400, + "payload": "{\"errorCode\":400,\"title\":\"Bad Request\"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/research-repo-pack.json b/hub/test/fixtures/adapters/research-repo-pack.json new file mode 100644 index 0000000..2a0864b --- /dev/null +++ b/hub/test/fixtures/adapters/research-repo-pack.json @@ -0,0 +1,44 @@ +{ + "adapterId": "research-repo-pack", + "mode": "twin", + "inputUrl": "https://api.figshare.com/v2/articles/35148283", + "expectedFetchUrl": "https://api.figshare.com/v2/articles/35148283", + "mockPayload": "{\"id\":35148283,\"title\":\"Global Climate Reanalysis Dataset 2020-2025\",\"doi\":\"10.6084/m9.figshare.35148283\",\"published_date\":\"2025-10-01T12:00:00Z\",\"license\":{\"name\":\"CC BY 4.0\"},\"authors\":[{\"full_name\":\"Alice Researcher\"},{\"full_name\":\"Bob Scientist\"}],\"tags\":[\"climate\",\"reanalysis\"],\"description\":\"Gridded atmospheric reanalysis measurements across global stations.\",\"url_public_html\":\"https://figshare.com/articles/dataset/Global_Climate_Reanalysis/35148283\",\"files\":[{\"name\":\"reanalysis.nc\"}]}", + "expectTitleIncludes": "Global Climate Reanalysis Dataset 2020-2025", + "expectMarkdownIncludes": [ + "Figshare", + "10.6084/m9.figshare.35148283", + "Alice Researcher", + "CC BY 4.0" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Entity not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://zenodo.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "figshare-202-empty-waf", + "status": 202, + "inputUrl": "https://figshare.com/", + "payload": "" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://zenodo.org/records/0", + "payload": "Loading...
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/ror.json b/hub/test/fixtures/adapters/ror.json new file mode 100644 index 0000000..46bb115 --- /dev/null +++ b/hub/test/fixtures/adapters/ror.json @@ -0,0 +1,44 @@ +{ + "adapterId": "ror", + "mode": "twin", + "inputUrl": "https://api.ror.org/v2/organizations/03yrm5c26", + "expectedFetchUrl": "https://api.ror.org/v2/organizations/03yrm5c26", + "mockPayload": "{\"id\":\"https://ror.org/03yrm5c26\",\"domains\":[\"cdlib.org\"],\"established\":1997,\"status\":\"active\",\"types\":[\"archive\",\"funder\"],\"names\":[{\"lang\":\"en\",\"types\":[\"ror_display\",\"label\"],\"value\":\"California Digital Library\"},{\"lang\":\"en\",\"types\":[\"acronym\"],\"value\":\"CDL\"}],\"links\":[{\"type\":\"website\",\"value\":\"https://cdlib.org\"}],\"locations\":[{\"geonames_details\":{\"name\":\"Oakland\",\"country_subdivision_name\":\"California\",\"country_name\":\"United States\"}}],\"external_ids\":[{\"type\":\"grid\",\"preferred\":\"grid.463323.3\",\"all\":[\"grid.463323.3\"]}]}", + "expectTitleIncludes": "California Digital Library", + "expectMarkdownIncludes": [ + "03yrm5c26", + "cdlib.org", + "Oakland, California, United States", + "grid: grid.463323.3" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"errors\":[\"ROR ID 000000000 does not exist\"]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://ror.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "vercel-security-checkpoint", + "status": 429, + "inputUrl": "https://ror.org/03yrm5c26", + "payload": "Vercel Security Checkpoint

We're verifying your browser before proceeding.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://ror.org/03yrm5c26", + "payload": "ROR
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/security-txt.json b/hub/test/fixtures/adapters/security-txt.json new file mode 100644 index 0000000..36e113f --- /dev/null +++ b/hub/test/fixtures/adapters/security-txt.json @@ -0,0 +1,36 @@ +{ + "adapterId": "security-txt", + "mode": "twin", + "inputUrl": "https://www.cloudflare.com/.well-known/security.txt", + "expectedFetchUrl": "https://www.cloudflare.com/.well-known/security.txt", + "mockPayload": "Contact: https://hackerone.com/cloudflare\nContact: mailto:security@cloudflare.com\nExpires: 2027-06-30T23:59:59Z\nEncryption: https://www.cloudflare.com/gpg-key.asc\nPreferred-Languages: en\nCanonical: https://www.cloudflare.com/.well-known/security.txt\nPolicy: https://www.cloudflare.com/disclosure-policy/\n", + "expectTitleIncludes": "security.txt", + "expectMarkdownIncludes": [ + "https://hackerone.com/cloudflare", + "mailto:security@cloudflare.com", + "2027-06-30" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

Temporarily unavailable for maintenance.

" + }, + { + "name": "missing-contact-directive", + "status": 200, + "payload": "# Just a comment without Contact\nExpires: 2027-06-30T23:59:59Z\n" + } + ] +} diff --git a/hub/test/fixtures/adapters/semantic-scholar.json b/hub/test/fixtures/adapters/semantic-scholar.json new file mode 100644 index 0000000..4386846 --- /dev/null +++ b/hub/test/fixtures/adapters/semantic-scholar.json @@ -0,0 +1,44 @@ +{ + "adapterId": "semantic-scholar", + "mode": "twin", + "inputUrl": "https://api.semanticscholar.org/graph/v1/paper/DOI:10.1038/s41586-021-03819-2?fields=paperId,title,year,authors,abstract,citationCount,openAccessPdf,externalIds", + "expectedFetchUrl": "https://api.semanticscholar.org/graph/v1/paper/DOI:10.1038/s41586-021-03819-2?fields=paperId,title,year,authors,abstract,citationCount,openAccessPdf,externalIds", + "mockPayload": "{\"paperId\":\"204e3073870fae3d05bcbc2f6a8e263d9b72e776\",\"externalIds\":{\"DOI\":\"10.1038/s41586-021-03819-2\",\"ArXiv\":\"2103.00020\"},\"url\":\"https://www.semanticscholar.org/paper/204e3073870fae3d05bcbc2f6a8e263d9b72e776\",\"title\":\"Highly accurate protein structure prediction with AlphaFold\",\"abstract\":\"Proteins are essential to life, and understanding their structure can facilitate a mechanistic understanding of their function. Here we show that the first computational method that can regularly predict atomic accuracy structures with atomic precision is AlphaFold.\",\"venue\":\"Nature\",\"year\":2021,\"citationCount\":28412,\"referenceCount\":72,\"influentialCitationCount\":1950,\"openAccessPdf\":{\"url\":\"https://www.nature.com/articles/s41586-021-03819-2.pdf\",\"status\":\"HYBRID\"},\"authors\":[{\"authorId\":\"1\",\"name\":\"John Jumper\"},{\"authorId\":\"2\",\"name\":\"Demis Hassabis\"}]}", + "expectTitleIncludes": "Highly accurate protein structure prediction with AlphaFold", + "expectMarkdownIncludes": [ + "John Jumper", + "10.1038/s41586-021-03819-2", + "28412", + "AlphaFold" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Paper with id DOI:10.9999/missing not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.semanticscholar.org/error", + "payload": "404 Page Not Found

Not Found

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

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

" + }, + { + "name": "aws-waf-202-empty-shell", + "status": 202, + "inputUrl": "https://www.semanticscholar.org/paper/Attention-is-All-you-Need-Vaswani-Shazeer/204e3073870fae3d05bcbc2f6a8e263d9b72e776", + "payload": "" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.semanticscholar.org/paper/Missing-Paper/0000000000000000000000000000000000000000", + "payload": "Semantic Scholar
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/sourceforge-launchpad.json b/hub/test/fixtures/adapters/sourceforge-launchpad.json new file mode 100644 index 0000000..614a984 --- /dev/null +++ b/hub/test/fixtures/adapters/sourceforge-launchpad.json @@ -0,0 +1,38 @@ +{ + "adapterId": "sourceforge-launchpad", + "mode": "twin", + "inputUrl": "https://sourceforge.net/projects/sevenzip/", + "expectedFetchUrl": "https://sourceforge.net/rest/p/sevenzip", + "mockPayload": "{\"shortname\":\"sevenzip\",\"name\":\"7-Zip\",\"short_description\":\"A free file archiver for extremely high compression.\",\"creation_date\":\"2002-02-27\",\"status\":\"active\",\"url\":\"https://sourceforge.net/projects/sevenzip/\",\"external_homepage\":\"https://www.7-zip.org/\",\"categories\":{\"topic\":[{\"fullname\":\"Archiving\"}],\"license\":[{\"fullname\":\"GNU Library or Lesser General Public License version 2.0 (LGPLv2)\"}]},\"developers\":[{\"name\":\"Igor Pavlov\",\"username\":\"ipavlov\"}]}", + "expectTitleIncludes": "7-Zip", + "expectMarkdownIncludes": [ + "sevenzip", + "2002-02-27", + "Igor Pavlov", + "https://www.7-zip.org/" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Whoops, we couldn't find that page

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

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, + "inputUrl": "https://launchpad.net/nonexistent-project", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ssrn-nber.json b/hub/test/fixtures/adapters/ssrn-nber.json new file mode 100644 index 0000000..4aa2962 --- /dev/null +++ b/hub/test/fixtures/adapters/ssrn-nber.json @@ -0,0 +1,42 @@ +{ + "adapterId": "ssrn-nber", + "mode": "html", + "inputUrl": "https://www.nber.org/papers/w30000", + "mockPayload": "Macroeconomic Effects of Supply Chain Disruptions | NBER

Macroeconomic Effects of Supply Chain Disruptions

We develop a multi-sector general equilibrium model to quantify how input bottlenecks propagate across international supply chains and affect aggregate inflation.

", + "expectTitleIncludes": "Macroeconomic Effects of Supply Chain Disruptions", + "expectMarkdownIncludes": [ + "w30000", + "Alice Economist", + "10.3386/w30000", + "2022-04-25" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | NBER

404 Not Found

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

Not Found

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

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

" + }, + { + "name": "ssrn-cloudflare-challenge", + "status": 403, + "inputUrl": "https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4131630", + "payload": "Just a moment...
Enable JavaScript and cookies to continue
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/unpaywall.json b/hub/test/fixtures/adapters/unpaywall.json new file mode 100644 index 0000000..b6c8857 --- /dev/null +++ b/hub/test/fixtures/adapters/unpaywall.json @@ -0,0 +1,39 @@ +{ + "adapterId": "unpaywall", + "mode": "twin", + "inputUrl": "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2", + "expectedFetchUrl": "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=bot%40edgefetch.dev", + "mockPayload": "{\"doi\":\"10.1038/s41586-021-03819-2\",\"title\":\"Highly accurate protein structure prediction with AlphaFold\",\"is_oa\":true,\"oa_status\":\"hybrid\",\"journal_name\":\"Nature\",\"publisher\":\"Springer Science and Business Media LLC\",\"published_date\":\"2021-07-15\",\"genre\":\"journal-article\",\"best_oa_location\":{\"url\":\"https://www.nature.com/articles/s41586-021-03819-2\",\"url_for_pdf\":\"https://www.nature.com/articles/s41586-021-03819-2.pdf\",\"license\":\"cc-by\",\"host_type\":\"publisher\",\"version\":\"publishedVersion\"},\"oa_locations\":[{\"url\":\"https://www.nature.com/articles/s41586-021-03819-2\",\"url_for_pdf\":\"https://www.nature.com/articles/s41586-021-03819-2.pdf\",\"license\":\"cc-by\",\"host_type\":\"publisher\",\"version\":\"publishedVersion\"}],\"z_authors\":[{\"given\":\"John\",\"family\":\"Jumper\"},{\"given\":\"Richard\",\"family\":\"Evans\"}]}", + "expectTitleIncludes": "Highly accurate protein structure prediction with AlphaFold", + "expectMarkdownIncludes": [ + "10.1038/s41586-021-03819-2", + "hybrid", + "Nature", + "John Jumper", + "cc-by" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":true,\"HTTP_status_code\":404,\"message\":\"DOI 10.9999/missing not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.unpaywall.org/error", + "payload": "404 Page Not Found

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, + "inputUrl": "https://unpaywall.org/", + "payload": "Loading...
" + } + ] +} \ No newline at end of file diff --git a/hub/test/fixtures/adapters/vendor-csaf.json b/hub/test/fixtures/adapters/vendor-csaf.json new file mode 100644 index 0000000..5c44b4b --- /dev/null +++ b/hub/test/fixtures/adapters/vendor-csaf.json @@ -0,0 +1,38 @@ +{ + "adapterId": "vendor-csaf", + "mode": "twin", + "inputUrl": "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_88339.json", + "expectedFetchUrl": "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_88339.json", + "mockPayload": "{\"document\":{\"category\":\"csaf_security_advisory\",\"csaf_version\":\"2.0\",\"title\":\"Red Hat Security Advisory: openssl security update\",\"aggregate_severity\":{\"text\":\"Important\"},\"publisher\":{\"name\":\"Red Hat Product Security\",\"namespace\":\"https://access.redhat.com\"},\"tracking\":{\"id\":\"RHSA-2026:88339\",\"status\":\"final\",\"current_release_date\":\"2026-11-20T10:00:00Z\"},\"notes\":[{\"category\":\"summary\",\"text\":\"An update for openssl is now available for Red Hat Enterprise Linux 9.\"}]},\"vulnerabilities\":[{\"cve\":\"CVE-2026-10001\",\"title\":\"openssl: buffer overread in TLS handshake\",\"cwe\":{\"id\":\"CWE-125\"},\"scores\":[{\"cvss_v3\":{\"baseScore\":7.5}}]}]}", + "expectTitleIncludes": "RHSA-2026:88339", + "expectMarkdownIncludes": [ + "Red Hat Product Security", + "Important", + "CVE-2026-10001", + "7.5", + "CWE-125" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"CSAF advisory not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://security.access.redhat.com/error", + "payload": "404 Page Not Found

Not Found

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

Service temporarily unavailable for maintenance.

" + }, + { + "name": "okta-auth-error-html", + "status": 410, + "payload": "CAE-XAUTH-ERR

REAUTH REQUIRED

" + } + ] +} diff --git a/hub/test/fixtures/adapters/vscode-open-vsx.json b/hub/test/fixtures/adapters/vscode-open-vsx.json new file mode 100644 index 0000000..706422c --- /dev/null +++ b/hub/test/fixtures/adapters/vscode-open-vsx.json @@ -0,0 +1,38 @@ +{ + "adapterId": "vscode-open-vsx", + "mode": "twin", + "inputUrl": "https://open-vsx.org/api/esbenp/prettier-vscode", + "expectedFetchUrl": "https://open-vsx.org/api/esbenp/prettier-vscode", + "mockPayload": "{\"namespace\":\"esbenp\",\"name\":\"prettier-vscode\",\"version\":\"11.0.0\",\"displayName\":\"Prettier - Code formatter\",\"description\":\"Code formatter using prettier\",\"license\":\"MIT\",\"downloadCount\":5420000,\"averageRating\":4.6,\"timestamp\":\"2026-10-28T11:30:00Z\",\"publishedBy\":{\"loginName\":\"esbenp\"},\"repository\":\"https://github.com/prettier/prettier-vscode\",\"files\":{\"download\":\"https://open-vsx.org/api/esbenp/prettier-vscode/11.0.0/file/esbenp.prettier-vscode-11.0.0.vsix\"}}", + "expectTitleIncludes": "Prettier - Code formatter", + "expectMarkdownIncludes": [ + "esbenp.prettier-vscode", + "11.0.0", + "MIT", + "5420000" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Extension esbenp.missing not found.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://open-vsx.org/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-marketplace-shell", + "status": 200, + "inputUrl": "https://marketplace.visualstudio.com/items?itemName=missing.ext", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/web-compat-data.json b/hub/test/fixtures/adapters/web-compat-data.json new file mode 100644 index 0000000..f1c2873 --- /dev/null +++ b/hub/test/fixtures/adapters/web-compat-data.json @@ -0,0 +1,39 @@ +{ + "adapterId": "web-compat-data", + "mode": "twin", + "inputUrl": "https://api.webstatus.dev/v1/features/aborting", + "expectedFetchUrl": "https://api.webstatus.dev/v1/features/aborting", + "mockPayload": "{\"feature_id\":\"aborting\",\"name\":\"AbortController and AbortSignal\",\"baseline\":{\"status\":\"widely\",\"low_date\":\"2019-03-25\",\"high_date\":\"2021-09-25\"},\"browser_implementations\":{\"chrome\":{\"status\":\"available\",\"version\":\"66\",\"date\":\"2018-04-17\"},\"firefox\":{\"status\":\"available\",\"version\":\"57\",\"date\":\"2017-11-14\"},\"safari\":{\"status\":\"available\",\"version\":\"12.1\",\"date\":\"2019-03-25\"}},\"spec\":{\"links\":[{\"link\":\"https://dom.spec.whatwg.org/#interface-abortcontroller\"}]}}", + "expectTitleIncludes": "AbortController and AbortSignal (Web Platform Status)", + "expectMarkdownIncludes": [ + "aborting", + "widely", + "2019-03-25", + "2021-09-25", + "chrome" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"code\":404,\"message\":\"feature not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.webstatus.dev/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-caniuse-spa-shell", + "status": 200, + "inputUrl": "https://caniuse.com/nonexistent-feature", + "payload": "Can I use... Support tables for HTML5, CSS3, etc
" + } + ] +} diff --git a/hub/test/fixtures/adapters/wordpress-org-plugins.json b/hub/test/fixtures/adapters/wordpress-org-plugins.json new file mode 100644 index 0000000..a49b97e --- /dev/null +++ b/hub/test/fixtures/adapters/wordpress-org-plugins.json @@ -0,0 +1,36 @@ +{ + "adapterId": "wordpress-org-plugins", + "mode": "html", + "inputUrl": "https://wordpress.org/plugins/akismet/", + "mockPayload": "Akismet Anti-spam: Spam Protection - WordPress plugin | WordPress.org

Akismet Anti-spam: Spam Protection

Checks your comments and contact form submissions against our global database of spam.

", + "expectTitleIncludes": "Akismet Anti-spam: Spam Protection", + "expectMarkdownIncludes": [ + "5.3.5", + "Automattic", + "WordPress", + "4.7 (1020 ratings)" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | WordPress.org

Plugin not found

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

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...
" + } + ] +} diff --git a/hub/test/post-fetch-wasm.ts b/hub/test/post-fetch-wasm.ts index de7d758..809c02e 100644 --- a/hub/test/post-fetch-wasm.ts +++ b/hub/test/post-fetch-wasm.ts @@ -8,16 +8,27 @@ * must prove what production selects, not what a parallel implementation selects. */ +import { resolveAdapterPolicyForUrl } from '../src/adapter-policy'; import type { PostFetchSiteResult } from '../src/extractors/types'; import { callCoreWasmRawMetaPair } from '../src/wasm-bridge'; /** Runs Go post-fetch htmlRoute selection for `baseUrl`; returns the first non-empty extraction or `null`. */ export function postExtractHtml(rawHtml: string, baseUrl: string | undefined, currentMd = ''): PostFetchSiteResult | null { if (!baseUrl) return null; + let html = String(rawHtml ?? ''); + if (html.length > 1_048_576) { + const pol = resolveAdapterPolicyForUrl(baseUrl); + if (pol.maxFetchBytes && pol.maxFetchBytes > 0 && html.length > pol.maxFetchBytes) { + let end = pol.maxFetchBytes; + const last = html.charCodeAt(end - 1); + if (last >= 0xd800 && last <= 0xdbff) end--; + html = html.slice(0, end); + } + } const res = callCoreWasmRawMetaPair<{ ok: boolean; result?: PostFetchSiteResult }>( 'post_extract_html', { baseUrl }, - String(rawHtml ?? ''), + html, String(currentMd ?? ''), ); return res.ok && res.result && res.result.markdown.trim() ? res.result : null; diff --git a/hub/test/wave3-b4-research-security-dev.test.ts b/hub/test/wave3-b4-research-security-dev.test.ts new file mode 100644 index 0000000..280514d --- /dev/null +++ b/hub/test/wave3-b4-research-security-dev.test.ts @@ -0,0 +1,1013 @@ +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 { + fetchWithOfficialApiKey, + redactSecretsInBody, + resolveOfficialApiProviderSpec, + 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 } from '../src/otel'; +import { resetOverflowRobotsCacheForTests } from '../src/overflow'; +import { + executeScrapeCall, + extractHtmlDocument, + isTrustedTwinRedirectUrl, + isTwinRedirectedToErrorPage, +} from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { resetIsolateBudgetForTests } from '../src/wasm-bridge'; +import { assertFastAsync, assertFastUnscaledSync } from './perf-budget'; + +const WAVE3_B4_CAT_L_IDS = [ + 'semantic-scholar', + 'unpaywall', + 'core-ac', + 'orcid', + 'ror', + 'dblp', + 'biorxiv-medrxiv', + 'nasa-ads', + 'nih-reporter', + 'nsf-awards', + 'doe-osti', + 'research-repo-pack', + 'datacite', + 'ssrn-nber', +] as const; + +const WAVE3_B4_CAT_M_IDS = [ + 'cisa-kev', + 'first-epss', + 'mitre-attack', + 'mitre-cwe-capec', + 'cve-org', + 'cisa-advisories-ics', + 'vendor-csaf', + 'security-txt', + 'exploit-db', + 'certificate-transparency', + 'rdap', + 'bgp-asn', +] as const; + +const WAVE3_B4_CAT_N_IDS = [ + 'bitbucket-cloud', + 'sourceforge-launchpad', + 'gerrit', + 'bugzilla', + 'jira-public', + 'wordpress-org-plugins', + 'vscode-open-vsx', + 'browser-addons-amo-cws', + 'artifact-hub', + 'ansible-puppet-forge', + 'apis-guru', + 'endoflife-date', + 'web-compat-data', + 'bundlephobia-packagephobia', +] as const; + +const ALL_B4_IDS = [ + ...WAVE3_B4_CAT_L_IDS, + ...WAVE3_B4_CAT_M_IDS, + ...WAVE3_B4_CAT_N_IDS, +] as const; + +interface B4Fixture { + 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 B4 Integration: All 40 adapter IDs registered, telemetry aligned, zero Rule 7 additions', () => { + assert.equal(ALL_B4_IDS.length, 40, 'Batch B4 must cover all 40 adapters (#301-#340)'); + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of ALL_B4_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_B4_CAT_L_IDS) { + assert.equal(registered.get(id)?.category, 'research-health', `${id} must have category research-health`); + } + for (const id of [...WAVE3_B4_CAT_M_IDS, ...WAVE3_B4_CAT_N_IDS]) { + assert.equal(registered.get(id)?.category, 'developer', `${id} must have category developer`); + } + + // 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_B4_IDS) { + assert.equal(crossBlock.includes(`'${id}'`), false, `Rule 7 violation: ${id} in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + for (const forbiddenHost of ['api.biorxiv.org', 'cveawg.mitre.org', 'api.osf.io']) { + assert.equal(crossBlock.includes(forbiddenHost), false, `Rule 7 violation: ${forbiddenHost} in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + + 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_B4_IDS) { + assert.equal(goCrossMatch[1]!.includes(`"${id}"`), false, `Rule 7 Go violation: ${id} in approvedCrossDomainTwinHostsGo`); + } +}); + +test('Wave 3 B4 Fixtures: All 40 golden + >=4 negative cases pass via formatTwin/HTML, executeScrapeCall, executeExtractCall & RequestTracer', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + const keyedSecrets: Record = { + 'core-ac': 'secret_core_ac_api_key_9988776655', + 'nasa-ads': 'secret_nasa_ads_api_key_9988776655', + }; + + for (const slug of ALL_B4_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as B4Fixture; + 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 B4 Cat L: Keyed APIs (core-ac/nasa-ads/semantic-scholar), secret redaction, Unpaywall email, Crawl-delay policy, DBLP Anubis, Rule 7 bioRxiv/medRxiv', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. Keyed API providers: core-ac & nasa-ads require key (422 key_required), inject Bearer, redact secret; semantic-scholar has optional x-api-key spec + assert.equal(resolveOfficialApiProviderSpecForUrl('core-ac').envKeyName, 'CORE_AC_API_KEY'); + assert.deepEqual(resolveOfficialApiProviderSpecForUrl('core-ac').defaultInjection, { + kind: 'header', + name: 'Authorization', + prefix: 'Bearer ', + }); + assert.equal(resolveOfficialApiProviderSpecForUrl('nasa-ads').envKeyName, 'NASA_ADS_API_KEY'); + assert.deepEqual(resolveOfficialApiProviderSpecForUrl('nasa-ads').defaultInjection, { + kind: 'header', + name: 'Authorization', + prefix: 'Bearer ', + }); + assert.equal(resolveOfficialApiProviderSpec('semantic-scholar').envKeyName, 'SEMANTIC_SCHOLAR_API_KEY'); + assert.deepEqual(resolveOfficialApiProviderSpec('semantic-scholar').defaultInjection, { + kind: 'header', + name: 'x-api-key', + }); + + const core422 = await executeScrapeCall({ + payload: { url: 'https://api.core.ac.uk/v3/works/11689643', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async () => { + throw new Error('core-ac without key must return 422 key_required'); + }, + }); + assert.equal(core422.status, 422); + assert.equal(core422.body.error, 'key_required'); + + const coreSecret = 'core_bearer_secret+with space/9988'; + const coreScrape = await executeScrapeCall({ + payload: { url: 'https://api.core.ac.uk/v3/works/11689643', discoverLlmsTxt: false, noCache: true }, + env: { + CORE_AC_API_KEY: coreSecret, + 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('authorization'), `Bearer ${coreSecret}`); + return new Response( + JSON.stringify({ + id: 11689643, + title: 'Solar Energy Conversion Systems', + doi: '10.1016/j.solener.2020.01.001', + yearPublished: 2020, + echoRaw: coreSecret, + echoEnc: encodeURIComponent(coreSecret), + echoPlus: encodeURIComponent(coreSecret).replace(/%20/g, '+'), + authors: [{ name: 'Elena Vance' }], + abstract: `Grid study token=${coreSecret}`, + }), + { status: 200, headers: { 'content-type': 'application/json' } }, + ); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('core-ac must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(coreScrape.status, 200); + assert.equal(coreScrape.body.extractorId, 'core-ac'); + const coreSerialized = JSON.stringify(coreScrape.body); + assert.equal(coreSerialized.includes(coreSecret), false); + assert.equal(coreSerialized.includes(encodeURIComponent(coreSecret)), false); + assert.equal(coreSerialized.includes(encodeURIComponent(coreSecret).replace(/%20/g, '+')), false); + + const ads422 = await executeScrapeCall({ + payload: { url: 'https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async () => { + throw new Error('nasa-ads without key must return 422 key_required'); + }, + }); + assert.equal(ads422.status, 422); + assert.equal(ads422.body.error, 'key_required'); + + const adsSecret = 'nasa_ads_bearer_secret_1234567890'; + const adsErr502 = await executeScrapeCall({ + payload: { url: 'https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V', discoverLlmsTxt: false, noCache: true }, + env: { + NASA_ADS_API_KEY: adsSecret, + 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 with token=${encodeURIComponent(adsSecret)}`); + }) as typeof fetch, + } as never, + executeHubFetch: async () => { + throw new Error('nasa-ads must use fetchWithOfficialApiKey'); + }, + }); + assert.equal(adsErr502.status, 502); + assert.equal(JSON.stringify(adsErr502.body).includes(adsSecret), false); + + // makeKeyHint (< 16 -> ****) & redactSecretsInBody / scrubSecretFromText + const masterKey = 'vault-master-key-wave3-b4-integration-0123456789'; + const shortCore = await sealUserApiKey({ vaultMasterKey: masterKey, userId: 'u1', provider: 'core-ac', apiKey: 'short-15-chars!' }); + assert.equal(shortCore.ok, true); + if (shortCore.ok) assert.equal(shortCore.keyHint, '****'); + const longAds = await sealUserApiKey({ vaultMasterKey: masterKey, userId: 'u1', provider: 'nasa-ads', apiKey: 'long-enough-16ch' }); + assert.equal(longAds.ok, true); + if (longAds.ok) assert.equal(longAds.keyHint, '...16ch'); + + const directFetch = await fetchWithOfficialApiKey({ + url: 'https://api.adsabs.harvard.edu/v1/search/query?q=test', + apiKey: adsSecret, + injection: { kind: 'header', name: 'Authorization', prefix: 'Bearer ' }, + 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: adsSecret }), { status: 200, headers: { 'content-type': 'application/json' } }); + }, + }); + assert.equal(directFetch.ok, true); + if (directFetch.ok) assert.equal(directFetch.body.includes(adsSecret), false); + assert.equal(redactSecretsInBody(`val=${encodeURIComponent('k+1 2')}`, ['k+1 2']), 'val=[redacted]'); + assert.equal(scrubSecretFromText(`err=${encodeURIComponent('k+1 2')}`, ['k+1 2']), 'err=[redacted]'); + + // 2. #302 unpaywall: unconditionally enforces ?email=bot@edgefetch.dev (even if caller passes another email) + const unpaywallNoEmail = resolveSiteExtractorTwin('https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2'); + assert.ok(unpaywallNoEmail && unpaywallNoEmail.id === 'unpaywall'); + assert.equal(new URL(unpaywallNoEmail.fetchUrl).searchParams.get('email'), 'bot@edgefetch.dev'); + + const unpaywallCallerEmail = resolveSiteExtractorTwin('https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=caller@example.com'); + assert.ok(unpaywallCallerEmail && unpaywallCallerEmail.id === 'unpaywall'); + assert.equal(new URL(unpaywallCallerEmail.fetchUrl).searchParams.get('email'), 'bot@edgefetch.dev'); + assert.equal(unpaywallCallerEmail.fetchUrl.includes('caller@example.com'), false); + + // 3. Per-host Crawl-delay policy defaults in internal/extract/policy.go via WASM + const policyExpectations = [ + { url: 'https://dblp.org/search/publ/api?q=llm', id: 'dblp', minIntervalMs: 4000, maxConcurrent: 1, strictRobots: true }, + { url: 'https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1', id: 'biorxiv-medrxiv', minIntervalMs: 7000, maxConcurrent: 1, strictRobots: true }, + { url: 'https://zenodo.org/records/24485086', id: 'research-repo-pack', minIntervalMs: 10000, maxConcurrent: 1, strictRobots: true }, + { url: 'https://osf.io/abcde/', id: 'research-repo-pack', minIntervalMs: 10000, maxConcurrent: 1, strictRobots: true }, + { url: 'https://datadryad.org/dataset/doi:10.5061/dryad.7rh4625', id: 'research-repo-pack', minIntervalMs: 5000, maxConcurrent: 1, strictRobots: true }, + { url: 'https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4131630', id: 'ssrn-nber', minIntervalMs: 5000, maxConcurrent: 1, strictRobots: true }, + ]; + for (const pe of policyExpectations) { + const pol = resolveAdapterPolicyForUrl(pe.url); + assert.equal(pol.adapterId, pe.id, `policy adapterId mismatch for ${pe.url}`); + assert.equal(pol.minIntervalMs, pe.minIntervalMs, `policy minIntervalMs mismatch for ${pe.url}`); + assert.equal(pol.maxConcurrent, pe.maxConcurrent, `policy maxConcurrent mismatch for ${pe.url}`); + assert.equal(pol.strictRobots, pe.strictRobots, `policy strictRobots mismatch for ${pe.url}`); + } + + // 4. #306 dblp Anubis PoW rejection + const anubisHtml = + 'Making sure you\'re not a bot!

Making sure you\'re not a bot!

'; + assert.equal( + postExtractHtml(anubisHtml, 'https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html', ''), + null, + 'Anubis PoW HTML must be rejected', + ); + + // 5. #307 biorxiv-medrxiv Rule 7: www.medrxiv.org does NOT cross-domain twin to api.biorxiv.org + assert.equal(resolveSiteExtractorTwin('https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1'), null); + const medrxivHtml = + 'medRxiv Preprint

Clinical Trial Analysis

Detailed clinical trial study abstract and findings across cohorts.

'; + const medrxivOut = postExtractHtml( + medrxivHtml, + 'https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1', + '', + + ); + assert.ok(medrxivOut && medrxivOut.extractorId === 'biorxiv-medrxiv'); + assert.ok(medrxivOut.markdown.includes('Clinical Trial Analysis')); +}); + +test('Wave 3 B4 Cat M: CISA separation, CVE Rule 7 & Vue CSR guard, STIX/CSV bounded Range scanning, BGP.he >1MiB guard', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #315 cisa-kev vs #320 cisa-advisories-ics separation + assert.equal( + resolveSiteExtractorTwin('https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json')?.id, + 'cisa-kev', + ); + assert.equal( + resolveSiteExtractorTwin('https://www.cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv')?.id, + 'cisa-kev', + ); + assert.equal(resolveSiteExtractorTwin('https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml')?.id, 'cisa-advisories-ics'); + assert.equal(resolveSiteExtractorTwin('https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml')?.id !== 'cisa-kev', true); + + const kevCatalogOut = postExtractHtml( + 'Known Exploited Vulnerabilities Catalog | CISA

Known Exploited Vulnerabilities Catalog

CVE-2024-3094 Tukaani XZ Utils vulnerability.

', + 'https://www.cisa.gov/known-exploited-vulnerabilities-catalog', + '', + + ); + assert.equal(kevCatalogOut?.extractorId, 'cisa-kev'); + + const icsPageOut = postExtractHtml( + 'ICSA-26-328-01 | CISA

ICSA-26-328-01 Example PLC

CVE-2026-41001 affects industrial controllers.

', + 'https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01', + '', + + ); + assert.equal(icsPageOut?.extractorId, 'cisa-advisories-ics'); + + // 2. #319 cve-org Rule 7 (no cve.org -> cveawg.mitre.org twin) & Vue CSR shell rejection + assert.equal(resolveSiteExtractorTwin('https://www.cve.org/CVERecord?id=CVE-2024-3094'), null); + assert.equal(resolveSiteExtractorTwin('https://cveawg.mitre.org/api/cve/CVE-2024-3094')?.id, 'cve-org'); + assert.equal( + postExtractHtml( + 'CVE Record
', + 'https://www.cve.org/CVERecord?id=CVE-2024-3094', + '', + + ), + null, + ); + + // 3. #317 mitre-attack Range + bounded linear STIX bundle scanner + const stixUrl = 'https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json'; + const stixTwin = resolveSiteExtractorTwin(stixUrl); + assert.ok(stixTwin && stixTwin.id === 'mitre-attack'); + assert.equal(stixTwin.headers?.Range, 'bytes=0-2097151'); + assert.equal(stixTwin.maxBytes, 2097152); + const stixPrefixBody = + '{"type":"bundle","id":"bundle--1","objects":[{"type":"x-mitre-collection","name":"Enterprise ATT&CK","x_mitre_version":"16.1"},{"type":"attack-pattern","name":"PowerShell","external_references":[{"source_name":"mitre-attack","external_id":"T1059.001"}]},{"type":"attack-pattern","name":"TRUNCATED_AT_RANGE'; + const stixScrape = await executeScrapeCall({ + payload: { url: stixUrl, formats: ['markdown', 'records'], 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: stixUrl, outcome: 'ok', status: 200, contentType: 'application/json', body: stixPrefixBody }], + }), + }; + }, + }); + assert.equal(stixScrape.status, 200); + assert.equal(stixScrape.body.extractorId, 'mitre-attack'); + assert.equal(stixScrape.body.contentState, 'active'); + assert.ok(String(stixScrape.body.markdown).includes('T1059.001')); + assert.equal(String(stixScrape.body.markdown).includes('TRUNCATED_AT_RANGE'), false); + + // 4. #323 exploit-db Range + bounded CSV scanner dropping partial trailing line + const edbCsvUrl = 'https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv'; + const edbCsvTwin = resolveSiteExtractorTwin(edbCsvUrl); + assert.ok(edbCsvTwin && edbCsvTwin.id === 'exploit-db'); + assert.equal(edbCsvTwin.headers?.Range, 'bytes=0-2097151'); + assert.equal(edbCsvTwin.maxBytes, 2097152); + const edbCsvBody = + 'id,file,description,date_published,author,type,platform,port,date_added,date_updated,verified,codes,tags,aliases,screenshot_url,application_url,source_url\n' + + '51000,exploits/hardware/webapps/51000.py,"Example Router RCE",2022-08-01,Researcher,webapps,hardware,,2022-08-01,2022-08-01,1,CVE-2020-20277,,,,,\n' + + '51001,exploits/linux/local/51001.c,"TRUNCATED_CSV_TAIL'; + const edbFormatted = edbCsvTwin.formatTwin(edbCsvBody, edbCsvUrl, noopHtmlToMd); + assert.ok(edbFormatted && edbFormatted.markdown.includes('51000')); + assert.equal(edbFormatted.markdown.includes('TRUNCATED_CSV_TAIL'), false); + + // 5. #326 bgp-asn >1.5 MiB HTML sliced safely within < 75ms + const largeBgpHtml = `AS13335 Cloudflare, Inc. - bgp.he.net

AS13335 Cloudflare, Inc.

Origin AS13335 | 1.1.1.0/24
${''.repeat(130_000)}
`; + assert.ok(largeBgpHtml.length > 1_500_000); + const t0 = performance.now(); + const bgpOut = postExtractHtml(largeBgpHtml, 'https://bgp.he.net/AS13335', ''); + const bgpMs = performance.now() - t0; + assert.ok(bgpOut && bgpOut.extractorId === 'bgp-asn'); + assert.ok(bgpMs < 75, `bgp_he_html >1.5MiB took ${bgpMs.toFixed(1)}ms (>75ms)`); +}); + +test('Wave 3 B4 Cat N: Gerrit XSSI strip, CWS >262KB HTML scan, APIs.guru bounded prefix scan, no forbidden rewrites, Vercel checkpoint rejection', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #329 gerrit )]}'\n XSSI stripping end-to-end + const gerritUrl = 'https://review.opendev.org/changes/1010181/detail'; + const gerritScrape = await executeScrapeCall({ + payload: { url: gerritUrl, formats: ['markdown', 'records'], 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: gerritUrl, + outcome: 'ok', + status: 200, + contentType: 'application/json', + body: ")]}'\n{\"project\":\"openstack/nova\",\"branch\":\"master\",\"subject\":\"Fix scheduler race\",\"status\":\"MERGED\",\"_number\":1010181,\"insertions\":42,\"deletions\":7,\"updated\":\"2026-11-12 08:45:19.000000000\"}", + }, + ], + }), + }; + }, + }); + assert.equal(gerritScrape.status, 200); + assert.equal(gerritScrape.body.extractorId, 'gerrit'); + assert.equal(gerritScrape.body.contentState, 'active'); + assert.ok(String(gerritScrape.body.markdown).includes('openstack/nova')); + + // 2. #330 bugzilla, #331 jira-public, #332 wordpress-org-plugins, #336 ansible-puppet-forge do NOT rewrite HTML pages to disallowed APIs + assert.equal(resolveSiteExtractorTwin('https://bugzilla.mozilla.org/show_bug.cgi?id=1900000'), null); + assert.equal(resolveSiteExtractorTwin('https://issues.apache.org/jira/browse/KAFKA-17000'), null); + assert.equal(resolveSiteExtractorTwin('https://wordpress.org/plugins/woocommerce/'), null); + assert.equal(resolveSiteExtractorTwin('https://forge.puppet.com/modules/puppetlabs/stdlib'), null); + + // 3. #334 browser-addons-amo-cws: CWS HTML scan past 262 KB (> 350 KB offset) + const cwsUrl = 'https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm'; + const cwsPadding = ``; // ~364 KB > 262 KB + assert.ok(cwsPadding.length > 350_000); + const cwsDeepHtml = + `${cwsPadding}uBlock Origin - Chrome Web Store` + + `

uBlock Origin

An efficient wide-spectrum blocker for browsers.

30,000,000+ users
`; + const cwsScrape = await executeScrapeCall({ + payload: { url: cwsUrl, formats: ['markdown', 'records'], 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: cwsUrl, outcome: 'ok', status: 200, contentType: 'text/html', body: cwsDeepHtml }], + }), + }; + }, + }); + assert.equal(cwsScrape.status, 200); + assert.equal(cwsScrape.body.extractorId, 'browser-addons-amo-cws'); + assert.equal(cwsScrape.body.contentState, 'active'); + assert.ok(String(cwsScrape.body.markdown).includes('uBlock Origin')); + + // 4. #337 apis-guru: Range-bounded list.json linear prefix scan omits truncated entry + const apisListUrl = 'https://api.apis.guru/v2/list.json'; + const apisListTwin = resolveSiteExtractorTwin(apisListUrl); + assert.ok(apisListTwin && apisListTwin.id === 'apis-guru'); + assert.equal(apisListTwin.headers?.Range, 'bytes=0-2097151'); + assert.equal(apisListTwin.maxBytes, 2097152); + const apisPrefixBody = + '{"github.com":{"preferred":"1.1.4","versions":{"1.1.4":{"info":{"title":"GitHub v3 REST API"},"swaggerUrl":"https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.json"}}},"truncated.example.org":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"TRUNCATED_AT_RANGE'; + const apisOut = apisListTwin.formatTwin(apisPrefixBody, apisListUrl, noopHtmlToMd); + assert.ok(apisOut && apisOut.markdown.includes('GitHub v3 REST API')); + assert.equal(apisOut.markdown.includes('TRUNCATED_AT_RANGE'), false); + + // 5. #340 bundlephobia-packagephobia: Vercel Security Checkpoint rejected cleanly + const pkgCheckpointHtml = + 'Vercel Security Checkpoint

We are verifying your browser...

'; + assert.equal( + postExtractHtml(pkgCheckpointHtml, 'https://packagephobia.com/result?p=lodash', ''), + null, + ); + const pkg429Scrape = await executeScrapeCall({ + payload: { url: 'https://packagephobia.com/result?p=lodash', 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: 'https://packagephobia.com/result?p=lodash', outcome: 'ok', status: 429, contentType: 'text/html', body: pkgCheckpointHtml }], + }), + }; + }, + }); + assert.notEqual(pkg429Scrape.body.contentState, 'active'); +}); + +test('Wave 3 B4 Remediations: soft-404 headings, bgp.he.net >4MiB/3.29MiB, CWS 1.63MiB <75ms, KEV ?cve= miss, apis-guru 0-entry, bare cisa.gov, STIX order, ?EMAIL=', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + const makeMock = (statusCode: number, bodyStr: string, ct: string, urlStr: string) => async (_t: unknown, reqBody: string) => { + const req = (JSON.parse(reqBody) as { requests: Array<{ id: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: urlStr, outcome: 'ok', status: statusCode, contentType: ct, body: bodyStr }], + }), + }; + }; + + // 1. [P0] Soft-404 headings (#332, #336, #333) + const soft404HeadingCases = [ + { + url: 'https://wordpress.org/plugins/missing-plugin/', + html: 'Plugin not found | WordPress.org

Plugin not found

', + }, + { + url: 'https://forge.puppet.com/modules/puppetlabs/nope', + html: 'Module not found | Puppet Forge

Module not found

', + }, + { + url: 'https://marketplace.visualstudio.com/items?itemName=missing.nope', + html: 'Extension not found | Visual Studio Marketplace

Extension not found

', + }, + ]; + for (const tc of soft404HeadingCases) { + const res = await executeScrapeCall({ + payload: { url: tc.url, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, tc.html, 'text/html', tc.url), + }); + assert.equal(res.status, 200); + assert.equal(res.body.contentState, 'soft_404', `${tc.url} must classify as soft_404`); + } + + // 2. [P1 + P2] #326 bgp-asn 4.5 MiB (>4 MiB) & 3.29 MiB pre-slice + <75ms latency + const bgpUrl = 'https://bgp.he.net/AS13335'; + const bgpRows = Array.from({ length: 25 }, (_, i) => `1.1.${i}.0/24Cloudflare, Inc.`).join(''); + const bgpHead = + `AS13335 Cloudflare, Inc. - bgp.he.net

AS13335 Cloudflare, Inc.

Origin AS13335 | Cloudflare, Inc. | RIR: ARIN
${bgpRows}
PrefixDescription
`; + const bgpTail = '
'; + const bgp45Mb = bgpHead + ''.repeat(184_000) + bgpTail; // ~4.60 MB > 4 MiB + const bgp33Mb = bgpHead + ''.repeat(138_000) + bgpTail; // ~3.45 MB (~3.29 MiB) + assert.ok(bgp45Mb.length > 4_400_000); + assert.ok(bgp33Mb.length > 3_300_000 && bgp33Mb.length < 4_194_304); + + const bgpApply45 = assertFastUnscaledSync('bgp.he.net 4.5MiB postExtractHtml', 75, () => { + const out = postExtractHtml(bgp45Mb, bgpUrl, ''); + assert.ok(out && out.extractorId === 'bgp-asn' && out.markdown.includes('AS13335')); + return out; + }); + assert.ok(bgpApply45.markdown.includes('AS13335')); + + for (const [label, html] of [ + ['4.5MiB', bgp45Mb], + ['3.29MiB', bgp33Mb], + ] as const) { + assertFastUnscaledSync(`bgp.he.net ${label} postExtractHtml`, 75, () => { + const out = postExtractHtml(html, bgpUrl, ''); + assert.ok(out && out.extractorId === 'bgp-asn' && out.markdown.includes('AS13335')); + return out; + }); + const lastRes = await assertFastAsync(`bgp.he.net ${label} executeScrapeCall`, 75, () => + executeScrapeCall({ + payload: { url: bgpUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, html, 'text/html', bgpUrl), + }), + ); + assert.equal(lastRes.status, 200); + assert.equal(lastRes.body.extractorId, 'bgp-asn', `bgp.he.net ${label} must use bgp-asn`); + assert.equal(lastRes.body.contentState, 'active'); + assert.ok(String(lastRes.body.markdown).includes('AS13335')); + } + + const bgpEx45 = await executeExtractCall({ + payload: { urls: [bgpUrl], noCache: true }, + env: {}, + executeHubFetch: makeMock(200, bgp45Mb, 'text/html', bgpUrl), + }); + const bgpExItem = ((bgpEx45.body as { results?: Array<{ extractorId?: string; contentState?: string }> }).results ?? [])[0]; + assert.equal(bgpExItem?.extractorId, 'bgp-asn'); + assert.equal(bgpExItem?.contentState, 'active'); + + // 2b. [P1] #326 bgp.he.net Invalid AS soft-404 (180 B, 4.5 MiB, past-64KB) in both executeScrapeCall & executeExtractCall + unclosed '.repeat(184_000)}`; + const bgpInvalidPast64k = + `AS9999999 - bgp.he.net` + + `${''.repeat(3_500)}

Invalid AS

Invalid AS specified. Please enter a valid ASN.

` + + `${''.repeat(180_000)}`; + for (const [label, invalidHtml] of [ + ['180B', bgpInvalid180], + ['4.5MiB', bgpInvalid45], + ['past64KB', bgpInvalidPast64k], + ] as const) { + const invScrape = await executeScrapeCall({ + payload: { url: bgpInvalidUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, invalidHtml, 'text/html', bgpInvalidUrl), + }); + assert.equal(invScrape.status, 200); + assert.equal(invScrape.body.contentState, 'soft_404', `bgp.he.net ${label} Invalid AS scrape must be soft_404`); + assert.equal(String(invScrape.body.markdown ?? '').includes('<!--'), false, `bgp.he.net ${label} must trim trailing unclosed '.repeat(48_000)}` + + `uBlock Origin - Chrome Web Store` + + `` + + `` + + `

uBlock Origin

30,000,000+ users
Version
1.61.2
` + + ``; + assert.ok(cws163Html.length >= 1_550_000); + let bestCwsApplyMs = Number.POSITIVE_INFINITY; + for (let i = 0; i < 5; i++) { + const t0 = performance.now(); + const out = postExtractHtml(cws163Html, cwsUrl, ''); + bestCwsApplyMs = Math.min(bestCwsApplyMs, performance.now() - t0); + assert.ok(out && out.extractorId === 'browser-addons-amo-cws' && out.markdown.includes('1.61.2')); + } + assert.ok(bestCwsApplyMs < 75, `CWS 1.63 MiB postExtractHtml best-of-5=${bestCwsApplyMs.toFixed(1)}ms (>75ms)`); + + let bestCwsExtractDocMs = Number.POSITIVE_INFINITY; + for (let i = 0; i < 5; i++) { + const t0 = performance.now(); + const doc = extractHtmlDocument(cws163Html, { baseUrl: cwsUrl }); + bestCwsExtractDocMs = Math.min(bestCwsExtractDocMs, performance.now() - t0); + assert.equal(doc.extractorId, 'browser-addons-amo-cws'); + assert.ok(doc.markdown.includes('1.61.2')); + } + assert.ok(bestCwsExtractDocMs < 75, `CWS 1.63 MiB extractHtmlDocument best-of-5=${bestCwsExtractDocMs.toFixed(1)}ms (>75ms)`); + + const cws163Res = await assertFastAsync('CWS 1.63 MiB <50-word executeScrapeCall', 75, () => + executeScrapeCall({ + payload: { url: cwsUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, cws163Html, 'text/html', cwsUrl), + }), + ); + assert.equal(cws163Res.status, 200); + assert.equal(cws163Res.body.extractorId, 'browser-addons-amo-cws'); + assert.equal(cws163Res.body.contentState, 'active'); + assert.ok(String(cws163Res.body.markdown).includes('1.61.2')); + assert.equal((cws163Res.body.records as Array> | undefined)?.[0]?.version, '1.61.2'); + + const cwsNoiseVersionHtml = + `${''.repeat(12)}` + + `${''.repeat(48_000)}` + + `uBlock Origin - Chrome Web Store` + + `` + + `` + + `

uBlock Origin

30,000,000+ users
Version
1.61.2
` + + ``; + const cwsNoiseRes = await assertFastAsync('CWS 1.63 MiB 12-version-noise executeScrapeCall', 75, () => + executeScrapeCall({ + payload: { url: cwsUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, cwsNoiseVersionHtml, 'text/html', cwsUrl), + }), + ); + assert.equal(cwsNoiseRes.status, 200); + assert.equal(cwsNoiseRes.body.extractorId, 'browser-addons-amo-cws'); + assert.equal(cwsNoiseRes.body.contentState, 'active'); + assert.equal((cwsNoiseRes.body.records as Array> | undefined)?.[0]?.version, '1.61.2'); + assert.ok(String(cwsNoiseRes.body.markdown).includes('1.61.2')); + + const cws900kSoft404 = + `${''.repeat(80_000)}Item not available - Chrome Web Store` + + `

This item is no longer available.

`; + const cwsSoft404Res = await executeScrapeCall({ + payload: { url: cwsUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, cws900kSoft404, 'text/html', cwsUrl), + }); + assert.equal(cwsSoft404Res.body.contentState, 'soft_404'); + + // 4. [P1] #315 cisa-kev ?cve= miss must not leak raw catalog JSON as active + const kevMissUrl = 'https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json?cve=CVE-9999-99999'; + const kevCatalogJson = JSON.stringify({ + title: 'CISA KEV Catalog', + catalogVersion: '2026.11.28', + count: 2, + vulnerabilities: [ + { cveID: 'CVE-2024-3094', vendorProject: 'Tukaani', product: 'XZ Utils', vulnerabilityName: 'XZ Backdoor', dateAdded: '2024-04-01', dueDate: '2024-04-22' }, + { cveID: 'CVE-2024-21762', vendorProject: 'Fortinet', product: 'FortiOS', vulnerabilityName: 'SSL VPN', dateAdded: '2024-02-09', dueDate: '2024-02-16' }, + ], + }); + const kevMissRes = await executeScrapeCall({ + payload: { url: kevMissUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, kevCatalogJson, 'application/json', kevMissUrl), + }); + assert.equal(kevMissRes.status, 200); + assert.equal(kevMissRes.body.extractorId, 'cisa-kev'); + assert.notEqual(kevMissRes.body.contentState, 'active'); + assert.ok(String(kevMissRes.body.markdown).length < 512); + assert.ok(String(kevMissRes.body.markdown).includes('No matching KEV entry found for CVE-9999-99999')); + + // 5. [P1] #337 apis-guru 0-complete-entry truncated list.json prefix must not return contentState=active + const apisListUrl = 'https://api.apis.guru/v2/list.json'; + const apisZeroPrefix = '{"onlypartial.com":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"TRUNCATED'; + const apisZeroRes = await executeScrapeCall({ + payload: { url: apisListUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, apisZeroPrefix, 'application/json', apisListUrl), + }); + assert.equal(apisZeroRes.status, 200); + assert.equal(apisZeroRes.body.extractorId, 'apis-guru'); + assert.equal(apisZeroRes.body.contentState, 'empty_shell'); + + // 6. [P1] #315 vs #320 bare cisa.gov routing + assert.equal(resolveSiteExtractorTwin('https://cisa.gov/cybersecurity-advisories/ics-advisories.xml')?.id, 'cisa-advisories-ics'); + assert.equal(resolveSiteExtractorTwin('https://cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json')?.id, 'cisa-kev'); + assert.equal(resolveSiteExtractorTwin('https://cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv')?.id, 'cisa-kev'); + const bareIcsHtmlRes = postExtractHtml( + 'ICSA-26-328-01 | CISA

ICSA-26-328-01 PLC

CVE-2026-41001 industrial advisory.

', + 'https://cisa.gov/news-events/ics-advisories/icsa-26-328-01', + '', + + ); + assert.equal(bareIcsHtmlRes?.extractorId, 'cisa-advisories-ics'); + const bareKevHtmlRes = postExtractHtml( + 'Known Exploited Vulnerabilities Catalog | CISA

Known Exploited Vulnerabilities Catalog

CVE-2024-3094.

', + 'https://cisa.gov/known-exploited-vulnerabilities-catalog', + '', + + ); + assert.equal(bareKevHtmlRes?.extractorId, 'cisa-kev'); + + // 7. [P2] #317 mitre-attack objects-before-bundle (> 4 KB) & #302 unpaywall uppercase ?EMAIL= + const stixUrl = 'https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json'; + const stixObjectsFirst = + `{"objects":[{"type":"x-mitre-collection","name":"Enterprise ATT&CK","x_mitre_version":"16.1"},{"type":"attack-pattern","name":"PowerShell","description":"${'B'.repeat(5000)}","external_references":[{"source_name":"mitre-attack","external_id":"T1059.001"}]}],"id":"bundle--1","type":"bundle"}`; + const stixOfRes = await executeScrapeCall({ + payload: { url: stixUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeMock(200, stixObjectsFirst, 'application/json', stixUrl), + }); + assert.equal(stixOfRes.status, 200); + assert.equal(stixOfRes.body.extractorId, 'mitre-attack'); + assert.equal(stixOfRes.body.contentState, 'active'); + assert.ok(String(stixOfRes.body.markdown).includes('T1059.001')); + + const unpaywallUpper = resolveSiteExtractorTwin('https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?EMAIL=alice@example.com'); + assert.ok(unpaywallUpper && unpaywallUpper.id === 'unpaywall'); + assert.equal(unpaywallUpper.fetchUrl.toLowerCase().includes('alice'), false); + assert.equal(unpaywallUpper.fetchUrl.includes('EMAIL='), false); + assert.equal(new URL(unpaywallUpper.fetchUrl).searchParams.get('email'), 'bot@edgefetch.dev'); +}); diff --git a/internal/classify/content_state.go b/internal/classify/content_state.go index 151a543..6471985 100644 --- a/internal/classify/content_state.go +++ b/internal/classify/content_state.go @@ -90,10 +90,10 @@ var ( reClosedPostingCSGo = newLazyRegexp(`(?i)\b(?:this\s+(?:job|position|role|posting)\s+(?:is\s+no\s+longer|has\s+been\s+(?:filled|closed))|(?:this\s+)?job\s+board\s+(?:is\s+(?:currently\s+)?(?:disabled|unavailable)|does\s+not\s+exist)|no\s+longer\s+accepting\s+applications|position\s+has\s+been\s+filled|job\s+is\s+no\s+longer\s+(?:open|available|active)|sorry,\s*this\s+job\s+(?:opening\s+)?is\s+closed)\b`) reSoft404H1CSGo = newLazyRegexp(`(?m)^#\s+([^\n]+)`) - reNotFoundHeadingCSGo = newLazyRegexp(`(?i)\b(?:404\b|page\s+not\s+found|job\s+not\s+found|post(?:ing)?\s+not\s+found|couldn['’]t\s+find\s+(?:that|this)\s+page|page\s+doesn['’]t\s+exist)\b`) + reNotFoundHeadingCSGo = newLazyRegexp(`(?i)\b(?:404\b|(?:page|job|post(?:ing)?|plugin|module|extension)\s+not\s+found|item\s+not\s+available|couldn['’]t\s+find\s+(?:that|this)\s+page|page\s+doesn['’]t\s+exist|invalid\s+as(?:\s+specified)?|not\s+a\s+valid\s+asn)\b`) reNotFound404StatusHeadingCSGo = newLazyRegexp(`(?i)\bnot\s+found\b`) reUnambiguousErrorTitleCSGo = newLazyRegexp(`(?i)^(?:(?:error\s+)?404(?:\s*[-:|–—]\s*.*)?|(?:error\s+)?404\s*(?:page\s+)?not\s+found(?:\s*[-:|–—]\s*.*)?|page\s+not\s+found(?:\s*[-:|–—]\s*.*)?|not\s+found(?:\s*[-:|–—]\s*.*)?)$`) - reNotFoundBodyCSGo = newLazyRegexp(`(?i)\b(?:the\s+page\s+you\s+(?:requested|are\s+looking\s+for)\s+(?:could\s+not\s+be\s+found|does\s+not\s+exist)|error\s+404|we\s+can['’]t\s+seem\s+to\s+find\s+the\s+page)\b`) + reNotFoundBodyCSGo = newLazyRegexp(`(?i)\b(?:the\s+page\s+you\s+(?:requested|are\s+looking\s+for)\s+(?:could\s+not\s+be\s+found|does\s+not\s+exist)|error\s+404|we\s+can['’]t\s+seem\s+to\s+find\s+the\s+page|this\s+item\s+is\s+no\s+longer\s+available|invalid\s+as(?:\s+specified)?|not\s+a\s+valid\s+asn)\b`) reForumStatusSoft404CSGo = newLazyRegexp(`(?is)(?:\bvbulletin\s+message\b.{0,200}?\b(?:no|invalid)\s+(?:thread|forum|post)\s+specified\b|\bthe\s+discussion\s+you\s+requested\s+could\s+not\s+be\s+found\b)`) reStatusPageNotFoundJSONCSGo = newLazyRegexp(`(?is)"error"\s*:\s*"status page not found"`) reMetaErrorPageDescCSGo = newLazyRegexp(`(?is)]*\bcontent\s*=\s*["'][^"']{0,200}\berror\s+page\b[^"']*["']`) @@ -733,7 +733,7 @@ func ClassifyWAFAndChallengeFull(in WAFChallengeInput) *WAFMatch { } sample := capStringBytesUTF8CSGo(rawBody, 98_304) - noComments := reWafHTMLComments.ReplaceAllString(sample, " ") + noComments := stripHTMLCommentsLinearCSGo(sample) visibleClean := reVisibleDropBlocksCSGo.ReplaceAllString(noComments, " ") visibleWords := countWordsFromHTMLCSGo(visibleClean) if in.RawHTML == "" && in.VisibleText != "" { @@ -1064,7 +1064,7 @@ func scanOpenTagsLinearCSGo(rawHTML, targetTagLower string, maxBytes int, onTag } func scanIframesInternalCSGo(rawHTML, pageURL string, anyRelativeShell bool) (IframeScanResult, bool) { - if rawHTML == "" || !strings.Contains(strings.ToLower(capStringBytesUTF8CSGo(rawHTML, maxHTMLScanCharsCSGo)), "") + if endRel < 0 { + sb.WriteString(s[pos:]) + break + } + sb.WriteString(s[pos:start]) + sb.WriteByte(' ') + pos = start + 4 + endRel + 3 + } + return sb.String() +} + +func stripVisibleSoft404NoiseCSGo(cleanVisibleHTML string) string { + stripped := stripHTMLCommentsLinearCSGo(cleanVisibleHTML) + if indexFoldASCIICSGo(stripped, "= 0 { stripped = reHeadBlockCSGo.ReplaceAllString(stripped, " ") } - if strings.Contains(low, "= 0 || + indexFoldASCIICSGo(stripped, "= 0 || + indexFoldASCIICSGo(stripped, "= 0 || + indexFoldASCIICSGo(stripped, "= 0 { stripped = reScrubDomBlocksCSGo.ReplaceAllString(stripped, " ") } return stripped @@ -2337,8 +2360,24 @@ func isXMLShortErrorShellCSGo(raw string) bool { return strings.Contains(low, "") } +func hasSecurityTxtContactCSGo(raw string) bool { + for _, line := range strings.Split(raw, "\n") { + clean := strings.TrimSpace(strings.TrimPrefix(line, "\uFEFF")) + if clean == "" || strings.HasPrefix(clean, "#") { + continue + } + if len(clean) >= 8 && strings.EqualFold(clean[:8], "contact:") && strings.TrimSpace(clean[8:]) != "" { + return true + } + } + return false +} + func isEmptyJSONResponseShellCSGo(raw string) bool { - trimmed := strings.TrimSpace(raw) + trimmed := strings.TrimSpace(strings.TrimPrefix(strings.TrimSpace(raw), "\uFEFF")) + if strings.HasPrefix(trimmed, ")]}'") { + trimmed = strings.TrimSpace(trimmed[4:]) + } if len(trimmed) < 2 || len(trimmed) > 8192 || (trimmed[0] != '{' && trimmed[0] != '[') { return false } @@ -2373,9 +2412,10 @@ func isEmptyJSONResponseShellCSGo(raw string) bool { } } isPaginationIndex := lk == "page" || lk == "pages" || lk == "per_page" || - lk == "limit" || lk == "offset" || lk == "skip" || lk == "top" || lk == "start" + lk == "limit" || lk == "offset" || lk == "skip" || lk == "top" || lk == "start" || + lk == "status-code" || lk == "status_code" isMetaKey := inMeta || isPaginationIndex || lk == "meta" || lk == "metadata" || lk == "pagination" || - lk == "total" || lk == "totalrecords" || lk == "total_records" || lk == "total-count" || + lk == "total" || lk == "@total" || lk == "totalrecords" || lk == "total_records" || lk == "total-count" || lk == "total_count" || lk == "totalpages" || lk == "recordcount" || lk == "hit_count" || lk == "num_results" || lk == "resultcount" || lk == "section" || lk == "searchresultcount" || lk == "searchresultcountall" || lk == "totalcount" || @@ -2384,10 +2424,11 @@ func isEmptyJSONResponseShellCSGo(raw string) bool { lk == "numbermatched" || lk == "numberreturned" || lk == "next" || lk == "previous" || lk == "@odata.context" || lk == "count" || lk == "value" || lk == "api_version" || lk == "version" || lk == "status" - isContainerKey := lk == "hits" || lk == "results" || lk == "data" || lk == "items" || + isContainerKey := lk == "hits" || lk == "result" || lk == "results" || lk == "response" || lk == "data" || lk == "items" || lk == "records" || lk == "rows" || lk == "organizations" || lk == "opportunitiesdata" || lk == "recdata" || lk == "idgroup" || lk == "features" || lk == "docs" || lk == "entries" || lk == "feeds" || lk == "products" || lk == "itemsummaries" || + lk == "vulnerabilities" || lk == "playlist" || lk == "media" || lk == "searchresult" || lk == "searchresultitems" || lk == "getpressreleaselistresult" || lk == "geteventlistresult" || lk == "_embedded" @@ -2683,7 +2724,10 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) (countWordsFromTextCSGo(visibleBody) < 30 && strings.EqualFold(strings.TrimSpace(title), "Application Error") && (strings.Contains(strings.ToLower(visibleBody), "system error") || - strings.Contains(strings.ToLower(visibleBody), "unexpected error")))) { + strings.Contains(strings.ToLower(visibleBody), "unexpected error"))) || + (countWordsFromTextCSGo(visibleBody) < 10 && + strings.Contains(strings.ToLower(finalURL), "bgp.he.net") && + strings.Contains(strings.ToLower(visibleBody), "invalid as"))) { isNotFoundBody = true } } @@ -2906,6 +2950,35 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) Confidence: 0.90, } } + if words < 80 && !strings.Contains(proseOnly, "| API Key |") && strings.Contains(strings.ToLower(finalURL), "apis.guru/v2/list.json") { + trimmedPrefix := strings.TrimSpace(strings.TrimPrefix(strings.TrimSpace(rawHTML), "\uFEFF")) + if strings.HasPrefix(trimmedPrefix, "{") { + var completeObj any + if err := json.Unmarshal([]byte(trimmedPrefix), &completeObj); err != nil { + return ContentStateResult{ + State: "empty_shell", + Reason: "Truncated APIs.guru list.json prefix contains 0 complete API entries.", + Confidence: 0.90, + } + } + } + } + } + if status >= 200 && status < 300 && words < 80 { + if strings.Contains(proseOnly, "No matching KEV entry found for ") { + return ContentStateResult{ + State: "empty_shell", + Reason: "CISA KEV CVE filter matched 0 catalog entries.", + Confidence: 0.90, + } + } + if strings.Contains(proseOnly, "No complete API entries fit within the bounded prefix.") { + return ContentStateResult{ + State: "empty_shell", + Reason: "Truncated APIs.guru list.json prefix contains 0 complete API entries.", + Confidence: 0.90, + } + } } if status >= 200 && status < 300 && rawHTML != "" { if isLaserficheEmptyShellCSGo(finalURL, rawHTML) { @@ -2923,6 +2996,24 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) } } } + if status >= 200 && status < 300 { + if secU, err := url.Parse(strings.TrimSpace(finalURL)); err == nil && + strings.HasSuffix(strings.ToLower(secU.Path), "/security.txt") { + secBody := rawHTML + if secBody == "" { + secBody = markdown + } + if secBody != "" && + !strings.Contains(strings.ToLower(secBody), "= 200 && status < 300 && words < 50 && rawHTML != "" { iframeShell, isIcims := scanIframesInternalCSGo(rawHTML, finalURL, true) if iframeShell.HasExternalIframe { diff --git a/internal/classify/content_state_soft404_test.go b/internal/classify/content_state_soft404_test.go index de2b534..c8ef0cd 100644 --- a/internal/classify/content_state_soft404_test.go +++ b/internal/classify/content_state_soft404_test.go @@ -733,3 +733,167 @@ func TestClassifyContentStateSalesforceAuraCSRShell(t *testing.T) { t.Fatalf("expected UTF-8 BOM >8KiB empty to classify empty_shell, got %+v", gotBOMSDN) } } + +func TestClassifyWave3B4EmptyShellsAndSoft404s(t *testing.T) { + cases := []struct { + name string + url string + raw string + wantState string + }{ + { + name: "gerrit xssi empty array", + url: "https://review.opendev.org/changes/?q=status:merged", + raw: ")]}'\n[]", + wantState: "empty_shell", + }, + { + name: "nsf empty response.award array", + url: "https://api.nsf.gov/services/v1/awards/9999999.json", + raw: `{"response":{"award":[]}}`, + wantState: "empty_shell", + }, + { + name: "first epss empty data array", + url: "https://api.first.org/data/v1/epss?cve=CVE-9999-99999", + raw: `{"status":"OK","status-code":200,"total":0,"data":[]}`, + wantState: "empty_shell", + }, + { + name: "dblp empty result.hits", + url: "https://dblp.org/search/publ/api?q=zzzznotfound999&format=json", + raw: `{"result":{"hits":{"@total":"0","hit":[]}}}`, + wantState: "empty_shell", + }, + { + name: "security.txt missing Contact directive", + url: "https://www.cloudflare.com/.well-known/security.txt", + raw: "# Comment only\nExpires: 2027-06-30T23:59:59Z\n", + wantState: "empty_shell", + }, + { + name: "cws item not available soft_404", + url: "https://chromewebstore.google.com/detail/missing/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + raw: `Item not available - Chrome Web Store

This item is no longer available.

`, + wantState: "soft_404", + }, + { + name: "bgp.he.net Invalid AS soft_404", + url: "https://bgp.he.net/AS999999999", + raw: `AS999999999 - bgp.he.net
Invalid AS
`, + wantState: "soft_404", + }, + { + name: "bgp.he.net 180B Invalid AS specified soft_404", + url: "https://bgp.he.net/AS9999999", + raw: `

Invalid AS

Invalid AS specified. Please enter a valid ASN.

`, + wantState: "soft_404", + }, + { + name: "bgp.he.net Not a valid ASN soft_404", + url: "https://bgp.he.net/AS9999999", + raw: `bgp.he.net

Not a valid ASN

`, + wantState: "soft_404", + }, + { + name: "bgp.he.net past-64KB Invalid AS soft_404", + url: "https://bgp.he.net/AS9999999", + raw: `AS9999999 - bgp.he.net` + strings.Repeat("", 6000) + `

Invalid AS

Invalid AS specified. Please enter a valid ASN.

`, + wantState: "soft_404", + }, + { + name: "wordpress.org plugin not found soft_404 (#332)", + url: "https://wordpress.org/plugins/missing-plugin/", + raw: `Plugin not found | WordPress.org

Plugin not found

`, + wantState: "soft_404", + }, + { + name: "forge.puppet.com module not found soft_404 (#336)", + url: "https://forge.puppet.com/modules/puppetlabs/nope", + raw: `Module not found | Puppet Forge

Module not found

`, + wantState: "soft_404", + }, + { + name: "marketplace.visualstudio.com extension not found soft_404 (#333)", + url: "https://marketplace.visualstudio.com/items?itemName=missing.nope", + raw: `Extension not found | Visual Studio Marketplace

Extension not found

`, + wantState: "soft_404", + }, + { + name: "apis-guru 0-complete-entry truncated list.json prefix (#337)", + url: "https://api.apis.guru/v2/list.json", + raw: `{"onlypartial.com":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"TRUNCATED`, + wantState: "empty_shell", + }, + } + for _, tc := range cases { + t.Run(tc.name, func(t *testing.T) { + got := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: tc.url, + FinalURL: tc.url, + RawHTML: tc.raw, + }) + if got.State != tc.wantState { + t.Fatalf("%s: got state=%q (%s), want %q", tc.name, got.State, got.Reason, tc.wantState) + } + }) + } + // Also verify text/plain scrape.ts path where RawHTML is omitted and text is in Markdown, plus CISA KEV 0-match & APIs.guru bounded notice. + mdCases := []struct { + name string + url string + md string + wantState string + }{ + { + name: "security.txt markdown-only path", + url: "https://www.cloudflare.com/.well-known/security.txt", + md: "# Comment only\nExpires: 2027-06-30T23:59:59Z\n", + wantState: "empty_shell", + }, + { + name: "cisa-kev 0-match cve query (#315)", + url: "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json?cve=CVE-9999-99999", + md: "# CISA KEV — CVE-9999-99999\n\n- **Returned**: 0\n\nNo matching KEV entry found for CVE-9999-99999.", + wantState: "empty_shell", + }, + { + name: "apis-guru 0-entry truncated notice (#337)", + url: "https://api.apis.guru/v2/list.json", + md: "# APIs.guru Directory Index (Bounded Sample)\n\n- **Returned**: 0\n- **Truncated**: true\n\nNo complete API entries fit within the bounded prefix.", + wantState: "empty_shell", + }, + { + name: "wordpress.org plugin not found markdown fallback (#332)", + url: "https://wordpress.org/plugins/missing-plugin/", + md: "# Plugin not found", + wantState: "soft_404", + }, + { + name: "forge.puppet.com module not found markdown fallback (#336)", + url: "https://forge.puppet.com/modules/puppetlabs/nope", + md: "# Module not found", + wantState: "soft_404", + }, + { + name: "marketplace.visualstudio.com extension not found markdown fallback (#333)", + url: "https://marketplace.visualstudio.com/items?itemName=missing.nope", + md: "# Extension not found", + wantState: "soft_404", + }, + } + for _, tc := range mdCases { + t.Run(tc.name, func(t *testing.T) { + got := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: tc.url, + FinalURL: tc.url, + Markdown: tc.md, + }) + if got.State != tc.wantState { + t.Fatalf("%s: got %q (%s), want %q", tc.name, got.State, got.Reason, tc.wantState) + } + }) + } +} diff --git a/internal/extract/declarative.go b/internal/extract/declarative.go index 7c07578..695a7c3 100644 --- a/internal/extract/declarative.go +++ b/internal/extract/declarative.go @@ -2633,6 +2633,16 @@ func buildResolvedTwinURLGo(route DeclarativeRouteSpec, u *url.URL, host string, } } for k, v := range twin.SetQueryParams { + var toDelete []string + for existingKey := range q { + if existingKey != k && strings.EqualFold(existingKey, k) { + toDelete = append(toDelete, existingKey) + } + } + for _, dk := range toDelete { + q.Del(dk) + queryModified = true + } if q.Get(k) != v || len(q[k]) != 1 { q.Set(k, v) queryModified = true @@ -5065,6 +5075,15 @@ func (m *DeclarativeTwinMatch) formatTextTwin(rawBody string) (*DeclarativeForma if IsWave3RegulatorsHealthTextMode(ext.TextMode) { return FormatWave3RegulatorsHealthTextDoc(ext.TextMode, rawBody, m.params, m.origURL) } + if IsWave3ScholarlyTextMode(ext.TextMode) { + return FormatWave3ScholarlyTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } + if isWave3SecurityIntelTextMode(ext.TextMode) { + return formatWave3SecurityIntelText(ext.TextMode, rawBody, m.params, m.origURL) + } + if IsWave3DevInfraTextMode(ext.TextMode) { + return FormatWave3DevInfraTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } if ext.JSONSource == "inertia_data_page" { jsonBytes, ok := extractInertiaDataPageBytesGo(rawBody) if !ok { @@ -5893,6 +5912,15 @@ func (m *DeclarativeTwinMatch) formatJSONBytesTwin(rawBytes []byte, ext Declarat if IsWave3RegulatorsHealthJSONMode(ext.JSONMode) { return FormatWave3RegulatorsHealthJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) } + if IsWave3ScholarlyJSONMode(ext.JSONMode) { + return FormatWave3ScholarlyJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if isWave3SecurityIntelJSONMode(ext.JSONMode) { + return formatWave3SecurityIntelJSON(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3DevInfraJSONMode(ext.JSONMode) { + return FormatWave3DevInfraJSONDoc(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 94a36bc..1c70b12 100644 --- a/internal/extract/declarative_html.go +++ b/internal/extract/declarative_html.go @@ -4781,6 +4781,33 @@ func IsObviousUnhydratedCSRShell(rawHTML string) bool { return true } +func isBgpHeNetBaseURLGo(baseURL string) bool { + if baseURL == "" || !strings.Contains(strings.ToLower(baseURL), "bgp.he.net") { + return false + } + u, err := url.Parse(strings.TrimSpace(baseURL)) + if err != nil { + return false + } + return strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") == "bgp.he.net" +} + +func trimBgpHeNetTruncatedHTMLGo(rawHTML string) string { + sliced := rawHTML + if len(sliced) > 1_048_576 { + sliced = truncateUTF8SafeFullDocGo(sliced, 1_048_576) + } + if lastOpen := strings.LastIndex(sliced, "") { + sliced = sliced[:lastOpen] + } + if strings.HasSuffix(sliced, " scanCap { scanCap = opts.MaxScanChars } + if !opts.IsFragment && isBgpHeNetBaseURLGo(baseURL) { + rawHTML = trimBgpHeNetTruncatedHTMLGo(rawHTML) + } boundedRawHTML := truncateUTF8SafeFullDocGo(rawHTML, scanCap) if strings.IndexByte(boundedRawHTML, 0) >= 0 { boundedRawHTML = strings.ReplaceAll(boundedRawHTML, "\x00", "") diff --git a/internal/extract/manifests/ansible-puppet-forge.yaml b/internal/extract/manifests/ansible-puppet-forge.yaml new file mode 100644 index 0000000..f5c23db --- /dev/null +++ b/internal/extract/manifests/ansible-puppet-forge.yaml @@ -0,0 +1,46 @@ +# Shared Go + TypeScript Declarative Site Adapter: Ansible Galaxy & Puppet Forge (#336) +id: ansible-puppet-forge +name: Ansible Galaxy & Puppet Forge +category: developer +description: "Extracts Ansible collection metadata from galaxy.ansible.com v3 JSON API and Puppet module metadata from forge.puppet.com __NEXT_DATA__ HTML without upgrading to robots-disallowed forgeapi.puppet.com." +domains: + - galaxy.ansible.com + - forge.puppet.com + - forgeapi.puppet.com +auth_mode: pub +exampleUrls: + - "https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/community/general/" + - "https://forge.puppet.com/modules/puppetlabs/stdlib" + +routes: + - match: + hosts: + - galaxy.ansible.com + pathPrefix: /api/v3/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: ansible_galaxy_json + + - match: + hosts: + - forgeapi.puppet.com + pathPrefix: /v3/modules/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: puppet_forge_json + +htmlRoutes: + - id: ansible-puppet-forge + match: + hosts: + - forge.puppet.com + pathPrefix: /modules/ + mode: puppet_forge_html diff --git a/internal/extract/manifests/apis-guru.yaml b/internal/extract/manifests/apis-guru.yaml new file mode 100644 index 0000000..7b100d8 --- /dev/null +++ b/internal/extract/manifests/apis-guru.yaml @@ -0,0 +1,52 @@ +# Shared Go + TypeScript Declarative Site Adapter: APIs.guru (#337) +id: apis-guru +name: APIs.guru OpenAPI Directory +category: developer +description: "Extracts OpenAPI directory metrics, per-provider API specs, and Range-bounded streaming partial-JSON directory entries from api.apis.guru." +domains: + - api.apis.guru + - apis.guru +auth_mode: pub +exampleUrls: + - "https://api.apis.guru/v2/metrics.json" + - "https://api.apis.guru/v2/github.com.json" + - "https://api.apis.guru/v2/list.json" + +routes: + - match: + hosts: + - api.apis.guru + exactSegments: true + pathEquals: + - /v2/list.json + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/json + maxBytes: 2097152 + headers: + Range: "bytes=0-2097151" + extract: + textMode: apis_guru_list_bounded + + - match: + hosts: + - api.apis.guru + pathPrefix: /v2/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: apis_guru_json + +htmlRoutes: + - id: apis-guru + match: + hosts: + - apis.guru + - api.apis.guru + exactSegments: false + mode: apis_guru_html diff --git a/internal/extract/manifests/artifact-hub.yaml b/internal/extract/manifests/artifact-hub.yaml new file mode 100644 index 0000000..f938cb0 --- /dev/null +++ b/internal/extract/manifests/artifact-hub.yaml @@ -0,0 +1,52 @@ +# Shared Go + TypeScript Declarative Site Adapter: Artifact Hub (#335) +id: artifact-hub +name: Artifact Hub +category: developer +description: "Extracts Kubernetes Helm chart, operator, and CNCF package versions, repositories, security reports, and READMEs from artifacthub.io v1 API and package URLs." +domains: + - artifacthub.io +auth_mode: pub +exampleUrls: + - "https://artifacthub.io/api/v1/packages/helm/ingress-nginx/ingress-nginx" + - "https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx" + +routes: + - match: + hosts: + - artifacthub.io + pathPrefix: /api/v1/packages/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: artifact_hub_json + + - match: + hosts: + - artifacthub.io + exactSegments: true + pathSegments: + - packages + - param: kind + charset: slug + - param: repo + charset: pkg + - param: pkg + charset: pkg + twin: + fetchUrl: "https://artifacthub.io/api/v1/packages/{kind}/{repo}/{pkg}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: artifact_hub_json + +htmlRoutes: + - id: artifact-hub + match: + hosts: + - artifacthub.io + exactSegments: false + mode: artifact_hub_html diff --git a/internal/extract/manifests/bgp-asn.yaml b/internal/extract/manifests/bgp-asn.yaml new file mode 100644 index 0000000..a21751f --- /dev/null +++ b/internal/extract/manifests/bgp-asn.yaml @@ -0,0 +1,36 @@ +# Shared Go + TypeScript Declarative Site Adapter: BGP & ASN Intelligence (#326) +id: bgp-asn +name: BGP & ASN Intelligence (RIPEstat & bgp.he.net) +category: developer +description: "Extracts BGP ASN overview and prefix announcements from RIPEstat JSON APIs and Hurricane Electric bgp.he.net pages (bounded to <= 1 MiB before parsing)." +domains: + - stat.ripe.net + - bgp.he.net +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://stat.ripe.net/data/as-overview/data.json?resource=AS13335" + - "https://bgp.he.net/AS13335" + +routes: + - match: + hosts: + - stat.ripe.net + exactSegments: false + pathPrefix: /data/ + pathSuffix: /data.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: bgp_asn_ripe_json + +htmlRoutes: + - id: bgp-asn + match: + hosts: + - bgp.he.net + exactSegments: false + mode: bgp_he_html diff --git a/internal/extract/manifests/biorxiv-medrxiv.yaml b/internal/extract/manifests/biorxiv-medrxiv.yaml new file mode 100644 index 0000000..a4f34b7 --- /dev/null +++ b/internal/extract/manifests/biorxiv-medrxiv.yaml @@ -0,0 +1,41 @@ +# Shared Go + TypeScript Declarative Site Adapter: bioRxiv & medRxiv (#307) +id: biorxiv-medrxiv +name: bioRxiv & medRxiv Preprints +category: research-health +description: "Extracts bioRxiv and medRxiv preprint metadata, versions, abstracts, and JATS XML links from api.biorxiv.org JSON and bioRxiv/medRxiv HTML (no cross-domain medrxiv.org -> api.biorxiv.org twin)." +domains: + - api.biorxiv.org + - www.biorxiv.org + - biorxiv.org + - www.medrxiv.org + - medrxiv.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.biorxiv.org/details/biorxiv/10.1101/2020.09.02.278911/na/json" + - "https://api.biorxiv.org/details/medrxiv/10.1101/2020.05.28.20116129/na/json" + - "https://www.biorxiv.org/content/10.1101/2020.09.02.278911v1" + +routes: + - match: + hosts: + - api.biorxiv.org + pathPrefix: /details/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: biorxiv_medrxiv_json + +htmlRoutes: + - id: biorxiv-medrxiv + match: + hosts: + - www.biorxiv.org + - biorxiv.org + - www.medrxiv.org + - medrxiv.org + exactSegments: false + mode: biorxiv_medrxiv_html diff --git a/internal/extract/manifests/bitbucket-cloud.yaml b/internal/extract/manifests/bitbucket-cloud.yaml new file mode 100644 index 0000000..808c460 --- /dev/null +++ b/internal/extract/manifests/bitbucket-cloud.yaml @@ -0,0 +1,61 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bitbucket Cloud (#327) +id: bitbucket-cloud +name: Bitbucket Cloud +category: developer +description: "Extracts repository, pull request, and issue metadata from Bitbucket Cloud REST 2.0 JSON endpoints and bitbucket.org repository URLs with CSR SPA shell guards." +domains: + - api.bitbucket.org + - bitbucket.org +auth_mode: pub +exampleUrls: + - "https://api.bitbucket.org/2.0/repositories/atlassian/aui" + - "https://bitbucket.org/atlassian/aui" + +routes: + - match: + hosts: + - api.bitbucket.org + pathPrefix: /2.0/repositories/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: bitbucket_json + + - match: + hosts: + - bitbucket.org + exactSegments: true + pathSegments: + - param: ws + charset: pkg + reserved: + - account + - dashboard + - repo + - product + - features + - enterprise + - blog + - plans + - security + - support + - param: repo + charset: pkg + twin: + fetchUrl: "https://api.bitbucket.org/2.0/repositories/{ws}/{repo}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: bitbucket_json + +htmlRoutes: + - id: bitbucket-cloud + match: + hosts: + - bitbucket.org + exactSegments: false + mode: bitbucket_html diff --git a/internal/extract/manifests/browser-addons-amo-cws.yaml b/internal/extract/manifests/browser-addons-amo-cws.yaml new file mode 100644 index 0000000..a999363 --- /dev/null +++ b/internal/extract/manifests/browser-addons-amo-cws.yaml @@ -0,0 +1,51 @@ +# Shared Go + TypeScript Declarative Site Adapter: Firefox AMO & Chrome Web Store (#334) +id: browser-addons-amo-cws +name: Firefox AMO & Chrome Web Store +category: developer +description: "Extracts browser extension metadata, versions, permissions, and user ratings from Firefox Add-ons v5 JSON API and Chrome Web Store detail HTML (full 2 MiB scan)." +domains: + - addons.mozilla.org + - chromewebstore.google.com +auth_mode: pub +exampleUrls: + - "https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/" + - "https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb" + +routes: + - match: + hosts: + - addons.mozilla.org + pathPrefix: /api/v5/addons/addon/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: amo_addon_json + + - match: + hosts: + - addons.mozilla.org + optionalLeadingLocale: true + exactSegments: true + pathSegments: + - firefox + - addon + - param: slug + charset: pkg + twin: + fetchUrl: "https://addons.mozilla.org/api/v5/addons/addon/{slug}/" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: amo_addon_json + +htmlRoutes: + - id: browser-addons-amo-cws + match: + hosts: + - chromewebstore.google.com + pathPrefix: /detail/ + mode: chrome_web_store_html diff --git a/internal/extract/manifests/bugzilla.yaml b/internal/extract/manifests/bugzilla.yaml new file mode 100644 index 0000000..8744e4d --- /dev/null +++ b/internal/extract/manifests/bugzilla.yaml @@ -0,0 +1,44 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bugzilla (#330) +id: bugzilla +name: Bugzilla Issue Tracker +category: developer +description: "Universal Bugzilla extractor supporting direct /rest/bug/ JSON endpoints and robots-compliant /show_bug.cgi SSR HTML extraction without rewriting /show_bug.cgi to /rest/." +domains: + - bugzilla.kernel.org + - bugzilla.mozilla.org +universalEngine: true +auth_mode: pub +min_interval_ms: 3000 +exampleUrls: + - "https://bugzilla.kernel.org/rest/bug/218000" + - "https://bugzilla.kernel.org/show_bug.cgi?id=218000" + - "https://bugzilla.mozilla.org/show_bug.cgi?id=1800000" + +routes: + - match: + anyOf: + - pathPrefix: /rest/bug/ + - pathPrefix: /bugzilla/rest/bug/ + excludeSegmentSuffixes: + - .html + - .htm + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: bugzilla_json + +htmlRoutes: + - id: bugzilla + match: + anyOf: + - pathEquals: + - /show_bug.cgi + - /bugzilla/show_bug.cgi + queryParams: + - name: id + param: bugId + charset: pkg + mode: bugzilla_html diff --git a/internal/extract/manifests/bundlephobia-packagephobia.yaml b/internal/extract/manifests/bundlephobia-packagephobia.yaml new file mode 100644 index 0000000..c828003 --- /dev/null +++ b/internal/extract/manifests/bundlephobia-packagephobia.yaml @@ -0,0 +1,73 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bundlephobia & Packagephobia (#340) +id: bundlephobia-packagephobia +name: Bundlephobia & Packagephobia +category: developer +description: "Extracts npm bundle minified/gzip sizes and install size metrics from bundlephobia.com and packagephobia.com with Vercel Security Checkpoint / 429 HTML shell rejection." +domains: + - bundlephobia.com + - packagephobia.com +auth_mode: pub +exampleUrls: + - "https://bundlephobia.com/api/size?package=lodash@4.17.21" + - "https://bundlephobia.com/package/lodash@4.17.21" + +routes: + - match: + hosts: + - bundlephobia.com + exactSegments: true + pathEquals: + - /api/size + queryParams: + - name: package + param: pkg + charset: safe_subpath + minLen: 1 + maxLen: 214 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: bundlephobia_json + + - match: + hosts: + - bundlephobia.com + pathPrefix: /package/ + pathSegments: + - package + - param: pkg + charset: safe_subpath + greedy: true + twin: + fetchUrl: "https://bundlephobia.com/api/size?package={pkg}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: bundlephobia_json + + - match: + hosts: + - packagephobia.com + exactSegments: true + pathEquals: + - /v2/api.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: packagephobia_json + +htmlRoutes: + - id: bundlephobia-packagephobia + match: + hosts: + - bundlephobia.com + - packagephobia.com + exactSegments: false + mode: bundle_packagephobia_html diff --git a/internal/extract/manifests/certificate-transparency.yaml b/internal/extract/manifests/certificate-transparency.yaml new file mode 100644 index 0000000..d1ac70a --- /dev/null +++ b/internal/extract/manifests/certificate-transparency.yaml @@ -0,0 +1,51 @@ +# Shared Go + TypeScript Declarative Site Adapter: Certificate Transparency (#324) +id: certificate-transparency +name: Certificate Transparency (Cert Spotter & crt.sh) +category: developer +description: "Extracts Certificate Transparency log issuances from api.certspotter.com and crt.sh JSON/HTML endpoints with bounded records and negative shell guards." +domains: + - api.certspotter.com + - crt.sh +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.certspotter.com/v1/issuances?domain=example.com" + +routes: + - match: + hosts: + - api.certspotter.com + exactSegments: false + pathPrefix: /v1/issuances + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: cert_transparency_json + + - match: + hosts: + - crt.sh + exactSegments: false + queryParams: + - name: output + param: out + allowValues: + - json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: cert_transparency_json + +htmlRoutes: + - id: certificate-transparency + match: + hosts: + - crt.sh + exactSegments: false + mode: cert_transparency_html diff --git a/internal/extract/manifests/cisa-advisories-ics.yaml b/internal/extract/manifests/cisa-advisories-ics.yaml new file mode 100644 index 0000000..c7dd6a9 --- /dev/null +++ b/internal/extract/manifests/cisa-advisories-ics.yaml @@ -0,0 +1,42 @@ +# Shared Go + TypeScript Declarative Site Adapter: CISA Cybersecurity & ICS Advisories (#320) +id: cisa-advisories-ics +name: CISA Cybersecurity & ICS Advisories +category: developer +description: "Extracts CISA cybersecurity and ICS advisory RSS feeds (with embedded CVE and CSAF links) and Drupal 11 SSR advisory/alert HTML pages on www.cisa.gov." +domains: + - www.cisa.gov +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml" + - "https://www.cisa.gov/cybersecurity-advisories/all.xml" + - "https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01" + +routes: + - match: + hosts: + - www.cisa.gov + - cisa.gov + exactSegments: false + pathPrefix: /cybersecurity-advisories/ + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 2097152 + extract: + textMode: cisa_advisories_rss + +htmlRoutes: + - id: cisa-advisories-ics + match: + hosts: + - www.cisa.gov + - cisa.gov + exactSegments: false + anyOf: + - pathPrefix: /news-events/ + - pathPrefix: /cybersecurity-advisories + mode: cisa_advisories_html diff --git a/internal/extract/manifests/cisa-kev.yaml b/internal/extract/manifests/cisa-kev.yaml new file mode 100644 index 0000000..822d1b8 --- /dev/null +++ b/internal/extract/manifests/cisa-kev.yaml @@ -0,0 +1,55 @@ +# Shared Go + TypeScript Declarative Site Adapter: CISA Known Exploited Vulnerabilities (KEV) (#315) +id: cisa-kev +name: CISA Known Exploited Vulnerabilities (KEV) Catalog +category: developer +description: "Bounded JSON/CSV extractor for CISA's Known Exploited Vulnerabilities (KEV) catalog with optional ?cve= filtering plus SSR catalog HTML extraction." +domains: + - cisa.gov +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json" + - "https://www.cisa.gov/known-exploited-vulnerabilities-catalog" + +routes: + - match: + hosts: + - www.cisa.gov + - cisa.gov + exactSegments: true + pathEquals: + - /sites/default/files/feeds/known_exploited_vulnerabilities.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: cisa_kev_json + + - match: + hosts: + - www.cisa.gov + - cisa.gov + exactSegments: true + pathEquals: + - /sites/default/files/csv/known_exploited_vulnerabilities.csv + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: text/plain + maxBytes: 4194304 + extract: + textMode: cisa_kev_csv + +htmlRoutes: + - id: cisa-kev + match: + hosts: + - www.cisa.gov + - cisa.gov + exactSegments: true + pathEquals: + - /known-exploited-vulnerabilities-catalog + mode: cisa_kev_html diff --git a/internal/extract/manifests/compiled.json b/internal/extract/manifests/compiled.json index 02f1eb5..72b5033 100644 --- a/internal/extract/manifests/compiled.json +++ b/internal/extract/manifests/compiled.json @@ -1 +1 @@ -{"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"]}}]}]} +{"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":"ansible-puppet-forge","name":"Ansible Galaxy & Puppet Forge","category":"developer","description":"Extracts Ansible collection metadata from galaxy.ansible.com v3 JSON API and Puppet module metadata from forge.puppet.com __NEXT_DATA__ HTML without upgrading to robots-disallowed forgeapi.puppet.com.","domains":["galaxy.ansible.com","forge.puppet.com","forgeapi.puppet.com"],"auth_mode":"pub","exampleUrls":["https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/community/general/","https://forge.puppet.com/modules/puppetlabs/stdlib"],"routes":[{"match":{"hosts":["galaxy.ansible.com"],"pathPrefix":"/api/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"ansible_galaxy_json"}},{"match":{"hosts":["forgeapi.puppet.com"],"pathPrefix":"/v3/modules/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"puppet_forge_json"}}],"htmlRoutes":[{"id":"ansible-puppet-forge","match":{"hosts":["forge.puppet.com"],"pathPrefix":"/modules/"},"mode":"puppet_forge_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":"apis-guru","name":"APIs.guru OpenAPI Directory","category":"developer","description":"Extracts OpenAPI directory metrics, per-provider API specs, and Range-bounded streaming partial-JSON directory entries from api.apis.guru.","domains":["api.apis.guru","apis.guru"],"auth_mode":"pub","exampleUrls":["https://api.apis.guru/v2/metrics.json","https://api.apis.guru/v2/github.com.json","https://api.apis.guru/v2/list.json"],"routes":[{"match":{"hosts":["api.apis.guru"],"exactSegments":true,"pathEquals":["/v2/list.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json","maxBytes":2097152,"headers":{"Range":"bytes=0-2097151"}},"extract":{"textMode":"apis_guru_list_bounded"}},{"match":{"hosts":["api.apis.guru"],"pathPrefix":"/v2/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"apis_guru_json"}}],"htmlRoutes":[{"id":"apis-guru","match":{"hosts":["apis.guru","api.apis.guru"],"exactSegments":false},"mode":"apis_guru_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":"artifact-hub","name":"Artifact Hub","category":"developer","description":"Extracts Kubernetes Helm chart, operator, and CNCF package versions, repositories, security reports, and READMEs from artifacthub.io v1 API and package URLs.","domains":["artifacthub.io"],"auth_mode":"pub","exampleUrls":["https://artifacthub.io/api/v1/packages/helm/ingress-nginx/ingress-nginx","https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx"],"routes":[{"match":{"hosts":["artifacthub.io"],"pathPrefix":"/api/v1/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"artifact_hub_json"}},{"match":{"hosts":["artifacthub.io"],"exactSegments":true,"pathSegments":["packages",{"param":"kind","charset":"slug"},{"param":"repo","charset":"pkg"},{"param":"pkg","charset":"pkg"}]},"twin":{"fetchUrl":"https://artifacthub.io/api/v1/packages/{kind}/{repo}/{pkg}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"artifact_hub_json"}}],"htmlRoutes":[{"id":"artifact-hub","match":{"hosts":["artifacthub.io"],"exactSegments":false},"mode":"artifact_hub_html"}]},{"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":"bgp-asn","name":"BGP & ASN Intelligence (RIPEstat & bgp.he.net)","category":"developer","description":"Extracts BGP ASN overview and prefix announcements from RIPEstat JSON APIs and Hurricane Electric bgp.he.net pages (bounded to <= 1 MiB before parsing).","domains":["stat.ripe.net","bgp.he.net"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://stat.ripe.net/data/as-overview/data.json?resource=AS13335","https://bgp.he.net/AS13335"],"routes":[{"match":{"hosts":["stat.ripe.net"],"exactSegments":false,"pathPrefix":"/data/","pathSuffix":"/data.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bgp_asn_ripe_json"}}],"htmlRoutes":[{"id":"bgp-asn","match":{"hosts":["bgp.he.net"],"exactSegments":false},"mode":"bgp_he_html"}]},{"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":"biorxiv-medrxiv","name":"bioRxiv & medRxiv Preprints","category":"research-health","description":"Extracts bioRxiv and medRxiv preprint metadata, versions, abstracts, and JATS XML links from api.biorxiv.org JSON and bioRxiv/medRxiv HTML (no cross-domain medrxiv.org -> api.biorxiv.org twin).","domains":["api.biorxiv.org","www.biorxiv.org","biorxiv.org","www.medrxiv.org","medrxiv.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.biorxiv.org/details/biorxiv/10.1101/2020.09.02.278911/na/json","https://api.biorxiv.org/details/medrxiv/10.1101/2020.05.28.20116129/na/json","https://www.biorxiv.org/content/10.1101/2020.09.02.278911v1"],"routes":[{"match":{"hosts":["api.biorxiv.org"],"pathPrefix":"/details/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"biorxiv_medrxiv_json"}}],"htmlRoutes":[{"id":"biorxiv-medrxiv","match":{"hosts":["www.biorxiv.org","biorxiv.org","www.medrxiv.org","medrxiv.org"],"exactSegments":false},"mode":"biorxiv_medrxiv_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":"bitbucket-cloud","name":"Bitbucket Cloud","category":"developer","description":"Extracts repository, pull request, and issue metadata from Bitbucket Cloud REST 2.0 JSON endpoints and bitbucket.org repository URLs with CSR SPA shell guards.","domains":["api.bitbucket.org","bitbucket.org"],"auth_mode":"pub","exampleUrls":["https://api.bitbucket.org/2.0/repositories/atlassian/aui","https://bitbucket.org/atlassian/aui"],"routes":[{"match":{"hosts":["api.bitbucket.org"],"pathPrefix":"/2.0/repositories/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bitbucket_json"}},{"match":{"hosts":["bitbucket.org"],"exactSegments":true,"pathSegments":[{"param":"ws","charset":"pkg","reserved":["account","dashboard","repo","product","features","enterprise","blog","plans","security","support"]},{"param":"repo","charset":"pkg"}]},"twin":{"fetchUrl":"https://api.bitbucket.org/2.0/repositories/{ws}/{repo}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"bitbucket_json"}}],"htmlRoutes":[{"id":"bitbucket-cloud","match":{"hosts":["bitbucket.org"],"exactSegments":false},"mode":"bitbucket_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":"browser-addons-amo-cws","name":"Firefox AMO & Chrome Web Store","category":"developer","description":"Extracts browser extension metadata, versions, permissions, and user ratings from Firefox Add-ons v5 JSON API and Chrome Web Store detail HTML (full 2 MiB scan).","domains":["addons.mozilla.org","chromewebstore.google.com"],"auth_mode":"pub","exampleUrls":["https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/","https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb"],"routes":[{"match":{"hosts":["addons.mozilla.org"],"pathPrefix":"/api/v5/addons/addon/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"amo_addon_json"}},{"match":{"hosts":["addons.mozilla.org"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["firefox","addon",{"param":"slug","charset":"pkg"}]},"twin":{"fetchUrl":"https://addons.mozilla.org/api/v5/addons/addon/{slug}/","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"amo_addon_json"}}],"htmlRoutes":[{"id":"browser-addons-amo-cws","match":{"hosts":["chromewebstore.google.com"],"pathPrefix":"/detail/"},"mode":"chrome_web_store_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":"bugzilla","name":"Bugzilla Issue Tracker","category":"developer","description":"Universal Bugzilla extractor supporting direct /rest/bug/ JSON endpoints and robots-compliant /show_bug.cgi SSR HTML extraction without rewriting /show_bug.cgi to /rest/.","domains":["bugzilla.kernel.org","bugzilla.mozilla.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"exampleUrls":["https://bugzilla.kernel.org/rest/bug/218000","https://bugzilla.kernel.org/show_bug.cgi?id=218000","https://bugzilla.mozilla.org/show_bug.cgi?id=1800000"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rest/bug/"},{"pathPrefix":"/bugzilla/rest/bug/"}],"excludeSegmentSuffixes":[".html",".htm"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bugzilla_json"}}],"htmlRoutes":[{"id":"bugzilla","match":{"anyOf":[{"pathEquals":["/show_bug.cgi","/bugzilla/show_bug.cgi"],"queryParams":[{"name":"id","param":"bugId","charset":"pkg"}]}]},"mode":"bugzilla_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":"bundlephobia-packagephobia","name":"Bundlephobia & Packagephobia","category":"developer","description":"Extracts npm bundle minified/gzip sizes and install size metrics from bundlephobia.com and packagephobia.com with Vercel Security Checkpoint / 429 HTML shell rejection.","domains":["bundlephobia.com","packagephobia.com"],"auth_mode":"pub","exampleUrls":["https://bundlephobia.com/api/size?package=lodash@4.17.21","https://bundlephobia.com/package/lodash@4.17.21"],"routes":[{"match":{"hosts":["bundlephobia.com"],"exactSegments":true,"pathEquals":["/api/size"],"queryParams":[{"name":"package","param":"pkg","charset":"safe_subpath","minLen":1,"maxLen":214}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"bundlephobia_json"}},{"match":{"hosts":["bundlephobia.com"],"pathPrefix":"/package/","pathSegments":["package",{"param":"pkg","charset":"safe_subpath","greedy":true}]},"twin":{"fetchUrl":"https://bundlephobia.com/api/size?package={pkg}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"bundlephobia_json"}},{"match":{"hosts":["packagephobia.com"],"exactSegments":true,"pathEquals":["/v2/api.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"packagephobia_json"}}],"htmlRoutes":[{"id":"bundlephobia-packagephobia","match":{"hosts":["bundlephobia.com","packagephobia.com"],"exactSegments":false},"mode":"bundle_packagephobia_html"}]},{"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":"certificate-transparency","name":"Certificate Transparency (Cert Spotter & crt.sh)","category":"developer","description":"Extracts Certificate Transparency log issuances from api.certspotter.com and crt.sh JSON/HTML endpoints with bounded records and negative shell guards.","domains":["api.certspotter.com","crt.sh"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.certspotter.com/v1/issuances?domain=example.com"],"routes":[{"match":{"hosts":["api.certspotter.com"],"exactSegments":false,"pathPrefix":"/v1/issuances"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cert_transparency_json"}},{"match":{"hosts":["crt.sh"],"exactSegments":false,"queryParams":[{"name":"output","param":"out","allowValues":["json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cert_transparency_json"}}],"htmlRoutes":[{"id":"certificate-transparency","match":{"hosts":["crt.sh"],"exactSegments":false},"mode":"cert_transparency_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":"cisa-advisories-ics","name":"CISA Cybersecurity & ICS Advisories","category":"developer","description":"Extracts CISA cybersecurity and ICS advisory RSS feeds (with embedded CVE and CSAF links) and Drupal 11 SSR advisory/alert HTML pages on www.cisa.gov.","domains":["www.cisa.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml","https://www.cisa.gov/cybersecurity-advisories/all.xml","https://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01"],"routes":[{"match":{"hosts":["www.cisa.gov","cisa.gov"],"exactSegments":false,"pathPrefix":"/cybersecurity-advisories/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"cisa_advisories_rss"}}],"htmlRoutes":[{"id":"cisa-advisories-ics","match":{"hosts":["www.cisa.gov","cisa.gov"],"exactSegments":false,"anyOf":[{"pathPrefix":"/news-events/"},{"pathPrefix":"/cybersecurity-advisories"}]},"mode":"cisa_advisories_html"}]},{"id":"cisa-kev","name":"CISA Known Exploited Vulnerabilities (KEV) Catalog","category":"developer","description":"Bounded JSON/CSV extractor for CISA's Known Exploited Vulnerabilities (KEV) catalog with optional ?cve= filtering plus SSR catalog HTML extraction.","domains":["cisa.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","https://www.cisa.gov/known-exploited-vulnerabilities-catalog"],"routes":[{"match":{"hosts":["www.cisa.gov","cisa.gov"],"exactSegments":true,"pathEquals":["/sites/default/files/feeds/known_exploited_vulnerabilities.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cisa_kev_json"}},{"match":{"hosts":["www.cisa.gov","cisa.gov"],"exactSegments":true,"pathEquals":["/sites/default/files/csv/known_exploited_vulnerabilities.csv"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":4194304},"extract":{"textMode":"cisa_kev_csv"}}],"htmlRoutes":[{"id":"cisa-kev","match":{"hosts":["www.cisa.gov","cisa.gov"],"exactSegments":true,"pathEquals":["/known-exploited-vulnerabilities-catalog"]},"mode":"cisa_kev_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":"core-ac","name":"CORE Open Access Research Papers","category":"research-health","description":"Official keyed CORE v3 API adapter (CORE_AC_API_KEY via Authorization: Bearer) for open-access scholarly works and search, with core.ac.uk HTML fallback and Cloudflare challenge guard.","domains":["api.core.ac.uk","core.ac.uk","www.core.ac.uk"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.core.ac.uk/v3/works/11689643","https://api.core.ac.uk/v3/search/works?q=solar&limit=1","https://core.ac.uk/works/11689643"],"routes":[{"match":{"hosts":["api.core.ac.uk"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"core_ac_json"}},{"match":{"hosts":["core.ac.uk","www.core.ac.uk"],"anyOf":[{"exactSegments":true,"pathSegments":["works",{"param":"workId","charset":"digits","minLen":1,"maxLen":20}]},{"exactSegments":true,"pathSegments":["reader",{"param":"workId","charset":"digits","minLen":1,"maxLen":20}]}]},"twin":{"fetchUrl":"https://api.core.ac.uk/v3/works/{workId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"core_ac_json"}}],"htmlRoutes":[{"id":"core-ac","match":{"hosts":["core.ac.uk","www.core.ac.uk"],"exactSegments":false},"mode":"core_ac_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":"cve-org","name":"CVE.org & CVE Services (CVE JSON 5.x)","category":"developer","description":"Extracts authoritative CVE JSON 5.x records from cveawg.mitre.org/api/cve/ and guards www.cve.org Vue CSR SPA shells.","domains":["cveawg.mitre.org","www.cve.org","cve.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://cveawg.mitre.org/api/cve/CVE-2024-3094"],"routes":[{"match":{"hosts":["cveawg.mitre.org"],"exactSegments":true,"pathSegments":["api","cve",{"param":"cveId","charset":"cve_id","transform":"upper"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cve_org_json"}}],"htmlRoutes":[{"id":"cve-org","match":{"hosts":["www.cve.org","cve.org"],"exactSegments":false},"mode":"cve_org_html"}]},{"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":"datacite","name":"DataCite DOI & Commons Registry","category":"research-health","description":"Extracts DataCite JSON:API DOI metadata (titles, creators, publisher, resourceType, descriptions) from api.datacite.org and commons.datacite.org (without claiming doi.org).","domains":["api.datacite.org","commons.datacite.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.datacite.org/dois/10.5281/zenodo.24485086","https://api.datacite.org/dois/10.24406/publica-2155"],"routes":[{"match":{"hosts":["api.datacite.org"],"anyOf":[{"pathSegments":["dois",{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},{"exactSegments":true,"pathEquals":["/dois"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"datacite_json"}},{"match":{"hosts":["commons.datacite.org"],"pathSegments":["doi.org",{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"https://api.datacite.org/dois/{doi}","rawPathParams":["doi"],"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"datacite_json"}}],"htmlRoutes":[{"id":"datacite","match":{"hosts":["commons.datacite.org"],"exactSegments":false},"mode":"datacite_html"}]},{"id":"dblp","name":"DBLP Computer Science Bibliography","category":"research-health","description":"Extracts DBLP publication/author search API JSON, direct /rec/*.xml records, and /rec/*.html pages while honoring Crawl-delay: 4 and rejecting Anubis PoW challenges.","domains":["dblp.org","www.dblp.org"],"auth_mode":"pub","min_interval_ms":4000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://dblp.org/search/publ/api?q=attention+is+all+you+need&format=json&h=2","https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html"],"routes":[{"match":{"hosts":["dblp.org","www.dblp.org"],"anyOf":[{"pathPrefix":"/search/publ/api"},{"pathPrefix":"/search/author/api"},{"pathPrefix":"/search/venue/api"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"dblp_json"}},{"match":{"hosts":["dblp.org","www.dblp.org"],"pathPrefix":"/rec/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"dblp_xml"}}],"htmlRoutes":[{"id":"dblp","match":{"hosts":["dblp.org","www.dblp.org"],"exactSegments":false},"mode":"dblp_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":"doe-osti","name":"DOE OSTI.GOV Technical Reports & Records","category":"research-health","description":"Extracts U.S. Department of Energy scientific and technical records from www.osti.gov/api/v1/records (handling both top-level JSON arrays and objects) and /biblio/ HTML fallback.","domains":["www.osti.gov","osti.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.osti.gov/api/v1/records/1800000","https://www.osti.gov/api/v1/records?q=solar&rows=2","https://www.osti.gov/biblio/1800000"],"routes":[{"match":{"hosts":["www.osti.gov","osti.gov"],"pathPrefix":"/api/v1/records"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"doe_osti_json"}},{"match":{"hosts":["www.osti.gov","osti.gov"],"exactSegments":true,"pathSegments":["biblio",{"param":"ostiId","charset":"digits","minLen":3,"maxLen":16}]},"twin":{"fetchUrl":"https://www.osti.gov/api/v1/records/{ostiId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"doe_osti_json"}}],"htmlRoutes":[{"id":"doe-osti","match":{"hosts":["www.osti.gov","osti.gov"],"pathPrefix":"/biblio/","exactSegments":false},"mode":"doe_osti_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":"endoflife-date","name":"endoflife.date Lifecycle Registry","category":"developer","description":"Extracts product release cycles, EOL dates, LTS windows, and latest versions from endoflife.date v1/legacy JSON APIs and SSR product pages.","domains":["endoflife.date"],"auth_mode":"pub","exampleUrls":["https://endoflife.date/api/python.json","https://endoflife.date/api/v1/products/python/","https://endoflife.date/python"],"routes":[{"match":{"hosts":["endoflife.date"],"pathPrefix":"/api/v1/products/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"endoflife_json"}},{"match":{"hosts":["endoflife.date"],"pathPrefix":"/api/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"endoflife_json"}},{"match":{"hosts":["endoflife.date"],"exactSegments":true,"pathSegments":[{"param":"product","charset":"pkg","reserved":["api","docs","calendar","tags","categories","assets","feed.xml","robots.txt","sitemap.xml"]}]},"twin":{"fetchUrl":"https://endoflife.date/api/v1/products/{product}/","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"endoflife_json"}}],"htmlRoutes":[{"id":"endoflife-date","match":{"hosts":["endoflife.date"],"exactSegments":false},"mode":"endoflife_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":"exploit-db","name":"Exploit Database (Exploit-DB)","category":"developer","description":"Extracts Exploit-DB SSR exploit pages and RSS feeds on exploit-db.com plus bounded Range-streaming CSV extraction on GitLab exploitdb/files_exploits.csv.","domains":["www.exploit-db.com","exploit-db.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.exploit-db.com/exploits/51000","https://www.exploit-db.com/rss.xml"],"routes":[{"match":{"hosts":["gitlab.com"],"exactSegments":true,"pathEquals":["/exploit-database/exploitdb/-/raw/main/files_exploits.csv"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"exploit_db_csv"}},{"match":{"hosts":["www.exploit-db.com","exploit-db.com"],"exactSegments":true,"pathEquals":["/rss.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"exploit_db_rss"}}],"htmlRoutes":[{"id":"exploit-db","match":{"hosts":["www.exploit-db.com","exploit-db.com"],"exactSegments":false},"mode":"exploit_db_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":"first-epss","name":"FIRST Exploit Prediction Scoring System (EPSS)","category":"developer","description":"Extracts CVE exploit probability scores, percentiles, and scoring dates from FIRST EPSS v1 JSON API.","domains":["api.first.org"],"auth_mode":"pub","exampleUrls":["https://api.first.org/data/v1/epss?cve=CVE-2024-3094"],"routes":[{"match":{"hosts":["api.first.org"],"exactSegments":false,"pathPrefix":"/data/v1/epss"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"first_epss_json"}}]},{"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":"gerrit","name":"Gerrit Code Review","category":"developer","description":"Universal Gerrit Code Review JSON extractor for /changes/ and /r/changes/ endpoints with linear XSSI )]}' prefix stripping and Crawl-delay pacing.","domains":["review.opendev.org","gerrit.wikimedia.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://review.opendev.org/changes/?q=status:merged&n=2","https://review.opendev.org/changes/1010181/detail","https://gerrit.wikimedia.org/r/changes/?q=status:merged&n=2"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/changes/"},{"pathPrefix":"/r/changes/"},{"pathPrefix":"/gerrit/changes/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json","maxBytes":2097152},"extract":{"textMode":"gerrit_json"}}]},{"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":"jira-public","name":"Jira Public Issue Tracker","category":"developer","description":"Universal Jira Server/DC/Cloud extractor supporting direct /rest/api/2|3/issue/ JSON endpoints and robots-compliant /browse/ SSR HTML extraction.","domains":["jira.mariadb.org","jira.atlassian.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://jira.mariadb.org/rest/api/2/issue/MDEV-30000","https://jira.mariadb.org/browse/MDEV-30000","https://jira.atlassian.com/rest/api/2/issue/JRASERVER-71500"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rest/api/2/issue/"},{"pathPrefix":"/rest/api/3/issue/"},{"pathPrefix":"/jira/rest/api/2/issue/"},{"pathPrefix":"/jira/rest/api/3/issue/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"jira_public_json"}}],"htmlRoutes":[{"id":"jira-public","match":{"anyOf":[{"pathPrefix":"/browse/"},{"pathPrefix":"/jira/browse/"}]},"mode":"jira_public_html"}]},{"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":"mitre-attack","name":"MITRE ATT&CK STIX & Knowledge Base","category":"developer","description":"Range-bounded linear STIX 2.1 bundle prefix scanner on GitHub raw attack-stix-data plus static HTML extractor for attack.mitre.org techniques, tactics, groups, and software.","domains":["attack.mitre.org","www.attack.mitre.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://attack.mitre.org/techniques/T1059/","https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/index.json","https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json"],"routes":[{"match":{"hosts":["raw.githubusercontent.com"],"exactSegments":true,"pathEquals":["/mitre-attack/attack-stix-data/master/index.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"mitre_attack_index_json"}},{"match":{"hosts":["raw.githubusercontent.com"],"exactSegments":false,"pathPrefix":"/mitre-attack/attack-stix-data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"mitre_attack_stix_bundle"}}],"htmlRoutes":[{"id":"mitre-attack","match":{"hosts":["attack.mitre.org","www.attack.mitre.org"],"exactSegments":false},"mode":"mitre_attack_html"}]},{"id":"mitre-cwe-capec","name":"MITRE CWE & CAPEC Weaknesses and Attack Patterns","category":"developer","description":"Extracts Common Weakness Enumeration (CWE) JSON from cwe-api.mitre.org and XHTML definitions from cwe.mitre.org and capec.mitre.org.","domains":["cwe-api.mitre.org","cwe.mitre.org","capec.mitre.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://cwe-api.mitre.org/api/v1/cwe/weakness/79","https://cwe.mitre.org/data/definitions/79.html","https://capec.mitre.org/data/definitions/1.html"],"routes":[{"match":{"hosts":["cwe-api.mitre.org"],"exactSegments":false,"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mitre_cwe_json"}},{"match":{"hosts":["cwe.mitre.org"],"exactSegments":true,"pathSegments":["data","definitions",{"param":"cweId","charset":"digits","stripSuffix":".html","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://cwe-api.mitre.org/api/v1/cwe/weakness/{cweId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mitre_cwe_json"}}],"htmlRoutes":[{"id":"mitre-cwe-capec","match":{"hosts":["cwe.mitre.org","capec.mitre.org"],"exactSegments":false},"mode":"mitre_cwe_capec_html"}]},{"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-ads","name":"NASA Astrophysics Data System (ADS)","category":"research-health","description":"Official keyed NASA ADS API adapter (NASA_ADS_API_KEY via Authorization: Bearer) for astronomy/physics literature search and bibcodes, with ui.adsabs.harvard.edu HTML fallback and AWS WAF shell guard.","domains":["api.adsabs.harvard.edu","ui.adsabs.harvard.edu"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V&fl=bibcode,title,author","https://ui.adsabs.harvard.edu/abs/2017arXiv170603762V/abstract"],"routes":[{"match":{"hosts":["api.adsabs.harvard.edu"],"pathPrefix":"/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nasa_ads_json"}},{"match":{"hosts":["ui.adsabs.harvard.edu"],"exactSegments":false,"pathSegments":["abs",{"param":"bibcode","charset":"url_seg","minLen":10,"maxLen":32}]},"twin":{"fetchUrl":"https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:{bibcode}&fl=bibcode,title,author,pub,year,pubdate,abstract,citation_count,doi,identifier","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nasa_ads_json"}}],"htmlRoutes":[{"id":"nasa-ads","match":{"hosts":["ui.adsabs.harvard.edu"],"exactSegments":false},"mode":"nasa_ads_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":"nih-reporter","name":"NIH RePORTER Funded Projects","category":"research-health","description":"Upgrades reporter.nih.gov/project-details/ URLs to api.reporter.nih.gov/v2/projects/search POST JSON with strict CSR SPA shell rejection on HTML fallback.","domains":["api.reporter.nih.gov","reporter.nih.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://reporter.nih.gov/project-details/10476325","https://api.reporter.nih.gov/v2/projects/search"],"routes":[{"match":{"hosts":["api.reporter.nih.gov"],"pathPrefix":"/v2/projects/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"criteria\":{\"project_nums\":[\"5R01CA242003-04\"]},\"limit\":5}","maxBytes":2097152},"extract":{"jsonMode":"nih_reporter_json"}},{"match":{"hosts":["reporter.nih.gov"],"exactSegments":false,"pathSegments":["project-details",{"param":"applId","charset":"digits","minLen":4,"maxLen":16}]},"twin":{"fetchUrl":"https://api.reporter.nih.gov/v2/projects/search","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"criteria\":{\"appl_ids\":[{applId}]},\"limit\":1}","maxBytes":2097152},"extract":{"jsonMode":"nih_reporter_json"}}],"htmlRoutes":[{"id":"nih-reporter","match":{"hosts":["reporter.nih.gov"],"exactSegments":false},"mode":"nih_reporter_html"}]},{"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":"nsf-awards","name":"National Science Foundation (NSF) Awards","category":"research-health","description":"Extracts NSF grant awards, PIs, institutions, obligated amounts, and abstracts from api.nsf.gov JSON with awardsearch SPA shell guards.","domains":["api.nsf.gov","www.nsf.gov","nsf.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.nsf.gov/services/v1/awards/2535346.json","https://api.nsf.gov/services/v1/awards.json?keyword=quantum&rpp=2","https://www.nsf.gov/awardsearch/show-award?AWD_ID=2535346"],"routes":[{"match":{"hosts":["api.nsf.gov"],"pathPrefix":"/services/v1/awards"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nsf_awards_json"}},{"match":{"hosts":["www.nsf.gov","nsf.gov"],"exactSegments":true,"pathEquals":["/awardsearch/showAward","/awardsearch/showAward/","/awardsearch/show-award","/awardsearch/show-award/"],"queryParams":[{"name":"AWD_ID","param":"awardId","charset":"digits","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.nsf.gov/services/v1/awards/{awardId}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nsf_awards_json"}}],"htmlRoutes":[{"id":"nsf-awards","match":{"hosts":["www.nsf.gov","nsf.gov"],"pathPrefix":"/awardsearch/","exactSegments":false},"mode":"nsf_awards_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":"orcid","name":"ORCID Researcher Registry","category":"research-health","description":"Extracts ORCID researcher profiles, affiliations, and works via pub.orcid.org v3.0 JSON API with orcid.org Angular CSR shell guard.","domains":["pub.orcid.org","orcid.org","www.orcid.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://pub.orcid.org/v3.0/0000-0002-1825-0097/record","https://orcid.org/0000-0002-1825-0097"],"routes":[{"match":{"hosts":["pub.orcid.org"],"pathPrefix":"/v3.0/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"orcid_json"}},{"match":{"hosts":["orcid.org","www.orcid.org"],"exactSegments":true,"pathSegments":[{"param":"orcidId","charset":"cpsc_recall_num","minLen":19,"maxLen":19,"transform":"upper"}]},"twin":{"fetchUrl":"https://pub.orcid.org/v3.0/{orcidId}/record","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"orcid_json"}}],"htmlRoutes":[{"id":"orcid","match":{"hosts":["orcid.org","www.orcid.org"],"exactSegments":false},"mode":"orcid_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":"rdap","name":"RDAP (Registration Data Access Protocol)","category":"developer","description":"Universal RFC 9083 RDAP JSON extractor for domain, IP, autnum, and entity lookups across RIRs/registries plus IANA RDAP bootstrap registries.","domains":["rdap.verisign.com","rdap.arin.net","rdap.apnic.net","rdap.db.ripe.net","rdap.ripe.net","rdap.lacnic.net","rdap.afrinic.net","data.iana.org","rdap.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://rdap.verisign.com/com/v1/domain/example.com","https://rdap.arin.net/registry/autnum/13335","https://rdap.apnic.net/ip/1.1.1.1","https://rdap.db.ripe.net/ip/193.0.0.193","https://data.iana.org/rdap/dns.json"],"routes":[{"match":{"hosts":["data.iana.org"],"exactSegments":false,"pathPrefix":"/rdap/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"rdap_bootstrap_json"}},{"match":{"hosts":["rdap.*","*.rdap.org","pubapi.registry.google"],"exactSegments":false,"anyOf":[{"pathPrefix":"/domain/"},{"pathPrefix":"/ip/"},{"pathPrefix":"/autnum/"},{"pathPrefix":"/entity/"},{"pathContainsSegment":"domain"},{"pathContainsSegment":"ip"},{"pathContainsSegment":"autnum"},{"pathContainsSegment":"entity"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/rdap+json, application/json","maxBytes":1048576},"extract":{"jsonMode":"rdap_json"}}]},{"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":"research-repo-pack","name":"Open Research Repositories (Zenodo, Figshare, Dryad, OSF)","category":"research-health","description":"Extracts open datasets and research artifacts from Zenodo (/records HTML, direct /api/records), Figshare (API + /articles upgrade), Dryad (API + /dataset HTML), and OSF (HTML + direct api.osf.io) while honoring robots.txt disallows.","domains":["zenodo.org","www.zenodo.org","api.figshare.com","figshare.com","www.figshare.com","datadryad.org","www.datadryad.org","api.osf.io","osf.io","www.osf.io"],"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://zenodo.org/records/24485086","https://api.figshare.com/v2/articles/35148283","https://datadryad.org/api/v2/datasets/doi%3A10.5061%2Fdryad.7rh4625","https://datadryad.org/dataset/doi:10.5061/dryad.7rh4625"],"routes":[{"match":{"hosts":["zenodo.org","www.zenodo.org"],"pathPrefix":"/api/records/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"research_repo_pack_json"}},{"match":{"hosts":["api.figshare.com"],"pathPrefix":"/v2/articles/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"research_repo_pack_json"}},{"match":{"hosts":["figshare.com","www.figshare.com"],"pathPrefix":"/articles/","scanSegment":{"scanLast":true,"param":"articleId","charset":"digits","minLen":4,"maxLen":16}},"twin":{"fetchUrl":"https://api.figshare.com/v2/articles/{articleId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"research_repo_pack_json"}},{"match":{"hosts":["datadryad.org","www.datadryad.org"],"pathPrefix":"/api/v2/datasets/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"research_repo_pack_json"}},{"match":{"hosts":["api.osf.io"],"pathPrefix":"/v2/nodes/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"research_repo_pack_json"}}],"htmlRoutes":[{"id":"research-repo-pack","match":{"hosts":["zenodo.org","www.zenodo.org","figshare.com","www.figshare.com","datadryad.org","www.datadryad.org","osf.io","www.osf.io"],"exactSegments":false},"mode":"research_repo_pack_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":"ror","name":"Research Organization Registry (ROR)","category":"research-health","description":"Extracts Research Organization Registry (ROR) v2 organization records, domains, locations, and external IDs (GRID, ISNI, Wikidata) with Vercel challenge HTML guard.","domains":["api.ror.org","ror.org","www.ror.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.ror.org/v2/organizations/03yrm5c26","https://api.ror.org/v2/organizations?query=mit","https://ror.org/03yrm5c26"],"routes":[{"match":{"hosts":["api.ror.org"],"pathPrefix":"/v2/organizations"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ror_json"}},{"match":{"hosts":["ror.org","www.ror.org"],"exactSegments":true,"pathSegments":[{"param":"rorId","charset":"alnum","reserved":["community","resources","changelog"],"minLen":9,"maxLen":9,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.ror.org/v2/organizations/{rorId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ror_json"}}],"htmlRoutes":[{"id":"ror","match":{"hosts":["ror.org","www.ror.org"],"exactSegments":false},"mode":"ror_html"}]},{"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":"security-txt","name":"RFC 9116 security.txt Vulnerability Disclosure","category":"developer","description":"Universal RFC 9116 /.well-known/security.txt and /security.txt parser extracting Contact, Expires, Encryption, Policy, Canonical, Acknowledgments, and CSAF directives with strict Contact validation.","domains":["www.cloudflare.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.cloudflare.com/.well-known/security.txt","https://github.com/.well-known/security.txt"],"routes":[{"match":{"exactSegments":true,"pathEquals":["/.well-known/security.txt","/security.txt"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":262144},"extract":{"textMode":"security_txt_text"}}]},{"id":"semantic-scholar","name":"Semantic Scholar Academic Graph","category":"research-health","description":"Extracts scholarly papers, citation counts, authors, open-access PDFs, and author profiles via api.semanticscholar.org Graph API (keyless + optional SEMANTIC_SCHOLAR_API_KEY) with HTML metadata fallback and AWS WAF shell guard.","domains":["api.semanticscholar.org","www.semanticscholar.org","semanticscholar.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.semanticscholar.org/graph/v1/paper/DOI:10.1038/s41586-021-03819-2?fields=paperId,title,year,authors,abstract,citationCount,openAccessPdf,externalIds","https://www.semanticscholar.org/paper/Attention-is-All-you-Need-Vaswani-Shazeer/204e3073870fae3d05bcbc2f6a8e263d9b72e776"],"routes":[{"match":{"hosts":["api.semanticscholar.org"],"pathPrefix":"/graph/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"semantic_scholar_json"}},{"match":{"hosts":["www.semanticscholar.org","semanticscholar.org"],"anyOf":[{"exactSegments":true,"pathSegments":["paper",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":200},{"param":"paperId","charset":"alnum","minLen":40,"maxLen":40}]},{"exactSegments":true,"pathSegments":["paper",{"param":"paperId","charset":"alnum","minLen":40,"maxLen":40}]}]},"twin":{"fetchUrl":"https://api.semanticscholar.org/graph/v1/paper/{paperId}?fields=paperId,title,year,venue,publicationVenue,authors,abstract,citationCount,referenceCount,influentialCitationCount,openAccessPdf,externalIds,publicationDate,url","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"semantic_scholar_json"}},{"match":{"hosts":["www.semanticscholar.org","semanticscholar.org"],"anyOf":[{"exactSegments":true,"pathSegments":["author",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":200},{"param":"authorId","charset":"digits","minLen":3,"maxLen":20}]},{"exactSegments":true,"pathSegments":["author",{"param":"authorId","charset":"digits","minLen":3,"maxLen":20}]}]},"twin":{"fetchUrl":"https://api.semanticscholar.org/graph/v1/author/{authorId}?fields=authorId,name,affiliations,homepage,paperCount,citationCount,hIndex,url","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"semantic_scholar_json"}}],"htmlRoutes":[{"id":"semantic-scholar","match":{"hosts":["www.semanticscholar.org","semanticscholar.org"],"exactSegments":false},"mode":"semantic_scholar_html"}]},{"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":"sourceforge-launchpad","name":"SourceForge & Launchpad","category":"developer","description":"Extracts open-source project metadata, categories, licenses, and release details from SourceForge REST API/HTML and Launchpad 1.0 REST API/SSR pages.","domains":["sourceforge.net","api.launchpad.net","launchpad.net"],"auth_mode":"pub","exampleUrls":["https://sourceforge.net/rest/p/sevenzip","https://sourceforge.net/projects/sevenzip/","https://api.launchpad.net/1.0/ubuntu","https://launchpad.net/ubuntu"],"routes":[{"match":{"hosts":["sourceforge.net"],"pathPrefix":"/rest/p/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"sourceforge_json"}},{"match":{"hosts":["sourceforge.net"],"exactSegments":true,"pathSegments":["projects",{"param":"proj","charset":"pkg"}]},"twin":{"fetchUrl":"https://sourceforge.net/rest/p/{proj}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"sourceforge_json"}},{"match":{"hosts":["api.launchpad.net"],"pathPrefix":"/1.0/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"launchpad_json"}}],"htmlRoutes":[{"id":"sourceforge-launchpad","match":{"hosts":["sourceforge.net","launchpad.net"],"exactSegments":false},"mode":"sourceforge_launchpad_html"}]},{"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":"ssrn-nber","name":"NBER Working Papers & SSRN","category":"research-health","description":"Extracts NBER working paper bibliographic metadata and abstracts (citation_* metas + DOM) and SSRN abstract metadata with strict Cloudflare challenge rejection.","domains":["www.nber.org","nber.org","papers.ssrn.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://www.nber.org/papers/w30000","https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4131630"],"htmlRoutes":[{"id":"ssrn-nber","match":{"hosts":["www.nber.org","nber.org","papers.ssrn.com"],"exactSegments":false},"mode":"ssrn_nber_html"}]},{"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":"unpaywall","name":"Unpaywall Open Access Resolver","category":"research-health","description":"Resolves scholarly DOI open-access status, licenses, best OA PDF locations, and author metadata via api.unpaywall.org/v2 (strictly enforcing ?email=bot@edgefetch.dev).","domains":["api.unpaywall.org","unpaywall.org","www.unpaywall.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=bot@edgefetch.dev"],"routes":[{"match":{"hosts":["api.unpaywall.org"],"exactSegments":true,"pathEquals":["/v2/search"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"email":"bot@edgefetch.dev"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"unpaywall_json"}},{"match":{"hosts":["api.unpaywall.org"],"pathSegments":["v2",{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"email":"bot@edgefetch.dev"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"unpaywall_json"}}],"htmlRoutes":[{"id":"unpaywall","match":{"hosts":["unpaywall.org","www.unpaywall.org"],"exactSegments":false},"mode":"unpaywall_html"}]},{"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":"vendor-csaf","name":"Vendor CSAF 2.0 Advisories & Provider Metadata","category":"developer","description":"Universal parser for OASIS CSAF 2.0 provider-metadata.json discovery files and CSAF 2.0 security advisory JSON documents across vendor CSIRTs.","domains":["security.access.redhat.com","cert-portal.siemens.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://security.access.redhat.com/data/csaf/v2/provider-metadata.json","https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_88339.json","https://cert-portal.siemens.com/productcert/csaf/provider-metadata.json"],"routes":[{"match":{"anyOf":[{"exactSegments":true,"pathEquals":["/.well-known/csaf/provider-metadata.json"]},{"pathSuffix":"/provider-metadata.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"vendor_csaf_json"}},{"match":{"anyOf":[{"pathContainsSegment":"csaf","pathSuffix":".json"},{"pathPrefix":"/data/csaf/","pathSuffix":".json"},{"pathPrefix":"/cisagov/CSAF/","pathSuffix":".json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"vendor_csaf_json"}}]},{"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":"vscode-open-vsx","name":"VS Code Marketplace & Open VSX","category":"developer","description":"Extracts IDE extension versions, publishers, licenses, and download metrics from open-vsx.org REST JSON and marketplace.visualstudio.com SSR HTML.","domains":["open-vsx.org","marketplace.visualstudio.com"],"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://open-vsx.org/api/esbenp/prettier-vscode","https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"],"routes":[{"match":{"hosts":["open-vsx.org"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"open_vsx_json"}}],"htmlRoutes":[{"id":"vscode-open-vsx","match":{"hosts":["marketplace.visualstudio.com"],"pathEquals":["/items"],"queryParams":[{"name":"itemName","param":"itemName","charset":"pkg"}]},"mode":"vscode_marketplace_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":"web-compat-data","name":"Web Compatibility & Baseline Data","category":"developer","description":"Extracts browser compatibility and Web Platform Baseline data from api.webstatus.dev, @mdn/browser-compat-data, caniuse-db, web-features JSON, and caniuse.com HTML.","domains":["api.webstatus.dev","caniuse.com","www.caniuse.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/AbortController.json","https://raw.githubusercontent.com/Fyrd/caniuse/main/features-json/css-grid.json","https://api.webstatus.dev/v1/features/aborting","https://cdn.jsdelivr.net/npm/web-features/data.json","https://caniuse.com/css-grid"],"routes":[{"match":{"hosts":["api.webstatus.dev"],"pathPrefix":"/v1/features/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"web_compat_json"}},{"match":{"hosts":["raw.githubusercontent.com"],"pathPrefix":"/mdn/browser-compat-data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"web_compat_json"}},{"match":{"hosts":["raw.githubusercontent.com"],"pathPrefix":"/Fyrd/caniuse/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"web_compat_json"}},{"match":{"hosts":["cdn.jsdelivr.net"],"exactSegments":true,"pathEquals":["/npm/web-features/data.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"web_compat_json"}}],"htmlRoutes":[{"id":"web-compat-data","match":{"hosts":["caniuse.com","www.caniuse.com"],"exactSegments":true,"pathSegments":[{"param":"feature","charset":"pkg","reserved":["ciu","feeds","about","usage-table","compare","index"]}]},"mode":"caniuse_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-org-plugins","name":"WordPress.org Plugin Directory","category":"developer","description":"Extracts WordPress plugin versions, compatibility, ratings, and descriptions from wordpress.org/plugins/ SoftwareApplication JSON-LD/HTML without cross-upgrading to api.wordpress.org.","domains":["wordpress.org","www.wordpress.org","api.wordpress.org"],"auth_mode":"pub","exampleUrls":["https://wordpress.org/plugins/akismet/","https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=akismet"],"routes":[{"match":{"hosts":["api.wordpress.org"],"pathPrefix":"/plugins/info/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"wordpress_plugin_json"}}],"htmlRoutes":[{"id":"wordpress-org-plugins","match":{"hosts":["wordpress.org","www.wordpress.org"],"pathPrefix":"/plugins/"},"mode":"wordpress_plugin_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/core-ac.yaml b/internal/extract/manifests/core-ac.yaml new file mode 100644 index 0000000..7c8014e --- /dev/null +++ b/internal/extract/manifests/core-ac.yaml @@ -0,0 +1,66 @@ +# Shared Go + TypeScript Declarative Site Adapter: CORE.ac.uk (#303) +id: core-ac +name: CORE Open Access Research Papers +category: research-health +description: "Official keyed CORE v3 API adapter (CORE_AC_API_KEY via Authorization: Bearer) for open-access scholarly works and search, with core.ac.uk HTML fallback and Cloudflare challenge guard." +domains: + - api.core.ac.uk + - core.ac.uk + - www.core.ac.uk +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.core.ac.uk/v3/works/11689643" + - "https://api.core.ac.uk/v3/search/works?q=solar&limit=1" + - "https://core.ac.uk/works/11689643" + +routes: + - match: + hosts: + - api.core.ac.uk + pathPrefix: /v3/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: core_ac_json + + - match: + hosts: + - core.ac.uk + - www.core.ac.uk + anyOf: + - exactSegments: true + pathSegments: + - works + - param: workId + charset: digits + minLen: 1 + maxLen: 20 + - exactSegments: true + pathSegments: + - reader + - param: workId + charset: digits + minLen: 1 + maxLen: 20 + twin: + fetchUrl: "https://api.core.ac.uk/v3/works/{workId}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: core_ac_json + +htmlRoutes: + - id: core-ac + match: + hosts: + - core.ac.uk + - www.core.ac.uk + exactSegments: false + mode: core_ac_html diff --git a/internal/extract/manifests/cve-org.yaml b/internal/extract/manifests/cve-org.yaml new file mode 100644 index 0000000..accfca3 --- /dev/null +++ b/internal/extract/manifests/cve-org.yaml @@ -0,0 +1,41 @@ +# Shared Go + TypeScript Declarative Site Adapter: CVE.org & CVE Services JSON 5.x (#319) +id: cve-org +name: CVE.org & CVE Services (CVE JSON 5.x) +category: developer +description: "Extracts authoritative CVE JSON 5.x records from cveawg.mitre.org/api/cve/ and guards www.cve.org Vue CSR SPA shells." +domains: + - cveawg.mitre.org + - www.cve.org + - cve.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://cveawg.mitre.org/api/cve/CVE-2024-3094" + +routes: + - match: + hosts: + - cveawg.mitre.org + exactSegments: true + pathSegments: + - api + - cve + - param: cveId + charset: cve_id + transform: upper + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: cve_org_json + +htmlRoutes: + - id: cve-org + match: + hosts: + - www.cve.org + - cve.org + exactSegments: false + mode: cve_org_html diff --git a/internal/extract/manifests/datacite.yaml b/internal/extract/manifests/datacite.yaml new file mode 100644 index 0000000..01a801c --- /dev/null +++ b/internal/extract/manifests/datacite.yaml @@ -0,0 +1,64 @@ +# Shared Go + TypeScript Declarative Site Adapter: DataCite (#313) +id: datacite +name: DataCite DOI & Commons Registry +category: research-health +description: "Extracts DataCite JSON:API DOI metadata (titles, creators, publisher, resourceType, descriptions) from api.datacite.org and commons.datacite.org (without claiming doi.org)." +domains: + - api.datacite.org + - commons.datacite.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.datacite.org/dois/10.5281/zenodo.24485086" + - "https://api.datacite.org/dois/10.24406/publica-2155" + +routes: + - match: + hosts: + - api.datacite.org + anyOf: + - pathSegments: + - dois + - param: doi + charset: doi_rest + greedy: true + minLen: 8 + maxLen: 240 + - exactSegments: true + pathEquals: + - /dois + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: datacite_json + + - match: + hosts: + - commons.datacite.org + pathSegments: + - doi.org + - param: doi + charset: doi_rest + greedy: true + minLen: 8 + maxLen: 240 + twin: + fetchUrl: "https://api.datacite.org/dois/{doi}" + rawPathParams: + - doi + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: datacite_json + +htmlRoutes: + - id: datacite + match: + hosts: + - commons.datacite.org + exactSegments: false + mode: datacite_html diff --git a/internal/extract/manifests/dblp.yaml b/internal/extract/manifests/dblp.yaml new file mode 100644 index 0000000..811a9f3 --- /dev/null +++ b/internal/extract/manifests/dblp.yaml @@ -0,0 +1,57 @@ +# Shared Go + TypeScript Declarative Site Adapter: DBLP (#306) +id: dblp +name: DBLP Computer Science Bibliography +category: research-health +description: "Extracts DBLP publication/author search API JSON, direct /rec/*.xml records, and /rec/*.html pages while honoring Crawl-delay: 4 and rejecting Anubis PoW challenges." +domains: + - dblp.org + - www.dblp.org +auth_mode: pub +min_interval_ms: 4000 +max_concurrent: 1 +strict_robots: true +exampleUrls: + - "https://dblp.org/search/publ/api?q=attention+is+all+you+need&format=json&h=2" + - "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html" + +routes: + - match: + hosts: + - dblp.org + - www.dblp.org + anyOf: + - pathPrefix: /search/publ/api + - pathPrefix: /search/author/api + - pathPrefix: /search/venue/api + twin: + fetchUrl: "{requestUrl}" + setQueryParams: + format: json + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: dblp_json + + - match: + hosts: + - dblp.org + - www.dblp.org + pathPrefix: /rec/ + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/xml + maxBytes: 2097152 + extract: + textMode: dblp_xml + +htmlRoutes: + - id: dblp + match: + hosts: + - dblp.org + - www.dblp.org + exactSegments: false + mode: dblp_html diff --git a/internal/extract/manifests/doe-osti.yaml b/internal/extract/manifests/doe-osti.yaml new file mode 100644 index 0000000..83cb19e --- /dev/null +++ b/internal/extract/manifests/doe-osti.yaml @@ -0,0 +1,57 @@ +# Shared Go + TypeScript Declarative Site Adapter: DOE OSTI (#311) +id: doe-osti +name: DOE OSTI.GOV Technical Reports & Records +category: research-health +description: "Extracts U.S. Department of Energy scientific and technical records from www.osti.gov/api/v1/records (handling both top-level JSON arrays and objects) and /biblio/ HTML fallback." +domains: + - www.osti.gov + - osti.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.osti.gov/api/v1/records/1800000" + - "https://www.osti.gov/api/v1/records?q=solar&rows=2" + - "https://www.osti.gov/biblio/1800000" + +routes: + - match: + hosts: + - www.osti.gov + - osti.gov + pathPrefix: /api/v1/records + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: doe_osti_json + + - match: + hosts: + - www.osti.gov + - osti.gov + exactSegments: true + pathSegments: + - biblio + - param: ostiId + charset: digits + minLen: 3 + maxLen: 16 + twin: + fetchUrl: "https://www.osti.gov/api/v1/records/{ostiId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: doe_osti_json + +htmlRoutes: + - id: doe-osti + match: + hosts: + - www.osti.gov + - osti.gov + pathPrefix: /biblio/ + exactSegments: false + mode: doe_osti_html diff --git a/internal/extract/manifests/endoflife-date.yaml b/internal/extract/manifests/endoflife-date.yaml new file mode 100644 index 0000000..e21f35b --- /dev/null +++ b/internal/extract/manifests/endoflife-date.yaml @@ -0,0 +1,71 @@ +# Shared Go + TypeScript Declarative Site Adapter: endoflife.date (#338) +id: endoflife-date +name: endoflife.date Lifecycle Registry +category: developer +description: "Extracts product release cycles, EOL dates, LTS windows, and latest versions from endoflife.date v1/legacy JSON APIs and SSR product pages." +domains: + - endoflife.date +auth_mode: pub +exampleUrls: + - "https://endoflife.date/api/python.json" + - "https://endoflife.date/api/v1/products/python/" + - "https://endoflife.date/python" + +routes: + - match: + hosts: + - endoflife.date + pathPrefix: /api/v1/products/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: endoflife_json + + - match: + hosts: + - endoflife.date + pathPrefix: /api/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: endoflife_json + + - match: + hosts: + - endoflife.date + exactSegments: true + pathSegments: + - param: product + charset: pkg + reserved: + - api + - docs + - calendar + - tags + - categories + - assets + - feed.xml + - robots.txt + - sitemap.xml + twin: + fetchUrl: "https://endoflife.date/api/v1/products/{product}/" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: endoflife_json + +htmlRoutes: + - id: endoflife-date + match: + hosts: + - endoflife.date + exactSegments: false + mode: endoflife_html diff --git a/internal/extract/manifests/exploit-db.yaml b/internal/extract/manifests/exploit-db.yaml new file mode 100644 index 0000000..720de96 --- /dev/null +++ b/internal/extract/manifests/exploit-db.yaml @@ -0,0 +1,55 @@ +# Shared Go + TypeScript Declarative Site Adapter: Exploit Database (#323) +id: exploit-db +name: Exploit Database (Exploit-DB) +category: developer +description: "Extracts Exploit-DB SSR exploit pages and RSS feeds on exploit-db.com plus bounded Range-streaming CSV extraction on GitLab exploitdb/files_exploits.csv." +domains: + - www.exploit-db.com + - exploit-db.com +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.exploit-db.com/exploits/51000" + - "https://www.exploit-db.com/rss.xml" + +routes: + - match: + hosts: + - gitlab.com + exactSegments: true + pathEquals: + - /exploit-database/exploitdb/-/raw/main/files_exploits.csv + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: text/plain + headers: + Range: bytes=0-2097151 + maxBytes: 2097152 + extract: + textMode: exploit_db_csv + + - match: + hosts: + - www.exploit-db.com + - exploit-db.com + exactSegments: true + pathEquals: + - /rss.xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 2097152 + extract: + textMode: exploit_db_rss + +htmlRoutes: + - id: exploit-db + match: + hosts: + - www.exploit-db.com + - exploit-db.com + exactSegments: false + mode: exploit_db_html diff --git a/internal/extract/manifests/first-epss.yaml b/internal/extract/manifests/first-epss.yaml new file mode 100644 index 0000000..9814a7b --- /dev/null +++ b/internal/extract/manifests/first-epss.yaml @@ -0,0 +1,24 @@ +# Shared Go + TypeScript Declarative Site Adapter: FIRST EPSS (#316) +id: first-epss +name: FIRST Exploit Prediction Scoring System (EPSS) +category: developer +description: "Extracts CVE exploit probability scores, percentiles, and scoring dates from FIRST EPSS v1 JSON API." +domains: + - api.first.org +auth_mode: pub +exampleUrls: + - "https://api.first.org/data/v1/epss?cve=CVE-2024-3094" + +routes: + - match: + hosts: + - api.first.org + exactSegments: false + pathPrefix: /data/v1/epss + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: first_epss_json diff --git a/internal/extract/manifests/gerrit.yaml b/internal/extract/manifests/gerrit.yaml new file mode 100644 index 0000000..1caad70 --- /dev/null +++ b/internal/extract/manifests/gerrit.yaml @@ -0,0 +1,29 @@ +# Shared Go + TypeScript Declarative Site Adapter: Gerrit Code Review (#329) +id: gerrit +name: Gerrit Code Review +category: developer +description: "Universal Gerrit Code Review JSON extractor for /changes/ and /r/changes/ endpoints with linear XSSI )]}' prefix stripping and Crawl-delay pacing." +domains: + - review.opendev.org + - gerrit.wikimedia.org +universalEngine: true +auth_mode: pub +min_interval_ms: 2000 +exampleUrls: + - "https://review.opendev.org/changes/?q=status:merged&n=2" + - "https://review.opendev.org/changes/1010181/detail" + - "https://gerrit.wikimedia.org/r/changes/?q=status:merged&n=2" + +routes: + - match: + anyOf: + - pathPrefix: /changes/ + - pathPrefix: /r/changes/ + - pathPrefix: /gerrit/changes/ + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/json + maxBytes: 2097152 + extract: + textMode: gerrit_json diff --git a/internal/extract/manifests/jira-public.yaml b/internal/extract/manifests/jira-public.yaml new file mode 100644 index 0000000..50de2bc --- /dev/null +++ b/internal/extract/manifests/jira-public.yaml @@ -0,0 +1,38 @@ +# Shared Go + TypeScript Declarative Site Adapter: Jira Public (#331) +id: jira-public +name: Jira Public Issue Tracker +category: developer +description: "Universal Jira Server/DC/Cloud extractor supporting direct /rest/api/2|3/issue/ JSON endpoints and robots-compliant /browse/ SSR HTML extraction." +domains: + - jira.mariadb.org + - jira.atlassian.com +universalEngine: true +auth_mode: pub +min_interval_ms: 2000 +exampleUrls: + - "https://jira.mariadb.org/rest/api/2/issue/MDEV-30000" + - "https://jira.mariadb.org/browse/MDEV-30000" + - "https://jira.atlassian.com/rest/api/2/issue/JRASERVER-71500" + +routes: + - match: + anyOf: + - pathPrefix: /rest/api/2/issue/ + - pathPrefix: /rest/api/3/issue/ + - pathPrefix: /jira/rest/api/2/issue/ + - pathPrefix: /jira/rest/api/3/issue/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: jira_public_json + +htmlRoutes: + - id: jira-public + match: + anyOf: + - pathPrefix: /browse/ + - pathPrefix: /jira/browse/ + mode: jira_public_html diff --git a/internal/extract/manifests/mitre-attack.yaml b/internal/extract/manifests/mitre-attack.yaml new file mode 100644 index 0000000..72ffe32 --- /dev/null +++ b/internal/extract/manifests/mitre-attack.yaml @@ -0,0 +1,55 @@ +# Shared Go + TypeScript Declarative Site Adapter: MITRE ATT&CK (#317) +id: mitre-attack +name: MITRE ATT&CK STIX & Knowledge Base +category: developer +description: "Range-bounded linear STIX 2.1 bundle prefix scanner on GitHub raw attack-stix-data plus static HTML extractor for attack.mitre.org techniques, tactics, groups, and software." +domains: + - attack.mitre.org + - www.attack.mitre.org +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://attack.mitre.org/techniques/T1059/" + - "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/index.json" + - "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json" + +routes: + - match: + hosts: + - raw.githubusercontent.com + exactSegments: true + pathEquals: + - /mitre-attack/attack-stix-data/master/index.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: mitre_attack_index_json + + - match: + hosts: + - raw.githubusercontent.com + exactSegments: false + pathPrefix: /mitre-attack/attack-stix-data/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/json + headers: + Range: bytes=0-2097151 + maxBytes: 2097152 + extract: + textMode: mitre_attack_stix_bundle + +htmlRoutes: + - id: mitre-attack + match: + hosts: + - attack.mitre.org + - www.attack.mitre.org + exactSegments: false + mode: mitre_attack_html diff --git a/internal/extract/manifests/mitre-cwe-capec.yaml b/internal/extract/manifests/mitre-cwe-capec.yaml new file mode 100644 index 0000000..2028611 --- /dev/null +++ b/internal/extract/manifests/mitre-cwe-capec.yaml @@ -0,0 +1,58 @@ +# Shared Go + TypeScript Declarative Site Adapter: MITRE CWE & CAPEC (#318) +id: mitre-cwe-capec +name: MITRE CWE & CAPEC Weaknesses and Attack Patterns +category: developer +description: "Extracts Common Weakness Enumeration (CWE) JSON from cwe-api.mitre.org and XHTML definitions from cwe.mitre.org and capec.mitre.org." +domains: + - cwe-api.mitre.org + - cwe.mitre.org + - capec.mitre.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://cwe-api.mitre.org/api/v1/cwe/weakness/79" + - "https://cwe.mitre.org/data/definitions/79.html" + - "https://capec.mitre.org/data/definitions/1.html" + +routes: + - match: + hosts: + - cwe-api.mitre.org + exactSegments: false + pathPrefix: /api/v1/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: mitre_cwe_json + + - match: + hosts: + - cwe.mitre.org + exactSegments: true + pathSegments: + - data + - definitions + - param: cweId + charset: digits + stripSuffix: .html + minLen: 1 + maxLen: 8 + twin: + fetchUrl: "https://cwe-api.mitre.org/api/v1/cwe/weakness/{cweId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: mitre_cwe_json + +htmlRoutes: + - id: mitre-cwe-capec + match: + hosts: + - cwe.mitre.org + - capec.mitre.org + exactSegments: false + mode: mitre_cwe_capec_html diff --git a/internal/extract/manifests/nasa-ads.yaml b/internal/extract/manifests/nasa-ads.yaml new file mode 100644 index 0000000..8f83cec --- /dev/null +++ b/internal/extract/manifests/nasa-ads.yaml @@ -0,0 +1,54 @@ +# Shared Go + TypeScript Declarative Site Adapter: NASA ADS (#308) +id: nasa-ads +name: NASA Astrophysics Data System (ADS) +category: research-health +description: "Official keyed NASA ADS API adapter (NASA_ADS_API_KEY via Authorization: Bearer) for astronomy/physics literature search and bibcodes, with ui.adsabs.harvard.edu HTML fallback and AWS WAF shell guard." +domains: + - api.adsabs.harvard.edu + - ui.adsabs.harvard.edu +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2017arXiv170603762V&fl=bibcode,title,author" + - "https://ui.adsabs.harvard.edu/abs/2017arXiv170603762V/abstract" + +routes: + - match: + hosts: + - api.adsabs.harvard.edu + pathPrefix: /v1/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: nasa_ads_json + + - match: + hosts: + - ui.adsabs.harvard.edu + exactSegments: false + pathSegments: + - abs + - param: bibcode + charset: url_seg + minLen: 10 + maxLen: 32 + twin: + fetchUrl: "https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:{bibcode}&fl=bibcode,title,author,pub,year,pubdate,abstract,citation_count,doi,identifier" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: nasa_ads_json + +htmlRoutes: + - id: nasa-ads + match: + hosts: + - ui.adsabs.harvard.edu + exactSegments: false + mode: nasa_ads_html diff --git a/internal/extract/manifests/nih-reporter.yaml b/internal/extract/manifests/nih-reporter.yaml new file mode 100644 index 0000000..77af493 --- /dev/null +++ b/internal/extract/manifests/nih-reporter.yaml @@ -0,0 +1,58 @@ +# Shared Go + TypeScript Declarative Site Adapter: NIH RePORTER (#309) +id: nih-reporter +name: NIH RePORTER Funded Projects +category: research-health +description: "Upgrades reporter.nih.gov/project-details/ URLs to api.reporter.nih.gov/v2/projects/search POST JSON with strict CSR SPA shell rejection on HTML fallback." +domains: + - api.reporter.nih.gov + - reporter.nih.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://reporter.nih.gov/project-details/10476325" + - "https://api.reporter.nih.gov/v2/projects/search" + +routes: + - match: + hosts: + - api.reporter.nih.gov + pathPrefix: /v2/projects/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + method: POST + contentType: application/json + requestBody: '{"criteria":{"project_nums":["5R01CA242003-04"]},"limit":5}' + maxBytes: 2097152 + extract: + jsonMode: nih_reporter_json + + - match: + hosts: + - reporter.nih.gov + exactSegments: false + pathSegments: + - project-details + - param: applId + charset: digits + minLen: 4 + maxLen: 16 + twin: + fetchUrl: "https://api.reporter.nih.gov/v2/projects/search" + kind: json + accept: application/json + method: POST + contentType: application/json + requestBody: '{"criteria":{"appl_ids":[{applId}]},"limit":1}' + maxBytes: 2097152 + extract: + jsonMode: nih_reporter_json + +htmlRoutes: + - id: nih-reporter + match: + hosts: + - reporter.nih.gov + exactSegments: false + mode: nih_reporter_html diff --git a/internal/extract/manifests/nsf-awards.yaml b/internal/extract/manifests/nsf-awards.yaml new file mode 100644 index 0000000..3a50912 --- /dev/null +++ b/internal/extract/manifests/nsf-awards.yaml @@ -0,0 +1,62 @@ +# Shared Go + TypeScript Declarative Site Adapter: NSF Awards (#310) +id: nsf-awards +name: National Science Foundation (NSF) Awards +category: research-health +description: "Extracts NSF grant awards, PIs, institutions, obligated amounts, and abstracts from api.nsf.gov JSON with awardsearch SPA shell guards." +domains: + - api.nsf.gov + - www.nsf.gov + - nsf.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.nsf.gov/services/v1/awards/2535346.json" + - "https://api.nsf.gov/services/v1/awards.json?keyword=quantum&rpp=2" + - "https://www.nsf.gov/awardsearch/show-award?AWD_ID=2535346" + +routes: + - match: + hosts: + - api.nsf.gov + pathPrefix: /services/v1/awards + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: nsf_awards_json + + - match: + hosts: + - www.nsf.gov + - nsf.gov + exactSegments: true + pathEquals: + - /awardsearch/showAward + - /awardsearch/showAward/ + - /awardsearch/show-award + - /awardsearch/show-award/ + queryParams: + - name: AWD_ID + param: awardId + charset: digits + minLen: 5 + maxLen: 12 + twin: + fetchUrl: "https://api.nsf.gov/services/v1/awards/{awardId}.json" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: nsf_awards_json + +htmlRoutes: + - id: nsf-awards + match: + hosts: + - www.nsf.gov + - nsf.gov + pathPrefix: /awardsearch/ + exactSegments: false + mode: nsf_awards_html diff --git a/internal/extract/manifests/orcid.yaml b/internal/extract/manifests/orcid.yaml new file mode 100644 index 0000000..e454869 --- /dev/null +++ b/internal/extract/manifests/orcid.yaml @@ -0,0 +1,55 @@ +# Shared Go + TypeScript Declarative Site Adapter: ORCID (#304) +id: orcid +name: ORCID Researcher Registry +category: research-health +description: "Extracts ORCID researcher profiles, affiliations, and works via pub.orcid.org v3.0 JSON API with orcid.org Angular CSR shell guard." +domains: + - pub.orcid.org + - orcid.org + - www.orcid.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://pub.orcid.org/v3.0/0000-0002-1825-0097/record" + - "https://orcid.org/0000-0002-1825-0097" + +routes: + - match: + hosts: + - pub.orcid.org + pathPrefix: /v3.0/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: orcid_json + + - match: + hosts: + - orcid.org + - www.orcid.org + exactSegments: true + pathSegments: + - param: orcidId + charset: cpsc_recall_num + minLen: 19 + maxLen: 19 + transform: upper + twin: + fetchUrl: "https://pub.orcid.org/v3.0/{orcidId}/record" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: orcid_json + +htmlRoutes: + - id: orcid + match: + hosts: + - orcid.org + - www.orcid.org + exactSegments: false + mode: orcid_html diff --git a/internal/extract/manifests/rdap.yaml b/internal/extract/manifests/rdap.yaml new file mode 100644 index 0000000..3828ab4 --- /dev/null +++ b/internal/extract/manifests/rdap.yaml @@ -0,0 +1,62 @@ +# Shared Go + TypeScript Declarative Site Adapter: RDAP Registration Data (#325) +id: rdap +name: RDAP (Registration Data Access Protocol) +category: developer +description: "Universal RFC 9083 RDAP JSON extractor for domain, IP, autnum, and entity lookups across RIRs/registries plus IANA RDAP bootstrap registries." +domains: + - rdap.verisign.com + - rdap.arin.net + - rdap.apnic.net + - rdap.db.ripe.net + - rdap.ripe.net + - rdap.lacnic.net + - rdap.afrinic.net + - data.iana.org + - rdap.org +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://rdap.verisign.com/com/v1/domain/example.com" + - "https://rdap.arin.net/registry/autnum/13335" + - "https://rdap.apnic.net/ip/1.1.1.1" + - "https://rdap.db.ripe.net/ip/193.0.0.193" + - "https://data.iana.org/rdap/dns.json" + +routes: + - match: + hosts: + - data.iana.org + exactSegments: false + pathPrefix: /rdap/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: rdap_bootstrap_json + + - match: + hosts: + - "rdap.*" + - "*.rdap.org" + - pubapi.registry.google + exactSegments: false + anyOf: + - pathPrefix: /domain/ + - pathPrefix: /ip/ + - pathPrefix: /autnum/ + - pathPrefix: /entity/ + - pathContainsSegment: domain + - pathContainsSegment: ip + - pathContainsSegment: autnum + - pathContainsSegment: entity + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/rdap+json, application/json + maxBytes: 1048576 + extract: + jsonMode: rdap_json diff --git a/internal/extract/manifests/research-repo-pack.yaml b/internal/extract/manifests/research-repo-pack.yaml new file mode 100644 index 0000000..a92d1a3 --- /dev/null +++ b/internal/extract/manifests/research-repo-pack.yaml @@ -0,0 +1,109 @@ +# Shared Go + TypeScript Declarative Site Adapter: Research Repository Pack (#312) +id: research-repo-pack +name: Open Research Repositories (Zenodo, Figshare, Dryad, OSF) +category: research-health +description: "Extracts open datasets and research artifacts from Zenodo (/records HTML, direct /api/records), Figshare (API + /articles upgrade), Dryad (API + /dataset HTML), and OSF (HTML + direct api.osf.io) while honoring robots.txt disallows." +domains: + - zenodo.org + - www.zenodo.org + - api.figshare.com + - figshare.com + - www.figshare.com + - datadryad.org + - www.datadryad.org + - api.osf.io + - osf.io + - www.osf.io +auth_mode: pub +min_interval_ms: 5000 +strict_robots: true +exampleUrls: + - "https://zenodo.org/records/24485086" + - "https://api.figshare.com/v2/articles/35148283" + - "https://datadryad.org/api/v2/datasets/doi%3A10.5061%2Fdryad.7rh4625" + - "https://datadryad.org/dataset/doi:10.5061/dryad.7rh4625" + +routes: + - match: + hosts: + - zenodo.org + - www.zenodo.org + pathPrefix: /api/records/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: research_repo_pack_json + + - match: + hosts: + - api.figshare.com + pathPrefix: /v2/articles/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: research_repo_pack_json + + - match: + hosts: + - figshare.com + - www.figshare.com + pathPrefix: /articles/ + scanSegment: + scanLast: true + param: articleId + charset: digits + minLen: 4 + maxLen: 16 + twin: + fetchUrl: "https://api.figshare.com/v2/articles/{articleId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: research_repo_pack_json + + - match: + hosts: + - datadryad.org + - www.datadryad.org + pathPrefix: /api/v2/datasets/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: research_repo_pack_json + + - match: + hosts: + - api.osf.io + pathPrefix: /v2/nodes/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: research_repo_pack_json + +htmlRoutes: + - id: research-repo-pack + match: + hosts: + - zenodo.org + - www.zenodo.org + - figshare.com + - www.figshare.com + - datadryad.org + - www.datadryad.org + - osf.io + - www.osf.io + exactSegments: false + mode: research_repo_pack_html diff --git a/internal/extract/manifests/ror.yaml b/internal/extract/manifests/ror.yaml new file mode 100644 index 0000000..b9d8372 --- /dev/null +++ b/internal/extract/manifests/ror.yaml @@ -0,0 +1,60 @@ +# Shared Go + TypeScript Declarative Site Adapter: ROR (#305) +id: ror +name: Research Organization Registry (ROR) +category: research-health +description: "Extracts Research Organization Registry (ROR) v2 organization records, domains, locations, and external IDs (GRID, ISNI, Wikidata) with Vercel challenge HTML guard." +domains: + - api.ror.org + - ror.org + - www.ror.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.ror.org/v2/organizations/03yrm5c26" + - "https://api.ror.org/v2/organizations?query=mit" + - "https://ror.org/03yrm5c26" + +routes: + - match: + hosts: + - api.ror.org + pathPrefix: /v2/organizations + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: ror_json + + - match: + hosts: + - ror.org + - www.ror.org + exactSegments: true + pathSegments: + - param: rorId + charset: alnum + reserved: + - community + - resources + - changelog + minLen: 9 + maxLen: 9 + transform: lower + twin: + fetchUrl: "https://api.ror.org/v2/organizations/{rorId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: ror_json + +htmlRoutes: + - id: ror + match: + hosts: + - ror.org + - www.ror.org + exactSegments: false + mode: ror_html diff --git a/internal/extract/manifests/security-txt.yaml b/internal/extract/manifests/security-txt.yaml new file mode 100644 index 0000000..852aeaa --- /dev/null +++ b/internal/extract/manifests/security-txt.yaml @@ -0,0 +1,26 @@ +# Shared Go + TypeScript Declarative Site Adapter: RFC 9116 security.txt (#322) +id: security-txt +name: RFC 9116 security.txt Vulnerability Disclosure +category: developer +description: "Universal RFC 9116 /.well-known/security.txt and /security.txt parser extracting Contact, Expires, Encryption, Policy, Canonical, Acknowledgments, and CSAF directives with strict Contact validation." +domains: + - www.cloudflare.com +universalEngine: true +auth_mode: pub +exampleUrls: + - "https://www.cloudflare.com/.well-known/security.txt" + - "https://github.com/.well-known/security.txt" + +routes: + - match: + exactSegments: true + pathEquals: + - /.well-known/security.txt + - /security.txt + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: text/plain + maxBytes: 262144 + extract: + textMode: security_txt_text diff --git a/internal/extract/manifests/semantic-scholar.yaml b/internal/extract/manifests/semantic-scholar.yaml new file mode 100644 index 0000000..6bc01c3 --- /dev/null +++ b/internal/extract/manifests/semantic-scholar.yaml @@ -0,0 +1,98 @@ +# Shared Go + TypeScript Declarative Site Adapter: Semantic Scholar (#301) +id: semantic-scholar +name: Semantic Scholar Academic Graph +category: research-health +description: "Extracts scholarly papers, citation counts, authors, open-access PDFs, and author profiles via api.semanticscholar.org Graph API (keyless + optional SEMANTIC_SCHOLAR_API_KEY) with HTML metadata fallback and AWS WAF shell guard." +domains: + - api.semanticscholar.org + - www.semanticscholar.org + - semanticscholar.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.semanticscholar.org/graph/v1/paper/DOI:10.1038/s41586-021-03819-2?fields=paperId,title,year,authors,abstract,citationCount,openAccessPdf,externalIds" + - "https://www.semanticscholar.org/paper/Attention-is-All-you-Need-Vaswani-Shazeer/204e3073870fae3d05bcbc2f6a8e263d9b72e776" + +routes: + - match: + hosts: + - api.semanticscholar.org + pathPrefix: /graph/v1/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: semantic_scholar_json + + - match: + hosts: + - www.semanticscholar.org + - semanticscholar.org + anyOf: + - exactSegments: true + pathSegments: + - paper + - param: slug + charset: url_seg + minLen: 1 + maxLen: 200 + - param: paperId + charset: alnum + minLen: 40 + maxLen: 40 + - exactSegments: true + pathSegments: + - paper + - param: paperId + charset: alnum + minLen: 40 + maxLen: 40 + twin: + fetchUrl: "https://api.semanticscholar.org/graph/v1/paper/{paperId}?fields=paperId,title,year,venue,publicationVenue,authors,abstract,citationCount,referenceCount,influentialCitationCount,openAccessPdf,externalIds,publicationDate,url" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: semantic_scholar_json + + - match: + hosts: + - www.semanticscholar.org + - semanticscholar.org + anyOf: + - exactSegments: true + pathSegments: + - author + - param: slug + charset: url_seg + minLen: 1 + maxLen: 200 + - param: authorId + charset: digits + minLen: 3 + maxLen: 20 + - exactSegments: true + pathSegments: + - author + - param: authorId + charset: digits + minLen: 3 + maxLen: 20 + twin: + fetchUrl: "https://api.semanticscholar.org/graph/v1/author/{authorId}?fields=authorId,name,affiliations,homepage,paperCount,citationCount,hIndex,url" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: semantic_scholar_json + +htmlRoutes: + - id: semantic-scholar + match: + hosts: + - www.semanticscholar.org + - semanticscholar.org + exactSegments: false + mode: semantic_scholar_html diff --git a/internal/extract/manifests/sourceforge-launchpad.yaml b/internal/extract/manifests/sourceforge-launchpad.yaml new file mode 100644 index 0000000..155d418 --- /dev/null +++ b/internal/extract/manifests/sourceforge-launchpad.yaml @@ -0,0 +1,65 @@ +# Shared Go + TypeScript Declarative Site Adapter: SourceForge & Launchpad (#328) +id: sourceforge-launchpad +name: SourceForge & Launchpad +category: developer +description: "Extracts open-source project metadata, categories, licenses, and release details from SourceForge REST API/HTML and Launchpad 1.0 REST API/SSR pages." +domains: + - sourceforge.net + - api.launchpad.net + - launchpad.net +auth_mode: pub +exampleUrls: + - "https://sourceforge.net/rest/p/sevenzip" + - "https://sourceforge.net/projects/sevenzip/" + - "https://api.launchpad.net/1.0/ubuntu" + - "https://launchpad.net/ubuntu" + +routes: + - match: + hosts: + - sourceforge.net + pathPrefix: /rest/p/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: sourceforge_json + + - match: + hosts: + - sourceforge.net + exactSegments: true + pathSegments: + - projects + - param: proj + charset: pkg + twin: + fetchUrl: "https://sourceforge.net/rest/p/{proj}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: sourceforge_json + + - match: + hosts: + - api.launchpad.net + pathPrefix: /1.0/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: launchpad_json + +htmlRoutes: + - id: sourceforge-launchpad + match: + hosts: + - sourceforge.net + - launchpad.net + exactSegments: false + mode: sourceforge_launchpad_html diff --git a/internal/extract/manifests/ssrn-nber.yaml b/internal/extract/manifests/ssrn-nber.yaml new file mode 100644 index 0000000..9b64cb8 --- /dev/null +++ b/internal/extract/manifests/ssrn-nber.yaml @@ -0,0 +1,24 @@ +# Shared Go + TypeScript Declarative Site Adapter: NBER & SSRN (#314) +id: ssrn-nber +name: NBER Working Papers & SSRN +category: research-health +description: "Extracts NBER working paper bibliographic metadata and abstracts (citation_* metas + DOM) and SSRN abstract metadata with strict Cloudflare challenge rejection." +domains: + - www.nber.org + - nber.org + - papers.ssrn.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://www.nber.org/papers/w30000" + - "https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4131630" + +htmlRoutes: + - id: ssrn-nber + match: + hosts: + - www.nber.org + - nber.org + - papers.ssrn.com + exactSegments: false + mode: ssrn_nber_html diff --git a/internal/extract/manifests/unpaywall.yaml b/internal/extract/manifests/unpaywall.yaml new file mode 100644 index 0000000..0a4488a --- /dev/null +++ b/internal/extract/manifests/unpaywall.yaml @@ -0,0 +1,59 @@ +# Shared Go + TypeScript Declarative Site Adapter: Unpaywall (#302) +id: unpaywall +name: Unpaywall Open Access Resolver +category: research-health +description: "Resolves scholarly DOI open-access status, licenses, best OA PDF locations, and author metadata via api.unpaywall.org/v2 (strictly enforcing ?email=bot@edgefetch.dev)." +domains: + - api.unpaywall.org + - unpaywall.org + - www.unpaywall.org +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=bot@edgefetch.dev" + +routes: + - match: + hosts: + - api.unpaywall.org + exactSegments: true + pathEquals: + - /v2/search + twin: + fetchUrl: "{requestUrl}" + setQueryParams: + email: "bot@edgefetch.dev" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: unpaywall_json + + - match: + hosts: + - api.unpaywall.org + pathSegments: + - v2 + - param: doi + charset: doi_rest + greedy: true + minLen: 8 + maxLen: 240 + twin: + fetchUrl: "{requestUrl}" + setQueryParams: + email: "bot@edgefetch.dev" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: unpaywall_json + +htmlRoutes: + - id: unpaywall + match: + hosts: + - unpaywall.org + - www.unpaywall.org + exactSegments: false + mode: unpaywall_html diff --git a/internal/extract/manifests/vendor-csaf.yaml b/internal/extract/manifests/vendor-csaf.yaml new file mode 100644 index 0000000..25cfb93 --- /dev/null +++ b/internal/extract/manifests/vendor-csaf.yaml @@ -0,0 +1,46 @@ +# Shared Go + TypeScript Declarative Site Adapter: Vendor CSAF 2.0 & Provider Metadata (#321) +id: vendor-csaf +name: Vendor CSAF 2.0 Advisories & Provider Metadata +category: developer +description: "Universal parser for OASIS CSAF 2.0 provider-metadata.json discovery files and CSAF 2.0 security advisory JSON documents across vendor CSIRTs." +domains: + - security.access.redhat.com + - cert-portal.siemens.com +universalEngine: true +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://security.access.redhat.com/data/csaf/v2/provider-metadata.json" + - "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_88339.json" + - "https://cert-portal.siemens.com/productcert/csaf/provider-metadata.json" + +routes: + - match: + anyOf: + - exactSegments: true + pathEquals: + - /.well-known/csaf/provider-metadata.json + - pathSuffix: /provider-metadata.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: vendor_csaf_json + + - match: + anyOf: + - pathContainsSegment: csaf + pathSuffix: .json + - pathPrefix: /data/csaf/ + pathSuffix: .json + - pathPrefix: /cisagov/CSAF/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: vendor_csaf_json diff --git a/internal/extract/manifests/vscode-open-vsx.yaml b/internal/extract/manifests/vscode-open-vsx.yaml new file mode 100644 index 0000000..cecc106 --- /dev/null +++ b/internal/extract/manifests/vscode-open-vsx.yaml @@ -0,0 +1,39 @@ +# Shared Go + TypeScript Declarative Site Adapter: VS Code Marketplace & Open VSX (#333) +id: vscode-open-vsx +name: VS Code Marketplace & Open VSX +category: developer +description: "Extracts IDE extension versions, publishers, licenses, and download metrics from open-vsx.org REST JSON and marketplace.visualstudio.com SSR HTML." +domains: + - open-vsx.org + - marketplace.visualstudio.com +auth_mode: pub +min_interval_ms: 2000 +exampleUrls: + - "https://open-vsx.org/api/esbenp/prettier-vscode" + - "https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" + +routes: + - match: + hosts: + - open-vsx.org + pathPrefix: /api/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: open_vsx_json + +htmlRoutes: + - id: vscode-open-vsx + match: + hosts: + - marketplace.visualstudio.com + pathEquals: + - /items + queryParams: + - name: itemName + param: itemName + charset: pkg + mode: vscode_marketplace_html diff --git a/internal/extract/manifests/web-compat-data.yaml b/internal/extract/manifests/web-compat-data.yaml new file mode 100644 index 0000000..0a556c0 --- /dev/null +++ b/internal/extract/manifests/web-compat-data.yaml @@ -0,0 +1,89 @@ +# Shared Go + TypeScript Declarative Site Adapter: Web Compatibility Data (#339) +id: web-compat-data +name: Web Compatibility & Baseline Data +category: developer +description: "Extracts browser compatibility and Web Platform Baseline data from api.webstatus.dev, @mdn/browser-compat-data, caniuse-db, web-features JSON, and caniuse.com HTML." +domains: + - api.webstatus.dev + - caniuse.com + - www.caniuse.com +universalEngine: true +auth_mode: pub +exampleUrls: + - "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/AbortController.json" + - "https://raw.githubusercontent.com/Fyrd/caniuse/main/features-json/css-grid.json" + - "https://api.webstatus.dev/v1/features/aborting" + - "https://cdn.jsdelivr.net/npm/web-features/data.json" + - "https://caniuse.com/css-grid" + +routes: + - match: + hosts: + - api.webstatus.dev + pathPrefix: /v1/features/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: web_compat_json + + - match: + hosts: + - raw.githubusercontent.com + pathPrefix: /mdn/browser-compat-data/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: web_compat_json + + - match: + hosts: + - raw.githubusercontent.com + pathPrefix: /Fyrd/caniuse/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: web_compat_json + + - match: + hosts: + - cdn.jsdelivr.net + exactSegments: true + pathEquals: + - /npm/web-features/data.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: web_compat_json + +htmlRoutes: + - id: web-compat-data + match: + hosts: + - caniuse.com + - www.caniuse.com + exactSegments: true + pathSegments: + - param: feature + charset: pkg + reserved: + - ciu + - feeds + - about + - usage-table + - compare + - index + mode: caniuse_html diff --git a/internal/extract/manifests/wordpress-org-plugins.yaml b/internal/extract/manifests/wordpress-org-plugins.yaml new file mode 100644 index 0000000..03b2ca5 --- /dev/null +++ b/internal/extract/manifests/wordpress-org-plugins.yaml @@ -0,0 +1,35 @@ +# Shared Go + TypeScript Declarative Site Adapter: WordPress.org Plugins (#332) +id: wordpress-org-plugins +name: WordPress.org Plugin Directory +category: developer +description: "Extracts WordPress plugin versions, compatibility, ratings, and descriptions from wordpress.org/plugins/ SoftwareApplication JSON-LD/HTML without cross-upgrading to api.wordpress.org." +domains: + - wordpress.org + - www.wordpress.org + - api.wordpress.org +auth_mode: pub +exampleUrls: + - "https://wordpress.org/plugins/akismet/" + - "https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&slug=akismet" + +routes: + - match: + hosts: + - api.wordpress.org + pathPrefix: /plugins/info/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: wordpress_plugin_json + +htmlRoutes: + - id: wordpress-org-plugins + match: + hosts: + - wordpress.org + - www.wordpress.org + pathPrefix: /plugins/ + mode: wordpress_plugin_html diff --git a/internal/extract/official_api_providers.go b/internal/extract/official_api_providers.go index 00e9fb8..1a936dc 100644 --- a/internal/extract/official_api_providers.go +++ b/internal/extract/official_api_providers.go @@ -388,6 +388,27 @@ var officialProviderSpecs = map[string]OfficialAPIKeyProviderSpec{ Aliases: []string{"usps", "usps-addresses", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, }, + "core-ac": { + Provider: "core-ac", + EnvKeyName: "CORE_AC_API_KEY", + VaultProvider: "core-ac", + Aliases: []string{"CORE_AC_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, + "nasa-ads": { + Provider: "nasa-ads", + EnvKeyName: "NASA_ADS_API_KEY", + VaultProvider: "nasa-ads", + Aliases: []string{"adsabs", "NASA_ADS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, + "semantic-scholar": { + Provider: "semantic-scholar", + EnvKeyName: "SEMANTIC_SCHOLAR_API_KEY", + VaultProvider: "semantic-scholar", + Aliases: []string{"s2", "SEMANTIC_SCHOLAR_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "x-api-key"}, + }, } // NormalizeAPIKeyUserID normalizes a Hub API-key vault user identifier. diff --git a/internal/extract/policy.go b/internal/extract/policy.go index 0018d7f..b88d821 100644 --- a/internal/extract/policy.go +++ b/internal/extract/policy.go @@ -19,12 +19,14 @@ var AllowlistedUserAgentProfiles = map[string]string{ // AdapterPolicy describes per-adapter politeness, User-Agent profile, host pacing, concurrency, strict robots, and cache TTL rules. type AdapterPolicy struct { - AdapterID string `json:"adapterId,omitempty"` - UserAgentProfile string `json:"userAgentProfile,omitempty"` - MinIntervalMs int `json:"minIntervalMs,omitempty"` - MaxCacheTtlMs int `json:"maxCacheTtlMs,omitempty"` - MaxConcurrent int `json:"maxConcurrent,omitempty"` - StrictRobots bool `json:"strictRobots,omitempty"` + AdapterID string `json:"adapterId,omitempty"` + UserAgentProfile string `json:"userAgentProfile,omitempty"` + MinIntervalMs int `json:"minIntervalMs,omitempty"` + MaxCacheTtlMs int `json:"maxCacheTtlMs,omitempty"` + MaxConcurrent int `json:"maxConcurrent,omitempty"` + StrictRobots bool `json:"strictRobots,omitempty"` + MaxFetchBytes int `json:"maxFetchBytes,omitempty"` + AllowTruncatedStream bool `json:"allowTruncatedStream,omitempty"` } // IsValidUserAgentHeaderValue verifies that a User-Agent string is 1..256 printable ASCII characters. @@ -131,6 +133,48 @@ func ResolveHostPolicyDefaults(host string) AdapterPolicy { MinIntervalMs: 2000, StrictRobots: true, } + case h == "dblp.org" || h == "www.dblp.org": + return AdapterPolicy{ + AdapterID: "dblp", + MinIntervalMs: 4000, + MaxConcurrent: 1, + StrictRobots: true, + } + case h == "medrxiv.org" || h == "www.medrxiv.org": + return AdapterPolicy{ + AdapterID: "biorxiv-medrxiv", + MinIntervalMs: 7000, + MaxConcurrent: 1, + StrictRobots: true, + } + case h == "zenodo.org" || h == "www.zenodo.org" || + h == "osf.io" || h == "www.osf.io": + return AdapterPolicy{ + AdapterID: "research-repo-pack", + MinIntervalMs: 10000, + MaxConcurrent: 1, + StrictRobots: true, + } + case h == "datadryad.org" || h == "www.datadryad.org": + return AdapterPolicy{ + AdapterID: "research-repo-pack", + MinIntervalMs: 5000, + MaxConcurrent: 1, + StrictRobots: true, + } + case h == "papers.ssrn.com": + return AdapterPolicy{ + AdapterID: "ssrn-nber", + MinIntervalMs: 5000, + MaxConcurrent: 1, + StrictRobots: true, + } + case h == "bgp.he.net": + return AdapterPolicy{ + AdapterID: "bgp-asn", + MaxFetchBytes: 1_048_576, + AllowTruncatedStream: true, + } default: return AdapterPolicy{} } @@ -249,6 +293,10 @@ func ResolveAdapterPolicyByID(adapterID string) AdapterPolicy { } pol.StrictRobots = true } + if id == "bgp-asn" { + pol.MaxFetchBytes = 1_048_576 + pol.AllowTruncatedStream = true + } return pol } diff --git a/internal/extract/wave3_dev_infra.go b/internal/extract/wave3_dev_infra.go new file mode 100644 index 0000000..d29d10d --- /dev/null +++ b/internal/extract/wave3_dev_infra.go @@ -0,0 +1,3797 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "math" + "sort" + "strconv" + "strings" +) + +const ( + wave3DevMaxHTMLBytes = 2 * 1024 * 1024 + wave3DevStdHTMLMaxBytes = 1 * 1024 * 1024 + wave3DevMaxJSONBytes = 4 * 1024 * 1024 + wave3DevMaxTextBytes = 4 * 1024 * 1024 + wave3DevMaxRecords = 25 +) + +var ( + wave3DevRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|429|page\s+not\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|vercel\s+security\s+checkpoint|security\s+checkpoint|item\s+not\s+available|extension\s+not\s+found|module\s+not\s+found|plugin\s+not\s+found)(?:\b|$)`) + wave3DevRxMaintTitle = 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)`) + wave3DevRxErrorTitle = 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)$`) + wave3DevRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|bitbucket|artifact\s+hub|can\s+i\s+use\.\.\.\s*support\s+tables.*|chrome\s+web\s+store|visual\s+studio\s+marketplace|wordpress\s+plugins|puppet\s+forge)$`) + wave3DevRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3DevRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3DevRxISODate = newLazyRegexp(`^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])(?:$|T\d{2}:\d{2}| \d{2}:\d{2})`) + wave3DevRxVersion = newLazyRegexp(`^[vV]?\d+(?:\.\d+){0,3}(?:[-+_][0-9A-Za-z._-]+)?$`) + wave3DevRxPkgIdent = newLazyRegexp(`^(?:@[a-zA-Z0-9._-]+/)?[a-zA-Z0-9][a-zA-Z0-9._@:/+-]{0,200}$`) + wave3DevRxNextData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NEXT_DATA__["'][^>]*>(.*?)`) + wave3DevRxJSONLDScript = newLazyRegexp(`(?is)]*\btype\s*=\s*["']application/ld\+json["'][^>]*>(.*?)`) + wave3DevRxVSSExtScript = newLazyRegexp(`(?is)]*\bclass\s*=\s*["'][^"']*vss-extension[^"']*["'][^>]*>(.*?)`) + wave3DevRxCWSUsers = newLazyRegexp(`(?i)\b([0-9][0-9,]{1,12})\+?\s+users\b`) + wave3DevRxCWSVersion = newLazyRegexp(`(?i)Version\s*]+>\s*<[^>]+>\s*([0-9][0-9A-Za-z._+-]{0,32})`) +) + +func init() { + registerWave3DevInfraHTMLModes() +} + +// RegisterWave3DevInfraHTMLModes registers all Category N Developer Infrastructure HTML modes lazily. +func RegisterWave3DevInfraHTMLModes() { + registerWave3DevInfraHTMLModes() +} + +func registerWave3DevInfraHTMLModes() { + for _, mode := range []string{ + "bitbucket_html", + "sourceforge_launchpad_html", + "bugzilla_html", + "jira_public_html", + "wordpress_plugin_html", + "vscode_marketplace_html", + "chrome_web_store_html", + "artifact_hub_html", + "puppet_forge_html", + "apis_guru_html", + "endoflife_html", + "caniuse_html", + "bundle_packagephobia_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3DevInfraRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3DevInfraHTMLMode reports whether mode is one of the 13 Category N Developer Infrastructure HTML modes (#327-#340). +func IsWave3DevInfraHTMLMode(mode string) bool { + switch mode { + case "bitbucket_html", + "sourceforge_launchpad_html", + "bugzilla_html", + "jira_public_html", + "wordpress_plugin_html", + "vscode_marketplace_html", + "chrome_web_store_html", + "artifact_hub_html", + "puppet_forge_html", + "apis_guru_html", + "endoflife_html", + "caniuse_html", + "bundle_packagephobia_html": + return true + default: + return false + } +} + +// IsWave3DevInfraJSONMode reports whether mode is handled by Category N JSON formatters. +func IsWave3DevInfraJSONMode(mode string) bool { + return isWave3DevInfraJSONMode(mode) +} + +func isWave3DevInfraJSONMode(mode string) bool { + switch mode { + case "bitbucket_json", + "sourceforge_json", + "launchpad_json", + "bugzilla_json", + "jira_public_json", + "wordpress_plugin_json", + "open_vsx_json", + "amo_addon_json", + "artifact_hub_json", + "ansible_galaxy_json", + "puppet_forge_json", + "apis_guru_json", + "endoflife_json", + "web_compat_json", + "bundlephobia_json", + "packagephobia_json": + return true + default: + return false + } +} + +// IsWave3DevInfraTextMode reports whether mode is handled by Category N text/streaming formatters (`gerrit_json`, `apis_guru_list_bounded`). +func IsWave3DevInfraTextMode(mode string) bool { + return isWave3DevInfraTextMode(mode) +} + +func isWave3DevInfraTextMode(mode string) bool { + switch mode { + case "gerrit_json", + "apis_guru_list_bounded": + return true + default: + return false + } +} + +func wave3DevDefaultExtractorID(mode string) string { + switch mode { + case "bitbucket_html", "bitbucket_json": + return "bitbucket-cloud" + case "sourceforge_launchpad_html", "sourceforge_json", "launchpad_json": + return "sourceforge-launchpad" + case "gerrit_json": + return "gerrit" + case "bugzilla_html", "bugzilla_json": + return "bugzilla" + case "jira_public_html", "jira_public_json": + return "jira-public" + case "wordpress_plugin_html", "wordpress_plugin_json": + return "wordpress-org-plugins" + case "vscode_marketplace_html", "open_vsx_json": + return "vscode-open-vsx" + case "chrome_web_store_html", "amo_addon_json": + return "browser-addons-amo-cws" + case "artifact_hub_html", "artifact_hub_json": + return "artifact-hub" + case "puppet_forge_html", "ansible_galaxy_json", "puppet_forge_json": + return "ansible-puppet-forge" + case "apis_guru_html", "apis_guru_json", "apis_guru_list_bounded": + return "apis-guru" + case "endoflife_html", "endoflife_json": + return "endoflife-date" + case "caniuse_html", "web_compat_json": + return "web-compat-data" + case "bundle_packagephobia_html", "bundlephobia_json", "packagephobia_json": + return "bundlephobia-packagephobia" + default: + return "" + } +} + +// Wave3DevInfraRunHTML executes a Category N HTML extractor and returns DeclarativePostFetchResult. +func Wave3DevInfraRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3DevInfraHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + maxHTML := wave3DevStdHTMLMaxBytes + if mode == "chrome_web_store_html" || mode == "wordpress_plugin_html" || mode == "puppet_forge_html" { + maxHTML = wave3DevMaxHTMLBytes + } + if len(rawHTML) > maxHTML { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, maxHTML) + } + 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 !wave3DevMatchesModePrefilter(mode, rawHTML, probeLower, urlLower) { + return nil + } + if wave3DevHasCommonNegativeShell(mode, rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3DevDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "bitbucket_html": + res = wave3DevExtractBitbucketHTML(rawHTML, baseURL, extractorID) + case "sourceforge_launchpad_html": + res = wave3DevExtractSourceForgeLaunchpadHTML(rawHTML, baseURL, urlLower, extractorID) + case "bugzilla_html": + res = wave3DevExtractBugzillaHTML(rawHTML, baseURL, extractorID) + case "jira_public_html": + res = wave3DevExtractJiraHTML(rawHTML, baseURL, extractorID) + case "wordpress_plugin_html": + res = wave3DevExtractWordPressPluginHTML(rawHTML, baseURL, extractorID) + case "vscode_marketplace_html": + res = wave3DevExtractVSCodeMarketplaceHTML(rawHTML, baseURL, extractorID) + case "chrome_web_store_html": + res = wave3DevExtractCWSHTML(rawHTML, probeLower, baseURL, extractorID) + case "artifact_hub_html": + res = wave3DevExtractArtifactHubHTML(rawHTML, baseURL, extractorID) + case "puppet_forge_html": + res = wave3DevExtractPuppetForgeHTML(rawHTML, baseURL, extractorID) + case "apis_guru_html": + res = wave3DevExtractAPIsGuruHTML(rawHTML, baseURL, extractorID) + case "endoflife_html": + res = wave3DevExtractEndOfLifeHTML(rawHTML, baseURL, extractorID) + case "caniuse_html": + res = wave3DevExtractCanIUseHTML(rawHTML, baseURL, extractorID) + case "bundle_packagephobia_html": + res = wave3DevExtractBundlePackagephobiaHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3DevFinalizePostFetch(res) +} + +// RunWave3DevInfraHTMLMode executes a Category N HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3DevInfraHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3DevInfraRunHTML(mode, rawHTML, baseURL, wave3DevDefaultExtractorID(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 +} + +// FormatWave3DevInfraJSONDoc formats a Category N JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3DevInfraJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return formatWave3DevInfraJSON(mode, raw, params, origURL) +} + +func formatWave3DevInfraJSON(mode string, raw []byte, _ map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !isWave3DevInfraJSONMode(mode) || len(raw) == 0 || len(raw) > wave3DevMaxJSONBytes { + 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 "bitbucket_json": + doc, handled = wave3DevFormatBitbucketJSON(parsed, origURL) + case "sourceforge_json": + doc, handled = wave3DevFormatSourceForgeJSON(parsed, origURL) + case "launchpad_json": + doc, handled = wave3DevFormatLaunchpadJSON(parsed, origURL) + case "bugzilla_json": + doc, handled = wave3DevFormatBugzillaJSON(parsed, origURL) + case "jira_public_json": + doc, handled = wave3DevFormatJiraJSON(parsed, origURL) + case "wordpress_plugin_json": + doc, handled = wave3DevFormatWordPressPluginJSON(parsed, origURL) + case "open_vsx_json": + doc, handled = wave3DevFormatOpenVSXJSON(parsed, origURL) + case "amo_addon_json": + doc, handled = wave3DevFormatAMOAddonJSON(parsed, origURL) + case "artifact_hub_json": + doc, handled = wave3DevFormatArtifactHubJSON(parsed, origURL) + case "ansible_galaxy_json": + doc, handled = wave3DevFormatAnsibleGalaxyJSON(parsed, origURL) + case "puppet_forge_json": + doc, handled = wave3DevFormatPuppetForgeJSON(parsed, origURL) + case "apis_guru_json": + doc, handled = wave3DevFormatAPIsGuruJSON(parsed, origURL) + case "endoflife_json": + doc, handled = wave3DevFormatEndOfLifeJSON(parsed, origURL) + case "web_compat_json": + doc, handled = wave3DevFormatWebCompatJSON(parsed, origURL) + case "bundlephobia_json": + doc, handled = wave3DevFormatBundlephobiaJSON(parsed, origURL) + case "packagephobia_json": + doc, handled = wave3DevFormatPackagephobiaJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3DevFinalizeDoc(doc), true +} + +// FormatWave3DevInfraJSONMode formats a Category N JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3DevInfraJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := formatWave3DevInfraJSON(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3DevInfraTextDoc formats a Category N text/streaming twin payload (`gerrit_json`, `apis_guru_list_bounded`). +func FormatWave3DevInfraTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return formatWave3DevInfraText(mode, rawBody, params, origURL) +} + +func formatWave3DevInfraText(mode, rawBody string, _ map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !isWave3DevInfraTextMode(mode) || len(rawBody) == 0 { + return nil, false + } + if len(rawBody) > wave3DevMaxTextBytes { + rawBody = truncateUTF8SafeFullDocGo(rawBody, wave3DevMaxTextBytes) + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "gerrit_json": + doc, handled = wave3DevFormatGerritText(rawBody, origURL) + case "apis_guru_list_bounded": + doc, handled = wave3DevFormatAPIsGuruListBounded(rawBody, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3DevFinalizeDoc(doc), true +} + +// FormatWave3DevInfraTextMode formats a Category N text/streaming payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3DevInfraTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := formatWave3DevInfraText(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 wave3DevMatchesModePrefilter(mode, rawHTML, probeLower, urlLower string) bool { + switch mode { + case "bitbucket_html": + return strings.Contains(urlLower, "bitbucket.org") || + strings.Contains(probeLower, "bitbucket") + case "sourceforge_launchpad_html": + return strings.Contains(urlLower, "sourceforge.net") || + strings.Contains(urlLower, "launchpad.net") || + strings.Contains(probeLower, "sourceforge") || + strings.Contains(probeLower, "launchpad") + case "bugzilla_html": + return strings.Contains(urlLower, "show_bug.cgi") || + strings.Contains(urlLower, "bugzilla") || + strings.Contains(probeLower, "bugzilla") || + strings.Contains(probeLower, "short_desc_nonedit_display") || + strings.Contains(probeLower, "bz_comment") + case "jira_public_html": + return strings.Contains(urlLower, "jira") || + strings.Contains(probeLower, `content="jira"`) || + strings.Contains(probeLower, "ajs-jira-base-url") || + strings.Contains(probeLower, "issue-body-content") || + strings.Contains(probeLower, "summary-val") + case "wordpress_plugin_html": + return strings.Contains(urlLower, "wordpress.org/plugins") || + strings.Contains(probeLower, "softwareapplication") || + strings.Contains(probeLower, "wporg-plugin") || + strings.Contains(probeLower, "plugin-header") + case "vscode_marketplace_html": + return strings.Contains(urlLower, "marketplace.visualstudio.com") || + strings.Contains(probeLower, "vss-extension") || + strings.Contains(probeLower, "jicontent") || + strings.Contains(probeLower, "visual studio marketplace") + case "chrome_web_store_html": + if strings.Contains(urlLower, "chromewebstore.google.com") || + strings.Contains(probeLower, "chromewebstoreconsumerfeui") || + strings.Contains(probeLower, "af_initdatacallback") { + return true + } + if len(rawHTML) > 65536 { + tail := rawHTML[65536:] + return indexFoldASCIIExtract(tail, "af_initdatacallback") >= 0 || + indexFoldASCIIExtract(tail, "chromewebstoreconsumerfeui") >= 0 + } + return false + case "artifact_hub_html": + return strings.Contains(urlLower, "artifacthub.io") || + strings.Contains(probeLower, "artifact hub") || + strings.Contains(probeLower, "artifacthub") + case "puppet_forge_html": + return strings.Contains(urlLower, "forge.puppet.com") || + (strings.Contains(probeLower, "__next_data__") && + (strings.Contains(probeLower, "puppet") || strings.Contains(probeLower, "pageprops"))) + case "apis_guru_html": + return strings.Contains(urlLower, "apis.guru") || + strings.Contains(probeLower, "apis.guru") || + strings.Contains(probeLower, "openapi directory") + case "endoflife_html": + return strings.Contains(urlLower, "endoflife.date") || + strings.Contains(probeLower, "endoflife.date") + case "caniuse_html": + return strings.Contains(urlLower, "caniuse.com") || + strings.Contains(probeLower, "caniuse.com") || + strings.Contains(probeLower, "can i use") + case "bundle_packagephobia_html": + return strings.Contains(urlLower, "bundlephobia.com") || + strings.Contains(urlLower, "packagephobia.com") || + strings.Contains(probeLower, "bundlephobia") || + strings.Contains(probeLower, "packagephobia") || + strings.Contains(probeLower, "vercel security checkpoint") + default: + return false + } +} + +func wave3DevIsNegativeURL(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, "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 wave3DevIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3DevRxNotFoundTitle.MatchString(t) || + wave3DevRxMaintTitle.MatchString(t) || + wave3DevRxErrorTitle.MatchString(t) +} + +func wave3DevIsGenericTitle(title string) bool { + return wave3DevRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3DevHasCommonNegativeShell(mode, rawHTML, probeLower, urlLower string) bool { + if wave3DevIsNegativeURL(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", + "geo.captcha-delivery.com", + "captcha-delivery.com", + "vercel security checkpoint", + "failed to verify your browser", + "scheduled maintenance", + "down for maintenance", + "temporarily unavailable", + "packagenotfounderror", + "whoops, we couldn't find that page", + "no project found", + "you are not authorized to access bug", + "invalid bug id", + "issue does not exist", + "you can't view this issue", + `id="login-form"`, + "log in to jira", + "the extension could not be found", + "this item is no longer available", + "item not available", + "plugin not found", + "module not found", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + if mode == "chrome_web_store_html" && len(rawHTML) > 65536 { + tail := rawHTML[65536:] + if indexFoldASCIIExtract(tail, "this item is no longer available") >= 0 || + indexFoldASCIIExtract(tail, "item not available") >= 0 || + indexFoldASCIIExtract(tail, "the extension could not be found") >= 0 { + return true + } + } + title := wave3DevExtractTitleBounded(rawHTML) + if wave3DevIsNegativeTitle(title) { + return true + } + if canon := strings.ToLower(wave3DevExtractMetaBounded(rawHTML, "og:url")); strings.HasSuffix(canon, "/404") || strings.Contains(canon, "/404?") { + return true + } + // Check empty SPA roots (for CWS, stay bounded on probeLower +

len(probeLower) { + rawLower = asciiLowerExtractString(rawHTML) + } + hasRealBodyMarkers := hasJSONLDScriptToken(rawLower) || + strings.Contains(rawLower, " 65536 && indexFoldASCIIExtract(rawHTML[65536:], "= 0) + if mode != "artifact_hub_html" { + if (strings.Contains(rawLower, "") || strings.Contains(rawLower, "`, but a generic title "Artifact Hub" with empty root is a negative shell. + if wave3HasEmptyRootDivShell(rawHTML, probeLower, true) && (strings.TrimSpace(title) == "" || wave3DevIsGenericTitle(title)) { + return true + } + } + return false +} + +func wave3DevIsGenericJSONError(obj map[string]any) bool { + if obj == nil { + return true + } + if succ, ok := obj["success"].(bool); ok && !succ { + return true + } + if errFlag, ok := obj["error"].(bool); ok && errFlag { + return true + } + for _, k := range []string{"error", "errors", "errorMessages", "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 + } + } + } + } + if strings.EqualFold(wave3DevPlain(obj["type"], 32), "error") { + return true + } + for _, k := range []string{"error_code", "statusCode", "status_code", "code"} { + if f, ok := wave3DevFloatVal(obj[k]); ok && f >= 100 && (k != "code" || f == 404 || f >= 400 || obj["error"] != nil) { + return true + } + } + if st := strings.ToUpper(wave3DevPlain(obj["status"], 48)); st == "ERROR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "UNAUTHORIZED" { + return true + } + for _, mk := range []string{"message", "detail"} { + if msg := wave3DevPlain(obj[mk], 240); msg != "" && len(obj) <= 4 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "not found") || + strings.Contains(lm, "unauthorized") || + strings.Contains(lm, "invalid") || + strings.Contains(lm, "forbidden") || + strings.Contains(lm, "does not exist") || + strings.Contains(lm, "login required") || + strings.Contains(lm, "authentication") { + return true + } + } + } + return false +} + +func wave3DevIntPtr(n int) *int { return &n } +func wave3DevBoolPtr(b bool) *bool { return &b } + +func wave3DevFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3DevMaxRecords { + if doc.Total == nil { + doc.Total = wave3DevIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3DevMaxRecords] + doc.Returned = wave3DevIntPtr(len(doc.Records)) + doc.Truncated = wave3DevBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3DevFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3DevMaxRecords { + if res.Total == nil { + res.Total = wave3DevIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3DevMaxRecords] + res.Returned = wave3DevIntPtr(len(res.Records)) + res.Truncated = wave3DevBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3DevCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3DevRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3DevRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3DevRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3DevStringVal(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 wave3DevFloatVal(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 wave3DevPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3DevStringVal(v), maxLen) +} + +func wave3DevFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3DevNormalizeISODate(raw string) string { + s := SanitizeSchemaPlainField(raw, 48) + if s == "" { + return "" + } + if m := wave3DevRxISODate.FindStringSubmatch(s); len(m) == 4 { + return m[1] + "-" + m[2] + "-" + m[3] + } + return "" +} + +func wave3DevValidVersion(raw string) string { + s := SanitizeSchemaPlainField(raw, 64) + if s == "" { + return "" + } + if wave3DevRxVersion.MatchString(s) { + return s + } + return "" +} + +func wave3DevValidPkgIdent(raw string) string { + s := SanitizeSchemaPlainField(raw, 200) + if s == "" { + return "" + } + if wave3DevRxPkgIdent.MatchString(s) { + return s + } + return "" +} + +func wave3DevAddLink(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 wave3DevExtractTitle(doc *HTMLDoc, rawHTML string) string { + if doc != nil { + if h1 := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("h1")), 240); h1 != "" && !wave3DevIsGenericTitle(h1) && !wave3DevIsNegativeTitle(h1) { + return h1 + } + } + if og := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240); og != "" && !wave3DevIsGenericTitle(og) && !wave3DevIsNegativeTitle(og) { + return og + } + if t := SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240); t != "" && !wave3DevIsGenericTitle(t) && !wave3DevIsNegativeTitle(t) { + return t + } + return "" +} + +func wave3DevExtractMetaDesc(rawHTML string) string { + return wave3DevFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600), + ) +} + +func wave3DevFragToMD(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 wave3DevFormatBytes(n float64) string { + if n < 0 || math.IsNaN(n) || math.IsInf(n, 0) { + return "" + } + if n >= 1024*1024 { + return fmt.Sprintf("%.2f MiB (%.0f B)", n/(1024*1024), n) + } + if n >= 1024 { + return fmt.Sprintf("%.2f KiB (%.0f B)", n/1024, n) + } + return fmt.Sprintf("%.0f B", n) +} + +func wave3DevExtractNextDataObj(rawHTML string) map[string]any { + m := wave3DevRxNextData.FindStringSubmatch(rawHTML) + if len(m) < 2 { + return nil + } + raw := strings.TrimSpace(m[1]) + if raw == "" || raw[0] != '{' { + return nil + } + parsed, ok := decodeJSONWithNumbers([]byte(raw)) + if !ok { + return nil + } + obj, _ := parsed.(map[string]any) + return obj +} + +func wave3DevNestedMap(obj map[string]any, keys ...string) map[string]any { + cur := obj + for _, k := range keys { + if cur == nil { + return nil + } + next, ok := cur[k].(map[string]any) + if !ok { + return nil + } + cur = next + } + return cur +} + +func wave3DevFormatTableFromHTML(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) < wave3DevMaxRecords; 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 +} + +// ── #327 Bitbucket Cloud ───────────────────────────────────────────────────────────────────────── + +func wave3DevFormatBitbucketJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + // Paginated list (`values: [...]`) + if vals, isVals := obj["values"].([]any); isVals { + if len(vals) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for i, rawItem := range vals { + if i >= wave3DevMaxRecords { + break + } + it, okIt := rawItem.(map[string]any) + if !okIt { + continue + } + name := wave3DevFirstNonEmpty(wave3DevPlain(it["full_name"], 160), wave3DevPlain(it["title"], 180), wave3DevPlain(it["name"], 160)) + if name == "" { + continue + } + lang := wave3DevFirstNonEmpty(wave3DevPlain(it["language"], 48), wave3DevPlain(it["state"], 48), "-") + updated := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(it["updated_on"])), "-") + desc := wave3DevFirstNonEmpty(wave3DevPlain(it["description"], 180), "-") + rows = append(rows, []string{escapeDeclMarkdownBrackets(name), lang, updated, escapeDeclMarkdownBrackets(desc)}) + rec := map[string]any{"name": name, "kind": wave3DevPlain(it["type"], 48)} + if lang != "-" { + rec["detail"] = lang + } + if updated != "-" { + rec["updated"] = updated + } + if lm := wave3DevNestedMap(it, "links", "html"); lm != nil { + if href := SanitizeSchemaHTTPSURL(wave3DevStringVal(lm["href"]), origURL); href != "" { + rec["url"] = href + wave3DevAddLink(&links, seen, href, origURL) + } + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + title := "Bitbucket Cloud Results" + md := "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"Name", "Lang / State", "Updated", "Description"}, rows) + doc := &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: recs, + } + if sz, okSz := wave3DevFloatVal(obj["size"]); okSz && sz >= 0 { + doc.Total = wave3DevIntPtr(int(sz)) + } + return doc, true + } + + kind := wave3DevPlain(obj["type"], 48) + fullName := wave3DevFirstNonEmpty(wave3DevPlain(obj["full_name"], 180), wave3DevPlain(obj["name"], 180), wave3DevPlain(obj["title"], 220)) + if fullName == "" || (kind == "" && obj["uuid"] == nil && obj["slug"] == nil) { + return nil, false + } + desc := wave3DevPlain(obj["description"], 1200) + lang := wave3DevPlain(obj["language"], 64) + scm := wave3DevPlain(obj["scm"], 32) + created := wave3DevNormalizeISODate(wave3DevStringVal(obj["created_on"])) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["updated_on"])) + var owner string + if om := wave3DevNestedMap(obj, "owner"); om != nil { + owner = wave3DevFirstNonEmpty(wave3DevPlain(om["display_name"], 120), wave3DevPlain(om["username"], 120)) + } + if owner == "" { + if wm := wave3DevNestedMap(obj, "workspace"); wm != nil { + owner = wave3DevFirstNonEmpty(wave3DevPlain(wm["name"], 120), wave3DevPlain(wm["slug"], 120)) + } + } + var mainBranch string + if mb := wave3DevNestedMap(obj, "mainbranch"); mb != nil { + mainBranch = wave3DevPlain(mb["name"], 80) + } + var projName string + if pm := wave3DevNestedMap(obj, "project"); pm != nil { + projName = wave3DevPlain(pm["name"], 120) + } + var links []string + seen := make(map[string]bool) + var htmlURL string + if hl := wave3DevNestedMap(obj, "links", "html"); hl != nil { + htmlURL = SanitizeSchemaHTTPSURL(wave3DevStringVal(hl["href"]), origURL) + wave3DevAddLink(&links, seen, htmlURL, origURL) + } + wave3DevAddLink(&links, seen, wave3DevStringVal(obj["website"]), origURL) + + var bullets []string + if kind != "" { + bullets = append(bullets, "- **Type**: "+kind) + } + if owner != "" { + bullets = append(bullets, "- **Owner / Workspace**: "+owner) + } + if projName != "" { + bullets = append(bullets, "- **Project**: "+projName) + } + if scm != "" { + bullets = append(bullets, "- **SCM**: `"+scm+"`") + } + if lang != "" { + bullets = append(bullets, "- **Language**: "+lang) + } + if mainBranch != "" { + bullets = append(bullets, "- **Main Branch**: `"+mainBranch+"`") + } + if priv, okP := obj["is_private"].(bool); okP { + if priv { + bullets = append(bullets, "- **Visibility**: Private") + } else { + bullets = append(bullets, "- **Visibility**: Public") + } + } + if sz, okSz := wave3DevFloatVal(obj["size"]); okSz && sz > 0 { + bullets = append(bullets, "- **Repository Size**: "+wave3DevFormatBytes(sz)) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if updated != "" { + bullets = append(bullets, "- **Updated**: "+updated) + } + if htmlURL != "" { + bullets = append(bullets, "- **URL**: "+htmlURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(fullName)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + rec := map[string]any{ + "fullName": fullName, + "type": kind, + } + if lang != "" { + rec["language"] = lang + } + if mainBranch != "" { + rec["mainBranch"] = mainBranch + } + if updated != "" { + rec["updated"] = updated + } + return &DeclarativeFormattedDoc{ + Title: fullName, + Description: sliceRunesMax(desc, 260), + Author: owner, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + }, true +} + +func wave3DevExtractBitbucketHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3DevExtractMetaDesc(rawHTML) + mainMD := wave3DevFragToMD(doc.HTML("main, article, [data-qa='repository-directory']"), baseURL) + if desc == "" && mainMD == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if mainMD != "" { + blocks = append(blocks, mainMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #328 SourceForge & Launchpad ───────────────────────────────────────────────────────────────── + +func wave3DevFormatSourceForgeJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + name := wave3DevFirstNonEmpty(wave3DevPlain(obj["name"], 180), wave3DevPlain(obj["shortname"], 120)) + shortname := wave3DevPlain(obj["shortname"], 120) + if name == "" || shortname == "" { + return nil, false + } + summary := wave3DevFirstNonEmpty(wave3DevPlain(obj["short_description"], 1200), wave3DevPlain(obj["summary"], 1200)) + created := wave3DevNormalizeISODate(wave3DevStringVal(obj["creation_date"])) + status := wave3DevPlain(obj["status"], 64) + var links []string + seen := make(map[string]bool) + projURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["url"]), origURL) + extHome := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["external_homepage"]), origURL) + wave3DevAddLink(&links, seen, projURL, origURL) + wave3DevAddLink(&links, seen, extHome, origURL) + + var cats []string + if catMap := wave3DevNestedMap(obj, "categories"); catMap != nil { + for _, ck := range []string{"topic", "license", "os", "language"} { + if arr, isArr := catMap[ck].([]any); isArr { + for _, item := range arr { + if cm, okCM := item.(map[string]any); okCM { + if lbl := wave3DevFirstNonEmpty(wave3DevPlain(cm["fullname"], 80), wave3DevPlain(cm["shortname"], 60)); lbl != "" { + cats = append(cats, lbl) + if len(cats) >= 8 { + break + } + } + } + } + } + } + } + var devs []string + if devArr, isD := obj["developers"].([]any); isD { + for i, rd := range devArr { + if i >= 10 { + break + } + if dm, okDM := rd.(map[string]any); okDM { + if dn := wave3DevFirstNonEmpty(wave3DevPlain(dm["name"], 80), wave3DevPlain(dm["username"], 80)); dn != "" { + devs = append(devs, dn) + } + } + } + } + + var bullets []string + bullets = append(bullets, "- **SourceForge Project**: `"+shortname+"`") + if status != "" { + bullets = append(bullets, "- **Status**: "+status) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if len(cats) > 0 { + bullets = append(bullets, "- **Categories / Licenses**: "+strings.Join(cats, ", ")) + } + if len(devs) > 0 { + bullets = append(bullets, "- **Maintainers**: "+strings.Join(devs, ", ")) + } + if extHome != "" { + bullets = append(bullets, "- **Homepage**: "+extHome) + } + if projURL != "" { + bullets = append(bullets, "- **Project URL**: "+projURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(name), strings.Join(bullets, "\n")} + if summary != "" { + blocks = append(blocks, "## Summary\n\n"+summary) + } + rec := map[string]any{"shortname": shortname, "name": name} + if status != "" { + rec["status"] = status + } + if created != "" { + rec["created"] = created + } + return &DeclarativeFormattedDoc{ + Title: name, + Description: sliceRunesMax(summary, 260), + PublishedTime: created, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + }, true +} + +func wave3DevFormatLaunchpadJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + selfLink := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["self_link"]), origURL) + title := wave3DevFirstNonEmpty(wave3DevPlain(obj["display_name"], 180), wave3DevPlain(obj["title"], 200), wave3DevPlain(obj["name"], 160)) + if title == "" || (selfLink == "" && obj["resource_type_link"] == nil) { + return nil, false + } + summary := wave3DevFirstNonEmpty(wave3DevPlain(obj["summary"], 1200), wave3DevPlain(obj["description"], 1200)) + created := wave3DevNormalizeISODate(wave3DevStringVal(obj["date_created"])) + lang := wave3DevPlain(obj["programming_language"], 80) + licInfo := wave3DevPlain(obj["license_info"], 160) + webLink := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["web_link"]), origURL) + homeURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["homepage_url"]), origURL) + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, webLink, origURL) + wave3DevAddLink(&links, seen, homeURL, origURL) + wave3DevAddLink(&links, seen, selfLink, origURL) + + var bullets []string + if name := wave3DevPlain(obj["name"], 120); name != "" { + bullets = append(bullets, "- **Identifier**: `"+name+"`") + } + if active, okA := obj["active"].(bool); okA { + if active { + bullets = append(bullets, "- **Active**: true") + } else { + bullets = append(bullets, "- **Active**: false") + } + } + if lang != "" { + bullets = append(bullets, "- **Programming Language**: "+lang) + } + if licInfo != "" { + bullets = append(bullets, "- **License**: "+licInfo) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if webLink != "" { + bullets = append(bullets, "- **Launchpad URL**: "+webLink) + } + if homeURL != "" { + bullets = append(bullets, "- **Homepage**: "+homeURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if summary != "" { + blocks = append(blocks, "## Summary\n\n"+summary) + } + rec := map[string]any{"name": wave3DevPlain(obj["name"], 120), "title": title} + if created != "" { + rec["created"] = created + } + if webLink != "" { + rec["url"] = webLink + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(summary, 260), + PublishedTime: created, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + }, true +} + +func wave3DevExtractSourceForgeLaunchpadHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3DevExtractMetaDesc(rawHTML) + var bodyParts []string + if strings.Contains(urlLower, "launchpad.net") { + if sum := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#summary")), 1500); sum != "" { + bodyParts = append(bodyParts, sum) + } + if mainFrag := doc.HTML("#maincontent, main, .yui-main"); mainFrag != "" { + if md := wave3DevFragToMD(mainFrag, baseURL); md != "" { + bodyParts = append(bodyParts, md) + } + } + } else { + if mainFrag := doc.HTML("main, .project-info, #project-overview, article"); mainFrag != "" { + if md := wave3DevFragToMD(mainFrag, baseURL); md != "" { + bodyParts = append(bodyParts, md) + } + } + } + if len(bodyParts) == 0 && desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + blocks = append(blocks, bodyParts...) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #329 Gerrit Code Review (XSSI )]}' Stripper) ───────────────────────────────────────────────── + +func stripGerritXSSIPrefix(raw string) string { + s := strings.TrimPrefix(raw, "\xEF\xBB\xBF") + s = strings.TrimLeft(s, " \t\r\n") + if strings.HasPrefix(s, ")]}'") { + s = s[4:] + s = strings.TrimLeft(s, " \t\r\n") + } + return s +} + +func wave3DevFormatGerritText(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + cleaned := stripGerritXSSIPrefix(rawBody) + if cleaned == "" || (cleaned[0] != '{' && cleaned[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers([]byte(cleaned)) + if !ok || parsed == nil { + return nil, false + } + if arr, isArr := parsed.([]any); isArr { + if len(arr) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + for i, rawItem := range arr { + if i >= wave3DevMaxRecords { + break + } + it, okIt := rawItem.(map[string]any) + if !okIt { + continue + } + num := wave3DevPlain(it["_number"], 32) + subj := wave3DevPlain(it["subject"], 180) + proj := wave3DevPlain(it["project"], 120) + if subj == "" && num == "" { + continue + } + branch := wave3DevFirstNonEmpty(wave3DevPlain(it["branch"], 64), "-") + status := wave3DevFirstNonEmpty(wave3DevPlain(it["status"], 32), "-") + updated := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(it["updated"])), "-") + rows = append(rows, []string{num, escapeDeclMarkdownBrackets(proj), branch, status, updated, escapeDeclMarkdownBrackets(subj)}) + rec := map[string]any{ + "number": num, + "project": proj, + "branch": branch, + "status": status, + "subject": subj, + } + if cid := wave3DevPlain(it["change_id"], 80); cid != "" { + rec["changeId"] = cid + } + if updated != "-" { + rec["updated"] = updated + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + title := "Gerrit Changes" + md := "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"#", "Project", "Branch", "Status", "Updated", "Subject"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Records: recs, + }, true + } + + obj, okObj := parsed.(map[string]any) + if !okObj || wave3DevIsGenericJSONError(obj) { + return nil, false + } + subj := wave3DevPlain(obj["subject"], 240) + num := wave3DevPlain(obj["_number"], 32) + cid := wave3DevPlain(obj["change_id"], 80) + if subj == "" && cid == "" && num == "" { + return nil, false + } + proj := wave3DevPlain(obj["project"], 120) + branch := wave3DevPlain(obj["branch"], 80) + topic := wave3DevPlain(obj["topic"], 120) + status := wave3DevPlain(obj["status"], 48) + created := wave3DevNormalizeISODate(wave3DevStringVal(obj["created"])) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["updated"])) + ins := wave3DevPlain(obj["insertions"], 24) + del := wave3DevPlain(obj["deletions"], 24) + var owner string + if om := wave3DevNestedMap(obj, "owner"); om != nil { + owner = wave3DevFirstNonEmpty(wave3DevPlain(om["name"], 120), wave3DevPlain(om["username"], 120)) + } + + title := subj + if num != "" && subj != "" { + title = fmt.Sprintf("Change %s: %s", num, subj) + } else if title == "" { + title = "Gerrit Change " + wave3DevFirstNonEmpty(num, cid) + } + + var bullets []string + if num != "" { + bullets = append(bullets, "- **Change Number**: `"+num+"`") + } + if cid != "" { + bullets = append(bullets, "- **Change-Id**: `"+cid+"`") + } + if proj != "" { + bullets = append(bullets, "- **Project**: `"+proj+"`") + } + if branch != "" { + bullets = append(bullets, "- **Branch**: `"+branch+"`") + } + if topic != "" { + bullets = append(bullets, "- **Topic**: "+topic) + } + if status != "" { + bullets = append(bullets, "- **Status**: "+status) + } + if owner != "" { + bullets = append(bullets, "- **Owner**: "+owner) + } + if ins != "" || del != "" { + bullets = append(bullets, fmt.Sprintf("- **Diff Stats**: +%s / -%s", wave3DevFirstNonEmpty(ins, "0"), wave3DevFirstNonEmpty(del, "0"))) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if updated != "" { + bullets = append(bullets, "- **Updated**: "+updated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if msgs, isM := obj["messages"].([]any); isM && len(msgs) > 0 { + var msgRows [][]string + for i, rm := range msgs { + if i >= 10 { + break + } + mm, okM := rm.(map[string]any) + if !okM { + continue + } + mDate := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(mm["date"])), "-") + var mAuthor string + if am := wave3DevNestedMap(mm, "author"); am != nil { + mAuthor = wave3DevFirstNonEmpty(wave3DevPlain(am["name"], 80), wave3DevPlain(am["username"], 80), "-") + } + mTxt := wave3DevPlain(mm["message"], 200) + if mTxt != "" { + msgRows = append(msgRows, []string{mDate, escapeDeclMarkdownBrackets(mAuthor), escapeDeclMarkdownBrackets(mTxt)}) + } + } + if len(msgRows) > 0 { + blocks = append(blocks, "## Recent Messages\n\n"+formatDeclarativeGFMTable([]string{"Date", "Author", "Message"}, msgRows)) + } + } + + rec := map[string]any{"number": num, "changeId": cid, "project": proj, "branch": branch, "status": status, "subject": subj} + if updated != "" { + rec["updated"] = updated + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, origURL, origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Author: owner, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + }, true +} + +// ── #330 Bugzilla JSON & HTML ──────────────────────────────────────────────────────────────────── + +func wave3DevFormatBugzillaJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + bugs, isB := obj["bugs"].([]any) + if !isB || len(bugs) == 0 { + return nil, false + } + b0, okB := bugs[0].(map[string]any) + if !okB { + return nil, false + } + id := wave3DevPlain(b0["id"], 32) + summary := wave3DevPlain(b0["summary"], 240) + if id == "" || summary == "" { + return nil, false + } + status := wave3DevPlain(b0["status"], 48) + resolution := wave3DevPlain(b0["resolution"], 48) + product := wave3DevPlain(b0["product"], 120) + component := wave3DevPlain(b0["component"], 120) + severity := wave3DevPlain(b0["severity"], 48) + priority := wave3DevPlain(b0["priority"], 48) + creator := wave3DevPlain(b0["creator"], 120) + assigned := wave3DevPlain(b0["assigned_to"], 120) + created := wave3DevNormalizeISODate(wave3DevStringVal(b0["creation_time"])) + updated := wave3DevNormalizeISODate(wave3DevStringVal(b0["last_change_time"])) + + title := fmt.Sprintf("Bug %s: %s", id, summary) + var bullets []string + bullets = append(bullets, "- **Bug ID**: `"+id+"`") + if status != "" { + st := status + if resolution != "" { + st += " (" + resolution + ")" + } + bullets = append(bullets, "- **Status**: "+st) + } + if product != "" { + bullets = append(bullets, "- **Product**: "+product) + } + if component != "" { + bullets = append(bullets, "- **Component**: "+component) + } + if severity != "" { + bullets = append(bullets, "- **Severity**: "+severity) + } + if priority != "" { + bullets = append(bullets, "- **Priority**: "+priority) + } + if creator != "" { + bullets = append(bullets, "- **Reporter**: "+creator) + } + if assigned != "" { + bullets = append(bullets, "- **Assignee**: "+assigned) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if updated != "" { + bullets = append(bullets, "- **Last Modified**: "+updated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + var recs []map[string]any + for i, rb := range bugs { + if i >= wave3DevMaxRecords { + break + } + bm, okBM := rb.(map[string]any) + if !okBM { + continue + } + bid := wave3DevPlain(bm["id"], 32) + bsum := wave3DevPlain(bm["summary"], 240) + if bid == "" && bsum == "" { + continue + } + recs = append(recs, map[string]any{ + "id": bid, + "summary": bsum, + "status": wave3DevPlain(bm["status"], 48), + "product": wave3DevPlain(bm["product"], 120), + "component": wave3DevPlain(bm["component"], 120), + }) + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, origURL, origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Author: creator, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + }, true +} + +func wave3DevExtractBugzillaHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + shortDesc := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#short_desc_nonedit_display, #summary-val, h1")), 240) + title := wave3DevFirstNonEmpty(shortDesc, wave3DevExtractTitle(doc, rawHTML)) + if title == "" { + return nil + } + desc := wave3DevExtractMetaDesc(rawHTML) + status := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#static_bug_status")), 80) + product := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#field_container_product")), 120) + component := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#field_container_component")), 120) + + var bullets []string + if status != "" { + bullets = append(bullets, "- **Status**: "+status) + } + if product != "" { + bullets = append(bullets, "- **Product**: "+product) + } + if component != "" { + bullets = append(bullets, "- **Component**: "+component) + } + if tw1 := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "twitter:data1"), 80); tw1 != "" && status == "" { + bullets = append(bullets, "- **Status**: "+tw1) + } + + var comments []string + for i, cEl := range doc.Select(".bz_comment_text, pre.bz_comment_text", 8) { + txt := SanitizeSchemaPlainField(wave3DevCleanText(cEl.Text()), 1200) + if txt != "" { + comments = append(comments, fmt.Sprintf("### Comment %d\n\n%s", i, txt)) + } + } + + if len(bullets) == 0 && len(comments) == 0 && desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, "## Summary\n\n"+desc) + } + blocks = append(blocks, comments...) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #331 Jira Public JSON & HTML ───────────────────────────────────────────────────────────────── + +func wave3DevExtractJiraADFText(v any, depth int) string { + if v == nil || depth > 8 { + return "" + } + switch tv := v.(type) { + case string: + return strings.TrimSpace(tv) + case map[string]any: + if txt := wave3DevStringVal(tv["text"]); txt != "" { + return txt + } + if arr, ok := tv["content"].([]any); ok { + var parts []string + for _, child := range arr { + if ct := wave3DevExtractJiraADFText(child, depth+1); ct != "" { + parts = append(parts, ct) + } + } + return strings.Join(parts, " ") + } + case []any: + var parts []string + for _, child := range tv { + if ct := wave3DevExtractJiraADFText(child, depth+1); ct != "" { + parts = append(parts, ct) + } + } + return strings.Join(parts, " ") + } + return "" +} + +func wave3DevFormatJiraJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + key := wave3DevPlain(obj["key"], 64) + fields := wave3DevNestedMap(obj, "fields") + if key == "" || fields == nil { + return nil, false + } + summary := wave3DevPlain(fields["summary"], 240) + if summary == "" { + return nil, false + } + var issueType, status, priority, resolution, project, reporter, assignee string + if it := wave3DevNestedMap(fields, "issuetype"); it != nil { + issueType = wave3DevPlain(it["name"], 64) + } + if st := wave3DevNestedMap(fields, "status"); st != nil { + status = wave3DevPlain(st["name"], 64) + } + if pr := wave3DevNestedMap(fields, "priority"); pr != nil { + priority = wave3DevPlain(pr["name"], 64) + } + if rs := wave3DevNestedMap(fields, "resolution"); rs != nil { + resolution = wave3DevPlain(rs["name"], 64) + } + if pj := wave3DevNestedMap(fields, "project"); pj != nil { + project = wave3DevFirstNonEmpty(wave3DevPlain(pj["name"], 120), wave3DevPlain(pj["key"], 48)) + } + if rp := wave3DevNestedMap(fields, "reporter"); rp != nil { + reporter = wave3DevPlain(rp["displayName"], 120) + } + if as := wave3DevNestedMap(fields, "assignee"); as != nil { + assignee = wave3DevPlain(as["displayName"], 120) + } + created := wave3DevNormalizeISODate(wave3DevStringVal(fields["created"])) + updated := wave3DevNormalizeISODate(wave3DevStringVal(fields["updated"])) + desc := SanitizeSchemaPlainField(wave3DevExtractJiraADFText(fields["description"], 0), 2500) + + title := fmt.Sprintf("[%s] %s", key, summary) + var bullets []string + bullets = append(bullets, "- **Issue Key**: `"+key+"`") + if project != "" { + bullets = append(bullets, "- **Project**: "+project) + } + if issueType != "" { + bullets = append(bullets, "- **Type**: "+issueType) + } + if status != "" { + st := status + if resolution != "" { + st += " (" + resolution + ")" + } + bullets = append(bullets, "- **Status**: "+st) + } + if priority != "" { + bullets = append(bullets, "- **Priority**: "+priority) + } + if reporter != "" { + bullets = append(bullets, "- **Reporter**: "+reporter) + } + if assignee != "" { + bullets = append(bullets, "- **Assignee**: "+assignee) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if updated != "" { + bullets = append(bullets, "- **Updated**: "+updated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + if cmObj := wave3DevNestedMap(fields, "comment"); cmObj != nil { + if comments, isC := cmObj["comments"].([]any); isC && len(comments) > 0 { + var cRows [][]string + for i, rc := range comments { + if i >= 10 { + break + } + cm, okCM := rc.(map[string]any) + if !okCM { + continue + } + cDate := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(cm["created"])), "-") + var cAuth string + if am := wave3DevNestedMap(cm, "author"); am != nil { + cAuth = wave3DevFirstNonEmpty(wave3DevPlain(am["displayName"], 80), "-") + } + cBody := SanitizeSchemaPlainField(wave3DevExtractJiraADFText(cm["body"], 0), 220) + if cBody != "" { + cRows = append(cRows, []string{cDate, escapeDeclMarkdownBrackets(cAuth), escapeDeclMarkdownBrackets(cBody)}) + } + } + if len(cRows) > 0 { + blocks = append(blocks, "## Comments\n\n"+formatDeclarativeGFMTable([]string{"Date", "Author", "Comment"}, cRows)) + } + } + } + + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, origURL, origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(desc, 260), + Author: reporter, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "key": key, + "summary": summary, + "type": issueType, + "status": status, + "project": project, + }}, + }, true +} + +func wave3DevExtractJiraHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + summary := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#summary-val, h1")), 240) + title := wave3DevFirstNonEmpty(summary, wave3DevExtractTitle(doc, rawHTML)) + if title == "" { + return nil + } + issueKey := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#key-val")), 64) + if issueKey != "" && !strings.Contains(title, issueKey) { + title = fmt.Sprintf("[%s] %s", issueKey, title) + } + typeVal := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#type-val")), 64) + statusVal := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#status-val")), 64) + priorityVal := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#priority-val")), 64) + resVal := SanitizeSchemaPlainField(wave3DevCleanText(doc.Text("#resolution-val")), 64) + descMD := wave3DevFragToMD(doc.HTML("#description-val, .user-content-block"), baseURL) + if descMD == "" { + descMD = wave3DevExtractMetaDesc(rawHTML) + } + + var bullets []string + if issueKey != "" { + bullets = append(bullets, "- **Issue Key**: `"+issueKey+"`") + } + if typeVal != "" { + bullets = append(bullets, "- **Type**: "+typeVal) + } + if statusVal != "" { + bullets = append(bullets, "- **Status**: "+statusVal) + } + if priorityVal != "" { + bullets = append(bullets, "- **Priority**: "+priorityVal) + } + if resVal != "" { + bullets = append(bullets, "- **Resolution**: "+resVal) + } + if len(bullets) == 0 && descMD == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if descMD != "" { + blocks = append(blocks, "## Description\n\n"+descMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: sliceRunesMax(descMD, 260), + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #332 WordPress.org Plugins ─────────────────────────────────────────────────────────────────── + +func wave3DevFormatWordPressPluginJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + name := wave3DevPlain(obj["name"], 180) + slug := wave3DevValidPkgIdent(wave3DevStringVal(obj["slug"])) + if name == "" || slug == "" { + return nil, false + } + ver := wave3DevValidVersion(wave3DevStringVal(obj["version"])) + author := SanitizeSchemaPlainField(wave3DevCleanText(wave3DevStringVal(obj["author"])), 120) + requires := wave3DevValidVersion(wave3DevStringVal(obj["requires"])) + tested := wave3DevValidVersion(wave3DevStringVal(obj["tested"])) + reqPHP := wave3DevValidVersion(wave3DevStringVal(obj["requires_php"])) + rating := wave3DevPlain(obj["rating"], 24) + installs := wave3DevPlain(obj["active_installs"], 32) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["last_updated"])) + homepage := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["homepage"]), origURL) + dlLink := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["download_link"]), origURL) + + var desc string + if secMap := wave3DevNestedMap(obj, "sections"); secMap != nil { + desc = SanitizeSchemaPlainField(wave3DevCleanText(wave3DevStringVal(secMap["description"])), 2500) + } + if desc == "" { + desc = wave3DevPlain(obj["short_description"], 1000) + } + + var bullets []string + bullets = append(bullets, "- **Slug**: `"+slug+"`") + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if author != "" { + bullets = append(bullets, "- **Author**: "+author) + } + if installs != "" { + bullets = append(bullets, "- **Active Installations**: "+installs) + } + if rating != "" { + bullets = append(bullets, "- **Rating**: "+rating) + } + if requires != "" { + bullets = append(bullets, "- **Requires WordPress**: "+requires) + } + if tested != "" { + bullets = append(bullets, "- **Tested up to**: "+tested) + } + if reqPHP != "" { + bullets = append(bullets, "- **Requires PHP**: "+reqPHP) + } + if updated != "" { + bullets = append(bullets, "- **Last Updated**: "+updated) + } + + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, homepage, origURL) + wave3DevAddLink(&links, seen, dlLink, origURL) + + blocks := []string{"# " + escapeDeclMarkdownBrackets(name), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + return &DeclarativeFormattedDoc{ + Title: name, + Description: sliceRunesMax(desc, 260), + Author: author, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "slug": slug, + "name": name, + "version": ver, + "activeInstalls": installs, + }}, + }, true +} + +func wave3DevFindSoftwareAppJSONLD(rawHTML string) map[string]any { + for _, m := range wave3DevRxJSONLDScript.FindAllStringSubmatch(rawHTML, 8) { + if len(m) < 2 { + continue + } + raw := strings.TrimSpace(m[1]) + if raw == "" { + continue + } + parsed, ok := decodeJSONWithNumbers([]byte(raw)) + if !ok || parsed == nil { + continue + } + var walk func(v any) map[string]any + walk = func(v any) map[string]any { + switch tv := v.(type) { + case []any: + for _, it := range tv { + if hit := walk(it); hit != nil { + return hit + } + } + case map[string]any: + if tVal := tv["@type"]; tVal != nil { + tStr := strings.ToLower(fmt.Sprintf("%v", tVal)) + if strings.Contains(tStr, "softwareapplication") { + return tv + } + } + if g, hasG := tv["@graph"]; hasG { + if hit := walk(g); hit != nil { + return hit + } + } + } + return nil + } + if hit := walk(parsed); hit != nil { + return hit + } + } + return nil +} + +func wave3DevExtractWordPressPluginHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + ld := wave3DevFindSoftwareAppJSONLD(rawHTML) + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + var title, desc, ver, author, updated, dlURL, osName, ratingStr string + var links []string + seen := make(map[string]bool) + + if ld != nil { + title = wave3DevPlain(ld["name"], 200) + desc = wave3DevPlain(ld["description"], 1600) + ver = wave3DevValidVersion(wave3DevStringVal(ld["softwareVersion"])) + osName = wave3DevPlain(ld["operatingSystem"], 80) + updated = wave3DevNormalizeISODate(wave3DevStringVal(ld["dateModified"])) + dlURL = SanitizeSchemaHTTPSURL(wave3DevStringVal(ld["downloadUrl"]), baseURL) + wave3DevAddLink(&links, seen, dlURL, baseURL) + if ar := wave3DevNestedMap(ld, "aggregateRating"); ar != nil { + rv := wave3DevPlain(ar["ratingValue"], 16) + rc := wave3DevPlain(ar["ratingCount"], 24) + if rv != "" { + ratingStr = rv + if rc != "" { + ratingStr += " (" + rc + " ratings)" + } + } + } + if authObj := wave3DevNestedMap(ld, "author"); authObj != nil { + author = wave3DevPlain(authObj["name"], 120) + } else if authArr, okA := ld["author"].([]any); okA && len(authArr) > 0 { + if am, okAM := authArr[0].(map[string]any); okAM { + author = wave3DevPlain(am["name"], 120) + } + } + } + + if title == "" { + title = wave3DevExtractTitle(doc, rawHTML) + } + if title == "" { + return nil + } + if desc == "" { + desc = wave3DevExtractMetaDesc(rawHTML) + } + var domBody string + if doc != nil { + domBody = wave3DevFragToMD(doc.HTML("#tab-description, .plugin-description"), baseURL) + } + if desc == "" && domBody == "" && ver == "" { + return nil + } + + var bullets []string + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if author != "" { + bullets = append(bullets, "- **Author**: "+author) + } + if osName != "" { + bullets = append(bullets, "- **Platform**: "+osName) + } + if ratingStr != "" { + bullets = append(bullets, "- **Rating**: "+ratingStr) + } + if updated != "" { + bullets = append(bullets, "- **Last Updated**: "+updated) + } + if dlURL != "" { + bullets = append(bullets, "- **Download**: "+dlURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if domBody != "" { + blocks = append(blocks, "## Description\n\n"+domBody) + } else if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + + rec := map[string]any{"name": title} + if ver != "" { + rec["version"] = ver + } + if author != "" { + rec["author"] = author + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: sliceRunesMax(desc, 260), + Author: author, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #333 VS Code Marketplace & Open VSX ────────────────────────────────────────────────────────── + +func wave3DevFormatOpenVSXJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + ns := wave3DevValidPkgIdent(wave3DevStringVal(obj["namespace"])) + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + ver := wave3DevValidVersion(wave3DevStringVal(obj["version"])) + if ns == "" || name == "" || ver == "" { + return nil, false + } + display := wave3DevFirstNonEmpty(wave3DevPlain(obj["displayName"], 180), ns+"."+name) + desc := wave3DevPlain(obj["description"], 1200) + lic := wave3DevPlain(obj["license"], 64) + dlCount := wave3DevPlain(obj["downloadCount"], 32) + avgRating := wave3DevPlain(obj["averageRating"], 24) + ts := wave3DevNormalizeISODate(wave3DevStringVal(obj["timestamp"])) + var publisher string + if pb := wave3DevNestedMap(obj, "publishedBy"); pb != nil { + publisher = wave3DevPlain(pb["loginName"], 120) + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, wave3DevStringVal(obj["repository"]), origURL) + wave3DevAddLink(&links, seen, wave3DevStringVal(obj["homepage"]), origURL) + if fm := wave3DevNestedMap(obj, "files"); fm != nil { + wave3DevAddLink(&links, seen, wave3DevStringVal(fm["download"]), origURL) + } + + var bullets []string + bullets = append(bullets, "- **Extension ID**: `"+ns+"."+name+"`") + bullets = append(bullets, "- **Version**: `"+ver+"`") + if publisher != "" { + bullets = append(bullets, "- **Publisher**: "+publisher) + } + if lic != "" { + bullets = append(bullets, "- **License**: "+lic) + } + if dlCount != "" { + bullets = append(bullets, "- **Downloads**: "+dlCount) + } + if avgRating != "" { + bullets = append(bullets, "- **Rating**: "+avgRating) + } + if ts != "" { + bullets = append(bullets, "- **Published**: "+ts) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(display), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + return &DeclarativeFormattedDoc{ + Title: display, + Description: sliceRunesMax(desc, 260), + Author: wave3DevFirstNonEmpty(publisher, ns), + PublishedTime: ts, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "id": ns + "." + name, + "version": ver, + "license": lic, + "downloads": dlCount, + }}, + }, true +} + +func wave3DevExtractVSCodeMarketplaceHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + var title, publisher, itemID, ver, desc string + if m := wave3DevRxVSSExtScript.FindStringSubmatch(rawHTML); len(m) >= 2 { + if parsed, ok := decodeJSONWithNumbers([]byte(strings.TrimSpace(m[1]))); ok { + if obj, okObj := parsed.(map[string]any); okObj { + extName := wave3DevPlain(obj["extensionName"], 120) + pubName := wave3DevPlain(obj["publisherName"], 120) + if pubName == "" { + if pm := wave3DevNestedMap(obj, "publisher"); pm != nil { + pubName = wave3DevPlain(pm["publisherName"], 120) + publisher = wave3DevFirstNonEmpty(wave3DevPlain(pm["displayName"], 120), pubName) + } + } + if pubName != "" && extName != "" { + itemID = pubName + "." + extName + } + title = wave3DevPlain(obj["displayName"], 180) + desc = wave3DevPlain(obj["shortDescription"], 800) + if vers, okV := obj["versions"].([]any); okV && len(vers) > 0 { + if vm, okVM := vers[0].(map[string]any); okVM { + ver = wave3DevValidVersion(wave3DevStringVal(vm["version"])) + } + } + } + } + } + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if title == "" { + title = wave3DevExtractTitle(doc, rawHTML) + } + if title == "" { + return nil + } + if desc == "" { + desc = wave3DevExtractMetaDesc(rawHTML) + } + if publisher == "" && doc != nil { + publisher = SanitizeSchemaPlainField(wave3DevCleanText(doc.Text(".ux-item-publisher, .publisher-name")), 120) + } + var bodyMD string + if doc != nil { + bodyMD = wave3DevFragToMD(doc.HTML("#overview, .ux-item-details"), baseURL) + } + if desc == "" && bodyMD == "" && itemID == "" { + return nil + } + var bullets []string + if itemID != "" { + bullets = append(bullets, "- **Item Name**: `"+itemID+"`") + } + if publisher != "" { + bullets = append(bullets, "- **Publisher**: "+publisher) + } + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if bodyMD != "" { + blocks = append(blocks, bodyMD) + } + rec := map[string]any{"title": title} + if itemID != "" { + rec["itemName"] = itemID + } + if ver != "" { + rec["version"] = ver + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: sliceRunesMax(desc, 260), + Author: publisher, + Markdown: strings.Join(blocks, "\n\n"), + Records: []map[string]any{rec}, + } +} + +// ── #334 Browser Add-ons (Firefox AMO & Chrome Web Store) ──────────────────────────────────────── + +func wave3DevAMOLocalized(v any) string { + switch tv := v.(type) { + case string: + return wave3DevPlain(tv, 2500) + case map[string]any: + if s := wave3DevPlain(tv["en-US"], 2500); s != "" { + return s + } + if s := wave3DevPlain(tv["en"], 2500); s != "" { + return s + } + for _, val := range tv { + if s := wave3DevPlain(val, 2500); s != "" { + return s + } + } + } + return "" +} + +func wave3DevFormatAMOAddonJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + slug := wave3DevValidPkgIdent(wave3DevStringVal(obj["slug"])) + name := wave3DevAMOLocalized(obj["name"]) + if name == "" || slug == "" { + return nil, false + } + guid := wave3DevPlain(obj["guid"], 120) + summary := wave3DevCleanText(wave3DevAMOLocalized(obj["summary"])) + desc := wave3DevCleanText(wave3DevAMOLocalized(obj["description"])) + users := wave3DevPlain(obj["average_daily_users"], 32) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["last_updated"])) + var ver, lic string + if cv := wave3DevNestedMap(obj, "current_version"); cv != nil { + ver = wave3DevValidVersion(wave3DevStringVal(cv["version"])) + if lm := wave3DevNestedMap(cv, "license"); lm != nil { + lic = wave3DevAMOLocalized(lm["name"]) + } + } + var authors []string + if aArr, isA := obj["authors"].([]any); isA { + for i, ra := range aArr { + if i >= 6 { + break + } + if am, okAM := ra.(map[string]any); okAM { + if an := wave3DevPlain(am["name"], 80); an != "" { + authors = append(authors, an) + } + } + } + } + var ratingStr string + if rm := wave3DevNestedMap(obj, "ratings"); rm != nil { + avg := wave3DevPlain(rm["average"], 16) + cnt := wave3DevPlain(rm["count"], 24) + if avg != "" { + ratingStr = avg + if cnt != "" { + ratingStr += " (" + cnt + " ratings)" + } + } + } + + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, wave3DevStringVal(obj["url"]), origURL) + wave3DevAddLink(&links, seen, wave3DevAMOLocalized(obj["homepage"]), origURL) + wave3DevAddLink(&links, seen, wave3DevAMOLocalized(obj["support_url"]), origURL) + + var bullets []string + bullets = append(bullets, "- **Slug**: `"+slug+"`") + if guid != "" { + bullets = append(bullets, "- **GUID**: `"+guid+"`") + } + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if len(authors) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(authors, ", ")) + } + if users != "" { + bullets = append(bullets, "- **Average Daily Users**: "+users) + } + if ratingStr != "" { + bullets = append(bullets, "- **Rating**: "+ratingStr) + } + if lic != "" { + bullets = append(bullets, "- **License**: "+lic) + } + if updated != "" { + bullets = append(bullets, "- **Last Updated**: "+updated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(name), strings.Join(bullets, "\n")} + if summary != "" { + blocks = append(blocks, "## Summary\n\n"+summary) + } + if desc != "" && desc != summary { + blocks = append(blocks, "## Description\n\n"+desc) + } + return &DeclarativeFormattedDoc{ + Title: name, + Description: sliceRunesMax(wave3DevFirstNonEmpty(summary, desc), 260), + Author: strings.Join(authors, ", "), + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "slug": slug, + "name": name, + "version": ver, + "averageDailyUsers": users, + }}, + }, true +} + +func wave3DevExtractTitleBounded(rawHTML string) string { + if len(rawHTML) <= 65536 { + return extractTitleLinearQuick(rawHTML) + } + idx := indexFoldASCIIExtract(rawHTML, " len(rawHTML) { + end = len(rawHTML) + } + return extractTitleLinearQuick(rawHTML[idx:end]) +} + +func wave3DevExtractMetaBounded(rawHTML, key string) string { + if val := extractMetaContentDeclHTML(rawHTML, key); val != "" { + return val + } + if len(rawHTML) <= 120_000 { + return "" + } + searchFrom := 119_000 + lowerKey := strings.ToLower(key) + for tries := 0; tries < 4 && searchFrom < len(rawHTML); tries++ { + rel := indexFoldASCIIExtract(rawHTML[searchFrom:], lowerKey) + if rel < 0 { + break + } + abs := searchFrom + rel + start := abs - 512 + if start < 0 { + start = 0 + } + if metaOpen := strings.LastIndexByte(rawHTML[start:abs+1], '<'); metaOpen >= 0 { + start += metaOpen + } + end := abs + 1024 + if end > len(rawHTML) { + end = len(rawHTML) + } + if val := extractMetaContentDeclHTML(rawHTML[start:end], key); val != "" { + return val + } + searchFrom = abs + len(lowerKey) + } + return "" +} + +func wave3DevFindCWSUsersBounded(rawHTML string) string { + searchFrom := 0 + for tries := 0; tries < 8 && searchFrom < len(rawHTML); tries++ { + rel := indexFoldASCIIExtract(rawHTML[searchFrom:], " users") + if rel < 0 { + break + } + idx := searchFrom + rel + wStart := idx - 24 + if wStart < 0 { + wStart = 0 + } + wEnd := idx + 12 + if wEnd > len(rawHTML) { + wEnd = len(rawHTML) + } + if um := wave3DevRxCWSUsers.FindStringSubmatch(rawHTML[wStart:wEnd]); len(um) >= 2 { + return SanitizeSchemaPlainField(um[1], 32) + } + searchFrom = idx + 6 + } + return "" +} + +func wave3DevFindCWSVersionBounded(rawHTML string) string { + searchFrom := 0 + for tries := 0; tries < 512 && searchFrom < len(rawHTML); tries++ { + rel := indexFoldASCIIExtract(rawHTML[searchFrom:], "version") + if rel < 0 { + break + } + idx := searchFrom + rel + after := idx + 7 + for after < len(rawHTML) && after < idx+24 && (rawHTML[after] == ' ' || rawHTML[after] == '\t' || rawHTML[after] == '\n' || rawHTML[after] == '\r') { + after++ + } + if after+1 < len(rawHTML) && rawHTML[after] == '<' && rawHTML[after+1] == '/' { + wEnd := idx + 128 + if wEnd > len(rawHTML) { + wEnd = len(rawHTML) + } + if vm := wave3DevRxCWSVersion.FindStringSubmatch(rawHTML[idx:wEnd]); len(vm) >= 2 { + if ver := wave3DevValidVersion(vm[1]); ver != "" { + return ver + } + } + } + searchFrom = idx + 7 + } + return "" +} + +func wave3DevExtractCWSHTML(rawHTML, _ string, baseURL, extractorID string) *DeclarativePostFetchResult { + // CWS HTML places , <h1>, and AF_initDataCallback past byte 262144 (~844 KB - 1.63 MB total). + // Search using bounded SIMD-accelerated index scans without full-doc lowercasing or full-doc regexes. + ogTitle := SanitizeSchemaPlainField(wave3DevExtractMetaBounded(rawHTML, "og:title"), 240) + ogDesc := SanitizeSchemaPlainField(wave3DevExtractMetaBounded(rawHTML, "og:description"), 600) + if ogDesc == "" { + ogDesc = SanitizeSchemaPlainField(wave3DevExtractMetaBounded(rawHTML, "description"), 600) + } + rawTitle := SanitizeSchemaPlainField(wave3DevExtractTitleBounded(rawHTML), 240) + rawTitle = strings.TrimSpace(strings.TrimSuffix(rawTitle, "- Chrome Web Store")) + var h1Text string + if idx := indexFoldASCIIExtract(rawHTML, "<h1"); idx >= 0 { + end := strings.IndexByte(rawHTML[idx:], '>') + if end > 0 { + rest := rawHTML[idx+end+1:] + if closeIdx := indexFoldASCIIExtract(rest, "</h1>"); closeIdx > 0 && closeIdx < 1024 { + h1Text = SanitizeSchemaPlainField(wave3DevCleanText(rest[:closeIdx]), 240) + } + } + } + title := wave3DevFirstNonEmpty(h1Text, ogTitle, rawTitle) + if title == "" || wave3DevIsGenericTitle(title) || wave3DevIsNegativeTitle(title) { + return nil + } + + users := wave3DevFindCWSUsersBounded(rawHTML) + ver := wave3DevFindCWSVersionBounded(rawHTML) + + var bullets []string + bullets = append(bullets, "- **Store**: Chrome Web Store") + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if users != "" { + bullets = append(bullets, "- **Users**: "+users+"+") + } + if canonical := SanitizeSchemaHTTPSURL(baseURL, baseURL); canonical != "" { + bullets = append(bullets, "- **URL**: "+canonical) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if ogDesc != "" { + blocks = append(blocks, "## Overview\n\n"+ogDesc) + } + rec := map[string]any{"name": title, "store": "chrome-web-store"} + if ver != "" { + rec["version"] = ver + } + if users != "" { + rec["users"] = users + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: ogDesc, + Markdown: strings.Join(blocks, "\n\n"), + Records: []map[string]any{rec}, + } +} + +// ── #335 Artifact Hub ──────────────────────────────────────────────────────────────────────────── + +func wave3DevFormatArtifactHubJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + pkgID := wave3DevPlain(obj["package_id"], 80) + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + if pkgID == "" || name == "" { + return nil, false + } + display := wave3DevFirstNonEmpty(wave3DevPlain(obj["display_name"], 180), name) + ver := wave3DevValidVersion(wave3DevStringVal(obj["version"])) + appVer := wave3DevValidVersion(wave3DevStringVal(obj["app_version"])) + cat := wave3DevPlain(obj["category_display_name"], 80) + desc := wave3DevPlain(obj["description"], 1200) + lic := wave3DevPlain(obj["license"], 64) + stars := wave3DevPlain(obj["stars"], 24) + homeURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["home_url"]), origURL) + var repoName, orgName, repoURL string + if rm := wave3DevNestedMap(obj, "repository"); rm != nil { + repoName = wave3DevPlain(rm["name"], 120) + orgName = wave3DevFirstNonEmpty(wave3DevPlain(rm["organization_display_name"], 120), wave3DevPlain(rm["user_alias"], 120)) + repoURL = SanitizeSchemaHTTPSURL(wave3DevStringVal(rm["url"]), origURL) + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, homeURL, origURL) + wave3DevAddLink(&links, seen, repoURL, origURL) + if lArr, isL := obj["links"].([]any); isL { + for _, rl := range lArr { + if lm, okLM := rl.(map[string]any); okLM { + wave3DevAddLink(&links, seen, wave3DevStringVal(lm["url"]), origURL) + } + } + } + + var bullets []string + bullets = append(bullets, "- **Package**: `"+name+"` (`"+pkgID+"`)") + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if appVer != "" { + bullets = append(bullets, "- **App Version**: `"+appVer+"`") + } + if cat != "" { + bullets = append(bullets, "- **Category**: "+cat) + } + if repoName != "" { + rLabel := repoName + if orgName != "" { + rLabel = orgName + " / " + repoName + } + bullets = append(bullets, "- **Repository**: "+rLabel) + } + if lic != "" { + bullets = append(bullets, "- **License**: "+lic) + } + if stars != "" { + bullets = append(bullets, "- **Stars**: "+stars) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(display), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + if readme := SanitizeSchemaPlainField(wave3DevStringVal(obj["readme"]), 2000); readme != "" { + blocks = append(blocks, "## README Excerpt\n\n"+readme) + } + return &DeclarativeFormattedDoc{ + Title: display, + Description: sliceRunesMax(desc, 260), + Author: orgName, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "packageId": pkgID, + "name": name, + "version": ver, + "appVersion": appVer, + "repository": repoName, + }}, + }, true +} + +func wave3DevExtractArtifactHubHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + title := wave3DevExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3DevExtractMetaDesc(rawHTML) + if desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), desc} + if doc != nil { + if md := wave3DevFragToMD(doc.HTML("main, article"), baseURL); md != "" { + blocks = append(blocks, md) + } + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: sliceRunesMax(desc, 260), + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #336 Ansible Galaxy & Puppet Forge ─────────────────────────────────────────────────────────── + +func wave3DevFormatAnsibleGalaxyJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + ns := wave3DevValidPkgIdent(wave3DevStringVal(obj["namespace"])) + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + if ns == "" || name == "" { + return nil, false + } + var hv string + if hm := wave3DevNestedMap(obj, "highest_version"); hm != nil { + hv = wave3DevValidVersion(wave3DevStringVal(hm["version"])) + } + if hv == "" { + hv = wave3DevValidVersion(wave3DevStringVal(obj["version"])) + } + dlCount := wave3DevPlain(obj["download_count"], 32) + created := wave3DevNormalizeISODate(wave3DevStringVal(obj["created_at"])) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["updated_at"])) + var desc, lic string + if mdObj := wave3DevNestedMap(obj, "metadata"); mdObj != nil { + desc = wave3DevPlain(mdObj["description"], 1200) + if lArr, isL := mdObj["license"].([]any); isL && len(lArr) > 0 { + lic = wave3DevPlain(lArr[0], 64) + } + } + + fqcn := ns + "." + name + var bullets []string + bullets = append(bullets, "- **Collection**: `"+fqcn+"`") + if hv != "" { + bullets = append(bullets, "- **Version**: `"+hv+"`") + } + if dlCount != "" { + bullets = append(bullets, "- **Downloads**: "+dlCount) + } + if dep, okD := obj["deprecated"].(bool); okD { + bullets = append(bullets, fmt.Sprintf("- **Deprecated**: %t", dep)) + } + if lic != "" { + bullets = append(bullets, "- **License**: "+lic) + } + if created != "" { + bullets = append(bullets, "- **Created**: "+created) + } + if updated != "" { + bullets = append(bullets, "- **Updated**: "+updated) + } + + blocks := []string{"# " + fqcn, strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, origURL, origURL) + return &DeclarativeFormattedDoc{ + Title: fqcn, + Description: sliceRunesMax(desc, 260), + Author: ns, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "namespace": ns, + "name": name, + "collection": fqcn, + "version": hv, + "downloads": dlCount, + }}, + }, true +} + +func wave3DevFormatPuppetForgeJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + slug := wave3DevValidPkgIdent(wave3DevStringVal(obj["slug"])) + if name == "" && slug == "" { + return nil, false + } + var owner string + if om := wave3DevNestedMap(obj, "owner"); om != nil { + owner = wave3DevPlain(om["username"], 120) + } + title := wave3DevFirstNonEmpty(slug, name) + if owner != "" && name != "" && !strings.Contains(title, "-") && !strings.Contains(title, "/") { + title = owner + "-" + name + } + downloads := wave3DevPlain(obj["downloads"], 32) + score := wave3DevPlain(obj["feedback_score"], 24) + endorsement := wave3DevPlain(obj["endorsement"], 64) + updated := wave3DevNormalizeISODate(wave3DevStringVal(obj["updated_at"])) + + var ver, summary, lic, srcURL string + if cr := wave3DevNestedMap(obj, "current_release"); cr != nil { + ver = wave3DevValidVersion(wave3DevStringVal(cr["version"])) + if updated == "" { + updated = wave3DevNormalizeISODate(wave3DevStringVal(cr["created_at"])) + } + if mm := wave3DevNestedMap(cr, "metadata"); mm != nil { + summary = wave3DevPlain(mm["summary"], 1200) + lic = wave3DevPlain(mm["license"], 64) + srcURL = SanitizeSchemaHTTPSURL(wave3DevStringVal(mm["source"]), origURL) + } + } + + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, wave3DevStringVal(obj["homepage_url"]), origURL) + wave3DevAddLink(&links, seen, srcURL, origURL) + + var bullets []string + bullets = append(bullets, "- **Module**: `"+title+"`") + if owner != "" { + bullets = append(bullets, "- **Owner**: "+owner) + } + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if endorsement != "" { + bullets = append(bullets, "- **Endorsement**: "+endorsement) + } + if sup, okS := obj["supported"].(bool); okS { + bullets = append(bullets, fmt.Sprintf("- **Supported**: %t", sup)) + } + if downloads != "" { + bullets = append(bullets, "- **Downloads**: "+downloads) + } + if score != "" { + bullets = append(bullets, "- **Feedback Score**: "+score) + } + if lic != "" { + bullets = append(bullets, "- **License**: "+lic) + } + if updated != "" { + bullets = append(bullets, "- **Updated**: "+updated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if summary != "" { + blocks = append(blocks, "## Summary\n\n"+summary) + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(summary, 260), + Author: owner, + PublishedTime: updated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "slug": title, + "version": ver, + "downloads": downloads, + "license": lic, + }}, + }, true +} + +func wave3DevExtractPuppetForgeHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if nd := wave3DevExtractNextDataObj(rawHTML); nd != nil { + if mod := wave3DevNestedMap(nd, "props", "pageProps", "module"); mod != nil { + if doc, ok := wave3DevFormatPuppetForgeJSON(mod, baseURL); ok && doc != nil { + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: doc.Title, + Description: doc.Description, + Author: doc.Author, + PublishedTime: doc.PublishedTime, + Markdown: doc.Markdown, + Links: doc.Links, + Records: doc.Records, + } + } + } + } + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + desc := wave3DevExtractMetaDesc(rawHTML) + if title == "" || desc == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + desc, + } +} + +// ── #337 APIs.guru (metrics.json, <provider>.json & bounded Range list.json) ───────────────────── + +func wave3DevFormatAPIsGuruJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) || len(obj) == 0 { + return nil, false + } + // 1. metrics.json + if obj["numSpecs"] != nil || obj["numAPIs"] != nil { + numSpecs := wave3DevPlain(obj["numSpecs"], 24) + numAPIs := wave3DevPlain(obj["numAPIs"], 24) + numEndpoints := wave3DevPlain(obj["numEndpoints"], 24) + var bullets []string + if numSpecs != "" { + bullets = append(bullets, "- **OpenAPI Specs**: "+numSpecs) + } + if numAPIs != "" { + bullets = append(bullets, "- **Unique APIs**: "+numAPIs) + } + if numEndpoints != "" { + bullets = append(bullets, "- **Endpoints**: "+numEndpoints) + } + if stars := wave3DevPlain(obj["stars"], 24); stars != "" { + bullets = append(bullets, "- **GitHub Stars**: "+stars) + } + if len(bullets) == 0 { + return nil, false + } + title := "APIs.guru Directory Metrics" + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + title + "\n\n" + strings.Join(bullets, "\n"), + Records: []map[string]any{{ + "numSpecs": numSpecs, + "numAPIs": numAPIs, + "numEndpoints": numEndpoints, + }}, + }, true + } + + // 2. <provider>.json (`apis: { ... }`) + apisMap := wave3DevNestedMap(obj, "apis") + if len(apisMap) == 0 { + return nil, false + } + keys := make([]string, 0, len(apisMap)) + for k := range apisMap { + keys = append(keys, k) + } + sort.Strings(keys) + + var rows [][]string + var recs []map[string]any + var links []string + seen := make(map[string]bool) + var firstTitle string + for _, ak := range keys { + if len(recs) >= wave3DevMaxRecords { + break + } + entry, okE := apisMap[ak].(map[string]any) + if !okE { + continue + } + info := wave3DevNestedMap(entry, "info") + apiTitle := ak + var ver, prov string + if info != nil { + apiTitle = wave3DevFirstNonEmpty(wave3DevPlain(info["title"], 140), ak) + ver = wave3DevPlain(info["version"], 48) + prov = wave3DevPlain(info["x-providerName"], 80) + } + if firstTitle == "" { + firstTitle = wave3DevFirstNonEmpty(prov, apiTitle) + } + added := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(entry["added"])), "-") + swURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(entry["swaggerUrl"]), origURL) + wave3DevAddLink(&links, seen, swURL, origURL) + rows = append(rows, []string{ + escapeDeclMarkdownBrackets(ak), + escapeDeclMarkdownBrackets(apiTitle), + wave3DevFirstNonEmpty(ver, "-"), + added, + }) + rec := map[string]any{"apiKey": ak, "title": apiTitle, "version": ver} + if swURL != "" { + rec["swaggerUrl"] = swURL + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + title := "APIs.guru: " + firstTitle + md := "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"API Key", "Title", "Version", "Added"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: recs, + Total: wave3DevIntPtr(len(apisMap)), + }, true +} + +// wave3DevFormatAPIsGuruListBounded scans Range-truncated list.json linearly up to 25 complete top-level provider entries. +func wave3DevFormatAPIsGuruListBounded(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + s := strings.TrimSpace(strings.TrimPrefix(rawBody, "\xEF\xBB\xBF")) + if len(s) < 2 || s[0] != '{' { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + i := 1 + n := len(s) + skipWS := func() { + for i < n && (s[i] == ' ' || s[i] == '\t' || s[i] == '\r' || s[i] == '\n' || s[i] == ',') { + i++ + } + } + parseJSONStringEnd := func(start int) (string, int, bool) { + if start >= n || s[start] != '"' { + return "", start, false + } + j := start + 1 + for j < n { + c := s[j] + if c == '\\' { + j += 2 + continue + } + if c == '"' { + var out string + if err := json.Unmarshal([]byte(s[start:j+1]), &out); err != nil { + return "", j + 1, false + } + return out, j + 1, true + } + j++ + } + return "", n, false + } + + for i < n && len(recs) < wave3DevMaxRecords { + skipWS() + if i >= n || s[i] == '}' { + break + } + if s[i] != '"' { + break + } + apiKey, afterKey, okKey := parseJSONStringEnd(i) + i = afterKey + if !okKey { + break + } + skipWS() + if i >= n || s[i] != ':' { + break + } + i++ + for i < n && (s[i] == ' ' || s[i] == '\t' || s[i] == '\r' || s[i] == '\n') { + i++ + } + if i >= n || s[i] != '{' { + break + } + valStart := i + depth := 0 + inStr := false + complete := false + for i < n { + c := s[i] + if inStr { + if c == '\\' { + i += 2 + continue + } + if c == '"' { + inStr = false + } + i++ + continue + } + switch c { + case '"': + inStr = true + case '{': + depth++ + case '}': + depth-- + if depth == 0 { + i++ + complete = true + } + } + if complete { + break + } + i++ + } + if !complete { + // Truncated trailing entry at Range boundary — stop cleanly without failing. + break + } + parsedEntry, okDec := decodeJSONWithNumbers([]byte(s[valStart:i])) + if !okDec { + continue + } + entry, okMap := parsedEntry.(map[string]any) + if !okMap { + continue + } + preferred := wave3DevPlain(entry["preferred"], 48) + var apiTitle, swURL string + if versMap := wave3DevNestedMap(entry, "versions"); versMap != nil { + var vObj map[string]any + if preferred != "" { + vObj = wave3DevNestedMap(versMap, preferred) + } + if vObj == nil { + for _, rv := range versMap { + if vm, okVM := rv.(map[string]any); okVM { + vObj = vm + break + } + } + } + if vObj != nil { + if info := wave3DevNestedMap(vObj, "info"); info != nil { + apiTitle = wave3DevPlain(info["title"], 140) + } + swURL = SanitizeSchemaHTTPSURL(wave3DevStringVal(vObj["swaggerUrl"]), origURL) + wave3DevAddLink(&links, seen, swURL, origURL) + } + } + apiTitle = wave3DevFirstNonEmpty(apiTitle, apiKey) + rows = append(rows, []string{ + escapeDeclMarkdownBrackets(apiKey), + escapeDeclMarkdownBrackets(apiTitle), + wave3DevFirstNonEmpty(preferred, "-"), + }) + rec := map[string]any{"apiKey": apiKey, "title": apiTitle, "preferred": preferred} + if swURL != "" { + rec["swaggerUrl"] = swURL + } + recs = append(recs, rec) + } + + skipWS() + reachedClose := i < n && s[i] == '}' + if len(recs) == 0 { + if i >= n { + title := "APIs.guru Directory Index (Bounded Sample)" + md := "# " + title + "\n\n- **Returned**: 0\n- **Truncated**: true\n\nNo complete API entries fit within the bounded prefix." + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Returned: wave3DevIntPtr(0), + Truncated: wave3DevBoolPtr(true), + }, true + } + return nil, false + } + isTruncated := !reachedClose + nextCur := "" + if isTruncated { + nextCur = strconv.Itoa(len(recs)) + } + title := "APIs.guru Directory Index (Bounded Sample)" + md := "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"API Key", "Title", "Preferred"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: recs, + Returned: wave3DevIntPtr(len(recs)), + Truncated: wave3DevBoolPtr(isTruncated), + NextCursor: nextCur, + }, true +} + +func wave3DevExtractAPIsGuruHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + title := wave3DevExtractTitle(doc, rawHTML) + desc := wave3DevExtractMetaDesc(rawHTML) + if title == "" || desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), desc} + if doc != nil { + if md := wave3DevFragToMD(doc.HTML("main, article"), baseURL); md != "" { + blocks = append(blocks, md) + } + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #338 endoflife.date ────────────────────────────────────────────────────────────────────────── + +func wave3DevFormatEOLExtract(v any) string { + switch tv := v.(type) { + case bool: + if tv { + return "EOL (true)" + } + return "Supported (false)" + default: + s := wave3DevStringVal(tv) + if iso := wave3DevNormalizeISODate(s); iso != "" { + return iso + } + return wave3DevPlain(s, 32) + } +} + +func wave3DevFormatEndOfLifeJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + // 1. Legacy endpoint: /api/<product>.json -> array of release cycle objects + if arr, isArr := parsed.([]any); isArr { + if len(arr) == 0 { + return nil, false + } + var rows [][]string + var recs []map[string]any + for i, rc := range arr { + if i >= wave3DevMaxRecords { + break + } + cm, okCM := rc.(map[string]any) + if !okCM { + continue + } + cycle := wave3DevPlain(cm["cycle"], 48) + if cycle == "" { + continue + } + relDate := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(cm["releaseDate"])), "-") + eol := wave3DevFirstNonEmpty(wave3DevFormatEOLExtract(cm["eol"]), "-") + latest := wave3DevFirstNonEmpty(wave3DevValidVersion(wave3DevStringVal(cm["latest"])), wave3DevPlain(cm["latest"], 48), "-") + lts := wave3DevFirstNonEmpty(wave3DevFormatEOLExtract(cm["lts"]), "-") + rows = append(rows, []string{cycle, relDate, eol, latest, lts}) + recs = append(recs, map[string]any{ + "cycle": cycle, + "releaseDate": relDate, + "eol": eol, + "latest": latest, + }) + } + if len(recs) == 0 { + return nil, false + } + prod := ExtractSlugTitleFromURL(origURL) + prod = strings.TrimSuffix(prod, ".json") + title := "endoflife.date: " + wave3DevFirstNonEmpty(prod, "Product Lifecycle") + md := "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"Cycle", "Release Date", "EOL", "Latest", "LTS"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Records: recs, + Total: wave3DevIntPtr(len(arr)), + }, true + } + + // 2. v1 endpoint: /api/v1/products/<product>/ + obj, okObj := parsed.(map[string]any) + if !okObj || wave3DevIsGenericJSONError(obj) { + return nil, false + } + res := wave3DevNestedMap(obj, "result") + if res == nil { + return nil, false + } + name := wave3DevPlain(res["name"], 120) + label := wave3DevFirstNonEmpty(wave3DevPlain(res["label"], 160), name) + if label == "" { + return nil, false + } + cat := wave3DevPlain(res["category"], 64) + rels, isR := res["releases"].([]any) + if !isR || len(rels) == 0 { + return nil, false + } + + var rows [][]string + var recs []map[string]any + for i, rr := range rels { + if i >= wave3DevMaxRecords { + break + } + rm, okRM := rr.(map[string]any) + if !okRM { + continue + } + rName := wave3DevPlain(rm["name"], 48) + if rName == "" { + continue + } + relDate := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(rm["releaseDate"])), "-") + eolFrom := wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(rm["eolFrom"])), "-") + var latestVer string + if lm := wave3DevNestedMap(rm, "latest"); lm != nil { + latestVer = wave3DevFirstNonEmpty(wave3DevValidVersion(wave3DevStringVal(lm["name"])), wave3DevPlain(lm["name"], 48)) + } + isLts := "-" + if b, okB := rm["isLts"].(bool); okB && b { + isLts = "LTS" + } + rows = append(rows, []string{rName, relDate, eolFrom, wave3DevFirstNonEmpty(latestVer, "-"), isLts}) + recs = append(recs, map[string]any{ + "cycle": rName, + "releaseDate": relDate, + "eolFrom": eolFrom, + "latest": latestVer, + }) + } + if len(recs) == 0 { + return nil, false + } + var bullets []string + if name != "" { + bullets = append(bullets, "- **Product**: `"+name+"`") + } + if cat != "" { + bullets = append(bullets, "- **Category**: "+cat) + } + title := label + " Lifecycle (endoflife.date)" + md := "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + strings.Join(bullets, "\n") + "\n\n" + formatDeclarativeGFMTable([]string{"Cycle", "Release Date", "EOL From", "Latest", "LTS"}, rows) + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, wave3DevStringVal(res["link"]), origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: recs, + Total: wave3DevIntPtr(len(rels)), + }, true +} + +func wave3DevExtractEndOfLifeHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3DevExtractMetaDesc(rawHTML) + tblMD, _ := wave3DevFormatTableFromHTML(doc) + if tblMD == "" && desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if tblMD != "" { + blocks = append(blocks, tblMD) + } else if md := wave3DevFragToMD(doc.HTML("main, article"), baseURL); md != "" { + blocks = append(blocks, md) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #339 Web Compatibility Data (webstatus.dev, MDN BCD, CanIUse JSON, web-features, caniuse HTML) ─ + +func wave3DevFormatWebCompatJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) || len(obj) == 0 { + return nil, false + } + + // (a) api.webstatus.dev/v1/features/<id> + if obj["feature_id"] != nil && obj["name"] != nil { + fid := wave3DevValidPkgIdent(wave3DevStringVal(obj["feature_id"])) + name := wave3DevPlain(obj["name"], 180) + if fid == "" || name == "" { + return nil, false + } + var baseStatus, lowDate, highDate string + if bm := wave3DevNestedMap(obj, "baseline"); bm != nil { + baseStatus = wave3DevPlain(bm["status"], 48) + lowDate = wave3DevNormalizeISODate(wave3DevStringVal(bm["low_date"])) + highDate = wave3DevNormalizeISODate(wave3DevStringVal(bm["high_date"])) + } + var rows [][]string + if bi := wave3DevNestedMap(obj, "browser_implementations"); bi != nil { + bNames := make([]string, 0, len(bi)) + for bk := range bi { + bNames = append(bNames, bk) + } + sort.Strings(bNames) + for _, bk := range bNames { + if bm, okBM := bi[bk].(map[string]any); okBM { + rows = append(rows, []string{ + bk, + wave3DevFirstNonEmpty(wave3DevPlain(bm["status"], 48), "-"), + wave3DevFirstNonEmpty(wave3DevPlain(bm["version"], 32), "-"), + wave3DevFirstNonEmpty(wave3DevNormalizeISODate(wave3DevStringVal(bm["date"])), "-"), + }) + } + } + } + var bullets []string + bullets = append(bullets, "- **Feature ID**: `"+fid+"`") + if baseStatus != "" { + bullets = append(bullets, "- **Baseline Status**: `"+baseStatus+"`") + } + if lowDate != "" { + bullets = append(bullets, "- **Baseline Newly Available**: "+lowDate) + } + if highDate != "" { + bullets = append(bullets, "- **Baseline Widely Available**: "+highDate) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(name), strings.Join(bullets, "\n")} + if len(rows) > 0 { + blocks = append(blocks, "## Browser Implementations\n\n"+formatDeclarativeGFMTable([]string{"Browser", "Status", "Version", "Date"}, rows)) + } + var links []string + seen := make(map[string]bool) + if sp := wave3DevNestedMap(obj, "spec"); sp != nil { + if slArr, okSL := sp["links"].([]any); okSL { + for _, rsl := range slArr { + if sm, okSM := rsl.(map[string]any); okSM { + wave3DevAddLink(&links, seen, wave3DevStringVal(sm["link"]), origURL) + } + } + } + } + return &DeclarativeFormattedDoc{ + Title: name + " (Web Platform Status)", + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "featureId": fid, + "name": name, + "baseline": baseStatus, + }}, + }, true + } + + // (b) web-features compiled data.json (`features: { ... }`) + if featMap := wave3DevNestedMap(obj, "features"); len(featMap) > 0 { + keys := make([]string, 0, len(featMap)) + for k := range featMap { + keys = append(keys, k) + } + sort.Strings(keys) + var rows [][]string + var recs []map[string]any + for _, fk := range keys { + if len(recs) >= wave3DevMaxRecords { + break + } + fm, okFM := featMap[fk].(map[string]any) + if !okFM { + continue + } + fname := wave3DevFirstNonEmpty(wave3DevPlain(fm["name"], 120), fk) + var baseStr string + if st := wave3DevNestedMap(fm, "status"); st != nil { + baseStr = wave3DevPlain(st["baseline"], 32) + } + desc := wave3DevFirstNonEmpty(wave3DevPlain(fm["description"], 160), "-") + rows = append(rows, []string{fk, escapeDeclMarkdownBrackets(fname), wave3DevFirstNonEmpty(baseStr, "-"), escapeDeclMarkdownBrackets(desc)}) + recs = append(recs, map[string]any{"featureId": fk, "name": fname, "baseline": baseStr}) + } + if len(recs) == 0 { + return nil, false + } + title := "web-features Baseline Dataset" + md := "# " + title + "\n\n" + formatDeclarativeGFMTable([]string{"ID", "Feature", "Baseline", "Description"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Records: recs, + Total: wave3DevIntPtr(len(featMap)), + }, true + } + + // (c) Fyrd/caniuse feature JSON (`title` + `stats` + `status`) + if obj["title"] != nil && obj["stats"] != nil { + title := wave3DevPlain(obj["title"], 200) + if title == "" { + return nil, false + } + desc := wave3DevPlain(obj["description"], 1000) + spec := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["spec"]), origURL) + status := wave3DevPlain(obj["status"], 48) + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, spec, origURL) + + var rows [][]string + if stats := wave3DevNestedMap(obj, "stats"); stats != nil { + for _, b := range []string{"chrome", "edge", "firefox", "safari", "ios_saf", "and_chr", "and_ff"} { + if bm := wave3DevNestedMap(stats, b); bm != nil { + var firstFull string + vers := make([]string, 0, len(bm)) + for vk := range bm { + vers = append(vers, vk) + } + sort.Strings(vers) + for _, vk := range vers { + if strings.HasPrefix(wave3DevStringVal(bm[vk]), "y") { + firstFull = vk + break + } + } + if firstFull != "" { + rows = append(rows, []string{b, "Supported (" + firstFull + "+)"}) + } + } + } + } + var bullets []string + if status != "" { + bullets = append(bullets, "- **Spec Status**: `"+status+"`") + } + if spec != "" { + bullets = append(bullets, "- **Specification**: "+spec) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(rows) > 0 { + blocks = append(blocks, "## Browser Support Summary\n\n"+formatDeclarativeGFMTable([]string{"Browser", "Support"}, rows)) + } + return &DeclarativeFormattedDoc{ + Title: title + " (Can I Use)", + Description: sliceRunesMax(desc, 260), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{"title": title, "status": status}}, + }, true + } + + // (d) @mdn/browser-compat-data recursive `__compat` walk + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + var walkBCD func(path string, node map[string]any, depth int) + walkBCD = func(path string, node map[string]any, depth int) { + if depth > 6 || len(recs) >= wave3DevMaxRecords || node == nil { + return + } + if compat := wave3DevNestedMap(node, "__compat"); compat != nil { + mdnURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(compat["mdn_url"]), origURL) + specURL := SanitizeSchemaHTTPSURL(wave3DevStringVal(compat["spec_url"]), origURL) + wave3DevAddLink(&links, seen, mdnURL, origURL) + wave3DevAddLink(&links, seen, specURL, origURL) + sup := wave3DevNestedMap(compat, "support") + browserSummary := func(bk string) string { + if sup == nil { + return "-" + } + var bObj map[string]any + switch tv := sup[bk].(type) { + case map[string]any: + bObj = tv + case []any: + if len(tv) > 0 { + bObj, _ = tv[0].(map[string]any) + } + } + if bObj == nil { + return "-" + } + if va := wave3DevStringVal(bObj["version_added"]); va != "" { + return va + } + return "-" + } + chromeV := browserSummary("chrome") + ffV := browserSummary("firefox") + safariV := browserSummary("safari") + rows = append(rows, []string{escapeDeclMarkdownBrackets(path), chromeV, ffV, safariV}) + rec := map[string]any{"feature": path, "chrome": chromeV, "firefox": ffV, "safari": safariV} + if mdnURL != "" { + rec["mdnUrl"] = mdnURL + } + recs = append(recs, rec) + } + keys := make([]string, 0, len(node)) + for k := range node { + if k != "__compat" && k != "__meta" { + keys = append(keys, k) + } + } + sort.Strings(keys) + for _, k := range keys { + if len(recs) >= wave3DevMaxRecords { + break + } + if sub, okSub := node[k].(map[string]any); okSub { + nextPath := k + if path != "" { + nextPath = path + "." + k + } + walkBCD(nextPath, sub, depth+1) + } + } + } + walkBCD("", obj, 0) + if len(recs) == 0 { + return nil, false + } + slug := strings.TrimSuffix(ExtractSlugTitleFromURL(origURL), ".json") + title := "MDN Browser Compat Data: " + wave3DevFirstNonEmpty(slug, "Feature") + md := "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"Feature Path", "Chrome", "Firefox", "Safari"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: recs, + }, true +} + +func wave3DevExtractCanIUseHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3DevFirstNonEmpty( + SanitizeSchemaPlainField(wave3DevCleanText(doc.Text(".feature-description")), 800), + wave3DevExtractMetaDesc(rawHTML), + ) + supportMD := wave3DevFragToMD(doc.HTML(".support-list, .ciu-support-list, main"), baseURL) + if desc == "" && supportMD == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if supportMD != "" { + blocks = append(blocks, supportMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: sliceRunesMax(desc, 260), + Markdown: strings.Join(blocks, "\n\n"), + } +} + +// ── #340 Bundlephobia & Packagephobia ──────────────────────────────────────────────────────────── + +func wave3DevFormatBundlephobiaJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + if name == "" || (obj["size"] == nil && obj["gzip"] == nil) { + return nil, false + } + ver := wave3DevValidVersion(wave3DevStringVal(obj["version"])) + desc := wave3DevPlain(obj["description"], 800) + repo := SanitizeSchemaHTTPSURL(wave3DevStringVal(obj["repository"]), origURL) + sizeF, okSize := wave3DevFloatVal(obj["size"]) + gzipF, okGzip := wave3DevFloatVal(obj["gzip"]) + depCount := wave3DevPlain(obj["dependencyCount"], 24) + + title := name + if ver != "" { + title += "@" + ver + } + title += " Bundle Size (Bundlephobia)" + + var bullets []string + bullets = append(bullets, "- **Package**: `"+name+"`") + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + if okSize { + bullets = append(bullets, "- **Minified Size**: "+wave3DevFormatBytes(sizeF)) + } + if okGzip { + bullets = append(bullets, "- **Minified + Gzipped Size**: "+wave3DevFormatBytes(gzipF)) + } + if depCount != "" { + bullets = append(bullets, "- **Dependencies**: "+depCount) + } + if esm, okE := obj["hasJSModule"].(bool); okE { + bullets = append(bullets, fmt.Sprintf("- **Tree-shakeable ES Module**: %t", esm)) + } + if repo != "" { + bullets = append(bullets, "- **Repository**: "+repo) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, repo, origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(desc, 260), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "name": name, + "version": ver, + "size": wave3DevPlain(obj["size"], 24), + "gzip": wave3DevPlain(obj["gzip"], 24), + "dependencyCount": depCount, + }}, + }, true +} + +func wave3DevFormatPackagephobiaJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3DevIsGenericJSONError(obj) { + return nil, false + } + name := wave3DevValidPkgIdent(wave3DevStringVal(obj["name"])) + if name == "" { + return nil, false + } + inst := wave3DevNestedMap(obj, "install") + pub := wave3DevNestedMap(obj, "publish") + if inst == nil && pub == nil { + return nil, false + } + ver := wave3DevValidVersion(wave3DevStringVal(obj["version"])) + title := name + if ver != "" { + title += "@" + ver + } + title += " Install Size (Packagephobia)" + + var bullets []string + bullets = append(bullets, "- **Package**: `"+name+"`") + if ver != "" { + bullets = append(bullets, "- **Version**: `"+ver+"`") + } + var instBytes, pubBytes string + if inst != nil { + if f, okF := wave3DevFloatVal(inst["bytes"]); okF { + instBytes = wave3DevPlain(inst["bytes"], 24) + bullets = append(bullets, "- **Install Size**: "+wave3DevFormatBytes(f)) + } + } + if pub != nil { + if f, okF := wave3DevFloatVal(pub["bytes"]); okF { + pubBytes = wave3DevPlain(pub["bytes"], 24) + bullets = append(bullets, "- **Publish Size**: "+wave3DevFormatBytes(f)) + } + } + var links []string + seen := make(map[string]bool) + wave3DevAddLink(&links, seen, origURL, origURL) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + strings.Join(bullets, "\n"), + Links: links, + Records: []map[string]any{{ + "name": name, + "version": ver, + "installBytes": instBytes, + "publishBytes": pubBytes, + }}, + }, true +} + +func wave3DevExtractBundlePackagephobiaHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if nd := wave3DevExtractNextDataObj(rawHTML); nd != nil { + if initial := wave3DevNestedMap(nd, "props", "pageProps", "initialResult"); initial != nil { + if doc, ok := wave3DevFormatBundlephobiaJSON(initial, baseURL); ok && doc != nil { + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: doc.Title, + Description: doc.Description, + Markdown: doc.Markdown, + Links: doc.Links, + Records: doc.Records, + } + } + } + } + doc := ParseHTMLDoc(rawHTML, wave3DevMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3DevExtractTitle(doc, rawHTML) + desc := wave3DevExtractMetaDesc(rawHTML) + if title == "" || desc == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + desc, + } +} diff --git a/internal/extract/wave3_dev_infra_test.go b/internal/extract/wave3_dev_infra_test.go new file mode 100644 index 0000000..1bc0bb2 --- /dev/null +++ b/internal/extract/wave3_dev_infra_test.go @@ -0,0 +1,531 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" + "time" +) + +func wave3DevDecodeDoc(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 wave3DevResolveManifest(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 TestWave3DevInfraManifestsAndRouting(t *testing.T) { + catNIDs := []string{ + "bitbucket-cloud", + "sourceforge-launchpad", + "gerrit", + "bugzilla", + "jira-public", + "wordpress-org-plugins", + "vscode-open-vsx", + "browser-addons-amo-cws", + "artifact-hub", + "ansible-puppet-forge", + "apis-guru", + "endoflife-date", + "web-compat-data", + "bundlephobia-packagephobia", + } + + byID := make(map[string]*DeclarativeAdapterManifest) + claimedDomains := make(map[string]string) + for _, id := range catNIDs { + 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 != "developer" { + t.Fatalf("%s.yaml must use category developer, 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 developer/feed manifests + for _, existingID := range []string{"github-gist", "gitlab-forgejo", "npm", "pypi", "crates-io", "osv-ghsa", "google-shopping-feed"} { + 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 N %s overlaps %s domain %q", catOwner, existingID, ld) + } + } + } + + // #329 gerrit: universalEngine, min_interval_ms=2000, kind=text, textMode=gerrit_json + gerrit := byID["gerrit"] + if !gerrit.UniversalEngine || gerrit.MinIntervalMs != 2000 { + t.Fatalf("gerrit must have universalEngine=true and min_interval_ms=2000: %+v", gerrit) + } + if tm, ok := wave3DevResolveManifest(t, gerrit, "https://gerrit.wikimedia.org/r/changes/?q=status:merged&n=2"); !ok || tm.route.Twin.Kind != "text" || tm.route.Extract.TextMode != "gerrit_json" { + t.Fatalf("gerrit /r/changes/ route failed: ok=%v tm=%+v", ok, tm) + } + + // #330 bugzilla: must NOT rewrite /show_bug.cgi -> /rest/bug/ + bz := byID["bugzilla"] + if tm, ok := wave3DevResolveManifest(t, bz, "https://bugzilla.kernel.org/rest/bug/218000"); !ok || tm.route.Extract.JSONMode != "bugzilla_json" { + t.Fatalf("bugzilla /rest/bug/ route failed: ok=%v", ok) + } + if tm, ok := wave3DevResolveManifest(t, bz, "https://bugzilla.mozilla.org/show_bug.cgi?id=1800000"); ok || tm != nil { + t.Fatalf("bugzilla /show_bug.cgi must NOT rewrite to twin route: %+v", tm) + } + + // #331 jira-public: must NOT rewrite /browse/ -> /rest/api/ + jira := byID["jira-public"] + if tm, ok := wave3DevResolveManifest(t, jira, "https://jira.mariadb.org/rest/api/2/issue/MDEV-30000"); !ok || tm.route.Extract.JSONMode != "jira_public_json" { + t.Fatalf("jira /rest/api/2/issue/ route failed: ok=%v", ok) + } + if tm, ok := wave3DevResolveManifest(t, jira, "https://jira.mariadb.org/browse/MDEV-30000"); ok || tm != nil { + t.Fatalf("jira /browse/ must NOT rewrite to twin route: %+v", tm) + } + + // #332 wordpress-org-plugins: must NOT upgrade wordpress.org/plugins/ -> api.wordpress.org + wp := byID["wordpress-org-plugins"] + if tm, ok := wave3DevResolveManifest(t, wp, "https://wordpress.org/plugins/akismet/"); ok || tm != nil { + t.Fatalf("wordpress.org/plugins/ must fall through to htmlRoutes (api.wordpress.org robots disallow): %+v", tm) + } + + // #334 browser-addons-amo-cws: optionalLeadingLocale on AMO + amo := byID["browser-addons-amo-cws"] + if tm, ok := wave3DevResolveManifest(t, amo, "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/"); !ok || tm.FetchURL != "https://addons.mozilla.org/api/v5/addons/addon/ublock-origin/" { + t.Fatalf("AMO locale route failed: ok=%v tm=%+v", ok, tm) + } + + // #336 ansible-puppet-forge: must NOT upgrade forge.puppet.com -> forgeapi.puppet.com + forge := byID["ansible-puppet-forge"] + if tm, ok := wave3DevResolveManifest(t, forge, "https://forge.puppet.com/modules/puppetlabs/stdlib"); ok || tm != nil { + t.Fatalf("forge.puppet.com must fall through to htmlRoutes (forgeapi.puppet.com robots disallow): %+v", tm) + } + if tm, ok := wave3DevResolveManifest(t, forge, "https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/community/general/"); !ok || tm.route.Extract.JSONMode != "ansible_galaxy_json" { + t.Fatalf("galaxy.ansible.com route failed: ok=%v", ok) + } + + // #337 apis-guru: list.json Range + maxBytes=2097152 + textMode=apis_guru_list_bounded + ag := byID["apis-guru"] + if tm, ok := wave3DevResolveManifest(t, ag, "https://api.apis.guru/v2/list.json"); !ok || tm.EffectiveMaxBytes() != 2097152 || tm.route.Twin.Headers["Range"] != "bytes=0-2097151" || tm.route.Extract.TextMode != "apis_guru_list_bounded" { + t.Fatalf("apis-guru list.json route failed: ok=%v tm=%+v", ok, tm) + } + + // #339 web-compat-data: must NOT put raw.githubusercontent.com in domains; caniuse.com must fall through to htmlRoutes + wcd := byID["web-compat-data"] + for _, d := range wcd.Domains { + if d == "raw.githubusercontent.com" || d == "cdn.jsdelivr.net" { + t.Fatalf("web-compat-data must not put %q in domains:", d) + } + } + for _, u := range []string{ + "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/AbortController.json", + "https://raw.githubusercontent.com/Fyrd/caniuse/main/features-json/css-grid.json", + "https://cdn.jsdelivr.net/npm/web-features/data.json", + "https://api.webstatus.dev/v1/features/aborting", + } { + if tm, ok := wave3DevResolveManifest(t, wcd, u); !ok || tm.route.Extract.JSONMode != "web_compat_json" { + t.Fatalf("web-compat-data route failed for %s: ok=%v", u, ok) + } + } + if tm, ok := wave3DevResolveManifest(t, wcd, "https://caniuse.com/css-grid"); ok || tm != nil { + t.Fatalf("caniuse.com/css-grid must NOT resolve to cross-domain twin (Rule 7): %+v", tm) + } + + // #340 bundlephobia-packagephobia: scoped and unscoped npm package routing + bp := byID["bundlephobia-packagephobia"] + if tm, ok := wave3DevResolveManifest(t, bp, "https://bundlephobia.com/package/@babel/core@7.24.0"); !ok || tm.FetchURL != "https://bundlephobia.com/api/size?package=%40babel%2Fcore%407.24.0" { + t.Fatalf("bundlephobia scoped package route failed: ok=%v tm=%+v", ok, tm) + } +} + +func TestWave3DevInfraJSONAndTextFormatters(t *testing.T) { + // Verify all registration and dispatch helpers + registerWave3DevInfraHTMLModes() + RegisterWave3DevInfraHTMLModes() + for _, hm := range []string{ + "bitbucket_html", "sourceforge_launchpad_html", "bugzilla_html", "jira_public_html", + "wordpress_plugin_html", "vscode_marketplace_html", "chrome_web_store_html", "artifact_hub_html", + "puppet_forge_html", "apis_guru_html", "endoflife_html", "caniuse_html", "bundle_packagephobia_html", + } { + if getExternalHTMLModeLazy(hm) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", hm) + } + } + + // #329 gerrit XSSI stripping (`)]}'\r\n` array + object) + gerritArr := ")]}'\r\n[{\"_number\":1010181,\"project\":\"openstack/nova\",\"branch\":\"master\",\"subject\":\"Fix scheduler\",\"status\":\"MERGED\",\"updated\":\"2026-11-12 08:45:19.000000000\"}]" + rawG, ok := FormatWave3DevInfraTextMode("gerrit_json", gerritArr, nil, "https://review.opendev.org/changes/?q=status:merged") + if !ok { + t.Fatalf("gerrit_json CRLF XSSI array failed") + } + gDoc := wave3DevDecodeDoc(t, rawG) + if len(gDoc.Records) != 1 || !strings.Contains(gDoc.Markdown, "openstack/nova") { + t.Fatalf("unexpected gerrit_json output: %+v", gDoc) + } + if _, negOK := FormatWave3DevInfraTextMode("gerrit_json", "<!doctype html><html><title>Gerrit", nil, "https://review.opendev.org/"); negOK { + t.Fatalf("gerrit_json must reject HTML shell") + } + + // #330 bugzilla_json + bzRaw, ok := FormatWave3DevInfraJSONMode("bugzilla_json", []byte(`{"faults":[],"bugs":[{"id":218000,"summary":"shotdown","status":"RESOLVED","resolution":"FIXED","product":"ACPI","component":"BIOS","creation_time":"2023-10-10T10:00:00Z","last_change_time":"2023-10-12T12:00:00Z"}]}`), nil, "https://bugzilla.kernel.org/rest/bug/218000") + if !ok || !strings.Contains(bzRaw, "218000") { + t.Fatalf("bugzilla_json failed: ok=%v raw=%s", ok, bzRaw) + } + if _, negOK := FormatWave3DevInfraJSONMode("bugzilla_json", []byte(`{"code":101,"error":true,"message":"Bug #150000 does not exist."}`), nil, "https://bugs.documentfoundation.org/rest/bug/150000"); negOK { + t.Fatalf("bugzilla_json must reject error=true") + } + + // #332 wordpress_plugin_json + wpRaw, ok := FormatWave3DevInfraJSONMode("wordpress_plugin_json", []byte(`{"name":"Akismet","slug":"akismet","version":"5.3.5","author":"Automattic","active_installs":5000000,"last_updated":"2026-11-01 12:00pm GMT","sections":{"description":"

Anti-spam protection.

"}}`), nil, "https://api.wordpress.org/plugins/info/1.2/") + if !ok || !strings.Contains(wpRaw, "5.3.5") { + t.Fatalf("wordpress_plugin_json failed") + } + + // #336 ansible_galaxy_json & puppet_forge_json + ansRaw, ok := FormatWave3DevInfraJSONMode("ansible_galaxy_json", []byte(`{"namespace":"community","name":"general","deprecated":false,"highest_version":{"version":"10.1.0"},"download_count":123456,"updated_at":"2026-11-10T00:00:00Z"}`), nil, "https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/community/general/") + if !ok || !strings.Contains(ansRaw, "community.general") || !strings.Contains(ansRaw, "10.1.0") { + t.Fatalf("ansible_galaxy_json failed: %s", ansRaw) + } + + // #337 apis_guru_json (metrics + provider) & apis_guru_list_bounded (2 MiB partial JSON) + if mRaw, okM := FormatWave3DevInfraJSONMode("apis_guru_json", []byte(`{"numSpecs":4000,"numAPIs":2500,"numEndpoints":90000,"stars":6500}`), nil, "https://api.apis.guru/v2/metrics.json"); !okM || !strings.Contains(mRaw, "4000") { + t.Fatalf("apis_guru_json metrics failed") + } + if pRaw, okP := FormatWave3DevInfraJSONMode("apis_guru_json", []byte(`{"apis":{"github.com":{"added":"2016-01-01","info":{"title":"GitHub v3 REST API","version":"1.1.4","x-providerName":"github.com"},"swaggerUrl":"https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.json"}}}`), nil, "https://api.apis.guru/v2/github.com.json"); !okP || !strings.Contains(pRaw, "GitHub v3 REST API") { + t.Fatalf("apis_guru_json provider failed") + } + + var listBuf strings.Builder + listBuf.WriteString("{") + for i := 0; i < 40; i++ { + if i > 0 { + listBuf.WriteByte(',') + } + listBuf.WriteString(`"api-` + strings.Repeat("x", 3) + string(rune('a'+i%26)) + `":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"Sample API"},"swaggerUrl":"https://api.apis.guru/v2/specs/sample/1.0.0/openapi.json"}}}`) + } + listBuf.WriteString(`,"cut.example.org":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"TRUNCATED_TAIL`) + start := time.Now() + agRaw, okAG := FormatWave3DevInfraTextMode("apis_guru_list_bounded", listBuf.String(), nil, "https://api.apis.guru/v2/list.json") + if time.Since(start) > 50*time.Millisecond { + t.Fatalf("apis_guru_list_bounded exceeded 50ms budget: %v", time.Since(start)) + } + if !okAG { + t.Fatalf("apis_guru_list_bounded failed") + } + agDoc := wave3DevDecodeDoc(t, agRaw) + if len(agDoc.Records) != wave3DevMaxRecords || strings.Contains(agDoc.Markdown, "TRUNCATED_TAIL") || agDoc.Truncated == nil || !*agDoc.Truncated { + t.Fatalf("apis_guru_list_bounded unexpected output: recs=%d trunc=%v", len(agDoc.Records), agDoc.Truncated) + } + // #337 apis_guru_list_bounded: clean end with < 25 entries -> Truncated=false, NextCursor="" + cleanSmallList := `{"github.com":{"preferred":"1.1.4","versions":{"1.1.4":{"info":{"title":"GitHub v3 REST API"},"swaggerUrl":"https://api.apis.guru/v2/specs/github.com/1.1.4/openapi.json"}}}}` + agSmallRaw, okAGSmall := FormatWave3DevInfraTextMode("apis_guru_list_bounded", cleanSmallList, nil, "https://api.apis.guru/v2/list.json") + if !okAGSmall { + t.Fatalf("apis_guru_list_bounded clean small list failed") + } + agSmallDoc := wave3DevDecodeDoc(t, agSmallRaw) + if len(agSmallDoc.Records) != 1 || agSmallDoc.Truncated == nil || *agSmallDoc.Truncated || agSmallDoc.NextCursor != "" { + t.Fatalf("apis_guru_list_bounded clean small list must report Truncated=false and empty NextCursor, got trunc=%v cursor=%q", agSmallDoc.Truncated, agSmallDoc.NextCursor) + } + // #337 apis_guru_list_bounded: 0-complete-entry truncated prefix -> handled=true with Returned=0 & Truncated=true (not raw fallback) + truncZero := `{"onlypartial.com":{"preferred":"1.0.0","versions":{"1.0.0":{"info":{"title":"TRUNCATED` + agZeroRaw, okAGZero := FormatWave3DevInfraTextMode("apis_guru_list_bounded", truncZero, nil, "https://api.apis.guru/v2/list.json") + if !okAGZero { + t.Fatalf("apis_guru_list_bounded 0-entry truncated prefix must be handled cleanly") + } + agZeroDoc := wave3DevDecodeDoc(t, agZeroRaw) + if len(agZeroDoc.Records) != 0 || agZeroDoc.Returned == nil || *agZeroDoc.Returned != 0 || agZeroDoc.Truncated == nil || !*agZeroDoc.Truncated || !strings.Contains(agZeroDoc.Markdown, "No complete API entries fit") { + t.Fatalf("unexpected 0-entry truncated apis_guru_list_bounded doc: %+v", agZeroDoc) + } + if _, negErrOK := FormatWave3DevInfraTextMode("apis_guru_list_bounded", `{"error":"not found"}`, nil, "https://api.apis.guru/v2/list.json"); negErrOK { + t.Fatalf("apis_guru_list_bounded must still reject complete error JSON objects") + } + + // #338 endoflife_json (legacy array + v1) + eolLegacy, okEOL := FormatWave3DevInfraJSONMode("endoflife_json", []byte(`[{"cycle":"3.13","releaseDate":"2024-10-07","eol":"2029-10-31","latest":"3.13.1","lts":false}]`), nil, "https://endoflife.date/api/python.json") + if !okEOL || !strings.Contains(eolLegacy, "2029-10-31") { + t.Fatalf("endoflife_json legacy array failed") + } + + // #339 web_compat_json (MDN BCD, caniuse JSON, web-features) + bcdRaw, okBCD := FormatWave3DevInfraJSONMode("web_compat_json", []byte(`{"api":{"AbortController":{"__compat":{"mdn_url":"https://developer.mozilla.org/docs/Web/API/AbortController","spec_url":"https://dom.spec.whatwg.org/#interface-abortcontroller","support":{"chrome":{"version_added":"66"},"firefox":{"version_added":"57"},"safari":{"version_added":"12.1"}}}}}}`), nil, "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/AbortController.json") + if !okBCD || !strings.Contains(bcdRaw, "api.AbortController") || !strings.Contains(bcdRaw, "66") { + t.Fatalf("web_compat_json BCD failed: %s", bcdRaw) + } + ciuRaw, okCIU := FormatWave3DevInfraJSONMode("web_compat_json", []byte(`{"title":"CSS Grid Layout","description":"Two-dimensional grid layout","spec":"https://www.w3.org/TR/css-grid-1/","status":"cr","stats":{"chrome":{"57":"y","58":"y"},"firefox":{"52":"y"}}}`), nil, "https://raw.githubusercontent.com/Fyrd/caniuse/main/features-json/css-grid.json") + if !okCIU || !strings.Contains(ciuRaw, "CSS Grid Layout") { + t.Fatalf("web_compat_json caniuse failed: %s", ciuRaw) + } + wfRaw, okWF := FormatWave3DevInfraJSONMode("web_compat_json", []byte(`{"features":{"aborting":{"name":"AbortController","description":"Abort fetch operations","status":{"baseline":"high"}}}}`), nil, "https://cdn.jsdelivr.net/npm/web-features/data.json") + if !okWF || !strings.Contains(wfRaw, "AbortController") { + t.Fatalf("web_compat_json web-features failed: %s", wfRaw) + } + + // #340 packagephobia_json + ppRaw, okPP := FormatWave3DevInfraJSONMode("packagephobia_json", []byte(`{"name":"lodash","version":"4.17.21","install":{"bytes":1412345},"publish":{"bytes":1412345}}`), nil, "https://packagephobia.com/v2/api.json?p=lodash") + if !okPP || !strings.Contains(ppRaw, "lodash@4.17.21") { + t.Fatalf("packagephobia_json failed") + } +} + +func TestWave3DevInfraHTMLAndCWSScan(t *testing.T) { + // #334 Chrome Web Store: 900 KB HTML where , <h1>, and AF_initDataCallback appear past byte 262144 + pad := strings.Repeat("<!-- padding -->", 22000) // ~352 KB + cwsHTML := `<!doctype html><html><head><meta charset="utf-8">` + pad + + `<title>Bitwarden Password Manager - Chrome Web Store` + + `` + + `` + + `

Bitwarden Password Manager

4,000,000+ users
` + + `
Version
2026.11.1
` + + `` + res := Wave3DevInfraRunHTML("chrome_web_store_html", cwsHTML, "https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb", "browser-addons-amo-cws") + if res == nil || !strings.Contains(res.Title, "Bitwarden Password Manager") || !strings.Contains(res.Markdown, "2026.11.1") || !strings.Contains(res.Markdown, "4,000,000+") { + t.Fatalf("CWS >262KB HTML scan failed: %+v", res) + } + + // #334 CWS 1.63 MiB HTML latency budget (< 75ms in Go) + pad163 := strings.Repeat("", 48000) // ~1.58 MiB + cws163HTML := `` + pad163 + + `uBlock Origin - Chrome Web Store` + + `` + + `` + + `

uBlock Origin

30,000,000+ users
` + + `
Version
1.61.2
` + + `` + if len(cws163HTML) < 1_550_000 { + t.Fatalf("expected >= 1.55 MB CWS payload, got %d", len(cws163HTML)) + } + tCWS := time.Now() + res163 := Wave3DevInfraRunHTML("chrome_web_store_html", cws163HTML, "https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm", "browser-addons-amo-cws") + elapsed163 := time.Since(tCWS) + if res163 == nil || !strings.Contains(res163.Title, "uBlock Origin") || !strings.Contains(res163.Markdown, "1.61.2") || !strings.Contains(res163.Markdown, "30,000,000+") { + t.Fatalf("CWS 1.63 MiB HTML extraction failed: %+v", res163) + } + if elapsed163 > 75*time.Millisecond { + t.Fatalf("CWS 1.63 MiB HTML extraction exceeded 75ms budget: %v", elapsed163) + } + + // #334 CWS version extraction when preceded by 12+ "version 0.0.1" noise occurrences + cwsNoiseVerHTML := `` + + strings.Repeat(``, 12) + + `` + + pad163 + + `uBlock Origin - Chrome Web Store` + + `` + + `` + + `

uBlock Origin

30,000,000+ users
` + + `
Version
1.61.2
` + + `` + resNoiseVer := Wave3DevInfraRunHTML("chrome_web_store_html", cwsNoiseVerHTML, "https://chromewebstore.google.com/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm", "browser-addons-amo-cws") + if resNoiseVer == nil || !strings.Contains(resNoiseVer.Markdown, "1.61.2") { + t.Fatalf("CWS version extraction failed with 12+ preceding version comments: %+v", resNoiseVer) + } + if len(resNoiseVer.Records) == 0 || resNoiseVer.Records[0]["version"] != "1.61.2" { + t.Fatalf("CWS version record missing 1.61.2 with 12+ preceding version comments: %+v", resNoiseVer.Records) + } + + // #340 Vercel Security Checkpoint rejection + vercelShell := `Vercel Security Checkpoint

Failed to verify your browser

` + if vRes := Wave3DevInfraRunHTML("bundle_packagephobia_html", vercelShell, "https://packagephobia.com/result?p=lodash", "bundlephobia-packagephobia"); vRes != nil { + t.Fatalf("Vercel Security Checkpoint must be rejected, got: %+v", vRes) + } + + // #339 caniuse_html + ciuHTML := `CSS Grid Layout | Can I use...

CSS Grid Layout

Method of using a grid concept to lay out content.

  • Chrome 57+
  • Firefox 52+
` + ciuRes, okCIU := RunWave3DevInfraHTMLMode("caniuse_html", ciuHTML, "https://caniuse.com/css-grid") + if !okCIU || !strings.Contains(ciuRes, "CSS Grid Layout") { + t.Fatalf("caniuse_html failed: ok=%v res=%s", okCIU, ciuRes) + } + + // Adversarial >100KB HTML latency check (<50ms across all 13 HTML modes) + adv := `Home` + strings.Repeat("
noise
", 4500) + `` + for _, hm := range []string{ + "bitbucket_html", "sourceforge_launchpad_html", "bugzilla_html", "jira_public_html", + "wordpress_plugin_html", "vscode_marketplace_html", "chrome_web_store_html", "artifact_hub_html", + "puppet_forge_html", "apis_guru_html", "endoflife_html", "caniuse_html", "bundle_packagephobia_html", + } { + t0 := time.Now() + _ = Wave3DevInfraRunHTML(hm, adv, "https://example.org/", "") + if elapsed := time.Since(t0); elapsed > 50*time.Millisecond { + t.Fatalf("%s adversarial 100KB payload took %v (>50ms)", hm, elapsed) + } + } +} + +func TestWave3DevInfraFixturesGoldenAndNegative(t *testing.T) { + type negCase struct { + Name string `json:"name"` + Status int `json:"status"` + InputURL string `json:"inputUrl"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } + type fixture 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 []negCase `json:"negativeCases"` + } + + catNIDs := []string{ + "bitbucket-cloud", + "sourceforge-launchpad", + "gerrit", + "bugzilla", + "jira-public", + "wordpress-org-plugins", + "vscode-open-vsx", + "browser-addons-amo-cws", + "artifact-hub", + "ansible-puppet-forge", + "apis-guru", + "endoflife-date", + "web-compat-data", + "bundlephobia-packagephobia", + } + + for _, id := range catNIDs { + fxBytes, 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 fixture + if err := json.Unmarshal(fxBytes, &fx); err != nil { + t.Fatalf("unmarshal %s.json: %v", id, err) + } + if fx.AdapterID != id || len(fx.NegativeCases) < 4 { + t.Fatalf("invalid fixture metadata for %s", id) + } + + rawMan, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", id, err) + } + man, err := ParseDeclarativeYAMLManifest(rawMan) + if err != nil { + t.Fatalf("parse %s.yaml: %v", id, err) + } + + if fx.Mode == "twin" { + tm, ok := wave3DevResolveManifest(t, man, fx.InputURL) + if !ok || tm == nil { + t.Fatalf("%s: expected twin match for %s", id, fx.InputURL) + } + if fx.ExpectedFetchURL != "" && tm.FetchURL != fx.ExpectedFetchURL { + t.Fatalf("%s: expected fetchUrl %q, got %q", id, fx.ExpectedFetchURL, tm.FetchURL) + } + var doc *DeclarativeFormattedDoc + var docOK bool + if tm.route.Extract.TextMode != "" { + doc, docOK = FormatWave3DevInfraTextDoc(tm.route.Extract.TextMode, fx.MockPayload, tm.params, fx.InputURL) + } else { + doc, docOK = FormatWave3DevInfraJSONDoc(tm.route.Extract.JSONMode, []byte(fx.MockPayload), tm.params, fx.InputURL) + } + if !docOK || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + t.Fatalf("%s: golden twin format failed", id) + } + if fx.ExpectTitleIncludes != "" && !strings.Contains(doc.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s: title %q missing %q", id, doc.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(doc.Markdown, needle) { + t.Fatalf("%s: markdown missing %q\n%s", id, needle, doc.Markdown) + } + } + } else { + if len(man.HTMLRoutes) == 0 { + t.Fatalf("%s: missing htmlRoutes", id) + } + res := Wave3DevInfraRunHTML(man.HTMLRoutes[0].Mode, fx.MockPayload, fx.InputURL, id) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + t.Fatalf("%s: golden html extraction failed", id) + } + if fx.ExpectTitleIncludes != "" && !strings.Contains(res.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s: title %q missing %q", id, res.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(res.Markdown, needle) { + t.Fatalf("%s: markdown missing %q\n%s", id, needle, res.Markdown) + } + } + } + + // Verify all negative cases return nil/false + for _, nc := range fx.NegativeCases { + ncURL := nc.InputURL + if ncURL == "" { + ncURL = fx.InputURL + } + if nc.FinalURL != "" { + ncURL = nc.FinalURL + } + if tm, ok := wave3DevResolveManifest(t, man, ncURL); ok && tm != nil { + var negDoc *DeclarativeFormattedDoc + var negOK bool + if tm.route.Extract.TextMode != "" { + negDoc, negOK = formatWave3DevInfraText(tm.route.Extract.TextMode, nc.Payload, tm.params, ncURL) + } else { + negDoc, negOK = formatWave3DevInfraJSON(tm.route.Extract.JSONMode, []byte(nc.Payload), tm.params, ncURL) + } + if negOK && negDoc != nil && strings.TrimSpace(negDoc.Markdown) != "" { + t.Fatalf("%s:%s twin negative case unexpectedly succeeded: %+v", id, nc.Name, negDoc) + } + } + for _, hr := range man.HTMLRoutes { + if negRes := Wave3DevInfraRunHTML(hr.Mode, nc.Payload, ncURL, id); negRes != nil { + t.Fatalf("%s:%s html negative case unexpectedly succeeded: %+v", id, nc.Name, negRes) + } + } + } + } +} diff --git a/internal/extract/wave3_scholarly.go b/internal/extract/wave3_scholarly.go new file mode 100644 index 0000000..c7eeb7a --- /dev/null +++ b/internal/extract/wave3_scholarly.go @@ -0,0 +1,4139 @@ +package extract + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "fmt" + stdhtml "html" + "io" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3ScholarlyMaxHTMLBytes = 2 * 1024 * 1024 + wave3ScholarlyMaxJSONBytes = 4 * 1024 * 1024 + wave3ScholarlyMaxTextBytes = 2 * 1024 * 1024 + wave3ScholarlyMaxRecords = 25 +) + +func wave3ScholarlyTruncateDesc(s string) string { + s = strings.TrimSpace(s) + if len(s) <= 260 { + return s + } + cut := sliceRunesMax(s, 260) + if len(cut) < len(s) { + return strings.TrimSpace(cut) + "..." + } + return s +} + +var ( + wave3ScholarlyRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|401|403|429|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|making\s+sure\s+you'?re\s+not\s+a\s+bot|vercel\s+security\s+checkpoint|forbidden|under\s+heavy\s+load)(?:\b|$)`) + wave3ScholarlyRxMaintTitle = 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)`) + wave3ScholarlyRxErrorTitle = 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)$`) + wave3ScholarlyRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|orcid|report\s*[\x{203a}>]\s*reporter|award\s+details\s*-\s*nsf\s+award\s+search|nsf\s+award\s+search|semantic\s+scholar|datacite\s+commons|core|ror|ssrn)$`) + wave3ScholarlyRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3ScholarlyRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3ScholarlyRxSlashDate = newLazyRegexp(`^(\d{1,2})/(\d{1,2})/(\d{4})$`) + wave3ScholarlyRxYYYYSlashDate = newLazyRegexp(`^(\d{4})/(\d{1,2})/(\d{1,2})$`) + wave3ScholarlyRxISODate = newLazyRegexp(`^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?`) + wave3ScholarlyRxDOI = newLazyRegexp(`^10\.\d{4,9}/\S+$`) + wave3ScholarlyRxORCID = newLazyRegexp(`^0000-\d{4}-\d{4}-\d{3}[\dX]$`) + wave3ScholarlyRxROR = newLazyRegexp(`^0[a-z0-9]{6}\d{2}$`) + wave3ScholarlyRxNextData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NEXT_DATA__["'][^>]*>(.*?)`) +) + +func init() { + RegisterWave3ScholarlyHTMLModes() +} + +// RegisterWave3ScholarlyHTMLModes registers all 14 Category L Research & Scholarly HTML modes (#301-#314). +func RegisterWave3ScholarlyHTMLModes() { + for _, mode := range []string{ + "semantic_scholar_html", + "unpaywall_html", + "core_ac_html", + "orcid_html", + "ror_html", + "dblp_html", + "biorxiv_medrxiv_html", + "nasa_ads_html", + "nih_reporter_html", + "nsf_awards_html", + "doe_osti_html", + "research_repo_pack_html", + "datacite_html", + "ssrn_nber_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3ScholarlyRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3ScholarlyHTMLMode reports whether mode is one of the 14 Category L HTML extractors (#301-#314). +func IsWave3ScholarlyHTMLMode(mode string) bool { + switch mode { + case "semantic_scholar_html", + "unpaywall_html", + "core_ac_html", + "orcid_html", + "ror_html", + "dblp_html", + "biorxiv_medrxiv_html", + "nasa_ads_html", + "nih_reporter_html", + "nsf_awards_html", + "doe_osti_html", + "research_repo_pack_html", + "datacite_html", + "ssrn_nber_html": + return true + default: + return false + } +} + +// IsWave3ScholarlyJSONMode reports whether mode is one of the Category L JSON formatters (#301-#313). +func IsWave3ScholarlyJSONMode(mode string) bool { + switch mode { + case "semantic_scholar_json", + "unpaywall_json", + "core_ac_json", + "orcid_json", + "ror_json", + "dblp_json", + "biorxiv_medrxiv_json", + "nasa_ads_json", + "nih_reporter_json", + "nsf_awards_json", + "doe_osti_json", + "research_repo_pack_json", + "datacite_json": + return true + default: + return false + } +} + +// IsWave3ScholarlyTextMode reports whether mode is a Category L text/XML formatter (`dblp_xml`). +func IsWave3ScholarlyTextMode(mode string) bool { + return mode == "dblp_xml" +} + +func wave3ScholarlyDefaultExtractorID(mode string) string { + switch mode { + case "semantic_scholar_html", "semantic_scholar_json": + return "semantic-scholar" + case "unpaywall_html", "unpaywall_json": + return "unpaywall" + case "core_ac_html", "core_ac_json": + return "core-ac" + case "orcid_html", "orcid_json": + return "orcid" + case "ror_html", "ror_json": + return "ror" + case "dblp_html", "dblp_json", "dblp_xml": + return "dblp" + case "biorxiv_medrxiv_html", "biorxiv_medrxiv_json": + return "biorxiv-medrxiv" + case "nasa_ads_html", "nasa_ads_json": + return "nasa-ads" + case "nih_reporter_html", "nih_reporter_json": + return "nih-reporter" + case "nsf_awards_html", "nsf_awards_json": + return "nsf-awards" + case "doe_osti_html", "doe_osti_json": + return "doe-osti" + case "research_repo_pack_html", "research_repo_pack_json": + return "research-repo-pack" + case "datacite_html", "datacite_json": + return "datacite" + case "ssrn_nber_html": + return "ssrn-nber" + default: + return "" + } +} + +// Wave3ScholarlyRunHTML executes a Category L HTML extractor and returns DeclarativePostFetchResult. +func Wave3ScholarlyRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3ScholarlyHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3ScholarlyMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3ScholarlyMaxHTMLBytes) + } + 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) + + if !wave3ScholarlyMatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3ScholarlyHasCommonNegativeShell(rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3ScholarlyDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "semantic_scholar_html": + res = wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "semantic-scholar") + case "unpaywall_html": + res = wave3ScholarlyExtractInfoPageHTML(rawHTML, baseURL, extractorID, "unpaywall") + case "core_ac_html": + res = wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "core-ac") + case "orcid_html": + res = wave3ScholarlyExtractORCIDHTML(rawHTML, probeLower, baseURL, extractorID) + case "ror_html": + res = wave3ScholarlyExtractRORHTML(rawHTML, baseURL, extractorID) + case "dblp_html": + res = wave3ScholarlyExtractDBLPHTML(rawHTML, probeLower, baseURL, extractorID) + case "biorxiv_medrxiv_html": + res = wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "biorxiv-medrxiv") + case "nasa_ads_html": + res = wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "nasa-ads") + case "nih_reporter_html": + res = wave3ScholarlyExtractNIHReporterHTML(rawHTML, probeLower, baseURL, extractorID) + case "nsf_awards_html": + res = wave3ScholarlyExtractNSFAwardsHTML(rawHTML, probeLower, baseURL, extractorID) + case "doe_osti_html": + res = wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "doe-osti") + case "research_repo_pack_html": + res = wave3ScholarlyExtractRepoPackHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + case "datacite_html": + res = wave3ScholarlyExtractDataCiteHTML(rawHTML, baseURL, extractorID) + case "ssrn_nber_html": + res = wave3ScholarlyExtractSSRNNBERHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3ScholarlyFinalizePostFetch(res) +} + +// RunWave3ScholarlyHTMLMode executes a Category L HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3ScholarlyHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3ScholarlyRunHTML(mode, rawHTML, baseURL, wave3ScholarlyDefaultExtractorID(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 +} + +// FormatWave3ScholarlyJSONDoc formats a Category L JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3ScholarlyJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3ScholarlyJSONMode(mode) || len(raw) == 0 || len(raw) > wave3ScholarlyMaxJSONBytes { + 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 "semantic_scholar_json": + doc, handled = wave3ScholarlyFormatSemanticScholarJSON(parsed, origURL) + case "unpaywall_json": + doc, handled = wave3ScholarlyFormatUnpaywallJSON(parsed, origURL) + case "core_ac_json": + doc, handled = wave3ScholarlyFormatCoreACJSON(parsed, origURL) + case "orcid_json": + doc, handled = wave3ScholarlyFormatORCIDJSON(parsed, origURL) + case "ror_json": + doc, handled = wave3ScholarlyFormatRORJSON(parsed, origURL) + case "dblp_json": + doc, handled = wave3ScholarlyFormatDBLPJSON(parsed, origURL) + case "biorxiv_medrxiv_json": + doc, handled = wave3ScholarlyFormatBioRxivJSON(parsed, origURL) + case "nasa_ads_json": + doc, handled = wave3ScholarlyFormatNASAADSJSON(parsed, origURL) + case "nih_reporter_json": + doc, handled = wave3ScholarlyFormatNIHReporterJSON(parsed, origURL) + case "nsf_awards_json": + doc, handled = wave3ScholarlyFormatNSFAwardsJSON(parsed, origURL) + case "doe_osti_json": + doc, handled = wave3ScholarlyFormatDOEOSTIJSON(parsed, origURL) + case "research_repo_pack_json": + doc, handled = wave3ScholarlyFormatRepoPackJSON(parsed, origURL) + case "datacite_json": + doc, handled = wave3ScholarlyFormatDataCiteJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3ScholarlyFinalizeDoc(doc), true +} + +// FormatWave3ScholarlyJSONMode formats a Category L JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3ScholarlyJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3ScholarlyJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3ScholarlyTextDoc formats a Category L text/XML twin payload (`dblp_xml`). +func FormatWave3ScholarlyTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3ScholarlyTextMode(mode) || len(rawBody) == 0 { + return nil, false + } + if len(rawBody) > wave3ScholarlyMaxTextBytes { + rawBody = truncateUTF8SafeFullDocGo(rawBody, wave3ScholarlyMaxTextBytes) + } + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "dblp_xml": + doc, handled = wave3ScholarlyFormatDBLPXML(rawBody, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3ScholarlyFinalizeDoc(doc), true +} + +// FormatWave3ScholarlyTextMode formats a Category L text/XML payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3ScholarlyTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3ScholarlyTextDoc(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 wave3ScholarlyMatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "semantic_scholar_html": + return strings.Contains(probeLower, "citation_title") || + strings.Contains(probeLower, "paper-detail-title") || + strings.Contains(probeLower, "scholarlyarticle") || + (strings.Contains(urlLower, "semanticscholar.org") && strings.Contains(probeLower, "= 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 wave3ScholarlyIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3ScholarlyRxNotFoundTitle.MatchString(t) || + wave3ScholarlyRxMaintTitle.MatchString(t) || + wave3ScholarlyRxErrorTitle.MatchString(t) +} + +func wave3ScholarlyIsGenericTitle(title string) bool { + return wave3ScholarlyRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3ScholarlyHasCommonNegativeShell(rawHTML, probeLower, urlLower string) bool { + if wave3ScholarlyIsNegativeURL(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...", + "anubis_version", + "anubis_challenge", + "making sure you're not a bot!", + "vercel security checkpoint", + "we're verifying your browser", + "x-amzn-waf", + "awswaf", + "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", + "this website is under heavy load (queue full)", + "scheduled maintenance", + "down for maintenance", + "temporarily unavailable", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(rawHTML) + if wave3ScholarlyIsNegativeTitle(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, "") || strings.Contains(rawLower, " 0 { + return true + } + case map[string]any: + if len(tv) > 0 { + return true + } + case bool: + if tv { + return true + } + case float64, int, int64, json.Number: + if f, fOK := wave3ScholarlyFloatVal(tv); fOK && f != 0 { + return true + } + } + } + } + for _, k := range []string{"error_code", "statusCode", "status_code", "HTTP_status_code", "status-code"} { + if f, ok := wave3ScholarlyFloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if st := strings.ToUpper(wave3ScholarlyPlain(obj["status"], 48)); st == "ERROR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "UNAUTHORIZED" { + return true + } + if msg := wave3ScholarlyPlain(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, "missing") || + strings.Contains(lm, "authentication") { + return true + } + } + return false +} + +func wave3ScholarlyIntPtr(n int) *int { return &n } +func wave3ScholarlyBoolPtr(b bool) *bool { return &b } + +func wave3ScholarlyFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3ScholarlyMaxRecords { + if doc.Total == nil { + doc.Total = wave3ScholarlyIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3ScholarlyMaxRecords] + doc.Returned = wave3ScholarlyIntPtr(len(doc.Records)) + doc.Truncated = wave3ScholarlyBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3ScholarlyFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3ScholarlyMaxRecords { + if res.Total == nil { + res.Total = wave3ScholarlyIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3ScholarlyMaxRecords] + res.Returned = wave3ScholarlyIntPtr(len(res.Records)) + res.Truncated = wave3ScholarlyBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3ScholarlyCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3ScholarlyRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3ScholarlyRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3ScholarlyRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3ScholarlyStringVal(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 wave3ScholarlyFloatVal(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 wave3ScholarlyPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3ScholarlyStringVal(v), maxLen) +} + +func wave3ScholarlyFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3ScholarlyAddLink(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 wave3ScholarlyNormalizeDOI(raw string) string { + s := strings.TrimSpace(raw) + if s == "" { + return "" + } + low := strings.ToLower(s) + for _, pref := range []string{ + "https://doi.org/", + "http://doi.org/", + "https://dx.doi.org/", + "http://dx.doi.org/", + "doi:", + } { + if strings.HasPrefix(low, pref) { + s = strings.TrimSpace(s[len(pref):]) + break + } + } + if !wave3ScholarlyRxDOI.MatchString(s) { + return "" + } + return s +} + +func wave3ScholarlyNormalizeORCID(raw string) string { + s := strings.TrimSpace(raw) + low := strings.ToLower(s) + for _, pref := range []string{"https://orcid.org/", "http://orcid.org/"} { + if strings.HasPrefix(low, pref) { + s = strings.TrimSpace(s[len(pref):]) + break + } + } + s = strings.ToUpper(strings.Trim(s, "/")) + if !wave3ScholarlyRxORCID.MatchString(s) { + return "" + } + return s +} + +func wave3ScholarlyNormalizeRORID(raw string) string { + s := strings.TrimSpace(raw) + low := strings.ToLower(s) + for _, pref := range []string{"https://ror.org/", "http://ror.org/"} { + if strings.HasPrefix(low, pref) { + s = strings.TrimSpace(s[len(pref):]) + break + } + } + s = strings.ToLower(strings.Trim(s, "/")) + if !wave3ScholarlyRxROR.MatchString(s) { + return "" + } + return s +} + +func wave3ScholarlyNormalizeDate(raw string) string { + s := SanitizeSchemaPlainField(raw, 48) + if s == "" { + return "" + } + if m := wave3ScholarlyRxYYYYSlashDate.FindStringSubmatch(s); len(m) == 4 { + mo, _ := strconv.Atoi(m[2]) + da, _ := strconv.Atoi(m[3]) + if mo >= 1 && mo <= 12 && da >= 1 && da <= 31 { + return fmt.Sprintf("%s-%02d-%02d", m[1], mo, da) + } + } + if m := wave3ScholarlyRxSlashDate.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 m := wave3ScholarlyRxISODate.FindStringSubmatch(s); len(m) >= 2 && m[1] != "" { + if m[2] != "" && m[3] != "" { + return m[1] + "-" + m[2] + "-" + m[3] + } + if m[2] != "" { + return m[1] + "-" + m[2] + } + return m[1] + } + return s +} + +func wave3ScholarlyMapAt(m map[string]any, keys ...string) map[string]any { + cur := m + for _, k := range keys { + if cur == nil { + return nil + } + nxt, ok := cur[k].(map[string]any) + if !ok { + return nil + } + cur = nxt + } + return cur +} + +func wave3ScholarlyValAt(m map[string]any, keys ...string) any { + if len(keys) == 0 || m == nil { + return nil + } + cur := m + for i := 0; i < len(keys)-1; i++ { + nxt, ok := cur[keys[i]].(map[string]any) + if !ok { + return nil + } + cur = nxt + } + return cur[keys[len(keys)-1]] +} + +func wave3ScholarlyJoinStrings(arr any, limit int) []string { + list, ok := arr.([]any) + if !ok || len(list) == 0 { + return nil + } + out := make([]string, 0, len(list)) + for _, item := range list { + if limit > 0 && len(out) >= limit { + break + } + if s := wave3ScholarlyPlain(item, 180); s != "" { + out = append(out, s) + } + } + return out +} + +func wave3ScholarlyFormatAmount(v any) string { + f, ok := wave3ScholarlyFloatVal(v) + if !ok { + return "" + } + n := int64(math.Round(f)) + neg := n < 0 + if neg { + n = -n + } + s := strconv.FormatInt(n, 10) + if len(s) <= 3 { + if neg { + return "-" + s + } + return s + } + var out strings.Builder + if neg { + out.WriteByte('-') + } + rem := len(s) % 3 + if rem > 0 { + out.WriteString(s[:rem]) + out.WriteByte(',') + } + for i := rem; i < len(s); i += 3 { + if i > rem { + out.WriteByte(',') + } + out.WriteString(s[i : i+3]) + } + return out.String() +} + +// ── #301 Semantic Scholar JSON ────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatSemanticScholarJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + // Search/batch list (`data: [...]`) + if dataArr, okD := m["data"].([]any); okD { + if len(dataArr) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, it := range dataArr { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + pm, okPM := it.(map[string]any) + if !okPM { + continue + } + title := wave3ScholarlyPlain(pm["title"], 260) + if title == "" { + continue + } + pid := wave3ScholarlyPlain(pm["paperId"], 64) + year := wave3ScholarlyPlain(pm["year"], 8) + venue := wave3ScholarlyPlain(pm["venue"], 120) + citCount := wave3ScholarlyPlain(pm["citationCount"], 16) + paperURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(pm["url"]), origURL) + if paperURL == "" && pid != "" { + paperURL = "https://www.semanticscholar.org/paper/" + pid + } + wave3ScholarlyAddLink(&links, seen, paperURL, origURL) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(wave3ScholarlyValAt(pm, "externalIds", "DOI"))) + rec := map[string]any{ + "source": "semantic-scholar", + "title": title, + } + if pid != "" { + rec["paperId"] = pid + } + if year != "" { + rec["year"] = year + } + if venue != "" { + rec["venue"] = venue + } + if doi != "" { + rec["doi"] = doi + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + if citCount != "" { + rec["citationCount"] = citCount + } + if paperURL != "" { + rec["url"] = paperURL + } + recs = append(recs, rec) + rows = append(rows, []string{title, year, venue, citCount, doi}) + } + if len(recs) == 0 { + return nil, false + } + total := len(recs) + if t, okT := wave3ScholarlyFloatVal(m["total"]); okT && int(t) > total { + total = int(t) + } + md := "# Semantic Scholar Papers\n\n" + formatDeclarativeGFMTable([]string{"Title", "Year", "Venue", "Citations", "DOI"}, rows) + return &DeclarativeFormattedDoc{ + Title: "Semantic Scholar Papers", + Markdown: md, + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true + } + + // Author object (`authorId` + `name`) + if authorName := wave3ScholarlyPlain(m["name"], 200); authorName != "" && wave3ScholarlyPlain(m["authorId"], 48) != "" { + aid := wave3ScholarlyPlain(m["authorId"], 48) + affils := wave3ScholarlyJoinStrings(m["affiliations"], 6) + paperCount := wave3ScholarlyPlain(m["paperCount"], 16) + citCount := wave3ScholarlyPlain(m["citationCount"], 16) + hIndex := wave3ScholarlyPlain(m["hIndex"], 16) + homepage := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(m["homepage"]), origURL) + authorURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(m["url"]), origURL) + if authorURL == "" { + authorURL = "https://www.semanticscholar.org/author/" + aid + } + var bullets []string + bullets = append(bullets, "- **Author ID**: `"+aid+"`") + if len(affils) > 0 { + bullets = append(bullets, "- **Affiliations**: "+strings.Join(affils, ", ")) + } + if paperCount != "" { + bullets = append(bullets, "- **Papers**: "+paperCount) + } + if citCount != "" { + bullets = append(bullets, "- **Citations**: "+citCount) + } + if hIndex != "" { + bullets = append(bullets, "- **h-index**: "+hIndex) + } + if homepage != "" { + bullets = append(bullets, "- **Homepage**: "+homepage) + } + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, authorURL, origURL) + wave3ScholarlyAddLink(&links, seen, homepage, origURL) + rec := map[string]any{ + "source": "semantic-scholar", + "authorId": aid, + "name": authorName, + "url": authorURL, + } + if len(affils) > 0 { + rec["affiliations"] = affils + } + if paperCount != "" { + rec["paperCount"] = paperCount + } + if citCount != "" { + rec["citationCount"] = citCount + } + if hIndex != "" { + rec["hIndex"] = hIndex + } + return &DeclarativeFormattedDoc{ + Title: authorName, + Author: authorName, + Markdown: "# " + escapeDeclMarkdownBrackets(authorName) + "\n\n" + strings.Join(bullets, "\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + // Single paper object + title := wave3ScholarlyPlain(m["title"], 300) + if title == "" { + return nil, false + } + pid := wave3ScholarlyPlain(m["paperId"], 64) + year := wave3ScholarlyPlain(m["year"], 8) + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(m["publicationDate"])) + if pubDate == "" { + pubDate = year + } + venue := wave3ScholarlyFirstNonEmpty( + wave3ScholarlyPlain(wave3ScholarlyValAt(m, "publicationVenue", "name"), 140), + wave3ScholarlyPlain(m["venue"], 140), + ) + abstract := wave3ScholarlyPlain(m["abstract"], 4000) + citCount := wave3ScholarlyPlain(m["citationCount"], 16) + refCount := wave3ScholarlyPlain(m["referenceCount"], 16) + infCit := wave3ScholarlyPlain(m["influentialCitationCount"], 16) + oaPdf := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(wave3ScholarlyValAt(m, "openAccessPdf", "url")), origURL) + paperURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(m["url"]), origURL) + if paperURL == "" && pid != "" { + paperURL = "https://www.semanticscholar.org/paper/" + pid + } + + var authors []string + if aArr, okA := m["authors"].([]any); okA { + for _, av := range aArr { + if len(authors) >= 16 { + break + } + if am, okAM := av.(map[string]any); okAM { + if name := wave3ScholarlyPlain(am["name"], 100); name != "" { + authors = append(authors, name) + } + } + } + } + authorsStr := strings.Join(authors, ", ") + authorsShort := authorsStr + if len(authors) > 4 { + authorsShort = strings.Join(authors[:4], ", ") + } + + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(wave3ScholarlyValAt(m, "externalIds", "DOI"))) + arxivID := wave3ScholarlyPlain(wave3ScholarlyValAt(m, "externalIds", "ArXiv"), 48) + pmid := wave3ScholarlyPlain(wave3ScholarlyValAt(m, "externalIds", "PubMed"), 32) + + var bullets []string + if pid != "" { + bullets = append(bullets, "- **Paper ID**: `"+pid+"`") + } + if authorsStr != "" { + bullets = append(bullets, "- **Authors**: "+authorsStr) + } + if venue != "" { + bullets = append(bullets, "- **Venue**: "+venue) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + if arxivID != "" { + bullets = append(bullets, "- **arXiv**: `"+arxivID+"`") + } + if pmid != "" { + bullets = append(bullets, "- **PubMed ID**: `"+pmid+"`") + } + if citCount != "" { + bullets = append(bullets, "- **Citations**: "+citCount) + } + if infCit != "" { + bullets = append(bullets, "- **Influential Citations**: "+infCit) + } + if refCount != "" { + bullets = append(bullets, "- **References**: "+refCount) + } + if oaPdf != "" { + bullets = append(bullets, "- **Open Access PDF**: "+oaPdf) + } + if paperURL != "" { + bullets = append(bullets, "- **Semantic Scholar URL**: "+paperURL) + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if abstract != "" { + blocks = append(blocks, "## Abstract\n\n"+abstract) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, paperURL, origURL) + wave3ScholarlyAddLink(&links, seen, oaPdf, origURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + + rec := map[string]any{ + "source": "semantic-scholar", + "title": title, + } + if pid != "" { + rec["paperId"] = pid + } + if len(authors) > 0 { + rec["authors"] = authors + } + if venue != "" { + rec["venue"] = venue + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if doi != "" { + rec["doi"] = doi + } + if arxivID != "" { + rec["arxivId"] = arxivID + } + if oaPdf != "" { + rec["openAccessPdf"] = oaPdf + } + if citCount != "" { + rec["citationCount"] = citCount + } + + desc := abstract + desc = wave3ScholarlyTruncateDesc(desc) + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: authorsShort, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #302 Unpaywall JSON ───────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatUnpaywallJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + // Search response (`results: [{response: {...}}]`) + if resArr, okR := m["results"].([]any); okR { + if len(resArr) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, item := range resArr { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + im, okIM := item.(map[string]any) + if !okIM { + continue + } + if inner, okIn := im["response"].(map[string]any); okIn { + im = inner + } + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(im["doi"])) + title := wave3ScholarlyPlain(im["title"], 260) + if doi == "" && title == "" { + continue + } + if title == "" { + title = doi + } + oaStatus := wave3ScholarlyPlain(im["oa_status"], 32) + journal := wave3ScholarlyPlain(im["journal_name"], 120) + bestURL := SanitizeSchemaHTTPSURL(wave3ScholarlyFirstNonEmpty( + wave3ScholarlyStringVal(wave3ScholarlyValAt(im, "best_oa_location", "url_for_pdf")), + wave3ScholarlyStringVal(wave3ScholarlyValAt(im, "best_oa_location", "url")), + ), origURL) + wave3ScholarlyAddLink(&links, seen, bestURL, origURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + rec := map[string]any{ + "source": "unpaywall", + "title": title, + "doi": doi, + "oaStatus": oaStatus, + } + if journal != "" { + rec["journal"] = journal + } + if bestURL != "" { + rec["bestOaUrl"] = bestURL + } + recs = append(recs, rec) + rows = append(rows, []string{title, doi, oaStatus, journal}) + } + if len(recs) == 0 { + return nil, false + } + md := "# Unpaywall Search Results\n\n" + formatDeclarativeGFMTable([]string{"Title", "DOI", "OA Status", "Journal"}, rows) + return &DeclarativeFormattedDoc{ + Title: "Unpaywall Search Results", + Markdown: md, + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(len(recs)), + Returned: wave3ScholarlyIntPtr(len(recs)), + }, true + } + + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(m["doi"])) + title := wave3ScholarlyPlain(m["title"], 300) + if doi == "" || title == "" { + return nil, false + } + isOA := "false" + if b, okB := m["is_oa"].(bool); okB && b { + isOA = "true" + } + oaStatus := wave3ScholarlyPlain(m["oa_status"], 32) + journal := wave3ScholarlyPlain(m["journal_name"], 160) + publisher := wave3ScholarlyPlain(m["publisher"], 140) + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(m["published_date"])) + if pubDate == "" { + pubDate = wave3ScholarlyPlain(m["year"], 8) + } + genre := wave3ScholarlyPlain(m["genre"], 48) + + var authors []string + if zArr, okZ := m["z_authors"].([]any); okZ { + for _, av := range zArr { + if len(authors) >= 16 { + break + } + am, okAM := av.(map[string]any) + if !okAM { + continue + } + given := wave3ScholarlyPlain(am["given"], 60) + family := wave3ScholarlyPlain(am["family"], 60) + full := strings.TrimSpace(given + " " + family) + if full == "" { + full = wave3ScholarlyPlain(am["raw_author_name"], 100) + } + if full != "" { + authors = append(authors, full) + } + } + } + authorsStr := strings.Join(authors, ", ") + authorsShort := authorsStr + if len(authors) > 4 { + authorsShort = strings.Join(authors[:4], ", ") + } + + bestLoc := wave3ScholarlyMapAt(m, "best_oa_location") + bestURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(bestLoc["url"]), origURL) + bestPDF := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(bestLoc["url_for_pdf"]), origURL) + bestLicense := wave3ScholarlyPlain(bestLoc["license"], 64) + bestHostType := wave3ScholarlyPlain(bestLoc["host_type"], 48) + bestVersion := wave3ScholarlyPlain(bestLoc["version"], 48) + + var bullets []string + bullets = append(bullets, "- **DOI**: `"+doi+"`") + bullets = append(bullets, "- **Open Access**: "+isOA) + if oaStatus != "" { + bullets = append(bullets, "- **OA Status**: "+oaStatus) + } + if authorsStr != "" { + bullets = append(bullets, "- **Authors**: "+authorsStr) + } + if journal != "" { + bullets = append(bullets, "- **Journal**: "+journal) + } + if publisher != "" { + bullets = append(bullets, "- **Publisher**: "+publisher) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if genre != "" { + bullets = append(bullets, "- **Type**: "+genre) + } + if bestPDF != "" { + bullets = append(bullets, "- **Best OA PDF**: "+bestPDF) + } + if bestURL != "" { + bullets = append(bullets, "- **Best OA Landing URL**: "+bestURL) + } + if bestLicense != "" { + bullets = append(bullets, "- **License**: "+bestLicense) + } + if bestHostType != "" { + bullets = append(bullets, "- **Host Type**: "+bestHostType) + } + if bestVersion != "" { + bullets = append(bullets, "- **Version**: "+bestVersion) + } + + var oaRows [][]string + if locs, okL := m["oa_locations"].([]any); okL { + for _, lv := range locs { + if len(oaRows) >= 12 { + break + } + lm, okLM := lv.(map[string]any) + if !okLM { + continue + } + lu := SanitizeSchemaHTTPSURL(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(lm["url_for_pdf"]), wave3ScholarlyStringVal(lm["url"])), origURL) + if lu == "" { + continue + } + oaRows = append(oaRows, []string{ + wave3ScholarlyPlain(lm["host_type"], 40), + wave3ScholarlyPlain(lm["version"], 40), + wave3ScholarlyPlain(lm["license"], 40), + lu, + }) + } + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + blocks = append(blocks, strings.Join(bullets, "\n")) + if len(oaRows) > 0 { + blocks = append(blocks, "## Open Access Locations\n\n"+formatDeclarativeGFMTable([]string{"Host Type", "Version", "License", "URL"}, oaRows)) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + wave3ScholarlyAddLink(&links, seen, bestPDF, origURL) + wave3ScholarlyAddLink(&links, seen, bestURL, origURL) + + rec := map[string]any{ + "source": "unpaywall", + "doi": doi, + "title": title, + "isOa": isOA == "true", + "oaStatus": oaStatus, + } + if journal != "" { + rec["journalName"] = journal + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if bestPDF != "" { + rec["bestOaPdf"] = bestPDF + } + if bestURL != "" { + rec["bestOaUrl"] = bestURL + } + if bestLicense != "" { + rec["license"] = bestLicense + } + if len(authors) > 0 { + rec["authors"] = authors + } + + return &DeclarativeFormattedDoc{ + Title: title, + Author: authorsShort, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #303 CORE.ac.uk JSON ──────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatCoreACJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + // Search endpoint (`results: [...]`) + if resArr, okR := m["results"].([]any); okR { + if len(resArr) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, it := range resArr { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + wm, okWM := it.(map[string]any) + if !okWM { + continue + } + title := wave3ScholarlyPlain(wm["title"], 260) + if title == "" { + continue + } + id := wave3ScholarlyPlain(wm["id"], 32) + year := wave3ScholarlyPlain(wm["yearPublished"], 8) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(wm["doi"])) + dl := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(wm["downloadUrl"]), origURL) + wave3ScholarlyAddLink(&links, seen, dl, origURL) + if id != "" { + wave3ScholarlyAddLink(&links, seen, "https://core.ac.uk/works/"+id, origURL) + } + rec := map[string]any{ + "source": "core-ac", + "title": title, + } + if id != "" { + rec["id"] = id + } + if year != "" { + rec["yearPublished"] = year + } + if doi != "" { + rec["doi"] = doi + } + if dl != "" { + rec["downloadUrl"] = dl + } + recs = append(recs, rec) + rows = append(rows, []string{id, title, year, doi}) + } + if len(recs) == 0 { + return nil, false + } + total := len(recs) + if t, okT := wave3ScholarlyFloatVal(m["totalHits"]); okT && int(t) > total { + total = int(t) + } + return &DeclarativeFormattedDoc{ + Title: "CORE Scholarly Works Search", + Markdown: "# CORE Scholarly Works Search\n\n" + formatDeclarativeGFMTable([]string{"CORE ID", "Title", "Year", "DOI"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true + } + + // Single work object + title := wave3ScholarlyPlain(m["title"], 300) + if title == "" { + return nil, false + } + id := wave3ScholarlyPlain(m["id"], 32) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(m["doi"])) + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(m["publishedDate"]), wave3ScholarlyStringVal(m["yearPublished"]))) + publisher := wave3ScholarlyPlain(m["publisher"], 140) + abstract := wave3ScholarlyPlain(m["abstract"], 4000) + dl := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(m["downloadUrl"]), origURL) + + var authors []string + if aArr, okA := m["authors"].([]any); okA { + for _, av := range aArr { + if len(authors) >= 16 { + break + } + switch tv := av.(type) { + case string: + if name := wave3ScholarlyPlain(tv, 100); name != "" { + authors = append(authors, name) + } + case map[string]any: + if name := wave3ScholarlyPlain(tv["name"], 100); name != "" { + authors = append(authors, name) + } + } + } + } + authorsStr := strings.Join(authors, ", ") + authorsShort := authorsStr + if len(authors) > 4 { + authorsShort = strings.Join(authors[:4], ", ") + } + + var links []string + seen := make(map[string]bool) + if id != "" { + wave3ScholarlyAddLink(&links, seen, "https://core.ac.uk/works/"+id, origURL) + } + wave3ScholarlyAddLink(&links, seen, dl, origURL) + if sft, okS := m["sourceFulltextUrls"].([]any); okS { + for _, su := range sft { + wave3ScholarlyAddLink(&links, seen, wave3ScholarlyStringVal(su), origURL) + } + } + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + + var bullets []string + if id != "" { + bullets = append(bullets, "- **CORE ID**: `"+id+"`") + } + if authorsStr != "" { + bullets = append(bullets, "- **Authors**: "+authorsStr) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if publisher != "" { + bullets = append(bullets, "- **Publisher**: "+publisher) + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + if dl != "" { + bullets = append(bullets, "- **Full Text PDF**: "+dl) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if abstract != "" { + blocks = append(blocks, "## Abstract\n\n"+abstract) + } + + rec := map[string]any{ + "source": "core-ac", + "title": title, + } + if id != "" { + rec["id"] = id + } + if doi != "" { + rec["doi"] = doi + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if dl != "" { + rec["downloadUrl"] = dl + } + if len(authors) > 0 { + rec["authors"] = authors + } + + desc := abstract + desc = wave3ScholarlyTruncateDesc(desc) + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: authorsShort, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #304 ORCID JSON ───────────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatORCIDJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + orcidID := wave3ScholarlyNormalizeORCID(wave3ScholarlyFirstNonEmpty( + wave3ScholarlyStringVal(wave3ScholarlyValAt(m, "orcid-identifier", "path")), + wave3ScholarlyStringVal(wave3ScholarlyValAt(m, "orcid-identifier", "uri")), + )) + person := wave3ScholarlyMapAt(m, "person") + if person == nil && m["name"] != nil { + person = m + } + if orcidID == "" && person == nil { + return nil, false + } + + creditName := wave3ScholarlyPlain(wave3ScholarlyValAt(person, "name", "credit-name", "value"), 140) + given := wave3ScholarlyPlain(wave3ScholarlyValAt(person, "name", "given-names", "value"), 100) + family := wave3ScholarlyPlain(wave3ScholarlyValAt(person, "name", "family-name", "value"), 100) + fullName := creditName + if fullName == "" { + fullName = strings.TrimSpace(given + " " + family) + } + if fullName == "" && orcidID == "" { + return nil, false + } + if fullName == "" { + fullName = "ORCID " + orcidID + } + + bio := wave3ScholarlyPlain(wave3ScholarlyValAt(person, "biography", "content"), 2000) + + var links []string + seen := make(map[string]bool) + profileURL := "" + if orcidID != "" { + profileURL = "https://orcid.org/" + orcidID + wave3ScholarlyAddLink(&links, seen, profileURL, origURL) + } + if ruArr, okRU := wave3ScholarlyValAt(person, "researcher-urls", "researcher-url").([]any); okRU { + for _, rv := range ruArr { + if rm, okRM := rv.(map[string]any); okRM { + wave3ScholarlyAddLink(&links, seen, wave3ScholarlyStringVal(wave3ScholarlyValAt(rm, "url", "value")), origURL) + } + } + } + + var empRows [][]string + if affGroups, okEG := wave3ScholarlyValAt(m, "activities-summary", "employments", "affiliation-group").([]any); okEG { + for _, ag := range affGroups { + if len(empRows) >= 10 { + break + } + agMap, okAG := ag.(map[string]any) + if !okAG { + continue + } + sums, _ := agMap["summaries"].([]any) + for _, sv := range sums { + sm, okSM := sv.(map[string]any) + if !okSM { + continue + } + es := wave3ScholarlyMapAt(sm, "employment-summary") + if es == nil { + continue + } + org := wave3ScholarlyPlain(wave3ScholarlyValAt(es, "organization", "name"), 140) + role := wave3ScholarlyPlain(es["role-title"], 120) + startY := wave3ScholarlyPlain(wave3ScholarlyValAt(es, "start-date", "year", "value"), 8) + endY := wave3ScholarlyPlain(wave3ScholarlyValAt(es, "end-date", "year", "value"), 8) + if org != "" { + empRows = append(empRows, []string{org, role, startY, endY}) + } + } + } + } + + var workRows [][]string + if wGroups, okWG := wave3ScholarlyValAt(m, "activities-summary", "works", "group").([]any); okWG { + for _, wg := range wGroups { + if len(workRows) >= 15 { + break + } + wgMap, okWGM := wg.(map[string]any) + if !okWGM { + continue + } + wSums, _ := wgMap["work-summary"].([]any) + if len(wSums) == 0 { + continue + } + ws, okWS := wSums[0].(map[string]any) + if !okWS { + continue + } + wt := wave3ScholarlyPlain(wave3ScholarlyValAt(ws, "title", "title", "value"), 200) + if wt == "" { + continue + } + wType := wave3ScholarlyPlain(ws["type"], 40) + wYear := wave3ScholarlyPlain(wave3ScholarlyValAt(ws, "publication-date", "year", "value"), 8) + workRows = append(workRows, []string{wt, wType, wYear}) + } + } + + var bullets []string + if orcidID != "" { + bullets = append(bullets, "- **ORCID**: `"+orcidID+"`") + } + if profileURL != "" { + bullets = append(bullets, "- **Profile**: "+profileURL) + } + if len(empRows) > 0 { + bullets = append(bullets, "- **Employments**: "+strconv.Itoa(len(empRows))) + } + if len(workRows) > 0 { + bullets = append(bullets, "- **Works Listed**: "+strconv.Itoa(len(workRows))) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(fullName)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if bio != "" { + blocks = append(blocks, "## Biography\n\n"+bio) + } + if len(empRows) > 0 { + blocks = append(blocks, "## Employments\n\n"+formatDeclarativeGFMTable([]string{"Organization", "Role", "Start", "End"}, empRows)) + } + if len(workRows) > 0 { + blocks = append(blocks, "## Works\n\n"+formatDeclarativeGFMTable([]string{"Title", "Type", "Year"}, workRows)) + } + + rec := map[string]any{ + "source": "orcid", + "name": fullName, + } + if orcidID != "" { + rec["orcid"] = orcidID + } + if profileURL != "" { + rec["url"] = profileURL + } + if bio != "" { + rec["biography"] = bio + } + + desc := bio + desc = wave3ScholarlyTruncateDesc(desc) + return &DeclarativeFormattedDoc{ + Title: fullName, + Description: desc, + Author: fullName, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #305 ROR v2 JSON ──────────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyExtractRORDisplayName(org map[string]any) (string, []string) { + var display string + var aliases []string + if namesArr, okN := org["names"].([]any); okN { + for _, nv := range namesArr { + nm, okNM := nv.(map[string]any) + if !okNM { + continue + } + val := wave3ScholarlyPlain(nm["value"], 180) + if val == "" { + continue + } + isDisplay := false + if typesArr, okT := nm["types"].([]any); okT { + for _, tv := range typesArr { + if wave3ScholarlyStringVal(tv) == "ror_display" { + isDisplay = true + break + } + } + } + if isDisplay && display == "" { + display = val + } else if len(aliases) < 8 { + aliases = append(aliases, val) + } + } + } + if display == "" && len(aliases) > 0 { + display = aliases[0] + aliases = aliases[1:] + } + if display == "" { + display = wave3ScholarlyPlain(org["name"], 180) + } + return display, aliases +} + +func wave3ScholarlyFormatRORJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + // Search list (`items: [...]`) + if items, okI := m["items"].([]any); okI { + if len(items) == 0 { + return nil, false + } + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + for _, it := range items { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + om, okOM := it.(map[string]any) + if !okOM { + continue + } + rorID := wave3ScholarlyNormalizeRORID(wave3ScholarlyStringVal(om["id"])) + name, _ := wave3ScholarlyExtractRORDisplayName(om) + if name == "" || rorID == "" { + continue + } + status := wave3ScholarlyPlain(om["status"], 24) + types := strings.Join(wave3ScholarlyJoinStrings(om["types"], 4), ", ") + country := "" + if locs, okL := om["locations"].([]any); okL && len(locs) > 0 { + if lm, okLM := locs[0].(map[string]any); okLM { + country = wave3ScholarlyPlain(wave3ScholarlyValAt(lm, "geonames_details", "country_name"), 64) + } + } + rorURL := "https://ror.org/" + rorID + wave3ScholarlyAddLink(&links, seen, rorURL, origURL) + recs = append(recs, map[string]any{ + "source": "ror", + "rorId": rorID, + "name": name, + "status": status, + "country": country, + "url": rorURL, + }) + rows = append(rows, []string{rorID, name, types, country, status}) + } + if len(recs) == 0 { + return nil, false + } + total := len(recs) + if t, okT := wave3ScholarlyFloatVal(m["number_of_results"]); okT && int(t) > total { + total = int(t) + } + return &DeclarativeFormattedDoc{ + Title: "ROR Organization Search", + Markdown: "# ROR Organization Search\n\n" + formatDeclarativeGFMTable([]string{"ROR ID", "Name", "Types", "Country", "Status"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true + } + + rorID := wave3ScholarlyNormalizeRORID(wave3ScholarlyStringVal(m["id"])) + name, aliases := wave3ScholarlyExtractRORDisplayName(m) + if rorID == "" || name == "" { + return nil, false + } + rorURL := "https://ror.org/" + rorID + status := wave3ScholarlyPlain(m["status"], 24) + established := wave3ScholarlyPlain(m["established"], 8) + types := wave3ScholarlyJoinStrings(m["types"], 6) + domains := wave3ScholarlyJoinStrings(m["domains"], 8) + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, rorURL, origURL) + if linksArr, okL := m["links"].([]any); okL { + for _, lv := range linksArr { + if lm, okLM := lv.(map[string]any); okLM { + wave3ScholarlyAddLink(&links, seen, wave3ScholarlyStringVal(lm["value"]), origURL) + } + } + } + + var locNames []string + if locs, okL := m["locations"].([]any); okL { + for _, lv := range locs { + lm, okLM := lv.(map[string]any) + if !okLM { + continue + } + gd := wave3ScholarlyMapAt(lm, "geonames_details") + if gd == nil { + continue + } + city := wave3ScholarlyPlain(gd["name"], 64) + subdiv := wave3ScholarlyPlain(gd["country_subdivision_name"], 64) + country := wave3ScholarlyPlain(gd["country_name"], 64) + parts := make([]string, 0, 3) + for _, p := range []string{city, subdiv, country} { + if p != "" { + parts = append(parts, p) + } + } + if len(parts) > 0 { + locNames = append(locNames, strings.Join(parts, ", ")) + } + } + } + + var extIDs []string + if extArr, okE := m["external_ids"].([]any); okE { + for _, ev := range extArr { + em, okEM := ev.(map[string]any) + if !okEM { + continue + } + et := wave3ScholarlyPlain(em["type"], 32) + pref := wave3ScholarlyPlain(em["preferred"], 64) + if pref == "" { + allVals := wave3ScholarlyJoinStrings(em["all"], 2) + if len(allVals) > 0 { + pref = allVals[0] + } + } + if et != "" && pref != "" { + extIDs = append(extIDs, et+": "+pref) + } + } + } + + var bullets []string + bullets = append(bullets, "- **ROR ID**: `"+rorID+"`") + bullets = append(bullets, "- **ROR URL**: "+rorURL) + if status != "" { + bullets = append(bullets, "- **Status**: "+status) + } + if len(types) > 0 { + bullets = append(bullets, "- **Types**: "+strings.Join(types, ", ")) + } + if established != "" { + bullets = append(bullets, "- **Established**: "+established) + } + if len(locNames) > 0 { + bullets = append(bullets, "- **Location**: "+strings.Join(locNames, "; ")) + } + if len(domains) > 0 { + bullets = append(bullets, "- **Domains**: "+strings.Join(domains, ", ")) + } + if len(aliases) > 0 { + bullets = append(bullets, "- **Other Names**: "+strings.Join(aliases, ", ")) + } + if len(extIDs) > 0 { + bullets = append(bullets, "- **External IDs**: "+strings.Join(extIDs, "; ")) + } + + rec := map[string]any{ + "source": "ror", + "rorId": rorID, + "name": name, + "url": rorURL, + } + if status != "" { + rec["status"] = status + } + if established != "" { + rec["established"] = established + } + if len(types) > 0 { + rec["types"] = types + } + if len(domains) > 0 { + rec["domains"] = domains + } + if len(locNames) > 0 { + rec["locations"] = locNames + } + + return &DeclarativeFormattedDoc{ + Title: name, + Markdown: "# " + escapeDeclMarkdownBrackets(name) + "\n\n" + strings.Join(bullets, "\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #306 DBLP JSON & XML ──────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatDBLPJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + hitsMap := wave3ScholarlyMapAt(m, "result", "hits") + if hitsMap == nil { + return nil, false + } + hitArr, okH := hitsMap["hit"].([]any) + if !okH || len(hitArr) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, hv := range hitArr { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + hm, okHM := hv.(map[string]any) + if !okHM { + continue + } + info := wave3ScholarlyMapAt(hm, "info") + if info == nil { + continue + } + title := wave3ScholarlyPlain(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(info["title"]), wave3ScholarlyStringVal(info["author"])), 260) + if title == "" { + continue + } + venue := wave3ScholarlyPlain(info["venue"], 100) + year := wave3ScholarlyPlain(info["year"], 8) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(info["doi"])) + key := wave3ScholarlyPlain(info["key"], 120) + ee := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(info["ee"]), origURL) + dblpURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(info["url"]), origURL) + wave3ScholarlyAddLink(&links, seen, dblpURL, origURL) + wave3ScholarlyAddLink(&links, seen, ee, origURL) + + var authors []string + if rawAuth := wave3ScholarlyValAt(info, "authors", "author"); rawAuth != nil { + switch ta := rawAuth.(type) { + case []any: + for _, av := range ta { + if len(authors) >= 12 { + break + } + switch tv := av.(type) { + case string: + if s := wave3ScholarlyPlain(tv, 80); s != "" { + authors = append(authors, s) + } + case map[string]any: + if s := wave3ScholarlyPlain(tv["text"], 80); s != "" { + authors = append(authors, s) + } + } + } + case map[string]any: + if s := wave3ScholarlyPlain(ta["text"], 80); s != "" { + authors = append(authors, s) + } + } + } + + rec := map[string]any{ + "source": "dblp", + "title": title, + } + if key != "" { + rec["key"] = key + } + if len(authors) > 0 { + rec["authors"] = authors + } + if venue != "" { + rec["venue"] = venue + } + if year != "" { + rec["year"] = year + } + if doi != "" { + rec["doi"] = doi + } + if dblpURL != "" { + rec["url"] = dblpURL + } + recs = append(recs, rec) + rows = append(rows, []string{title, strings.Join(authors, ", "), venue, year, doi}) + } + if len(recs) == 0 { + return nil, false + } + + total := len(recs) + if f, okF := wave3ScholarlyFloatVal(hitsMap["@total"]); okF && int(f) > total { + total = int(f) + } + return &DeclarativeFormattedDoc{ + Title: "DBLP Search Results", + Markdown: "# DBLP Search Results\n\n" + formatDeclarativeGFMTable([]string{"Title", "Authors", "Venue", "Year", "DOI"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true +} + +func wave3ScholarlyFormatDBLPXML(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + low := asciiLowerExtractString(rawBody) + if strings.Contains(low, "anubis_version") || strings.Contains(low, "anubis_challenge") || strings.Contains(low, "making sure you're not a bot") || strings.Contains(low, " 0 { + rec["authors"] = r.Authors + } + if r.Venue != "" { + rec["venue"] = r.Venue + } + if r.Year != "" { + rec["year"] = r.Year + } + if r.EE != "" { + rec["ee"] = r.EE + } + recs = append(recs, rec) + rows = append(rows, []string{r.Title, strings.Join(r.Authors, ", "), r.Venue, r.Year}) + } + + title := records[0].Title + if len(records) > 1 { + title = "DBLP XML Records" + } + md := "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + formatDeclarativeGFMTable([]string{"Title", "Authors", "Venue", "Year"}, rows) + return &DeclarativeFormattedDoc{ + Title: title, + Author: strings.Join(records[0].Authors, ", "), + PublishedTime: records[0].Year, + Markdown: md, + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(len(recs)), + Returned: wave3ScholarlyIntPtr(len(recs)), + }, true +} + +// ── #307 bioRxiv / medRxiv JSON ───────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatBioRxivJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + coll, okC := m["collection"].([]any) + if !okC || len(coll) == 0 { + return nil, false + } + + // Pick latest version in collection + latest, _ := coll[len(coll)-1].(map[string]any) + if latest == nil { + return nil, false + } + title := wave3ScholarlyPlain(latest["title"], 300) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(latest["doi"])) + if title == "" || doi == "" { + return nil, false + } + authors := wave3ScholarlyPlain(latest["authors"], 600) + date := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(latest["date"])) + version := wave3ScholarlyPlain(latest["version"], 16) + category := wave3ScholarlyPlain(latest["category"], 80) + server := wave3ScholarlyPlain(latest["server"], 32) + license := wave3ScholarlyPlain(latest["license"], 64) + published := wave3ScholarlyPlain(latest["published"], 120) + abstract := wave3ScholarlyPlain(latest["abstract"], 4000) + jatsxml := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(latest["jatsxml"]), origURL) + + host := "www.biorxiv.org" + if strings.EqualFold(server, "medrxiv") || strings.Contains(strings.ToLower(origURL), "/medrxiv/") { + host = "www.medrxiv.org" + } + pageURL := "https://" + host + "/content/" + doi + if version != "" { + pageURL += "v" + version + } + + var bullets []string + bullets = append(bullets, "- **DOI**: `"+doi+"`") + if server != "" { + bullets = append(bullets, "- **Server**: "+server) + } + if version != "" { + bullets = append(bullets, "- **Version**: v"+version) + } + if authors != "" { + bullets = append(bullets, "- **Authors**: "+authors) + } + if date != "" { + bullets = append(bullets, "- **Posted**: "+date) + } + if category != "" { + bullets = append(bullets, "- **Category**: "+category) + } + if license != "" { + bullets = append(bullets, "- **License**: "+license) + } + if published != "" && published != "NA" { + bullets = append(bullets, "- **Published DOI**: "+published) + } + if jatsxml != "" { + bullets = append(bullets, "- **JATS XML**: "+jatsxml) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if abstract != "" { + blocks = append(blocks, "## Abstract\n\n"+abstract) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, pageURL, origURL) + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + wave3ScholarlyAddLink(&links, seen, jatsxml, origURL) + + rec := map[string]any{ + "source": "biorxiv-medrxiv", + "doi": doi, + "title": title, + "server": server, + "version": version, + "date": date, + "category": category, + } + if authors != "" { + rec["authors"] = authors + } + if license != "" { + rec["license"] = license + } + + desc := abstract + desc = wave3ScholarlyTruncateDesc(desc) + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: authors, + PublishedTime: date, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(len(coll)), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #308 NASA ADS JSON ────────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatNASAADSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + resp := wave3ScholarlyMapAt(m, "response") + if resp == nil { + return nil, false + } + docs, okD := resp["docs"].([]any) + if !okD || len(docs) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, dv := range docs { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + dm, okDM := dv.(map[string]any) + if !okDM { + continue + } + bibcode := wave3ScholarlyPlain(dm["bibcode"], 48) + titles := wave3ScholarlyJoinStrings(dm["title"], 2) + title := "" + if len(titles) > 0 { + title = titles[0] + } else { + title = wave3ScholarlyPlain(dm["title"], 260) + } + if title == "" && bibcode == "" { + continue + } + if title == "" { + title = bibcode + } + authors := wave3ScholarlyJoinStrings(dm["author"], 12) + pub := wave3ScholarlyPlain(dm["pub"], 120) + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(dm["pubdate"]), wave3ScholarlyStringVal(dm["year"]))) + citCount := wave3ScholarlyPlain(dm["citation_count"], 16) + abstract := wave3ScholarlyPlain(dm["abstract"], 3000) + dois := wave3ScholarlyJoinStrings(dm["doi"], 2) + doi := "" + if len(dois) > 0 { + doi = wave3ScholarlyNormalizeDOI(dois[0]) + } + absURL := "" + if bibcode != "" { + absURL = "https://ui.adsabs.harvard.edu/abs/" + url.PathEscape(bibcode) + "/abstract" + wave3ScholarlyAddLink(&links, seen, absURL, origURL) + } + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + + rec := map[string]any{ + "source": "nasa-ads", + "bibcode": bibcode, + "title": title, + } + if len(authors) > 0 { + rec["authors"] = authors + } + if pub != "" { + rec["publication"] = pub + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if citCount != "" { + rec["citationCount"] = citCount + } + if doi != "" { + rec["doi"] = doi + } + if abstract != "" { + rec["abstract"] = abstract + } + if absURL != "" { + rec["url"] = absURL + } + recs = append(recs, rec) + rows = append(rows, []string{bibcode, title, pubDate, citCount, doi}) + } + if len(recs) == 0 { + return nil, false + } + + total := len(recs) + if f, okF := wave3ScholarlyFloatVal(resp["numFound"]); okF && int(f) > total { + total = int(f) + } + + if len(recs) == 1 { + r := recs[0] + title := wave3ScholarlyStringVal(r["title"]) + var bullets []string + if b := wave3ScholarlyStringVal(r["bibcode"]); b != "" { + bullets = append(bullets, "- **Bibcode**: `"+b+"`") + } + if a, okA := r["authors"].([]string); okA && len(a) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(a, ", ")) + } + if p := wave3ScholarlyStringVal(r["publication"]); p != "" { + bullets = append(bullets, "- **Publication**: "+p) + } + if pd := wave3ScholarlyStringVal(r["publishedDate"]); pd != "" { + bullets = append(bullets, "- **Published**: "+pd) + } + if d := wave3ScholarlyStringVal(r["doi"]); d != "" { + bullets = append(bullets, "- **DOI**: `"+d+"`") + } + if cc := wave3ScholarlyStringVal(r["citationCount"]); cc != "" { + bullets = append(bullets, "- **Citations**: "+cc) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + abs := wave3ScholarlyStringVal(r["abstract"]) + if abs != "" { + blocks = append(blocks, "## Abstract\n\n"+abs) + } + desc := abs + desc = wave3ScholarlyTruncateDesc(desc) + authShort := "" + if a, okA := r["authors"].([]string); okA && len(a) > 0 { + if len(a) > 4 { + authShort = strings.Join(a[:4], ", ") + } else { + authShort = strings.Join(a, ", ") + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: authShort, + PublishedTime: wave3ScholarlyStringVal(r["publishedDate"]), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + return &DeclarativeFormattedDoc{ + Title: "NASA ADS Search Results", + Markdown: "# NASA ADS Search Results\n\n" + formatDeclarativeGFMTable([]string{"Bibcode", "Title", "Date", "Citations", "DOI"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true +} + +// ── #309 NIH RePORTER JSON ────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatNIHReporterJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + resArr, okR := m["results"].([]any) + if !okR || len(resArr) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, rv := range resArr { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + pm, okPM := rv.(map[string]any) + if !okPM { + continue + } + title := wave3ScholarlyPlain(pm["project_title"], 280) + projNum := wave3ScholarlyPlain(pm["project_num"], 48) + applID := wave3ScholarlyPlain(pm["appl_id"], 24) + if title == "" && projNum == "" { + continue + } + if title == "" { + title = projNum + } + orgName := wave3ScholarlyPlain(wave3ScholarlyValAt(pm, "organization", "org_name"), 140) + orgCity := wave3ScholarlyPlain(wave3ScholarlyValAt(pm, "organization", "org_city"), 64) + orgState := wave3ScholarlyPlain(wave3ScholarlyValAt(pm, "organization", "org_state"), 16) + awardAmt := wave3ScholarlyFormatAmount(pm["award_amount"]) + fy := wave3ScholarlyPlain(pm["fiscal_year"], 8) + startDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(pm["project_start_date"])) + endDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(pm["project_end_date"])) + icName := wave3ScholarlyPlain(wave3ScholarlyValAt(pm, "agency_ic_admin", "name"), 120) + abstract := wave3ScholarlyPlain(pm["abstract_text"], 3500) + detailURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(pm["project_detail_url"]), origURL) + if detailURL == "" && applID != "" { + detailURL = "https://reporter.nih.gov/project-details/" + applID + } + wave3ScholarlyAddLink(&links, seen, detailURL, origURL) + + var pis []string + if piArr, okPI := pm["principal_investigators"].([]any); okPI { + for _, piv := range piArr { + if len(pis) >= 8 { + break + } + if pim, okPIM := piv.(map[string]any); okPIM { + if fn := wave3ScholarlyPlain(pim["full_name"], 100); fn != "" { + pis = append(pis, fn) + } else { + comb := strings.TrimSpace(wave3ScholarlyPlain(pim["first_name"], 50) + " " + wave3ScholarlyPlain(pim["last_name"], 50)) + if comb != "" { + pis = append(pis, comb) + } + } + } + } + } + + rec := map[string]any{ + "source": "nih-reporter", + "title": title, + "projectNum": projNum, + } + if applID != "" { + rec["applId"] = applID + } + if orgName != "" { + rec["organization"] = orgName + } + if orgCity != "" && orgState != "" { + rec["location"] = orgCity + ", " + orgState + } + if len(pis) > 0 { + rec["principalInvestigators"] = pis + } + if awardAmt != "" { + rec["awardAmount"] = "$" + awardAmt + } + if fy != "" { + rec["fiscalYear"] = fy + } + if startDate != "" { + rec["startDate"] = startDate + } + if endDate != "" { + rec["endDate"] = endDate + } + if icName != "" { + rec["agencyIC"] = icName + } + if abstract != "" { + rec["abstract"] = abstract + } + if detailURL != "" { + rec["url"] = detailURL + } + recs = append(recs, rec) + amtDisp := "" + if awardAmt != "" { + amtDisp = "$" + awardAmt + } + rows = append(rows, []string{projNum, title, orgName, fy, amtDisp}) + } + if len(recs) == 0 { + return nil, false + } + + total := len(recs) + if f, okF := wave3ScholarlyFloatVal(wave3ScholarlyValAt(m, "meta", "total")); okF && int(f) > total { + total = int(f) + } + + if len(recs) == 1 { + r := recs[0] + title := wave3ScholarlyStringVal(r["title"]) + var bullets []string + if pn := wave3ScholarlyStringVal(r["projectNum"]); pn != "" { + bullets = append(bullets, "- **Project Number**: `"+pn+"`") + } + if aid := wave3ScholarlyStringVal(r["applId"]); aid != "" { + bullets = append(bullets, "- **Application ID**: `"+aid+"`") + } + if pis, okPI := r["principalInvestigators"].([]string); okPI && len(pis) > 0 { + bullets = append(bullets, "- **Principal Investigators**: "+strings.Join(pis, ", ")) + } + if org := wave3ScholarlyStringVal(r["organization"]); org != "" { + bullets = append(bullets, "- **Organization**: "+org) + } + if ic := wave3ScholarlyStringVal(r["agencyIC"]); ic != "" { + bullets = append(bullets, "- **Administering IC**: "+ic) + } + if fy := wave3ScholarlyStringVal(r["fiscalYear"]); fy != "" { + bullets = append(bullets, "- **Fiscal Year**: "+fy) + } + if amt := wave3ScholarlyStringVal(r["awardAmount"]); amt != "" { + bullets = append(bullets, "- **Award Amount**: "+amt) + } + if sd := wave3ScholarlyStringVal(r["startDate"]); sd != "" { + ed := wave3ScholarlyStringVal(r["endDate"]) + if ed != "" { + bullets = append(bullets, "- **Project Dates**: "+sd+" to "+ed) + } else { + bullets = append(bullets, "- **Start Date**: "+sd) + } + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + abs := wave3ScholarlyStringVal(r["abstract"]) + if abs != "" { + blocks = append(blocks, "## Abstract\n\n"+abs) + } + desc := abs + desc = wave3ScholarlyTruncateDesc(desc) + authStr := "" + if pis, okPI := r["principalInvestigators"].([]string); okPI { + authStr = strings.Join(pis, ", ") + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: authStr, + PublishedTime: wave3ScholarlyStringVal(r["startDate"]), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + return &DeclarativeFormattedDoc{ + Title: "NIH RePORTER Projects", + Markdown: "# NIH RePORTER Projects\n\n" + formatDeclarativeGFMTable([]string{"Project #", "Title", "Organization", "FY", "Award"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true +} + +// ── #310 NSF Awards JSON ──────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatNSFAwardsJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + resp := wave3ScholarlyMapAt(m, "response") + if resp == nil { + return nil, false + } + if sn, exists := resp["serviceNotification"]; exists && sn != nil { + if arr, okSN := sn.([]any); okSN && len(arr) > 0 { + return nil, false + } + } + awards, okA := resp["award"].([]any) + if !okA || len(awards) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, av := range awards { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + am, okAM := av.(map[string]any) + if !okAM { + continue + } + id := wave3ScholarlyPlain(am["id"], 24) + title := wave3ScholarlyPlain(am["title"], 280) + if id == "" || title == "" { + continue + } + agency := wave3ScholarlyPlain(am["agency"], 32) + awardee := wave3ScholarlyFirstNonEmpty(wave3ScholarlyPlain(am["awardeeName"], 140), wave3ScholarlyPlain(am["awardee"], 140)) + city := wave3ScholarlyPlain(am["awardeeCity"], 64) + state := wave3ScholarlyPlain(am["awardeeStateCode"], 16) + pi := wave3ScholarlyPlain(am["pdPIName"], 100) + if pi == "" { + pi = strings.TrimSpace(wave3ScholarlyPlain(am["piFirstName"], 50) + " " + wave3ScholarlyPlain(am["piLastName"], 50)) + } + amt := wave3ScholarlyFormatAmount(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(am["fundsObligatedAmt"]), wave3ScholarlyStringVal(am["estimatedTotalAmt"]))) + date := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(am["date"])) + startDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(am["startDate"])) + expDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(am["expDate"])) + prog := wave3ScholarlyPlain(am["fundProgramName"], 140) + abstract := wave3ScholarlyPlain(am["abstractText"], 3500) + awardURL := "https://www.nsf.gov/awardsearch/show-award?AWD_ID=" + url.QueryEscape(id) + wave3ScholarlyAddLink(&links, seen, awardURL, origURL) + + rec := map[string]any{ + "source": "nsf-awards", + "awardId": id, + "title": title, + } + if agency != "" { + rec["agency"] = agency + } + if awardee != "" { + rec["awardeeName"] = awardee + } + if pi != "" { + rec["principalInvestigator"] = pi + } + if amt != "" { + rec["fundsObligatedAmt"] = "$" + amt + } + if date != "" { + rec["date"] = date + } + if startDate != "" { + rec["startDate"] = startDate + } + if expDate != "" { + rec["expDate"] = expDate + } + if prog != "" { + rec["program"] = prog + } + if city != "" && state != "" { + rec["location"] = city + ", " + state + } + if abstract != "" { + rec["abstract"] = abstract + } + rec["url"] = awardURL + recs = append(recs, rec) + amtDisp := "" + if amt != "" { + amtDisp = "$" + amt + } + rows = append(rows, []string{id, title, awardee, pi, amtDisp}) + } + if len(recs) == 0 { + return nil, false + } + + if len(recs) == 1 { + r := recs[0] + title := wave3ScholarlyStringVal(r["title"]) + var bullets []string + bullets = append(bullets, "- **NSF Award ID**: `"+wave3ScholarlyStringVal(r["awardId"])+"`") + if pi := wave3ScholarlyStringVal(r["principalInvestigator"]); pi != "" { + bullets = append(bullets, "- **Principal Investigator**: "+pi) + } + if aw := wave3ScholarlyStringVal(r["awardeeName"]); aw != "" { + bullets = append(bullets, "- **Awardee**: "+aw) + } + if loc := wave3ScholarlyStringVal(r["location"]); loc != "" { + bullets = append(bullets, "- **Location**: "+loc) + } + if prog := wave3ScholarlyStringVal(r["program"]); prog != "" { + bullets = append(bullets, "- **Program**: "+prog) + } + if amt := wave3ScholarlyStringVal(r["fundsObligatedAmt"]); amt != "" { + bullets = append(bullets, "- **Obligated Amount**: "+amt) + } + if d := wave3ScholarlyStringVal(r["date"]); d != "" { + bullets = append(bullets, "- **Award Date**: "+d) + } + if sd := wave3ScholarlyStringVal(r["startDate"]); sd != "" { + ed := wave3ScholarlyStringVal(r["expDate"]) + if ed != "" { + bullets = append(bullets, "- **Term**: "+sd+" to "+ed) + } else { + bullets = append(bullets, "- **Start Date**: "+sd) + } + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + abs := wave3ScholarlyStringVal(r["abstract"]) + if abs != "" { + blocks = append(blocks, "## Abstract\n\n"+abs) + } + desc := abs + desc = wave3ScholarlyTruncateDesc(desc) + return &DeclarativeFormattedDoc{ + Title: title, + Description: desc, + Author: wave3ScholarlyStringVal(r["principalInvestigator"]), + PublishedTime: wave3ScholarlyStringVal(r["date"]), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + return &DeclarativeFormattedDoc{ + Title: "NSF Awards Search", + Markdown: "# NSF Awards Search\n\n" + formatDeclarativeGFMTable([]string{"Award ID", "Title", "Awardee", "PI", "Amount"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(len(recs)), + Returned: wave3ScholarlyIntPtr(len(recs)), + }, true +} + +// ── #311 DOE OSTI JSON ────────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatDOEOSTIJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var items []any + switch pv := parsed.(type) { + case []any: + items = pv + case map[string]any: + if wave3ScholarlyIsGenericJSONError(pv) { + return nil, false + } + if arr, okR := pv["records"].([]any); okR { + items = arr + } else { + items = []any{pv} + } + } + if len(items) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, it := range items { + if len(recs) >= wave3ScholarlyMaxRecords { + break + } + rm, okRM := it.(map[string]any) + if !okRM { + continue + } + title := wave3ScholarlyPlain(rm["title"], 280) + ostiID := wave3ScholarlyPlain(rm["osti_id"], 24) + if title == "" { + continue + } + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(rm["doi"])) + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(rm["publication_date"])) + prodType := wave3ScholarlyPlain(rm["product_type"], 64) + journal := wave3ScholarlyPlain(rm["journal_name"], 140) + publisher := wave3ScholarlyPlain(rm["publisher"], 140) + desc := wave3ScholarlyPlain(rm["description"], 3500) + authors := wave3ScholarlyJoinStrings(rm["authors"], 12) + researchOrgs := wave3ScholarlyJoinStrings(rm["research_orgs"], 6) + sponsorOrgs := wave3ScholarlyJoinStrings(rm["sponsor_orgs"], 6) + subjects := wave3ScholarlyJoinStrings(rm["subjects"], 6) + + biblioURL := "" + if ostiID != "" { + biblioURL = "https://www.osti.gov/biblio/" + ostiID + wave3ScholarlyAddLink(&links, seen, biblioURL, origURL) + } + if linkArr, okL := rm["links"].([]any); okL { + for _, lv := range linkArr { + if lm, okLM := lv.(map[string]any); okLM { + wave3ScholarlyAddLink(&links, seen, wave3ScholarlyStringVal(lm["href"]), origURL) + } + } + } + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + + rec := map[string]any{ + "source": "doe-osti", + "title": title, + } + if ostiID != "" { + rec["ostiId"] = ostiID + } + if doi != "" { + rec["doi"] = doi + } + if pubDate != "" { + rec["publicationDate"] = pubDate + } + if prodType != "" { + rec["productType"] = prodType + } + if journal != "" { + rec["journalName"] = journal + } + if publisher != "" { + rec["publisher"] = publisher + } + if len(authors) > 0 { + rec["authors"] = authors + } + if len(researchOrgs) > 0 { + rec["researchOrgs"] = researchOrgs + } + if len(sponsorOrgs) > 0 { + rec["sponsorOrgs"] = sponsorOrgs + } + if len(subjects) > 0 { + rec["subjects"] = subjects + } + if desc != "" { + rec["description"] = desc + } + if biblioURL != "" { + rec["url"] = biblioURL + } + recs = append(recs, rec) + rows = append(rows, []string{ostiID, title, prodType, pubDate, doi}) + } + if len(recs) == 0 { + return nil, false + } + + if len(recs) == 1 { + r := recs[0] + title := wave3ScholarlyStringVal(r["title"]) + var bullets []string + if oid := wave3ScholarlyStringVal(r["ostiId"]); oid != "" { + bullets = append(bullets, "- **OSTI ID**: `"+oid+"`") + } + if a, okA := r["authors"].([]string); okA && len(a) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(a, "; ")) + } + if pt := wave3ScholarlyStringVal(r["productType"]); pt != "" { + bullets = append(bullets, "- **Product Type**: "+pt) + } + if j := wave3ScholarlyStringVal(r["journalName"]); j != "" { + bullets = append(bullets, "- **Journal**: "+j) + } + if pub := wave3ScholarlyStringVal(r["publisher"]); pub != "" { + bullets = append(bullets, "- **Publisher**: "+pub) + } + if pd := wave3ScholarlyStringVal(r["publicationDate"]); pd != "" { + bullets = append(bullets, "- **Published**: "+pd) + } + if d := wave3ScholarlyStringVal(r["doi"]); d != "" { + bullets = append(bullets, "- **DOI**: `"+d+"`") + } + if ro, okRO := r["researchOrgs"].([]string); okRO && len(ro) > 0 { + bullets = append(bullets, "- **Research Organizations**: "+strings.Join(ro, "; ")) + } + if so, okSO := r["sponsorOrgs"].([]string); okSO && len(so) > 0 { + bullets = append(bullets, "- **Sponsoring Organizations**: "+strings.Join(so, "; ")) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + desc := wave3ScholarlyStringVal(r["description"]) + if desc != "" { + blocks = append(blocks, "## Abstract\n\n"+desc) + } + shortDesc := desc + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + authShort := "" + if a, okA := r["authors"].([]string); okA && len(a) > 0 { + if len(a) > 4 { + authShort = strings.Join(a[:4], "; ") + } else { + authShort = strings.Join(a, "; ") + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: shortDesc, + Author: authShort, + PublishedTime: wave3ScholarlyStringVal(r["publicationDate"]), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + return &DeclarativeFormattedDoc{ + Title: "DOE OSTI Records", + Markdown: "# DOE OSTI Records\n\n" + formatDeclarativeGFMTable([]string{"OSTI ID", "Title", "Type", "Published", "DOI"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(len(recs)), + Returned: wave3ScholarlyIntPtr(len(recs)), + }, true +} + +// ── #312 Research Repository Pack JSON (Zenodo, Figshare, Dryad, OSF) ─────────────────────────── + +func wave3ScholarlyFormatRepoPackJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + var repoName, recID, title, desc, doi, pubDate, license, itemURL string + var authors, keywords []string + var fileCount int + + lowURL := strings.ToLower(origURL) + + // 1. OSF JSON:API (`data.type == "nodes"`) + if dataObj := wave3ScholarlyMapAt(m, "data"); dataObj != nil && wave3ScholarlyPlain(dataObj["type"], 24) == "nodes" { + repoName = "OSF" + recID = wave3ScholarlyPlain(dataObj["id"], 32) + attrs := wave3ScholarlyMapAt(dataObj, "attributes") + if attrs == nil { + return nil, false + } + title = wave3ScholarlyPlain(attrs["title"], 280) + desc = wave3ScholarlyPlain(attrs["description"], 3500) + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(attrs["date_modified"]), wave3ScholarlyStringVal(attrs["date_created"]))) + keywords = wave3ScholarlyJoinStrings(attrs["tags"], 10) + itemURL = SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(wave3ScholarlyValAt(dataObj, "links", "html")), origURL) + if itemURL == "" && recID != "" { + itemURL = "https://osf.io/" + recID + "/" + } + } else if m["metadata"] != nil && (strings.Contains(lowURL, "zenodo.org") || m["conceptrecid"] != nil || m["recid"] != nil) { + // 2. Zenodo record JSON + repoName = "Zenodo" + recID = wave3ScholarlyPlain(m["id"], 32) + meta := wave3ScholarlyMapAt(m, "metadata") + if meta == nil { + return nil, false + } + title = wave3ScholarlyPlain(meta["title"], 280) + desc = wave3ScholarlyPlain(wave3ScholarlyCleanText(wave3ScholarlyStringVal(meta["description"])), 3500) + doi = wave3ScholarlyNormalizeDOI(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(m["doi"]), wave3ScholarlyStringVal(meta["doi"]))) + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(meta["publication_date"])) + license = wave3ScholarlyPlain(wave3ScholarlyValAt(meta, "license", "id"), 64) + keywords = wave3ScholarlyJoinStrings(meta["keywords"], 10) + if creators, okC := meta["creators"].([]any); okC { + for _, cv := range creators { + if len(authors) >= 16 { + break + } + if cm, okCM := cv.(map[string]any); okCM { + if n := wave3ScholarlyPlain(cm["name"], 100); n != "" { + authors = append(authors, n) + } + } + } + } + if files, okF := m["files"].([]any); okF { + fileCount = len(files) + } + itemURL = SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(wave3ScholarlyValAt(m, "links", "self_html")), origURL) + if itemURL == "" && recID != "" { + itemURL = "https://zenodo.org/records/" + recID + } + } else if strings.Contains(lowURL, "datadryad.org") || m["identifier"] != nil && (m["storageSize"] != nil || m["versionNumber"] != nil) { + // 3. Dryad API v2 dataset JSON + repoName = "Dryad" + recID = wave3ScholarlyPlain(m["id"], 32) + title = wave3ScholarlyPlain(m["title"], 280) + desc = wave3ScholarlyPlain(wave3ScholarlyCleanText(wave3ScholarlyStringVal(m["abstract"])), 3500) + doi = wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(m["identifier"])) + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(m["publicationDate"])) + license = wave3ScholarlyPlain(m["license"], 120) + keywords = wave3ScholarlyJoinStrings(m["keywords"], 10) + if aArr, okA := m["authors"].([]any); okA { + for _, av := range aArr { + if len(authors) >= 16 { + break + } + if am, okAM := av.(map[string]any); okAM { + full := strings.TrimSpace(wave3ScholarlyPlain(am["firstName"], 50) + " " + wave3ScholarlyPlain(am["lastName"], 50)) + if full != "" { + authors = append(authors, full) + } + } + } + } + if doi != "" { + itemURL = "https://datadryad.org/dataset/doi:" + doi + } + } else { + // 4. Figshare API v2 article JSON + repoName = "Figshare" + recID = wave3ScholarlyPlain(m["id"], 32) + title = wave3ScholarlyPlain(m["title"], 280) + desc = wave3ScholarlyPlain(wave3ScholarlyCleanText(wave3ScholarlyStringVal(m["description"])), 3500) + doi = wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(m["doi"])) + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(m["published_date"]), wave3ScholarlyStringVal(m["posted_date"]), wave3ScholarlyStringVal(m["created_date"]))) + license = wave3ScholarlyPlain(wave3ScholarlyValAt(m, "license", "name"), 80) + keywords = wave3ScholarlyJoinStrings(m["tags"], 10) + if aArr, okA := m["authors"].([]any); okA { + for _, av := range aArr { + if len(authors) >= 16 { + break + } + if am, okAM := av.(map[string]any); okAM { + if fn := wave3ScholarlyPlain(am["full_name"], 100); fn != "" { + authors = append(authors, fn) + } + } + } + } + if files, okF := m["files"].([]any); okF { + fileCount = len(files) + } + itemURL = SanitizeSchemaHTTPSURL(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(m["url_public_html"]), wave3ScholarlyStringVal(m["figshare_url"])), origURL) + } + + if title == "" { + return nil, false + } + + var bullets []string + bullets = append(bullets, "- **Repository**: "+repoName) + if recID != "" { + bullets = append(bullets, "- **Record ID**: `"+recID+"`") + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + if len(authors) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(authors, ", ")) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if license != "" { + bullets = append(bullets, "- **License**: "+license) + } + if fileCount > 0 { + bullets = append(bullets, "- **Files**: "+strconv.Itoa(fileCount)) + } + if len(keywords) > 0 { + bullets = append(bullets, "- **Keywords**: "+strings.Join(keywords, ", ")) + } + if itemURL != "" { + bullets = append(bullets, "- **URL**: "+itemURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, itemURL, origURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + } + + rec := map[string]any{ + "source": "research-repo-pack", + "repository": repoName, + "title": title, + } + if recID != "" { + rec["id"] = recID + } + if doi != "" { + rec["doi"] = doi + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if license != "" { + rec["license"] = license + } + if len(authors) > 0 { + rec["authors"] = authors + } + if itemURL != "" { + rec["url"] = itemURL + } + + shortDesc := desc + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + return &DeclarativeFormattedDoc{ + Title: title, + Description: shortDesc, + Author: strings.Join(authors, ", "), + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + }, true +} + +// ── #313 DataCite JSON:API ────────────────────────────────────────────────────────────────────── + +func wave3ScholarlyFormatDataCiteJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok || wave3ScholarlyIsGenericJSONError(m) { + return nil, false + } + + var items []map[string]any + switch dv := m["data"].(type) { + case map[string]any: + items = []map[string]any{dv} + case []any: + for _, el := range dv { + if len(items) >= wave3ScholarlyMaxRecords { + break + } + if em, okEM := el.(map[string]any); okEM { + items = append(items, em) + } + } + } + if len(items) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, item := range items { + attrs := wave3ScholarlyMapAt(item, "attributes") + if attrs == nil { + continue + } + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(attrs["doi"]), wave3ScholarlyStringVal(item["id"]))) + title := "" + if titles, okT := attrs["titles"].([]any); okT && len(titles) > 0 { + if tm, okTM := titles[0].(map[string]any); okTM { + title = wave3ScholarlyPlain(tm["title"], 280) + } + } + if title == "" && doi == "" { + continue + } + if title == "" { + title = doi + } + publisher := wave3ScholarlyPlain(attrs["publisher"], 140) + pubYear := wave3ScholarlyPlain(attrs["publicationYear"], 8) + resType := wave3ScholarlyPlain(wave3ScholarlyValAt(attrs, "types", "resourceTypeGeneral"), 64) + targetURL := SanitizeSchemaHTTPSURL(wave3ScholarlyStringVal(attrs["url"]), origURL) + wave3ScholarlyAddLink(&links, seen, targetURL, origURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, origURL) + wave3ScholarlyAddLink(&links, seen, "https://commons.datacite.org/doi.org/"+doi, origURL) + } + + var creators []string + if crArr, okCR := attrs["creators"].([]any); okCR { + for _, cv := range crArr { + if len(creators) >= 16 { + break + } + if cm, okCM := cv.(map[string]any); okCM { + n := wave3ScholarlyPlain(cm["name"], 100) + if n == "" { + n = strings.TrimSpace(wave3ScholarlyPlain(cm["givenName"], 50) + " " + wave3ScholarlyPlain(cm["familyName"], 50)) + } + if n != "" { + creators = append(creators, n) + } + } + } + } + + desc := "" + if descArr, okD := attrs["descriptions"].([]any); okD && len(descArr) > 0 { + if dm, okDM := descArr[0].(map[string]any); okDM { + desc = wave3ScholarlyPlain(wave3ScholarlyCleanText(wave3ScholarlyStringVal(dm["description"])), 3500) + } + } + + rec := map[string]any{ + "source": "datacite", + "doi": doi, + "title": title, + } + if len(creators) > 0 { + rec["creators"] = creators + } + if publisher != "" { + rec["publisher"] = publisher + } + if pubYear != "" { + rec["publicationYear"] = pubYear + } + if resType != "" { + rec["resourceType"] = resType + } + if targetURL != "" { + rec["url"] = targetURL + } + if desc != "" { + rec["description"] = desc + } + recs = append(recs, rec) + rows = append(rows, []string{doi, title, publisher, pubYear, resType}) + } + if len(recs) == 0 { + return nil, false + } + + total := len(recs) + if f, okF := wave3ScholarlyFloatVal(wave3ScholarlyValAt(m, "meta", "total")); okF && int(f) > total { + total = int(f) + } + + if len(recs) == 1 { + r := recs[0] + title := wave3ScholarlyStringVal(r["title"]) + var bullets []string + if d := wave3ScholarlyStringVal(r["doi"]); d != "" { + bullets = append(bullets, "- **DOI**: `"+d+"`") + } + if cr, okCR := r["creators"].([]string); okCR && len(cr) > 0 { + bullets = append(bullets, "- **Creators**: "+strings.Join(cr, ", ")) + } + if pub := wave3ScholarlyStringVal(r["publisher"]); pub != "" { + bullets = append(bullets, "- **Publisher**: "+pub) + } + if py := wave3ScholarlyStringVal(r["publicationYear"]); py != "" { + bullets = append(bullets, "- **Publication Year**: "+py) + } + if rt := wave3ScholarlyStringVal(r["resourceType"]); rt != "" { + bullets = append(bullets, "- **Resource Type**: "+rt) + } + if u := wave3ScholarlyStringVal(r["url"]); u != "" { + bullets = append(bullets, "- **Landing URL**: "+u) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + desc := wave3ScholarlyStringVal(r["description"]) + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + shortDesc := desc + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + authShort := "" + if cr, okCR := r["creators"].([]string); okCR && len(cr) > 0 { + if len(cr) > 4 { + authShort = strings.Join(cr[:4], ", ") + } else { + authShort = strings.Join(cr, ", ") + } + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: shortDesc, + Author: authShort, + PublishedTime: wave3ScholarlyStringVal(r["publicationYear"]), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(1), + }, true + } + + return &DeclarativeFormattedDoc{ + Title: "DataCite DOIs", + Markdown: "# DataCite DOIs\n\n" + formatDeclarativeGFMTable([]string{"DOI", "Title", "Publisher", "Year", "Type"}, rows), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(total), + Returned: wave3ScholarlyIntPtr(len(recs)), + Truncated: wave3ScholarlyBoolPtr(total > len(recs)), + }, true +} + +// ── HTML Extractors (#301-#314) ───────────────────────────────────────────────────────────────── + +func wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, sourceName string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := wave3ScholarlyFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "citation_title"), 280), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 280), + ) + if title == "" && doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 280) + } + if title == "" { + title = SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 280) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + + var authors []string + for _, a := range extractAllMetaContentsDeclHTML(rawHTML, "citation_author") { + if len(authors) >= 20 { + break + } + if clean := SanitizeSchemaPlainField(a, 100); clean != "" { + authors = append(authors, clean) + } + } + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_publication_date"), + extractMetaContentDeclHTML(rawHTML, "citation_date"), + extractMetaContentDeclHTML(rawHTML, "citation_online_date"), + )) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_doi"), + extractMetaContentDeclHTML(rawHTML, "dc.identifier"), + )) + journal := SanitizeSchemaPlainField(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_journal_title"), + extractMetaContentDeclHTML(rawHTML, "citation_conference_title"), + extractMetaContentDeclHTML(rawHTML, "citation_preprint_server"), + ), 140) + pdfURL := SanitizeSchemaHTTPSURL(extractMetaContentDeclHTML(rawHTML, "citation_pdf_url"), baseURL) + abstract := SanitizeSchemaPlainField(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_abstract"), + extractMetaContentDeclHTML(rawHTML, "description"), + extractMetaContentDeclHTML(rawHTML, "og:description"), + ), 3500) + + // Try JSON-LD ScholarlyArticle / Dataset enrichment if meta tags were sparse + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 8) { + if pubDate == "" { + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(ld["datePublished"])) + } + if abstract == "" { + abstract = wave3ScholarlyPlain(ld["description"], 3500) + } + if doi == "" { + doi = wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(ld["sameAs"])) + } + } + + if abstract == "" && doc != nil { + for _, sel := range []string{"#abstract", ".abstract", ".pane-biorxiv-abstract", ".abstract-content", ".s-abstract-content", "article p", "main p"} { + if txt := SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(sel)), 3500); len(txt) >= 30 { + abstract = strings.TrimPrefix(txt, "Abstract") + abstract = strings.TrimSpace(strings.TrimPrefix(abstract, ":")) + break + } + } + } + + if len(authors) == 0 && doi == "" && abstract == "" && pdfURL == "" { + return nil + } + + var bullets []string + if len(authors) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(authors, ", ")) + } + if journal != "" { + bullets = append(bullets, "- **Venue / Journal**: "+journal) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + if pdfURL != "" { + bullets = append(bullets, "- **PDF**: "+pdfURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if abstract != "" { + blocks = append(blocks, "## Abstract\n\n"+abstract) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, baseURL, baseURL) + wave3ScholarlyAddLink(&links, seen, pdfURL, baseURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, baseURL) + } + + rec := map[string]any{ + "source": sourceName, + "title": title, + "url": baseURL, + } + if len(authors) > 0 { + rec["authors"] = authors + } + if journal != "" { + rec["venue"] = journal + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if doi != "" { + rec["doi"] = doi + } + if pdfURL != "" { + rec["pdfUrl"] = pdfURL + } + + shortDesc := abstract + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + authShort := strings.Join(authors, ", ") + if len(authors) > 4 { + authShort = strings.Join(authors[:4], ", ") + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: shortDesc, + Author: authShort, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractInfoPageHTML(rawHTML, baseURL, extractorID, sourceName string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3ScholarlyFirstNonEmpty( + SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 240), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240), + SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240), + ) + if title == "" || wave3ScholarlyIsNegativeTitle(title) { + return nil + } + desc := SanitizeSchemaPlainField(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "og:description"), + extractMetaContentDeclHTML(rawHTML, "description"), + ), 600) + var paras []string + for _, p := range doc.Select("main p, article p, p", 8) { + txt := SanitizeSchemaPlainField(wave3ScholarlyCleanText(p.Text()), 600) + if len(txt) >= 25 { + paras = append(paras, txt) + } + } + if desc == "" && len(paras) == 0 { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + 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": sourceName, "title": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractORCIDHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + // Strict Angular CSR SPA rejection: ORCID + [ROBOTS_PARAMETERS] / no researcher name + if strings.Contains(probeLower, "[robots_parameters]") { + return nil + } + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := "" + if doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 180) + } + if title == "" { + title = SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 180) + } + if title == "" || strings.EqualFold(title, "ORCID") || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + orcidID := "" + if u, err := url.Parse(baseURL); err == nil { + orcidID = wave3ScholarlyNormalizeORCID(strings.Trim(u.Path, "/")) + } + var bullets []string + if orcidID != "" { + bullets = append(bullets, "- **ORCID**: `"+orcidID+"`") + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if doc != nil { + if bio := SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(".biography, #biography")), 1500); bio != "" { + blocks = append(blocks, "## Biography\n\n"+bio) + } + } + if len(blocks) < 2 { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Author: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{{"source": "orcid", "orcid": orcidID, "name": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractRORHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := "" + if doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 220) + } + if title == "" { + title = SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 220) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + desc := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600) + if desc == "" && doc != nil { + desc = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("main p, p")), 600) + } + if desc == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + desc, + Links: []string{baseURL}, + Records: []map[string]any{{"source": "ror", "name": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractDBLPHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + if strings.Contains(probeLower, "anubis_version") || strings.Contains(probeLower, "anubis_challenge") || strings.Contains(probeLower, "making sure you're not a bot") { + return nil + } + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3ScholarlyFirstNonEmpty( + SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("#headline h1, h1")), 260), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 260), + ) + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + + var recs []map[string]any + var itemBullets []string + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, baseURL, baseURL) + + for _, el := range doc.Select("li.entry cite.data, cite.data", 25) { + txt := SanitizeSchemaPlainField(wave3ScholarlyCleanText(el.Text()), 400) + if txt == "" { + continue + } + itemBullets = append(itemBullets, "- "+txt) + recs = append(recs, map[string]any{ + "source": "dblp", + "citation": txt, + }) + } + if len(recs) == 0 { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(itemBullets, "\n")} + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3ScholarlyIntPtr(len(recs)), + Returned: wave3ScholarlyIntPtr(len(recs)), + } +} + +func wave3ScholarlyExtractNIHReporterHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := "" + if doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1.project-title, h1")), 260) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + desc := "" + if doc != nil { + desc = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(".abstract-text, #abstract, main p")), 2000) + } + if desc == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + desc, + Links: []string{baseURL}, + Records: []map[string]any{{"source": "nih-reporter", "title": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractNSFAwardsHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := "" + if doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1.award-title, h1")), 260) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + desc := "" + if doc != nil { + desc = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(".award-abstract, #abstract, main p")), 2000) + } + if desc == "" { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + desc, + Links: []string{baseURL}, + Records: []map[string]any{{"source": "nsf-awards", "title": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractRepoPackHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + repoName := "Research Repository" + switch { + case strings.Contains(urlLower, "zenodo.org"): + repoName = "Zenodo" + case strings.Contains(urlLower, "datadryad.org"): + repoName = "Dryad" + case strings.Contains(urlLower, "osf.io"): + repoName = "OSF" + case strings.Contains(urlLower, "figshare.com"): + repoName = "Figshare" + } + + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := wave3ScholarlyFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "citation_title"), 280), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 280), + ) + if title == "" && doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 280) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + + var authors []string + for _, a := range extractAllMetaContentsDeclHTML(rawHTML, "citation_author") { + if len(authors) >= 16 { + break + } + if clean := SanitizeSchemaPlainField(a, 100); clean != "" { + authors = append(authors, clean) + } + } + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_publication_date"), + extractMetaContentDeclHTML(rawHTML, "citation_date"), + )) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_doi"), + extractMetaContentDeclHTML(rawHTML, "dc.identifier"), + )) + desc := SanitizeSchemaPlainField(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "og:description"), + extractMetaContentDeclHTML(rawHTML, "description"), + ), 3500) + + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 8) { + if pubDate == "" { + pubDate = wave3ScholarlyNormalizeDate(wave3ScholarlyStringVal(ld["datePublished"])) + } + if desc == "" { + desc = wave3ScholarlyPlain(wave3ScholarlyCleanText(wave3ScholarlyStringVal(ld["description"])), 3500) + } + if doi == "" { + doi = wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(ld["identifier"])) + } + } + + if desc == "" && doc != nil { + for _, sel := range []string{"#description", ".abstract", "section p", "main p"} { + if txt := SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(sel)), 3500); len(txt) >= 25 { + desc = txt + break + } + } + } + if len(authors) == 0 && doi == "" && desc == "" { + return nil + } + + var bullets []string + bullets = append(bullets, "- **Repository**: "+repoName) + if len(authors) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(authors, ", ")) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, "## Description\n\n"+desc) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, baseURL, baseURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, baseURL) + } + + rec := map[string]any{ + "source": "research-repo-pack", + "repository": repoName, + "title": title, + "url": baseURL, + } + if doi != "" { + rec["doi"] = doi + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if len(authors) > 0 { + rec["authors"] = authors + } + + shortDesc := desc + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: shortDesc, + Author: strings.Join(authors, ", "), + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} + +func wave3ScholarlyExtractDataCiteHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if m := wave3ScholarlyRxNextData.FindStringSubmatch(rawHTML); len(m) >= 2 { + if parsed, ok := decodeJSONWithNumbers([]byte(m[1])); ok { + if pm, okPM := parsed.(map[string]any); okPM { + if work := wave3ScholarlyMapAt(pm, "props", "pageProps", "work"); work != nil { + if title := wave3ScholarlyPlain(wave3ScholarlyFirstNonEmpty(wave3ScholarlyStringVal(work["title"]), wave3ScholarlyStringVal(wave3ScholarlyValAt(work, "titles", "0", "title"))), 280); title != "" { + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyStringVal(work["doi"])) + desc := wave3ScholarlyPlain(work["description"], 3000) + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, baseURL, baseURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, baseURL) + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if doi != "" { + blocks = append(blocks, "- **DOI**: `"+doi+"`") + } + if desc != "" { + blocks = append(blocks, desc) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{"source": "datacite", "doi": doi, "title": title, "url": baseURL}}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } + } + } + } + } + } + return wave3ScholarlyExtractAcademicMetaHTML(rawHTML, baseURL, extractorID, "datacite") +} + +func wave3ScholarlyExtractSSRNNBERHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3ScholarlyMaxHTMLBytes) + title := wave3ScholarlyFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "citation_title"), 280), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 280), + ) + if title == "" && doc != nil { + title = SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text("h1")), 280) + } + if title == "" || wave3ScholarlyIsNegativeTitle(title) || wave3ScholarlyIsGenericTitle(title) { + return nil + } + + var authors []string + for _, a := range extractAllMetaContentsDeclHTML(rawHTML, "citation_author") { + if len(authors) >= 20 { + break + } + if clean := SanitizeSchemaPlainField(a, 100); clean != "" { + authors = append(authors, clean) + } + } + pubDate := wave3ScholarlyNormalizeDate(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_publication_date"), + extractMetaContentDeclHTML(rawHTML, "citation_date"), + extractMetaContentDeclHTML(rawHTML, "dcterms.issued"), + )) + doi := wave3ScholarlyNormalizeDOI(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_doi"), + extractMetaContentDeclHTML(rawHTML, "dcterms.identifier"), + )) + reportNum := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "citation_technical_report_number"), 48) + pdfURL := SanitizeSchemaHTTPSURL(extractMetaContentDeclHTML(rawHTML, "citation_pdf_url"), baseURL) + abstract := SanitizeSchemaPlainField(wave3ScholarlyFirstNonEmpty( + extractMetaContentDeclHTML(rawHTML, "citation_abstract"), + extractMetaContentDeclHTML(rawHTML, "dcterms.abstract"), + extractMetaContentDeclHTML(rawHTML, "description"), + extractMetaContentDeclHTML(rawHTML, "og:description"), + ), 3500) + + if doc != nil && (abstract == "" || len(abstract) < 60) { + for _, sel := range []string{".page-header__intro", ".abstract-text", "#abstract", ".field--name-body", "article p", "main p"} { + if txt := SanitizeSchemaPlainField(wave3ScholarlyCleanText(doc.Text(sel)), 3500); len(txt) >= 40 { + txt = strings.TrimSpace(strings.TrimPrefix(strings.TrimPrefix(txt, "Abstract"), ":")) + if len(txt) > len(abstract) { + abstract = txt + } + break + } + } + } + if len(authors) == 0 && doi == "" && abstract == "" && reportNum == "" { + return nil + } + + venue := "NBER Working Paper" + if strings.Contains(urlLower, "ssrn.com") { + venue = "SSRN" + } + + var bullets []string + bullets = append(bullets, "- **Source**: "+venue) + if reportNum != "" { + bullets = append(bullets, "- **Working Paper #**: `"+reportNum+"`") + } + if len(authors) > 0 { + bullets = append(bullets, "- **Authors**: "+strings.Join(authors, ", ")) + } + if pubDate != "" { + bullets = append(bullets, "- **Published**: "+pubDate) + } + if doi != "" { + bullets = append(bullets, "- **DOI**: `"+doi+"`") + } + if pdfURL != "" { + bullets = append(bullets, "- **PDF**: "+pdfURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if abstract != "" { + blocks = append(blocks, "## Abstract\n\n"+abstract) + } + + var links []string + seen := make(map[string]bool) + wave3ScholarlyAddLink(&links, seen, baseURL, baseURL) + wave3ScholarlyAddLink(&links, seen, pdfURL, baseURL) + if doi != "" { + wave3ScholarlyAddLink(&links, seen, "https://doi.org/"+doi, baseURL) + } + + rec := map[string]any{ + "source": "ssrn-nber", + "venue": venue, + "title": title, + "url": baseURL, + } + if reportNum != "" { + rec["workingPaperNumber"] = reportNum + } + if len(authors) > 0 { + rec["authors"] = authors + } + if pubDate != "" { + rec["publishedDate"] = pubDate + } + if doi != "" { + rec["doi"] = doi + } + if pdfURL != "" { + rec["pdfUrl"] = pdfURL + } + + shortDesc := abstract + shortDesc = wave3ScholarlyTruncateDesc(shortDesc) + authShort := strings.Join(authors, ", ") + if len(authors) > 4 { + authShort = strings.Join(authors[:4], ", ") + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: shortDesc, + Author: authShort, + PublishedTime: pubDate, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + Total: wave3ScholarlyIntPtr(1), + Returned: wave3ScholarlyIntPtr(1), + } +} diff --git a/internal/extract/wave3_scholarly_test.go b/internal/extract/wave3_scholarly_test.go new file mode 100644 index 0000000..6ad74df --- /dev/null +++ b/internal/extract/wave3_scholarly_test.go @@ -0,0 +1,558 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" + "time" + "unicode/utf8" +) + +func wave3ScholarlyDecodeDoc(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 wave3ScholarlyResolveManifest(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 TestWave3ScholarlyManifestsRoutesAndCompliance(t *testing.T) { + catLIDs := []string{ + "semantic-scholar", + "unpaywall", + "core-ac", + "orcid", + "ror", + "dblp", + "biorxiv-medrxiv", + "nasa-ads", + "nih-reporter", + "nsf-awards", + "doe-osti", + "research-repo-pack", + "datacite", + "ssrn-nber", + } + + byID := make(map[string]*DeclarativeAdapterManifest) + claimedDomains := make(map[string]string) + + for _, id := range catLIDs { + 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 != "research-health" { + t.Fatalf("%s.yaml must use category research-health, 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 scholarly/baseline manifests + for _, existingID := range []string{ + "arxiv", "doi-crossref", "openalex", "pubmed-pmc", "nasa-apis", + "clinicaltrials", "dailymed", "medlineplus", "pubchem", "rxnorm-rxnav", "schema-course", + } { + 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 owner, overlap := claimedDomains[ld]; overlap { + t.Fatalf("Cat L %s overlaps %s domain %q", owner, existingID, ld) + } + } + } + + // #301 semantic-scholar + s2 := byID["semantic-scholar"] + if tm, ok := wave3ScholarlyResolveManifest(t, s2, "https://www.semanticscholar.org/paper/Attention-is-All-you-Need-Vaswani-Shazeer/204e3073870fae3d05bcbc2f6a8e263d9b72e776"); !ok || + tm.route.Extract.JSONMode != "semantic_scholar_json" || + !strings.HasPrefix(tm.FetchURL, "https://api.semanticscholar.org/graph/v1/paper/204e3073870fae3d05bcbc2f6a8e263d9b72e776") { + t.Fatalf("semantic-scholar paper twin failed: ok=%v tm=%+v", ok, tm) + } + + // #302 unpaywall: ALWAYS enforce email=bot@edgefetch.dev (never caller email!) + upw := byID["unpaywall"] + for _, u := range []string{ + "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2", + "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=personal.user@gmail.com", + } { + tm, ok := wave3ScholarlyResolveManifest(t, upw, u) + if !ok || tm.route.Extract.JSONMode != "unpaywall_json" { + t.Fatalf("unpaywall resolve failed for %s: ok=%v tm=%+v", u, ok, tm) + } + if !strings.Contains(tm.FetchURL, "email=bot%40edgefetch.dev") || strings.Contains(tm.FetchURL, "gmail.com") { + t.Fatalf("unpaywall must enforce bot@edgefetch.dev only, got FetchURL=%q", tm.FetchURL) + } + } + + // #303 core-ac: auth_mode=key + core := byID["core-ac"] + if tm, ok := wave3ScholarlyResolveManifest(t, core, "https://core.ac.uk/works/11689643"); !ok || + tm.route.Twin.AuthMode != "key" || + tm.FetchURL != "https://api.core.ac.uk/v3/works/11689643" { + t.Fatalf("core-ac work twin failed: ok=%v tm=%+v", ok, tm) + } + + // #304 orcid + orc := byID["orcid"] + if tm, ok := wave3ScholarlyResolveManifest(t, orc, "https://orcid.org/0000-0002-1825-0097"); !ok || + tm.FetchURL != "https://pub.orcid.org/v3.0/0000-0002-1825-0097/record" { + t.Fatalf("orcid twin failed: ok=%v tm=%+v", ok, tm) + } + + // #305 ror + ror := byID["ror"] + if tm, ok := wave3ScholarlyResolveManifest(t, ror, "https://ror.org/03yrm5c26"); !ok || + tm.FetchURL != "https://api.ror.org/v2/organizations/03yrm5c26" { + t.Fatalf("ror twin failed: ok=%v tm=%+v", ok, tm) + } + + // #306 dblp: /search/publ/api -> JSON, /rec/*.xml -> XML, /rec/*.html -> falls through to htmlRoutes (robots.txt Disallow: /rec/xml) + dblp := byID["dblp"] + if tm, ok := wave3ScholarlyResolveManifest(t, dblp, "https://dblp.org/search/publ/api?q=attention&format=json"); !ok || tm.route.Extract.JSONMode != "dblp_json" { + t.Fatalf("dblp search API failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3ScholarlyResolveManifest(t, dblp, "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.xml"); !ok || tm.route.Extract.TextMode != "dblp_xml" { + t.Fatalf("dblp xml route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3ScholarlyResolveManifest(t, dblp, "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html"); ok || tm != nil { + t.Fatalf("dblp .html must NOT upgrade to /rec/*.xml (robots.txt disallowed): %+v", tm) + } + + // #307 biorxiv-medrxiv: Rule 7 — www.medrxiv.org MUST NOT twin-fetch api.biorxiv.org + bio := byID["biorxiv-medrxiv"] + if tm, ok := wave3ScholarlyResolveManifest(t, bio, "https://api.biorxiv.org/details/medrxiv/10.1101/2020.05.28.20116129/na/json"); !ok || tm.route.Extract.JSONMode != "biorxiv_medrxiv_json" { + t.Fatalf("biorxiv-medrxiv direct API failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3ScholarlyResolveManifest(t, bio, "https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1"); ok || tm != nil { + t.Fatalf("Rule 7 violation: www.medrxiv.org must route via htmlRoutes, not twin-fetch api.biorxiv.org: %+v", tm) + } + + // #308 nasa-ads: auth_mode=key + ads := byID["nasa-ads"] + if tm, ok := wave3ScholarlyResolveManifest(t, ads, "https://ui.adsabs.harvard.edu/abs/2017arXiv170603762V/abstract"); !ok || + tm.route.Twin.AuthMode != "key" || + !strings.HasPrefix(tm.FetchURL, "https://api.adsabs.harvard.edu/v1/search/query") { + t.Fatalf("nasa-ads twin failed: ok=%v tm=%+v", ok, tm) + } + + // #309 nih-reporter: POST twin + nih := byID["nih-reporter"] + if tm, ok := wave3ScholarlyResolveManifest(t, nih, "https://reporter.nih.gov/project-details/10476325"); !ok || + tm.Method != "POST" || + tm.ContentType != "application/json" || + !strings.Contains(tm.RequestBody, "10476325") { + t.Fatalf("nih-reporter POST twin failed: ok=%v tm=%+v", ok, tm) + } + + // #310 nsf-awards + nsf := byID["nsf-awards"] + if tm, ok := wave3ScholarlyResolveManifest(t, nsf, "https://www.nsf.gov/awardsearch/show-award?AWD_ID=2535346"); !ok || + tm.FetchURL != "https://api.nsf.gov/services/v1/awards/2535346.json" { + t.Fatalf("nsf-awards twin failed: ok=%v tm=%+v", ok, tm) + } + + // #311 doe-osti + osti := byID["doe-osti"] + if tm, ok := wave3ScholarlyResolveManifest(t, osti, "https://www.osti.gov/biblio/1800000"); !ok || + tm.FetchURL != "https://www.osti.gov/api/v1/records/1800000" { + t.Fatalf("doe-osti twin failed: ok=%v tm=%+v", ok, tm) + } + + // #312 research-repo-pack: Zenodo /records & OSF HTML must NOT upgrade to API; Figshare upgrades to api.figshare.com + repo := byID["research-repo-pack"] + if tm, ok := wave3ScholarlyResolveManifest(t, repo, "https://zenodo.org/records/24485086"); ok || tm != nil { + t.Fatalf("zenodo.org/records must NOT upgrade to /api/records (robots.txt Disallow: /api): %+v", tm) + } + if tm, ok := wave3ScholarlyResolveManifest(t, repo, "https://osf.io/k7thf/"); ok || tm != nil { + t.Fatalf("osf.io must NOT upgrade to api.osf.io (robots.txt Disallow: /): %+v", tm) + } + if tm, ok := wave3ScholarlyResolveManifest(t, repo, "https://figshare.com/articles/dataset/Global_Climate/35148283"); !ok || + tm.FetchURL != "https://api.figshare.com/v2/articles/35148283" { + t.Fatalf("figshare article twin failed: ok=%v tm=%+v", ok, tm) + } + + // #313 datacite + dc := byID["datacite"] + if _, claimedDOI := claimedDomains["doi.org"]; claimedDOI { + t.Fatalf("datacite must NOT claim doi.org") + } + if tm, ok := wave3ScholarlyResolveManifest(t, dc, "https://commons.datacite.org/doi.org/10.5281/zenodo.24485086"); !ok || + tm.FetchURL != "https://api.datacite.org/dois/10.5281/zenodo.24485086" { + t.Fatalf("datacite commons twin failed: ok=%v tm=%+v", ok, tm) + } +} + +func TestWave3ScholarlyJSONAndXMLFormatters(t *testing.T) { + // #301 semantic_scholar_json + s2Raw, ok := FormatWave3ScholarlyJSONMode("semantic_scholar_json", []byte(`{"paperId":"204e3073870fae3d05bcbc2f6a8e263d9b72e776","title":"Attention Is All You Need","year":2017,"venue":"NeurIPS","citationCount":95000,"externalIds":{"DOI":"10.48550/arXiv.1706.03762"},"openAccessPdf":{"url":"https://arxiv.org/pdf/1706.03762.pdf"},"authors":[{"name":"Ashish Vaswani"}],"abstract":"Transformer sequence transduction."}`), nil, "https://api.semanticscholar.org/graph/v1/paper/204e3073870fae3d05bcbc2f6a8e263d9b72e776") + if !ok { + t.Fatalf("semantic_scholar_json failed") + } + s2Doc := wave3ScholarlyDecodeDoc(t, s2Raw) + if !strings.Contains(s2Doc.Markdown, "Ashish Vaswani") || !strings.Contains(s2Doc.Markdown, "10.48550/arXiv.1706.03762") { + t.Fatalf("unexpected semantic_scholar_json output: %+v", s2Doc) + } + if _, neg := FormatWave3ScholarlyJSONMode("semantic_scholar_json", []byte(`{"error":"Paper not found"}`), nil, "https://api.semanticscholar.org/graph/v1/paper/bad"); neg { + t.Fatalf("semantic_scholar_json must reject error") + } + + // #302 unpaywall_json + upwRaw, ok := FormatWave3ScholarlyJSONMode("unpaywall_json", []byte(`{"doi":"10.1038/s41586-021-03819-2","title":"AlphaFold","is_oa":true,"oa_status":"hybrid","journal_name":"Nature","published_date":"2021-07-15","best_oa_location":{"url_for_pdf":"https://www.nature.com/articles/s41586-021-03819-2.pdf","license":"cc-by"},"z_authors":[{"given":"John","family":"Jumper"}]}`), nil, "https://api.unpaywall.org/v2/10.1038/s41586-021-03819-2?email=bot@edgefetch.dev") + if !ok { + t.Fatalf("unpaywall_json failed") + } + upwDoc := wave3ScholarlyDecodeDoc(t, upwRaw) + if !strings.Contains(upwDoc.Markdown, "hybrid") || !strings.Contains(upwDoc.Markdown, "John Jumper") { + t.Fatalf("unexpected unpaywall_json output: %+v", upwDoc) + } + if _, neg := FormatWave3ScholarlyJSONMode("unpaywall_json", []byte(`{"error":true,"HTTP_status_code":404}`), nil, "https://api.unpaywall.org/v2/10.9999/bad?email=bot@edgefetch.dev"); neg { + t.Fatalf("unpaywall_json must reject 404") + } + + // #303 core_ac_json + if _, ok := FormatWave3ScholarlyJSONMode("core_ac_json", []byte(`{"id":11689643,"title":"Solar Grid Study","doi":"10.1016/j.solener.2020.01.001","yearPublished":2020,"authors":[{"name":"Elena Vance"}]}`), nil, "https://api.core.ac.uk/v3/works/11689643"); !ok { + t.Fatalf("core_ac_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("core_ac_json", []byte(`{"results":[]}`), nil, "https://api.core.ac.uk/v3/search/works?q=none"); neg { + t.Fatalf("core_ac_json must reject empty results") + } + + // #304 orcid_json + if _, ok := FormatWave3ScholarlyJSONMode("orcid_json", []byte(`{"orcid-identifier":{"path":"0000-0002-1825-0097"},"person":{"name":{"credit-name":{"value":"Josiah Carberry"}}}}`), nil, "https://pub.orcid.org/v3.0/0000-0002-1825-0097/record"); !ok { + t.Fatalf("orcid_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("orcid_json", []byte(`{"error-code":9016,"developer-message":"not found"}`), nil, "https://pub.orcid.org/v3.0/bad/record"); neg { + t.Fatalf("orcid_json must reject error-code") + } + + // #305 ror_json + if _, ok := FormatWave3ScholarlyJSONMode("ror_json", []byte(`{"id":"https://ror.org/03yrm5c26","status":"active","names":[{"types":["ror_display"],"value":"California Digital Library"}],"domains":["cdlib.org"]}`), nil, "https://api.ror.org/v2/organizations/03yrm5c26"); !ok { + t.Fatalf("ror_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("ror_json", []byte(`{"errors":["not found"]}`), nil, "https://api.ror.org/v2/organizations/000000000"); neg { + t.Fatalf("ror_json must reject errors") + } + + // #306 dblp_json & dblp_xml + if _, ok := FormatWave3ScholarlyJSONMode("dblp_json", []byte(`{"result":{"hits":{"@total":"1","hit":[{"info":{"title":"Attention Is All You Need","authors":{"author":[{"text":"Ashish Vaswani"}]},"venue":"NIPS","year":"2017"}}]}}}`), nil, "https://dblp.org/search/publ/api?q=attention&format=json"); !ok { + t.Fatalf("dblp_json failed") + } + if _, ok := FormatWave3ScholarlyTextMode("dblp_xml", `Ashish VaswaniAttention Is All You Need.NIPS2017`, nil, "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.xml"); !ok { + t.Fatalf("dblp_xml failed") + } + if _, neg := FormatWave3ScholarlyTextMode("dblp_xml", `Making sure you're not a bot!`, nil, "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.xml"); neg { + t.Fatalf("dblp_xml must reject Anubis PoW HTML") + } + + // #307 biorxiv_medrxiv_json + if _, ok := FormatWave3ScholarlyJSONMode("biorxiv_medrxiv_json", []byte(`{"collection":[{"doi":"10.1101/2020.09.02.278911","title":"Viral Genomics","authors":"Smith, A.","date":"2020-09-03","version":"1","server":"bioRxiv"}]}`), nil, "https://api.biorxiv.org/details/biorxiv/10.1101/2020.09.02.278911/na/json"); !ok { + t.Fatalf("biorxiv_medrxiv_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("biorxiv_medrxiv_json", []byte(`{"messages":[{"status":"DOI not recognizable"}],"collection":[]}`), nil, "https://api.biorxiv.org/details/biorxiv/bad/na/json"); neg { + t.Fatalf("biorxiv_medrxiv_json must reject empty collection") + } + + // #308 nasa_ads_json + if _, ok := FormatWave3ScholarlyJSONMode("nasa_ads_json", []byte(`{"response":{"numFound":1,"docs":[{"bibcode":"2017arXiv170603762V","title":["Attention Is All You Need"],"author":["Vaswani, Ashish"],"year":"2017","citation_count":95000}]}}`), nil, "https://api.adsabs.harvard.edu/v1/search/query"); !ok { + t.Fatalf("nasa_ads_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("nasa_ads_json", []byte(`{"message":"Missing \"Authorization\" in headers."}`), nil, "https://api.adsabs.harvard.edu/v1/search/query"); neg { + t.Fatalf("nasa_ads_json must reject 401 unauthorized") + } + + // #309 nih_reporter_json + if _, ok := FormatWave3ScholarlyJSONMode("nih_reporter_json", []byte(`{"meta":{"total":1},"results":[{"appl_id":10476325,"project_num":"5R01CA242003-04","project_title":"Cancer Biomarkers","award_amount":485000,"organization":{"org_name":"STANFORD UNIVERSITY"}}]}`), nil, "https://api.reporter.nih.gov/v2/projects/search"); !ok { + t.Fatalf("nih_reporter_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("nih_reporter_json", []byte(`{"meta":{"total":0},"results":[]}`), nil, "https://api.reporter.nih.gov/v2/projects/search"); neg { + t.Fatalf("nih_reporter_json must reject empty results") + } + + // #310 nsf_awards_json + if _, ok := FormatWave3ScholarlyJSONMode("nsf_awards_json", []byte(`{"response":{"award":[{"id":"2535346","title":"EPSCoR Fellowship","awardeeName":"University of Nebraska-Lincoln","pdPIName":"Brigitte Tenhumberg","fundsObligatedAmt":"1749000","date":"08/25/2026"}]}}`), nil, "https://api.nsf.gov/services/v1/awards/2535346.json"); !ok { + t.Fatalf("nsf_awards_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("nsf_awards_json", []byte(`{"response":{"award":[]}}`), nil, "https://api.nsf.gov/services/v1/awards/2100001.json"); neg { + t.Fatalf("nsf_awards_json must reject empty award array") + } + + // #311 doe_osti_json (both array and single object!) + if _, ok := FormatWave3ScholarlyJSONMode("doe_osti_json", []byte(`[{"osti_id":"1800000","title":"Wigner Solid Melting","doi":"10.1103/physrevlett.125.036601","publication_date":"2020-07-14T00:00:00Z"}]`), nil, "https://www.osti.gov/api/v1/records/1800000"); !ok { + t.Fatalf("doe_osti_json root array failed") + } + if _, ok := FormatWave3ScholarlyJSONMode("doe_osti_json", []byte(`{"osti_id":"1800000","title":"Wigner Solid Melting","doi":"10.1103/physrevlett.125.036601"}`), nil, "https://www.osti.gov/api/v1/records/1800000"); !ok { + t.Fatalf("doe_osti_json single object failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("doe_osti_json", []byte(`[]`), nil, "https://www.osti.gov/api/v1/records/0"); neg { + t.Fatalf("doe_osti_json must reject empty array") + } + + // #312 research_repo_pack_json (Zenodo, Figshare, Dryad, OSF) + if _, ok := FormatWave3ScholarlyJSONMode("research_repo_pack_json", []byte(`{"id":24485086,"doi":"10.5281/zenodo.24485086","metadata":{"title":"Zenodo Corpus","publication_date":"2025-01-10","creators":[{"name":"Doe, Jane"}]}}`), nil, "https://zenodo.org/api/records/24485086"); !ok { + t.Fatalf("research_repo_pack_json zenodo failed") + } + if _, ok := FormatWave3ScholarlyJSONMode("research_repo_pack_json", []byte(`{"id":35148283,"title":"Figshare Dataset","doi":"10.6084/m9.figshare.35148283","authors":[{"full_name":"Alice"}]}`), nil, "https://api.figshare.com/v2/articles/35148283"); !ok { + t.Fatalf("research_repo_pack_json figshare failed") + } + if _, ok := FormatWave3ScholarlyJSONMode("research_repo_pack_json", []byte(`{"id":99,"identifier":"doi:10.5061/dryad.7rh4625","title":"Dryad Ecological Data","publicationDate":"2024-03-01","storageSize":1024}`), nil, "https://datadryad.org/api/v2/datasets/doi%3A10.5061%2Fdryad.7rh4625"); !ok { + t.Fatalf("research_repo_pack_json dryad failed") + } + if _, ok := FormatWave3ScholarlyJSONMode("research_repo_pack_json", []byte(`{"data":{"id":"k7thf","type":"nodes","attributes":{"title":"OSF Preprint Project","description":"Open Science Framework study"}}}`), nil, "https://api.osf.io/v2/nodes/k7thf/"); !ok { + t.Fatalf("research_repo_pack_json osf failed") + } + + // #313 datacite_json + if _, ok := FormatWave3ScholarlyJSONMode("datacite_json", []byte(`{"data":{"id":"10.5281/zenodo.24485086","type":"dois","attributes":{"doi":"10.5281/zenodo.24485086","titles":[{"title":"Multilingual Benchmark"}],"publisher":"Zenodo","publicationYear":2025}}}`), nil, "https://api.datacite.org/dois/10.5281/zenodo.24485086"); !ok { + t.Fatalf("datacite_json failed") + } + if _, neg := FormatWave3ScholarlyJSONMode("datacite_json", []byte(`{"errors":[{"status":"404","title":"Not found"}]}`), nil, "https://api.datacite.org/dois/10.9999/bad"); neg { + t.Fatalf("datacite_json must reject errors") + } +} + +func TestWave3ScholarlyHTMLExtractorsAndNegativeGuards(t *testing.T) { + // Positive HTML checks + start := time.Now() + nberHTML := `Macroeconomic Effects | NBER

Macroeconomic Effects

We analyze supply chain bottlenecks and inflation dynamics across sectors.

` + rawOut, ok := RunWave3ScholarlyHTMLMode("ssrn_nber_html", nberHTML, "https://www.nber.org/papers/w30000") + if !ok || !strings.Contains(rawOut, "10.3386/w30000") || !strings.Contains(rawOut, "Alice Economist") { + t.Fatalf("ssrn_nber_html positive NBER failed: ok=%v out=%s", ok, rawOut) + } + if elapsed := time.Since(start); elapsed > 50*time.Millisecond { + t.Fatalf("ssrn_nber_html exceeded latency target: %v", elapsed) + } + + zenodoHTML := `Open Corpus | Zenodo

Open Corpus

Curated open dataset for benchmark evaluation.

` + if out, zOK := RunWave3ScholarlyHTMLMode("research_repo_pack_html", zenodoHTML, "https://zenodo.org/records/24485086"); !zOK || !strings.Contains(out, "Zenodo") { + t.Fatalf("research_repo_pack_html Zenodo failed: ok=%v out=%s", zOK, out) + } + + bioHTML := `

Viral Genomics

Genomic surveillance reveals transmission clusters across regions.

` + if out, bOK := RunWave3ScholarlyHTMLMode("biorxiv_medrxiv_html", bioHTML, "https://www.biorxiv.org/content/10.1101/2020.09.02.278911v1"); !bOK || !strings.Contains(out, "10.1101/2020.09.02.278911") { + t.Fatalf("biorxiv_medrxiv_html failed: ok=%v out=%s", bOK, out) + } + + // Negative CSR / WAF / PoW / CF / Overload shell rejections + negCases := []struct { + mode string + url string + html string + }{ + {"orcid_html", "https://orcid.org/0000-0002-1825-0097", `ORCID`}, + {"dblp_html", "https://dblp.org/rec/conf/nips/VaswaniSPUJGKP17.html", `Making sure you're not a bot!

Making sure you're not a bot!

`}, + {"core_ac_html", "https://core.ac.uk/works/11689643", `Just a moment...
cf-turnstile
`}, + {"ror_html", "https://ror.org/03yrm5c26", `Vercel Security Checkpoint

We're verifying your browser

`}, + {"biorxiv_medrxiv_html", "https://www.medrxiv.org/content/10.1101/2020.05.28.20116129v1", `Attention Required! | Cloudflare

Sorry, you have been blocked

`}, + {"nih_reporter_html", "https://reporter.nih.gov/project-details/10476325", `RePORT › RePORTER
`}, + {"nsf_awards_html", "https://www.nsf.gov/awardsearch/show-award?AWD_ID=2535346", `Award Details - NSF Award Search`}, + {"datacite_html", "https://commons.datacite.org/doi.org/10.5281/zenodo.24485086", `

This website is under heavy load (queue full)

`}, + {"ssrn_nber_html", "https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4131630", `Just a moment...
`}, + {"semantic_scholar_html", "https://www.semanticscholar.org/paper/foo/204e3073870fae3d05bcbc2f6a8e263d9b72e776", `Semantic Scholar
`}, + } + + for _, nc := range negCases { + if out, negOK := RunWave3ScholarlyHTMLMode(nc.mode, nc.html, nc.url); negOK { + t.Fatalf("%s must reject negative shell for %s, got: %s", nc.mode, nc.url, out) + } + } +} + +func TestWave3ScholarlyFixturesGoldenAndNegative(t *testing.T) { + catLIDs := []string{ + "semantic-scholar", + "unpaywall", + "core-ac", + "orcid", + "ror", + "dblp", + "biorxiv-medrxiv", + "nasa-ads", + "nih-reporter", + "nsf-awards", + "doe-osti", + "research-repo-pack", + "datacite", + "ssrn-nber", + } + + type fixtureNeg struct { + Name string `json:"name"` + Status int `json:"status"` + InputURL string `json:"inputUrl"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } + type fixture 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"` + } + + for _, id := range catLIDs { + rawManifest, err := os.ReadFile(filepath.Join("manifests", id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", id, err) + } + m, err := ParseDeclarativeYAMLManifest(rawManifest) + if err != nil { + t.Fatalf("parse %s.yaml: %v", id, err) + } + + rawFx, 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 fixture + if err := json.Unmarshal(rawFx, &fx); err != nil { + t.Fatalf("unmarshal fixture %s.json: %v", id, err) + } + if fx.AdapterID != id || len(fx.NegativeCases) < 4 { + t.Fatalf("fixture %s.json invalid header/negative count: %+v", id, len(fx.NegativeCases)) + } + + if fx.Mode == "twin" { + tm, ok := wave3ScholarlyResolveManifest(t, m, fx.InputURL) + if !ok { + t.Fatalf("%s: expected twin resolution for %s", id, fx.InputURL) + } + if fx.ExpectedFetchURL != "" && tm.FetchURL != fx.ExpectedFetchURL { + t.Fatalf("%s: FetchURL=%q want=%q", id, tm.FetchURL, fx.ExpectedFetchURL) + } + var rawDoc string + var fmtOK bool + if tm.route.Extract.JSONMode != "" { + rawDoc, fmtOK = FormatWave3ScholarlyJSONMode(tm.route.Extract.JSONMode, []byte(fx.MockPayload), tm.params, fx.InputURL) + } else if tm.route.Extract.TextMode != "" { + rawDoc, fmtOK = FormatWave3ScholarlyTextMode(tm.route.Extract.TextMode, fx.MockPayload, tm.params, fx.InputURL) + } + if !fmtOK { + t.Fatalf("%s: golden formatter failed", id) + } + doc := wave3ScholarlyDecodeDoc(t, rawDoc) + if fx.ExpectTitleIncludes != "" && !strings.Contains(doc.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s: title %q missing %q", id, doc.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(doc.Markdown, needle) { + t.Fatalf("%s: markdown missing %q", id, needle) + } + } + } else { + if len(m.HTMLRoutes) == 0 { + t.Fatalf("%s: expected htmlRoutes for mode=html", id) + } + rawOut, ok := RunWave3ScholarlyHTMLMode(m.HTMLRoutes[0].Mode, fx.MockPayload, fx.InputURL) + if !ok { + t.Fatalf("%s: golden HTML extractor failed", id) + } + var res DeclarativePostFetchResult + if err := json.Unmarshal([]byte(rawOut), &res); err != nil { + t.Fatalf("%s: unmarshal HTML result: %v", id, err) + } + if fx.ExpectTitleIncludes != "" && !strings.Contains(res.Title, fx.ExpectTitleIncludes) { + t.Fatalf("%s: title %q missing %q", id, res.Title, fx.ExpectTitleIncludes) + } + for _, needle := range fx.ExpectMarkdownIncludes { + if !strings.Contains(res.Markdown, needle) { + t.Fatalf("%s: markdown missing %q", id, needle) + } + } + } + + for _, nc := range fx.NegativeCases { + ncURL := nc.InputURL + if ncURL == "" { + ncURL = fx.InputURL + } + if nc.FinalURL != "" { + if len(m.HTMLRoutes) > 0 { + if _, negOK := RunWave3ScholarlyHTMLMode(m.HTMLRoutes[0].Mode, nc.Payload, nc.FinalURL); negOK { + t.Fatalf("%s:%s redirect HTML unexpectedly succeeded", id, nc.Name) + } + } + continue + } + trim := strings.TrimSpace(nc.Payload) + if strings.HasPrefix(trim, "{") || strings.HasPrefix(trim, "[") { + if tm, ok := wave3ScholarlyResolveManifest(t, m, ncURL); ok && tm.route.Extract.JSONMode != "" { + if _, negOK := FormatWave3ScholarlyJSONMode(tm.route.Extract.JSONMode, []byte(nc.Payload), tm.params, ncURL); negOK { + t.Fatalf("%s:%s negative JSON unexpectedly succeeded", id, nc.Name) + } + } + } else if len(m.HTMLRoutes) > 0 { + if _, negOK := RunWave3ScholarlyHTMLMode(m.HTMLRoutes[0].Mode, nc.Payload, ncURL); negOK { + t.Fatalf("%s:%s negative HTML unexpectedly succeeded", id, nc.Name) + } + } + } + } +} + +func TestWave3ScholarlyUTF8SafeDescriptionTruncation(t *testing.T) { + // Place a 3-byte UTF-8 rune ("—") straddling byte offset 260 (bytes 259..261). + abstract := strings.Repeat("a", 259) + "—" + strings.Repeat("b", 50) + payload := `{"paperId":"p1","title":"UTF-8 Abstract Paper","abstract":"` + abstract + `","year":2026,"authors":[{"name":"Ada Lovelace"}]}` + raw, ok := FormatWave3ScholarlyJSONMode("semantic_scholar_json", []byte(payload), nil, "https://api.semanticscholar.org/graph/v1/paper/p1") + if !ok { + t.Fatalf("expected semantic_scholar_json to format UTF-8 abstract") + } + doc := wave3ScholarlyDecodeDoc(t, raw) + if !utf8.ValidString(doc.Description) || strings.ContainsRune(doc.Description, '\uFFFD') { + t.Fatalf("description contains invalid UTF-8 or replacement rune: %q", doc.Description) + } + if !strings.HasSuffix(doc.Description, "...") { + t.Fatalf("expected truncated description suffix '...', got %q", doc.Description) + } +} diff --git a/internal/extract/wave3_security_intel.go b/internal/extract/wave3_security_intel.go new file mode 100644 index 0000000..048a41d --- /dev/null +++ b/internal/extract/wave3_security_intel.go @@ -0,0 +1,3334 @@ +package extract + +import ( + "bytes" + "encoding/csv" + "encoding/json" + "fmt" + stdhtml "html" + "io" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3SecMaxHTMLBytes = 2 * 1024 * 1024 + wave3SecBGPHEMaxBytes = 1 * 1024 * 1024 + wave3SecMaxJSONBytes = 4 * 1024 * 1024 + wave3SecMaxTextBytes = 4 * 1024 * 1024 + wave3SecMaxRecords = 25 + wave3SecMaxSnippetByte = 2400 +) + +var ( + wave3SecRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\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|bad\s+gateway|502\s+bad\s+gateway)(?:\b|$)`) + wave3SecRxMaintTitle = 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)`) + wave3SecRxErrorTitle = 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)$`) + wave3SecRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|crt\.sh|bgp\.he\.net|cve\s+record)$`) + wave3SecRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3SecRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3SecRxHref = newLazyRegexp(`(?i)]*\bhref\s*=\s*["']([^"'#][^"']*)["'][^>]*>(.*?)`) + wave3SecRxCVE = newLazyRegexp(`(?i)\bCVE-\d{4}-\d{4,7}\b`) + wave3SecRxEDBID = newLazyRegexp(`(?i)(?:/exploits/|EDB-ID\s*:?\s*)(\d{1,8})`) + wave3SecRxASN = newLazyRegexp(`(?i)\bAS\d{1,10}\b`) + wave3SecRxISODate = newLazyRegexp(`\b(\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2}))?)\b`) + wave3SecRxXMLItem = newLazyRegexp(`(?is)]*>(.*?)`) + wave3SecRxXMLTag = newLazyRegexp(`(?is)]*>(.*?)`) + wave3SecRxXMLTagLink = newLazyRegexp(`(?is)]*>(.*?)`) + wave3SecRxXMLTagPubDate = newLazyRegexp(`(?is)]*>(.*?)`) + wave3SecRxXMLTagDesc = newLazyRegexp(`(?is)]*>(.*?)`) + wave3SecRxCSAFURL = newLazyRegexp(`https://(?:github\.com|raw\.githubusercontent\.com)/cisagov/CSAF/[^\s"'<>]+?\.json`) + wave3SecRxPreCode = newLazyRegexp(`(?is)]*>(.*?)|]*>(.*?)
`) +) + +func init() { + registerWave3SecurityIntelHTMLModes() +} + +// RegisterWave3SecurityIntelHTMLModes registers all Category M HTML modes via RegisterExternalHTMLModeLazy. +func RegisterWave3SecurityIntelHTMLModes() { + registerWave3SecurityIntelHTMLModes() +} + +func registerWave3SecurityIntelHTMLModes() { + for _, mode := range []string{ + "cisa_kev_html", + "mitre_attack_html", + "mitre_cwe_capec_html", + "cve_org_html", + "cisa_advisories_html", + "exploit_db_html", + "cert_transparency_html", + "bgp_he_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3SecurityIntelRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3SecurityIntelHTMLMode reports whether mode is one of the Category M HTML extractors. +func IsWave3SecurityIntelHTMLMode(mode string) bool { + switch mode { + case "cisa_kev_html", + "mitre_attack_html", + "mitre_cwe_capec_html", + "cve_org_html", + "cisa_advisories_html", + "exploit_db_html", + "cert_transparency_html", + "bgp_he_html": + return true + default: + return false + } +} + +func isWave3SecurityIntelJSONMode(mode string) bool { + return IsWave3SecurityIntelJSONMode(mode) +} + +// IsWave3SecurityIntelJSONMode reports whether mode is one of the Category M JSON formatters (#315-#326). +func IsWave3SecurityIntelJSONMode(mode string) bool { + switch mode { + case "cisa_kev_json", + "first_epss_json", + "mitre_attack_index_json", + "mitre_cwe_json", + "cve_org_json", + "vendor_csaf_json", + "cert_transparency_json", + "rdap_bootstrap_json", + "rdap_json", + "bgp_asn_ripe_json": + return true + default: + return false + } +} + +func isWave3SecurityIntelTextMode(mode string) bool { + return IsWave3SecurityIntelTextMode(mode) +} + +// IsWave3SecurityIntelTextMode reports whether mode is one of the Category M text/CSV/STIX/RSS formatters. +func IsWave3SecurityIntelTextMode(mode string) bool { + switch mode { + case "cisa_kev_csv", + "mitre_attack_stix_bundle", + "cisa_advisories_rss", + "security_txt_text", + "exploit_db_csv", + "exploit_db_rss": + return true + default: + return false + } +} + +func wave3SecDefaultExtractorID(mode string) string { + switch mode { + case "cisa_kev_html", "cisa_kev_json", "cisa_kev_csv": + return "cisa-kev" + case "first_epss_json": + return "first-epss" + case "mitre_attack_html", "mitre_attack_index_json", "mitre_attack_stix_bundle": + return "mitre-attack" + case "mitre_cwe_capec_html", "mitre_cwe_json": + return "mitre-cwe-capec" + case "cve_org_html", "cve_org_json": + return "cve-org" + case "cisa_advisories_html", "cisa_advisories_rss": + return "cisa-advisories-ics" + case "vendor_csaf_json": + return "vendor-csaf" + case "security_txt_text": + return "security-txt" + case "exploit_db_html", "exploit_db_csv", "exploit_db_rss": + return "exploit-db" + case "cert_transparency_html", "cert_transparency_json": + return "certificate-transparency" + case "rdap_bootstrap_json", "rdap_json": + return "rdap" + case "bgp_he_html", "bgp_asn_ripe_json": + return "bgp-asn" + default: + return "" + } +} + +// Wave3SecurityIntelRunHTML executes a Category M HTML extractor and returns DeclarativePostFetchResult. +func Wave3SecurityIntelRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3SecurityIntelHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if mode == "bgp_he_html" { + if len(rawHTML) > wave3SecBGPHEMaxBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3SecBGPHEMaxBytes) + } + } else if len(rawHTML) > wave3SecMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3SecMaxHTMLBytes) + } + 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 !wave3SecMatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3SecHasCommonNegativeShell(rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3SecDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "cisa_kev_html": + res = wave3SecExtractCISAKEVHTML(rawHTML, baseURL, extractorID) + case "mitre_attack_html": + res = wave3SecExtractMitreAttackHTML(rawHTML, baseURL, extractorID) + case "mitre_cwe_capec_html": + res = wave3SecExtractMitreCWECAPECHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + case "cve_org_html": + res = wave3SecExtractCVEOrgHTML(rawHTML, probeLower, baseURL, extractorID) + case "cisa_advisories_html": + res = wave3SecExtractCISAAdvisoriesHTML(rawHTML, baseURL, extractorID) + case "exploit_db_html": + res = wave3SecExtractExploitDBHTML(rawHTML, probeLower, baseURL, extractorID) + case "cert_transparency_html": + res = wave3SecExtractCertTransparencyHTML(rawHTML, baseURL, extractorID) + case "bgp_he_html": + res = wave3SecExtractBGPHEHTML(rawHTML, probeLower, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3SecFinalizePostFetch(res) +} + +// RunWave3SecurityIntelHTMLMode executes a Category M HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3SecurityIntelHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3SecurityIntelRunHTML(mode, rawHTML, baseURL, wave3SecDefaultExtractorID(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 +} + +func formatWave3SecurityIntelJSON(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return FormatWave3SecurityIntelJSONDoc(mode, raw, params, origURL) +} + +// FormatWave3SecurityIntelJSONDoc formats a Category M JSON payload into DeclarativeFormattedDoc. +func FormatWave3SecurityIntelJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3SecurityIntelJSONMode(mode) || len(raw) == 0 || len(raw) > wave3SecMaxJSONBytes { + 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 "cisa_kev_json": + doc, handled = wave3SecFormatCISAKEVJSON(parsed, origURL) + case "first_epss_json": + doc, handled = wave3SecFormatFirstEPSSJSON(parsed, origURL) + case "mitre_attack_index_json": + doc, handled = wave3SecFormatMitreAttackIndexJSON(parsed, origURL) + case "mitre_cwe_json": + doc, handled = wave3SecFormatMitreCWEJSON(parsed, origURL) + case "cve_org_json": + doc, handled = wave3SecFormatCVEOrgJSON(parsed, origURL) + case "vendor_csaf_json": + doc, handled = wave3SecFormatVendorCSAFJSON(parsed, origURL) + case "cert_transparency_json": + doc, handled = wave3SecFormatCertTransparencyJSON(parsed, origURL) + case "rdap_bootstrap_json": + doc, handled = wave3SecFormatRDAPBootstrapJSON(parsed, origURL) + case "rdap_json": + doc, handled = wave3SecFormatRDAPJSON(parsed, origURL) + case "bgp_asn_ripe_json": + doc, handled = wave3SecFormatBGPASNRipeJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3SecFinalizeDoc(doc), true +} + +// FormatWave3SecurityIntelJSONMode formats a Category M JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3SecurityIntelJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3SecurityIntelJSONDoc(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 formatWave3SecurityIntelText(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return FormatWave3SecurityIntelTextDoc(mode, rawBody, params, origURL) +} + +// FormatWave3SecurityIntelTextDoc formats a Category M text/CSV/STIX/RSS payload into DeclarativeFormattedDoc. +func FormatWave3SecurityIntelTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3SecurityIntelTextMode(mode) || len(rawBody) == 0 { + return nil, false + } + if len(rawBody) > wave3SecMaxTextBytes { + rawBody = truncateUTF8SafeFullDocGo(rawBody, wave3SecMaxTextBytes) + } + rawBody = strings.TrimPrefix(rawBody, "\xEF\xBB\xBF") + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "cisa_kev_csv": + doc, handled = wave3SecFormatCISAKEVCSV(rawBody, origURL) + case "mitre_attack_stix_bundle": + doc, handled = wave3SecFormatMitreAttackSTIXBundle(rawBody, origURL) + case "cisa_advisories_rss": + doc, handled = wave3SecFormatRSS(rawBody, origURL, "CISA Cybersecurity Advisories", true) + case "security_txt_text": + doc, handled = wave3SecFormatSecurityTxt(rawBody, origURL) + case "exploit_db_csv": + doc, handled = wave3SecFormatExploitDBCSV(rawBody, origURL) + case "exploit_db_rss": + doc, handled = wave3SecFormatRSS(rawBody, origURL, "Exploit-DB Recent Exploits", false) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3SecFinalizeDoc(doc), true +} + +// FormatWave3SecurityIntelTextMode formats a Category M text payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3SecurityIntelTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3SecurityIntelTextDoc(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 wave3SecMatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "cisa_kev_html": + return strings.Contains(urlLower, "known-exploited-vulnerabilities-catalog") || + strings.Contains(probeLower, "known exploited vulnerabilities") || + strings.Contains(probeLower, "known_exploited_vulnerabilities") + case "mitre_attack_html": + return strings.Contains(urlLower, "attack.mitre.org") || + strings.Contains(probeLower, "attack.mitre.org") || + strings.Contains(probeLower, "card-data") || + strings.Contains(probeLower, "description-body") || + strings.Contains(probeLower, "mitre att&ck") + case "mitre_cwe_capec_html": + return strings.Contains(urlLower, "cwe.mitre.org") || + strings.Contains(urlLower, "capec.mitre.org") || + strings.Contains(probeLower, "cwe-") || + strings.Contains(probeLower, "capec-") + case "cve_org_html": + return strings.Contains(urlLower, "cve.org") || + strings.Contains(probeLower, "cve-") || + strings.Contains(probeLower, "common vulnerabilities and exposures") + case "cisa_advisories_html": + return strings.Contains(urlLower, "cisa.gov") || + strings.Contains(probeLower, "cisa.gov") || + strings.Contains(probeLower, "l-page__main") || + strings.Contains(probeLower, "icsa-") || + strings.Contains(probeLower, "icsma-") + case "exploit_db_html": + return strings.Contains(urlLower, "exploit-db.com") || + strings.Contains(probeLower, "exploit-db") || + strings.Contains(probeLower, "exploit database") || + strings.Contains(probeLower, "edb-id") + case "cert_transparency_html": + return strings.Contains(urlLower, "crt.sh") || + strings.Contains(probeLower, "crt.sh") || + strings.Contains(probeLower, "certificate search") || + strings.Contains(probeLower, "logged at") + case "bgp_he_html": + return strings.Contains(urlLower, "bgp.he.net") || + strings.Contains(probeLower, "bgp.he.net") || + strings.Contains(probeLower, "asinfo") || + strings.Contains(probeLower, "hurricane electric") + default: + return false + } +} + +func wave3SecIsNegativeURL(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, "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 wave3SecIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3SecRxNotFoundTitle.MatchString(t) || + wave3SecRxMaintTitle.MatchString(t) || + wave3SecRxErrorTitle.MatchString(t) +} + +func wave3SecIsGenericTitle(title string) bool { + return wave3SecRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3SecHasCommonNegativeShell(rawHTML, probeLower, urlLower string) bool { + if wave3SecIsNegativeURL(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", + "vercel security checkpoint", + "anubis_version", + "anubis_challenge", + "cae-xauth-err", + "scheduled maintenance", + "down for maintenance", + "temporarily unavailable", + "502 bad gateway", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(rawHTML) + if wave3SecIsNegativeTitle(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, "") || strings.Contains(rawLower, "")) && + !hasRealBodyMarkers { + return true + } + if wave3HasEmptyRootDivShell(rawHTML, probeLower, true) && !hasRealBodyMarkers { + return true + } + return false +} + +func wave3SecIsGenericJSONError(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", "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{"errorCode", "error_code", "statusCode", "status_code", "status-code"} { + if f, ok := wave3SecFloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if st := strings.ToUpper(wave3SecPlain(obj["status"], 48)); st == "ERROR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "UNAUTHORIZED" { + return true + } + if typ := strings.ToLower(wave3SecPlain(obj["type"], 32)); typ == "error" { + return true + } + if msg := wave3SecPlain(obj["message"], 240); msg != "" && len(obj) <= 4 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "not found") || + strings.Contains(lm, "invalid") || + strings.Contains(lm, "unauthorized") || + strings.Contains(lm, "forbidden") || + strings.Contains(lm, "rate limit") { + return true + } + } + return false +} + +func wave3SecIntPtr(n int) *int { return &n } +func wave3SecBoolPtr(b bool) *bool { return &b } + +func wave3SecFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3SecMaxRecords { + if doc.Total == nil { + doc.Total = wave3SecIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3SecMaxRecords] + doc.Returned = wave3SecIntPtr(len(doc.Records)) + doc.Truncated = wave3SecBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3SecFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3SecMaxRecords { + if res.Total == nil { + res.Total = wave3SecIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3SecMaxRecords] + res.Returned = wave3SecIntPtr(len(res.Records)) + res.Truncated = wave3SecBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3SecCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3SecRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3SecRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3SecRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3SecStringVal(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 wave3SecFloatVal(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 wave3SecPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3SecStringVal(v), maxLen) +} + +func wave3SecFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3SecNormalizeDate(raw string) string { + s := SanitizeSchemaPlainField(raw, 48) + if s == "" { + return "" + } + if len(s) >= 10 && s[4] == '-' && s[7] == '-' { + return s[:10] + } + if m := wave3SecRxISODate.FindStringSubmatch(s); len(m) >= 2 { + return m[1][:10] + } + return s +} + +func wave3SecAddLink(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 wave3SecExtractTitle(doc *HTMLDoc, rawHTML string) string { + if doc != nil { + if h1 := SanitizeSchemaPlainField(wave3SecCleanText(doc.Text("h1")), 240); h1 != "" && !wave3SecIsGenericTitle(h1) { + return h1 + } + } + if og := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240); og != "" && !wave3SecIsGenericTitle(og) { + return og + } + if t := SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240); t != "" && !wave3SecIsGenericTitle(t) { + return t + } + return "" +} + +func wave3SecExtractMetaDesc(rawHTML string) string { + return wave3SecFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600), + ) +} + +func wave3SecFragToMD(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 wave3SecExtractCVEs(text string, max int) []string { + if text == "" { + return nil + } + matches := wave3SecRxCVE.FindAllString(text, max*3) + if len(matches) == 0 { + return nil + } + seen := make(map[string]bool, len(matches)) + out := make([]string, 0, len(matches)) + for _, m := range matches { + up := strings.ToUpper(m) + if !seen[up] { + seen[up] = true + out = append(out, up) + if len(out) >= max { + break + } + } + } + return out +} + +func wave3SecExtractTableBlock(doc *HTMLDoc, selector string, maxRows int) (string, [][]string) { + if doc == nil { + return "", nil + } + rows := doc.TableRows(selector) + if len(rows) < 2 || len(rows[0]) == 0 { + return "", nil + } + cols := len(rows[0]) + if cols > 6 { + cols = 6 + } + hdr := make([]string, cols) + for i := 0; i < cols; i++ { + hdr[i] = SanitizeSchemaPlainField(rows[0][i], 80) + if hdr[i] == "" { + hdr[i] = fmt.Sprintf("Col %d", i+1) + } + } + var dataRows [][]string + for _, r := range rows[1:] { + if len(dataRows) >= maxRows { + break + } + out := make([]string, cols) + nonEmpty := false + for c := 0; c < cols; c++ { + if c < len(r) { + out[c] = SanitizeSchemaPlainField(r[c], 140) + } + if out[c] == "" { + out[c] = "-" + } else { + nonEmpty = true + } + } + if nonEmpty { + dataRows = append(dataRows, out) + } + } + if len(dataRows) == 0 { + return "", nil + } + return formatDeclarativeGFMTable(hdr, dataRows), dataRows +} + +// ── #315 CISA KEV (JSON / CSV / HTML) ──────────────────────────────────────────────────────────── + +func wave3SecCVEFilterParam(origURL string) string { + u, err := url.Parse(origURL) + if err != nil { + return "" + } + for k, vals := range u.Query() { + if strings.EqualFold(k, "cve") && len(vals) > 0 { + cand := strings.ToUpper(strings.TrimSpace(vals[0])) + if isValidCVEIDGo(cand) { + return cand + } + } + } + return "" +} + +func wave3SecFormatCISAKEVJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + vulns, okV := obj["vulnerabilities"].([]any) + if !okV || len(vulns) == 0 { + return nil, false + } + title := wave3SecFirstNonEmpty(wave3SecPlain(obj["title"], 180), "CISA Known Exploited Vulnerabilities (KEV) Catalog") + ver := wave3SecPlain(obj["catalogVersion"], 48) + released := wave3SecNormalizeDate(wave3SecStringVal(obj["dateReleased"])) + filterCVE := wave3SecCVEFilterParam(origURL) + + totalCount := len(vulns) + if c, okC := wave3SecFloatVal(obj["count"]); okC && int(c) > totalCount { + totalCount = int(c) + } + + var records []map[string]any + var rows [][]string + matchedTotal := 0 + for _, rawV := range vulns { + vm, okM := rawV.(map[string]any) + if !okM { + continue + } + cveID := strings.ToUpper(wave3SecPlain(vm["cveID"], 32)) + if cveID == "" { + continue + } + if filterCVE != "" && !strings.EqualFold(cveID, filterCVE) { + continue + } + matchedTotal++ + if len(records) >= wave3SecMaxRecords { + continue + } + vendor := wave3SecPlain(vm["vendorProject"], 80) + product := wave3SecPlain(vm["product"], 80) + vulnName := wave3SecPlain(vm["vulnerabilityName"], 160) + dateAdded := wave3SecNormalizeDate(wave3SecStringVal(vm["dateAdded"])) + dueDate := wave3SecNormalizeDate(wave3SecStringVal(vm["dueDate"])) + ransomware := wave3SecPlain(vm["knownRansomwareCampaignUse"], 24) + shortDesc := wave3SecPlain(vm["shortDescription"], 400) + reqAction := wave3SecPlain(vm["requiredAction"], 300) + + rec := map[string]any{ + "cveID": cveID, + "vendorProject": vendor, + "product": product, + "name": vulnName, + "dateAdded": dateAdded, + "dueDate": dueDate, + } + if ransomware != "" { + rec["knownRansomwareCampaignUse"] = ransomware + } + if shortDesc != "" { + rec["shortDescription"] = shortDesc + } + if reqAction != "" { + rec["requiredAction"] = reqAction + } + records = append(records, rec) + rows = append(rows, []string{ + "`" + cveID + "`", + wave3SecFirstNonEmpty(vendor, "-"), + wave3SecFirstNonEmpty(product, "-"), + wave3SecFirstNonEmpty(dateAdded, "-"), + wave3SecFirstNonEmpty(dueDate, "-"), + wave3SecFirstNonEmpty(ransomware, "-"), + }) + } + if len(records) == 0 { + if filterCVE != "" { + missTitle := fmt.Sprintf("CISA KEV — %s", filterCVE) + var missMD strings.Builder + missMD.WriteString("# " + escapeDeclMarkdownBrackets(missTitle) + "\n\n") + if ver != "" { + missMD.WriteString("- **Catalog Version**: `" + ver + "`\n") + } + if released != "" { + missMD.WriteString("- **Date Released**: " + released + "\n") + } + missMD.WriteString(fmt.Sprintf("- **Total Catalog Entries**: %d\n", totalCount)) + missMD.WriteString("- **Returned**: 0\n\n") + missMD.WriteString("No matching KEV entry found for " + filterCVE + ".") + return &DeclarativeFormattedDoc{ + Title: missTitle, + PublishedTime: released, + Markdown: missMD.String(), + Records: []map[string]any{}, + Total: wave3SecIntPtr(0), + Returned: wave3SecIntPtr(0), + Truncated: wave3SecBoolPtr(false), + }, true + } + return nil, false + } + + effectiveTotal := totalCount + if filterCVE != "" { + effectiveTotal = matchedTotal + title = fmt.Sprintf("CISA KEV — %s", filterCVE) + } + + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if ver != "" { + md.WriteString("- **Catalog Version**: `" + ver + "`\n") + } + if released != "" { + md.WriteString("- **Date Released**: " + released + "\n") + } + md.WriteString(fmt.Sprintf("- **Total Catalog Entries**: %d\n", effectiveTotal)) + md.WriteString(fmt.Sprintf("- **Returned**: %d\n\n", len(records))) + md.WriteString("## Known Exploited Vulnerabilities\n\n") + md.WriteString(formatDeclarativeGFMTable([]string{"CVE", "Vendor", "Product", "Date Added", "Due Date", "Ransomware"}, rows)) + + trunc := effectiveTotal > len(records) + nextCur := "" + if trunc { + nextCur = strconv.Itoa(len(records)) + } + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: released, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(effectiveTotal), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(trunc), + NextCursor: nextCur, + }, true +} + +func wave3SecFormatCISAKEVCSV(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + lines := strings.Split(rawBody, "\n") + if len(lines) < 2 { + return nil, false + } + hdrLine := strings.TrimSpace(lines[0]) + if !strings.Contains(strings.ToLower(hdrLine), "cveid") || !strings.Contains(strings.ToLower(hdrLine), "vendorproject") { + return nil, false + } + r := csv.NewReader(strings.NewReader(rawBody)) + r.ReuseRecord = true + headers, err := r.Read() + if err != nil || len(headers) < 4 { + return nil, false + } + colIdx := make(map[string]int, len(headers)) + for i, h := range headers { + colIdx[strings.ToLower(strings.TrimSpace(h))] = i + } + getCol := func(rec []string, name string) string { + idx, ok := colIdx[name] + if !ok || idx >= len(rec) { + return "" + } + return SanitizeSchemaPlainField(rec[idx], 240) + } + + filterCVE := wave3SecCVEFilterParam(origURL) + var records []map[string]any + var rows [][]string + totalMatched := 0 + catalogTotal := 0 + for { + rec, err := r.Read() + if err == io.EOF { + break + } + if err != nil { + break + } + cveID := strings.ToUpper(getCol(rec, "cveid")) + if !isValidCVEIDGo(cveID) { + continue + } + catalogTotal++ + if filterCVE != "" && !strings.EqualFold(cveID, filterCVE) { + continue + } + totalMatched++ + if len(records) >= wave3SecMaxRecords { + continue + } + vendor := getCol(rec, "vendorproject") + product := getCol(rec, "product") + dateAdded := wave3SecNormalizeDate(getCol(rec, "dateadded")) + dueDate := wave3SecNormalizeDate(getCol(rec, "duedate")) + ransomware := getCol(rec, "knownransomwarecampaignuse") + records = append(records, map[string]any{ + "cveID": cveID, + "vendorProject": vendor, + "product": product, + "name": getCol(rec, "vulnerabilityname"), + "dateAdded": dateAdded, + "dueDate": dueDate, + }) + rows = append(rows, []string{ + "`" + cveID + "`", + wave3SecFirstNonEmpty(vendor, "-"), + wave3SecFirstNonEmpty(product, "-"), + wave3SecFirstNonEmpty(dateAdded, "-"), + wave3SecFirstNonEmpty(dueDate, "-"), + wave3SecFirstNonEmpty(ransomware, "-"), + }) + } + if len(records) == 0 { + if filterCVE != "" && catalogTotal > 0 { + missTitle := fmt.Sprintf("CISA KEV — %s", filterCVE) + missMD := fmt.Sprintf("# %s\n\n- **Total Catalog Entries**: %d\n- **Returned**: 0\n\nNo matching KEV entry found for %s.", + escapeDeclMarkdownBrackets(missTitle), catalogTotal, filterCVE) + return &DeclarativeFormattedDoc{ + Title: missTitle, + Markdown: missMD, + Records: []map[string]any{}, + Total: wave3SecIntPtr(0), + Returned: wave3SecIntPtr(0), + Truncated: wave3SecBoolPtr(false), + }, true + } + return nil, false + } + title := "CISA Known Exploited Vulnerabilities (KEV) Catalog (CSV)" + if filterCVE != "" { + title = fmt.Sprintf("CISA KEV — %s", filterCVE) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + md.WriteString(fmt.Sprintf("- **Total Matching Entries**: %d\n- **Returned**: %d\n\n", totalMatched, len(records))) + md.WriteString(formatDeclarativeGFMTable([]string{"CVE", "Vendor", "Product", "Date Added", "Due Date", "Ransomware"}, rows)) + trunc := totalMatched > len(records) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(totalMatched), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(trunc), + }, true +} + +func wave3SecExtractCISAKEVHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3SecMaxHTMLBytes) + title := wave3SecFirstNonEmpty(wave3SecExtractTitle(doc, rawHTML), "Known Exploited Vulnerabilities Catalog") + desc := wave3SecExtractMetaDesc(rawHTML) + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + bodyMD := strings.TrimSpace(mainDoc.Markdown) + if bodyMD == "" && desc == "" { + return nil + } + var links []string + seen := make(map[string]bool) + for _, m := range wave3SecRxHref.FindAllStringSubmatch(rawHTML, 80) { + if len(m) >= 2 && (strings.Contains(m[1], "known_exploited_vulnerabilities") || strings.Contains(m[1], "cisa.gov")) { + wave3SecAddLink(&links, seen, m[1], baseURL) + } + } + for _, l := range mainDoc.Links { + wave3SecAddLink(&links, seen, l, baseURL) + if len(links) >= 20 { + break + } + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if desc != "" { + md.WriteString("> " + desc + "\n\n") + } + if bodyMD != "" { + md.WriteString(bodyMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md.String(), + Links: links, + } +} + +// ── #316 FIRST EPSS (JSON) ─────────────────────────────────────────────────────────────────────── + +func wave3SecFormatFirstEPSSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + if st := wave3SecPlain(obj["status"], 32); st != "" && !strings.EqualFold(st, "OK") { + return nil, false + } + dataArr, okD := obj["data"].([]any) + if !okD || len(dataArr) == 0 { + return nil, false + } + + total := len(dataArr) + if t, okT := wave3SecFloatVal(obj["total"]); okT && int(t) > total { + total = int(t) + } + + var records []map[string]any + var rows [][]string + firstDate := "" + firstCVE := "" + for _, rawItem := range dataArr { + if len(records) >= wave3SecMaxRecords { + break + } + im, okM := rawItem.(map[string]any) + if !okM { + continue + } + cve := strings.ToUpper(wave3SecPlain(im["cve"], 32)) + if cve == "" { + continue + } + epssVal, okE := wave3SecFloatVal(im["epss"]) + pctVal, okP := wave3SecFloatVal(im["percentile"]) + dateStr := wave3SecNormalizeDate(wave3SecStringVal(im["date"])) + if firstDate == "" { + firstDate = dateStr + } + if firstCVE == "" { + firstCVE = cve + } + epssDisp := "-" + if okE { + epssDisp = fmt.Sprintf("%.5f (%.2f%%)", epssVal, epssVal*100) + } + pctDisp := "-" + if okP { + pctDisp = fmt.Sprintf("%.2f%%", pctVal*100) + } + rec := map[string]any{ + "cve": cve, + "date": dateStr, + } + if okE { + rec["epss"] = epssVal + } + if okP { + rec["percentile"] = pctVal + } + records = append(records, rec) + rows = append(rows, []string{ + "`" + cve + "`", + epssDisp, + pctDisp, + wave3SecFirstNonEmpty(dateStr, "-"), + }) + } + if len(records) == 0 { + return nil, false + } + + title := "FIRST EPSS Exploit Prediction Scores" + if len(records) == 1 && firstCVE != "" { + title = fmt.Sprintf("FIRST EPSS — %s", firstCVE) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if modelVer := wave3SecPlain(obj["model_version"], 48); modelVer != "" { + md.WriteString("- **Model Version**: `" + modelVer + "`\n") + } + if firstDate != "" { + md.WriteString("- **Score Date**: " + firstDate + "\n") + } + md.WriteString("\n") + md.WriteString(formatDeclarativeGFMTable([]string{"CVE", "EPSS Score", "Percentile", "Date"}, rows)) + + trunc := total > len(records) + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: firstDate, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(total), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(trunc), + }, true +} + +// ── #317 MITRE ATT&CK (STIX Index JSON / Linear Prefix STIX Scanner / HTML) ────────────────────── + +func wave3SecFormatMitreAttackIndexJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + cols, okC := obj["collections"].([]any) + if !okC || len(cols) == 0 { + return nil, false + } + title := wave3SecFirstNonEmpty(wave3SecPlain(obj["name"], 180), "MITRE ATT&CK STIX Collections Index") + var records []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, rawCol := range cols { + if len(records) >= wave3SecMaxRecords { + break + } + cm, okM := rawCol.(map[string]any) + if !okM { + continue + } + name := wave3SecPlain(cm["name"], 120) + id := wave3SecPlain(cm["id"], 80) + if name == "" && id == "" { + continue + } + latestVer := "" + latestURL := "" + latestMod := "" + if vers, okV := cm["versions"].([]any); okV && len(vers) > 0 { + if vm, okVM := vers[0].(map[string]any); okVM { + latestVer = wave3SecPlain(vm["version"], 32) + latestURL = SanitizeSchemaHTTPSURL(wave3SecStringVal(vm["url"]), origURL) + latestMod = wave3SecNormalizeDate(wave3SecStringVal(vm["modified"])) + wave3SecAddLink(&links, seen, latestURL, origURL) + } + } + records = append(records, map[string]any{ + "id": id, + "name": name, + "latestVersion": latestVer, + "modified": latestMod, + "url": latestURL, + }) + rows = append(rows, []string{ + wave3SecFirstNonEmpty(name, id), + wave3SecFirstNonEmpty(latestVer, "-"), + wave3SecFirstNonEmpty(latestMod, "-"), + wave3SecFirstNonEmpty(latestURL, "-"), + }) + } + if len(records) == 0 { + return nil, false + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + md.WriteString(formatDeclarativeGFMTable([]string{"Collection", "Latest Version", "Modified", "STIX URL"}, rows)) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(len(cols)), + Returned: wave3SecIntPtr(len(records)), + }, true +} + +// wave3SecFormatMitreAttackSTIXBundle linearly scans a bounded (possibly Range-truncated) STIX 2.1 +// bundle prefix without failing on truncated EOF, extracting collection metadata + up to 25 complete objects. +func wave3SecFormatMitreAttackSTIXBundle(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + trimmed := strings.TrimSpace(rawBody) + if len(trimmed) < 20 || trimmed[0] != '{' { + return nil, false + } + if !strings.Contains(trimmed, `"objects"`) { + return nil, false + } + hasSTIXSignal := strings.Contains(trimmed, `"bundle"`) || + strings.Contains(trimmed, `"attack-pattern"`) || + strings.Contains(trimmed, `"x-mitre-"`) || + strings.Contains(trimmed, `"intrusion-set"`) || + strings.Contains(trimmed, `"malware"`) || + strings.Contains(trimmed, `"tool"`) || + strings.Contains(trimmed, `"course-of-action"`) + if !hasSTIXSignal { + return nil, false + } + + objKeyIdx := strings.Index(trimmed, `"objects"`) + if objKeyIdx < 0 { + return nil, false + } + arrStart := -1 + for i := objKeyIdx + len(`"objects"`); i < len(trimmed); i++ { + b := trimmed[i] + if b == '[' { + arrStart = i + break + } + if b != ':' && b != ' ' && b != '\t' && b != '\r' && b != '\n' { + return nil, false + } + } + if arrStart < 0 { + return nil, false + } + + colName := "" + colVersion := "" + colModified := "" + colDesc := "" + var records []map[string]any + var rows [][]string + var links []string + seenLinks := make(map[string]bool) + completeObjects := 0 + sawTruncated := false + reachedArrayEnd := false + + i := arrStart + 1 + n := len(trimmed) + for i < n { + // Skip whitespace and commas between STIX objects + for i < n && (trimmed[i] == ' ' || trimmed[i] == '\t' || trimmed[i] == '\r' || trimmed[i] == '\n' || trimmed[i] == ',') { + i++ + } + if i >= n { + sawTruncated = true + break + } + if trimmed[i] == ']' { + reachedArrayEnd = true + break + } + if trimmed[i] != '{' { + sawTruncated = true + break + } + if len(records) >= wave3SecMaxRecords { + sawTruncated = true + break + } + + objStart := i + depth := 0 + inStr := false + escaped := false + objEnd := -1 + for i < n { + c := trimmed[i] + if inStr { + if escaped { + escaped = false + } else if c == '\\' { + escaped = true + } else if c == '"' { + inStr = false + } + } else { + switch c { + case '"': + inStr = true + case '{': + depth++ + case '}': + depth-- + if depth == 0 { + objEnd = i + 1 + } + } + } + i++ + if objEnd > 0 { + break + } + } + if objEnd < 0 { + sawTruncated = true + break + } + + var stixObj map[string]any + if err := json.Unmarshal([]byte(trimmed[objStart:objEnd]), &stixObj); err != nil || stixObj == nil { + continue + } + completeObjects++ + stixType := wave3SecPlain(stixObj["type"], 64) + if stixType == "x-mitre-collection" { + colName = wave3SecFirstNonEmpty(colName, wave3SecPlain(stixObj["name"], 160)) + colVersion = wave3SecFirstNonEmpty(colVersion, wave3SecPlain(stixObj["x_mitre_version"], 32)) + colModified = wave3SecFirstNonEmpty(colModified, wave3SecNormalizeDate(wave3SecStringVal(stixObj["modified"]))) + colDesc = wave3SecFirstNonEmpty(colDesc, wave3SecPlain(stixObj["description"], 500)) + continue + } + switch stixType { + case "attack-pattern", "intrusion-set", "malware", "tool", "course-of-action", "x-mitre-tactic", "campaign", "x-mitre-data-source": + default: + continue + } + + attackID := "" + if refs, okR := stixObj["external_references"].([]any); okR { + for _, rr := range refs { + rm, okRM := rr.(map[string]any) + if !okRM { + continue + } + src := wave3SecPlain(rm["source_name"], 48) + extID := wave3SecPlain(rm["external_id"], 48) + extURL := SanitizeSchemaHTTPSURL(wave3SecStringVal(rm["url"]), origURL) + if extURL != "" && len(links) < 20 { + wave3SecAddLink(&links, seenLinks, extURL, origURL) + } + if attackID == "" && extID != "" && (strings.Contains(strings.ToLower(src), "mitre") || src == "") { + attackID = extID + } + } + } + + name := wave3SecPlain(stixObj["name"], 160) + stixID := wave3SecPlain(stixObj["id"], 80) + desc := wave3SecPlain(stixObj["description"], 260) + var platforms []string + if pArr, okP := stixObj["x_mitre_platforms"].([]any); okP { + for _, p := range pArr { + if ps := wave3SecPlain(p, 48); ps != "" { + platforms = append(platforms, ps) + } + } + } + rec := map[string]any{ + "id": stixID, + "type": stixType, + "name": name, + "mitreId": attackID, + } + if len(platforms) > 0 { + rec["platforms"] = platforms + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + rows = append(rows, []string{ + wave3SecFirstNonEmpty(attackID, "-"), + stixType, + wave3SecFirstNonEmpty(name, stixID), + wave3SecFirstNonEmpty(strings.Join(platforms, ", "), "-"), + }) + } + + if completeObjects == 0 { + return nil, false + } + if len(records) == 0 && colName != "" { + records = append(records, map[string]any{ + "type": "x-mitre-collection", + "name": colName, + "version": colVersion, + }) + } + if len(records) == 0 { + return nil, false + } + + title := wave3SecFirstNonEmpty(colName, "MITRE ATT&CK STIX 2.1 Bundle") + if colVersion != "" { + title = fmt.Sprintf("%s (v%s)", title, colVersion) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if colDesc != "" { + md.WriteString("> " + colDesc + "\n\n") + } + if colVersion != "" { + md.WriteString("- **ATT&CK Version**: `" + colVersion + "`\n") + } + if colModified != "" { + md.WriteString("- **Modified**: " + colModified + "\n") + } + md.WriteString(fmt.Sprintf("- **Returned Objects**: %d", len(records))) + if sawTruncated || !reachedArrayEnd { + md.WriteString(" (bounded STIX prefix scan)") + } + md.WriteString("\n\n") + if len(rows) > 0 { + md.WriteString(formatDeclarativeGFMTable([]string{"ATT&CK ID", "Type", "Name", "Platforms"}, rows)) + } + + trunc := sawTruncated || !reachedArrayEnd + return &DeclarativeFormattedDoc{ + Title: title, + Description: colDesc, + PublishedTime: colModified, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(len(records)), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(trunc), + }, true +} + +func wave3SecExtractMitreAttackHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3SecMaxHTMLBytes) + title := wave3SecExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3SecExtractMetaDesc(rawHTML) + var bullets []string + if doc != nil { + for _, cardNode := range doc.Select(".card-data", 12) { + if c := SanitizeSchemaPlainField(wave3SecCleanText(cardNode.Text()), 180); c != "" { + bullets = append(bullets, "- "+c) + } + } + } + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + bodyMD := strings.TrimSpace(mainDoc.Markdown) + if bodyMD == "" && len(bullets) == 0 { + return nil + } + var links []string + seen := make(map[string]bool) + for _, l := range mainDoc.Links { + wave3SecAddLink(&links, seen, l, baseURL) + if len(links) >= 20 { + break + } + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if desc != "" { + md.WriteString("> " + desc + "\n\n") + } + if len(bullets) > 0 { + md.WriteString(strings.Join(bullets, "\n") + "\n\n") + } + if bodyMD != "" { + md.WriteString(bodyMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md.String(), + Links: links, + } +} + +// ── #318 MITRE CWE & CAPEC (JSON + XHTML) ──────────────────────────────────────────────────────── + +func wave3SecFormatMitreCWEJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + if arr, isArr := parsed.([]any); isArr { + if len(arr) == 0 { + return nil, false + } + var records []map[string]any + var rows [][]string + for _, it := range arr { + if len(records) >= wave3SecMaxRecords { + break + } + m, ok := it.(map[string]any) + if !ok { + continue + } + id := wave3SecPlain(m["ID"], 32) + typ := wave3SecPlain(m["Type"], 64) + name := wave3SecPlain(m["Name"], 160) + if id == "" { + continue + } + records = append(records, map[string]any{ + "id": "CWE-" + id, + "type": typ, + "name": name, + }) + rows = append(rows, []string{"`CWE-" + id + "`", wave3SecFirstNonEmpty(typ, "-"), wave3SecFirstNonEmpty(name, "-")}) + } + if len(records) == 0 { + return nil, false + } + title := fmt.Sprintf("MITRE %s", wave3SecStringVal(records[0]["id"])) + var md strings.Builder + md.WriteString("# " + title + "\n\n") + md.WriteString(formatDeclarativeGFMTable([]string{"ID", "Type", "Name"}, rows)) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(len(arr)), + Returned: wave3SecIntPtr(len(records)), + }, true + } + + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + var items []any + kindLabel := "CWE Weakness" + for _, key := range []string{"Weaknesses", "Categories", "Views"} { + if arr, okA := obj[key].([]any); okA && len(arr) > 0 { + items = arr + if key == "Categories" { + kindLabel = "CWE Category" + } else if key == "Views" { + kindLabel = "CWE View" + } + break + } + } + if len(items) == 0 { + return nil, false + } + first, okF := items[0].(map[string]any) + if !okF { + return nil, false + } + cweID := wave3SecPlain(first["ID"], 32) + name := wave3SecFirstNonEmpty(wave3SecPlain(first["Name"], 200), "Unknown Weakness") + if cweID == "" { + return nil, false + } + cweCode := "CWE-" + cweID + title := fmt.Sprintf("%s: %s", cweCode, name) + desc := wave3SecPlain(first["Description"], 1600) + extDesc := wave3SecPlain(first["ExtendedDescription"], 1600) + abstraction := wave3SecPlain(first["Abstraction"], 48) + status := wave3SecPlain(first["Status"], 48) + likelihood := wave3SecPlain(first["LikelihoodOfExploit"], 48) + + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + md.WriteString("- **Type**: " + kindLabel + "\n") + if abstraction != "" { + md.WriteString("- **Abstraction**: " + abstraction + "\n") + } + if status != "" { + md.WriteString("- **Status**: " + status + "\n") + } + if likelihood != "" { + md.WriteString("- **Likelihood of Exploit**: " + likelihood + "\n") + } + if desc != "" { + md.WriteString("\n## Description\n\n" + desc + "\n") + } + if extDesc != "" { + md.WriteString("\n## Extended Description\n\n" + extDesc + "\n") + } + if mitArr, okM := first["PotentialMitigations"].([]any); okM && len(mitArr) > 0 { + var mRows [][]string + for _, rm := range mitArr { + if len(mRows) >= 12 { + break + } + mm, okMM := rm.(map[string]any) + if !okMM { + continue + } + phase := "-" + if ps, okPS := mm["Phase"].([]any); okPS && len(ps) > 0 { + var pList []string + for _, p := range ps { + if s := wave3SecPlain(p, 48); s != "" { + pList = append(pList, s) + } + } + if len(pList) > 0 { + phase = strings.Join(pList, ", ") + } + } + mDesc := wave3SecPlain(mm["Description"], 240) + if mDesc != "" { + mRows = append(mRows, []string{phase, mDesc}) + } + } + if len(mRows) > 0 { + md.WriteString("\n## Potential Mitigations\n\n" + formatDeclarativeGFMTable([]string{"Phase", "Mitigation"}, mRows)) + } + } + + rec := map[string]any{ + "id": cweCode, + "name": name, + "abstraction": abstraction, + "status": status, + } + if likelihood != "" { + rec["likelihoodOfExploit"] = likelihood + } + cweURL := fmt.Sprintf("https://cwe.mitre.org/data/definitions/%s.html", cweID) + return &DeclarativeFormattedDoc{ + Title: title, + Description: SanitizeSchemaPlainField(desc, 300), + Markdown: md.String(), + Links: []string{cweURL}, + Records: []map[string]any{rec}, + Total: wave3SecIntPtr(1), + Returned: wave3SecIntPtr(1), + }, true +} + +func wave3SecExtractMitreCWECAPECHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3SecMaxHTMLBytes) + title := wave3SecExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := "" + var sectionBlocks []string + if doc != nil { + for _, sid := range []string{"Description", "Extended_Description", "Execution_Flow", "Common_Consequences", "Potential_Mitigations", "Mitigations", "Related_Weaknesses", "Observed_Examples"} { + node := doc.First("#" + sid) + if node == nil { + continue + } + frag := node.HTML() + secMD := wave3SecFragToMD(frag, baseURL) + if secMD != "" { + heading := strings.ReplaceAll(sid, "_", " ") + sectionBlocks = append(sectionBlocks, "## "+heading+"\n\n"+secMD) + if sid == "Description" && desc == "" { + desc = SanitizeSchemaPlainField(wave3SecCleanText(node.Text()), 320) + } + } + } + } + if len(sectionBlocks) == 0 { + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + if strings.TrimSpace(mainDoc.Markdown) == "" { + return nil + } + sectionBlocks = append(sectionBlocks, strings.TrimSpace(mainDoc.Markdown)) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + md.WriteString(strings.Join(sectionBlocks, "\n\n")) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md.String(), + } +} + +// ── #319 CVE.org (CVE JSON 5.x + Vue CSR Shell Guard) ──────────────────────────────────────────── + +func wave3SecFormatCVEOrgJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + meta, okM := obj["cveMetadata"].(map[string]any) + if !okM { + return nil, false + } + cveID := strings.ToUpper(wave3SecPlain(meta["cveId"], 32)) + if !isValidCVEIDGo(cveID) { + return nil, false + } + state := wave3SecPlain(meta["state"], 32) + assigner := wave3SecPlain(meta["assignerShortName"], 64) + datePub := wave3SecNormalizeDate(wave3SecStringVal(meta["datePublished"])) + dateUpd := wave3SecNormalizeDate(wave3SecStringVal(meta["dateUpdated"])) + + containers, _ := obj["containers"].(map[string]any) + cna, _ := containers["cna"].(map[string]any) + cnaTitle := wave3SecPlain(cna["title"], 220) + + desc := "" + if descs, okD := cna["descriptions"].([]any); okD { + for _, rd := range descs { + dm, okDM := rd.(map[string]any) + if !okDM { + continue + } + val := wave3SecPlain(dm["value"], 2000) + if val == "" { + continue + } + lang := strings.ToLower(wave3SecPlain(dm["lang"], 16)) + if desc == "" || strings.HasPrefix(lang, "en") { + desc = val + if strings.HasPrefix(lang, "en") { + break + } + } + } + } + + var cvssScore, cvssSev, cvssVec string + extractMetrics := func(metricsAny any) { + mArr, okMA := metricsAny.([]any) + if !okMA { + return + } + for _, rm := range mArr { + mm, okMM := rm.(map[string]any) + if !okMM { + continue + } + for _, key := range []string{"cvssV4_0", "cvssV3_1", "cvssV3_0"} { + if cm, okCM := mm[key].(map[string]any); okCM && cvssScore == "" { + cvssScore = wave3SecPlain(cm["baseScore"], 16) + cvssSev = wave3SecPlain(cm["baseSeverity"], 24) + cvssVec = wave3SecPlain(cm["vectorString"], 128) + } + } + } + } + extractMetrics(cna["metrics"]) + if adpArr, okADP := containers["adp"].([]any); okADP && cvssScore == "" { + for _, ra := range adpArr { + if am, okAM := ra.(map[string]any); okAM { + extractMetrics(am["metrics"]) + } + } + } + + var cwes []string + if ptArr, okPT := cna["problemTypes"].([]any); okPT { + for _, rpt := range ptArr { + pm, okPM := rpt.(map[string]any) + if !okPM { + continue + } + if descs, okPD := pm["descriptions"].([]any); okPD { + for _, rd := range descs { + if dm, okDM := rd.(map[string]any); okDM { + cwe := wave3SecFirstNonEmpty(wave3SecPlain(dm["cweId"], 32), wave3SecPlain(dm["description"], 120)) + if cwe != "" && len(cwes) < 8 { + cwes = append(cwes, cwe) + } + } + } + } + } + } + + var affRows [][]string + if affArr, okAF := cna["affected"].([]any); okAF { + for _, raf := range affArr { + if len(affRows) >= 20 { + break + } + am, okAM := raf.(map[string]any) + if !okAM { + continue + } + vendor := wave3SecFirstNonEmpty(wave3SecPlain(am["vendor"], 80), "-") + product := wave3SecFirstNonEmpty(wave3SecPlain(am["product"], 80), "-") + var vers []string + if vArr, okVA := am["versions"].([]any); okVA { + for _, rv := range vArr { + if vm, okVM := rv.(map[string]any); okVM && len(vers) < 5 { + v := wave3SecPlain(vm["version"], 48) + st := wave3SecPlain(vm["status"], 24) + if v != "" { + if st != "" { + vers = append(vers, v+" ("+st+")") + } else { + vers = append(vers, v) + } + } + } + } + } + affRows = append(affRows, []string{vendor, product, wave3SecFirstNonEmpty(strings.Join(vers, ", "), "-")}) + } + } + + var links []string + seen := make(map[string]bool) + if refArr, okRF := cna["references"].([]any); okRF { + for _, rrf := range refArr { + if rm, okRM := rrf.(map[string]any); okRM && len(links) < 20 { + wave3SecAddLink(&links, seen, wave3SecStringVal(rm["url"]), origURL) + } + } + } + + title := cveID + if cnaTitle != "" { + title = fmt.Sprintf("%s — %s", cveID, cnaTitle) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if state != "" { + md.WriteString("- **State**: `" + state + "`\n") + } + if assigner != "" { + md.WriteString("- **CNA**: " + assigner + "\n") + } + if datePub != "" { + md.WriteString("- **Published**: " + datePub + "\n") + } + if dateUpd != "" { + md.WriteString("- **Updated**: " + dateUpd + "\n") + } + if cvssScore != "" { + md.WriteString("- **CVSS**: **" + cvssScore + "**") + if cvssSev != "" { + md.WriteString(" (" + cvssSev + ")") + } + if cvssVec != "" { + md.WriteString(" — `" + cvssVec + "`") + } + md.WriteString("\n") + } + if len(cwes) > 0 { + md.WriteString("- **CWEs**: " + strings.Join(cwes, ", ") + "\n") + } + if desc != "" { + md.WriteString("\n## Description\n\n" + desc + "\n") + } + if len(affRows) > 0 { + md.WriteString("\n## Affected Products\n\n" + formatDeclarativeGFMTable([]string{"Vendor", "Product", "Versions"}, affRows)) + } + + rec := map[string]any{ + "cveId": cveID, + "state": state, + "assigner": assigner, + } + if cvssScore != "" { + rec["cvssScore"] = cvssScore + rec["cvssSeverity"] = cvssSev + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: SanitizeSchemaPlainField(desc, 300), + PublishedTime: datePub, + Markdown: md.String(), + Links: links, + Records: []map[string]any{rec}, + Total: wave3SecIntPtr(1), + Returned: wave3SecIntPtr(1), + }, true +} + +func wave3SecExtractCVEOrgHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + // Strictly reject Vue CSR SPA shell (
+

) + if strings.Contains(probeLower, "
") || strings.Contains(probeLower, "
") { + return nil + } + if strings.Contains(probeLower, "

0 { + channelHead = rawBody[:idx] + } + chanTitle := defaultTitle + if m := wave3SecRxXMLTag.FindStringSubmatch(channelHead); len(m) >= 2 { + if ct := SanitizeSchemaPlainField(wave3SecCleanText(m[1]), 160); ct != "" { + chanTitle = ct + } + } + + var records []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, it := range items { + if len(records) >= wave3SecMaxRecords { + break + } + if len(it) < 2 { + continue + } + body := it[1] + title := "" + if m := wave3SecRxXMLTag.FindStringSubmatch(body); len(m) >= 2 { + title = SanitizeSchemaPlainField(wave3SecCleanText(m[1]), 200) + } + link := "" + if m := wave3SecRxXMLTagLink.FindStringSubmatch(body); len(m) >= 2 { + link = SanitizeSchemaHTTPSURL(strings.TrimSpace(m[1]), origURL) + wave3SecAddLink(&links, seen, link, origURL) + } + pubDate := "" + if m := wave3SecRxXMLTagPubDate.FindStringSubmatch(body); len(m) >= 2 { + pubDate = SanitizeSchemaPlainField(wave3SecCleanText(m[1]), 48) + } + descRaw := "" + if m := wave3SecRxXMLTagDesc.FindStringSubmatch(body); len(m) >= 2 { + descRaw = m[1] + } + if title == "" && link == "" { + continue + } + cves := wave3SecExtractCVEs(title+" "+descRaw, 10) + csafURL := "" + if extractCSAF { + if cm := wave3SecRxCSAFURL.FindString(stdhtml.UnescapeString(descRaw)); cm != "" { + csafURL = SanitizeSchemaHTTPSURL(cm, origURL) + wave3SecAddLink(&links, seen, csafURL, origURL) + } + } + rec := map[string]any{ + "title": title, + "url": link, + "pubDate": pubDate, + } + if len(cves) > 0 { + rec["cves"] = cves + } + if csafURL != "" { + rec["csafUrl"] = csafURL + } + records = append(records, rec) + cvesCell := "-" + if len(cves) > 0 { + cvesCell = strings.Join(cves, ", ") + } + rows = append(rows, []string{ + wave3SecFirstNonEmpty(title, "-"), + wave3SecFirstNonEmpty(pubDate, "-"), + cvesCell, + wave3SecFirstNonEmpty(link, "-"), + }) + } + if len(records) == 0 { + return nil, false + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(chanTitle) + "\n\n") + md.WriteString(formatDeclarativeGFMTable([]string{"Title", "Published", "CVEs", "URL"}, rows)) + return &DeclarativeFormattedDoc{ + Title: chanTitle, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(len(items)), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(len(items) > len(records)), + }, true +} + +func wave3SecExtractCISAAdvisoriesHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3SecMaxHTMLBytes) + title := wave3SecExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3SecExtractMetaDesc(rawHTML) + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + bodyMD := strings.TrimSpace(mainDoc.Markdown) + if bodyMD == "" { + return nil + } + cves := wave3SecExtractCVEs(rawHTML, 15) + var links []string + seen := make(map[string]bool) + for _, l := range mainDoc.Links { + wave3SecAddLink(&links, seen, l, baseURL) + if len(links) >= 20 { + break + } + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if desc != "" { + md.WriteString("> " + desc + "\n\n") + } + if len(cves) > 0 { + md.WriteString("- **CVEs Referenced**: `" + strings.Join(cves, "`, `") + "`\n\n") + } + md.WriteString(bodyMD) + + var records []map[string]any + if len(cves) > 0 { + records = []map[string]any{{"title": title, "url": baseURL, "cves": cves}} + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md.String(), + Links: links, + Records: records, + } +} + +// ── #321 Vendor CSAF 2.0 & Provider Metadata (JSON) ────────────────────────────────────────────── + +func wave3SecFormatVendorCSAFJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + + // Case A: CSAF 2.0 provider-metadata.json + if _, hasCanon := obj["canonical_url"]; hasCanon || obj["distributions"] != nil || obj["metadata_version"] != nil { + canon := SanitizeSchemaHTTPSURL(wave3SecStringVal(obj["canonical_url"]), origURL) + metaVer := wave3SecPlain(obj["metadata_version"], 24) + role := wave3SecPlain(obj["role"], 48) + lastUpd := wave3SecNormalizeDate(wave3SecStringVal(obj["last_updated"])) + pubMap, _ := obj["publisher"].(map[string]any) + pubName := wave3SecPlain(pubMap["name"], 120) + pubNS := SanitizeSchemaHTTPSURL(wave3SecStringVal(pubMap["namespace"]), origURL) + contact := wave3SecPlain(pubMap["contact_details"], 200) + + var links []string + seen := make(map[string]bool) + wave3SecAddLink(&links, seen, canon, origURL) + wave3SecAddLink(&links, seen, pubNS, origURL) + + var records []map[string]any + var distRows [][]string + if distArr, okD := obj["distributions"].([]any); okD { + for _, rd := range distArr { + if len(records) >= wave3SecMaxRecords { + break + } + dm, okDM := rd.(map[string]any) + if !okDM { + continue + } + dirURL := SanitizeSchemaHTTPSURL(wave3SecStringVal(dm["directory_url"]), origURL) + wave3SecAddLink(&links, seen, dirURL, origURL) + rolieFeeds := 0 + if rolie, okR := dm["rolie"].(map[string]any); okR { + if feeds, okF := rolie["feeds"].([]any); okF { + rolieFeeds = len(feeds) + for _, rf := range feeds { + if fm, okFM := rf.(map[string]any); okFM { + wave3SecAddLink(&links, seen, wave3SecStringVal(fm["url"]), origURL) + } + } + } + } + records = append(records, map[string]any{ + "directoryUrl": dirURL, + "rolieFeeds": rolieFeeds, + }) + distRows = append(distRows, []string{ + wave3SecFirstNonEmpty(dirURL, "-"), + strconv.Itoa(rolieFeeds), + }) + } + } + if canon == "" && pubName == "" && len(records) == 0 { + return nil, false + } + title := "CSAF Provider Metadata" + if pubName != "" { + title = fmt.Sprintf("CSAF Provider Metadata — %s", pubName) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if metaVer != "" { + md.WriteString("- **Metadata Version**: `" + metaVer + "`\n") + } + if role != "" { + md.WriteString("- **Role**: " + role + "\n") + } + if lastUpd != "" { + md.WriteString("- **Last Updated**: " + lastUpd + "\n") + } + if contact != "" { + md.WriteString("- **Contact**: " + contact + "\n") + } + if canon != "" { + md.WriteString("- **Canonical URL**: " + canon + "\n") + } + if len(distRows) > 0 { + md.WriteString("\n## Distributions\n\n" + formatDeclarativeGFMTable([]string{"Directory URL", "ROLIE Feeds"}, distRows)) + } + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: lastUpd, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(len(records)), + Returned: wave3SecIntPtr(len(records)), + }, true + } + + // Case B: CSAF 2.0 Advisory Document + docMap, okDoc := obj["document"].(map[string]any) + if !okDoc { + return nil, false + } + csafVer := wave3SecPlain(docMap["csaf_version"], 24) + tracking, _ := docMap["tracking"].(map[string]any) + trackID := wave3SecPlain(tracking["id"], 80) + docTitle := wave3SecPlain(docMap["title"], 220) + if csafVer == "" && trackID == "" && docTitle == "" { + return nil, false + } + category := wave3SecPlain(docMap["category"], 64) + status := wave3SecPlain(tracking["status"], 32) + relDate := wave3SecNormalizeDate(wave3SecStringVal(tracking["current_release_date"])) + pubMap, _ := docMap["publisher"].(map[string]any) + pubName := wave3SecPlain(pubMap["name"], 120) + aggSevMap, _ := docMap["aggregate_severity"].(map[string]any) + aggSev := wave3SecPlain(aggSevMap["text"], 48) + + summaryText := "" + if notes, okN := docMap["notes"].([]any); okN { + for _, rn := range notes { + nm, okNM := rn.(map[string]any) + if !okNM { + continue + } + txt := wave3SecPlain(nm["text"], 1400) + if txt != "" { + summaryText = txt + break + } + } + } + + var links []string + seen := make(map[string]bool) + if refs, okR := docMap["references"].([]any); okR { + for _, rr := range refs { + if rm, okRM := rr.(map[string]any); okRM && len(links) < 20 { + wave3SecAddLink(&links, seen, wave3SecStringVal(rm["url"]), origURL) + } + } + } + + vulns, _ := obj["vulnerabilities"].([]any) + var records []map[string]any + var rows [][]string + for _, rv := range vulns { + if len(records) >= wave3SecMaxRecords { + break + } + vm, okVM := rv.(map[string]any) + if !okVM { + continue + } + cve := strings.ToUpper(wave3SecPlain(vm["cve"], 32)) + vTitle := wave3SecPlain(vm["title"], 160) + cweID := "" + if cm, okC := vm["cwe"].(map[string]any); okC { + cweID = wave3SecPlain(cm["id"], 32) + } + cvssScore := "" + if scores, okS := vm["scores"].([]any); okS { + for _, rs := range scores { + sm, okSM := rs.(map[string]any) + if !okSM { + continue + } + if v3, okV3 := sm["cvss_v3"].(map[string]any); okV3 && cvssScore == "" { + cvssScore = wave3SecPlain(v3["baseScore"], 16) + } + if v2, okV2 := sm["cvss_v2"].(map[string]any); okV2 && cvssScore == "" { + cvssScore = wave3SecPlain(v2["baseScore"], 16) + } + } + } + records = append(records, map[string]any{ + "cve": cve, + "title": vTitle, + "cwe": cweID, + "cvssScore": cvssScore, + }) + rows = append(rows, []string{ + wave3SecFirstNonEmpty(cve, "-"), + wave3SecFirstNonEmpty(cvssScore, "-"), + wave3SecFirstNonEmpty(cweID, "-"), + wave3SecFirstNonEmpty(vTitle, "-"), + }) + } + if len(records) == 0 && trackID != "" { + records = append(records, map[string]any{ + "trackingId": trackID, + "title": docTitle, + "publisher": pubName, + }) + } + + title := wave3SecFirstNonEmpty(docTitle, trackID, "CSAF 2.0 Security Advisory") + if trackID != "" && docTitle != "" && !strings.Contains(docTitle, trackID) { + title = fmt.Sprintf("%s — %s", trackID, docTitle) + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if pubName != "" { + md.WriteString("- **Publisher**: " + pubName + "\n") + } + if trackID != "" { + md.WriteString("- **Tracking ID**: `" + trackID + "`\n") + } + if csafVer != "" { + md.WriteString("- **CSAF Version**: `" + csafVer + "`\n") + } + if category != "" { + md.WriteString("- **Category**: `" + category + "`\n") + } + if status != "" { + md.WriteString("- **Status**: `" + status + "`\n") + } + if aggSev != "" { + md.WriteString("- **Aggregate Severity**: " + aggSev + "\n") + } + if relDate != "" { + md.WriteString("- **Release Date**: " + relDate + "\n") + } + if summaryText != "" { + md.WriteString("\n## Summary\n\n" + summaryText + "\n") + } + if len(rows) > 0 { + md.WriteString("\n## Vulnerabilities\n\n" + formatDeclarativeGFMTable([]string{"CVE", "CVSS", "CWE", "Title"}, rows)) + } + + totalVulns := len(vulns) + if totalVulns == 0 { + totalVulns = len(records) + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: SanitizeSchemaPlainField(summaryText, 300), + PublishedTime: relDate, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(totalVulns), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(totalVulns > len(records)), + }, true +} + +// ── #322 RFC 9116 security.txt (Text) ──────────────────────────────────────────────────────────── + +func wave3SecFormatSecurityTxt(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + probe := rawBody + if len(probe) > 8192 { + probe = probe[:8192] + } + probeLower := asciiLowerExtractString(probe) + if strings.Contains(probeLower, " 0 { + expires = wave3SecNormalizeDate(fields["expires"][0]) + } + + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + for _, k := range orderedKeys { + label := strings.ToUpper(k[:1]) + k[1:] + for _, v := range fields[k] { + md.WriteString("- **" + label + "**: " + v + "\n") + } + } + + rec := map[string]any{ + "host": host, + "contacts": contacts, + } + if expires != "" { + rec["expires"] = expires + } + if len(fields["canonical"]) > 0 { + rec["canonical"] = fields["canonical"] + } + if len(fields["policy"]) > 0 { + rec["policy"] = fields["policy"] + } + if len(fields["encryption"]) > 0 { + rec["encryption"] = fields["encryption"] + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Links: links, + Records: []map[string]any{rec}, + Total: wave3SecIntPtr(1), + Returned: wave3SecIntPtr(1), + }, true +} + +// ── #323 Exploit-DB (Bounded CSV / RSS / HTML) ─────────────────────────────────────────────────── + +func wave3SecFormatExploitDBCSV(rawBody, origURL string) (*DeclarativeFormattedDoc, bool) { + firstNL := strings.IndexByte(rawBody, '\n') + if firstNL < 0 { + return nil, false + } + hdrLower := strings.ToLower(strings.TrimSpace(rawBody[:firstNL])) + if !strings.HasPrefix(hdrLower, "id,file,description,date_published") { + return nil, false + } + + // Drop trailing partial line from Range cut (or any unterminated last line) + safeBody := rawBody + if !strings.HasSuffix(safeBody, "\n") || len(safeBody) >= 2000000 { + if lastNL := strings.LastIndexByte(safeBody, '\n'); lastNL > firstNL { + safeBody = safeBody[:lastNL+1] + } + } + + r := csv.NewReader(strings.NewReader(safeBody)) + r.ReuseRecord = true + headers, err := r.Read() + if err != nil || len(headers) < 8 { + return nil, false + } + colIdx := make(map[string]int, len(headers)) + for i, h := range headers { + colIdx[strings.ToLower(strings.TrimSpace(h))] = i + } + getCol := func(rec []string, name string) string { + idx, ok := colIdx[name] + if !ok || idx >= len(rec) { + return "" + } + return SanitizeSchemaPlainField(rec[idx], 200) + } + + var records []map[string]any + var rows [][]string + totalParsed := 0 + for { + rec, err := r.Read() + if err == io.EOF { + break + } + if err != nil { + break + } + if len(rec) < 8 { + continue + } + edbID := getCol(rec, "id") + desc := getCol(rec, "description") + if edbID == "" || desc == "" { + continue + } + totalParsed++ + if len(records) >= wave3SecMaxRecords { + continue + } + pubDate := wave3SecNormalizeDate(getCol(rec, "date_published")) + author := getCol(rec, "author") + exType := getCol(rec, "type") + platform := getCol(rec, "platform") + codes := getCol(rec, "codes") + records = append(records, map[string]any{ + "id": edbID, + "description": desc, + "datePublished": pubDate, + "author": author, + "type": exType, + "platform": platform, + "codes": codes, + }) + rows = append(rows, []string{ + "`EDB-" + edbID + "`", + wave3SecFirstNonEmpty(pubDate, "-"), + wave3SecFirstNonEmpty(platform, "-"), + wave3SecFirstNonEmpty(exType, "-"), + wave3SecFirstNonEmpty(codes, "-"), + desc, + }) + } + if len(records) == 0 { + return nil, false + } + title := "Exploit-DB Exploits CSV Index" + trunc := totalParsed > len(records) || len(rawBody) >= 2000000 || !strings.HasSuffix(rawBody, "\n") + var md strings.Builder + md.WriteString("# " + title + "\n\n") + md.WriteString(fmt.Sprintf("- **Returned Exploits**: %d\n\n", len(records))) + md.WriteString(formatDeclarativeGFMTable([]string{"EDB-ID", "Published", "Platform", "Type", "Codes/CVEs", "Title"}, rows)) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(totalParsed), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(trunc), + }, true +} + +func wave3SecExtractExploitDBHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + rawTitle := extractTitleLinearQuick(rawHTML) + if strings.HasPrefix(strings.ToLower(strings.TrimSpace(rawTitle)), "exploit database - exploits") && + !strings.Contains(probeLower, "edb-id") && !strings.Contains(probeLower, "= 2 { + edbID = m[1] + } + cves := wave3SecExtractCVEs(rawHTML, 10) + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + snippet := "" + if pm := wave3SecRxPreCode.FindStringSubmatch(rawHTML); len(pm) >= 2 { + rawCode := wave3SecFirstNonEmpty(pm[1], pm[2]) + cleanCode := strings.TrimSpace(stdhtml.UnescapeString(wave3SecRxHTMLTag.ReplaceAllString(rawCode, ""))) + if len(cleanCode) > wave3SecMaxSnippetByte { + cleanCode = truncateUTF8SafeFullDocGo(cleanCode, wave3SecMaxSnippetByte) + "\n..." + } + snippet = cleanCode + } + bodyMD := strings.TrimSpace(mainDoc.Markdown) + if bodyMD == "" && snippet == "" { + return nil + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if edbID != "" { + md.WriteString("- **EDB-ID**: `" + edbID + "`\n") + } + if len(cves) > 0 { + md.WriteString("- **CVEs**: `" + strings.Join(cves, "`, `") + "`\n") + } + md.WriteString("\n") + if bodyMD != "" { + md.WriteString(bodyMD + "\n\n") + } + if snippet != "" && !strings.Contains(bodyMD, snippet[:wave3SecMinInt(len(snippet), 64)]) { + md.WriteString("## Exploit Snippet\n\n```\n" + snippet + "\n```\n") + } + rec := map[string]any{"title": title, "url": baseURL} + if edbID != "" { + rec["edbId"] = edbID + } + if len(cves) > 0 { + rec["cves"] = cves + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3SecExtractMetaDesc(rawHTML), + Markdown: md.String(), + Records: []map[string]any{rec}, + } +} + +func wave3SecMinInt(a, b int) int { + if a < b { + return a + } + return b +} + +// ── #324 Certificate Transparency (Cert Spotter + crt.sh JSON/HTML) ────────────────────────────── + +func wave3SecFormatCertTransparencyJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + if obj, isObj := parsed.(map[string]any); isObj { + if wave3SecIsGenericJSONError(obj) { + return nil, false + } + return nil, false + } + arr, ok := parsed.([]any) + if !ok || len(arr) == 0 { + return nil, false + } + + var records []map[string]any + var rows [][]string + for _, rawIt := range arr { + if len(records) >= wave3SecMaxRecords { + break + } + im, okM := rawIt.(map[string]any) + if !okM { + continue + } + id := wave3SecPlain(im["id"], 48) + notBefore := wave3SecNormalizeDate(wave3SecStringVal(im["not_before"])) + notAfter := wave3SecNormalizeDate(wave3SecStringVal(im["not_after"])) + + // Cert Spotter format vs crt.sh format + var dnsNames []string + if dArr, okD := im["dns_names"].([]any); okD { + for _, rd := range dArr { + if ds := wave3SecPlain(rd, 120); ds != "" && len(dnsNames) < 8 { + dnsNames = append(dnsNames, ds) + } + } + } + commonName := wave3SecPlain(im["common_name"], 120) + nameVal := wave3SecPlain(im["name_value"], 200) + if len(dnsNames) == 0 && nameVal != "" { + for _, part := range strings.Split(nameVal, "\n") { + if p := strings.TrimSpace(part); p != "" && len(dnsNames) < 8 { + dnsNames = append(dnsNames, p) + } + } + } + if len(dnsNames) == 0 && commonName != "" { + dnsNames = append(dnsNames, commonName) + } + if id == "" && len(dnsNames) == 0 { + continue + } + issuer := wave3SecPlain(im["issuer_name"], 140) + if issuer == "" { + if issMap, okIM := im["issuer"].(map[string]any); okIM { + issuer = wave3SecPlain(issMap["name"], 140) + } + } + certSHA := wave3SecPlain(im["cert_sha256"], 80) + serial := wave3SecPlain(im["serial_number"], 80) + revoked := "" + if rBool, okRB := im["revoked"].(bool); okRB { + if rBool { + revoked = "true" + } else { + revoked = "false" + } + } + rec := map[string]any{ + "id": id, + "dnsNames": dnsNames, + "notBefore": notBefore, + "notAfter": notAfter, + } + if issuer != "" { + rec["issuer"] = issuer + } + if certSHA != "" { + rec["certSha256"] = certSHA + } + if serial != "" { + rec["serialNumber"] = serial + } + if revoked != "" { + rec["revoked"] = revoked == "true" + } + records = append(records, rec) + rows = append(rows, []string{ + wave3SecFirstNonEmpty(id, "-"), + wave3SecFirstNonEmpty(strings.Join(dnsNames, ", "), "-"), + wave3SecFirstNonEmpty(notBefore, "-"), + wave3SecFirstNonEmpty(notAfter, "-"), + wave3SecFirstNonEmpty(issuer, "-"), + }) + } + if len(records) == 0 { + return nil, false + } + + title := "Certificate Transparency Log Issuances" + if u, err := url.Parse(origURL); err == nil { + if dom := wave3SecFirstNonEmpty(u.Query().Get("domain"), u.Query().Get("q")); dom != "" { + title = fmt.Sprintf("Certificate Transparency — %s", SanitizeSchemaPlainField(dom, 120)) + } + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + md.WriteString(fmt.Sprintf("- **Total Issuances**: %d\n- **Returned**: %d\n\n", len(arr), len(records))) + md.WriteString(formatDeclarativeGFMTable([]string{"ID", "DNS Names", "Not Before", "Not After", "Issuer"}, rows)) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(len(arr)), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(len(arr) > len(records)), + }, true +} + +func wave3SecExtractCertTransparencyHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := asciiLowerExtractString(rawHTML) + if strings.Contains(lower, "none found") || strings.Contains(lower, "no certificates found") { + return nil + } + doc := ParseHTMLDoc(rawHTML, wave3SecMaxHTMLBytes) + tblMD, rows := wave3SecExtractTableBlock(doc, "table", wave3SecMaxRecords) + if tblMD == "" || len(rows) == 0 { + return nil + } + title := wave3SecFirstNonEmpty(wave3SecExtractTitle(doc, rawHTML), "crt.sh Certificate Search") + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: "# " + escapeDeclMarkdownBrackets(title) + "\n\n" + tblMD, + Total: wave3SecIntPtr(len(rows)), + Returned: wave3SecIntPtr(len(rows)), + } +} + +// ── #325 RDAP (RFC 9083 + IANA Bootstrap JSON) ─────────────────────────────────────────────────── + +func wave3SecFormatRDAPBootstrapJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + services, okS := obj["services"].([]any) + if !okS || len(services) == 0 { + return nil, false + } + title := wave3SecFirstNonEmpty(wave3SecPlain(obj["description"], 180), "IANA RDAP Bootstrap Registry") + pub := wave3SecNormalizeDate(wave3SecStringVal(obj["publication"])) + ver := wave3SecPlain(obj["version"], 24) + + var records []map[string]any + var rows [][]string + var links []string + seen := make(map[string]bool) + + for _, rs := range services { + if len(records) >= wave3SecMaxRecords { + break + } + pair, okP := rs.([]any) + if !okP || len(pair) < 2 { + continue + } + keysAny, _ := pair[0].([]any) + urlsAny, _ := pair[1].([]any) + var keys, urls []string + for _, k := range keysAny { + if ks := wave3SecPlain(k, 64); ks != "" && len(keys) < 10 { + keys = append(keys, ks) + } + } + for _, u := range urlsAny { + if us := SanitizeSchemaHTTPSURL(wave3SecStringVal(u), origURL); us != "" { + urls = append(urls, us) + if len(links) < 25 { + wave3SecAddLink(&links, seen, us, origURL) + } + } + } + if len(keys) == 0 || len(urls) == 0 { + continue + } + records = append(records, map[string]any{ + "prefixes": keys, + "rdapUrls": urls, + }) + rows = append(rows, []string{ + strings.Join(keys, ", "), + strings.Join(urls, ", "), + }) + } + if len(records) == 0 { + return nil, false + } + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if ver != "" { + md.WriteString("- **Bootstrap Version**: `" + ver + "`\n") + } + if pub != "" { + md.WriteString("- **Publication**: " + pub + "\n") + } + md.WriteString(fmt.Sprintf("- **Total Service Entries**: %d\n\n", len(services))) + md.WriteString(formatDeclarativeGFMTable([]string{"Keys / Prefixes", "RDAP Base URLs"}, rows)) + return &DeclarativeFormattedDoc{ + Title: title, + PublishedTime: pub, + Markdown: md.String(), + Links: links, + Records: records, + Total: wave3SecIntPtr(len(services)), + Returned: wave3SecIntPtr(len(records)), + Truncated: wave3SecBoolPtr(len(services) > len(records)), + }, true +} + +func wave3SecExtractVCardField(vcardAny any) (org, email string) { + outer, ok := vcardAny.([]any) + if !ok || len(outer) < 2 { + return "", "" + } + props, okP := outer[1].([]any) + if !okP { + return "", "" + } + for _, rp := range props { + prop, okPr := rp.([]any) + if !okPr || len(prop) < 4 { + continue + } + pname := strings.ToLower(wave3SecPlain(prop[0], 24)) + pval := wave3SecPlain(prop[3], 120) + if (pname == "fn" || pname == "org") && org == "" && pval != "" { + org = pval + } + if pname == "email" && email == "" && pval != "" { + email = pval + } + } + return org, email +} + +func wave3SecFormatRDAPJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + if errCode, okEC := wave3SecFloatVal(obj["errorCode"]); okEC && errCode >= 400 { + return nil, false + } + objClass := strings.ToLower(wave3SecPlain(obj["objectClassName"], 48)) + switch objClass { + case "domain", "ip network", "autnum", "entity", "nameserver": + default: + if obj["rdapConformance"] == nil { + return nil, false + } + } + + handle := wave3SecPlain(obj["handle"], 80) + ldhName := wave3SecPlain(obj["ldhName"], 160) + name := wave3SecPlain(obj["name"], 160) + country := wave3SecPlain(obj["country"], 16) + startAddr := wave3SecPlain(obj["startAddress"], 64) + endAddr := wave3SecPlain(obj["endAddress"], 64) + startAut := wave3SecPlain(obj["startAutnum"], 24) + endAut := wave3SecPlain(obj["endAutnum"], 24) + port43 := wave3SecPlain(obj["port43"], 120) + + var statuses []string + if stArr, okS := obj["status"].([]any); okS { + for _, rs := range stArr { + if ss := wave3SecPlain(rs, 48); ss != "" { + statuses = append(statuses, ss) + } + } + } + + var events [][]string + if evArr, okE := obj["events"].([]any); okE { + for _, re := range evArr { + em, okEM := re.(map[string]any) + if !okEM { + continue + } + act := wave3SecPlain(em["eventAction"], 48) + dt := wave3SecNormalizeDate(wave3SecStringVal(em["eventDate"])) + if act != "" && dt != "" { + events = append(events, []string{act, dt}) + } + } + } + + var nameservers []string + if nsArr, okNS := obj["nameservers"].([]any); okNS { + for _, rns := range nsArr { + if nsm, okNSM := rns.(map[string]any); okNSM { + if n := wave3SecPlain(nsm["ldhName"], 120); n != "" { + nameservers = append(nameservers, n) + } + } + } + } + + var entityRows [][]string + if entArr, okEN := obj["entities"].([]any); okEN { + for _, ren := range entArr { + if len(entityRows) >= 15 { + break + } + enm, okENM := ren.(map[string]any) + if !okENM { + continue + } + eh := wave3SecPlain(enm["handle"], 64) + var roles []string + if rArr, okR := enm["roles"].([]any); okR { + for _, rr := range rArr { + if rs := wave3SecPlain(rr, 32); rs != "" { + roles = append(roles, rs) + } + } + } + org, email := wave3SecExtractVCardField(enm["vcardArray"]) + entityRows = append(entityRows, []string{ + wave3SecFirstNonEmpty(eh, "-"), + wave3SecFirstNonEmpty(strings.Join(roles, ", "), "-"), + wave3SecFirstNonEmpty(org, "-"), + wave3SecFirstNonEmpty(email, "-"), + }) + } + } + + subject := wave3SecFirstNonEmpty(ldhName, name, handle) + if startAut != "" { + subject = "AS" + startAut + if endAut != "" && endAut != startAut { + subject = fmt.Sprintf("AS%s–AS%s", startAut, endAut) + } + } + if subject == "" && startAddr != "" { + subject = startAddr + } + if subject == "" { + return nil, false + } + + title := fmt.Sprintf("RDAP (%s) — %s", wave3SecFirstNonEmpty(objClass, "object"), subject) + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if handle != "" { + md.WriteString("- **Handle**: `" + handle + "`\n") + } + if objClass != "" { + md.WriteString("- **Object Class**: `" + objClass + "`\n") + } + if startAddr != "" && endAddr != "" { + md.WriteString("- **IP Range**: `" + startAddr + " - " + endAddr + "`\n") + } + if name != "" && name != subject { + md.WriteString("- **Network / Name**: " + name + "\n") + } + if country != "" { + md.WriteString("- **Country**: `" + country + "`\n") + } + if len(statuses) > 0 { + md.WriteString("- **Status**: `" + strings.Join(statuses, "`, `") + "`\n") + } + if len(nameservers) > 0 { + md.WriteString("- **Nameservers**: `" + strings.Join(nameservers, "`, `") + "`\n") + } + if port43 != "" { + md.WriteString("- **WHOIS Server**: `" + port43 + "`\n") + } + if len(events) > 0 { + md.WriteString("\n## Events\n\n" + formatDeclarativeGFMTable([]string{"Event", "Date"}, events)) + } + if len(entityRows) > 0 { + md.WriteString("\n## Entities\n\n" + formatDeclarativeGFMTable([]string{"Handle", "Roles", "Organization", "Email"}, entityRows)) + } + + rec := map[string]any{ + "objectClassName": objClass, + "handle": handle, + "subject": subject, + "status": statuses, + } + if len(nameservers) > 0 { + rec["nameservers"] = nameservers + } + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: []map[string]any{rec}, + Total: wave3SecIntPtr(1), + Returned: wave3SecIntPtr(1), + }, true +} + +// ── #326 BGP & ASN (RIPEstat JSON + bgp.he.net <= 1 MiB HTML) ──────────────────────────────────── + +func wave3SecFormatBGPASNRipeJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || wave3SecIsGenericJSONError(obj) { + return nil, false + } + if st := strings.ToLower(wave3SecPlain(obj["status"], 24)); st != "" && st != "ok" { + return nil, false + } + data, okD := obj["data"].(map[string]any) + if !okD || len(data) == 0 { + return nil, false + } + + resource := wave3SecPlain(data["resource"], 64) + holder := wave3SecPlain(data["holder"], 180) + asType := wave3SecPlain(data["type"], 32) + announced := wave3SecPlain(data["announced"], 16) + blockMap, _ := data["block"].(map[string]any) + blockRes := wave3SecPlain(blockMap["resource"], 64) + blockName := wave3SecPlain(blockMap["name"], 120) + blockDesc := wave3SecPlain(blockMap["desc"], 160) + + var records []map[string]any + var prefixRows [][]string + if prefixes, okP := data["prefixes"].([]any); okP && len(prefixes) > 0 { + for _, rp := range prefixes { + if len(records) >= wave3SecMaxRecords { + break + } + pm, okPM := rp.(map[string]any) + if !okPM { + continue + } + pfx := wave3SecPlain(pm["prefix"], 64) + if pfx == "" { + continue + } + records = append(records, map[string]any{ + "resource": resource, + "prefix": pfx, + }) + prefixRows = append(prefixRows, []string{"`" + pfx + "`"}) + } + } + + if len(records) == 0 && (resource != "" || holder != "") { + rec := map[string]any{ + "resource": resource, + "holder": holder, + } + if announced != "" { + rec["announced"] = announced == "true" + } + if blockName != "" { + rec["rir"] = blockName + } + records = append(records, rec) + } + if len(records) == 0 { + return nil, false + } + + asnLabel := resource + if asnLabel != "" && !strings.HasPrefix(strings.ToUpper(asnLabel), "AS") && asType == "as" { + asnLabel = "AS" + asnLabel + } + title := wave3SecFirstNonEmpty(asnLabel, "RIPEstat BGP ASN") + if holder != "" { + title = fmt.Sprintf("%s — %s", title, holder) + } + + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if resource != "" { + md.WriteString("- **Resource**: `" + asnLabel + "`\n") + } + if holder != "" { + md.WriteString("- **Holder**: " + holder + "\n") + } + if announced != "" { + md.WriteString("- **Announced**: `" + announced + "`\n") + } + if blockName != "" || blockRes != "" { + md.WriteString("- **Allocation Block**: " + wave3SecFirstNonEmpty(blockName, blockRes)) + if blockDesc != "" { + md.WriteString(" (" + blockDesc + ")") + } + md.WriteString("\n") + } + if len(prefixRows) > 0 { + md.WriteString("\n## Announced Prefixes\n\n" + formatDeclarativeGFMTable([]string{"Prefix"}, prefixRows)) + } + + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md.String(), + Records: records, + Total: wave3SecIntPtr(len(records)), + Returned: wave3SecIntPtr(len(records)), + }, true +} + +func wave3SecIsASCIIAlphaNum(b byte) bool { + return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || (b >= '0' && b <= '9') +} + +func wave3SecContainsWordPhraseASCII(s, lowerNeedle string) bool { + nLen := len(lowerNeedle) + if nLen == 0 || len(s) < nLen { + return false + } + pos := 0 + for pos <= len(s)-nLen { + rel := indexFoldASCIIExtract(s[pos:], lowerNeedle) + if rel < 0 { + return false + } + idx := pos + rel + end := idx + nLen + leftOK := idx == 0 || !wave3SecIsASCIIAlphaNum(s[idx-1]) + rightOK := end == len(s) || !wave3SecIsASCIIAlphaNum(s[end]) + if leftOK && rightOK { + return true + } + pos = idx + 1 + } + return false +} + +func wave3SecExtractBGPHEHTML(rawHTML, _ /* probeLower */, baseURL, extractorID string) *DeclarativePostFetchResult { + if wave3SecContainsWordPhraseASCII(rawHTML, "invalid as") || + wave3SecContainsWordPhraseASCII(rawHTML, "not a valid asn") || + indexFoldASCIIExtract(rawHTML, "could not find") >= 0 { + return nil + } + doc := ParseHTMLDoc(rawHTML, wave3SecBGPHEMaxBytes) + title := wave3SecExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + asn := "" + if m := wave3SecRxASN.FindString(title + " " + baseURL); m != "" { + asn = strings.ToUpper(m) + } + asInfoMD := "" + if doc != nil { + if asInfoNode := doc.First("#asinfo"); asInfoNode != nil { + asInfoMD = wave3SecFragToMD(asInfoNode.HTML(), baseURL) + } + } + tblMD, rows := wave3SecExtractTableBlock(doc, "table", wave3SecMaxRecords) + if asInfoMD == "" && tblMD == "" { + mainDoc := ExtractHTMLDocumentFull(rawHTML, FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: true, + IncludeImages: false, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + if strings.TrimSpace(mainDoc.Markdown) == "" { + return nil + } + asInfoMD = strings.TrimSpace(mainDoc.Markdown) + } + + var md strings.Builder + md.WriteString("# " + escapeDeclMarkdownBrackets(title) + "\n\n") + if asn != "" { + md.WriteString("- **ASN**: `" + asn + "`\n\n") + } + if asInfoMD != "" { + md.WriteString("## AS Information\n\n" + asInfoMD + "\n\n") + } + if tblMD != "" { + md.WriteString("## Prefixes & Peers\n\n" + tblMD) + } + rec := map[string]any{"title": title, "url": baseURL} + if asn != "" { + rec["asn"] = asn + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3SecExtractMetaDesc(rawHTML), + Markdown: md.String(), + Records: []map[string]any{rec}, + Total: wave3SecIntPtr(wave3SecMaxInt(1, len(rows))), + Returned: wave3SecIntPtr(wave3SecMaxInt(1, len(rows))), + } +} + +func wave3SecMaxInt(a, b int) int { + if a > b { + return a + } + return b +} diff --git a/internal/extract/wave3_security_intel_test.go b/internal/extract/wave3_security_intel_test.go new file mode 100644 index 0000000..d1a8b27 --- /dev/null +++ b/internal/extract/wave3_security_intel_test.go @@ -0,0 +1,507 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" + "time" +) + +func wave3SecDecodeDoc(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 wave3SecResolveManifest(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 TestWave3SecurityIntelManifestsAndConflictBoundaries(t *testing.T) { + catMIDs := []string{ + "cisa-kev", + "first-epss", + "mitre-attack", + "mitre-cwe-capec", + "cve-org", + "cisa-advisories-ics", + "vendor-csaf", + "security-txt", + "exploit-db", + "certificate-transparency", + "rdap", + "bgp-asn", + } + + byID := make(map[string]*DeclarativeAdapterManifest, len(catMIDs)) + claimedDomains := make(map[string]string) + var allCatM []DeclarativeAdapterManifest + + for _, id := range catMIDs { + 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 _, 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 + allCatM = append(allCatM, *m) + } + + // Verify full cross-manifest rules (Rule 7, PSL, duplicate domains) across Cat M + colliding baseline manifests + for _, existingID := range []string{"osv-ghsa", "nist-nvd", "gitlab-forgejo", "edge-cloud-changelogs", "google-shopping-feed"} { + 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 M %s overlaps %s domain %q", catOwner, existingID, ld) + } + } + allCatM = append(allCatM, *em) + } + if err := ValidateDeclarativeManifests(allCatM); err != nil { + t.Fatalf("ValidateDeclarativeManifests failed: %v", err) + } + + // #315 cisa-kev vs #320 cisa-advisories-ics zero collision + kev := byID["cisa-kev"] + if !kev.UniversalEngine { + t.Fatalf("cisa-kev must set universalEngine: true") + } + if tm, ok := wave3SecResolveManifest(t, kev, "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"); !ok || tm.EffectiveMaxBytes() != 4194304 || tm.route.Extract.JSONMode != "cisa_kev_json" { + t.Fatalf("cisa-kev JSON route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3SecResolveManifest(t, kev, "https://www.cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv"); !ok || tm.route.Extract.TextMode != "cisa_kev_csv" { + t.Fatalf("cisa-kev CSV route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3SecResolveManifest(t, kev, "https://cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"); !ok || tm.route.Extract.JSONMode != "cisa_kev_json" { + t.Fatalf("cisa-kev bare cisa.gov JSON route failed: ok=%v tm=%+v", ok, tm) + } + cisaAdv := byID["cisa-advisories-ics"] + if !cisaAdv.UniversalEngine { + t.Fatalf("cisa-advisories-ics must set universalEngine: true for bare cisa.gov routing") + } + for _, kevURL := range []string{ + "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json", + "https://cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json", + "https://cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv", + } { + if tm, ok := wave3SecResolveManifest(t, cisaAdv, kevURL); ok || tm != nil { + t.Fatalf("cisa-advisories-ics must NOT match KEV path %s", kevURL) + } + } + for _, advXML := range []string{ + "https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml", + "https://cisa.gov/cybersecurity-advisories/ics-advisories.xml", + } { + if tm, ok := wave3SecResolveManifest(t, cisaAdv, advXML); !ok || tm.route.Extract.TextMode != "cisa_advisories_rss" { + t.Fatalf("cisa-advisories-ics RSS route failed for %s: ok=%v tm=%+v", advXML, ok, tm) + } + } + // Verify full ResolveDeclarativeTwin & ApplyDeclarativeHTMLExtractor routing on bare cisa.gov + if resolvedBareXML, okBareXML := ResolveDeclarativeTwin("https://cisa.gov/cybersecurity-advisories/ics-advisories.xml"); !okBareXML || resolvedBareXML == nil || resolvedBareXML.AdapterID != "cisa-advisories-ics" { + t.Fatalf("ResolveDeclarativeTwin bare cisa.gov ICS XML failed: ok=%v res=%+v", okBareXML, resolvedBareXML) + } + if resolvedBareKEV, okBareKEV := ResolveDeclarativeTwin("https://cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"); !okBareKEV || resolvedBareKEV == nil || resolvedBareKEV.AdapterID != "cisa-kev" { + t.Fatalf("ResolveDeclarativeTwin bare cisa.gov KEV JSON failed: ok=%v res=%+v", okBareKEV, resolvedBareKEV) + } + bareICSHTML := `ICSA-26-328-01 | CISA

ICSA-26-328-01 Example PLC

CVE-2026-41001 affects industrial controllers.

` + if bareHTMLRes, okBareHTML := ApplyDeclarativeHTMLExtractor(bareICSHTML, "https://cisa.gov/news-events/ics-advisories/icsa-26-328-01", "", nil); !okBareHTML || bareHTMLRes == nil || bareHTMLRes.ExtractorID != "cisa-advisories-ics" { + t.Fatalf("ApplyDeclarativeHTMLExtractor bare cisa.gov ICS HTML failed: ok=%v res=%+v", okBareHTML, bareHTMLRes) + } + + // #317 mitre-attack STIX Range route & index.json route + att := byID["mitre-attack"] + if tm, ok := wave3SecResolveManifest(t, att, "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/index.json"); !ok || tm.route.Extract.JSONMode != "mitre_attack_index_json" { + t.Fatalf("mitre-attack index.json route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3SecResolveManifest(t, att, "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json"); !ok || tm.route.Extract.TextMode != "mitre_attack_stix_bundle" || tm.EffectiveMaxBytes() != 2097152 || tm.route.Twin.Headers["Range"] != "bytes=0-2097151" { + t.Fatalf("mitre-attack STIX bundle route failed: ok=%v tm=%+v", ok, tm) + } + + // #319 cve-org zero cross-domain twin + cve := byID["cve-org"] + if tm, ok := wave3SecResolveManifest(t, cve, "https://cveawg.mitre.org/api/cve/CVE-2024-3094"); !ok || tm.route.Extract.JSONMode != "cve_org_json" { + t.Fatalf("cve-org API route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3SecResolveManifest(t, cve, "https://www.cve.org/CVERecord?id=CVE-2024-3094"); ok || tm != nil { + t.Fatalf("www.cve.org must NOT twin-route to cveawg.mitre.org (Rule 7)") + } + + // #323 exploit-db GitLab CSV Range route must not match gitlab-forgejo + edb := byID["exploit-db"] + if tm, ok := wave3SecResolveManifest(t, edb, "https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv"); !ok || tm.route.Extract.TextMode != "exploit_db_csv" || tm.route.Twin.Headers["Range"] != "bytes=0-2097151" { + t.Fatalf("exploit-db GitLab CSV route failed: ok=%v tm=%+v", ok, tm) + } + gitlabRaw, _ := os.ReadFile(filepath.Join("manifests", "gitlab-forgejo.yaml")) + gitlabM, _ := ParseDeclarativeYAMLManifest(gitlabRaw) + if tm, ok := wave3SecResolveManifest(t, gitlabM, "https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv"); ok || tm != nil { + t.Fatalf("gitlab-forgejo must NOT match exploit-db /-/raw/ CSV path") + } +} + +func TestWave3SecurityIntelJSONAndTextFormatters(t *testing.T) { + // 1. #315 cisa_kev_json (bounding >25 records + ?cve= filter) + var kevVulns []string + for i := 1; i <= 30; i++ { + cve := "CVE-2026-" + strings.ReplaceAll(strings.TrimSpace(string([]byte{'1' + byte(i/10), '0' + byte(i%10), '0', '0'})), " ", "") + kevVulns = append(kevVulns, `{"cveID":"`+cve+`","vendorProject":"Acme","product":"Widget","vulnerabilityName":"Test Bug","dateAdded":"2026-11-01","dueDate":"2026-11-22","knownRansomwareCampaignUse":"Known"}`) + } + kevPayload := `{"title":"CISA KEV","catalogVersion":"2026.11.28","dateReleased":"2026-11-28T00:00:00Z","count":1808,"vulnerabilities":[` + strings.Join(kevVulns, ",") + `]}` + kevRaw, ok := FormatWave3SecurityIntelJSONMode("cisa_kev_json", []byte(kevPayload), nil, "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json") + if !ok { + t.Fatalf("cisa_kev_json failed") + } + kevDoc := wave3SecDecodeDoc(t, kevRaw) + if len(kevDoc.Records) != wave3SecMaxRecords || kevDoc.Total == nil || *kevDoc.Total != 1808 || kevDoc.Truncated == nil || !*kevDoc.Truncated { + t.Fatalf("unexpected cisa_kev_json bounding: len=%d total=%v trunc=%v", len(kevDoc.Records), kevDoc.Total, kevDoc.Truncated) + } + kevFiltRaw, ok := FormatWave3SecurityIntelJSONMode("cisa_kev_json", []byte(kevPayload), nil, "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json?cve=CVE-2026-1500") + if !ok { + t.Fatalf("cisa_kev_json ?cve= filter failed") + } + kevFiltDoc := wave3SecDecodeDoc(t, kevFiltRaw) + if len(kevFiltDoc.Records) != 1 || kevFiltDoc.Records[0]["cveID"] != "CVE-2026-1500" { + t.Fatalf("unexpected cisa_kev_json filtered result: %+v", kevFiltDoc.Records) + } + kevMissRaw, missOK := FormatWave3SecurityIntelJSONMode("cisa_kev_json", []byte(kevPayload), nil, "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json?cve=CVE-1999-9999") + if !missOK { + t.Fatalf("cisa_kev_json must handle unmatched ?cve= query with concise bounded output") + } + kevMissDoc := wave3SecDecodeDoc(t, kevMissRaw) + if len(kevMissDoc.Records) != 0 || kevMissDoc.Returned == nil || *kevMissDoc.Returned != 0 || !strings.Contains(kevMissDoc.Markdown, "No matching KEV entry found for CVE-1999-9999") { + t.Fatalf("unexpected cisa_kev_json unmatched ?cve= result: %+v", kevMissDoc) + } + + // #315 cisa_kev_csv + kevCSV := "cveID,vendorProject,product,vulnerabilityName,dateAdded,shortDescription,requiredAction,dueDate,knownRansomwareCampaignUse,notes\nCVE-2024-3094,Tukaani,XZ Utils,XZ Backdoor,2024-04-01,Malicious code,Apply updates,2024-04-22,Unknown,https://nvd.nist.gov\n" + if csvRaw, ok := FormatWave3SecurityIntelTextMode("cisa_kev_csv", kevCSV, nil, "https://www.cisa.gov/sites/default/files/csv/known_exploited_vulnerabilities.csv"); !ok || !strings.Contains(csvRaw, "CVE-2024-3094") { + t.Fatalf("cisa_kev_csv failed: ok=%v raw=%s", ok, csvRaw) + } + + // 2. #316 first_epss_json + epssPayload := `{"status":"OK","status-code":200,"total":1,"data":[{"cve":"CVE-2024-3094","epss":"0.94210","percentile":"0.99950","date":"2026-11-28"}]}` + if epssRaw, ok := FormatWave3SecurityIntelJSONMode("first_epss_json", []byte(epssPayload), nil, "https://api.first.org/data/v1/epss?cve=CVE-2024-3094"); !ok || !strings.Contains(epssRaw, "94.21%") || !strings.Contains(epssRaw, "99.95%") { + t.Fatalf("first_epss_json failed: ok=%v raw=%s", ok, epssRaw) + } + if _, negOK := FormatWave3SecurityIntelJSONMode("first_epss_json", []byte(`{"status":"OK","status-code":200,"total":0,"data":[]}`), nil, "https://api.first.org/data/v1/epss?cve=CVE-1999-0001"); negOK { + t.Fatalf("first_epss_json must reject empty data") + } + + // 3. #317 mitre_attack_index_json + mitre_attack_stix_bundle (2 MiB Range-truncated prefix scan < 25ms) + idxPayload := `{"name":"ATT&CK STIX Collections","collections":[{"id":"x-mitre-collection--1","name":"Enterprise ATT&CK","versions":[{"version":"16.1","modified":"2026-10-31T00:00:00Z","url":"https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json"}]}]}` + idxRaw, idxOK := FormatWave3SecurityIntelJSONMode("mitre_attack_index_json", []byte(idxPayload), nil, "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/index.json") + if !idxOK { + t.Fatalf("mitre_attack_index_json failed") + } + idxDoc := wave3SecDecodeDoc(t, idxRaw) + if !strings.Contains(idxDoc.Markdown, "Enterprise ATT&CK") || len(idxDoc.Records) != 1 { + t.Fatalf("unexpected mitre_attack_index_json doc: %+v", idxDoc) + } + + var stixBuf strings.Builder + stixBuf.Grow(2*1024*1024 + 1024) + stixBuf.WriteString(`{"type":"bundle","id":"bundle--test","objects":[{"type":"x-mitre-collection","id":"x-mitre-collection--1","name":"Enterprise ATT&CK","x_mitre_version":"16.1","modified":"2026-10-31T00:00:00Z","description":"Enterprise Matrix"}`) + techTemplate := `,{"type":"attack-pattern","id":"attack-pattern--1","name":"Command and Scripting Interpreter","description":"` + strings.Repeat("A", 300) + `","x_mitre_platforms":["Linux","Windows"],"external_references":[{"source_name":"mitre-attack","external_id":"T1059","url":"https://attack.mitre.org/techniques/T1059"}]}` + for stixBuf.Len() < 2*1024*1024 { + stixBuf.WriteString(techTemplate) + } + // Truncate mid-object at exactly 2 MiB + stix2MiB := stixBuf.String()[:2*1024*1024] + tStart := time.Now() + stixRaw, stixOK := FormatWave3SecurityIntelTextMode("mitre_attack_stix_bundle", stix2MiB, nil, "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json") + tElapsed := time.Since(tStart) + if !stixOK { + t.Fatalf("mitre_attack_stix_bundle failed on 2 MiB truncated prefix") + } + if tElapsed > 25*time.Millisecond { + t.Fatalf("mitre_attack_stix_bundle 2 MiB scan exceeded 25ms budget: %v", tElapsed) + } + stixDoc := wave3SecDecodeDoc(t, stixRaw) + if len(stixDoc.Records) != wave3SecMaxRecords || stixDoc.Truncated == nil || !*stixDoc.Truncated { + t.Fatalf("unexpected STIX bundle result: len=%d trunc=%v", len(stixDoc.Records), stixDoc.Truncated) + } + // #317 STIX key order: "objects" BEFORE "type":"bundle" (> 4 KB offset) + var objectsFirstBuf strings.Builder + objectsFirstBuf.WriteString(`{"objects":[{"type":"x-mitre-collection","id":"x-mitre-collection--1","name":"Enterprise ATT&CK","x_mitre_version":"16.1","modified":"2026-10-31T00:00:00Z"},{"type":"attack-pattern","id":"attack-pattern--1","name":"PowerShell","description":"` + strings.Repeat("B", 5000) + `","external_references":[{"source_name":"mitre-attack","external_id":"T1059.001"}]}],"id":"bundle--late","type":"bundle"}`) + if ofRaw, ofOK := FormatWave3SecurityIntelTextMode("mitre_attack_stix_bundle", objectsFirstBuf.String(), nil, "https://raw.githubusercontent.com/mitre-attack/attack-stix-data/master/enterprise-attack/enterprise-attack.json"); !ofOK || !strings.Contains(ofRaw, "T1059.001") { + t.Fatalf("mitre_attack_stix_bundle with objects before type:bundle (>4KB) failed: ok=%v", ofOK) + } + + // 4. #318 mitre_cwe_json + cwePayload := `{"Weaknesses":[{"ID":"79","Name":"Cross-site Scripting","Abstraction":"Base","Status":"Stable","Description":"Improper neutralization of input.","LikelihoodOfExploit":"High"}]}` + if cweRaw, ok := FormatWave3SecurityIntelJSONMode("mitre_cwe_json", []byte(cwePayload), nil, "https://cwe-api.mitre.org/api/v1/cwe/weakness/79"); !ok || !strings.Contains(cweRaw, "CWE-79") { + t.Fatalf("mitre_cwe_json failed") + } + + // 5. #319 cve_org_json + cvePayload := `{"dataType":"CVE_RECORD","cveMetadata":{"cveId":"CVE-2024-3094","state":"PUBLISHED","assignerShortName":"redhat","datePublished":"2024-03-29T18:00:00Z"},"containers":{"cna":{"title":"XZ Utils backdoor","descriptions":[{"lang":"en","value":"Backdoor in liblzma."}],"metrics":[{"cvssV3_1":{"baseScore":10.0,"baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}}]}}}` + if cveRaw, ok := FormatWave3SecurityIntelJSONMode("cve_org_json", []byte(cvePayload), nil, "https://cveawg.mitre.org/api/cve/CVE-2024-3094"); !ok || !strings.Contains(cveRaw, "CVE-2024-3094") || !strings.Contains(cveRaw, "CRITICAL") { + t.Fatalf("cve_org_json failed") + } + + // 6. #320 cisa_advisories_rss + rssPayload := `CISA ICS AdvisoriesICSA-26-328-01 PLChttps://www.cisa.gov/news-events/ics-advisories/icsa-26-328-01Tue, 24 Nov 2026 12:00:00 +0000CVE-2026-41001 https://github.com/cisagov/CSAF/blob/develop/csaf_files/OT/white/2026/icsa-26-328-01.json` + if rssRaw, ok := FormatWave3SecurityIntelTextMode("cisa_advisories_rss", rssPayload, nil, "https://www.cisa.gov/cybersecurity-advisories/ics-advisories.xml"); !ok || !strings.Contains(rssRaw, "CVE-2026-41001") || !strings.Contains(rssRaw, "icsa-26-328-01.json") { + t.Fatalf("cisa_advisories_rss failed") + } + + // 7. #321 vendor_csaf_json (provider-metadata.json + advisory JSON) + pmPayload := `{"canonical_url":"https://security.access.redhat.com/data/csaf/v2/provider-metadata.json","metadata_version":"2.0","role":"csaf_publisher","last_updated":"2026-11-28T00:00:00Z","publisher":{"name":"Red Hat Product Security","namespace":"https://access.redhat.com"},"distributions":[{"directory_url":"https://security.access.redhat.com/data/csaf/v2/advisories/"}]}` + if pmRaw, ok := FormatWave3SecurityIntelJSONMode("vendor_csaf_json", []byte(pmPayload), nil, "https://security.access.redhat.com/data/csaf/v2/provider-metadata.json"); !ok || !strings.Contains(pmRaw, "Red Hat Product Security") { + t.Fatalf("vendor_csaf_json provider-metadata failed") + } + csafAdvPayload := `{"document":{"csaf_version":"2.0","category":"csaf_security_advisory","title":"openssl update","tracking":{"id":"RHSA-2026:88339","status":"final","current_release_date":"2026-11-20T00:00:00Z"},"publisher":{"name":"Red Hat"}},"vulnerabilities":[{"cve":"CVE-2026-10001","title":"TLS bug","cwe":{"id":"CWE-125"},"scores":[{"cvss_v3":{"baseScore":7.5}}]}]}` + if advRaw, ok := FormatWave3SecurityIntelJSONMode("vendor_csaf_json", []byte(csafAdvPayload), nil, "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_88339.json"); !ok || !strings.Contains(advRaw, "RHSA-2026:88339") { + t.Fatalf("vendor_csaf_json advisory failed") + } + + // 8. #322 security_txt_text (with PGP cleartext wrapper + negative checks) + pgpSecTxt := "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA256\n\n# Security policy\nContact: mailto:security@example.com\nExpires: 2027-06-30T23:59:59Z\nPolicy: https://example.com/security-policy\n-----BEGIN PGP SIGNATURE-----\niQIzBAEBCAAdFiEE\n-----END PGP SIGNATURE-----\n" + if secRaw, ok := FormatWave3SecurityIntelTextMode("security_txt_text", pgpSecTxt, nil, "https://example.com/.well-known/security.txt"); !ok || !strings.Contains(secRaw, "mailto:security@example.com") || !strings.Contains(secRaw, "2027-06-30") { + t.Fatalf("security_txt_text failed") + } + if _, negOK := FormatWave3SecurityIntelTextMode("security_txt_text", "Contact: mailto:a@b.com", nil, "https://example.com/.well-known/security.txt"); negOK { + t.Fatalf("security_txt_text must reject HTML responses") + } + if _, negOK := FormatWave3SecurityIntelTextMode("security_txt_text", "# comment\nExpires: 2027-06-30T23:59:59Z\n", nil, "https://example.com/.well-known/security.txt"); negOK { + t.Fatalf("security_txt_text must reject missing Contact:") + } + + // 9. #323 exploit_db_csv (Range-cut partial last line dropped + 2 MiB budget) + var edbBuf strings.Builder + edbBuf.WriteString("id,file,description,date_published,author,type,platform,port,date_added,date_updated,verified,codes,tags,aliases,screenshot_url,application_url,source_url\n") + for i := 1; i <= 30; i++ { + edbBuf.WriteString("51000,exploits/hardware/webapps/51000.py,\"Router RCE\",2022-08-01,Researcher,webapps,hardware,,2022-08-01,2022-08-01,1,CVE-2020-20277,,,,,\n") + } + // Simulate partial trailing line from Range boundary + edbBuf.WriteString("99999,exploits/partial/TRUNCATED_LINE") + edbRaw, edbOK := FormatWave3SecurityIntelTextMode("exploit_db_csv", edbBuf.String(), nil, "https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv") + if !edbOK || strings.Contains(edbRaw, "TRUNCATED_LINE") { + t.Fatalf("exploit_db_csv failed or emitted partial last line: ok=%v", edbOK) + } + edbDoc := wave3SecDecodeDoc(t, edbRaw) + if len(edbDoc.Records) != wave3SecMaxRecords || edbDoc.Truncated == nil || !*edbDoc.Truncated { + t.Fatalf("unexpected exploit_db_csv result: len=%d trunc=%v", len(edbDoc.Records), edbDoc.Truncated) + } + + // 10. #324 cert_transparency_json (Cert Spotter + crt.sh) + crtShPayload := `[{"issuer_ca_id":1,"issuer_name":"C=US, O=Let's Encrypt","common_name":"example.org","name_value":"example.org\nwww.example.org","id":987654,"not_before":"2026-10-01T00:00:00","not_after":"2026-12-30T00:00:00","serial_number":"0123abcd"}]` + if ctRaw, ok := FormatWave3SecurityIntelJSONMode("cert_transparency_json", []byte(crtShPayload), nil, "https://crt.sh/?q=example.org&output=json"); !ok || !strings.Contains(ctRaw, "example.org") || !strings.Contains(ctRaw, "Let's Encrypt") { + t.Fatalf("cert_transparency_json crt.sh failed") + } + + // 11. #325 rdap_bootstrap_json + rdap_json + bootPayload := `{"version":"1.0","publication":"2026-11-28T00:00:00Z","description":"IANA RDAP Bootstrap for DNS","services":[[["com","net"],["https://rdap.verisign.com/com/v1/"]]]}` + if bootRaw, ok := FormatWave3SecurityIntelJSONMode("rdap_bootstrap_json", []byte(bootPayload), nil, "https://data.iana.org/rdap/dns.json"); !ok || !strings.Contains(bootRaw, "rdap.verisign.com") { + t.Fatalf("rdap_bootstrap_json failed") + } + ipRdap := `{"objectClassName":"ip network","handle":"NET-1-1-1-0-1","startAddress":"1.1.1.0","endAddress":"1.1.1.255","name":"APNIC-LABS","country":"AU","status":["active"]}` + if ipRaw, ok := FormatWave3SecurityIntelJSONMode("rdap_json", []byte(ipRdap), nil, "https://rdap.apnic.net/ip/1.1.1.1"); !ok || !strings.Contains(ipRaw, "1.1.1.0 - 1.1.1.255") { + t.Fatalf("rdap_json IP failed") + } + + // 12. #326 bgp_asn_ripe_json + ripePayload := `{"status":"ok","data":{"type":"as","resource":"13335","holder":"CLOUDFLARENET","announced":true,"block":{"resource":"13172-14195","name":"Administered by ARIN"}}}` + if ripeRaw, ok := FormatWave3SecurityIntelJSONMode("bgp_asn_ripe_json", []byte(ripePayload), nil, "https://stat.ripe.net/data/as-overview/data.json?resource=AS13335"); !ok || !strings.Contains(ripeRaw, "AS13335") || !strings.Contains(ripeRaw, "CLOUDFLARENET") { + t.Fatalf("bgp_asn_ripe_json failed") + } +} + +func TestWave3SecurityIntelHTMLExtractorsAndFixtures(t *testing.T) { + htmlModes := []string{ + "cisa_kev_html", + "mitre_attack_html", + "mitre_cwe_capec_html", + "cve_org_html", + "cisa_advisories_html", + "exploit_db_html", + "cert_transparency_html", + "bgp_he_html", + } + for _, m := range htmlModes { + if getExternalHTMLModeLazy(m) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", m) + } + } + + // Verify all 12 fixture files exist, have >=4 negativeCases, and pass positive + negative checks + catMIDs := []string{ + "cisa-kev", + "first-epss", + "mitre-attack", + "mitre-cwe-capec", + "cve-org", + "cisa-advisories-ics", + "vendor-csaf", + "security-txt", + "exploit-db", + "certificate-transparency", + "rdap", + "bgp-asn", + } + 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 catMIDs { + 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 fx.AdapterID != slug { + t.Fatalf("%s.json adapterId=%q != %q", slug, fx.AdapterID, slug) + } + if len(fx.NegativeCases) < 4 { + t.Fatalf("%s.json must have >= 4 negativeCases, got %d", slug, len(fx.NegativeCases)) + } + if fx.Mode == "html" { + modeName := "exploit_db_html" + start := time.Now() + out, ok := RunWave3SecurityIntelHTMLMode(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 HTML 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 := RunWave3SecurityIntelHTMLMode(modeName, nc.Payload, u); negOK { + t.Fatalf("%s HTML negative case %q must be rejected", slug, nc.Name) + } + } + } + } + + // #317 mitre_attack_html + attackHTML := `Command and Scripting Interpreter, Technique T1059 | MITRE ATT&CK

Command and Scripting Interpreter

ID: T1059
Tactics: Execution

Adversaries may abuse command and script interpreters to execute commands.

` + if out, ok := RunWave3SecurityIntelHTMLMode("mitre_attack_html", attackHTML, "https://attack.mitre.org/techniques/T1059/"); !ok || !strings.Contains(out, "T1059") { + t.Fatalf("mitre_attack_html failed") + } + + // #318 mitre_cwe_capec_html (CAPEC XHTML) + capecHTML := `CAPEC-1: Accessing Functionality Not Properly Constrained by ACLs

CAPEC-1: Accessing Functionality Not Properly Constrained by ACLs

An adversary exploits missing access control checks.

Enforce role-based authorization on every endpoint.

` + if out, ok := RunWave3SecurityIntelHTMLMode("mitre_cwe_capec_html", capecHTML, "https://capec.mitre.org/data/definitions/1.html"); !ok || !strings.Contains(out, "CAPEC-1") || !strings.Contains(out, "role-based authorization") { + t.Fatalf("mitre_cwe_capec_html failed: ok=%v out=%s", ok, out) + } + + // #319 cve_org_html Vue CSR SPA shell strict rejection + vueShell := `CVE Record

Common vulnerabilities and Exposures (CVE)

` + if _, ok := RunWave3SecurityIntelHTMLMode("cve_org_html", vueShell, "https://www.cve.org/CVERecord?id=CVE-2024-3094"); ok { + t.Fatalf("cve_org_html must reject Vue CSR SPA shell") + } + + // #326 bgp_he_html > 4 MiB HTML sliced to <= 1 MiB in Go before parsing (< 25ms) + bgpPrefix := `AS13335 Cloudflare, Inc. - bgp.he.net

AS13335 Cloudflare, Inc.

Origin AS13335 registered to Cloudflare, Inc. (ARIN).

PrefixDescription
1.1.1.0/24Cloudflare DNS
` + bgpHuge := bgpPrefix + strings.Repeat("198.51.100.0/24Padding", 90000) + `
` + if len(bgpHuge) <= 4*1024*1024 { + t.Fatalf("expected bgpHuge > 4 MiB, got %d", len(bgpHuge)) + } + tStart := time.Now() + bgpOut, bgpOK := RunWave3SecurityIntelHTMLMode("bgp_he_html", bgpHuge, "https://bgp.he.net/AS13335") + tElapsed := time.Since(tStart) + if !bgpOK || !strings.Contains(bgpOut, "AS13335") || !strings.Contains(bgpOut, "1.1.1.0/24") { + t.Fatalf("bgp_he_html >4MiB slice failed: ok=%v", bgpOK) + } + if tElapsed > 50*time.Millisecond { + t.Fatalf("bgp_he_html >4MiB slice exceeded 50ms budget: %v", tElapsed) + } + if _, negOK := RunWave3SecurityIntelHTMLMode("bgp_he_html", `AS999999 - bgp.he.net
Invalid AS
`, "https://bgp.he.net/AS999999"); negOK { + t.Fatalf("bgp_he_html must reject Invalid AS") + } + if _, neg180OK := RunWave3SecurityIntelHTMLMode("bgp_he_html", `

Invalid AS

Invalid AS specified. Please enter a valid ASN.

`, "https://bgp.he.net/AS9999999"); neg180OK { + t.Fatalf("bgp_he_html must reject 180B Invalid AS specified") + } + bgpPast64KInvalid := `AS9999999 - bgp.he.net` + strings.Repeat("", 4000) + `

Invalid AS

Invalid AS specified. Please enter a valid ASN.

` + if _, negPast64OK := RunWave3SecurityIntelHTMLMode("bgp_he_html", bgpPast64KInvalid, "https://bgp.he.net/AS9999999"); negPast64OK { + t.Fatalf("bgp_he_html must reject past-64KB Invalid AS") + } + bgpPast64KNotValidASN := `AS9999999 - bgp.he.net` + strings.Repeat("", 4000) + `

Not a valid ASN

` + if _, negASNOK := RunWave3SecurityIntelHTMLMode("bgp_he_html", bgpPast64KNotValidASN, "https://bgp.he.net/AS9999999"); negASNOK { + t.Fatalf("bgp_he_html must reject past-64KB Not a valid ASN") + } + bgpValidWordBoundary := `AS13335 Cloudflare, Inc. - bgp.he.net

AS13335 Cloudflare, Inc.

Ignore invalid ascii comment in description.

` + if outWB, okWB := RunWave3SecurityIntelHTMLMode("bgp_he_html", bgpValidWordBoundary, "https://bgp.he.net/AS13335"); !okWB || !strings.Contains(outWB, "AS13335") { + t.Fatalf("bgp_he_html word boundary check false-positived on invalid ascii: ok=%v", okWB) + } + + // Unrelated HTML fast rejection across all 8 HTML modes + unrelated := `Example Blog

Hello World

Just a post.

` + for _, m := range htmlModes { + if _, ok := RunWave3SecurityIntelHTMLMode(m, unrelated, "https://blog.example.org/post"); ok { + t.Fatalf("%s must not match unrelated HTML", m) + } + } +}