From 5fb3e06e3dca2913ef291f1af62373209f53f59a Mon Sep 17 00:00:00 2001 From: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> Date: Sun, 29 Nov 2026 11:37:36 -0600 Subject: [PATCH 01/14] feat(wave3-b1): add 27 local gov, edu, and public/staffing job adapters + #140 deltas (#201-#233) Implement Wave 3 / Round 2 Batch B1 (#201-#233) on top of #140 across three categories: - Category A (Local Gov, #201-#216): granicus-govdelivery, municipal-cms-pack, boarddocs, civicclerk, primegov, agenda-portal-pack, accela-citizen-access, tyler-energov, opengov-portals, public-bid-portals, arcgis-hub, junar-tyler-data + additive deltas & >=4 negative cases on #140's civicplus, laserfiche-weblink, dkan, and opendatasoft - Category B (Education, #217-#225): finalsite, blackboard-wcm, edlio-thrillshare, acalog, coursedog, canvas-public-courses, edx-coursera, schema-course + >=4 negative cases on #140's courseleaf - Category C (Public/Staffing Jobs, #226-#233): neogov, bullhorn-career-portal, paradox-olivia, staffing-ats-pack, smb-ats-full, edu-job-boards, healthcare-careers + SSR FreeMarker fallback & >=4 negative cases on #140's taleo-full Compiled 324 manifests in internal/extract/manifests/compiled.json with Go lazy HTML/API extractors, golden + 4-way negative fixtures, and verified Batch B1 gates. Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> --- hub/scripts/compile-manifests.mjs | 66 + hub/scripts/run-tests.mjs | 1 + hub/src/extractors/declarative.ts | 49 +- hub/src/search-index.ts | 8 + hub/test/fixtures/adapters/acalog.json | 42 + .../adapters/accela-citizen-access.json | 35 + .../fixtures/adapters/agenda-portal-pack.json | 34 + hub/test/fixtures/adapters/arcgis-hub.json | 35 + .../fixtures/adapters/blackboard-wcm.json | 35 + hub/test/fixtures/adapters/boarddocs.json | 39 + .../adapters/bullhorn-career-portal.json | 42 + .../adapters/canvas-public-courses.json | 41 + hub/test/fixtures/adapters/civicclerk.json | 36 + hub/test/fixtures/adapters/civicplus.json | 17 +- hub/test/fixtures/adapters/coursedog.json | 36 + hub/test/fixtures/adapters/courseleaf.json | 17 +- hub/test/fixtures/adapters/dkan.json | 11 + .../fixtures/adapters/edlio-thrillshare.json | 35 + .../fixtures/adapters/edu-job-boards.json | 41 + hub/test/fixtures/adapters/edx-coursera.json | 37 + hub/test/fixtures/adapters/finalsite.json | 36 + .../adapters/granicus-govdelivery.json | 40 + .../fixtures/adapters/healthcare-careers.json | 41 + .../fixtures/adapters/junar-tyler-data.json | 40 + .../fixtures/adapters/laserfiche-weblink.json | 11 + .../fixtures/adapters/municipal-cms-pack.json | 35 + hub/test/fixtures/adapters/neogov.json | 36 + hub/test/fixtures/adapters/opendatasoft.json | 13 +- .../fixtures/adapters/opengov-portals.json | 35 + .../fixtures/adapters/paradox-olivia.json | 36 + hub/test/fixtures/adapters/primegov.json | 36 + .../fixtures/adapters/public-bid-portals.json | 41 + hub/test/fixtures/adapters/schema-course.json | 36 + hub/test/fixtures/adapters/smb-ats-full.json | 43 + .../fixtures/adapters/staffing-ats-pack.json | 42 + hub/test/fixtures/adapters/taleo-full.json | 11 + hub/test/fixtures/adapters/tyler-energov.json | 35 + hub/test/wave3-b1-cat-a.ts | 689 +++++ hub/test/wave3-b1-cat-b.ts | 444 +++ hub/test/wave3-b1-cat-c.ts | 302 ++ hub/test/wave3-b1-gov-edu-jobs.test.ts | 7 + internal/classify/content_state.go | 695 ++++- internal/classify/content_state_test.go | 369 +++ internal/extract/declarative.go | 47 + internal/extract/manifests/acalog.yaml | 25 + .../manifests/accela-citizen-access.yaml | 17 + .../extract/manifests/agenda-portal-pack.yaml | 21 + internal/extract/manifests/arcgis-hub.yaml | 44 + internal/extract/manifests/arcgis.yaml | 1 - .../extract/manifests/blackboard-wcm.yaml | 26 + internal/extract/manifests/boarddocs.yaml | 44 + .../manifests/bullhorn-career-portal.yaml | 40 + .../manifests/canvas-public-courses.yaml | 32 + internal/extract/manifests/civicclerk.yaml | 84 + internal/extract/manifests/civicplus.yaml | 20 +- internal/extract/manifests/compiled.json | 2 +- internal/extract/manifests/coursedog.yaml | 36 + internal/extract/manifests/courseleaf.yaml | 4 + internal/extract/manifests/dkan.yaml | 13 +- .../extract/manifests/edlio-thrillshare.yaml | 26 + .../extract/manifests/edu-job-boards.yaml | 84 + internal/extract/manifests/edx-coursera.yaml | 43 + internal/extract/manifests/finalsite.yaml | 23 + .../manifests/granicus-govdelivery.yaml | 67 + .../extract/manifests/healthcare-careers.yaml | 21 + .../extract/manifests/junar-tyler-data.yaml | 34 + .../extract/manifests/laserfiche-weblink.yaml | 3 + .../extract/manifests/municipal-cms-pack.yaml | 22 + internal/extract/manifests/neogov.yaml | 133 + internal/extract/manifests/opendatasoft.yaml | 18 +- .../extract/manifests/opengov-portals.yaml | 32 + .../extract/manifests/paradox-olivia.yaml | 20 + internal/extract/manifests/primegov.yaml | 41 + .../extract/manifests/public-bid-portals.yaml | 22 + internal/extract/manifests/sap-rmk-jibe.yaml | 12 + internal/extract/manifests/schema-course.yaml | 18 + internal/extract/manifests/smb-ats-full.yaml | 92 + .../extract/manifests/staffing-ats-pack.yaml | 103 + internal/extract/manifests/taleo-full.yaml | 11 +- internal/extract/manifests/tyler-energov.yaml | 34 + internal/extract/policy.go | 24 +- internal/extract/round2_laserfiche.go | 9 +- internal/extract/round2_platforms_html.go | 87 +- internal/extract/round2_platforms_json.go | 59 +- internal/extract/wave3_edu.go | 2266 ++++++++++++++ internal/extract/wave3_edu_test.go | 224 ++ internal/extract/wave3_gov.go | 2632 +++++++++++++++++ internal/extract/wave3_gov_test.go | 410 +++ internal/extract/wave3_jobs_public.go | 2352 +++++++++++++++ internal/extract/wave3_jobs_public_test.go | 456 +++ 90 files changed, 13526 insertions(+), 38 deletions(-) create mode 100644 hub/test/fixtures/adapters/acalog.json create mode 100644 hub/test/fixtures/adapters/accela-citizen-access.json create mode 100644 hub/test/fixtures/adapters/agenda-portal-pack.json create mode 100644 hub/test/fixtures/adapters/arcgis-hub.json create mode 100644 hub/test/fixtures/adapters/blackboard-wcm.json create mode 100644 hub/test/fixtures/adapters/boarddocs.json create mode 100644 hub/test/fixtures/adapters/bullhorn-career-portal.json create mode 100644 hub/test/fixtures/adapters/canvas-public-courses.json create mode 100644 hub/test/fixtures/adapters/civicclerk.json create mode 100644 hub/test/fixtures/adapters/coursedog.json create mode 100644 hub/test/fixtures/adapters/edlio-thrillshare.json create mode 100644 hub/test/fixtures/adapters/edu-job-boards.json create mode 100644 hub/test/fixtures/adapters/edx-coursera.json create mode 100644 hub/test/fixtures/adapters/finalsite.json create mode 100644 hub/test/fixtures/adapters/granicus-govdelivery.json create mode 100644 hub/test/fixtures/adapters/healthcare-careers.json create mode 100644 hub/test/fixtures/adapters/junar-tyler-data.json create mode 100644 hub/test/fixtures/adapters/municipal-cms-pack.json create mode 100644 hub/test/fixtures/adapters/neogov.json create mode 100644 hub/test/fixtures/adapters/opengov-portals.json create mode 100644 hub/test/fixtures/adapters/paradox-olivia.json create mode 100644 hub/test/fixtures/adapters/primegov.json create mode 100644 hub/test/fixtures/adapters/public-bid-portals.json create mode 100644 hub/test/fixtures/adapters/schema-course.json create mode 100644 hub/test/fixtures/adapters/smb-ats-full.json create mode 100644 hub/test/fixtures/adapters/staffing-ats-pack.json create mode 100644 hub/test/fixtures/adapters/tyler-energov.json create mode 100644 hub/test/wave3-b1-cat-a.ts create mode 100644 hub/test/wave3-b1-cat-b.ts create mode 100644 hub/test/wave3-b1-cat-c.ts create mode 100644 hub/test/wave3-b1-gov-edu-jobs.test.ts create mode 100644 internal/classify/content_state_test.go create mode 100644 internal/extract/manifests/acalog.yaml create mode 100644 internal/extract/manifests/accela-citizen-access.yaml create mode 100644 internal/extract/manifests/agenda-portal-pack.yaml create mode 100644 internal/extract/manifests/arcgis-hub.yaml create mode 100644 internal/extract/manifests/blackboard-wcm.yaml create mode 100644 internal/extract/manifests/boarddocs.yaml create mode 100644 internal/extract/manifests/bullhorn-career-portal.yaml create mode 100644 internal/extract/manifests/canvas-public-courses.yaml create mode 100644 internal/extract/manifests/civicclerk.yaml create mode 100644 internal/extract/manifests/coursedog.yaml create mode 100644 internal/extract/manifests/edlio-thrillshare.yaml create mode 100644 internal/extract/manifests/edu-job-boards.yaml create mode 100644 internal/extract/manifests/edx-coursera.yaml create mode 100644 internal/extract/manifests/finalsite.yaml create mode 100644 internal/extract/manifests/granicus-govdelivery.yaml create mode 100644 internal/extract/manifests/healthcare-careers.yaml create mode 100644 internal/extract/manifests/junar-tyler-data.yaml create mode 100644 internal/extract/manifests/municipal-cms-pack.yaml create mode 100644 internal/extract/manifests/neogov.yaml create mode 100644 internal/extract/manifests/opengov-portals.yaml create mode 100644 internal/extract/manifests/paradox-olivia.yaml create mode 100644 internal/extract/manifests/primegov.yaml create mode 100644 internal/extract/manifests/public-bid-portals.yaml create mode 100644 internal/extract/manifests/schema-course.yaml create mode 100644 internal/extract/manifests/smb-ats-full.yaml create mode 100644 internal/extract/manifests/staffing-ats-pack.yaml create mode 100644 internal/extract/manifests/tyler-energov.yaml create mode 100644 internal/extract/wave3_edu.go create mode 100644 internal/extract/wave3_edu_test.go create mode 100644 internal/extract/wave3_gov.go create mode 100644 internal/extract/wave3_gov_test.go create mode 100644 internal/extract/wave3_jobs_public.go create mode 100644 internal/extract/wave3_jobs_public_test.go diff --git a/hub/scripts/compile-manifests.mjs b/hub/scripts/compile-manifests.mjs index 8a7b791..084aa3c 100644 --- a/hub/scripts/compile-manifests.mjs +++ b/hub/scripts/compile-manifests.mjs @@ -248,6 +248,37 @@ export const VALID_HTML_MODES = new Set([ 'finra_brokercheck_html', 'pacer_case_locator_html', 'state_court_portals_html', + // Wave 3 B1 Category A (Local Gov #202-#216, deduplicated with #140) + 'govdelivery_html', + 'municipal_cms_html', + 'boarddocs_html', + 'civicclerk_html', + 'primegov_html', + 'agenda_portal_html', + 'accela_html', + 'tyler_energov_html', + 'opengov_html', + 'public_bid_html', + 'arcgis_hub_html', + 'junar_tyler_html', + // Wave 3 B1 Category B (Education #217-#225, deduplicated with #140) + 'finalsite_html', + 'blackboard_wcm_html', + 'edlio_thrillshare_html', + 'acalog_html', + 'coursedog_html', + 'canvas_public_html', + 'edx_coursera_html', + 'schema_course_html', + // Wave 3 B1 Category C (Public/Staffing Jobs #226-#233) + 'neogov_html', + 'bullhorn_portal_html', + 'taleo_full_html', + 'paradox_olivia_html', + 'staffing_ats_pack_html', + 'smb_ats_full_html', + 'edu_job_boards_html', + 'healthcare_careers_html', ]); const pslDatPath = join(manifestsDir, 'public_suffix_list.dat'); @@ -395,6 +426,37 @@ const APPROVED_WILDCARD_DOMAIN_PATTERNS = new Set([ '*.zendesk.com', '*.giant-bicycles.com', '*.liv-cycling.com', + // Wave 3 B1 Category A + '*.civicclerk.com', + '*.primegov.com', + '*.escribemeetings.com', + '*.novusagenda.com', + '*.civicweb.net', + '*.opengov.com', + '*.bonfirehub.com', + '*.hub.arcgis.com', + '*.opendata.arcgis.com', + '*.opendatasoft.com', + '*.junar.com', + // Wave 3 B1 Category B + '*.edlio.com', + '*.apptegy.us', + '*.sites.thrillshare.com', + '*.acalog.com', + '*.coursedog.com', + '*.instructure.com', + // Wave 3 B1 Category C + '*.governmentjobs.com', + '*.schooljobs.com', + '*.bullhornstaffing.com', + '*.taleo.net', + '*.paradox.ai', + '*.jobdiva.com', + '*.ceipal.com', + '*.zohorecruit.com', + '*.freshteam.com', + '*.homerun.co', + '*.healthcaresource.com', ]); const RESERVED_CORE_ATS_DOMAINS = new Set([ @@ -434,6 +496,10 @@ const APPROVED_SAP_ATS_EXACT_EXEMPTIONS = Object.freeze( 'enterprise-ats:jobs.jobvite.com', 'gem-ats:jobs.gem.com', 'ukg-paylocity-dover:jobs.dover.com', + 'paradox-olivia:jobs.mchire.com', + 'staffing-ats-pack:jobs.crelate.com', + 'smb-ats-full:jobs.manatal.com', + 'edu-job-boards:jobs.chronicle.com', ]), ); diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 0d9d403..681270b 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -102,6 +102,7 @@ const suiteSpecs = [ ['test/wave2d-dev.test.ts', 'wave2d-dev.test.mjs'], ['test/wave2d-local.test.ts', 'wave2d-local.test.mjs'], ['test/wave2d-sports-misc.test.ts', 'wave2d-sports-misc.test.mjs'], + ['test/wave3-b1-gov-edu-jobs.test.ts', 'wave3-b1-gov-edu-jobs.test.mjs'], ['test/mcp-part2-wave2e.test.ts', 'mcp-part2-wave2e.test.mjs'], ['test/wave2-security-fixes.test.ts', 'wave2-security-fixes.test.mjs'], ['test/hub-secrets-policy.test.ts', 'hub-secrets-policy.test.mjs'], diff --git a/hub/src/extractors/declarative.ts b/hub/src/extractors/declarative.ts index a3a5f6c..77aa6d5 100644 --- a/hub/src/extractors/declarative.ts +++ b/hub/src/extractors/declarative.ts @@ -577,7 +577,21 @@ export type DeclarativeJsonMode = | 'calendly_booking_json' | 'bosch_ebike_error_code_json' | 'finra_brokercheck_json' - | 'ncaa_espn_json'; + | 'ncaa_espn_json' + | 'civicclerk_json' + | 'primegov_json' + | 'tyler_energov_json' + | 'opengov_json' + | 'arcgis_hub_json' + | 'junar_tyler_json' + | 'coursedog_json' + | 'canvas_course_json' + | 'edx_course_json' + | 'neogov_json' + | 'bullhorn_joborder_json' + | 'staffing_ats_json' + | 'manatal_jobs_json' + | 'smb_ats_json'; export interface DeclarativeExtractSpec { commerceMode?: DeclarativeCommerceMode; @@ -607,7 +621,8 @@ export interface DeclarativeExtractSpec { | 'chocolatey_xml' | 'edge_cloud_changelog_xml' | 'fhfa_hpi_csv' - | 'public_share_csv'; + | 'public_share_csv' + | 'boarddocs_text'; pathParam?: string; codeByPath?: DeclarativeCodeByPathSpec; xml?: DeclarativeXmlSpec; @@ -878,7 +893,35 @@ export type DeclarativeHtmlMode = | 'ncaa_espn_html' | 'finra_brokercheck_html' | 'pacer_case_locator_html' - | 'state_court_portals_html'; + | 'state_court_portals_html' + | 'govdelivery_html' + | 'municipal_cms_html' + | 'boarddocs_html' + | 'civicclerk_html' + | 'primegov_html' + | 'agenda_portal_html' + | 'accela_html' + | 'tyler_energov_html' + | 'opengov_html' + | 'public_bid_html' + | 'arcgis_hub_html' + | 'junar_tyler_html' + | 'finalsite_html' + | 'blackboard_wcm_html' + | 'edlio_thrillshare_html' + | 'acalog_html' + | 'coursedog_html' + | 'canvas_public_html' + | 'edx_coursera_html' + | 'schema_course_html' + | 'neogov_html' + | 'bullhorn_portal_html' + | 'taleo_full_html' + | 'paradox_olivia_html' + | 'staffing_ats_pack_html' + | 'smb_ats_full_html' + | 'edu_job_boards_html' + | 'healthcare_careers_html'; export interface DeclarativeHtmlRouteSpec { id?: string; diff --git a/hub/src/search-index.ts b/hub/src/search-index.ts index 213d5d9..ffee6f2 100644 --- a/hub/src/search-index.ts +++ b/hub/src/search-index.ts @@ -1560,6 +1560,7 @@ export async function executeExtractCall(params: { status: number; cached: boolean; title?: string; + extractorId?: string; markdown?: string; jobPosting?: StructuredJobPosting; contentState?: ContentState; @@ -2572,6 +2573,7 @@ export async function executeExtractCall(params: { status: typeof r.status === 'number' ? r.status : 200, cached: false, title: twinOut.title, + extractorId: twinSpec.id, contentState: twinState.state, markdown: redactPii ? redactPiiText(sanitizedTwin) : sanitizedTwin, truncated: r.truncated === true || (r.bodyOmitted === true && r.extractedOnNode !== true), @@ -2757,6 +2759,7 @@ export async function executeExtractCall(params: { const structuredDoc = icsDoc || feedDoc || jsonDoc || csvDoc || patchDoc || srcDoc; let md: string; let title: string | undefined; + let extractorId: string | undefined; let jobPosting: StructuredJobPosting | undefined; let contentSource: 'meta-description' | 'ssr-hydration' | undefined; @@ -2855,6 +2858,7 @@ export async function executeExtractCall(params: { fetchBoundedTwin: fetchBoundedForExtract, }); if (compRes && compRes.doc.markdown.trim()) { + extractorId = compRes.extractorId; setActiveSpanAttribute('edgefetch.adapter_id', compRes.extractorId, activeTracer ?? undefined); platformCompDoc = { extractorId: compRes.extractorId, @@ -3038,6 +3042,7 @@ export async function executeExtractCall(params: { contentSource = 'meta-description'; } if (!platformCompDoc && extracted?.extractorId) { + extractorId = extracted.extractorId; setActiveSpanAttribute('edgefetch.adapter_id', extracted.extractorId, activeTracer ?? undefined); } } @@ -3109,6 +3114,7 @@ export async function executeExtractCall(params: { status: typeof r.status === 'number' ? r.status : 200, cached: false, ...(title ? { title } : {}), + ...(extractorId ? { extractorId } : {}), ...(jobPosting ? { jobPosting } : {}), contentState: stateRes.state, ...(contentSource ? { contentSource } : {}), @@ -3246,6 +3252,7 @@ export async function executeExtractCall(params: { status: entry.status, cached: entry.cached, ...(safeFinalTitle ? { title: safeFinalTitle } : {}), + ...(entry.extractorId ? { extractorId: entry.extractorId } : {}), ...(entry.contentState ? { contentState: entry.contentState } : {}), ...(entry.contentSource ? { contentSource: entry.contentSource } : {}), ...(entry.waybackSnapshotUrl ? { waybackSnapshotUrl: entry.waybackSnapshotUrl, waybackTimestamp: entry.waybackTimestamp } : {}), @@ -3294,6 +3301,7 @@ export async function executeExtractCall(params: { status: entry.status, cached: entry.cached, ...(safeFinalTitle ? { title: safeFinalTitle } : {}), + ...(entry.extractorId ? { extractorId: entry.extractorId } : {}), ...(entry.contentState ? { contentState: entry.contentState } : {}), ...(entry.contentSource ? { contentSource: entry.contentSource } : {}), ...(entry.waybackSnapshotUrl ? { waybackSnapshotUrl: entry.waybackSnapshotUrl, waybackTimestamp: entry.waybackTimestamp } : {}), diff --git a/hub/test/fixtures/adapters/acalog.json b/hub/test/fixtures/adapters/acalog.json new file mode 100644 index 0000000..49ef288 --- /dev/null +++ b/hub/test/fixtures/adapters/acalog.json @@ -0,0 +1,42 @@ +{ + "adapterId": "acalog", + "mode": "html", + "inputUrl": "https://csulb.catalog.acalog.com/preview_course_nopop.php?catoid=12&coid=1397", + "mockPayload": "Course: CECS 328 - California State University, Long Beach

CECS 328 - Data Structures and Algorithms

Credits: 3. Prerequisites: CECS 228. Study of trees, graphs, sorting, hashing, and algorithm analysis.

CECS 329
", + "expectTitleIncludes": "CECS 328", + "expectMarkdownIncludes": [ + "CSULB Academic Catalog", + "CECS 328", + "Acalog", + "Data Structures and Algorithms" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Course Not Found

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

Catalog error

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

Scheduled Maintenance

Catalog is temporarily unavailable due to maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "robots-disallowed-ajax-route", + "status": 200, + "finalUrl": "https://csulb.catalog.acalog.com/ajax/preview_course.php?catoid=12&coid=1397", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/accela-citizen-access.json b/hub/test/fixtures/adapters/accela-citizen-access.json new file mode 100644 index 0000000..6dad309 --- /dev/null +++ b/hub/test/fixtures/adapters/accela-citizen-access.json @@ -0,0 +1,35 @@ +{ + "adapterId": "accela-citizen-access", + "mode": "html", + "inputUrl": "https://aca-prod.accela.com/SANDIEGO/Cap/CapDetail.aspx?Module=DSD&TabName=DSD&capID1=REC26&capID2=00000&capID3=008YQ&agencyCode=SANDIEGO", + "mockPayload": "Accela Citizen Access

Message Bar

PMT-3398658Combination Building PermitClosed2027-06-30
1200 Third Ave, San Diego, CA 92101
Tenant improvement and interior electrical upgrade for municipal office suite.
", + "expectTitleIncludes": "PMT-3398658", + "expectMarkdownIncludes": [ + "PMT-3398658", + "Combination Building Permit", + "1200 Third Ave, San Diego, CA 92101" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://aca-prod.accela.com/error", + "payload": "404 Page Not Found

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/agenda-portal-pack.json b/hub/test/fixtures/adapters/agenda-portal-pack.json new file mode 100644 index 0000000..03f8129 --- /dev/null +++ b/hub/test/fixtures/adapters/agenda-portal-pack.json @@ -0,0 +1,34 @@ +{ + "adapterId": "agenda-portal-pack", + "mode": "html", + "inputUrl": "https://pub-london.escribemeetings.com/", + "mockPayload": "London City Council Public Meetings - eSCRIBE
City Council Meeting - 2026-12-01
", + "expectTitleIncludes": "London City Council Public Meetings", + "expectMarkdownIncludes": [ + "escribe", + "City Council Meeting - 2026-12-01" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://pub-london.escribemeetings.com/error", + "payload": "404 Page Not Found

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/arcgis-hub.json b/hub/test/fixtures/adapters/arcgis-hub.json new file mode 100644 index 0000000..07e0d07 --- /dev/null +++ b/hub/test/fixtures/adapters/arcgis-hub.json @@ -0,0 +1,35 @@ +{ + "adapterId": "arcgis-hub", + "mode": "twin", + "inputUrl": "https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3", + "expectedFetchUrl": "https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3", + "mockPayload": "{\"type\":\"FeatureCollection\",\"numberMatched\":1200,\"numberReturned\":1,\"features\":[{\"id\":\"9f4a2e1c\",\"type\":\"Feature\",\"properties\":{\"id\":\"9f4a2e1c\",\"title\":\"Municipal Zoning Districts\",\"owner\":\"CityGIS\",\"modified\":\"2026-11-20T12:00:00Z\",\"description\":\"Official municipal zoning boundary polygons.\"},\"links\":[{\"rel\":\"self\",\"href\":\"https://hub.arcgis.com/api/search/v1/collections/all/items/9f4a2e1c\"}]}]}", + "expectTitleIncludes": "Municipal Zoning Districts", + "expectMarkdownIncludes": [ + "Municipal Zoning Districts", + "CityGIS" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"code\":404,\"message\":\"Collection not found\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://hub.arcgis.com/error", + "payload": "404 Page Not Found

Page Not Found

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

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

" + }, + { + "name": "empty-feature-collection", + "status": 200, + "payload": "{\"type\":\"FeatureCollection\",\"numberMatched\":0,\"numberReturned\":0,\"features\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/blackboard-wcm.json b/hub/test/fixtures/adapters/blackboard-wcm.json new file mode 100644 index 0000000..0b6c13e --- /dev/null +++ b/hub/test/fixtures/adapters/blackboard-wcm.json @@ -0,0 +1,35 @@ +{ + "adapterId": "blackboard-wcm", + "mode": "html", + "inputUrl": "https://www.bhusd.org/calendar", + "mockPayload": "District Calendar | Beverly Hills Unified

Upcoming District Events

Winter Robotics Showcase
", + "expectTitleIncludes": "Upcoming District Events", + "expectMarkdownIncludes": [ + "Beverly Hills Unified School District", + "SchoolMessenger Presence", + "Winter Robotics Showcase" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.bhusd.org/error", + "payload": "Error
Error
" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "503 Service Unavailable

Scheduled Maintenance

District website is down for maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading..." + } + ] +} diff --git a/hub/test/fixtures/adapters/boarddocs.json b/hub/test/fixtures/adapters/boarddocs.json new file mode 100644 index 0000000..13d3c2b --- /dev/null +++ b/hub/test/fixtures/adapters/boarddocs.json @@ -0,0 +1,39 @@ +{ + "adapterId": "boarddocs", + "mode": "html", + "inputUrl": "https://go.boarddocs.com/ca/sandi/Board.nsf/Public", + "mockPayload": "San Diego Unified School District - BoardDocs Public

San Diego Unified Board of Education Meetings

Public agendas, board policies, and supporting meeting packets for the San Diego Unified School District.

Upcoming Board Meetings
", + "expectTitleIncludes": "San Diego Unified Board of Education Meetings", + "expectMarkdownIncludes": [ + "BoardDocs", + "San Diego Unified" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

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

403 ERROR

Error from cloudfront

" + } + ] +} diff --git a/hub/test/fixtures/adapters/bullhorn-career-portal.json b/hub/test/fixtures/adapters/bullhorn-career-portal.json new file mode 100644 index 0000000..740db0c --- /dev/null +++ b/hub/test/fixtures/adapters/bullhorn-career-portal.json @@ -0,0 +1,42 @@ +{ + "adapterId": "bullhorn-career-portal", + "mode": "twin", + "inputUrl": "https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25", + "expectedFetchUrl": "https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25", + "mockPayload": "{\"total\":2,\"start\":0,\"count\":2,\"data\":[{\"id\":10421,\"title\":\"Registered Nurse - ICU\",\"employmentType\":\"Contract\",\"publishedCategory\":{\"id\":12,\"name\":\"Healthcare\"},\"address\":{\"city\":\"Denver\",\"state\":\"CO\",\"countryName\":\"United States\"},\"dateLastPublished\":1795132800000},{\"id\":10422,\"title\":\"Clinical Informatics Analyst\",\"employmentType\":\"Full-Time\",\"publishedCategory\":{\"id\":15,\"name\":\"Health IT\"},\"address\":{\"city\":\"Austin\",\"state\":\"TX\",\"countryName\":\"United States\"},\"dateLastPublished\":1795219200000}]}", + "expectTitleIncludes": "Bullhorn Career Portal (public-rest33)", + "expectMarkdownIncludes": [ + "Registered Nurse - ICU", + "Denver, CO, United States", + "Clinical Informatics Analyst", + "Austin, TX, United States" + ], + "negativeCases": [ + { + "name": "bad-corp-token", + "status": 200, + "payload": "{\"errorMessageKey\":\"errors.badCorpToken\",\"errorMessage\":\"Invalid corpToken\",\"errorCode\":400}" + }, + { + "name": "http-404", + "status": 404, + "payload": "{\"status\":404,\"error\":\"Not Found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://public-rest33.bullhornstaffing.com/error", + "payload": "Error

Error

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

Under Maintenance

" + }, + { + "name": "empty-results-json", + "status": 200, + "payload": "{\"total\":0,\"start\":0,\"count\":0,\"data\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/canvas-public-courses.json b/hub/test/fixtures/adapters/canvas-public-courses.json new file mode 100644 index 0000000..ae62d3a --- /dev/null +++ b/hub/test/fixtures/adapters/canvas-public-courses.json @@ -0,0 +1,41 @@ +{ + "adapterId": "canvas-public-courses", + "mode": "twin", + "inputUrl": "https://ocw.instructure.com/api/v1/courses/44012", + "expectedFetchUrl": "https://ocw.instructure.com/api/v1/courses/44012", + "mockPayload": "{\"id\":44012,\"name\":\"Introduction to Distributed Systems\",\"course_code\":\"CS 440\",\"workflow_state\":\"available\",\"is_public\":true,\"term\":{\"name\":\"Fall 2026\"},\"syllabus_body\":\"

Topics include consensus, Raft, Paxos, and fault-tolerant replicated storage.

\"}", + "expectTitleIncludes": "Introduction to Distributed Systems", + "expectMarkdownIncludes": [ + "CS 440", + "Canvas LMS", + "Raft, Paxos" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"errors\":[{\"message\":\"The specified resource does not exist.\"}]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://ocw.instructure.com/error", + "payload": "Error

404 Not Found

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

Free-for-Teacher Platform

This service is temporarily unavailable due to scheduled maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "unauthorized-json", + "status": 401, + "payload": "{\"errors\":[{\"message\":\"user authorization required\"}],\"status\":\"unauthorized\"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/civicclerk.json b/hub/test/fixtures/adapters/civicclerk.json new file mode 100644 index 0000000..900ac1b --- /dev/null +++ b/hub/test/fixtures/adapters/civicclerk.json @@ -0,0 +1,36 @@ +{ + "adapterId": "civicclerk", + "mode": "twin", + "inputUrl": "https://mauicounty.portal.civicclerk.com/", + "expectedFetchUrl": "https://mauicounty.api.civicclerk.com/v1/Events?$top=25", + "mockPayload": "{\"@odata.context\":\"https://mauicounty.api.civicclerk.com/v1/$metadata#Events\",\"value\":[{\"id\":1023,\"eventName\":\"County Council Regular Meeting\",\"eventDescription\":\"Regular Council meeting for County of Maui.\",\"eventDate\":\"2026-12-04T09:00:00Z\",\"startDateTime\":\"2026-12-04T09:00:00Z\",\"isPublished\":true,\"agendaId\":5512,\"agendaName\":\"Regular Agenda\",\"categoryName\":\"County Council\",\"mediaSourcePath\":\"https://mauicounty.api.civicclerk.com/v1/Meetings/1023/Files/5512\"}]}", + "expectTitleIncludes": "County Council Regular Meeting", + "expectMarkdownIncludes": [ + "County Council Regular Meeting", + "2026-12-04T09:00:00Z", + "Regular Agenda" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Event not found\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://mauicounty.api.civicclerk.com/error", + "payload": "404 Page Not Found

Page Not Found

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

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

" + }, + { + "name": "empty-odata-value", + "status": 200, + "payload": "{\"@odata.context\":\"https://mauicounty.api.civicclerk.com/v1/$metadata#Events\",\"value\":[]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/civicplus.json b/hub/test/fixtures/adapters/civicplus.json index 089b6b7..07a8055 100644 --- a/hub/test/fixtures/adapters/civicplus.json +++ b/hub/test/fixtures/adapters/civicplus.json @@ -13,12 +13,23 @@ { "name": "http-404", "status": 404, - "payload": "404 Page Not Found

Not Found

" + "payload": "404 Page Not Found

Not Found

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

Page Not Found

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

Service Unavailable

" + "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/fixtures/adapters/coursedog.json b/hub/test/fixtures/adapters/coursedog.json new file mode 100644 index 0000000..8bf2182 --- /dev/null +++ b/hub/test/fixtures/adapters/coursedog.json @@ -0,0 +1,36 @@ +{ + "adapterId": "coursedog", + "mode": "html", + "inputUrl": "https://catalog.pratt.edu/courses", + "mockPayload": "Courses | Pratt Institute Catalog

Courses

ARCH-101 - Architectural Design I

Explore undergraduate and graduate studio offerings across Pratt Institute.

", + "expectTitleIncludes": "Courses", + "expectMarkdownIncludes": [ + "Pratt Institute", + "Coursedog", + "ARCH-101", + "Architectural Design I" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://catalog.pratt.edu/error", + "payload": "Error

Error

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

Down for Maintenance

Coursedog catalog is temporarily unavailable. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/courseleaf.json b/hub/test/fixtures/adapters/courseleaf.json index ef0c6b9..2cf5987 100644 --- a/hub/test/fixtures/adapters/courseleaf.json +++ b/hub/test/fixtures/adapters/courseleaf.json @@ -13,12 +13,23 @@ { "name": "http-404", "status": 404, - "payload": "404 Page Not Found

Not Found

" + "payload": "404 Not Found

Not Found

" }, { - "name": "maintenance-or-block", + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://catalog.unc.edu/error", + "payload": "Error

Error

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

Service Unavailable

" + "payload": "Service Unavailable

Scheduled Maintenance

Catalog is temporarily unavailable. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" } ] } diff --git a/hub/test/fixtures/adapters/dkan.json b/hub/test/fixtures/adapters/dkan.json index 3ed3003..ab65400 100644 --- a/hub/test/fixtures/adapters/dkan.json +++ b/hub/test/fixtures/adapters/dkan.json @@ -15,10 +15,21 @@ "status": 404, "payload": "{\"message\":\"Not found\",\"status\":404}" }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.medicaid.gov/error", + "payload": "404 Page Not Found

Page Not Found

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

Service Unavailable

" + }, + { + "name": "empty-dataset-array", + "status": 200, + "payload": "[]" } ] } diff --git a/hub/test/fixtures/adapters/edlio-thrillshare.json b/hub/test/fixtures/adapters/edlio-thrillshare.json new file mode 100644 index 0000000..57b65d2 --- /dev/null +++ b/hub/test/fixtures/adapters/edlio-thrillshare.json @@ -0,0 +1,35 @@ +{ + "adapterId": "edlio-thrillshare", + "mode": "html", + "inputUrl": "https://www.worldcompassacademy.com/apps/news/", + "mockPayload": "News | World Compass Academy

School News & Announcements

Science Fair Winners Announced

Congratulations to all middle school STEM finalists.

", + "expectTitleIncludes": "School News", + "expectMarkdownIncludes": [ + "World Compass Academy", + "Edlio", + "Science Fair Winners Announced" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.worldcompassacademy.com/error", + "payload": "Error
Error
" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "Service Unavailable

Under Maintenance

Portal is temporarily unavailable. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/edu-job-boards.json b/hub/test/fixtures/adapters/edu-job-boards.json new file mode 100644 index 0000000..e106ac9 --- /dev/null +++ b/hub/test/fixtures/adapters/edu-job-boards.json @@ -0,0 +1,41 @@ +{ + "adapterId": "edu-job-boards", + "mode": "html", + "inputUrl": "https://jobs.chronicle.com/job/38070836/director-of-occupational-therapy/", + "mockPayload": "Director of Occupational Therapy | Chronicle Jobs

Director of Occupational Therapy

Direct accredited graduate occupational therapy curriculum and clinical partnerships.

", + "expectTitleIncludes": "Director of Occupational Therapy", + "expectMarkdownIncludes": [ + "Pacific Northwest University", + "Yakima, WA, US", + "2026-11-19", + "occupational therapy curriculum" + ], + "negativeCases": [ + { + "name": "incapsula-waf-challenge", + "status": 200, + "payload": "" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Job Not Found

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

Error

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

System Under Maintenance

" + }, + { + "name": "edjoin-unhydrated-csr-template", + "status": 200, + "payload": "Search
\"><%- item.positionTitle %>
" + } + ] +} diff --git a/hub/test/fixtures/adapters/edx-coursera.json b/hub/test/fixtures/adapters/edx-coursera.json new file mode 100644 index 0000000..0f14ba8 --- /dev/null +++ b/hub/test/fixtures/adapters/edx-coursera.json @@ -0,0 +1,37 @@ +{ + "adapterId": "edx-coursera", + "mode": "twin", + "inputUrl": "https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/", + "expectedFetchUrl": "https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/", + "mockPayload": "{\"id\":\"course-v1:HarvardX+CS50+X\",\"name\":\"CS50's Introduction to Computer Science\",\"number\":\"CS50\",\"org\":\"HarvardX\",\"effort\":\"10-20 hours per week\",\"pacing\":\"self\",\"start\":\"2026-01-01T00:00:00Z\",\"short_description\":\"An introduction to the intellectual enterprises of computer science and the art of programming.\"}", + "expectTitleIncludes": "CS50's Introduction to Computer Science", + "expectMarkdownIncludes": [ + "HarvardX", + "CS50", + "edX", + "art of programming" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"detail\":\"Not found.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://courses.edx.org/error", + "payload": "Error

Error

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

Scheduled Maintenance

edX is temporarily unavailable due to scheduled maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/finalsite.json b/hub/test/fixtures/adapters/finalsite.json new file mode 100644 index 0000000..e8969c9 --- /dev/null +++ b/hub/test/fixtures/adapters/finalsite.json @@ -0,0 +1,36 @@ +{ + "adapterId": "finalsite", + "mode": "html", + "inputUrl": "https://www.greenwichschools.org/calendar", + "mockPayload": "Calendar | Greenwich Public Schools

District Calendar

Board of Education Regular Meeting2026-12-03
2026-27 Academic Calendar PDF
", + "expectTitleIncludes": "District Calendar", + "expectMarkdownIncludes": [ + "Greenwich Public Schools", + "Finalsite", + "Board of Education Regular Meeting", + "2026-27 Academic Calendar PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found - Greenwich Public Schools

404 - Page Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.greenwichschools.org/error", + "payload": "Error
Page Error
" + }, + { + "name": "maintenance-shell", + "status": 503, + "payload": "Service Unavailable

Scheduled Maintenance

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/granicus-govdelivery.json b/hub/test/fixtures/adapters/granicus-govdelivery.json new file mode 100644 index 0000000..7723c40 --- /dev/null +++ b/hub/test/fixtures/adapters/granicus-govdelivery.json @@ -0,0 +1,40 @@ +{ + "adapterId": "granicus-govdelivery", + "mode": "html", + "inputUrl": "https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149", + "mockPayload": "Winter Snow Operations Update
City of Evanston • 2026-11-24

Winter Snow Operations Update

Public Works crews are prepared for winter snow clearing operations across municipal arterials and neighborhood routes.

Snow Route Map
Sent by City of Evanston
", + "expectTitleIncludes": "Winter Snow Operations Update", + "expectMarkdownIncludes": [ + "Granicus GovDelivery", + "Winter Snow Operations Update", + "Public Works crews" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "http-406-not-acceptable", + "status": 406, + "payload": "Not Acceptable

406

" + } + ] +} diff --git a/hub/test/fixtures/adapters/healthcare-careers.json b/hub/test/fixtures/adapters/healthcare-careers.json new file mode 100644 index 0000000..f76b440 --- /dev/null +++ b/hub/test/fixtures/adapters/healthcare-careers.json @@ -0,0 +1,41 @@ +{ + "adapterId": "healthcare-careers", + "mode": "html", + "inputUrl": "https://pm.healthcaresource.com/CS/midwesthealth#/job/98123", + "mockPayload": "ICU Charge Nurse | Midwest Health

ICU Charge Nurse

Coordinate critical care nursing teams in a 32-bed Magnet-designated intensive care unit.

", + "expectTitleIncludes": "ICU Charge Nurse", + "expectMarkdownIncludes": [ + "Midwest Health System", + "Madison, WI, US", + "2026-11-21", + "Magnet-designated intensive care unit" + ], + "negativeCases": [ + { + "name": "healthcaresource-application-error", + "status": 200, + "payload": "Application Error

You have encountered a system error. Please verify that you have entered the correct URL .

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "payload": "Just a moment...
Checking your browser before accessing...
" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Not Found

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

Error

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Careers
" + } + ] +} diff --git a/hub/test/fixtures/adapters/junar-tyler-data.json b/hub/test/fixtures/adapters/junar-tyler-data.json new file mode 100644 index 0000000..42429a9 --- /dev/null +++ b/hub/test/fixtures/adapters/junar-tyler-data.json @@ -0,0 +1,40 @@ +{ + "adapterId": "junar-tyler-data", + "mode": "html", + "inputUrl": "https://data.paloalto.gov/dataviews/251890/business-registry-2018/", + "mockPayload": "Business Registry 2018 - City of Palo Alto Open Data

Business Registry 2018

Active municipal business registry records published via Junar Open Data portal.

Download CSV
", + "expectTitleIncludes": "Business Registry 2018", + "expectMarkdownIncludes": [ + "Junar / Tyler Open Data", + "Business Registry 2018" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "tyler-login-redirect", + "status": 200, + "finalUrl": "https://data.tylertech.com/login", + "payload": "Sign In

Sign In

" + } + ] +} diff --git a/hub/test/fixtures/adapters/laserfiche-weblink.json b/hub/test/fixtures/adapters/laserfiche-weblink.json index ebb3e98..ee52ed9 100644 --- a/hub/test/fixtures/adapters/laserfiche-weblink.json +++ b/hub/test/fixtures/adapters/laserfiche-weblink.json @@ -16,10 +16,21 @@ "status": 404, "payload": "{\"data\":{\"name\":null,\"folderId\":0,\"results\":null,\"failed\":true}}" }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://cc-publicdocs.santa-ana.org/error", + "payload": "404 Page Not Found

Page Not Found

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

Service Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" } ] } diff --git a/hub/test/fixtures/adapters/municipal-cms-pack.json b/hub/test/fixtures/adapters/municipal-cms-pack.json new file mode 100644 index 0000000..1b942a6 --- /dev/null +++ b/hub/test/fixtures/adapters/municipal-cms-pack.json @@ -0,0 +1,35 @@ +{ + "adapterId": "municipal-cms-pack", + "mode": "html", + "inputUrl": "https://www.maplevalleywa.gov/government/city_council_meetings_agendas_and_minutes.php", + "mockPayload": "City Council Meetings - Maple Valley WA

City Council Meetings, Agendas and Minutes

Access official Maple Valley City Council meeting packets, schedules, and approved minutes.

November 2026 Council Agenda
", + "expectTitleIncludes": "City Council Meetings, Agendas and Minutes", + "expectMarkdownIncludes": [ + "revize", + "Maple Valley City Council", + "November 2026 Council Agenda" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/neogov.json b/hub/test/fixtures/adapters/neogov.json new file mode 100644 index 0000000..3828034 --- /dev/null +++ b/hub/test/fixtures/adapters/neogov.json @@ -0,0 +1,36 @@ +{ + "adapterId": "neogov", + "mode": "html", + "inputUrl": "https://www.governmentjobs.com/careers/lacounty/jobs/4567890/senior-civil-engineer", + "mockPayload": "Senior Civil Engineer | County of Los Angeles

Senior Civil Engineer

Lead structural design and capital infrastructure inspections for county public works projects.

", + "expectTitleIncludes": "Senior Civil Engineer", + "expectMarkdownIncludes": [ + "County of Los Angeles", + "Los Angeles, CA, US", + "2026-11-20", + "capital infrastructure inspections" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Job Not Found

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

Error

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

System Under Maintenance

Please check back later.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Job Details

Job Details

" + } + ] +} diff --git a/hub/test/fixtures/adapters/opendatasoft.json b/hub/test/fixtures/adapters/opendatasoft.json index cce4900..c26a52d 100644 --- a/hub/test/fixtures/adapters/opendatasoft.json +++ b/hub/test/fixtures/adapters/opendatasoft.json @@ -3,7 +3,7 @@ "mode": "twin", "inputUrl": "https://public.opendatasoft.com/explore/dataset/us-state-boundaries/", "expectedFetchUrl": "https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/us-state-boundaries", - "mockPayload": "{\"visibility\":\"domain\",\"fields\":[{\"name\":\"gid\",\"description\":null,\"annotations\":{},\"label\":\"gid\",\"type\":\"int\",\"label_en\":\"gid\",\"label_fr\":\"gid\",\"description_en\":null,\"description_fr\":null},{\"name\":\"arealand\",\"description\":null,\"annotations\":{\"facetsort\":\"-count\"},\"label\":\"arealand\",\"type\":\"text\",\"label_en\":\"arealand\",\"label_fr\":\"arealand\",\"description_en\":null,\"description_fr\":null},{\"name\":\"division\",\"description\":null,\"annotations\":{},\"label\":\"division\",\"type\":\"int\",\"label_en\":\"division\",\"label_fr\":\"division\",\"description_en\":null,\"description_fr\":null},{\"name\":\"intptlat\",\"description\":null,\"annotations\":{},\"label\":\"intptlat\",\"type\":\"double\",\"label_en\":\"intptlat\",\"label_fr\":\"intptlat\",\"description_en\":null,\"description_fr\":null},{\"name\":\"name\",\"description\":null,\"annotations\":{\"facet\":true},\"label\":\"name\",\"type\":\"text\",\"label_en\":\"name\",\"label_fr\":\"name\",\"description_en\":null,\"description_fr\":null},{\"name\":\"objectid\",\"description\":null,\"annotations\":{},\"label\":\"objectid\",\"type\":\"int\",\"label_en\":\"objectid\",\"label_fr\":\"objectid\",\"description_en\":null,\"description_fr\":null},{\"name\":\"areawater\",\"description\":null,\"annotations\":{\"facetsort\":\"-count\"},\"label\":\"areawater\",\"type\":\"text\",\"label_en\":\"areawater\",\"label_fr\":\"areawater\",\"description_en\":null,\"description_fr\":null},{\"name\":\"intptlon\",\"description\":null,\"annotations\":{},\"label\":\"intptlon\",\"type\":\"double\",\"label_en\":\"intptlon\",\"label_fr\":\"intptlon\",\"description_en\":null,\"description_fr\":null}],\"dataset_id\":\"us-state-boundaries\",\"dataset_uid\":\"da_2w3hfe\",\"has_records\":true,\"features\":[\"analyze\",\"geo\"],\"attachments\":[],\"alternative_exports\":[],\"data_visible\":true,\"metas\":{\"default\":{\"title\":\"US State Boundaries\",\"description\":\"

This dataset represents States and equivalent entities, which are the primary governmental divisions of the United States. The TIGER/Line shapefiles and related database files (.dbf) are an extract of selected geographic and cartographic information from the U.S. Census Bureau's Master Address File / Topologically Integrated Geographic Encoding and Referencing (MAF/TIGER) Database (MTDB). The MTDB represents a seamless national file with no overlaps or gaps between parts, however, each TIGER/Line shapefile is designed to stand alone as an independent data set, or they can be combined to cover the entire nation. In addition to the fifty States, the Census Bureau treats the District of Columbia, Puerto Rico, and each of the Island Areas (American Samoa, the Commonwealth of the Northern Mariana Islands, Guam, and the U.S. Virgin Islands) as the statistical equivalents of States for the purpose of data presentation.

\",\"theme\":[\"Administration\"],\"keyword\":[\"States\",\"US\",\"Boundary\",\"Boundaries\"],\"license\":\"Public domain\",\"license_url\":\"https://en.wikipedia.org/wiki/Public_domain\",\"language\":\"en\",\"modified\":\"2017-06-27T13:41:50+00:00\",\"publisher\":\"U.S. Census Bureau\",\"references\":\"https://hifld-geoplatform.opendata.arcgis.com/datasets/us-state-boundaries\",\"attributions\":null,\"update_frequency\":null,\"bbox\":{\"type\":\"Feature\",\"geometry\":{\"coordinates\":[[[-64.51267403550446,71.44068698398769],[144.56357399001718,71.44068698398769],[144.56357399001718,-14.601813023909926],[-64.51267403550446,-14.601813023909926],[-64.51267403550446,71.44068698398769]]],\"type\":\"Polygon\"},\"properties\":{}},\"data_processed\":\"2019-10-24T08:34:32+00:00\",\"federated\":false,\"geographic_reference\":[\"world\"],\"geographic_reference_auto\":true,\"geometry_types\":[\"MultiPolygon\",\"Polygon\"],\"metadata_languages\":[\"en\"],\"metadata_processed\":\"2025-09-18T08:03:51.203000+00:00\",\"modified_updates_on_data_change\":false,\"modified_updates_on_metadata_change\":false,\"parent_domain\":null,\"records_count\":56,\"shared_catalog\":null,\"source_dataset\":null,\"source_domain\":null,\"source_domain_address\":null,\"source_domain_title\":null,\"territory\":[\"World\"],\"timezone\":null}}}\n", + "mockPayload": "{\"visibility\":\"domain\",\"fields\":[{\"name\":\"gid\",\"description\":null,\"annotations\":{},\"label\":\"gid\",\"type\":\"int\",\"label_en\":\"gid\",\"label_fr\":\"gid\",\"description_en\":null,\"description_fr\":null},{\"name\":\"arealand\",\"description\":null,\"annotations\":{\"facetsort\":\"-count\"},\"label\":\"arealand\",\"type\":\"text\",\"label_en\":\"arealand\",\"label_fr\":\"arealand\",\"description_en\":null,\"description_fr\":null},{\"name\":\"division\",\"description\":null,\"annotations\":{},\"label\":\"division\",\"type\":\"int\",\"label_en\":\"division\",\"label_fr\":\"division\",\"description_en\":null,\"description_fr\":null},{\"name\":\"intptlat\",\"description\":null,\"annotations\":{},\"label\":\"intptlat\",\"type\":\"double\",\"label_en\":\"intptlat\",\"label_fr\":\"intptlat\",\"description_en\":null,\"description_fr\":null},{\"name\":\"name\",\"description\":null,\"annotations\":{\"facet\":true},\"label\":\"name\",\"type\":\"text\",\"label_en\":\"name\",\"label_fr\":\"name\",\"description_en\":null,\"description_fr\":null},{\"name\":\"objectid\",\"description\":null,\"annotations\":{},\"label\":\"objectid\",\"type\":\"int\",\"label_en\":\"objectid\",\"label_fr\":\"objectid\",\"description_en\":null,\"description_fr\":null},{\"name\":\"areawater\",\"description\":null,\"annotations\":{\"facetsort\":\"-count\"},\"label\":\"areawater\",\"type\":\"text\",\"label_en\":\"areawater\",\"label_fr\":\"areawater\",\"description_en\":null,\"description_fr\":null},{\"name\":\"intptlon\",\"description\":null,\"annotations\":{},\"label\":\"intptlon\",\"type\":\"double\",\"label_en\":\"intptlon\",\"label_fr\":\"intptlon\",\"description_en\":null,\"description_fr\":null}],\"dataset_id\":\"us-state-boundaries\",\"dataset_uid\":\"da_2w3hfe\",\"has_records\":true,\"features\":[\"analyze\",\"geo\"],\"attachments\":[],\"alternative_exports\":[],\"data_visible\":true,\"metas\":{\"default\":{\"title\":\"US State Boundaries\",\"description\":\"

This dataset represents States and equivalent entities, which are the primary governmental divisions of the United States. The TIGER/Line shapefiles and related database files (.dbf) are an extract of selected geographic and cartographic information from the U.S. Census Bureau's Master Address File / Topologically Integrated Geographic Encoding and Referencing (MAF/TIGER) Database (MTDB). The MTDB represents a seamless national file with no overlaps or gaps between parts, however, each TIGER/Line shapefile is designed to stand alone as an independent data set, or they can be combined to cover the entire nation. In addition to the fifty States, the Census Bureau treats the District of Columbia, Puerto Rico, and each of the Island Areas (American Samoa, the Commonwealth of the Northern Mariana Islands, Guam, and the U.S. Virgin Islands) as the statistical equivalents of States for the purpose of data presentation.

\",\"theme\":[\"Administration\"],\"keyword\":[\"States\",\"US\",\"Boundary\",\"Boundaries\"],\"license\":\"Public domain\",\"license_url\":\"https://en.wikipedia.org/wiki/Public_domain\",\"language\":\"en\",\"modified\":\"2017-06-27T13:41:50+00:00\",\"publisher\":\"U.S. Census Bureau\",\"references\":\"https://hifld-geoplatform.opendata.arcgis.com/datasets/us-state-boundaries\",\"attributions\":null,\"update_frequency\":null,\"bbox\":{\"type\":\"Feature\",\"geometry\":{\"coordinates\":[[[-64.51267403550446,71.44068698398769],[144.56357399001718,71.44068698398769],[144.56357399001718,-14.601813023909926],[-64.51267403550446,-14.601813023909926],[-64.51267403550446,71.44068698398769]]],\"type\":\"Polygon\"},\"properties\":{}},\"data_processed\":\"2019-10-24T08:34:32+00:00\",\"federated\":false,\"geographic_reference\":[\"world\"],\"geographic_reference_auto\":true,\"geometry_types\":[\"MultiPolygon\",\"Polygon\"],\"metadata_languages\":[\"en\"],\"metadata_processed\":\"2025-09-18T08:03:51.203000+00:00\",\"modified_updates_on_data_change\":false,\"modified_updates_on_metadata_change\":false,\"parent_domain\":null,\"records_count\":56,\"shared_catalog\":null,\"source_dataset\":null,\"source_domain\":null,\"source_domain_title\":null,\"territory\":[\"World\"],\"timezone\":null}}}\n", "expectTitleIncludes": "US State Boundaries", "expectMarkdownIncludes": [ "`us-state-boundaries`", @@ -16,10 +16,21 @@ "status": 404, "payload": "{\"message\":\"Not found\",\"status\":404}" }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://public.opendatasoft.com/error", + "payload": "404 Page Not Found

Page Not Found

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

Service Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" } ] } diff --git a/hub/test/fixtures/adapters/opengov-portals.json b/hub/test/fixtures/adapters/opengov-portals.json new file mode 100644 index 0000000..8010861 --- /dev/null +++ b/hub/test/fixtures/adapters/opengov-portals.json @@ -0,0 +1,35 @@ +{ + "adapterId": "opengov-portals", + "mode": "html", + "inputUrl": "https://torranceca.opengov.com/transparency", + "mockPayload": "City of Torrance Transparency Portal

City of Torrance Financial Transparency

Explore annual operating budgets, general fund revenues, departmental expenditures, and capital improvement projects.

", + "expectTitleIncludes": "City of Torrance", + "expectMarkdownIncludes": [ + "OpenGov Portal", + "City of Torrance", + "2026" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "OpenGov — Page Not Found

Page Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/paradox-olivia.json b/hub/test/fixtures/adapters/paradox-olivia.json new file mode 100644 index 0000000..b1484ee --- /dev/null +++ b/hub/test/fixtures/adapters/paradox-olivia.json @@ -0,0 +1,36 @@ +{ + "adapterId": "paradox-olivia", + "mode": "html", + "inputUrl": "https://careers.fedex.com/account-manager-ii/job/P25-397759-1", + "mockPayload": "Account Manager II | FedEx Careers

Account Manager II

Powered by Paradox Olivia

", + "expectTitleIncludes": "Account Manager II", + "expectMarkdownIncludes": [ + "FedEx", + "Memphis, TN, US", + "2026-11-22", + "enterprise freight accounts" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Job Not Found

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

Error

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

System Under Maintenance

" + }, + { + "name": "empty-next-spa-shell", + "status": 200, + "payload": "Loading
" + } + ] +} diff --git a/hub/test/fixtures/adapters/primegov.json b/hub/test/fixtures/adapters/primegov.json new file mode 100644 index 0000000..33534fe --- /dev/null +++ b/hub/test/fixtures/adapters/primegov.json @@ -0,0 +1,36 @@ +{ + "adapterId": "primegov", + "mode": "twin", + "inputUrl": "https://okc.primegov.com/public/portal", + "expectedFetchUrl": "https://okc.primegov.com/api/v2/PublicPortal/ListUpcomingMeetings", + "mockPayload": "[{\"id\":8812,\"title\":\"City Council Regular Meeting\",\"dateTime\":\"2026-12-08T08:30:00\",\"committeeName\":\"City Council\",\"agendaUrl\":\"https://okc.primegov.com/Portal/Meeting?meetingTemplateId=8812\"}]", + "expectTitleIncludes": "PrimeGov Meetings", + "expectMarkdownIncludes": [ + "City Council Regular Meeting", + "2026-12-08T08:30:00", + "City Council" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Not Found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://okc.primegov.com/error", + "payload": "404 Page Not Found

Page Not Found

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

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

" + }, + { + "name": "empty-meetings-array", + "status": 200, + "payload": "[]" + } + ] +} diff --git a/hub/test/fixtures/adapters/public-bid-portals.json b/hub/test/fixtures/adapters/public-bid-portals.json new file mode 100644 index 0000000..fa1daef --- /dev/null +++ b/hub/test/fixtures/adapters/public-bid-portals.json @@ -0,0 +1,41 @@ +{ + "adapterId": "public-bid-portals", + "mode": "html", + "inputUrl": "https://www.bidnetdirect.com/colorado/solicitations/open-bids/W-38th-Ave-Multimodal-Improvements-Design-Services/0000443656?purchasingGroupId=8409951&origin=2", + "mockPayload": "202686685 - W. 38th Ave. Multimodal Improvements Design Services
Login

202686685 - W. 38th Ave. Multimodal Improvements Design Services

Reference Number
0000443656
Closing Date
2026-12-15 14:00 MST
Location
Denver, Colorado

The City and County of Denver Department of Transportation and Infrastructure seeks qualified civil engineering consulting firms to provide preliminary and final roadway design, multimodal pedestrian safety engineering, storm drainage analysis, signal timing design, utility coordination, public outreach support, environmental clearance documentation, and construction phase engineering support services along the West 38th Avenue corridor.

", + "expectTitleIncludes": "W. 38th Ave. Multimodal Improvements Design Services", + "expectMarkdownIncludes": [ + "bidnet", + "0000443656", + "City and County of Denver DOTI", + "2026-12-15 14:00 MST" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "login-wall-gated-detail", + "status": 200, + "payload": "Sign In

Sign In

Please sign in to view solicitation attachments and register to download bid documents.

" + } + ] +} diff --git a/hub/test/fixtures/adapters/schema-course.json b/hub/test/fixtures/adapters/schema-course.json new file mode 100644 index 0000000..0e5a804 --- /dev/null +++ b/hub/test/fixtures/adapters/schema-course.json @@ -0,0 +1,36 @@ +{ + "adapterId": "schema-course", + "mode": "html", + "inputUrl": "https://pll.harvard.edu/course/cs50-introduction-computer-science", + "mockPayload": "CS50's Introduction to Computer Science | Harvard

CS50's Introduction to Computer Science

", + "expectTitleIncludes": "CS50's Introduction to Computer Science", + "expectMarkdownIncludes": [ + "Harvard University", + "CS50", + "David J. Malan", + "Online" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://pll.harvard.edu/error", + "payload": "Error

Error

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

Scheduled Maintenance

This site is down for maintenance. Please check back soon.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/smb-ats-full.json b/hub/test/fixtures/adapters/smb-ats-full.json new file mode 100644 index 0000000..758009d --- /dev/null +++ b/hub/test/fixtures/adapters/smb-ats-full.json @@ -0,0 +1,43 @@ +{ + "adapterId": "smb-ats-full", + "mode": "twin", + "inputUrl": "https://api.manatal.com/open/v3/career-page/manatal/jobs/", + "expectedFetchUrl": "https://api.manatal.com/open/v3/career-page/manatal/jobs/", + "mockPayload": "{\"count\":2,\"next\":null,\"previous\":null,\"results\":[{\"id\":2883259,\"hash\":\"L9Y69V66\",\"organization_name\":\"Manatal\",\"position_name\":\"Senior Backend Engineer\",\"city\":\"Bangkok\",\"state\":\"\",\"country\":\"Thailand\",\"is_remote\":true,\"contract_details\":\"Full-time\",\"created_at\":\"2026-11-15T08:00:00Z\",\"description\":\"

Build scalable recruitment APIs in Python and Go.

\"},{\"id\":2883260,\"hash\":\"K4P19Z11\",\"organization_name\":\"Manatal\",\"position_name\":\"Product Designer\",\"city\":\"Remote\",\"state\":\"\",\"country\":\"Global\",\"is_remote\":true,\"contract_details\":\"Full-time\",\"created_at\":\"2026-11-16T08:00:00Z\",\"description\":\"

Craft candidate workflow experiences.

\"}]}", + "expectTitleIncludes": "Manatal — Open Roles", + "expectMarkdownIncludes": [ + "Senior Backend Engineer", + "Product Designer", + "2026-11-15", + "Remote" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"detail\":\"Not found.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://api.manatal.com/error", + "payload": "Error

Error

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

Under Maintenance

" + }, + { + "name": "empty-results-json", + "status": 200, + "payload": "{\"count\":0,\"next\":null,\"previous\":null,\"results\":[]}" + }, + { + "name": "homerun-404-redirect-shell", + "status": 200, + "finalUrl": "https://404.homerun.co/vacancies/jobs/homerun", + "payload": "404 - Page Not Found

Vacancy not found

" + } + ] +} diff --git a/hub/test/fixtures/adapters/staffing-ats-pack.json b/hub/test/fixtures/adapters/staffing-ats-pack.json new file mode 100644 index 0000000..8d4b4ad --- /dev/null +++ b/hub/test/fixtures/adapters/staffing-ats-pack.json @@ -0,0 +1,42 @@ +{ + "adapterId": "staffing-ats-pack", + "mode": "html", + "inputUrl": "https://jobs.crelate.com/portal/promotive", + "mockPayload": "Promotive Staffing Jobs | Crelate

Senior Embedded Firmware Engineer

Crelate Portal

", + "expectTitleIncludes": "Senior Embedded Firmware Engineer", + "expectMarkdownIncludes": [ + "Promotive Staffing", + "San Diego, CA, US", + "2026-11-21", + "RTOS firmware" + ], + "negativeCases": [ + { + "name": "organization-portal-disabled", + "status": 200, + "finalUrl": "https://jobs.crelate.com/Public/DisabledPortal", + "payload": "Organization Portal Disabled

Organization Portal Disabled

This job board is currently disabled.

" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 - Page Not Found

Not Found

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

Error

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

Under Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Careers
" + } + ] +} diff --git a/hub/test/fixtures/adapters/taleo-full.json b/hub/test/fixtures/adapters/taleo-full.json index e6d8502..7d22357 100644 --- a/hub/test/fixtures/adapters/taleo-full.json +++ b/hub/test/fixtures/adapters/taleo-full.json @@ -15,10 +15,21 @@ "status": 404, "payload": "{\"message\":\"Not found\",\"status\":404}" }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://hdr.taleo.net/error", + "payload": "Error

Error

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

Service Unavailable

" + }, + { + "name": "empty-requisition-list", + "status": 200, + "payload": "{\"requisitionList\":[]}" } ] } diff --git a/hub/test/fixtures/adapters/tyler-energov.json b/hub/test/fixtures/adapters/tyler-energov.json new file mode 100644 index 0000000..368e087 --- /dev/null +++ b/hub/test/fixtures/adapters/tyler-energov.json @@ -0,0 +1,35 @@ +{ + "adapterId": "tyler-energov", + "mode": "html", + "inputUrl": "https://energovweb.capecoral.gov/EnerGovProd/selfservice", + "mockPayload": "Building Permit BLDR-2026-0412 - EnerGov SelfService

Building Permit BLDR-2026-0412

Permit Type: Residential Alteration Permit. Status: Issued. Parcel Address: 1015 Cultural Park Blvd, Cape Coral, FL 33990. Issued Date: 2026-11-18.

", + "expectTitleIncludes": "BLDR-2026-0412", + "expectMarkdownIncludes": [ + "Tyler EnerGov", + "BLDR-2026-0412", + "Cultural Park Blvd" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Page Not Found

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

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

" + }, + { + "name": "empty-angularjs-spa-shell", + "status": 200, + "payload": "SelfService Public Site" + } + ] +} diff --git a/hub/test/wave3-b1-cat-a.ts b/hub/test/wave3-b1-cat-a.ts new file mode 100644 index 0000000..c276bfb --- /dev/null +++ b/hub/test/wave3-b1-cat-a.ts @@ -0,0 +1,689 @@ +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 { 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 { resetOverflowRobotsCacheForTests } from '../src/overflow'; +import { RequestTracer } from '../src/otel'; +import { executeScrapeCall, isTrustedTwinRedirectUrl } from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { resetIsolateBudgetForTests } from '../src/wasm-bridge'; + +export const WAVE3_B1_CAT_A_IDS = [ + 'civicplus', + 'granicus-govdelivery', + 'municipal-cms-pack', + 'boarddocs', + 'civicclerk', + 'primegov', + 'agenda-portal-pack', + 'laserfiche-weblink', + 'accela-citizen-access', + 'tyler-energov', + 'opengov-portals', + 'public-bid-portals', + 'arcgis-hub', + 'dkan', + 'opendatasoft', + 'junar-tyler-data', +] as const; + +interface GovFixture { + adapterId: string; + mode: 'twin' | 'html'; + inputUrl: string; + expectedFetchUrl?: string; + mockPayload: string; + expectTitleIncludes?: string; + expectMarkdownIncludes: string[]; + negativeCases: Array<{ name: string; status?: number; finalUrl?: string; payload: string }>; +} + +const noopHtmlToMd = () => ({ markdown: '', links: [] as string[] }); + +export function registerWave3B1CatATests(): void { + test('Wave 3 B1 Category A: All 16 Local Gov adapter IDs registered with Rule 7 & domain separation intact', () => { + const registered = new Set(DECLARATIVE_SITE_ADAPTERS.map((a) => a.id)); + for (const id of WAVE3_B1_CAT_A_IDS) { + assert.ok(registered.has(id), `Missing Wave 3 B1 Category A manifest: ${id}`); + 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, + `Collector validateSingleErrorEvent rejected adapterId: ${id}`, + ); + } + + const arcgis = DECLARATIVE_SITE_ADAPTERS.find((a) => a.id === 'arcgis'); + assert.ok(arcgis); + assert.deepEqual(arcgis.domains, ['services.arcgis.com'], 'arcgis.yaml must be narrowed to services.arcgis.com'); + assert.equal(arcgis.universalEngine, true, 'arcgis.yaml must preserve universalEngine: true'); + + const dkan = DECLARATIVE_SITE_ADAPTERS.find((a) => a.id === 'dkan'); + assert.ok(dkan); + assert.equal(dkan.universalEngine, true); + for (const forbiddenDkan of ['data.cms.gov', 'healthdata.gov']) { + assert.equal(dkan.domains.includes(forbiddenDkan), false, `#214 dkan must NOT claim ${forbiddenDkan}`); + } + + const ods = DECLARATIVE_SITE_ADAPTERS.find((a) => a.id === 'opendatasoft'); + assert.ok(ods); + assert.equal(ods.strictRobots, true, '#215 opendatasoft must enforce strictRobots'); + assert.equal( + resolveSiteExtractorTwin('https://public.opendatasoft.com/explore/assets/geonames-all-cities-with-a-population-1000/'), + null, + '#215 opendatasoft must NOT rewrite HTML /explore/ URLs to robots-disallowed /api/', + ); + + const govdeliv = DECLARATIVE_SITE_ADAPTERS.find((a) => a.id === 'granicus-govdelivery'); + assert.ok(govdeliv); + assert.equal( + resolveSiteExtractorTwin('https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149'), + null, + '#202 granicus-govdelivery must NOT rewrite HTML bulletins to .rss', + ); + + const junar = DECLARATIVE_SITE_ADAPTERS.find((a) => a.id === 'junar-tyler-data'); + assert.ok(junar); + assert.equal( + junar.domains.some((d) => d.includes('socrata.com')), + false, + '#216 junar-tyler-data must NOT claim *.socrata.com', + ); + + for (const strictId of ['primegov', 'agenda-portal-pack', 'public-bid-portals', 'boarddocs', 'opendatasoft']) { + const a = DECLARATIVE_SITE_ADAPTERS.find((x) => x.id === strictId); + assert.ok(a?.strictRobots, `${strictId} must enforce strictRobots: true`); + } + + const arcHubPol = resolveAdapterPolicyForUrl('https://hub.arcgis.com/api/v3/datasets'); + assert.equal(arcHubPol.adapterId, 'arcgis-hub'); + const arcHubTwin = resolveSiteExtractorTwin('https://opendata.dc.gov/api/v3/datasets?page[size]=1'); + assert.ok(arcHubTwin && arcHubTwin.id === 'arcgis-hub'); + assert.ok(arcHubTwin.fetchUrl.includes('fields%5Bdatasets%5D='), '#213 arcgis-hub must project sparse fields[datasets]'); + + const ccTwin = resolveSiteExtractorTwin('https://mauicounty.portal.civicclerk.com/'); + assert.ok(ccTwin && ccTwin.fetchUrl === 'https://mauicounty.api.civicclerk.com/v1/Events?$top=25'); + + const compileSrc = readFileSync(resolve('scripts', 'compile-manifests.mjs'), 'utf8'); + for (const forbidden of [ + '*.civicclerk.com', + '*.primegov.com', + '*.escribemeetings.com', + '*.novusagenda.com', + '*.civicweb.net', + '*.opengov.com', + '*.bonfirehub.com', + '*.hub.arcgis.com', + '*.opendata.arcgis.com', + '*.opendatasoft.com', + '*.junar.com', + ]) { + const crossBlock = compileSrc.slice( + compileSrc.indexOf('APPROVED_CROSS_DOMAIN_TWIN_HOSTS'), + compileSrc.indexOf('APPROVED_WILDCARD_DOMAIN_PATTERNS'), + ); + assert.equal(crossBlock.includes(forbidden), false, `Rule 7 violation: ${forbidden} must never be in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + }); + + test('Wave 3 B1 Category A: All 16 fixtures pass positive, RequestTracer edgefetch.adapter_id, and >=4 negative checks', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of WAVE3_B1_CAT_A_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as GovFixture; + assert.equal(fx.adapterId, slug); + assert.ok(fx.negativeCases.length >= 4, `${slug} must have >= 4 negativeCases`); + + if (fx.mode === 'twin') { + const twin = resolveSiteExtractorTwin(fx.inputUrl); + assert.ok(twin && twin.id === slug, `${slug}: expected twin for ${fx.inputUrl}`); + if (fx.expectedFetchUrl) { + assert.equal(twin.fetchUrl, fx.expectedFetchUrl, `${slug}: unexpected fetchUrl`); + } + const out = twin.formatTwin(fx.mockPayload, fx.inputUrl, noopHtmlToMd); + assert.ok(out && out.markdown.trim().length > 0, `${slug}: positive 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 <= 50, `${slug}: records[] exceeds 50`); + } + + 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 }, + env: {}, + tracer: scTracer, + executeHubFetch: async (_target, 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: fx.expectedFetchUrl || fx.inputUrl, + outcome: 'ok', + status: 200, + contentType: 'application/json', + body: fx.mockPayload, + }, + ], + }), + }; + }, + }); + }); + assert.equal(scRes.status, 200, `${slug} scrape failed: ${JSON.stringify(scRes.body)}`); + assert.equal(scRes.body.extractorId, slug); + assert.equal(scRes.body.contentState, 'active'); + assert.equal(scTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], slug); + + 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 }, + env: {}, + tracer: exTracer, + executeHubFetch: async (_target, 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: fx.expectedFetchUrl || fx.inputUrl, + outcome: 'ok', + status: 200, + contentType: 'application/json', + body: fx.mockPayload, + }, + ], + }), + }; + }, + }); + }); + assert.equal(exRes.status, 200); + assert.equal(exTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], slug); + + for (const nc of fx.negativeCases) { + if (nc.finalUrl && nc.finalUrl !== fx.inputUrl) { + assert.equal( + isTrustedTwinRedirectUrl(slug, fx.expectedFetchUrl || fx.inputUrl, { finalUrl: nc.finalUrl }), + false, + `${slug}:${nc.name} redirect to ${nc.finalUrl} must be rejected`, + ); + } else { + const neg = twin.formatTwin(nc.payload, fx.inputUrl, noopHtmlToMd); + assert.equal(Boolean(neg && neg.markdown.trim()), false, `${slug}:${nc.name} must return null/empty`); + } + } + } else { + const postOut = postExtractHtml(fx.mockPayload, fx.inputUrl, ''); + assert.ok(postOut && postOut.extractorId === slug, `${slug}: postExtractHtml 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 <= 50, `${slug}: records[] exceeds 50`); + } + + 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 }, + env: {}, + tracer: scTracer, + executeHubFetch: async (_target, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, outcome: 'ok', status: 200, contentType: 'text/html', body: fx.mockPayload }], + }), + }; + }, + }); + }); + assert.equal(scRes.status, 200); + assert.equal(scRes.body.extractorId, slug); + assert.equal(scRes.body.contentState, 'active', `${slug}: golden HTML case must classify active`); + assert.equal(scTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.scrape')?.attributes?.['edgefetch.adapter_id'], slug); + + 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 }, + env: {}, + tracer: exTracer, + executeHubFetch: async (_target, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, outcome: 'ok', status: 200, contentType: 'text/html', body: fx.mockPayload }], + }), + }; + }, + }); + }); + assert.equal(exRes.status, 200); + assert.equal(exTracer.getRecordedSpans().find((s) => s.name === 'edgefetch.extract')?.attributes?.['edgefetch.adapter_id'], slug); + + for (const nc of fx.negativeCases) { + const targetUrl = nc.finalUrl || fx.inputUrl; + const negPost = postExtractHtml(nc.payload, targetUrl, ''); + assert.equal(negPost, null, `${slug}:${nc.name} must return null`); + } + } + + // End-to-end negativeCases through executeScrapeCall and executeExtractCall -> never contentState: "active" + for (const nc of fx.negativeCases) { + const ncStatus = nc.status ?? 200; + const ncFinal = nc.finalUrl || fx.expectedFetchUrl || fx.inputUrl; + const itemContentType = nc.payload.trimStart().startsWith('<') ? 'text/html' : 'application/json'; + const hubMock = async (_target: unknown, body: string) => { + const parsed = JSON.parse(body) as { requests?: Array<{ id?: string; url?: string }> }; + const req = parsed.requests?.[0]; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req?.id ?? 'neg-1', + url: req?.url ?? fx.inputUrl, + finalUrl: ncFinal, + outcome: 'ok', + status: ncStatus, + contentType: itemContentType, + body: nc.payload, + }, + ], + }), + }; + }; + + const scNeg = await executeScrapeCall({ + payload: { url: fx.inputUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: hubMock, + }); + assert.notEqual( + (scNeg.body as { contentState?: string }).contentState, + 'active', + `scrape ${slug}:${nc.name} must not return contentState=active`, + ); + + const exNeg = await executeExtractCall({ + payload: { urls: [fx.inputUrl], noCache: true }, + env: {}, + executeHubFetch: hubMock, + }); + const exFirst = ((exNeg.body as { results?: Array<{ contentState?: string }> }).results ?? [])[0]; + assert.notEqual( + exFirst?.contentState, + 'active', + `extract ${slug}:${nc.name} must not return contentState=active`, + ); + } + } + }); + + test('Wave 3 B1 Category A: Laserfiche ?cr=1, Accela Default.aspx, EnerGov SPA & BidNet login_wall guardrails', async () => { + resetIsolateBudgetForTests(); + + // #208 Laserfiche WebLink ?cr=1 / STR_ERROR_PAGE_TITLE / INDEX_COOKIE_WARNING rejected + assert.equal( + postExtractHtml( + 'STR_ERROR_PAGE_TITLE

INDEX_COOKIE_WARNING

', + 'https://records.hawaiicounty.gov/WebLink/Browse.aspx?dbid=1&cr=1', + '', + ), + null, + ); + + // #209 Accela Default.aspx without permit spans rejected + assert.equal( + postExtractHtml( + 'Accela Citizen Access

Message Bar

', + 'https://aca-prod.accela.com/SANDIEGO/Default.aspx', + '', + ), + null, + ); + + // #210 Tyler EnerGov unhydrated AngularJS shell rejected + assert.equal( + postExtractHtml( + 'SelfService Public Site

Welcome to portal home

', + 'https://energovweb.capecoral.gov/EnerGovProd/selfservice', + '', + ), + null, + ); + + // #212 Public BidNet solicitation with header .loginWindow succeeds as active; gated detail classifies as login_wall + const bidFx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', 'public-bid-portals.json'), 'utf8')) as GovFixture; + const gated = bidFx.negativeCases.find((c) => c.name === 'login-wall-gated-detail')!; + const gatedRes = await executeScrapeCall({ + payload: { url: bidFx.inputUrl, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, outcome: 'ok', status: 200, contentType: 'text/html', body: gated.payload }], + }), + }; + }, + }); + assert.equal(gatedRes.body.contentState, 'login_wall', '#212 login-gated bid detail must classify as login_wall'); + }); + + test('Wave 3 B1 Category A: Challenger regressions (#214 DKAN exclusions, #212 concise BidNet, #208 Laserfiche ?cr=1, #209 Accela Default.aspx)', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // #214 dkan resolves data.medicaid.gov & data.healthcare.gov, and NEVER claims data.cms.gov or healthdata.gov + assert.equal( + resolveSiteExtractorTwin('https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8')?.id, + 'dkan', + ); + for (const u of [ + 'https://data.cms.gov/dataset/mj5m-pzi6', + 'https://data.cms.gov/api/1/metastore/schemas/dataset/items/mj5m-pzi6', + 'https://healthdata.gov/dataset/my-dataset', + 'https://healthdata.gov/api/1/metastore/schemas/dataset/items/my-dataset', + 'https://www.healthdata.gov/dataset/my-dataset', + ]) { + const twin = resolveSiteExtractorTwin(u); + assert.notEqual(twin?.id, 'dkan', `#214 dkan must NEVER claim twin for ${u}`); + } + const dkanHtmlSample = + 'Dataset - DKAN

Medicaid Rebate

'; + for (const u of [ + 'https://data.cms.gov/dataset/mj5m-pzi6', + 'https://healthdata.gov/dataset/my-dataset', + 'https://www.healthdata.gov/dataset/my-dataset', + ]) { + const ext = postExtractHtml(dkanHtmlSample, u, ''); + assert.notEqual(ext?.extractorId, 'dkan', `#214 dkan must NEVER match HTML on ${u}`); + } + + // #212 Concise (<65w) public BidNet solicitation with header .loginWindow password input stays active + const conciseBidHtml = + 'RFP-2026-101 - Snow Plowing' + + '
' + + '

RFP-2026-101 - Snow Plowing

' + + '
Reference Number
0000443657
' + + '
Closing Date
2026-12-20
' + + '
Location
Denver, CO
' + + '
'; + const bidRes = await executeScrapeCall({ + payload: { url: 'https://www.bidnetdirect.com/colorado/solicitations/open-bids/rfp/0000443657', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, outcome: 'ok', status: 200, contentType: 'text/html', body: conciseBidHtml }], + }), + }; + }, + }); + assert.equal(bidRes.body.extractorId, 'public-bid-portals'); + assert.equal(bidRes.body.contentState, 'active', '#212 concise public BidNet solicitation must classify as active'); + + // #208 Laserfiche single-marker & >=60w ?cr=1 shells -> empty_shell (never active) + const lfCases = [ + { + name: 'STR_ERROR_PAGE_TITLE only', + url: 'https://records.hawaiicounty.gov/WebLink/Browse.aspx?dbid=1&cr=1', + html: 'STR_ERROR_PAGE_TITLE

Cookies required.

', + }, + { + name: 'INDEX_COOKIE_WARNING only', + url: 'https://records.hawaiicounty.gov/WebLink/Browse.aspx?dbid=1', + html: 'WebLink

INDEX_COOKIE_WARNING

', + }, + { + name: '?cr=1 >=60w cookie help text', + url: 'https://records.hawaiicounty.gov/WebLink/Browse.aspx?dbid=1&cr=1', + html: `WebLink

Cookies Required

${'Please enable browser cookies in your browser preferences to continue using WebLink repository browsing. '.repeat(6)}

`, + }, + ]; + for (const tc of lfCases) { + const res = await executeScrapeCall({ + payload: { url: tc.url, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, finalUrl: tc.url, outcome: 'ok', status: 200, contentType: 'text/html', body: tc.html }], + }), + }; + }, + }); + assert.equal(res.body.contentState, 'empty_shell', `#208 ${tc.name} must classify as empty_shell`); + } + + // #209 Accela Default.aspx "Message Bar" / aspnetForm (short & welcome-copy) -> empty_shell (never active) + const accelaVariants = [ + 'Accela Citizen Access

Message Bar

', + `Accela Citizen Access

Message Bar

${'Welcome to the municipal Accela Citizen Access online permitting portal where residents can search records and inspect applications. '.repeat(5)}

`, + ]; + for (const html of accelaVariants) { + const res = await executeScrapeCall({ + payload: { url: 'https://aca-prod.accela.com/SANDIEGO/Default.aspx', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, finalUrl: req.url, outcome: 'ok', status: 200, contentType: 'text/html', body: html }], + }), + }; + }, + }); + assert.equal(res.body.contentState, 'empty_shell', '#209 Accela Default.aspx shell must classify as empty_shell'); + } + + // Iteration 3 Challenger bypass vectors (#212 sign in to download, #212 .loginWindow inside
, #208 empty MetadataPanel, #209
"); end > 0 { + scan = scan[idx : idx+end+7] + } + } + seen := make(map[string]bool) + for _, m := range wave3CommScanTags(scan, 260) { + txt := wave3CommCleanText(m.Inner) + if len(txt) < 4 || len(txt) > 800 || seen[txt] { + continue + } + seen[txt] = true + switch m.Tag { + case "h1", "h2", "h3": + if !wave3CommRxGenericHead.MatchString(txt) && len(headings) < maxSnippets { + headings = append(headings, txt) + } + case "p", "article": + if len(txt) >= 24 && len(paragraphs) < maxSnippets { + paragraphs = append(paragraphs, txt) + } + case "li": + if len(txt) >= 10 && len(listItems) < maxSnippets { + listItems = append(listItems, txt) + } + } + } + return headings, paragraphs, listItems +} + +func wave3CommRenderBulletsAndSections(title string, bullets []string, sections []string) string { + var sb strings.Builder + if title != "" { + sb.WriteString("# ") + sb.WriteString(escapeDeclMarkdownBrackets(title)) + sb.WriteString("\n\n") + } + for _, b := range bullets { + if strings.TrimSpace(b) != "" { + sb.WriteString(b) + sb.WriteByte('\n') + } + } + if len(bullets) > 0 && len(sections) > 0 { + sb.WriteByte('\n') + } + for _, sec := range sections { + if strings.TrimSpace(sec) != "" { + sb.WriteString(sec) + sb.WriteString("\n\n") + } + } + return strings.TrimSpace(sb.String()) +} + +// ── #243 Wild Apricot HTML Extractor ────────────────────────────────────────────────────────────── + +func wave3CommExtractWildApricotHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 180_000) + if !wave3CommContainsAny(lowerProbe, "wagadget", "wildapricot", `id="idevent`, `id='idevent`, "idevent=", "var idevent") { + return nil + } + // Reject WaGadgetLoginButton-only gated shells without public event/directory content + hasPublicGadget := wave3CommContainsAny(lowerProbe, + "wagadgetevents", "wagadgetupcomingevents", "wagadgetmemberdirectory", "wagadgetcontent", + ) + if strings.Contains(lowerProbe, "wagadgetloginbutton") && !hasPublicGadget { + return nil + } + if wave3CommContainsAny(lowerProbe, "login to view", "members only", "log in to continue") && + !wave3CommContainsAny(lowerProbe, "wagadgeteventsstatedetails", "wagadgetmemberdirectorystatelist", "wagadgetupcomingevents") { + return nil + } + + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + title = "Wild Apricot Portal" + } + desc := wave3CommExtractMeta(rawHTML, "description") + + var records []map[string]any + var links []string + var eventLines []string + var memberLines []string + + // Event details or upcoming events + for _, cls := range []string{"WaGadgetEventsStateDetails", "WaGadgetUpcomingEvents", "WaGadgetEvents"} { + for _, blk := range wave3CommExtractBalancedDivsByClass(rawHTML, cls, 10) { + for _, ln := range wave3CommExtractAnchorLinks(blk, baseURL, []string{"/event-", "event"}, 15) { + if len(records) >= wave3CommMaxRecords { + break + } + records = append(records, map[string]any{"kind": "event", "title": ln.Text, "url": ln.URL}) + links = append(links, ln.URL) + eventLines = append(eventLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(ln.Text), ln.URL)) + } + for _, m := range wave3CommScanTags(blk, 40) { + if m.Tag == "p" || m.Tag == "li" { + txt := wave3CommCleanText(m.Inner) + if len(txt) >= 18 && len(eventLines) < 20 { + eventLines = append(eventLines, "- "+escapeDeclMarkdownBrackets(txt)) + } + } + } + } + } + + // Member directory + for _, cls := range []string{"WaGadgetMemberDirectory", "memberDirectoryContainer"} { + for _, blk := range wave3CommExtractBalancedDivsByClass(rawHTML, cls, 5) { + for _, m := range wave3CommScanTags(blk, 60) { + if m.Tag == "tr" || m.Tag == "li" || m.Tag == "p" { + txt := wave3CommCleanText(m.Inner) + if len(txt) >= 8 && len(txt) <= 240 && len(records) < wave3CommMaxRecords { + records = append(records, map[string]any{"kind": "member", "entry": txt}) + memberLines = append(memberLines, "- "+escapeDeclMarkdownBrackets(txt)) + } + } + } + } + } + + headings, paras, listItems := wave3CommExtractDOMSnippets(rawHTML, 15) + // Filter out Wild Apricot's hidden "Wrong document context!" heading if present + if title == "" && len(headings) > 0 { + title = headings[0] + } + if len(eventLines) == 0 && len(memberLines) == 0 && len(paras) == 0 && len(listItems) == 0 { + return nil + } + + var bullets []string + bullets = append(bullets, "- **Platform**: Wild Apricot") + if siteName != "" { + bullets = append(bullets, "- **Association**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(eventLines) > 0 { + sections = append(sections, "## Events\n\n"+strings.Join(eventLines, "\n")) + } + if len(memberLines) > 0 { + sections = append(sections, "## Member Directory\n\n"+strings.Join(memberLines, "\n")) + } + if len(paras) > 0 { + sections = append(sections, "## Details\n\n"+strings.Join(paras, "\n\n")) + } + + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + Links: links, + Records: records, + } +} + +// ── #244 Association AMS Pack HTML Extractor (Novi AMS, MemberClicks, YourMembership) ───────────── + +func wave3CommExtractAssociationAMSHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 180_000) + isNovi := wave3CommContainsAny(lowerProbe, "noviams", "novi-file-uploads", "novi-core-assets", "novi-content-wrapper", "novicon-") + isMemberClicks := wave3CommContainsAny(lowerProbe, "personifycorp", "personify.com", "personifycloud", "personify_orig", "memberclicks", "/external/wcpages/", "wc-eventcalendar") + isYM := wave3CommContainsAny(lowerProbe, "site-ym", "yourmembership", "ym-event", "ym-directory") + if !isNovi && !isMemberClicks && !isYM { + return nil + } + + platform := "Novi AMS" + if isMemberClicks && !isNovi { + platform = "MemberClicks / Personify" + } else if isYM && !isNovi { + platform = "YourMembership" + } + + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + title = platform + " Association Portal" + } + desc := wave3CommExtractMeta(rawHTML, "description") + + var records []map[string]any + var links []string + var eventLines []string + + for _, cls := range []string{"event-list-container", "novi-content-wrapper", "wc-EventCalendarSmallBox", "g-events__content"} { + for _, blk := range wave3CommExtractBalancedDivsByClass(rawHTML, cls, 12) { + for _, ln := range wave3CommExtractAnchorLinks(blk, baseURL, []string{"event", "directory", "member", "calendar"}, 20) { + if len(records) >= wave3CommMaxRecords { + break + } + records = append(records, map[string]any{"title": ln.Text, "url": ln.URL}) + links = append(links, ln.URL) + eventLines = append(eventLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(ln.Text), ln.URL)) + } + } + } + + headings, paras, listItems := wave3CommExtractDOMSnippets(rawHTML, 15) + if len(eventLines) == 0 { + for _, ln := range wave3CommExtractAnchorLinks(rawHTML, baseURL, []string{"/events/", "/event/", "/directory/", "/external/wcpages/"}, 20) { + if len(records) >= wave3CommMaxRecords { + break + } + records = append(records, map[string]any{"title": ln.Text, "url": ln.URL}) + links = append(links, ln.URL) + eventLines = append(eventLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(ln.Text), ln.URL)) + } + } + if len(eventLines) == 0 && len(paras) == 0 && len(listItems) == 0 { + return nil + } + if title == "" && len(headings) > 0 { + title = headings[0] + } + + var bullets []string + bullets = append(bullets, "- **Platform**: "+platform) + if siteName != "" { + bullets = append(bullets, "- **Association**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(eventLines) > 0 { + sections = append(sections, "## Events & Directory\n\n"+strings.Join(eventLines, "\n")) + } + if len(paras) > 0 { + sections = append(sections, "## Overview\n\n"+strings.Join(paras, "\n\n")) + } else if len(eventLines) == 0 && len(listItems) > 0 { + var lines []string + for _, li := range listItems { + lines = append(lines, "- "+escapeDeclMarkdownBrackets(li)) + } + sections = append(sections, "## Items\n\n"+strings.Join(lines, "\n")) + } + + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + Links: links, + Records: records, + } +} + +// ── #245 RunSignup JSON & HTML Extractors ───────────────────────────────────────────────────────── + +func wave3CommFormatRunSignupJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok { + return nil, false + } + if m["error"] != nil { + return nil, false + } + + var races []map[string]any + if rawRaces, ok := m["races"].([]any); ok { + for _, item := range rawRaces { + if im, ok := item.(map[string]any); ok { + if rm, ok := im["race"].(map[string]any); ok { + races = append(races, rm) + } else if im["race_id"] != nil || im["name"] != nil { + races = append(races, im) + } + } + } + } else if rm, ok := m["race"].(map[string]any); ok { + races = append(races, rm) + } + if len(races) == 0 { + return nil, false + } + + var records []map[string]any + var sections []string + var links []string + + for _, r := range races { + name := wave3CommPlain(r["name"], 220) + if name == "" { + continue + } + raceID := wave3CommPlain(r["race_id"], 32) + raceURL := SanitizeSchemaHTTPSURL(r["url"], origURL) + nextDate := wave3CommNormalizeDate(wave3CommPlain(r["next_date"], 64)) + lastDate := wave3CommNormalizeDate(wave3CommPlain(r["last_date"], 64)) + regOpen := wave3CommPlain(r["is_registration_open"], 16) + descRaw := jsonScalarToString(r["description"]) + descMD := wave3CommFragToMD(descRaw, origURL) + if len(descMD) > 1500 { + descMD = descMD[:1500] + } + + locStr := "" + if addr, ok := r["address"].(map[string]any); ok { + city := wave3CommPlain(addr["city"], 80) + state := wave3CommPlain(addr["state"], 40) + zip := wave3CommPlain(addr["zipcode"], 20) + parts := make([]string, 0, 3) + if city != "" { + parts = append(parts, city) + } + if state != "" { + parts = append(parts, state) + } + if zip != "" { + parts = append(parts, zip) + } + locStr = strings.Join(parts, ", ") + } + + rec := map[string]any{"name": name} + if raceID != "" { + rec["raceId"] = raceID + } + if nextDate != "" { + rec["nextDate"] = nextDate + } + if lastDate != "" { + rec["lastDate"] = lastDate + } + if locStr != "" { + rec["location"] = locStr + } + if raceURL != "" { + rec["url"] = raceURL + links = append(links, raceURL) + } + if len(records) < wave3CommMaxRecords { + records = append(records, rec) + } + + var sb strings.Builder + if len(races) > 1 { + sb.WriteString("### " + escapeDeclMarkdownBrackets(name) + "\n\n") + } + if raceID != "" { + sb.WriteString("- **Race ID**: `" + raceID + "`\n") + } + if nextDate != "" { + sb.WriteString("- **Next Date**: " + nextDate + "\n") + } + if lastDate != "" { + sb.WriteString("- **Last Date**: " + lastDate + "\n") + } + if locStr != "" { + sb.WriteString("- **Location**: " + escapeDeclMarkdownBrackets(locStr) + "\n") + } + if regOpen != "" { + sb.WriteString("- **Registration Open**: " + regOpen + "\n") + } + if raceURL != "" { + sb.WriteString("- **Race URL**: " + raceURL + "\n") + } + if evArr, ok := r["events"].([]any); ok && len(evArr) > 0 { + var evRows []string + for _, evEl := range evArr { + em, ok := evEl.(map[string]any) + if !ok { + continue + } + evName := wave3CommPlain(em["name"], 140) + if evName == "" { + continue + } + evDist := wave3CommPlain(em["distance"], 60) + evStart := wave3CommPlain(em["start_time"], 64) + evRows = append(evRows, fmt.Sprintf("| %s | %s | %s |", + escapeDeclMarkdownBrackets(evName), + wave3CommFirstNonEmpty(evDist, "-"), + wave3CommFirstNonEmpty(evStart, "-"), + )) + if len(evRows) >= 15 { + break + } + } + if len(evRows) > 0 { + sb.WriteString("\n| Event | Distance | Start Time |\n|---|---|---|\n" + strings.Join(evRows, "\n") + "\n") + } + } + if descMD != "" { + sb.WriteString("\n" + descMD + "\n") + } + sections = append(sections, strings.TrimSpace(sb.String())) + } + + if len(records) == 0 { + return nil, false + } + title := wave3CommPlain(races[0]["name"], 220) + if len(races) > 1 { + title = fmt.Sprintf("RunSignup Races (%d)", len(races)) + } + bullets := []string{"- **Platform**: RunSignup"} + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: records, + }, true +} + +func wave3CommExtractRunSignupHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !hasJSONLDScriptToken(rawHTML) && !containsAnyFoldASCIIExtract(rawHTML, "runsignup", "race") { + return nil + } + if res := wave3CommExtractSportsEventJSONLD(rawHTML, baseURL, extractorID, "RunSignup"); res != nil { + return res + } + title, _ := wave3CommExtractBestHeadingAndSite(rawHTML) + desc := wave3CommExtractMeta(rawHTML, "description") + _, paras, _ := wave3CommExtractDOMSnippets(rawHTML, 10) + if title == "" || (desc == "" && len(paras) == 0) { + return nil + } + bullets := []string{"- **Platform**: RunSignup"} + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(paras) > 0 { + sections = append(sections, "## Race Info\n\n"+strings.Join(paras, "\n\n")) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + } +} + +// ── #246 BikeReg & USA Cycling JSON & HTML Extractors ───────────────────────────────────────────── + +func wave3CommFormatBikeRegJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok { + return nil, false + } + rawEvents, ok := m["MatchingEvents"].([]any) + if !ok || len(rawEvents) == 0 { + return nil, false + } + + var records []map[string]any + var sections []string + var links []string + + for _, el := range rawEvents { + ev, ok := el.(map[string]any) + if !ok { + continue + } + name := wave3CommPlain(ev["EventName"], 220) + if name == "" { + continue + } + evID := wave3CommPlain(ev["EventId"], 32) + evDate := wave3CommNormalizeDate(wave3CommPlain(ev["EventDate"], 64)) + evEndDate := wave3CommNormalizeDate(wave3CommPlain(ev["EventEndDate"], 64)) + city := wave3CommPlain(ev["EventCity"], 80) + state := wave3CommPlain(ev["EventState"], 40) + addr := wave3CommPlain(ev["EventAddress"], 140) + evURL := SanitizeSchemaHTTPSURL(ev["EventUrl"], origURL) + + locParts := make([]string, 0, 3) + if addr != "" { + locParts = append(locParts, addr) + } + if city != "" { + locParts = append(locParts, city) + } + if state != "" { + locParts = append(locParts, state) + } + locStr := strings.Join(locParts, ", ") + + rec := map[string]any{"eventName": name} + if evID != "" { + rec["eventId"] = evID + } + if evDate != "" { + rec["eventDate"] = evDate + } + if evEndDate != "" { + rec["eventEndDate"] = evEndDate + } + if locStr != "" { + rec["location"] = locStr + } + if evURL != "" { + rec["url"] = evURL + links = append(links, evURL) + } + + var catRows []string + if cats, ok := ev["Categories"].([]any); ok { + for _, ce := range cats { + cm, ok := ce.(map[string]any) + if !ok { + continue + } + cName := wave3CommPlain(cm["CategoryName"], 160) + if cName == "" { + continue + } + dist := wave3CommPlain(cm["Distance"], 60) + fee := wave3CommFormatPrice(cm["EntryFee"]) + startTime := wave3CommPlain(cm["StartTime"], 32) + catDate := "" + if cdArr, ok := cm["CategoryDates"].([]any); ok && len(cdArr) > 0 { + catDate = wave3CommNormalizeDate(wave3CommPlain(cdArr[0], 64)) + } + catRows = append(catRows, fmt.Sprintf("| %s | %s | %s | %s | %s |", + escapeDeclMarkdownBrackets(cName), + wave3CommFirstNonEmpty(catDate, "-"), + wave3CommFirstNonEmpty(startTime, "-"), + wave3CommFirstNonEmpty(dist, "-"), + wave3CommFirstNonEmpty(fee, "-"), + )) + if len(catRows) >= 15 { + break + } + } + } + if len(records) < wave3CommMaxRecords { + records = append(records, rec) + } + + var sb strings.Builder + sb.WriteString("### " + escapeDeclMarkdownBrackets(name) + "\n\n") + if evID != "" { + sb.WriteString("- **Event ID**: `" + evID + "`\n") + } + if evDate != "" { + sb.WriteString("- **Event Date**: " + evDate + "\n") + } + if locStr != "" { + sb.WriteString("- **Location**: " + escapeDeclMarkdownBrackets(locStr) + "\n") + } + if evURL != "" { + sb.WriteString("- **URL**: " + evURL + "\n") + } + if len(catRows) > 0 { + sb.WriteString("\n| Category | Date | Start | Distance | Entry Fee |\n|---|---|---|---|---|\n" + strings.Join(catRows, "\n") + "\n") + } + sections = append(sections, strings.TrimSpace(sb.String())) + if len(sections) >= wave3CommMaxRecords { + break + } + } + + if len(records) == 0 { + return nil, false + } + title := wave3CommPlain(records[0]["eventName"], 220) + if len(records) > 1 { + title = fmt.Sprintf("BikeReg Events (%d)", len(records)) + } + bullets := []string{"- **Platform**: BikeReg"} + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Links: links, + Records: records, + }, true +} + +func wave3CommExtractBikeRegUSACyclingHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + // 1. Sport80 / USA Cycling Inertia data-page JSON + if jb, ok := extractInertiaDataPageBytesGo(rawHTML); ok { + if parsed, okDec := decodeJSONWithNumbers(jb); okDec { + if root, okMap := parsed.(map[string]any); okMap { + component := wave3CommPlain(root["component"], 120) + props, _ := root["props"].(map[string]any) + if props != nil { + if res := wave3CommExtractSport80Inertia(component, props, baseURL, extractorID); res != nil { + return res + } + } + } + } + } + + // 2. Unchallenged BikeReg / USA Cycling SportsEvent JSON-LD or HTML + if hasJSONLDScriptToken(rawHTML) { + if res := wave3CommExtractSportsEventJSONLD(rawHTML, baseURL, extractorID, "BikeReg / USA Cycling"); res != nil { + return res + } + } + lowerProbe := wave3CommLowerProbe(rawHTML, 128*1024) + if !wave3CommContainsAny(lowerProbe, "bikereg", "usacycling", "sport80") { + return nil + } + title, _ := wave3CommExtractBestHeadingAndSite(rawHTML) + desc := wave3CommExtractMeta(rawHTML, "description") + _, paras, listItems := wave3CommExtractDOMSnippets(rawHTML, 12) + if title == "" || (desc == "" && len(paras) == 0 && len(listItems) == 0) { + return nil + } + bullets := []string{"- **Platform**: BikeReg / USA Cycling"} + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(paras) > 0 { + sections = append(sections, "## Event Details\n\n"+strings.Join(paras, "\n\n")) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + } +} + +func wave3CommExtractSport80Inertia(component string, props map[string]any, baseURL, extractorID string) *DeclarativePostFetchResult { + orgName := "USA Cycling" + if shared, ok := props["_shared"].(map[string]any); ok { + if sd, ok := shared["subdomain_data"].(map[string]any); ok { + if n := wave3CommPlain(sd["name"], 120); n != "" { + orgName = n + } + } + } + + var records []map[string]any + var links []string + var sections []string + + // FindEventsPage: props.events[] + if evArr, ok := props["events"].([]any); ok && len(evArr) > 0 { + var rows []string + for _, el := range evArr { + em, ok := el.(map[string]any) + if !ok { + continue + } + evName := wave3CommFirstNonEmpty(wave3CommPlain(em["name"], 180), wave3CommPlain(em["title"], 180)) + if evName == "" { + continue + } + loc := wave3CommPlain(em["location"], 160) + evURL := SanitizeSchemaHTTPSURL(wave3CommFirstNonEmpty(wave3CommPlain(em["full_details_url"], 300), wave3CommPlain(em["main_action_url"], 300)), baseURL) + dateStr := "" + if dm, ok := em["date"].(map[string]any); ok { + dateStr = strings.TrimSpace(wave3CommPlain(dm["month"], 16) + " " + wave3CommPlain(dm["day"], 8) + " " + wave3CommPlain(dm["year"], 8)) + } + if dateStr == "" { + dateStr = wave3CommPlain(em["entry_open_date"], 40) + } + rec := map[string]any{"name": evName} + if dateStr != "" { + rec["date"] = dateStr + } + if loc != "" { + rec["location"] = loc + } + if evURL != "" { + rec["url"] = evURL + links = append(links, evURL) + } + if len(records) < wave3CommMaxRecords { + records = append(records, rec) + } + rows = append(rows, fmt.Sprintf("| %s | %s | %s |", + escapeDeclMarkdownBrackets(evName), + wave3CommFirstNonEmpty(dateStr, "-"), + escapeDeclMarkdownBrackets(wave3CommFirstNonEmpty(loc, "-")), + )) + if len(rows) >= wave3CommMaxRecords { + break + } + } + if len(rows) > 0 { + sections = append(sections, "## Events\n\n| Event | Date | Location |\n|---|---|---|\n"+strings.Join(rows, "\n")) + } + } + + // ResultsPage: props.results_page + if rp, ok := props["results_page"].(map[string]any); ok { + rHead := wave3CommPlain(rp["results_heading"], 180) + rOverview := wave3CommFragToMD(stdhtml.UnescapeString(jsonScalarToString(rp["results_and_rankings_overview_text"])), baseURL) + if rHead != "" || rOverview != "" { + var sb strings.Builder + if rHead != "" { + sb.WriteString("## " + escapeDeclMarkdownBrackets(rHead) + "\n\n") + } + if rOverview != "" { + sb.WriteString(rOverview) + } + sections = append(sections, strings.TrimSpace(sb.String())) + } + if resList, ok := rp["results"].([]any); ok && len(resList) > 0 { + var rRows []string + for _, re := range resList { + rm, ok := re.(map[string]any) + if !ok { + continue + } + rName := wave3CommFirstNonEmpty(wave3CommPlain(rm["name"], 160), wave3CommPlain(rm["event_name"], 160), wave3CommPlain(rm["title"], 160)) + rDate := wave3CommNormalizeDate(wave3CommPlain(rm["date"], 64)) + if rName != "" { + records = append(records, map[string]any{"name": rName, "date": rDate}) + rRows = append(rRows, fmt.Sprintf("- %s (%s)", escapeDeclMarkdownBrackets(rName), wave3CommFirstNonEmpty(rDate, "-"))) + } + } + if len(rRows) > 0 { + sections = append(sections, "## Results\n\n"+strings.Join(rRows, "\n")) + } + } + } + + if len(sections) == 0 { + return nil + } + title := wave3CommFirstNonEmpty(wave3CommPlain(props["title"], 160), orgName+" ("+component+")") + if title == "Events" || title == "Results" { + title = orgName + " " + title + } + bullets := []string{ + "- **Organization**: " + escapeDeclMarkdownBrackets(orgName), + "- **Platform**: Sport80 Inertia", + } + if component != "" { + bullets = append(bullets, "- **View**: `"+component+"`") + } + if rc := wave3CommPlain(props["result_count"], 24); rc != "" { + bullets = append(bullets, "- **Result Count**: "+rc) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: md, + Links: links, + Records: records, + } +} + +// ── #247 Race Results Pack HTML Extractor (Athlinks, Race Roster, ACTIVE) ───────────────────────── + +func wave3CommExtractRaceResultsPackHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 256*1024) + // Strictly reject empty/unhydrated CSR shells even if GTM/favicon is present + if wave3CommContainsAny(lowerProbe, ``, `
`) { + hasSubstantive := hasJSONLDScriptToken(rawHTML) || + wave3CommContainsAny(lowerProbe, "athlete-result", "race-results", "= 8 && len(txt) <= 260 && len(records) < wave3CommMaxRecords { + records = append(records, map[string]any{"row": txt}) + rowsMD = append(rowsMD, "- "+escapeDeclMarkdownBrackets(txt)) + } + } + } + } + for _, cls := range []string{"athlete-result", "race-results", "event-details"} { + for _, blk := range wave3CommExtractBalancedDivsByClass(rawHTML, cls, 15) { + txt := wave3CommCleanText(blk) + if len(txt) >= 12 && len(txt) <= 300 && len(records) < wave3CommMaxRecords { + records = append(records, map[string]any{"entry": txt}) + rowsMD = append(rowsMD, "- "+escapeDeclMarkdownBrackets(txt)) + } + } + } + if len(rowsMD) == 0 { + return nil + } + + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + title = "Race Results" + } + desc := wave3CommExtractMeta(rawHTML, "description") + bullets := []string{"- **Platform**: Endurance Race Results"} + if siteName != "" { + bullets = append(bullets, "- **Site**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + sections = append(sections, "## Results & Event Details\n\n"+strings.Join(rowsMD, "\n")) + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + Records: records, + } +} + +func wave3CommExtractSportsEventJSONLD(rawHTML, baseURL, extractorID, platform string) *DeclarativePostFetchResult { + if !hasJSONLDScriptToken(rawHTML) { + return nil + } + for _, ent := range flattenJsonLdEntitiesFullDocGo(rawHTML) { + t := strings.ToLower(wave3CommPlain(ent["@type"], 80)) + if !strings.Contains(t, "event") { + continue + } + name := wave3CommPlain(ent["name"], 220) + if name == "" { + continue + } + start := wave3CommNormalizeDate(wave3CommPlain(ent["startDate"], 64)) + end := wave3CommNormalizeDate(wave3CommPlain(ent["endDate"], 64)) + desc := wave3CommPlain(ent["description"], 1200) + evURL := SanitizeSchemaHTTPSURL(ent["url"], baseURL) + + locName := "" + if loc, ok := ent["location"].(map[string]any); ok { + ln := wave3CommPlain(loc["name"], 120) + addrParts := []string{} + if addr, ok := loc["address"].(map[string]any); ok { + for _, k := range []string{"streetAddress", "addressLocality", "addressRegion", "postalCode"} { + if v := wave3CommPlain(addr[k], 80); v != "" { + addrParts = append(addrParts, v) + } + } + } + if ln != "" && len(addrParts) > 0 { + locName = ln + " (" + strings.Join(addrParts, ", ") + ")" + } else { + locName = wave3CommFirstNonEmpty(ln, strings.Join(addrParts, ", ")) + } + } + + bullets := []string{"- **Platform**: " + platform} + if start != "" { + bullets = append(bullets, "- **Start Date**: "+start) + } + if end != "" { + bullets = append(bullets, "- **End Date**: "+end) + } + if locName != "" { + bullets = append(bullets, "- **Location**: "+escapeDeclMarkdownBrackets(locName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + + rec := map[string]any{"name": name} + if start != "" { + rec["startDate"] = start + } + if locName != "" { + rec["location"] = locName + } + var links []string + if evURL != "" { + rec["url"] = evURL + links = append(links, evURL) + } + + var sections []string + if desc != "" { + sections = append(sections, desc) + } + md := wave3CommRenderBulletsAndSections(name, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: name, + Description: desc, + Markdown: md, + Links: links, + Records: []map[string]any{rec}, + } + } + return nil +} + +// ── #248 Lemmy JSON & HTML Extractors ───────────────────────────────────────────────────────────── + +func wave3CommFormatLemmyJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok { + return nil, false + } + if m["error"] != nil { + return nil, false + } + + // 1. Single post_view + if pv, ok := m["post_view"].(map[string]any); ok { + post, _ := pv["post"].(map[string]any) + if post == nil { + return nil, false + } + title := wave3CommPlain(post["name"], 260) + if title == "" { + return nil, false + } + body := strings.TrimSpace(jsonScalarToString(post["body"])) + postURL := SanitizeSchemaHTTPSURL(post["url"], origURL) + published := wave3CommNormalizeDate(wave3CommPlain(post["published"], 64)) + author := "" + if cr, ok := pv["creator"].(map[string]any); ok { + author = wave3CommFirstNonEmpty(wave3CommPlain(cr["display_name"], 80), wave3CommPlain(cr["name"], 80)) + } + commName := "" + if cm, ok := pv["community"].(map[string]any); ok { + commName = wave3CommPlain(cm["name"], 80) + } + bullets := []string{"- **Platform**: Lemmy"} + if commName != "" { + bullets = append(bullets, "- **Community**: `!"+commName+"`") + } + if author != "" { + bullets = append(bullets, "- **Author**: "+escapeDeclMarkdownBrackets(author)) + } + if published != "" { + bullets = append(bullets, "- **Published**: "+published) + } + if counts, ok := pv["counts"].(map[string]any); ok { + score := wave3CommPlain(counts["score"], 20) + cmts := wave3CommPlain(counts["comments"], 20) + if score != "" || cmts != "" { + bullets = append(bullets, fmt.Sprintf("- **Engagement**: score %s, %s comments", wave3CommFirstNonEmpty(score, "0"), wave3CommFirstNonEmpty(cmts, "0"))) + } + } + var links []string + if postURL != "" { + bullets = append(bullets, "- **External Link**: "+postURL) + links = append(links, postURL) + } + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + var sections []string + if body != "" { + sections = append(sections, body) + } + rec := map[string]any{"title": title} + if commName != "" { + rec["community"] = commName + } + if author != "" { + rec["author"] = author + } + if published != "" { + rec["published"] = published + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: title, + Author: author, + PublishedTime: published, + Markdown: md, + Links: links, + Records: []map[string]any{rec}, + }, true + } + + // 2. community_view + if cv, ok := m["community_view"].(map[string]any); ok { + comm, _ := cv["community"].(map[string]any) + if comm == nil { + return nil, false + } + cName := wave3CommPlain(comm["name"], 100) + cTitle := wave3CommFirstNonEmpty(wave3CommPlain(comm["title"], 200), cName) + if cTitle == "" { + return nil, false + } + desc := strings.TrimSpace(jsonScalarToString(comm["description"])) + bullets := []string{"- **Platform**: Lemmy Community"} + if cName != "" { + bullets = append(bullets, "- **Handle**: `!"+cName+"`") + } + if counts, ok := cv["counts"].(map[string]any); ok { + subs := wave3CommPlain(counts["subscribers"], 20) + posts := wave3CommPlain(counts["posts"], 20) + if subs != "" { + bullets = append(bullets, "- **Subscribers**: "+subs) + } + if posts != "" { + bullets = append(bullets, "- **Posts**: "+posts) + } + } + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + md := wave3CommRenderBulletsAndSections(cTitle, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: cTitle, + Markdown: md, + Records: []map[string]any{{"name": cName, "title": cTitle}}, + }, true + } + + // 3. comments[] list + if rawCmts, ok := m["comments"].([]any); ok && len(rawCmts) > 0 { + var records []map[string]any + var cLines []string + postTitle := "" + for _, el := range rawCmts { + cmView, ok := el.(map[string]any) + if !ok { + continue + } + cObj, _ := cmView["comment"].(map[string]any) + if cObj == nil { + continue + } + if postTitle == "" { + if pObj, ok := cmView["post"].(map[string]any); ok { + postTitle = wave3CommPlain(pObj["name"], 200) + } + } + content := strings.TrimSpace(jsonScalarToString(cObj["content"])) + if content == "" { + continue + } + author := "" + if cr, ok := cmView["creator"].(map[string]any); ok { + author = wave3CommPlain(cr["name"], 80) + } + pub := wave3CommNormalizeDate(wave3CommPlain(cObj["published"], 64)) + rec := map[string]any{"author": author, "content": content} + if pub != "" { + rec["published"] = pub + } + if len(records) < wave3CommMaxRecords { + records = append(records, rec) + } + cLines = append(cLines, fmt.Sprintf("### %s (%s)\n\n%s", + wave3CommFirstNonEmpty(escapeDeclMarkdownBrackets(author), "user"), + wave3CommFirstNonEmpty(pub, "-"), + content, + )) + if len(cLines) >= wave3CommMaxRecords { + break + } + } + if len(records) == 0 { + return nil, false + } + title := wave3CommFirstNonEmpty(postTitle, "Lemmy Comments") + bullets := []string{"- **Platform**: Lemmy Comments"} + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, cLines) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Records: records, + }, true + } + + return nil, false +} + +func wave3CommExtractLemmyHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 180_000) + hasLemmyApp := strings.Contains(lowerProbe, "isodata") || + (strings.Contains(lowerProbe, "lemmy") && wave3CommContainsAny(lowerProbe, "/pictrs/", "lemmy-ui", "/api/v3/", "join-lemmy", "community_view", "post_view")) + if !hasLemmyApp { + return nil + } + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + title = "Lemmy Discussion" + } + desc := wave3CommExtractMeta(rawHTML, "description") + _, paras, listItems := wave3CommExtractDOMSnippets(rawHTML, 15) + if desc == "" && len(paras) == 0 && len(listItems) == 0 { + return nil + } + bullets := []string{"- **Platform**: Lemmy"} + if siteName != "" { + bullets = append(bullets, "- **Instance**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(paras) > 0 { + sections = append(sections, "## Content\n\n"+strings.Join(paras, "\n\n")) + } else if len(listItems) > 0 { + var lines []string + for _, li := range listItems { + lines = append(lines, "- "+escapeDeclMarkdownBrackets(li)) + } + sections = append(sections, "## Discussion\n\n"+strings.Join(lines, "\n")) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + } +} + +// ── #249 PeerTube JSON & HTML Extractors ────────────────────────────────────────────────────────── + +func wave3CommFormatPeerTubeJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok { + return nil, false + } + if m["error"] != nil { + return nil, false + } + + // 1. /api/v1/videos/{id}/captions -> { total, data: [...] } + if dataArr, hasData := m["data"].([]any); hasData { + if len(dataArr) == 0 { + return nil, false + } + var records []map[string]any + var rows []string + for _, el := range dataArr { + cm, ok := el.(map[string]any) + if !ok { + continue + } + langLabel := "" + if lm, ok := cm["language"].(map[string]any); ok { + langLabel = wave3CommFirstNonEmpty(wave3CommPlain(lm["label"], 60), wave3CommPlain(lm["id"], 24)) + } + capPath := wave3CommPlain(cm["captionPath"], 300) + if langLabel == "" && capPath == "" { + continue + } + rec := map[string]any{"language": langLabel, "captionPath": capPath} + records = append(records, rec) + rows = append(rows, fmt.Sprintf("- **%s**: `%s`", wave3CommFirstNonEmpty(langLabel, "Unknown"), capPath)) + } + if len(records) == 0 { + return nil, false + } + title := "PeerTube Video Captions" + bullets := []string{"- **Platform**: PeerTube"} + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, []string{"## Captions\n\n" + strings.Join(rows, "\n")}) + return &DeclarativeFormattedDoc{ + Title: title, + Markdown: md, + Records: records, + }, true + } + + // 2. Video detail (/api/v1/videos/{id}) + name := wave3CommPlain(m["name"], 240) + if name == "" { + return nil, false + } + desc := strings.TrimSpace(wave3CommFirstNonEmpty(jsonScalarToString(m["description"]), jsonScalarToString(m["truncatedDescription"]))) + if len(desc) > 2000 { + desc = desc[:2000] + } + shortUUID := wave3CommPlain(m["shortUUID"], 40) + uuid := wave3CommPlain(m["uuid"], 64) + vidURL := SanitizeSchemaHTTPSURL(m["url"], origURL) + published := wave3CommNormalizeDate(wave3CommFirstNonEmpty(wave3CommPlain(m["originallyPublishedAt"], 64), wave3CommPlain(m["publishedAt"], 64))) + dur := wave3CommPlain(m["duration"], 24) + views := wave3CommPlain(m["views"], 24) + likes := wave3CommPlain(m["likes"], 24) + + channelName := "" + if ch, ok := m["channel"].(map[string]any); ok { + channelName = wave3CommFirstNonEmpty(wave3CommPlain(ch["displayName"], 100), wave3CommPlain(ch["name"], 100)) + } + author := channelName + if author == "" { + if acc, ok := m["account"].(map[string]any); ok { + author = wave3CommFirstNonEmpty(wave3CommPlain(acc["displayName"], 100), wave3CommPlain(acc["name"], 100)) + } + } + + bullets := []string{"- **Platform**: PeerTube"} + if channelName != "" { + bullets = append(bullets, "- **Channel**: "+escapeDeclMarkdownBrackets(channelName)) + } + if published != "" { + bullets = append(bullets, "- **Published**: "+published) + } + if dur != "" { + bullets = append(bullets, "- **Duration (s)**: "+dur) + } + if views != "" { + bullets = append(bullets, "- **Views**: "+views) + } + if likes != "" { + bullets = append(bullets, "- **Likes**: "+likes) + } + if cat, ok := m["category"].(map[string]any); ok { + if lbl := wave3CommPlain(cat["label"], 60); lbl != "" && lbl != "Unknown" { + bullets = append(bullets, "- **Category**: "+escapeDeclMarkdownBrackets(lbl)) + } + } + if lic, ok := m["licence"].(map[string]any); ok { + if lbl := wave3CommPlain(lic["label"], 80); lbl != "" && lbl != "Unknown" { + bullets = append(bullets, "- **License**: "+escapeDeclMarkdownBrackets(lbl)) + } + } + var links []string + if vidURL != "" { + bullets = append(bullets, "- **Watch URL**: "+vidURL) + links = append(links, vidURL) + } + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + + rec := map[string]any{"name": name} + if shortUUID != "" { + rec["shortUUID"] = shortUUID + } + if uuid != "" { + rec["uuid"] = uuid + } + if channelName != "" { + rec["channel"] = channelName + } + if published != "" { + rec["publishedAt"] = published + } + + var sections []string + if desc != "" { + sections = append(sections, desc) + } + md := wave3CommRenderBulletsAndSections(name, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: name, + Author: author, + PublishedTime: published, + Markdown: md, + Links: links, + Records: []map[string]any{rec}, + }, true +} + +func wave3CommExtractPeerTubeHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 180_000) + if !strings.Contains(lowerProbe, "peertube") || + !wave3CommContainsAny(lowerProbe, "videoobject", "/videos/embed/", "/static/streaming-playlists/", "peertube-", "joinpeertube") { + return nil + } + + if hasJSONLDScriptToken(rawHTML) { + for _, ent := range flattenJsonLdEntitiesFullDocGo(rawHTML) { + t := strings.ToLower(wave3CommPlain(ent["@type"], 80)) + if !strings.Contains(t, "videoobject") { + continue + } + name := wave3CommPlain(ent["name"], 240) + if name == "" { + continue + } + desc := wave3CommPlain(ent["description"], 1200) + dur := wave3CommPlain(ent["duration"], 40) + pub := wave3CommNormalizeDate(wave3CommPlain(ent["uploadDate"], 64)) + author := extractAuthorNameSchemaGo(ent["author"]) + embedURL := SanitizeSchemaHTTPSURL(ent["embedUrl"], baseURL) + + bullets := []string{"- **Platform**: PeerTube"} + if author != "" { + bullets = append(bullets, "- **Author / Channel**: "+escapeDeclMarkdownBrackets(author)) + } + if pub != "" { + bullets = append(bullets, "- **Upload Date**: "+pub) + } + if dur != "" { + bullets = append(bullets, "- **Duration**: "+dur) + } + var links []string + if embedURL != "" { + bullets = append(bullets, "- **Embed URL**: "+embedURL) + links = append(links, embedURL) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + md := wave3CommRenderBulletsAndSections(name, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: name, + Description: desc, + Author: author, + PublishedTime: pub, + Markdown: md, + Links: links, + Records: []map[string]any{{"name": name, "duration": dur, "uploadDate": pub}}, + } + } + } + + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + return nil + } + desc := wave3CommExtractMeta(rawHTML, "description") + if desc == "" { + desc = wave3CommExtractMeta(rawHTML, "og:description") + } + if desc == "" { + return nil + } + bullets := []string{"- **Platform**: PeerTube"} + if siteName != "" { + bullets = append(bullets, "- **Instance**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + md := wave3CommRenderBulletsAndSections(title, bullets, []string{desc}) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + } +} + +// ── #250 Fediverse Pack JSON & HTML Extractors (Misskey, Kbin / Mbin) ──────────────────────────── + +func wave3CommFormatFediversePackJSON(parsed any, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + m, ok := parsed.(map[string]any) + if !ok { + return nil, false + } + if m["error"] != nil { + return nil, false + } + + // 1. ActivityPub JSON (Kbin / Mbin / Federated Page/Note/Article) + if m["@context"] != nil && m["type"] != nil { + apType := wave3CommPlain(m["type"], 60) + apTitle := wave3CommFirstNonEmpty(wave3CommPlain(m["name"], 240), wave3CommPlain(m["summary"], 240)) + apContent := wave3CommFragToMD(jsonScalarToString(m["content"]), origURL) + pub := wave3CommNormalizeDate(wave3CommPlain(m["published"], 64)) + attr := wave3CommPlain(m["attributedTo"], 240) + audience := wave3CommPlain(m["audience"], 240) + if apTitle == "" && apContent == "" { + return nil, false + } + if apTitle == "" { + apTitle = "ActivityPub " + apType + } + bullets := []string{"- **Platform**: Fediverse ActivityPub (" + apType + ")"} + if attr != "" { + bullets = append(bullets, "- **Attributed To**: "+attr) + } + if audience != "" { + bullets = append(bullets, "- **Audience**: "+audience) + } + if pub != "" { + bullets = append(bullets, "- **Published**: "+pub) + } + var links []string + if attArr, ok := m["attachment"].([]any); ok { + for _, a := range attArr { + if am, ok := a.(map[string]any); ok { + if href := SanitizeSchemaHTTPSURL(am["href"], origURL); href != "" { + links = append(links, href) + bullets = append(bullets, "- **Attachment**: "+href) + } + } + } + } + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + var sections []string + if apContent != "" { + sections = append(sections, apContent) + } + md := wave3CommRenderBulletsAndSections(apTitle, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: apTitle, + Author: attr, + PublishedTime: pub, + Markdown: md, + Links: links, + Records: []map[string]any{{"type": apType, "title": apTitle, "published": pub}}, + }, true + } + + // 2. Misskey Note JSON (/api/notes/show) + noteID := wave3CommPlain(m["id"], 40) + text := strings.TrimSpace(jsonScalarToString(m["text"])) + cw := wave3CommPlain(m["cw"], 200) + createdAt := wave3CommNormalizeDate(wave3CommPlain(m["createdAt"], 64)) + userMap, _ := m["user"].(map[string]any) + if noteID == "" || userMap == nil { + return nil, false + } + username := wave3CommPlain(userMap["username"], 80) + displayName := wave3CommFirstNonEmpty(wave3CommPlain(userMap["name"], 100), username) + host := wave3CommPlain(userMap["host"], 120) + if host == "" && origURL != "" { + if u, err := url.Parse(origURL); err == nil { + host = u.Hostname() + } + } + if host == "" { + host = params["host"] + } + handle := "@" + username + if host != "" { + handle += "@" + host + } + title := fmt.Sprintf("%s (%s)", displayName, handle) + + bullets := []string{ + "- **Platform**: Misskey", + "- **Author**: " + escapeDeclMarkdownBrackets(handle), + } + if createdAt != "" { + bullets = append(bullets, "- **Created**: "+createdAt) + } + if vis := wave3CommPlain(m["visibility"], 32); vis != "" { + bullets = append(bullets, "- **Visibility**: "+vis) + } + if cw != "" { + bullets = append(bullets, "- **Content Warning**: "+escapeDeclMarkdownBrackets(cw)) + } + if rc := wave3CommPlain(m["reactionCount"], 20); rc != "" { + bullets = append(bullets, "- **Reactions**: "+rc) + } + if origURL != "" { + bullets = append(bullets, "- **Source**: "+origURL) + } + + var sections []string + if text != "" { + sections = append(sections, text) + } else if renote, ok := m["renote"].(map[string]any); ok { + if rText := strings.TrimSpace(jsonScalarToString(renote["text"])); rText != "" { + sections = append(sections, "## Renote\n\n"+rText) + } + } + if len(sections) == 0 && cw == "" { + return nil, false + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativeFormattedDoc{ + Title: title, + Author: handle, + PublishedTime: createdAt, + Markdown: md, + Records: []map[string]any{{"noteId": noteID, "author": handle, "createdAt": createdAt}}, + }, true +} + +func wave3CommExtractFediversePackHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lowerProbe := wave3CommLowerProbe(rawHTML, 180_000) + // Reject Misskey empty CSR shell + if strings.Contains(lowerProbe, `content="misskey"`) && !strings.Contains(lowerProbe, "entry--single") { + return nil + } + if !wave3CommContainsAny(lowerProbe, + "page-entry-single", "entry--single", "entry__meta", "magazine-inline", "comments-tree", "entry-comment", + ) { + return nil + } + + title, siteName := wave3CommExtractBestHeadingAndSite(rawHTML) + if title == "" { + title = "Mbin / Kbin Thread" + } + desc := wave3CommExtractMeta(rawHTML, "description") + + var records []map[string]any + var comments []string + for _, blk := range wave3CommExtractBalancedDivsByClass(rawHTML, "entry-comment", 20) { + txt := wave3CommCleanText(blk) + if len(txt) >= 8 && len(txt) <= 600 && len(records) < wave3CommMaxRecords { + records = append(records, map[string]any{"kind": "comment", "text": txt}) + comments = append(comments, "- "+escapeDeclMarkdownBrackets(txt)) + } + } + _, paras, _ := wave3CommExtractDOMSnippets(rawHTML, 12) + if len(paras) == 0 && len(comments) == 0 && desc == "" { + return nil + } + + bullets := []string{"- **Platform**: Mbin / Kbin"} + if siteName != "" { + bullets = append(bullets, "- **Instance**: "+escapeDeclMarkdownBrackets(siteName)) + } + if baseURL != "" { + bullets = append(bullets, "- **Source**: "+baseURL) + } + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(paras) > 0 { + sections = append(sections, "## Entry\n\n"+strings.Join(paras, "\n\n")) + } + if len(comments) > 0 { + sections = append(sections, "## Comments\n\n"+strings.Join(comments, "\n")) + } + md := wave3CommRenderBulletsAndSections(title, bullets, sections) + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + Records: records, + } +} diff --git a/internal/extract/wave3_community_test.go b/internal/extract/wave3_community_test.go new file mode 100644 index 0000000..6eeffb6 --- /dev/null +++ b/internal/extract/wave3_community_test.go @@ -0,0 +1,276 @@ +package extract + +import ( + "encoding/json" + "strings" + "testing" + "time" +) + +func TestWave3CommunityHTMLModesPositiveAndNegative(t *testing.T) { + // 1. #242 chambermaster-growthzone (via Round2RunHTML chambermaster_html) + cmHTML := `Business Directory Search | Brownstown Chamber

Business Directory Search

Main Street Bakery

Artisan sourdough and pastries in downtown Brownstown.

` + cmRes := Round2RunHTML("chambermaster_html", cmHTML, "https://www.brownstownchamber.org/list/", "") + if cmRes == nil || cmRes.ExtractorID != "chambermaster-growthzone" { + t.Fatalf("chambermaster positive failed: %+v", cmRes) + } + if !strings.Contains(cmRes.Markdown, "Main Street Bakery") || !strings.Contains(cmRes.Markdown, "Monthly Chamber Networking Mixer") { + t.Fatalf("chambermaster missing expected items:\n%s", cmRes.Markdown) + } + cmEmpty := `Directory
` + if got := Round2RunHTML("chambermaster_html", cmEmpty, "https://www.brownstownchamber.org/list/", ""); got != nil { + t.Fatalf("chambermaster empty mn-content must return nil, got %+v", got) + } + if got := Round2RunHTML("chambermaster_html", cmHTML, "https://example.chambermaster.com/login", ""); got != nil { + t.Fatalf("chambermaster /login must return nil") + } + + // 2. #243 wild-apricot (skips "Wrong document context!" first h1, rejects /sys/login & WaGadgetLoginButton-only shell) + waHTML := `North Dakota Society of Health-System Pharmacists - Dakota Night

Wrong document context!

Dakota Night ASHP Mid-Year Clinical Meeting

Annual clinical networking reception for North Dakota pharmacists and pharmacy residents.

Event Details
` + waRes := Wave3CommunityRunHTML("wild_apricot_html", waHTML, "https://www.ndshp.org/event-6925405", "") + if waRes == nil || waRes.ExtractorID != "wild-apricot" { + t.Fatalf("wild-apricot positive failed: %+v", waRes) + } + if strings.Contains(waRes.Title, "Wrong document context") || !strings.Contains(waRes.Title, "Dakota Night ASHP Mid-Year Clinical Meeting") { + t.Fatalf("wild-apricot must skip Wrong document context h1, got title=%q", waRes.Title) + } + waGated := `Members Only

Members only content. Log in to continue.

` + if got := Wave3CommunityRunHTML("wild_apricot_html", waGated, "https://members.mbbi.org/private", ""); got != nil { + t.Fatalf("wild-apricot WaGadgetLoginButton-only shell must return nil, got %+v", got) + } + if got := Wave3CommunityRunHTML("wild_apricot_html", waHTML, "https://www.ndshp.org/sys/login", ""); got != nil { + t.Fatalf("wild-apricot /sys/login must return nil") + } + + // 3. #244 association-ams-pack (Novi AMS + MemberClicks/Personify) + noviHTML := `Events - Austin Apartment Association

Events

2026 Annual Trade Show & Expo

Connect with multifamily property managers and suppliers across Central Texas.

` + noviRes := Wave3CommunityRunHTML("association_ams_html", noviHTML, "https://www.austinaptassoc.com/events", "") + if noviRes == nil || noviRes.ExtractorID != "association-ams-pack" || !strings.Contains(noviRes.Markdown, "Novi AMS") || !strings.Contains(noviRes.Markdown, "2026 Annual Trade Show") { + t.Fatalf("novi AMS positive failed: %+v", noviRes) + } + mcHTML := `Events | Arlington Chamber of Commerce
Chamber Breakfast Roundtable

Monthly civic and business leadership briefing at Arlington Chamber headquarters.

` + mcRes := Wave3CommunityRunHTML("association_ams_html", mcHTML, "https://web.arlingtonchamber.org/events", "") + if mcRes == nil || mcRes.ExtractorID != "association-ams-pack" || !strings.Contains(mcRes.Markdown, "MemberClicks / Personify") || !strings.Contains(mcRes.Markdown, "Chamber Breakfast Roundtable") { + t.Fatalf("memberclicks positive failed: %+v", mcRes) + } + + // 4. #245 runsignup HTML SportsEvent JSON-LD + rsHTML := `Bacon & Bubbles 5K

Bacon & Bubbles 5K

` + rsRes := Wave3CommunityRunHTML("runsignup_html", rsHTML, "https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile", "") + if rsRes == nil || rsRes.ExtractorID != "runsignup" || !strings.Contains(rsRes.Markdown, "2027-06-12") || !strings.Contains(rsRes.Markdown, "Port Huron, MI, 48060") { + t.Fatalf("runsignup HTML positive failed: %+v", rsRes) + } + + // 5. #246 bikereg-usacycling Sport80 Inertia FindEventsPage & ResultsPage + CF rejection + s80EventsHTML := `Events
` + s80EvRes := Wave3CommunityRunHTML("bikereg_usacycling_html", s80EventsHTML, "https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today", "") + if s80EvRes == nil || s80EvRes.ExtractorID != "bikereg-usacycling" || !strings.Contains(s80EvRes.Markdown, "Sunshine State Criterium Series") || !strings.Contains(s80EvRes.Markdown, "USA Cycling") { + t.Fatalf("sport80 FindEventsPage failed: %+v", s80EvRes) + } + s80ResultsHTML := `Results
` + s80ResRes := Wave3CommunityRunHTML("bikereg_usacycling_html", s80ResultsHTML, "https://usacycling.sport80.com/pub/results", "") + if s80ResRes == nil || s80ResRes.ExtractorID != "bikereg-usacycling" || !strings.Contains(s80ResRes.Markdown, "USA Cycling Results") { + t.Fatalf("sport80 ResultsPage failed: %+v", s80ResRes) + } + cfHTML := `Just a moment...
` + if got := Wave3CommunityRunHTML("bikereg_usacycling_html", cfHTML, "https://www.bikereg.com/", ""); got != nil { + t.Fatalf("bikereg CF challenge must return nil, got %+v", got) + } + + // 6. #247 race-results-pack (active.com Event JSON-LD + strict CSR shell rejection) + activeHTML := `9th Annual Homewood Holiday 5k

9th Annual Homewood Holiday 5k

` + rrRes := Wave3CommunityRunHTML("race_results_pack_html", activeHTML, "https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026", "") + if rrRes == nil || rrRes.ExtractorID != "race-results-pack" || !strings.Contains(rrRes.Markdown, "Homewood Holiday 5k") || !strings.Contains(rrRes.Markdown, "2026-12-06") { + t.Fatalf("race-results-pack positive failed: %+v", rrRes) + } + athlinksCSR := `Athlinks
` + if got := Wave3CommunityRunHTML("race_results_pack_html", athlinksCSR, "https://www.athlinks.com/event/382820", ""); got != nil { + t.Fatalf("race-results-pack must strictly reject Athlinks CSR shell, got %+v", got) + } + + // 7. #248 lemmy HTML fallback + non-Lemmy prefilter + lemmyHTML := `Memes - lemmy.ml

Open Source Weekend Thread

Share the open source projects you have been testing this week across the Fediverse.

` + lemRes := Wave3CommunityRunHTML("lemmy_html", lemmyHTML, "https://lemmy.ml/post/55819348", "") + if lemRes == nil || lemRes.ExtractorID != "lemmy" || !strings.Contains(lemRes.Markdown, "Open Source Weekend Thread") { + t.Fatalf("lemmy_html positive failed: %+v", lemRes) + } + nonLemmyBlog := `Rock History

A tribute article about Lemmy Kilmister and classic rock albums.

` + if got := Wave3CommunityRunHTML("lemmy_html", nonLemmyBlog, "https://blog.example.org/rock", ""); got != nil { + t.Fatalf("lemmy_html must not match unrelated blog mentioning lemmy") + } + + // 8. #249 peertube HTML fallback + ptHTML := `Blender Today LIVE #294 - PeerTube

Blender Today LIVE #294

` + ptRes := Wave3CommunityRunHTML("peertube_html", ptHTML, "https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6", "") + if ptRes == nil || ptRes.ExtractorID != "peertube" || !strings.Contains(ptRes.Markdown, "Pablo Vazquez") { + t.Fatalf("peertube_html positive failed: %+v", ptRes) + } + + // 9. #250 fediverse-pack Mbin/Kbin SSR HTML + Anubis PoW + Misskey CSR rejection + mbinHTML := `Federated Thread | kbin.earth

Open Web Standards Update

news@lemmy.world

New W3C working draft improves interoperable ActivityPub discovery across community servers.

Great progress for federated threads!
` + mbRes := Wave3CommunityRunHTML("fediverse_pack_html", mbinHTML, "https://kbin.earth/m/news@lemmy.world/t/3423982", "") + if mbRes == nil || mbRes.ExtractorID != "fediverse-pack" || !strings.Contains(mbRes.Markdown, "Great progress for federated threads") { + t.Fatalf("fediverse_pack_html positive failed: %+v", mbRes) + } + anubisHTML := `Making sure you're not a bot!

Making sure you're not a bot!

` + if got := Wave3CommunityRunHTML("fediverse_pack_html", anubisHTML, "https://gehirneimer.de/", ""); got != nil { + t.Fatalf("fediverse_pack_html must reject Anubis PoW, got %+v", got) + } + misskeyShell := `Misskey
` + if got := Wave3CommunityRunHTML("fediverse_pack_html", misskeyShell, "https://misskey.io/notes/au4n1wud00cl0t3s", ""); got != nil { + t.Fatalf("fediverse_pack_html must reject Misskey empty CSR shell") + } +} + +func TestWave3CommunityJSONModes(t *testing.T) { + // 1. runsignup_json (single race + list + error rejection) + rsJSON := `{"race":{"race_id":68640,"name":"Bacon & Bubbles 5K or 1 Mile","url":"https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile","last_date":"06/13/2026","next_date":"06/12/2027","is_registration_open":"F","address":{"city":"Port Huron","state":"MI","zipcode":"48060"},"description":"

Family-friendly fun run along the St. Clair River.

","events":[{"event_id":1,"name":"5K Run","distance":"5K","start_time":"06/12/2027 09:00"}]}}` + rsDoc, ok := FormatWave3CommunityJSONDoc("runsignup_json", []byte(rsJSON), nil, "https://runsignup.com/Rest/race/68640?format=json") + if !ok || rsDoc == nil || !strings.Contains(rsDoc.Markdown, "2027-06-12") || !strings.Contains(rsDoc.Markdown, "5K Run") { + t.Fatalf("runsignup_json single failed: ok=%v doc=%+v", ok, rsDoc) + } + if _, okErr := FormatWave3CommunityJSONDoc("runsignup_json", []byte(`{"error":{"error_code":404,"error_msg":"Invalid race ID"}}`), nil, "https://runsignup.com/Rest/race/0?format=json"); okErr { + t.Fatalf("runsignup_json must reject error response") + } + + // 2. bikereg_json (ASP.NET /Date(1795755600000-0500)/ timestamp parsing) + brJSON := `{"CompletionTime":0,"MatchingEvents":[{"EventId":77778,"EventName":"Hush Money Gravel Classic","EventUrl":"https://www.bikereg.com/hush-money","EventAddress":"414 N Mary St","EventCity":"Lancaster","EventState":"PA","EventDate":"/Date(1795755600000-0500)/","Categories":[{"CategoryID":980084,"CategoryName":"Both Distances - Open","Distance":"55 miles","EntryFee":25.0,"StartTime":"10:00:00","CategoryDates":["/Date(1795755600000-0500)/"]}]}]}` + brDoc, ok := FormatWave3CommunityJSONDoc("bikereg_json", []byte(brJSON), nil, "https://www.bikereg.com/api/search?name=Hush%20Money") + if !ok || brDoc == nil || !strings.Contains(brDoc.Markdown, "Hush Money Gravel Classic") || !strings.Contains(brDoc.Markdown, "2026-11-27") || !strings.Contains(brDoc.Markdown, "$25.00") { + t.Fatalf("bikereg_json failed: ok=%v doc=%+v", ok, brDoc) + } + if _, okEmpty := FormatWave3CommunityJSONDoc("bikereg_json", []byte(`{"CompletionTime":0,"MatchingEvents":[]}`), nil, "https://www.bikereg.com/api/search?name=none"); okEmpty { + t.Fatalf("bikereg_json must reject empty MatchingEvents") + } + + // 3. lemmy_json (post_view + community_view + comments + error) + lemPostJSON := `{"post_view":{"post":{"id":54926010,"name":"Lost Art","url":"https://example.org/art.webp","body":"Source link inside body.","published":"2026-11-27T19:02:23.319418Z"},"creator":{"name":"Gormadt","display_name":"Gormadt"},"community":{"name":"comics"},"counts":{"score":142,"comments":19}}}` + lemDoc, ok := FormatWave3CommunityJSONDoc("lemmy_json", []byte(lemPostJSON), nil, "https://lemmy.world/api/v3/post?id=54926010") + if !ok || lemDoc == nil || !strings.Contains(lemDoc.Markdown, "Lost Art") || !strings.Contains(lemDoc.Markdown, "!comics") { + t.Fatalf("lemmy_json post_view failed: ok=%v doc=%+v", ok, lemDoc) + } + lemCommJSON := `{"community_view":{"community":{"id":1381,"name":"memes","title":"Memes Community","description":"Community rules and weekly threads."},"counts":{"subscribers":42000,"posts":9100}}}` + if commDoc, okC := FormatWave3CommunityJSONDoc("lemmy_json", []byte(lemCommJSON), nil, "https://lemmy.world/api/v3/community?name=memes"); !okC || !strings.Contains(commDoc.Markdown, "42000") { + t.Fatalf("lemmy_json community_view failed: ok=%v doc=%+v", okC, commDoc) + } + if _, okErr := FormatWave3CommunityJSONDoc("lemmy_json", []byte(`{"error":"couldnt_find_post"}`), nil, "https://lemmy.world/api/v3/post?id=0"); okErr { + t.Fatalf("lemmy_json must reject error") + } + + // 4. peertube_json (video + captions) + ptJSON := `{"id":59309,"uuid":"eb2c8482-d8aa-4e21-893f-868d1df60869","shortUUID":"v3kudnbEWnLVG5Fzormny6","url":"https://video.blender.org/videos/watch/eb2c8482-d8aa-4e21-893f-868d1df60869","name":"PAINT features + Bye 2026 - Blender Today LIVE #294","description":"Weekly Blender development show.","duration":2712,"views":4210,"likes":315,"publishedAt":"2026-11-25T16:00:00.000Z","channel":{"displayName":"Blender Today"},"category":{"label":"Science & Technology"},"licence":{"label":"CC-BY"}}` + ptDoc, ok := FormatWave3CommunityJSONDoc("peertube_json", []byte(ptJSON), nil, "https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6") + if !ok || ptDoc == nil || !strings.Contains(ptDoc.Markdown, "Blender Today") || !strings.Contains(ptDoc.Markdown, "CC-BY") { + t.Fatalf("peertube_json failed: ok=%v doc=%+v", ok, ptDoc) + } + ptCapJSON := `{"total":1,"data":[{"language":{"id":"en","label":"English"},"captionPath":"/lazy-static/video-captions/abc.vtt"}]}` + if capDoc, okCap := FormatWave3CommunityJSONDoc("peertube_json", []byte(ptCapJSON), nil, "https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6/captions"); !okCap || !strings.Contains(capDoc.Markdown, "English") { + t.Fatalf("peertube_json captions failed: ok=%v doc=%+v", okCap, capDoc) + } + if _, okEmptyCap := FormatWave3CommunityJSONDoc("peertube_json", []byte(`{"total":0,"data":[]}`), nil, "https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6/captions"); okEmptyCap { + t.Fatalf("peertube_json empty captions must return false") + } + + // 5. fediverse_pack_json (Misskey note + ActivityPub Page) + mkJSON := `{"id":"au4n1wud00cl0t3s","createdAt":"2026-11-29T00:01:36.133Z","user":{"name":"Test User","username":"testuser","host":null},"text":"Hello from Misskey fediverse note!","visibility":"public","reactionCount":15}` + mkDoc, ok := FormatWave3CommunityJSONDoc("fediverse_pack_json", []byte(mkJSON), map[string]string{"host": "misskey.io"}, "https://misskey.io/notes/au4n1wud00cl0t3s") + if !ok || mkDoc == nil || !strings.Contains(mkDoc.Markdown, "@testuser@misskey.io") || !strings.Contains(mkDoc.Markdown, "Hello from Misskey fediverse note!") { + t.Fatalf("fediverse_pack_json Misskey failed: ok=%v doc=%+v", ok, mkDoc) + } + apJSON := `{"@context":"https://www.w3.org/ns/activitystreams","type":"Page","id":"https://kbin.earth/m/tech/t/123","attributedTo":"https://kbin.earth/u/alice","audience":"https://kbin.earth/m/tech","name":"Federated Thread Title","content":"

Discussion on open standards.

","published":"2026-11-28T23:18:30Z"}` + if apDoc, okAP := FormatWave3CommunityJSONDoc("fediverse_pack_json", []byte(apJSON), nil, "https://kbin.earth/m/tech/t/123"); !okAP || !strings.Contains(apDoc.Markdown, "Federated Thread Title") { + t.Fatalf("fediverse_pack_json ActivityPub failed: ok=%v doc=%+v", okAP, apDoc) + } + if encoded, okEnc := FormatWave3CommunityJSONMode("fediverse_pack_json", []byte(mkJSON), nil, "https://misskey.io/notes/au4n1wud00cl0t3s"); !okEnc || !json.Valid([]byte(encoded)) { + t.Fatalf("FormatWave3CommunityJSONMode failed") + } +} + +func TestWave3CommunityNegativeShellsAndPerfBudget(t *testing.T) { + modes := []string{ + "chambermaster_growthzone_html", + "wild_apricot_html", + "association_ams_html", + "runsignup_html", + "bikereg_usacycling_html", + "race_results_pack_html", + "lemmy_html", + "peertube_html", + "fediverse_pack_html", + } + negShells := []struct { + name string + url string + html string + }{ + {"404", "https://example.org/item", `404 - Page Not Found

Not Found

`}, + {"error-redirect", "https://example.org/error", `Portal
Error
`}, + {"maintenance", "https://example.org/events", `503 Service Unavailable

Site is down for maintenance. Please check back soon.

`}, + {"empty-spa", "https://example.org/app", `Loading...
`}, + {"anubis-pow", "https://example.org/thread", `Making sure you're not a bot!

Making sure you're not a bot!

`}, + } + for _, m := range modes { + for _, ns := range negShells { + if res := Wave3CommunityRunHTML(m, ns.html, ns.url, ""); res != nil { + t.Fatalf("mode %s negative %s returned non-nil: %+v", m, ns.name, res) + } + } + } + + // Prefilter hot-path latency check (< 75ms across all 9 modes on 250KB unrelated HTML) + bigUnrelated := "News" + strings.Repeat("

Community garden notes and local updates.

", 4500) + "" + start := time.Now() + for _, m := range modes { + if res := Wave3CommunityRunHTML(m, bigUnrelated, "https://unrelated.example.org/news", ""); res != nil { + t.Fatalf("mode %s unexpectedly matched unrelated HTML", m) + } + } + if elapsed := time.Since(start); elapsed > 75*time.Millisecond { + t.Fatalf("all 9 modes prefilter scan exceeded 75ms budget: %v", elapsed) + } +} + +func TestWave3CommunityNonHijackAndASPNetDateBounds(t *testing.T) { + // Finding 4: association-ams-pack MUST NOT hijack prose containing "personify" + personifyHTML := `Literary Devices

Personification

Poets often personify nature to convey human emotion in verse.

  • Metaphor
  • Simile
` + if got := Wave3CommunityRunHTML("association_ams_html", personifyHTML, "https://lit.example.org/devices", ""); got != nil { + t.Fatalf("association-ams-pack hijacked unrelated page containing 'personify': %+v", got) + } + + // Finding 5: chambermaster-growthzone MUST NOT hijack "tar-gz-" / "gz-" in generic class/url + gzHTML := `Archive Tools

Download compressed archive packages safely.

  • tar.gz format
` + if got := Round2RunHTML("chambermaster_html", gzHTML, "https://tools.example.org/tar-gz-info", ""); got != nil { + t.Fatalf("chambermaster-growthzone hijacked unrelated page containing 'gz-': %+v", got) + } + // Positive GrowthZone gz-card MUST still match + gzCardHTML := `Members
Acme Co

Local manufacturing partner.

` + if got := Round2RunHTML("chambermaster_html", gzCardHTML, "https://chamber.example.org/list", ""); got == nil || got.ExtractorID != "chambermaster-growthzone" { + t.Fatalf("chambermaster-growthzone gz-card positive failed: %+v", got) + } + + // Finding 5: wild-apricot MUST NOT hijack "validevent", "avoidevent", "gridevent" + gridHTML := `UI Grid Events

Handle validevent and avoidevent callbacks cleanly in JS.

  • onClick
` + if got := Wave3CommunityRunHTML("wild_apricot_html", gridHTML, "https://ui.example.org/events", ""); got != nil { + t.Fatalf("wild-apricot hijacked unrelated page containing 'gridevent'/'validevent': %+v", got) + } + + // Finding 10: #246 bikereg ASP.NET /Date(ms-tz)/ invalid timezone offsets & out-of-range years MUST be rejected + for _, badDate := range []string{ + "/Date(1751328000000+9999)/", + "/Date(1751328000000-0499)/", + "/Date(999999999999999)/", + "/Date(-62135596800000)/", + "/Date(-86400000)/", + "/Date(2524608000000)/", + } { + if parsed := wave3CommParseASPNetDate(badDate); parsed != "" { + t.Fatalf("wave3CommParseASPNetDate(%q) = %q, want empty string", badDate, parsed) + } + if norm := wave3CommNormalizeDate(badDate); norm != "" { + t.Fatalf("wave3CommNormalizeDate(%q) = %q, want empty string", badDate, norm) + } + } + if okDate := wave3CommParseASPNetDate("/Date(1751328000000-0400)/"); okDate != "2025-06-30T20:00:00-04:00" { + t.Fatalf("valid ASP.NET date failed: got %q", okDate) + } +} diff --git a/internal/extract/wave3_prop_rest_ir.go b/internal/extract/wave3_prop_rest_ir.go new file mode 100644 index 0000000..19443c1 --- /dev/null +++ b/internal/extract/wave3_prop_rest_ir.go @@ -0,0 +1,2454 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "net/url" + "strconv" + "strings" +) + +const ( + wave3PRIRMaxHTMLBytes = 2 * 1024 * 1024 + wave3PRIRMaxJSONBytes = 4 * 1024 * 1024 + wave3PRIRMaxTextBytes = 2 * 1024 * 1024 + wave3PRIRMaxRecords = 30 +) + +var ( + wave3PRIRRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|page\s+not\s+found|page\s+cannot\s+be\s+found|not\s+found|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|listing\s+not\s+found|property\s+not\s+found|menu\s+not\s+found|press\s+release\s+not\s+found)(?:\b|$)`) + wave3PRIRRxMaintTitle = 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)`) + wave3PRIRRxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:401|403|404|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|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:401|403|404|410|429|500|502|503)|error)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3PRIRRxLoginTitle = newLazyRegexp(`(?i)^(?:log\s*in|sign\s+in|login|authentication\s+required|sso\s+login|single\s+sign[- ]on|web\s+login|resident\s+portal\s+login)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$`) + wave3PRIRRxSpace = newLazyRegexp(`[ \t\r\n]+`) + wave3PRIRRxRent = newLazyRegexp(`\$\s*([0-9][0-9,]*(?:\.[0-9]{2})?)(?:\s*(?:-|to|\x{2013})\s*\$?\s*([0-9][0-9,]*(?:\.[0-9]{2})?))?(?:\s*/\s*(?:mo|month))?`) + wave3PRIRRxBeds = newLazyRegexp(`(?i)\b(studio|\d+(?:\.\d+)?)\s*(?:bd|bed|beds|br|bedroom|bedrooms)\b`) + wave3PRIRRxBaths = newLazyRegexp(`(?i)\b(\d+(?:\.\d+)?)\s*(?:ba|bath|baths|bathroom|bathrooms)\b`) + wave3PRIRRxSqft = newLazyRegexp(`(?i)\b([0-9][0-9,]*(?:\s*-\s*[0-9][0-9,]*)?)\s*(?:sq\.?\s*ft\.?|sqft|sf)\b`) + wave3PRIRRxBootstrap = newLazyRegexp(`__BOOTSTRAP_STATE__\s*=`) + wave3PRIRRxNextData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NEXT_DATA__["'][^>]*>(.*?)`) + wave3PRIRRxApolloState = newLazyRegexp(`__APOLLO_STATE__\s*=`) + wave3PRIRRxQ4Date = newLazyRegexp(`(\d{1,2}/\d{1,2}/\d{4}|\d{4}-\d{2}-\d{2}|(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*\s+\d{1,2},\s+\d{4})`) +) + +func init() { + for _, mode := range []string{ + "appfolio_listings_html", + "pm_listing_widgets_html", + "multifamily_portals_html", + "idx_broker_showcase_html", + "popmenu_html", + "bentobox_html", + "square_toast_menu_html", + "schema_menu_html", + "q4_ir_html", + "ir_portal_pack_html", + "company_newsrooms_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3PropRestIRRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3PropRestIRHTMLMode reports whether mode is handled by Categories F/G/H HTML extractors (#251-#261). +func IsWave3PropRestIRHTMLMode(mode string) bool { + switch mode { + case "appfolio_listings_html", + "pm_listing_widgets_html", + "multifamily_portals_html", + "idx_broker_showcase_html", + "popmenu_html", + "bentobox_html", + "square_toast_menu_html", + "schema_menu_html", + "q4_ir_html", + "ir_portal_pack_html", + "company_newsrooms_html": + return true + default: + return false + } +} + +// IsWave3PropRestIRJSONMode reports whether mode is handled by Categories F/G/H JSON formatters (#259). +func IsWave3PropRestIRJSONMode(mode string) bool { + return mode == "q4_ir_json" +} + +// IsWave3PropRestIRTextMode reports whether mode is handled by Categories F/G/H text/RSS XML formatters (#260-#261). +func IsWave3PropRestIRTextMode(mode string) bool { + return mode == "ir_portal_rss_xml" || mode == "company_newsroom_rss_xml" +} + +func wave3PRIRDefaultExtractorID(mode string) string { + switch mode { + case "appfolio_listings_html": + return "appfolio-listings" + case "pm_listing_widgets_html": + return "pm-listing-widgets" + case "multifamily_portals_html": + return "multifamily-portals" + case "idx_broker_showcase_html": + return "idx-broker-showcase" + case "popmenu_html": + return "popmenu" + case "bentobox_html": + return "bentobox" + case "square_toast_menu_html": + return "square-toast-menu" + case "schema_menu_html": + return "schema-menu" + case "q4_ir_html", "q4_ir_json": + return "q4-ir" + case "ir_portal_pack_html", "ir_portal_rss_xml": + return "ir-portal-pack" + case "company_newsrooms_html", "company_newsroom_rss_xml": + return "company-newsrooms" + default: + return "" + } +} + +// Wave3PropRestIRRunHTML executes a Category F/G/H HTML extractor and returns DeclarativePostFetchResult. +func Wave3PropRestIRRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3PropRestIRHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3PRIRMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3PRIRMaxHTMLBytes) + } + trimmed := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmed == "" || trimmed[0] == '{' || trimmed[0] == '[' { + return nil + } + if extractorID == "" { + extractorID = wave3PRIRDefaultExtractorID(mode) + } + if wave3PRIRHasNegativeShell(rawHTML, baseURL) { + return nil + } + + var res *DeclarativePostFetchResult + switch mode { + case "appfolio_listings_html": + res = wave3PRIRExtractAppFolioHTML(rawHTML, baseURL, extractorID) + case "pm_listing_widgets_html": + res = wave3PRIRExtractPMWidgetsHTML(rawHTML, baseURL, extractorID) + case "multifamily_portals_html": + res = wave3PRIRExtractMultifamilyHTML(rawHTML, baseURL, extractorID) + case "idx_broker_showcase_html": + res = wave3PRIRExtractIDXShowcaseHTML(rawHTML, baseURL, extractorID) + case "popmenu_html": + res = wave3PRIRExtractPopmenuHTML(rawHTML, baseURL, extractorID) + case "bentobox_html": + res = wave3PRIRExtractBentoBoxHTML(rawHTML, baseURL, extractorID) + case "square_toast_menu_html": + res = wave3PRIRExtractSquareToastMenuHTML(rawHTML, baseURL, extractorID) + case "schema_menu_html": + res = wave3PRIRExtractSchemaMenuHTML(rawHTML, baseURL, extractorID) + case "q4_ir_html": + res = wave3PRIRExtractQ4IRHTML(rawHTML, baseURL, extractorID) + case "ir_portal_pack_html": + res = wave3PRIRExtractIRPortalPackHTML(rawHTML, baseURL, extractorID) + case "company_newsrooms_html": + res = wave3PRIRExtractCompanyNewsroomsHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return res +} + +// RunWave3PropRestIRHTMLMode executes a Category F/G/H HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3PropRestIRHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3PropRestIRRunHTML(mode, rawHTML, baseURL, wave3PRIRDefaultExtractorID(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 +} + +// FormatWave3PropRestIRJSONDoc formats a Category H JSON twin payload (`q4_ir_json`) into DeclarativeFormattedDoc. +func FormatWave3PropRestIRJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3PropRestIRJSONMode(mode) || len(raw) == 0 || len(raw) > wave3PRIRMaxJSONBytes { + return nil, false + } + payload := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(payload) == 0 || (payload[0] != '{' && payload[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(payload) + if !ok || parsed == nil { + return nil, false + } + doc, handled := wave3PRIRFormatQ4IRJSON(parsed, origURL) + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3PRIRFinalizeDoc(doc), true +} + +// FormatWave3PropRestIRJSONMode formats a Category H JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3PropRestIRJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3PropRestIRJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// FormatWave3PropRestIRTextDoc formats Category H RSS/Atom XML feeds (`ir_portal_rss_xml`, `company_newsroom_rss_xml`) into DeclarativeFormattedDoc. +func FormatWave3PropRestIRTextDoc(mode, rawBody string, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3PropRestIRTextMode(mode) || len(rawBody) == 0 || len(rawBody) > wave3PRIRMaxTextBytes { + return nil, false + } + source := wave3PRIRDefaultExtractorID(mode) + doc, handled := wave3PRIRFormatRSSXML(rawBody, origURL, source) + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3PRIRFinalizeDoc(doc), true +} + +// FormatWave3PropRestIRTextMode formats Category H RSS/Atom XML feeds and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3PropRestIRTextMode(mode, rawBody string, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3PropRestIRTextDoc(mode, rawBody, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// ── Shared Hygiene & Parsing Helpers ────────────────────────────────────────────────────────────── + +func wave3PRIRIntPtr(v int) *int { return &v } +func wave3PRIRBoolPtr(v bool) *bool { return &v } + +func wave3PRIRFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3PRIRMaxRecords { + if doc.Total == nil { + doc.Total = wave3PRIRIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3PRIRMaxRecords] + doc.Returned = wave3PRIRIntPtr(len(doc.Records)) + doc.Truncated = wave3PRIRBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3PRIRFinalizeResult(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3PRIRMaxRecords { + if res.Total == nil { + res.Total = wave3PRIRIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3PRIRMaxRecords] + res.Returned = wave3PRIRIntPtr(len(res.Records)) + res.Truncated = wave3PRIRBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3PRIRIsNegativeURL(baseURL string) bool { + uLower := strings.ToLower(strings.TrimSpace(baseURL)) + if uLower == "" { + return false + } + if strings.Contains(uLower, "/404") || + strings.Contains(uLower, "/not-found") || + strings.Contains(uLower, "/page-not-found") || + strings.Contains(uLower, "/maintenance") || + strings.Contains(uLower, "error=true") || + strings.Contains(uLower, "error=1") || + strings.Contains(uLower, "404.") { + return true + } + pathOnly := uLower + 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") +} + +func wave3PRIRContainsAny(lower string, needles ...string) bool { + for _, n := range needles { + if strings.Contains(lower, n) { + return true + } + } + return false +} + +func wave3PRIRHasNegativeShell(rawHTML, baseURL string) bool { + if wave3PRIRIsNegativeURL(baseURL) { + return true + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + lower := asciiLowerExtractString(probe) + if wave3PRIRContainsAny(lower, + "cf-browser-verification", + "challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "cf-turnstile", + "challenges.cloudflare.com/turnstile", + "attention required! | cloudflare", + "errors.edgesuite.net", + "you don't have permission to access", + "access denied", + "403 forbidden", + "just a moment", + "page not found | appfolio", + "window.kpsdk", + "kp_uidz", + "_incapsula_resource", + "incapsula incident", + ) { + return true + } + if !hasJSONLDScriptToken(probe) && + wave3PRIRContainsAny(lower, "scheduled maintenance", "down for maintenance", "under maintenance", "temporarily unavailable", "503 service unavailable") && + len(rawHTML) < 48*1024 { + return true + } + title := extractTitleLinearQuick(probe) + if title != "" && (wave3PRIRRxNotFoundTitle.MatchString(title) || wave3PRIRRxMaintTitle.MatchString(title) || wave3PRIRRxErrorTitle.MatchString(title)) { + return true + } + if title != "" && wave3PRIRRxLoginTitle.MatchString(title) && !hasJSONLDScriptToken(probe) && len(rawHTML) < 48*1024 { + return true + } + if len(rawHTML) < 32*1024 && !hasJSONLDScriptToken(probe) && + wave3PRIRContainsAny(lower, `name="samlrequest"`, `name="samlresponse"`, `<input type="password"`, `type='password'`) { + return true + } + if len(rawHTML) < 16384 && + wave3PRIRContainsAny(lower, + `<div id="root"></div>`, + `<div id="app"></div>`, + `<div id="__next"></div>`, + `<div id="__nuxt"></div>`, + `<app-root></app-root>`, + `<ui-view></ui-view>`, + ) && + !hasJSONLDScriptToken(probe) && + !strings.Contains(lower, "__bootstrap_state__") && + !strings.Contains(lower, "__next_data__") && + !strings.Contains(lower, "__nuxt_data__") && + !strings.Contains(lower, "__apollo_state__") && + !strings.Contains(lower, "<h1") && + !strings.Contains(lower, "<article") && + !strings.Contains(lower, "<table") { + return true + } + return false +} + +func wave3PRIRCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = stripTagsInlineLinear(s) + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + } + return strings.TrimSpace(wave3PRIRRxSpace.ReplaceAllString(s, " ")) +} + +func wave3PRIRFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3PRIRPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(jsonScalarToString(v), maxLen) +} + +func wave3PRIRProbeLower(rawHTML string, maxBytes int) string { + if len(rawHTML) > maxBytes { + rawHTML = rawHTML[:maxBytes] + } + return asciiLowerExtractString(rawHTML) +} + +func wave3PRIRAddLink(links *[]string, seen map[string]bool, raw, baseURL string) string { + safe := SanitizeSchemaHTTPSURL(raw, baseURL) + if safe == "" { + return "" + } + if !seen[safe] { + seen[safe] = true + *links = append(*links, safe) + } + return safe +} + +func wave3PRIRPageMeta(doc *HTMLDoc) (title, siteName, desc string) { + if doc == nil { + return "", "", "" + } + title = SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + doc.AttrOf(`meta[property="og:title"]`, "content"), + doc.Text("h1"), + doc.Text("title"), + ), 260) + siteName = SanitizeSchemaPlainField(doc.AttrOf(`meta[property="og:site_name"]`, "content"), 180) + desc = SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + doc.AttrOf(`meta[property="og:description"]`, "content"), + doc.AttrOf(`meta[name="description"]`, "content"), + ), 500) + return title, siteName, desc +} + +func wave3PRIRSchemaTypes(obj map[string]any) []string { + return normalizeSchemaTypesSchemaGo(obj["@type"]) +} + +func wave3PRIRHasSchemaType(obj map[string]any, targets ...string) bool { + allowed := make(map[string]bool, len(targets)) + for _, t := range targets { + allowed[strings.ToLower(t)] = true + } + return findMatchingSchemaTypeSchemaGo(wave3PRIRSchemaTypes(obj), allowed) != "" +} + +func wave3PRIRNodeAttr(n *HTMLNode, name string) string { + if n == nil { + return "" + } + return strings.TrimSpace(n.AttrOrEmpty(name)) +} + +func wave3PRIRExtractBalancedAfterRegex(rawHTML string, rx *lazyRegexp, maxBytes int) (map[string]any, bool) { + loc := rx.FindStringIndex(rawHTML) + if loc == nil { + return nil, false + } + tail := rawHTML[loc[1]:] + brace := strings.IndexByte(tail, '{') + if brace < 0 || brace > 64 { + return nil, false + } + rawJSON, _, okBal := ExtractBalancedJSONAt(tail, brace, maxBytes) + if !okBal { + return nil, false + } + parsed, ok := decodeJSONWithNumbers([]byte(rawJSON)) + if !ok { + return nil, false + } + m, okM := parsed.(map[string]any) + return m, okM +} + +func wave3PRIRExtractNextData(rawHTML string) (map[string]any, bool) { + m := wave3PRIRRxNextData.FindStringSubmatch(rawHTML) + if len(m) < 2 { + return nil, false + } + body := strings.TrimSpace(m[1]) + if body == "" || body[0] != '{' { + return nil, false + } + parsed, ok := decodeJSONWithNumbers([]byte(body)) + if !ok { + return nil, false + } + obj, okObj := parsed.(map[string]any) + return obj, okObj +} + +func wave3PRIRParsePriceSpec(text string) string { + if m := wave3PRIRRxRent.FindStringSubmatch(text); len(m) >= 2 { + if m[2] != "" { + return "$" + m[1] + " - $" + m[2] + } + return "$" + m[1] + } + return "" +} + +func wave3PRIRParsePropertySpecs(text string) (rent, beds, baths, sqft string) { + rent = wave3PRIRParsePriceSpec(text) + if m := wave3PRIRRxBeds.FindStringSubmatch(text); len(m) >= 2 { + beds = m[1] + } + if m := wave3PRIRRxBaths.FindStringSubmatch(text); len(m) >= 2 { + baths = m[1] + } + if m := wave3PRIRRxSqft.FindStringSubmatch(text); len(m) >= 2 { + sqft = m[1] + } + return +} + +// ── #251 appfolio-listings ──────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractAppFolioHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "js-listing-item", + "listing-item__", + "images.cdn.appfolio.com", + "appfolio.com/listings", + "detail-box__value", + ) || (strings.Contains(lower, "appfolio") && wave3PRIRContainsAny(lower, "/listings/detail/", "rental listings", "listing-item")) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "AppFolio Rental Listings" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var itemLines []string + + cards := doc.Select(`.listing-item, .js-listing-item`, 60) + for _, card := range cards { + if len(records) >= wave3PRIRMaxRecords { + break + } + cardText := wave3PRIRCleanText(card.Text()) + if cardText == "" { + continue + } + title := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + card.Text(`.listing-item__title`), + card.Text(`.js-listing-address`), + card.Text(`h2, h3`), + ), 200) + detailHref := "" + if a := card.First(`a[href*="/listings/detail/"], a.js-link-to-detail, .listing-item__title a`); a != nil { + detailHref = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + if title == "" { + title = SanitizeSchemaPlainField(a.Text(), 200) + } + } + rent, beds, baths, sqft := wave3PRIRParsePropertySpecs(cardText) + if title == "" { + title = SanitizeSchemaPlainField(cardText, 120) + } + if title == "" { + continue + } + rec := map[string]any{ + "title": title, + "source": "appfolio", + } + if rent != "" { + rec["rent"] = rent + } + if beds != "" { + rec["beds"] = beds + } + if baths != "" { + rec["baths"] = baths + } + if sqft != "" { + rec["sqft"] = sqft + } + if detailHref != "" { + rec["url"] = detailHref + } + records = append(records, rec) + + var parts []string + if detailHref != "" { + parts = append(parts, fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), detailHref)) + } else { + parts = append(parts, "### "+escapeDeclMarkdownBrackets(title)) + } + var meta []string + if rent != "" { + meta = append(meta, "Rent: "+rent) + } + if beds != "" { + meta = append(meta, "Beds: "+beds) + } + if baths != "" { + meta = append(meta, "Baths: "+baths) + } + if sqft != "" { + meta = append(meta, "Sq Ft: "+sqft) + } + if len(meta) > 0 { + parts = append(parts, "- "+strings.Join(meta, " | ")) + } + itemLines = append(itemLines, strings.Join(parts, "\n")) + } + + // Single-listing detail page fallback (`/listings/detail/<uuid>`) + if len(records) == 0 && wave3PRIRContainsAny(lower, "listing-detail", "detail-box__value", "/listings/detail/") { + bodyText := wave3PRIRCleanText(doc.Text(`main, .listing-detail, body`)) + rent, beds, baths, sqft := wave3PRIRParsePropertySpecs(bodyText) + addr := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + doc.Text(`.listing-detail__title, h1`), + pageTitle, + ), 200) + if addr != "" && (rent != "" || beds != "" || baths != "" || sqft != "") { + rec := map[string]any{"title": addr, "source": "appfolio"} + if rent != "" { + rec["rent"] = rent + } + if beds != "" { + rec["beds"] = beds + } + if baths != "" { + rec["baths"] = baths + } + if sqft != "" { + rec["sqft"] = sqft + } + if safeURL := wave3PRIRAddLink(&links, seenLinks, baseURL, baseURL); safeURL != "" { + rec["url"] = safeURL + } + records = append(records, rec) + itemLines = append(itemLines, fmt.Sprintf("- **Address**: %s\n- **Rent**: %s | **Beds**: %s | **Baths**: %s | **Sq Ft**: %s", + escapeDeclMarkdownBlock(addr), wave3PRIRFirstNonEmpty(rent, "-"), wave3PRIRFirstNonEmpty(beds, "-"), wave3PRIRFirstNonEmpty(baths, "-"), wave3PRIRFirstNonEmpty(sqft, "-"))) + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Property Manager**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Rental Listings\n\n"+strings.Join(itemLines, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #252 pm-listing-widgets ─────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractPMWidgetsHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "managebuilding.com", + "rentals-filter", + "resident/public/rentals", + "propertyware", + "rentmanager", + "featured-listing", + "pw-listing", + "rm-unit", + ) + if !hasMarker { + return nil + } + + baseLower := strings.ToLower(baseURL) + platform := "Property Management Portal" + switch { + case strings.Contains(lower, "managebuilding") || strings.Contains(baseLower, "managebuilding") || strings.Contains(lower, "rentals-filter") || strings.Contains(lower, "resident/public/rentals"): + platform = "Buildium" + case strings.Contains(lower, "propertyware") || strings.Contains(baseLower, "propertyware") || strings.Contains(lower, "pw-listing"): + platform = "Propertyware" + case strings.Contains(lower, "rentmanager") || strings.Contains(baseLower, "rentmanager") || strings.Contains(lower, "rm-unit"): + platform = "RentManager" + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = platform + " Rental Listings" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + cards := doc.Select(`.featured-listing, .rentals-list-item, .rental-card, .pw-listing, .property-card, .rm-unit, .unit-listing, tr.rental-row, a[href*="/Resident/public/rentals/"]`, 60) + seenTitle := map[string]bool{} + for _, card := range cards { + if len(records) >= wave3PRIRMaxRecords { + break + } + cardText := wave3PRIRCleanText(card.Text()) + if cardText == "" { + continue + } + href := "" + if strings.EqualFold(card.Tag(), "a") { + href = wave3PRIRNodeAttr(card, "href") + } else if a := card.First(`a[href*="/Resident/public/rentals/"], a[href]`); a != nil { + href = wave3PRIRNodeAttr(a, "href") + } + safeURL := wave3PRIRAddLink(&links, seenLinks, href, baseURL) + + title := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + card.Text(`.featured-listing__title, .listing-title, h2, h3, .property-address`), + card.AttrOrEmpty("title"), + ), 200) + rent, beds, baths, sqft := wave3PRIRParsePropertySpecs(cardText) + if title == "" { + title = SanitizeSchemaPlainField(cardText, 120) + } + if title == "" || (rent == "" && beds == "" && baths == "" && safeURL == "") { + continue + } + key := title + "|" + safeURL + if seenTitle[key] { + continue + } + seenTitle[key] = true + + rec := map[string]any{ + "title": title, + "platform": platform, + } + if rent != "" { + rec["rent"] = rent + } + if beds != "" { + rec["beds"] = beds + } + if baths != "" { + rec["baths"] = baths + } + if sqft != "" { + rec["sqft"] = sqft + } + if safeURL != "" { + rec["url"] = safeURL + } + records = append(records, rec) + + header := "### " + escapeDeclMarkdownBrackets(title) + if safeURL != "" { + header = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), safeURL) + } + var meta []string + if rent != "" { + meta = append(meta, "Rent: "+rent) + } + if beds != "" { + meta = append(meta, "Beds: "+beds) + } + if baths != "" { + meta = append(meta, "Baths: "+baths) + } + if sqft != "" { + meta = append(meta, "Sq Ft: "+sqft) + } + if len(meta) > 0 { + blocks = append(blocks, header+"\n- "+strings.Join(meta, " | ")) + } else { + blocks = append(blocks, header) + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + metaLine := "- **Platform**: " + platform + if siteName != "" { + metaLine += " | **Manager**: " + escapeDeclMarkdownBlock(siteName) + } + md = append(md, metaLine) + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Available Rentals\n\n"+strings.Join(blocks, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #253 multifamily-portals ────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractMultifamilyHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if strings.Contains(strings.ToLower(baseURL), ".ashx") { + return nil + } + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "floorplan-details", + "lease-term-wrap", + "rentcafe", + "entrata", + "realpage", + "activebuilding", + "jonah systems", + "apartmentcomplex", + ) || (strings.Contains(lower, "floorplan") && wave3PRIRContainsAny(lower, "bed", "bath", "sq ft", "sqft", "$")) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Multifamily Floor Plans & Availability" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + // Parse JSON-LD ApartmentComplex / Apartment / FloorPlan if present + if hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 40) { + if len(records) >= wave3PRIRMaxRecords { + break + } + if !wave3PRIRHasSchemaType(obj, "ApartmentComplex", "Apartment", "FloorPlan", "Residence") { + continue + } + name := wave3PRIRPlain(obj["name"], 200) + if name == "" { + continue + } + rec := map[string]any{"name": name, "source": "schema-multifamily"} + if beds := wave3PRIRPlain(obj["numberOfBedrooms"], 32); beds != "" { + rec["beds"] = beds + } + if baths := wave3PRIRPlain(obj["numberOfBathroomsTotal"], 32); baths != "" { + rec["baths"] = baths + } + if u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL); u != "" { + rec["url"] = u + } + records = append(records, rec) + blocks = append(blocks, "### "+escapeDeclMarkdownBrackets(name)) + } + } + + fpNodes := doc.Select(`.floorplan-details__toggle, .floorplan-card, .fp-card, .fp-row, [class*="floorplan-item"], .unit-card, .lease-term-wrap__item`, 60) + seenFP := map[string]bool{} + for _, node := range fpNodes { + if len(records) >= wave3PRIRMaxRecords { + break + } + txt := wave3PRIRCleanText(node.Text()) + if txt == "" { + continue + } + name := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + node.Text(`.floorplan-name, .fp-name, h2, h3, h4, .title`), + node.AttrOrEmpty("data-floorplan-name"), + ), 180) + rent, beds, baths, sqft := wave3PRIRParsePropertySpecs(txt) + if name == "" { + name = SanitizeSchemaPlainField(txt, 100) + } + if name == "" || seenFP[name] || (rent == "" && beds == "" && baths == "" && sqft == "") { + continue + } + seenFP[name] = true + var href string + if a := node.First(`a[href]`); a != nil { + href = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + } + rec := map[string]any{"name": name, "source": "multifamily-dom"} + if rent != "" { + rec["rent"] = rent + } + if beds != "" { + rec["beds"] = beds + } + if baths != "" { + rec["baths"] = baths + } + if sqft != "" { + rec["sqft"] = sqft + } + if href != "" { + rec["url"] = href + } + records = append(records, rec) + + var meta []string + if rent != "" { + meta = append(meta, "Rent: "+rent) + } + if beds != "" { + meta = append(meta, "Beds: "+beds) + } + if baths != "" { + meta = append(meta, "Baths: "+baths) + } + if sqft != "" { + meta = append(meta, "Sq Ft: "+sqft) + } + blocks = append(blocks, "### "+escapeDeclMarkdownBrackets(name)+"\n- "+strings.Join(meta, " | ")) + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Community**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Floor Plans & Pricing\n\n"+strings.Join(blocks, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #254 idx-broker-showcase ────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractIDXShowcaseHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hostLower := "" + if u, err := url.Parse(strings.TrimSpace(baseURL)); err == nil { + hostLower = strings.ToLower(u.Hostname()) + } + hasIDXHost := strings.Contains(hostLower, "idxbroker") || strings.Contains(hostLower, "showcaseidx") + hasMarker := hasIDXHost || wave3PRIRContainsAny(lower, + "showcaseidx", + "idxbroker", + "idx-results", + "idx-details", + "idx-listing", + "idx-main", + `id="idx-`, + `id='idx-`, + "sidx-", + "data-mls", + ".idx-", + ) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "IDX Real Estate Listings" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + var agentBullets []string + + if hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 40) { + if wave3PRIRHasSchemaType(obj, "RealEstateAgent", "Organization") { + name := wave3PRIRPlain(obj["name"], 180) + tel := wave3PRIRPlain(obj["telephone"], 60) + if name != "" { + agentBullets = append(agentBullets, "- **Brokerage / Agent**: "+escapeDeclMarkdownBlock(name)) + } + if tel != "" { + agentBullets = append(agentBullets, "- **Phone**: "+escapeDeclMarkdownBlock(tel)) + } + if u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL); u != "" && len(records) == 0 { + records = append(records, map[string]any{"name": wave3PRIRFirstNonEmpty(name, pageTitle), "telephone": tel, "url": u, "kind": "brokerage"}) + } + } + if wave3PRIRHasSchemaType(obj, "RealEstateListing", "SingleFamilyResidence", "Product") && len(records) < wave3PRIRMaxRecords { + name := wave3PRIRPlain(obj["name"], 200) + price := "" + if offers, ok := obj["offers"].(map[string]any); ok { + price = wave3PRIRPlain(offers["price"], 40) + } + u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL) + if name != "" { + rec := map[string]any{"title": name, "kind": "listing"} + if price != "" { + rec["price"] = price + } + if u != "" { + rec["url"] = u + } + records = append(records, rec) + line := "### " + escapeDeclMarkdownBrackets(name) + if u != "" { + line = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(name), u) + } + if price != "" { + line += "\n- Price: $" + price + } + blocks = append(blocks, line) + } + } + } + } + + cards := doc.Select(`.IDX-resultsCell, .idx-listing, .sidx-listing, .sidx-card, .property-listing, [data-mls]`, 60) + for _, card := range cards { + if len(records) >= wave3PRIRMaxRecords { + break + } + txt := wave3PRIRCleanText(card.Text()) + if txt == "" { + continue + } + addr := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + card.Text(`.IDX-resultsAddress, .idx-address, .sidx-address, h2, h3`), + card.AttrOrEmpty("data-address"), + ), 200) + price, beds, baths, sqft := wave3PRIRParsePropertySpecs(txt) + mls := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty(card.AttrOrEmpty("data-mls"), card.Text(`.IDX-resultsMLS, .mls-number`)), 64) + var href string + if a := card.First(`a[href]`); a != nil { + href = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + } + if addr == "" { + addr = SanitizeSchemaPlainField(txt, 120) + } + if addr == "" || (price == "" && beds == "" && mls == "" && href == "") { + continue + } + rec := map[string]any{"title": addr, "kind": "listing"} + if price != "" { + rec["price"] = price + } + if beds != "" { + rec["beds"] = beds + } + if baths != "" { + rec["baths"] = baths + } + if sqft != "" { + rec["sqft"] = sqft + } + if mls != "" { + rec["mls"] = mls + } + if href != "" { + rec["url"] = href + } + records = append(records, rec) + + hdr := "### " + escapeDeclMarkdownBrackets(addr) + if href != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(addr), href) + } + var meta []string + if price != "" { + meta = append(meta, "Price: "+price) + } + if beds != "" { + meta = append(meta, "Beds: "+beds) + } + if baths != "" { + meta = append(meta, "Baths: "+baths) + } + if sqft != "" { + meta = append(meta, "Sq Ft: "+sqft) + } + if mls != "" { + meta = append(meta, "MLS: "+mls) + } + if len(meta) > 0 { + blocks = append(blocks, hdr+"\n- "+strings.Join(meta, " | ")) + } else { + blocks = append(blocks, hdr) + } + } + + if len(records) == 0 && len(agentBullets) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Site**: "+escapeDeclMarkdownBlock(siteName)) + } + if len(agentBullets) > 0 { + md = append(md, strings.Join(agentBullets, "\n")) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + if len(blocks) > 0 { + md = append(md, "## Property Listings\n\n"+strings.Join(blocks, "\n\n")) + } + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #255 popmenu ────────────────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractPopmenuHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, "popmenu", "pop-menu", "pm-menu") || + (strings.Contains(lower, "__apollo_state__") && wave3PRIRContainsAny(lower, "menuitem", "menusection")) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Popmenu Restaurant Menu" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + // Apollo State extraction if present + if apollo, ok := wave3PRIRExtractBalancedAfterRegex(rawHTML, wave3PRIRRxApolloState, 512_000); ok { + for k, v := range apollo { + if len(records) >= wave3PRIRMaxRecords { + break + } + m, okM := v.(map[string]any) + if !okM { + continue + } + if !strings.Contains(strings.ToLower(k), "menuitem") && !strings.EqualFold(jsonScalarToString(m["__typename"]), "MenuItem") { + continue + } + name := wave3PRIRPlain(m["name"], 180) + if name == "" { + continue + } + price := wave3PRIRPlain(m["price"], 40) + desc := wave3PRIRPlain(m["description"], 300) + rec := map[string]any{"name": name, "source": "popmenu-apollo"} + if price != "" { + rec["price"] = price + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + line += " (" + price + ")" + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + blocks = append(blocks, line) + } + } + + // Popmenu DOM items + if len(records) == 0 { + items := doc.Select(`.pm-menu-item, .menu-item, [data-menu-item], [class*="MenuItem"]`, 60) + for _, item := range items { + if len(records) >= wave3PRIRMaxRecords { + break + } + name := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.item-title, .menu-item-title, h3, h4, .name`), + item.AttrOrEmpty("data-item-name"), + ), 180) + if name == "" { + continue + } + price := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.item-price, .menu-item-price, .price`), + wave3PRIRParsePriceSpec(item.Text()), + ), 40) + desc := SanitizeSchemaPlainField(item.Text(`.item-description, .menu-item-description, p`), 300) + rec := map[string]any{"name": name, "source": "popmenu-dom"} + if price != "" { + rec["price"] = price + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + line += " (" + price + ")" + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + blocks = append(blocks, line) + } + } + + // JSON-LD Menu / Restaurant fallback on Popmenu pages + if len(records) == 0 && hasJSONLDScriptToken(rawHTML) { + wave3PRIRCollectMenuJSONLD(rawHTML, baseURL, &records, &links, seenLinks, &blocks) + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Restaurant**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Menu\n\n"+strings.Join(blocks, "\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #256 bentobox ───────────────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractBentoBoxHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "getbento.com", + "bentobox", + "bento-analytics", + "bento-menu", + ) || (strings.Contains(lower, "menu-section__header") && strings.Contains(lower, "menu-item__heading")) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "BentoBox Restaurant Menu" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var sectionBlocks []string + + sections := doc.Select(`.menu-section`, 30) + for _, sec := range sections { + if len(records) >= wave3PRIRMaxRecords { + break + } + secName := SanitizeSchemaPlainField(sec.Text(`.menu-section__header, h2, h3`), 160) + var itemLines []string + for _, item := range sec.Select(`.menu-item`, 40) { + if len(records) >= wave3PRIRMaxRecords { + break + } + name := SanitizeSchemaPlainField(item.Text(`.menu-item__heading--name, .menu-item__heading, h3, h4`), 180) + if name == "" { + continue + } + desc := SanitizeSchemaPlainField(item.Text(`.menu-item__details--description, .menu-description`), 300) + price := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.menu-item__details--price`), + wave3PRIRParsePriceSpec(item.Text()), + ), 40) + rec := map[string]any{"name": name, "source": "bentobox"} + if secName != "" { + rec["section"] = secName + } + if price != "" { + rec["price"] = price + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + line += " (" + price + ")" + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + itemLines = append(itemLines, line) + } + if len(itemLines) > 0 { + if secName != "" { + sectionBlocks = append(sectionBlocks, "### "+escapeDeclMarkdownBlock(secName)+"\n"+strings.Join(itemLines, "\n")) + } else { + sectionBlocks = append(sectionBlocks, strings.Join(itemLines, "\n")) + } + } + } + + // Orphan .menu-item fallback (without .menu-section wrapper) + if len(records) == 0 { + var itemLines []string + for _, item := range doc.Select(`.menu-item`, 60) { + if len(records) >= wave3PRIRMaxRecords { + break + } + name := SanitizeSchemaPlainField(item.Text(`.menu-item__heading--name, .menu-item__heading`), 180) + if name == "" { + continue + } + desc := SanitizeSchemaPlainField(item.Text(`.menu-item__details--description`), 300) + price := SanitizeSchemaPlainField(item.Text(`.menu-item__details--price`), 40) + rec := map[string]any{"name": name, "source": "bentobox"} + if price != "" { + rec["price"] = price + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + line += " (" + price + ")" + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + itemLines = append(itemLines, line) + } + if len(itemLines) > 0 { + sectionBlocks = append(sectionBlocks, strings.Join(itemLines, "\n")) + } + } + + // JSON-LD FoodEstablishment / Restaurant fallback when on getbento.com marketing or restaurant homepage + var venueBullets []string + if len(records) == 0 && hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 32) { + if wave3PRIRHasSchemaType(obj, "FoodEstablishment", "Restaurant", "Organization") { + vName := wave3PRIRPlain(obj["name"], 180) + vType := wave3PRIRFirstNonEmpty(wave3PRIRSchemaTypes(obj)...) + if vName != "" { + venueBullets = append(venueBullets, "- **Venue**: "+escapeDeclMarkdownBlock(vName)) + if u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL); u != "" { + records = append(records, map[string]any{"name": vName, "type": vType, "url": u, "source": "bentobox"}) + } else { + records = append(records, map[string]any{"name": vName, "type": vType, "source": "bentobox"}) + } + } + } + } + } + + // BentoBox platform homepage / content fallback (e.g. getbento.com) + if len(records) == 0 && strings.Contains(lower, "getbento.com") { + mainText := wave3PRIRCleanText(doc.Text(`main, h1, h2`)) + if len(mainText) >= 40 { + records = append(records, map[string]any{"name": pageTitle, "source": "bentobox"}) + sectionBlocks = append(sectionBlocks, SanitizeSchemaPlainField(mainText, 800)) + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Restaurant / Site**: "+escapeDeclMarkdownBlock(siteName)) + } + if len(venueBullets) > 0 { + md = append(md, strings.Join(venueBullets, "\n")) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + if len(sectionBlocks) > 0 { + md = append(md, "## Menu & Details\n\n"+strings.Join(sectionBlocks, "\n\n")) + } + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #257 square-toast-menu ──────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractSquareToastMenuHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + baseLower := strings.ToLower(baseURL) + + isSquareRestaurant := (strings.Contains(rawHTML, "__BOOTSTRAP_STATE__") || strings.Contains(lower, "square-online-featureflags") || strings.Contains(baseLower, ".square.site")) && + (strings.Contains(rawHTML, `"selectedVertical":"restaurant"`) || + strings.Contains(rawHTML, `"selectedVertical": "restaurant"`) || + strings.Contains(rawHTML, `"quick-serve-restaurant"`) || + strings.Contains(rawHTML, "/shop/online-menu/") || + strings.Contains(baseLower, "/shop/online-menu/") || + strings.Contains(rawHTML, `"Online Menu"`)) + + isToastMenu := (strings.Contains(baseLower, "order.toasttab.com") || strings.Contains(lower, "toasttab") || strings.Contains(lower, "toast-menu")) && + wave3PRIRContainsAny(lower, "menuitem", "menu-item", "menugroup", "menu-group", "ld+json", "__next_data__", `data-testid="menu`) + + if !isSquareRestaurant && !isToastMenu { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var bullets []string + var sections []string + + if isSquareRestaurant { + if boot, ok := wave3PRIRExtractBalancedAfterRegex(rawHTML, wave3PRIRRxBootstrap, 512_000); ok { + if merchantID := wave3PRIRPlain(boot["squareMerchantId"], 120); merchantID != "" { + bullets = append(bullets, "- **Square Merchant ID**: `"+merchantID+"`") + } + if vert := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(boot["verticalV4"]), jsonScalarToString(boot["selectedVertical"])), 80); vert != "" { + bullets = append(bullets, "- **Vertical**: `"+vert+"`") + } + if storeInfo, okSI := boot["storeInfo"].(map[string]any); okSI { + if sn := wave3PRIRPlain(storeInfo["name"], 180); sn != "" && siteName == "" { + siteName = sn + } + if cur := wave3PRIRPlain(storeInfo["currency"], 16); cur != "" { + bullets = append(bullets, "- **Currency**: `"+cur+"`") + } + if sm := wave3PRIRPlain(storeInfo["store_mode"], 64); sm != "" { + bullets = append(bullets, "- **Order Mode**: "+escapeDeclMarkdownBlock(sm)) + } + } + if cl, okCL := boot["commerceLinks"].(map[string]any); okCL { + if cats, okCats := cl["categories"].(map[string]any); okCats { + var catLines []string + for _, rawCat := range cats { + if len(records) >= wave3PRIRMaxRecords { + break + } + cm, okCM := rawCat.(map[string]any) + if !okCM { + continue + } + cn := wave3PRIRPlain(cm["name"], 160) + cu := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(cm["site_link"]), baseURL) + if cn == "" { + continue + } + rec := map[string]any{"name": cn, "platform": "square-online-restaurant", "kind": "menu-category"} + if cu != "" { + rec["url"] = cu + catLines = append(catLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(cn), cu)) + } else { + catLines = append(catLines, "- "+escapeDeclMarkdownBlock(cn)) + } + records = append(records, rec) + } + if len(catLines) > 0 { + sections = append(sections, "## Menu Categories\n\n"+strings.Join(catLines, "\n")) + } + } + } + } + } + + // Toast / Square DOM menu items & JSON-LD Menu/Product fallback + if hasJSONLDScriptToken(rawHTML) { + var ldBlocks []string + wave3PRIRCollectMenuJSONLD(rawHTML, baseURL, &records, &links, seenLinks, &ldBlocks) + if len(ldBlocks) > 0 { + sections = append(sections, "## Menu Items\n\n"+strings.Join(ldBlocks, "\n")) + } + } + + if isToastMenu { + var toastLines []string + for _, item := range doc.Select(`[data-testid*="menu-item"], .menu-item, .item-card, [class*="menuItem"]`, 60) { + if len(records) >= wave3PRIRMaxRecords { + break + } + name := SanitizeSchemaPlainField(item.Text(`h3, h4, .item-name, [data-testid*="item-name"]`), 180) + if name == "" { + continue + } + price := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.price, [data-testid*="price"]`), + wave3PRIRParsePriceSpec(item.Text()), + ), 40) + desc := SanitizeSchemaPlainField(item.Text(`.description, p`), 300) + rec := map[string]any{"name": name, "platform": "toast", "kind": "menu-item"} + if price != "" { + rec["price"] = price + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + line += " (" + price + ")" + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + toastLines = append(toastLines, line) + } + if len(toastLines) > 0 { + sections = append(sections, "## Toast Online Menu\n\n"+strings.Join(toastLines, "\n")) + } + } + + if len(records) == 0 { + return nil + } + if pageTitle == "" { + pageTitle = wave3PRIRFirstNonEmpty(siteName, "Restaurant Online Menu") + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Restaurant**: "+escapeDeclMarkdownBlock(siteName)) + } + if len(bullets) > 0 { + md = append(md, strings.Join(bullets, "\n")) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, sections...) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #258 schema-menu ────────────────────────────────────────────────────────────────────────────── + +func wave3PRIRCollectMenuJSONLD(rawHTML, baseURL string, records *[]map[string]any, links *[]string, seenLinks map[string]bool, lines *[]string) bool { + foundMenu := false + objs := ExtractJSONLDObjects(rawHTML, 80) + + var visitMenuSection func(sec map[string]any, menuName string) + var visitMenu func(menu map[string]any) + + addMenuItem := func(item map[string]any, sectionName string) { + if len(*records) >= wave3PRIRMaxRecords { + return + } + name := wave3PRIRPlain(item["name"], 180) + if name == "" { + return + } + desc := wave3PRIRPlain(item["description"], 300) + price := "" + currency := "" + if offers, ok := item["offers"].(map[string]any); ok { + price = wave3PRIRPlain(offers["price"], 40) + currency = wave3PRIRPlain(offers["priceCurrency"], 16) + } + diet := wave3PRIRPlain(item["suitableForDiet"], 80) + u := wave3PRIRAddLink(links, seenLinks, jsonScalarToString(item["url"]), baseURL) + + rec := map[string]any{"name": name, "kind": "MenuItem"} + if sectionName != "" { + rec["section"] = sectionName + } + if price != "" { + rec["price"] = price + } + if currency != "" { + rec["priceCurrency"] = currency + } + if desc != "" { + rec["description"] = desc + } + if diet != "" { + rec["diet"] = diet + } + if u != "" { + rec["url"] = u + } + *records = append(*records, rec) + + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if price != "" { + if currency != "" { + line += " (" + currency + " " + price + ")" + } else { + line += " ($" + price + ")" + } + } + if desc != "" { + line += " — " + escapeDeclMarkdownBlock(desc) + } + *lines = append(*lines, line) + } + + visitMenuSection = func(sec map[string]any, menuName string) { + foundMenu = true + secName := wave3PRIRPlain(sec["name"], 160) + secURL := wave3PRIRAddLink(links, seenLinks, jsonScalarToString(sec["url"]), baseURL) + itemCount := 0 + if rawItems, ok := sec["hasMenuItem"]; ok { + for _, it := range wave3PRIRAsSlice(rawItems) { + if im, okIM := it.(map[string]any); okIM { + addMenuItem(im, secName) + itemCount++ + } + } + } + if itemCount == 0 && secName != "" && len(*records) < wave3PRIRMaxRecords { + rec := map[string]any{"name": secName, "kind": "MenuSection"} + if menuName != "" { + rec["menu"] = menuName + } + if secURL != "" { + rec["url"] = secURL + } + *records = append(*records, rec) + if secURL != "" { + *lines = append(*lines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(secName), secURL)) + } else { + *lines = append(*lines, "- "+escapeDeclMarkdownBlock(secName)) + } + } + if rawSubSecs, ok := sec["hasMenuSection"]; ok { + for _, sub := range wave3PRIRAsSlice(rawSubSecs) { + if sm, okSM := sub.(map[string]any); okSM { + visitMenuSection(sm, menuName) + } + } + } + } + + visitMenu = func(menu map[string]any) { + foundMenu = true + menuName := wave3PRIRPlain(menu["name"], 160) + if rawSecs, ok := menu["hasMenuSection"]; ok { + for _, s := range wave3PRIRAsSlice(rawSecs) { + if sm, okSM := s.(map[string]any); okSM { + visitMenuSection(sm, menuName) + } + } + } + if rawItems, ok := menu["hasMenuItem"]; ok { + for _, it := range wave3PRIRAsSlice(rawItems) { + if im, okIM := it.(map[string]any); okIM { + addMenuItem(im, menuName) + } + } + } + if len(*records) == 0 && menuName != "" { + rec := map[string]any{"name": menuName, "kind": "Menu"} + if u := wave3PRIRAddLink(links, seenLinks, jsonScalarToString(menu["url"]), baseURL); u != "" { + rec["url"] = u + } + *records = append(*records, rec) + *lines = append(*lines, "- "+escapeDeclMarkdownBlock(menuName)) + } + } + + for _, obj := range objs { + if wave3PRIRHasSchemaType(obj, "Menu") { + visitMenu(obj) + } else if wave3PRIRHasSchemaType(obj, "MenuSection") { + visitMenuSection(obj, "") + } else if wave3PRIRHasSchemaType(obj, "MenuItem") { + foundMenu = true + addMenuItem(obj, "") + } else if hm, ok := obj["hasMenu"]; ok && hm != nil { + for _, entry := range wave3PRIRAsSlice(hm) { + if mm, okMM := entry.(map[string]any); okMM { + visitMenu(mm) + } + } + } + } + return foundMenu && len(*records) > 0 +} + +func wave3PRIRAsSlice(v any) []any { + if v == nil { + return nil + } + if s, ok := v.([]any); ok { + return s + } + return []any{v} +} + +func wave3PRIRExtractSchemaMenuHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !hasJSONLDScriptToken(rawHTML) { + return nil + } + lower := wave3PRIRProbeLower(rawHTML, 512*1024) + if !wave3PRIRContainsAny(lower, `"menu"`, `"menusection"`, `"menuitem"`, `"hasmenu"`, `"hasmenusection"`, `"hasmenuitem"`) { + return nil + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var lines []string + if !wave3PRIRCollectMenuJSONLD(rawHTML, baseURL, &records, &links, seenLinks, &lines) { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 256*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Restaurant Menu" + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Restaurant**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Menu\n\n"+strings.Join(lines, "\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #259 q4-ir ──────────────────────────────────────────────────────────────────────────────────── + +func wave3PRIRFormatQ4IRJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + root, ok := parsed.(map[string]any) + if !ok || root == nil { + return nil, false + } + + var items []any + modeKind := "" + if arr, okA := root["GetPressReleaseListResult"].([]any); okA { + items = arr + modeKind = "press-releases" + } else if arr, okA := root["GetNewsReleaseListResult"].([]any); okA { + items = arr + modeKind = "press-releases" + } else if arr, okA := root["GetEventListResult"].([]any); okA { + items = arr + modeKind = "events" + } else if det, okD := root["GetPressReleaseDetailResult"].(map[string]any); okD { + items = []any{det} + modeKind = "press-release-detail" + } else if det, okD := root["GetEventDetailResult"].(map[string]any); okD { + items = []any{det} + modeKind = "event-detail" + } + + if len(items) == 0 { + return nil, false + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + for _, rawItem := range items { + if len(records) >= wave3PRIRMaxRecords { + break + } + m, okM := rawItem.(map[string]any) + if !okM { + continue + } + title := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(m["Headline"]), jsonScalarToString(m["Title"])), 240) + if title == "" { + continue + } + dateStr := wave3PRIRPlain(wave3PRIRFirstNonEmpty( + jsonScalarToString(m["PressReleaseDate"]), + jsonScalarToString(m["StartDate"]), + jsonScalarToString(m["Date"]), + ), 64) + detailURL := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(m["LinkToDetailPage"]), origURL) + webcastURL := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(m["WebcastLink"]), origURL) + summary := wave3PRIRPlain(wave3PRIRFirstNonEmpty( + wave3PRIRCleanText(jsonScalarToString(m["ShortBody"])), + wave3PRIRCleanText(jsonScalarToString(m["Body"])), + ), 360) + + rec := map[string]any{ + "title": title, + "kind": modeKind, + "source": "q4-ir", + } + if dateStr != "" { + rec["date"] = dateStr + } + if detailURL != "" { + rec["url"] = detailURL + } + if webcastURL != "" { + rec["webcastUrl"] = webcastURL + } + if summary != "" { + rec["summary"] = summary + } + records = append(records, rec) + + hdr := "### " + escapeDeclMarkdownBrackets(title) + if detailURL != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), detailURL) + } + var meta []string + if dateStr != "" { + meta = append(meta, "Date: "+dateStr) + } + if webcastURL != "" { + meta = append(meta, "[Webcast]("+webcastURL+")") + } + var part []string + part = append(part, hdr) + if len(meta) > 0 { + part = append(part, "- "+strings.Join(meta, " | ")) + } + if summary != "" { + part = append(part, escapeDeclMarkdownBlock(summary)) + } + blocks = append(blocks, strings.Join(part, "\n")) + } + + if len(records) == 0 { + return nil, false + } + + docTitle := "Investor Relations Press Releases" + if modeKind == "events" || modeKind == "event-detail" { + docTitle = "Investor Relations Events" + } + if u, err := url.Parse(origURL); err == nil && u.Hostname() != "" { + docTitle = u.Hostname() + " — " + docTitle + } + md := "# " + escapeDeclMarkdownBlock(docTitle) + "\n\n" + strings.Join(blocks, "\n\n") + return &DeclarativeFormattedDoc{ + Title: docTitle, + Markdown: md, + Links: links, + Records: records, + }, true +} + +func wave3PRIRExtractQ4IRHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "q4cdn.com", + "q4web.com", + "pressrelease.svc", + "event.svc", + "q4-ir", + "module-news", + "module-event", + "irw-", + ) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Investor Relations" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + if hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 40) { + if len(records) >= wave3PRIRMaxRecords { + break + } + if !wave3PRIRHasSchemaType(obj, "NewsArticle", "Article", "Event", "Report") { + continue + } + title := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(obj["headline"]), jsonScalarToString(obj["name"])), 240) + if title == "" { + continue + } + dateStr := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(obj["datePublished"]), jsonScalarToString(obj["startDate"])), 64) + u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL) + rec := map[string]any{"title": title, "source": "q4-ir"} + if dateStr != "" { + rec["date"] = dateStr + } + if u != "" { + rec["url"] = u + } + records = append(records, rec) + hdr := "### " + escapeDeclMarkdownBrackets(title) + if u != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), u) + } + if dateStr != "" { + hdr += "\n- Date: " + dateStr + } + blocks = append(blocks, hdr) + } + } + + if len(records) == 0 { + for _, item := range doc.Select(`.module_item, .module-news_item, .module-event_item, .irw-news-item, article`, 60) { + if len(records) >= wave3PRIRMaxRecords { + break + } + title := SanitizeSchemaPlainField(item.Text(`.module_headline, .module-news_title, .module-event_title, h2, h3, a`), 240) + if title == "" { + continue + } + dateStr := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.module_date-text, .module-news_date, time`), + wave3PRIRRxQ4Date.FindString(item.Text()), + ), 64) + href := "" + if a := item.First(`a[href]`); a != nil { + href = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + } + rec := map[string]any{"title": title, "source": "q4-ir"} + if dateStr != "" { + rec["date"] = dateStr + } + if href != "" { + rec["url"] = href + } + records = append(records, rec) + hdr := "### " + escapeDeclMarkdownBrackets(title) + if href != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), href) + } + if dateStr != "" { + hdr += "\n- Date: " + dateStr + } + blocks = append(blocks, hdr) + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Company**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Investor Releases & Events\n\n"+strings.Join(blocks, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #260 ir-portal-pack & #261 company-newsrooms Shared RSS Formatter ───────────────────────────── + +func wave3PRIRFormatRSSXML(rawBody, origURL, source string) (*DeclarativeFormattedDoc, bool) { + lowerHead := asciiLowerExtractString(rawBody[:minInt(len(rawBody), 1200)]) + if !strings.Contains(lowerHead, "<rss") && !strings.Contains(lowerHead, "<feed") && !strings.Contains(lowerHead, "<rdf:rdf") { + return nil, false + } + feedDoc, feedLinks := FormatFeedXMLToMarkdown(rawBody, origURL) + if feedDoc == nil || strings.TrimSpace(feedDoc.Markdown) == "" { + return nil, false + } + + var records []map[string]any + lowerXML := asciiLowerExtractString(rawBody) + openTag, closeTag := "<item", "</item>" + if !strings.Contains(lowerXML, "<item") && strings.Contains(lowerXML, "<entry") { + openTag, closeTag = "<entry", "</entry>" + } + pos := 0 + for len(records) < wave3PRIRMaxRecords { + rel := strings.Index(lowerXML[pos:], openTag) + if rel < 0 { + break + } + start := pos + rel + gt := strings.IndexByte(lowerXML[start:], '>') + if gt < 0 { + break + } + bodyStart := start + gt + 1 + endRel := strings.Index(lowerXML[bodyStart:], closeTag) + if endRel < 0 { + break + } + block := rawBody[bodyStart : bodyStart+endRel] + pos = bodyStart + endRel + len(closeTag) + + itTitle := SanitizeSchemaPlainField(wave3PRIRCleanText(matchFirstXMLTagFmtGo(block, []string{"title"})), 240) + itLink := SanitizeSchemaHTTPSURL(matchFirstXMLTagFmtGo(block, []string{"link", "guid"}), origURL) + itDate := SanitizeSchemaPlainField(matchFirstXMLTagFmtGo(block, []string{"pubDate", "published", "updated", "dc:date"}), 64) + itDesc := SanitizeSchemaPlainField(wave3PRIRCleanText(matchFirstXMLTagFmtGo(block, []string{"description", "summary"})), 300) + if itTitle == "" { + continue + } + rec := map[string]any{"title": itTitle, "source": source} + if itLink != "" { + rec["url"] = itLink + } + if itDate != "" { + rec["publishedAt"] = itDate + } + if itDesc != "" { + rec["description"] = itDesc + } + records = append(records, rec) + } + if len(records) == 0 { + return nil, false + } + + title := feedDoc.Title + if title == "" { + title = "Press Releases Feed" + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: feedDoc.Description, + Markdown: feedDoc.Markdown, + Links: feedLinks, + Records: records, + }, true +} + +// ── #260 ir-portal-pack ─────────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractIRPortalPackHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hasMarker := wave3PRIRContainsAny(lower, + "wd_newsfeed", + "wd_item_", + "wd_script_id", + "equisolve", + "irwebsites", + "nir-widget", + "ir-news", + ) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Investor Relations Portal" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + // Discover RSS feed links + for _, linkEl := range doc.Select(`link[type="application/rss+xml"], link[type="application/atom+xml"]`, 10) { + wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(linkEl, "href"), baseURL) + } + + // Notified / Intrado (`wd_item`), Nasdaq IR (`nir-news`), Equisolve release rows + for _, item := range doc.Select(`.wd_item, .wd_newsfeed_releases .wd_item, .nir-widget--news .nir-widget--list .nir-widget--item, .press-release-item, article`, 60) { + if len(records) >= wave3PRIRMaxRecords { + break + } + title := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.wd_title, .nir-widget--news--headline, h2, h3`), + item.Text(`a`), + ), 240) + if title == "" { + continue + } + dateStr := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.wd_date, .nir-widget--news--date-time, time`), + wave3PRIRRxQ4Date.FindString(item.Text()), + ), 64) + summary := SanitizeSchemaPlainField(item.Text(`.wd_subtitle, .wd_summary, p`), 300) + href := "" + if a := item.First(`.wd_title a, a[href]`); a != nil { + href = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + } + rec := map[string]any{"title": title, "source": "ir-portal-pack"} + if dateStr != "" { + rec["date"] = dateStr + } + if href != "" { + rec["url"] = href + } + if summary != "" { + rec["summary"] = summary + } + records = append(records, rec) + + hdr := "### " + escapeDeclMarkdownBrackets(title) + if href != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), href) + } + if dateStr != "" { + hdr += "\n- Date: " + dateStr + } + if summary != "" { + hdr += "\n" + escapeDeclMarkdownBlock(summary) + } + blocks = append(blocks, hdr) + } + + // JSON-LD Corporation / NewsArticle fallback (e.g. Equisolve IR homepages) + if len(records) == 0 && hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 32) { + if len(records) >= wave3PRIRMaxRecords { + break + } + if !wave3PRIRHasSchemaType(obj, "Corporation", "Organization", "NewsArticle", "WebSite") { + continue + } + name := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(obj["headline"]), jsonScalarToString(obj["name"])), 240) + if name == "" { + continue + } + u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL) + ticker := wave3PRIRPlain(obj["tickerSymbol"], 32) + rec := map[string]any{"name": name, "source": "ir-portal-pack"} + if ticker != "" { + rec["ticker"] = ticker + } + if u != "" { + rec["url"] = u + } + records = append(records, rec) + line := "- **" + escapeDeclMarkdownBlock(name) + "**" + if ticker != "" { + line += " (`" + ticker + "`)" + } + if u != "" { + line += " — " + u + } + blocks = append(blocks, line) + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Company**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Investor News & Releases\n\n"+strings.Join(blocks, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} + +// ── #261 company-newsrooms ──────────────────────────────────────────────────────────────────────── + +func wave3PRIRExtractCompanyNewsroomsHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + lower := wave3PRIRProbeLower(rawHTML, 256*1024) + hostLower := "" + if u, err := url.Parse(strings.TrimSpace(baseURL)); err == nil { + hostLower = strings.ToLower(u.Hostname()) + } + hasMarker := strings.Contains(hostLower, "cision.com") || wave3PRIRContainsAny(lower, + "prowly", + "pr-story", + "prezly", + "theme-assets.prezly.com", + "news.cision.com", + "multimedia.cision.com", + "cision.com", + "cision-", + "cision_", + "cisionweb", + "prnewswire", + "powered by cision", + ) + if !hasMarker { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + pageTitle, siteName, pageDesc := wave3PRIRPageMeta(doc) + if pageTitle == "" { + pageTitle = "Company Newsroom" + } + + var records []map[string]any + var links []string + seenLinks := map[string]bool{} + var blocks []string + + // Discover RSS/Atom feed links + for _, linkEl := range doc.Select(`link[type="application/rss+xml"], link[type="application/atom+xml"]`, 10) { + wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(linkEl, "href"), baseURL) + } + + // JSON-LD NewsArticle / Article + if hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 40) { + if len(records) >= wave3PRIRMaxRecords { + break + } + if !wave3PRIRHasSchemaType(obj, "NewsArticle", "Article", "BlogPosting") { + continue + } + title := wave3PRIRPlain(wave3PRIRFirstNonEmpty(jsonScalarToString(obj["headline"]), jsonScalarToString(obj["name"])), 240) + if title == "" { + continue + } + dateStr := wave3PRIRPlain(obj["datePublished"], 64) + desc := wave3PRIRPlain(obj["description"], 300) + u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(obj["url"]), baseURL) + rec := map[string]any{"title": title, "source": "company-newsrooms"} + if dateStr != "" { + rec["publishedAt"] = dateStr + } + if u != "" { + rec["url"] = u + } + if desc != "" { + rec["description"] = desc + } + records = append(records, rec) + hdr := "### " + escapeDeclMarkdownBrackets(title) + if u != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), u) + } + if dateStr != "" { + hdr += "\n- Published: " + dateStr + } + if desc != "" { + hdr += "\n" + escapeDeclMarkdownBlock(desc) + } + blocks = append(blocks, hdr) + } + } + + // Prowly (.pr-story), Prezly (story-card), Cision (.release-item / article) + if len(records) == 0 { + for _, item := range doc.Select(`.pr-story, .story-card, [class*="StoryCard"], .release-item, .cision-article, article`, 60) { + if len(records) >= wave3PRIRMaxRecords { + break + } + title := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`.pr-story-title, h2, h3, h4`), + item.Text(`a`), + ), 240) + if title == "" { + continue + } + dateStr := SanitizeSchemaPlainField(wave3PRIRFirstNonEmpty( + item.Text(`time, .date, .published-at`), + wave3PRIRRxQ4Date.FindString(item.Text()), + ), 64) + summary := SanitizeSchemaPlainField(item.Text(`p, .summary, .pr-story-lead`), 300) + href := "" + if a := item.First(`a[href]`); a != nil { + href = wave3PRIRAddLink(&links, seenLinks, wave3PRIRNodeAttr(a, "href"), baseURL) + } + rec := map[string]any{"title": title, "source": "company-newsrooms"} + if dateStr != "" { + rec["publishedAt"] = dateStr + } + if href != "" { + rec["url"] = href + } + if summary != "" { + rec["description"] = summary + } + records = append(records, rec) + hdr := "### " + escapeDeclMarkdownBrackets(title) + if href != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), href) + } + if dateStr != "" { + hdr += "\n- Published: " + dateStr + } + if summary != "" { + hdr += "\n" + escapeDeclMarkdownBlock(summary) + } + blocks = append(blocks, hdr) + } + } + + // Prezly Next.js __NEXT_DATA__ stories fallback + if len(records) == 0 && strings.Contains(rawHTML, "__NEXT_DATA__") { + if nd, ok := wave3PRIRExtractNextData(rawHTML); ok { + if props, okP := nd["props"].(map[string]any); okP { + if pageProps, okPP := props["pageProps"].(map[string]any); okPP { + if stories, okS := pageProps["stories"].([]any); okS { + for _, st := range stories { + if len(records) >= wave3PRIRMaxRecords { + break + } + sm, okSM := st.(map[string]any) + if !okSM { + continue + } + title := wave3PRIRPlain(sm["title"], 240) + if title == "" { + continue + } + dateStr := wave3PRIRPlain(sm["published_at"], 64) + sub := wave3PRIRPlain(sm["subtitle"], 300) + u := wave3PRIRAddLink(&links, seenLinks, jsonScalarToString(sm["url"]), baseURL) + rec := map[string]any{"title": title, "source": "company-newsrooms"} + if dateStr != "" { + rec["publishedAt"] = dateStr + } + if u != "" { + rec["url"] = u + } + if sub != "" { + rec["description"] = sub + } + records = append(records, rec) + hdr := "### " + escapeDeclMarkdownBrackets(title) + if u != "" { + hdr = fmt.Sprintf("### [%s](%s)", escapeDeclMarkdownBrackets(title), u) + } + blocks = append(blocks, hdr) + } + } + } + } + } + } + + if len(records) == 0 { + return nil + } + var md []string + md = append(md, "# "+escapeDeclMarkdownBlock(pageTitle)) + if siteName != "" { + md = append(md, "- **Newsroom**: "+escapeDeclMarkdownBlock(siteName)) + } + if pageDesc != "" { + md = append(md, escapeDeclMarkdownBlock(pageDesc)) + } + md = append(md, "## Stories & Press Releases\n\n"+strings.Join(blocks, "\n\n")) + + return wave3PRIRFinalizeResult(&DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: pageDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: records, + }) +} diff --git a/internal/extract/wave3_prop_rest_ir_test.go b/internal/extract/wave3_prop_rest_ir_test.go new file mode 100644 index 0000000..027b942 --- /dev/null +++ b/internal/extract/wave3_prop_rest_ir_test.go @@ -0,0 +1,287 @@ +package extract + +import ( + "encoding/json" + "strings" + "testing" + + "github.com/bartrumb/edgefetch/v2/internal/classify" +) + +func TestWave3PropRestIRModesRegistered(t *testing.T) { + modes := []string{ + "appfolio_listings_html", + "pm_listing_widgets_html", + "multifamily_portals_html", + "idx_broker_showcase_html", + "popmenu_html", + "bentobox_html", + "square_toast_menu_html", + "schema_menu_html", + "q4_ir_html", + "ir_portal_pack_html", + "company_newsrooms_html", + } + externalHTMLModesMu.RLock() + defer externalHTMLModesMu.RUnlock() + for _, m := range modes { + if _, ok := externalHTMLModesLazy[m]; !ok { + t.Fatalf("RegisterExternalHTMLModeLazy missing mode %q", m) + } + } +} + +func TestWave3PropRestIRHTMLPositiveAndGuards(t *testing.T) { + // #251 appfolio-listings (list + detail + /page-not-found-sub rejection) + afHTML := `<!doctype html><html><head><title>Rental Listings

Available Listings

1234 Sunset Blvd #204

$2,450/mo | 2 bd | 1 ba | 920 sq ft
` + afRes := Wave3PropRestIRRunHTML("appfolio_listings_html", afHTML, "https://lapmg.appfolio.com/listings", "") + if afRes == nil || afRes.ExtractorID != "appfolio-listings" || !strings.Contains(afRes.Markdown, "1234 Sunset Blvd #204") || !strings.Contains(afRes.Markdown, "$2,450") { + t.Fatalf("appfolio-listings positive failed: %+v", afRes) + } + afSoft404 := `Page not found | AppFolio

Page not found

` + if bad := Wave3PropRestIRRunHTML("appfolio_listings_html", afSoft404, "https://www.appfolio.com/page-not-found-sub", ""); bad != nil { + t.Fatalf("appfolio-listings must reject /page-not-found-sub, got %+v", bad) + } + + // #252 pm-listing-widgets (Buildium + Propertyware) + pmHTML := `Rentals | Portland PM
` + pmRes := Wave3PropRestIRRunHTML("pm_listing_widgets_html", pmHTML, "https://portland.managebuilding.com/Resident/public/rentals", "") + if pmRes == nil || pmRes.ExtractorID != "pm-listing-widgets" || !strings.Contains(pmRes.Markdown, "Buildium") || !strings.Contains(pmRes.Markdown, "742 NW Flanders St") { + t.Fatalf("pm-listing-widgets Buildium failed: %+v", pmRes) + } + pwHTML := `Rentals

910 Oak Ave

$1,650/mo | 2 bd | 2 ba

Details
` + pwRes := Wave3PropRestIRRunHTML("pm_listing_widgets_html", pwHTML, "https://acme.propertyware.com/rentals", "") + if pwRes == nil || !strings.Contains(pwRes.Markdown, "Propertyware") { + t.Fatalf("pm-listing-widgets Propertyware failed: %+v", pwRes) + } + + // #253 multifamily-portals (Jonah/RentCafe + .ashx guard) + mfHTML := `Floor Plans | Canvas at Midlothian

The Oakwood

$1,725/mo | 2 Bed | 2 Bath | 1,080 sq ft
` + mfRes := Wave3PropRestIRRunHTML("multifamily_portals_html", mfHTML, "https://www.canvasatmidlothian.com/", "") + if mfRes == nil || mfRes.ExtractorID != "multifamily-portals" || !strings.Contains(mfRes.Markdown, "The Oakwood") { + t.Fatalf("multifamily-portals failed: %+v", mfRes) + } + if ashx := Wave3PropRestIRRunHTML("multifamily_portals_html", mfHTML, "https://www.rentcafe.com/availableunits.ashx", ""); ashx != nil { + t.Fatalf("multifamily-portals must reject .ashx URLs disallowed by robots.txt") + } + + // #254 idx-broker-showcase (Showcase IDX + IDX Broker) + sidxHTML := `Featured Homes | Entity Realty

410 Barton Springs Rd

$685,000 | 3 Bed | 2.5 Bath | 2,140 sq ft

` + idxRes := Wave3PropRestIRRunHTML("idx_broker_showcase_html", sidxHTML, "https://entityrealty.com/", "") + if idxRes == nil || idxRes.ExtractorID != "idx-broker-showcase" || !strings.Contains(idxRes.Markdown, "ATX99812") || !strings.Contains(idxRes.Markdown, "Entity Realty") { + t.Fatalf("idx-broker-showcase Showcase failed: %+v", idxRes) + } + idxBrokerHTML := `Home Search
88 Pine StMLS100

$540,000 | 3 Bed | 2 Bath

View
` + idxBRes := Wave3PropRestIRRunHTML("idx_broker_showcase_html", idxBrokerHTML, "https://demo.idxbroker.com/idx/results/listings", "") + if idxBRes == nil || !strings.Contains(idxBRes.Markdown, "88 Pine St") { + t.Fatalf("idx-broker-showcase IDX Broker failed: %+v", idxBRes) + } + + // #255 popmenu + popHTML := `Menu | Sample Bistro

Wood-Fired Margherita

$18.50

San Marzano tomatoes and basil.

` + popRes := Wave3PropRestIRRunHTML("popmenu_html", popHTML, "https://samplebistro.popmenu.com/menu", "") + if popRes == nil || popRes.ExtractorID != "popmenu" || !strings.Contains(popRes.Markdown, "Wood-Fired Margherita") { + t.Fatalf("popmenu failed: %+v", popRes) + } + + // #256 bentobox + bentoHTML := `Menu | Gramercy Tavern` + bentoRes := Wave3PropRestIRRunHTML("bentobox_html", bentoHTML, "https://www.gramercytavern.com/dining-room-menu/", "") + if bentoRes == nil || bentoRes.ExtractorID != "bentobox" || !strings.Contains(bentoRes.Markdown, "Roasted Maitake Mushrooms") { + t.Fatalf("bentobox failed: %+v", bentoRes) + } + + // #257 square-toast-menu (Square restaurant + Toast order.toasttab.com) + sqRestHTML := `Online Menu
` + sqRes := Wave3PropRestIRRunHTML("square_toast_menu_html", sqRestHTML, "https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR", "") + if sqRes == nil || sqRes.ExtractorID != "square-toast-menu" || !strings.Contains(sqRes.Markdown, "Rincon MX Restaurant") || !strings.Contains(sqRes.Markdown, "Tacos & Bowls") { + t.Fatalf("square-toast-menu Square failed: %+v", sqRes) + } + toastHTML := `Order Online | Over the Counter

Classic Smash Burger

$14.50

Double patty, cheddar, house sauce

` + toastRes := Wave3PropRestIRRunHTML("square_toast_menu_html", toastHTML, "https://order.toasttab.com/online/over-the-counter-3", "") + if toastRes == nil || toastRes.ExtractorID != "square-toast-menu" || !strings.Contains(toastRes.Markdown, "Classic Smash Burger") { + t.Fatalf("square-toast-menu Toast failed: %+v", toastRes) + } + + // #258 schema-menu (Menu JSON-LD positive + plain Restaurant non-hijack guard) + menuLD := `Menu | Chili's

Chili's Menu

` + smRes := Wave3PropRestIRRunHTML("schema_menu_html", menuLD, "https://www.chilis.com/menu", "") + if smRes == nil || smRes.ExtractorID != "schema-menu" || !strings.Contains(smRes.Markdown, "Skillet Queso") || !strings.Contains(smRes.Markdown, "USD 11.29") { + t.Fatalf("schema-menu positive failed: %+v", smRes) + } + plainRestaurantLD := `Tartine Bakery

Tartine

` + if hijacked := Wave3PropRestIRRunHTML("schema_menu_html", plainRestaurantLD, "https://tartinebakery.com/", ""); hijacked != nil { + t.Fatalf("schema-menu MUST NOT hijack plain Restaurant without Menu/MenuSection/MenuItem/hasMenu, got %+v", hijacked) + } + + // #259 q4-ir HTML + q4HTML := `News | Braze IR` + q4Res := Wave3PropRestIRRunHTML("q4_ir_html", q4HTML, "https://investors.braze.com/news", "") + if q4Res == nil || q4Res.ExtractorID != "q4-ir" || !strings.Contains(q4Res.Markdown, "Braze Reports Q3 Fiscal Results") { + t.Fatalf("q4-ir HTML failed: %+v", q4Res) + } + + // #260 ir-portal-pack HTML (Notified/Intrado + Equisolve) + irNotified := `Press Releases | Iridium
Nov 10, 2026
New satellite constellation milestones achieved.
` + irRes := Wave3PropRestIRRunHTML("ir_portal_pack_html", irNotified, "https://investor.iridium.com/press-releases", "") + if irRes == nil || irRes.ExtractorID != "ir-portal-pack" || !strings.Contains(irRes.Markdown, "Iridium Expands Direct-to-Device Network") { + t.Fatalf("ir-portal-pack HTML failed: %+v", irRes) + } + + // #261 company-newsrooms HTML (Prowly) + prowlyHTML := `Residence Newsroom

Residence Launches New Anthology

Annual Nordic design book.

` + cnRes := Wave3PropRestIRRunHTML("company_newsrooms_html", prowlyHTML, "https://residence.prowly.com/", "") + if cnRes == nil || cnRes.ExtractorID != "company-newsrooms" || !strings.Contains(cnRes.Markdown, "Residence Launches New Anthology") { + t.Fatalf("company-newsrooms HTML failed: %+v", cnRes) + } + + // RunWave3PropRestIRHTMLMode smoke test + if encoded, okEnc := RunWave3PropRestIRHTMLMode("schema_menu_html", menuLD, "https://www.chilis.com/menu"); !okEnc || !json.Valid([]byte(encoded)) { + t.Fatalf("RunWave3PropRestIRHTMLMode failed: ok=%v", okEnc) + } +} + +func TestWave3PropRestIRJSONAndRSSModes(t *testing.T) { + // #259 q4_ir_json PressRelease + Event + empty rejection + q4PR := `{"GetPressReleaseListResult":[{"Headline":"Q4 Systems Reports Record Q3","PressReleaseDate":"11/12/2026 08:00:00","LinkToDetailPage":"https://mtr.q4web.com/news/q3","ShortBody":"Revenue up 24% YoY."}]}` + prDoc, ok := FormatWave3PropRestIRJSONDoc("q4_ir_json", []byte(q4PR), nil, "https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList") + if !ok || prDoc == nil || !strings.Contains(prDoc.Markdown, "Q4 Systems Reports Record Q3") { + t.Fatalf("q4_ir_json press release failed: ok=%v doc=%+v", ok, prDoc) + } + q4Ev := `{"GetEventListResult":[{"Title":"Q3 Earnings Call","StartDate":"12/04/2026 17:00:00","LinkToDetailPage":"https://investors.braze.com/events/q3","WebcastLink":"https://events.q4inc.com/attendee/123"}]}` + evDoc, okEv := FormatWave3PropRestIRJSONDoc("q4_ir_json", []byte(q4Ev), nil, "https://investors.braze.com/feed/Event.svc/GetEventList") + if !okEv || evDoc == nil || !strings.Contains(evDoc.Markdown, "Q3 Earnings Call") { + t.Fatalf("q4_ir_json event failed: ok=%v doc=%+v", okEv, evDoc) + } + if _, okEmpty := FormatWave3PropRestIRJSONDoc("q4_ir_json", []byte(`{"GetPressReleaseListResult":[]}`), nil, "https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList"); okEmpty { + t.Fatalf("q4_ir_json empty result must return false") + } + if encoded, okMode := FormatWave3PropRestIRJSONMode("q4_ir_json", []byte(q4PR), nil, "https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList"); !okMode || !json.Valid([]byte(encoded)) { + t.Fatalf("FormatWave3PropRestIRJSONMode failed") + } + + // #260 ir_portal_rss_xml + #261 company_newsroom_rss_xml + rssXML := `Bowhead Press ReleasesBowhead Reports Q3https://ir.bowheadspecialty.com/news/q3Wed, 04 Nov 2026 21:00:00 GMTStrong underwriting growth.` + irRSSDoc, okIR := FormatWave3PropRestIRTextDoc("ir_portal_rss_xml", rssXML, nil, "https://ir.bowheadspecialty.com/news-events/press-releases/rss") + if !okIR || irRSSDoc == nil || !strings.Contains(irRSSDoc.Markdown, "Bowhead Reports Q3") { + t.Fatalf("ir_portal_rss_xml failed: ok=%v doc=%+v", okIR, irRSSDoc) + } + cnRSSDoc, okCN := FormatWave3PropRestIRTextDoc("company_newsroom_rss_xml", rssXML, nil, "https://residence.prowly.com/rss") + if !okCN || cnRSSDoc == nil || !strings.Contains(cnRSSDoc.Markdown, "Bowhead Reports Q3") { + t.Fatalf("company_newsroom_rss_xml failed: ok=%v doc=%+v", okCN, cnRSSDoc) + } + if _, okEmptyRSS := FormatWave3PropRestIRTextDoc("company_newsroom_rss_xml", `Empty`, nil, "https://residence.prowly.com/rss"); okEmptyRSS { + t.Fatalf("empty RSS feed must fail") + } + if encoded, okMode := FormatWave3PropRestIRTextMode("ir_portal_rss_xml", rssXML, nil, "https://ir.bowheadspecialty.com/news-events/press-releases/rss"); !okMode || !json.Valid([]byte(encoded)) { + t.Fatalf("FormatWave3PropRestIRTextMode failed") + } +} + +func TestWave3PropRestIRNegativeShellsAcrossAllModes(t *testing.T) { + modes := []string{ + "appfolio_listings_html", + "pm_listing_widgets_html", + "multifamily_portals_html", + "idx_broker_showcase_html", + "popmenu_html", + "bentobox_html", + "square_toast_menu_html", + "schema_menu_html", + "q4_ir_html", + "ir_portal_pack_html", + "company_newsrooms_html", + } + negShells := []struct { + name string + url string + html string + }{ + { + name: "404-not-found", + url: "https://example.com/404", + html: `404 Page Not Found

Not Found

`, + }, + { + name: "redirect-to-error", + url: "https://example.com/error", + html: `Error

Error

`, + }, + { + name: "appfolio-page-not-found-sub", + url: "https://www.appfolio.com/page-not-found-sub", + html: `Page not found | AppFolio
Fake
`, + }, + { + name: "cloudflare-challenge", + url: "https://order.toasttab.com/online/demo", + html: `Just a moment...
Checking your browser
`, + }, + { + name: "waf-403-forbidden", + url: "https://demo.idxbroker.com/idx/results", + html: `403 Forbidden

403 Forbidden

You don't have permission to access this resource.

`, + }, + { + name: "maintenance-503", + url: "https://example.com/listings", + html: `503 Service Unavailable

Scheduled Maintenance

This site is down for maintenance.

`, + }, + { + name: "empty-spa-shell", + url: "https://example.com/menu", + html: `Loading...
`, + }, + } + + for _, m := range modes { + for _, tc := range negShells { + if got := Wave3PropRestIRRunHTML(m, tc.html, tc.url, ""); got != nil { + t.Fatalf("mode %q leaked on negative shell %q: %+v", m, tc.name, got) + } + } + } + + // Verify content_state classifies AppFolio soft-404 & Cloudflare challenge as non-active + csAF := classify.ClassifyContentStateFull(classify.ContentStateInput{ + Status: 200, + URL: "https://rpmexpress.appfolio.com/listings", + FinalURL: "https://www.appfolio.com/page-not-found-sub", + RawHTML: `Page not found | AppFolio

Page not found

The page you requested could not be found.

`, + Markdown: "Page not found", + }) + if csAF.State == "active" { + t.Fatalf("AppFolio /page-not-found-sub must never classify as active, got %q", csAF.State) + } +} + +func TestWave3PropRestIRNonHijackAndCisionRegressions(t *testing.T) { + // Finding 1: company-newsrooms MUST NOT hijack articles containing "decision", "precision", etc. + for _, word := range []string{"decision", "precision", "incision"} { + articleHTML := `Editorial on ` + word + `

Making a ` + word + `

Thoughtful analysis on ` + word + ` making in engineering.

` + if got := Wave3PropRestIRRunHTML("company_newsrooms_html", articleHTML, "https://blog.example.org/post", ""); got != nil { + t.Fatalf("company-newsrooms hijacked unrelated article containing %q: %+v", word, got) + } + } + // Positive Cision newsroom MUST still match via Cision-specific markers or host + cisionHTML := `Newsroom | Tietoevry

Tietoevry Reports Q3

Strong cloud revenue growth.

` + if got := Wave3PropRestIRRunHTML("company_newsrooms_html", cisionHTML, "https://news.cision.com/tietoevry", ""); got == nil || got.ExtractorID != "company-newsrooms" { + t.Fatalf("company-newsrooms Cision positive failed: %+v", got) + } + + // Finding 2: ir-portal-pack MUST NOT hijack corporate pages mentioning "corporation" and "press-releases" + corpHTML := `About Acme Corporation

About Acme Corporation

Founded in 1980.

` + if got := Wave3PropRestIRRunHTML("ir_portal_pack_html", corpHTML, "https://www.acme.example.com/about", ""); got != nil { + t.Fatalf("ir-portal-pack hijacked generic corporation + press-releases page: %+v", got) + } + + // Finding 3: idx-broker-showcase MUST NOT hijack standalone RealEstateAgent or Product JSON-LD without IDX/MLS markers + standaloneAgentHTML := `Jane Doe Realty

Jane Doe Realty

` + if got := Wave3PropRestIRRunHTML("idx_broker_showcase_html", standaloneAgentHTML, "https://janedoerealty.example.com/", ""); got != nil { + t.Fatalf("idx-broker-showcase hijacked standalone RealEstateAgent without IDX markers: %+v", got) + } + // Standalone RealEstateAgent MUST resolve cleanly to schema-localbusiness + if lb := Round2RunHTML("schema_localbusiness_html", standaloneAgentHTML, "https://janedoerealty.example.com/", ""); lb == nil || lb.ExtractorID != "schema-localbusiness" { + t.Fatalf("standalone RealEstateAgent should resolve to schema-localbusiness, got %+v", lb) + } +} diff --git a/internal/extract/wave3_schema.go b/internal/extract/wave3_schema.go new file mode 100644 index 0000000..e391629 --- /dev/null +++ b/internal/extract/wave3_schema.go @@ -0,0 +1,1604 @@ +package extract + +import ( + "encoding/json" + "fmt" + "net/url" + "strconv" + "strings" +) + +const ( + wave3SchemaMaxHTMLBytes = 2 * 1024 * 1024 + wave3SchemaMaxEvents = 25 + wave3SchemaMaxListItems = 50 + wave3SchemaMaxRecordsCap = 25 +) + +var ( + wave3SchemaRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\s+found|page\s+cannot\s+be\s+found|not\s+found|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden)(?:\b|$)`) + wave3SchemaRxMaintTitle = 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)`) + wave3SchemaRxErrorTitle = 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)$`) + wave3SchemaRxLoginTitle = newLazyRegexp(`(?i)^(?:log\s*in|sign\s+in|login|authentication\s+required|sso\s+login)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$`) + wave3SchemaRxCurrency3 = newLazyRegexp(`^[A-Z]{3}$`) +) + +func init() { + for _, mode := range []string{ + "schema_vehicle_html", + "schema_faq_howto_html", + "schema_dataset_html", + "schema_software_app_html", + "schema_medical_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3SchemaRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3SchemaHTMLMode reports whether mode is handled by Category D Universal Schema.org extractors (#237-#241). +func IsWave3SchemaHTMLMode(mode string) bool { + switch mode { + case "schema_vehicle_html", + "schema_faq_howto_html", + "schema_dataset_html", + "schema_software_app_html", + "schema_medical_html": + return true + default: + return false + } +} + +func wave3SchemaDefaultExtractorID(mode string) string { + switch mode { + case "schema_vehicle_html": + return "schema-vehicle" + case "schema_faq_howto_html": + return "schema-faq-howto" + case "schema_dataset_html": + return "schema-dataset" + case "schema_software_app_html": + return "schema-software-app" + case "schema_medical_html": + return "schema-medical" + default: + return "" + } +} + +// Wave3SchemaRunHTML executes a Category D Universal Schema.org HTML extractor. +func Wave3SchemaRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3SchemaHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3SchemaMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3SchemaMaxHTMLBytes) + } + trimmed := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmed == "" || trimmed[0] == '{' || trimmed[0] == '[' { + return nil + } + if !hasJSONLDScriptToken(rawHTML) { + return nil + } + if wave3SchemaHasNegativeShell(rawHTML, baseURL) { + return nil + } + if !wave3SchemaPassesModePrefilter(mode, rawHTML, baseURL) { + return nil + } + if extractorID == "" { + extractorID = wave3SchemaDefaultExtractorID(mode) + } + + entities := ExtractJSONLDObjects(rawHTML, 250) + if len(entities) == 0 { + return nil + } + graph := wave3SchemaBuildGraph(entities) + + var res *DeclarativePostFetchResult + switch mode { + case "schema_vehicle_html": + res = wave3SchemaExtractVehicle(graph, rawHTML, baseURL, extractorID) + case "schema_faq_howto_html": + res = wave3SchemaExtractFAQHowTo(graph, rawHTML, baseURL, extractorID) + case "schema_dataset_html": + res = wave3SchemaExtractDataset(graph, rawHTML, baseURL, extractorID) + case "schema_software_app_html": + res = wave3SchemaExtractSoftwareApp(graph, rawHTML, baseURL, extractorID) + case "schema_medical_html": + res = wave3SchemaExtractMedical(graph, rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return res +} + +func wave3SchemaPassesModePrefilter(mode, rawHTML, _ string) bool { + switch mode { + case "schema_vehicle_html": + return wave3SchemaContainsAnyFold(rawHTML, + "vehicle", + "car", + "motorcycle", + "motorizedbicycle", + "vehicleidentificationnumber", + ) + case "schema_faq_howto_html": + return wave3SchemaContainsAnyFold(rawHTML, "faqpage", "howto") + case "schema_dataset_html": + return wave3SchemaContainsAnyFold(rawHTML, "dataset", "datacatalog") + case "schema_software_app_html": + return wave3SchemaContainsAnyFold(rawHTML, "softwareapplication", "webapplication", "mobileapplication") + case "schema_medical_html": + return wave3SchemaContainsAnyFold(rawHTML, + "medicalcondition", + "medicalwebpage", + "medicalclinic", + "physician", + "drug", + ) + default: + return false + } +} + +func wave3SchemaContainsAnyFold(haystack string, needles ...string) bool { + for _, n := range needles { + if indexFoldASCIIExtract(haystack, n) >= 0 { + return true + } + } + return false +} + +func wave3SchemaIsExcludedEventHost(baseURL string) bool { + u, err := url.Parse(strings.TrimSpace(baseURL)) + if err != nil { + return false + } + host := strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") + switch host { + case "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": + return true + default: + return false + } +} + +func wave3SchemaHasCommercePlatformMarkers(rawHTML string) bool { + return wave3SchemaContainsAnyFold(rawHTML, + "shopify.shop", + "myshopify.com", + "cdn.shopify.com", + "woocommerce-", + "squarespace", + "wixstatic", + ) +} + +func wave3SchemaIsNegativeURL(baseURL string) bool { + uLower := strings.ToLower(strings.TrimSpace(baseURL)) + if uLower == "" { + return false + } + if strings.Contains(uLower, "/404") || + strings.Contains(uLower, "/not-found") || + strings.Contains(uLower, "/maintenance") || + strings.Contains(uLower, "error=true") || + strings.Contains(uLower, "error=1") || + strings.Contains(uLower, "404.") { + return true + } + pathOnly := uLower + 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") +} + +func wave3SchemaHasNegativeShell(rawHTML, baseURL string) bool { + if wave3SchemaIsNegativeURL(baseURL) { + return true + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + lower := asciiLowerExtractString(probe) + for _, marker := range []string{ + "cf-browser-verification", + "challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "errors.edgesuite.net", + "you don't have permission to access", + "access denied", + "403 forbidden", + "window.kpsdk", + "kp_uidz", + "_incapsula_resource", + "incapsula incident", + "making sure you're not a bot!", + } { + if strings.Contains(lower, marker) { + return true + } + } + title := extractTitleLinearQuick(probe) + if title != "" && (wave3SchemaRxNotFoundTitle.MatchString(title) || + wave3SchemaRxMaintTitle.MatchString(title) || + wave3SchemaRxErrorTitle.MatchString(title)) { + return true + } + if len(rawHTML) < 48*1024 { + for _, maint := range []string{ + "scheduled maintenance", + "down for maintenance", + "under maintenance", + "temporarily unavailable", + "503 service unavailable", + } { + if strings.Contains(lower, maint) { + return true + } + } + if title != "" && wave3SchemaRxLoginTitle.MatchString(title) { + return true + } + } + if len(rawHTML) < 16384 && + !strings.Contains(lower, "`, + `
`, + `
`, + `
`, + ``, + ``, + } { + if strings.Contains(lower, spa) { + return true + } + } + } + return false +} + +// ── Shared JSON-LD Graph & Field Helpers ──────────────────────────────────────────────────────── + +type wave3SchemaGraph struct { + entities []map[string]any + nestedEntities []map[string]any + byID map[string]map[string]any + allTypes map[string]bool +} + +func wave3SchemaBuildGraph(entities []map[string]any) *wave3SchemaGraph { + g := &wave3SchemaGraph{ + entities: entities, + byID: make(map[string]map[string]any, len(entities)*2), + allTypes: make(map[string]bool, len(entities)*2), + } + visited := 0 + var walk func(node any, depth int, isTop bool) + walk = func(node any, depth int, isTop bool) { + if node == nil || depth > 6 || visited > 500 { + return + } + switch v := node.(type) { + case []any: + for _, el := range v { + if visited > 500 { + break + } + walk(el, depth+1, false) + } + case map[string]any: + visited++ + if !isTop { + g.nestedEntities = append(g.nestedEntities, v) + } + if id, ok := v["@id"].(string); ok { + if tid := strings.TrimSpace(id); tid != "" { + existing, exists := g.byID[tid] + isRich := len(v) > 1 && (v["@type"] != nil || v["name"] != nil || v["text"] != nil || v["streetAddress"] != nil || v["latitude"] != nil) + existingRich := len(existing) > 1 && (existing["@type"] != nil || existing["name"] != nil || existing["text"] != nil || existing["streetAddress"] != nil || existing["latitude"] != nil) + if !exists || (!existingRich && isRich) { + g.byID[tid] = v + } + } + } + for _, t := range normalizeSchemaTypesSchemaGo(v["@type"]) { + g.allTypes[strings.ToLower(t)] = true + } + for k, child := range v { + if k == "@id" || k == "@type" || k == "@context" { + continue + } + switch child.(type) { + case map[string]any, []any: + walk(child, depth+1, false) + } + } + } + } + for _, ent := range entities { + walk(ent, 0, true) + } + return g +} + +func (g *wave3SchemaGraph) hasAnyType(types ...string) bool { + for _, t := range types { + if g.allTypes[strings.ToLower(t)] { + return true + } + } + return false +} + +func (g *wave3SchemaGraph) resolve(v any) map[string]any { + m, ok := v.(map[string]any) + if !ok || m == nil { + return nil + } + if id, hasID := m["@id"].(string); hasID { + if target, found := g.byID[strings.TrimSpace(id)]; found && target != nil { + // Prefer the resolved graph node when the reference object only carries `@id` (or minimal wrapper keys). + if len(m) <= 2 && m["@type"] == nil && m["name"] == nil && m["text"] == nil && m["streetAddress"] == nil && m["latitude"] == nil { + return target + } + } + } + return m +} + +func (g *wave3SchemaGraph) resolveList(v any) []map[string]any { + switch x := v.(type) { + case map[string]any: + if r := g.resolve(x); r != nil { + return []map[string]any{r} + } + case []any: + out := make([]map[string]any, 0, len(x)) + for _, el := range x { + if r := g.resolve(el); r != nil { + out = append(out, r) + } + } + return out + } + return nil +} + +func wave3SchemaHasEntityType(ent map[string]any, targetLower string) bool { + for _, t := range normalizeSchemaTypesSchemaGo(ent["@type"]) { + if strings.ToLower(t) == targetLower { + return true + } + } + return false +} + +func wave3SchemaFindMatchingType(ent map[string]any, allowed map[string]bool) string { + for _, t := range normalizeSchemaTypesSchemaGo(ent["@type"]) { + if allowed[strings.ToLower(t)] { + return t + } + } + return "" +} + +func wave3SchemaPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(v, maxLen) +} + +func wave3SchemaFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3SchemaJoinStrings(v any, maxItems, maxItemLen int) string { + switch x := v.(type) { + case string, json.Number, float64, int, int64: + return wave3SchemaPlain(x, maxItemLen) + case []any: + var parts []string + seen := make(map[string]bool) + for _, el := range x { + if len(parts) >= maxItems { + break + } + var s string + switch em := el.(type) { + case map[string]any: + s = wave3SchemaPlain(firstNonNilSchemaGo(em["name"], em["text"], em["value"]), maxItemLen) + default: + s = wave3SchemaPlain(el, maxItemLen) + } + if s != "" && !seen[s] { + seen[s] = true + parts = append(parts, s) + } + } + return strings.Join(parts, ", ") + case map[string]any: + return wave3SchemaPlain(firstNonNilSchemaGo(x["name"], x["text"], x["value"]), maxItemLen) + } + return "" +} + +func (g *wave3SchemaGraph) extractActorName(v any) string { + if v == nil { + return "" + } + switch x := v.(type) { + case string: + return wave3SchemaPlain(x, 180) + case map[string]any: + r := g.resolve(x) + return wave3SchemaPlain(firstNonNilSchemaGo(r["name"], r["alternateName"]), 180) + case []any: + var parts []string + for i := 0; i < len(x) && len(parts) < 5; i++ { + if n := g.extractActorName(x[i]); n != "" { + parts = append(parts, n) + } + } + return strings.Join(parts, ", ") + } + return "" +} + +func wave3SchemaValidatePrice(raw any) (string, bool) { + switch v := raw.(type) { + case json.Number: + if f, err := v.Float64(); err == nil && f >= 0 { + if f == 0 { + return "0", true + } + return strings.TrimRight(strings.TrimRight(fmt.Sprintf("%.2f", f), "0"), "."), true + } + case float64: + if v >= 0 { + if v == 0 { + return "0", true + } + return strings.TrimRight(strings.TrimRight(fmt.Sprintf("%.2f", v), "0"), "."), true + } + case int: + if v >= 0 { + return strconv.Itoa(v), true + } + case string: + s := strings.TrimSpace(strings.TrimPrefix(v, "$")) + s = strings.ReplaceAll(s, ",", "") + if s == "" { + return "", false + } + if f, err := strconv.ParseFloat(s, 64); err == nil && f >= 0 { + if f == 0 { + return "0", true + } + return strings.TrimRight(strings.TrimRight(fmt.Sprintf("%.2f", f), "0"), "."), true + } + } + return "", false +} + +func wave3SchemaValidateCurrency(raw string) string { + c := strings.ToUpper(strings.TrimSpace(raw)) + if wave3SchemaRxCurrency3.MatchString(c) { + return c + } + return "" +} + +type wave3SchemaOfferInfo struct { + PriceText string + Price string + Currency string + URL string + Seller string +} + +func (g *wave3SchemaGraph) extractOffer(raw any, baseURL string) wave3SchemaOfferInfo { + var offerMap map[string]any + switch x := raw.(type) { + case map[string]any: + offerMap = g.resolve(x) + case []any: + for _, el := range x { + if m := g.resolve(el); m != nil { + offerMap = m + break + } + } + } + if offerMap == nil { + return wave3SchemaOfferInfo{} + } + var info wave3SchemaOfferInfo + priceRaw := firstNonNilSchemaGo(offerMap["price"], offerMap["lowPrice"]) + if p, ok := wave3SchemaValidatePrice(priceRaw); ok { + info.Price = p + info.Currency = wave3SchemaValidateCurrency(wave3SchemaPlain(offerMap["priceCurrency"], 10)) + if info.Currency != "" { + info.PriceText = info.Price + " " + info.Currency + } else { + info.PriceText = info.Price + } + } + info.URL = SanitizeSchemaHTTPSURL(offerMap["url"], baseURL) + info.Seller = g.extractActorName(offerMap["seller"]) + return info +} + +func wave3SchemaExtractRating(raw any) string { + m, ok := raw.(map[string]any) + if !ok || m == nil { + return "" + } + val := wave3SchemaPlain(m["ratingValue"], 24) + if val == "" { + return "" + } + best := wave3SchemaPlain(m["bestRating"], 16) + cnt := wave3SchemaPlain(firstNonNilSchemaGo(m["ratingCount"], m["reviewCount"]), 24) + out := val + if best != "" { + out += " / " + best + } else { + out += " / 5" + } + if cnt != "" { + out += " (" + cnt + " reviews)" + } + return out +} + +func (g *wave3SchemaGraph) formatAddress(raw any) string { + switch x := raw.(type) { + case string: + return wave3SchemaPlain(x, 260) + case map[string]any: + addr := g.resolve(x) + if addr == nil { + return "" + } + street := wave3SchemaPlain(addr["streetAddress"], 140) + city := wave3SchemaPlain(addr["addressLocality"], 80) + region := wave3SchemaPlain(addr["addressRegion"], 80) + postal := wave3SchemaPlain(addr["postalCode"], 32) + country := "" + switch c := addr["addressCountry"].(type) { + case string: + country = wave3SchemaPlain(c, 64) + case map[string]any: + country = wave3SchemaPlain(firstNonNilSchemaGo(c["name"], c["alternateName"]), 64) + } + var parts []string + if street != "" { + parts = append(parts, street) + } + cityReg := strings.TrimSpace(strings.Trim(city+", "+region, ", ")) + if postal != "" { + if cityReg != "" { + cityReg += " " + postal + } else { + cityReg = postal + } + } + if cityReg != "" { + parts = append(parts, cityReg) + } + if country != "" { + parts = append(parts, country) + } + if len(parts) > 0 { + return strings.Join(parts, ", ") + } + return wave3SchemaPlain(addr["name"], 200) + } + return "" +} + +func wave3SchemaRenderMarkdown(title string, bullets, sections []string) string { + var blocks []string + if title != "" { + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + } + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + for _, sec := range sections { + if t := strings.TrimSpace(sec); t != "" { + blocks = append(blocks, t) + } + } + return strings.TrimSpace(strings.Join(blocks, "\n\n")) +} + +// ── #234 schema-recipe ────────────────────────────────────────────────────────────────────────── + +// ── #237 schema-vehicle ───────────────────────────────────────────────────────────────────────── + +var wave3SchemaVehicleTypes = map[string]bool{ + "vehicle": true, + "car": true, + "motorcycle": true, + "motorizedbicycle": true, +} + +func (g *wave3SchemaGraph) extractMileage(raw any) string { + switch x := raw.(type) { + case string, json.Number, float64, int: + return wave3SchemaPlain(x, 40) + case map[string]any: + m := g.resolve(x) + if m == nil { + return "" + } + val := wave3SchemaPlain(m["value"], 32) + if val == "" { + return "" + } + unit := wave3SchemaPlain(firstNonNilSchemaGo(m["unitText"], m["unitCode"]), 16) + if strings.EqualFold(unit, "SMI") { + unit = "mi" + } else if strings.EqualFold(unit, "KMT") { + unit = "km" + } + if unit != "" { + return val + " " + unit + } + return val + } + return "" +} + +func wave3SchemaExtractVehicle(g *wave3SchemaGraph, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if wave3SchemaHasCommercePlatformMarkers(rawHTML) { + return nil + } + for _, ent := range g.entities { + if (wave3SchemaHasEntityType(ent, "product") || wave3SchemaHasEntityType(ent, "productgroup")) && + wave3SchemaFindMatchingType(ent, wave3SchemaVehicleTypes) == "" { + return nil + } + } + for _, ent := range g.nestedEntities { + if (wave3SchemaHasEntityType(ent, "product") || wave3SchemaHasEntityType(ent, "productgroup")) && + wave3SchemaFindMatchingType(ent, wave3SchemaVehicleTypes) == "" { + return nil + } + } + + type vehItem struct { + schemaType string + name string + vin string + make string + model string + year string + mileage string + priceText string + color string + trans string + seller string + url string + desc string + } + + var items []vehItem + seen := make(map[string]bool) + + scanList := func(list []map[string]any) { + for _, ent := range list { + matchedType := wave3SchemaFindMatchingType(ent, wave3SchemaVehicleTypes) + rawVIN := jsonScalarToString(firstNonNilSchemaGo(ent["vehicleIdentificationNumber"], ent["vin"])) + makeVal := g.extractActorName(firstNonNilSchemaGo(ent["brand"], ent["make"])) + modelVal := wave3SchemaPlain(ent["model"], 100) + if modelVal == "" { + if mm, ok := ent["model"].(map[string]any); ok { + modelVal = wave3SchemaPlain(mm["name"], 100) + } + } + if matchedType == "" { + if rawVIN != "" && (makeVal != "" || modelVal != "") { + matchedType = "Vehicle" + } else { + continue + } + } + + // Rule 4: strict 17-char VIN validation excluding I/O/Q; invalid VINs MUST be omitted. + validVIN := wave2cHTValidateVIN(rawVIN) + + yearStr := "" + if yr, okY := wave2cHTValidateYear(firstNonNilSchemaGo(ent["vehicleModelDate"], ent["modelDate"], ent["year"])); okY { + yearStr = strconv.Itoa(yr) + } + name := wave3SchemaPlain(firstNonNilSchemaGo(ent["name"], ent["headline"]), 220) + if name == "" { + parts := []string{} + if yearStr != "" { + parts = append(parts, yearStr) + } + if makeVal != "" { + parts = append(parts, makeVal) + } + if modelVal != "" { + parts = append(parts, modelVal) + } + name = strings.Join(parts, " ") + } + if name == "" { + continue + } + vURL := SanitizeSchemaHTTPSURL(ent["url"], baseURL) + dedupe := wave3SchemaFirstNonEmpty(validVIN, vURL, name) + if seen[dedupe] { + continue + } + seen[dedupe] = true + if len(items) >= wave3SchemaMaxRecordsCap { + break + } + offer := g.extractOffer(ent["offers"], baseURL) + items = append(items, vehItem{ + schemaType: matchedType, + name: name, + vin: validVIN, + make: makeVal, + model: modelVal, + year: yearStr, + mileage: g.extractMileage(ent["mileageFromOdometer"]), + priceText: offer.PriceText, + color: wave3SchemaPlain(ent["color"], 64), + trans: wave3SchemaPlain(ent["vehicleTransmission"], 64), + seller: wave3SchemaFirstNonEmpty(g.extractActorName(ent["seller"]), offer.Seller), + url: vURL, + desc: wave3SchemaPlain(ent["description"], 800), + }) + } + } + scanList(g.entities) + if len(items) == 0 && len(g.nestedEntities) > 0 { + scanList(g.nestedEntities) + } + if len(items) == 0 { + return nil + } + + records := make([]map[string]any, 0, len(items)) + var links []string + seenLink := make(map[string]bool) + for _, it := range items { + rec := map[string]any{ + "kind": "Vehicle", + "schemaType": it.schemaType, + "name": it.name, + } + if it.vin != "" { + rec["vin"] = it.vin + } + if it.make != "" { + rec["make"] = it.make + } + if it.model != "" { + rec["model"] = it.model + } + if it.year != "" { + rec["year"] = it.year + } + if it.mileage != "" { + rec["mileage"] = it.mileage + } + if it.priceText != "" { + rec["price"] = it.priceText + } + if it.seller != "" { + rec["seller"] = it.seller + } + if it.url != "" { + rec["url"] = it.url + if !seenLink[it.url] { + seenLink[it.url] = true + links = append(links, it.url) + } + } + records = append(records, rec) + } + + var title, desc, md string + if len(items) == 1 { + v := items[0] + title = v.name + desc = v.desc + bullets := []string{"- **Schema Type**: " + v.schemaType} + if v.vin != "" { + bullets = append(bullets, "- **VIN**: `"+v.vin+"`") + } + if v.make != "" { + bullets = append(bullets, "- **Make**: "+escapeDeclMarkdownBrackets(v.make)) + } + if v.model != "" { + bullets = append(bullets, "- **Model**: "+escapeDeclMarkdownBrackets(v.model)) + } + if v.year != "" { + bullets = append(bullets, "- **Year**: "+v.year) + } + if v.mileage != "" { + bullets = append(bullets, "- **Mileage**: "+escapeDeclMarkdownBrackets(v.mileage)) + } + if v.priceText != "" { + bullets = append(bullets, "- **Price**: "+v.priceText) + } + if v.color != "" { + bullets = append(bullets, "- **Color**: "+escapeDeclMarkdownBrackets(v.color)) + } + if v.trans != "" { + bullets = append(bullets, "- **Transmission**: "+escapeDeclMarkdownBrackets(v.trans)) + } + if v.seller != "" { + bullets = append(bullets, "- **Seller**: "+escapeDeclMarkdownBrackets(v.seller)) + } + if v.url != "" { + bullets = append(bullets, "- **URL**: "+v.url) + } + var sections []string + if v.desc != "" { + sections = append(sections, escapeDeclMarkdownBlock(v.desc)) + } + md = wave3SchemaRenderMarkdown(title, bullets, sections) + } else { + pageTitle := wave3SchemaPlain(extractTitleLinearQuick(rawHTML), 200) + title = wave3SchemaFirstNonEmpty(pageTitle, fmt.Sprintf("Vehicles (%d)", len(items))) + bullets := []string{ + "- **Schema Type**: Vehicle", + fmt.Sprintf("- **Vehicles Extracted**: %d", len(items)), + } + var rows []string + for _, v := range items { + vinCell := "-" + if v.vin != "" { + vinCell = "`" + v.vin + "`" + } + rows = append(rows, fmt.Sprintf("| %s | %s | %s | %s |", + escapeDeclMarkdownBrackets(v.name), + vinCell, + wave3SchemaFirstNonEmpty(v.mileage, "-"), + wave3SchemaFirstNonEmpty(v.priceText, "-"), + )) + } + sec := "## Vehicles\n\n| Vehicle | VIN | Mileage | Price |\n|---|---|---|---|\n" + strings.Join(rows, "\n") + md = wave3SchemaRenderMarkdown(title, bullets, []string{sec}) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: md, + Links: links, + Records: records, + } +} + +// ── #238 schema-faq-howto ─────────────────────────────────────────────────────────────────────── + +func wave3SchemaExtractFAQHowTo(g *wave3SchemaGraph, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + // CRITICAL YIELD (`f` < `r`): must yield when domain-specific vertical Schema.org types are present. + if g.hasAnyType( + "recipe", + "product", "productgroup", + "jobposting", + "course", "courseinstance", "educationaloccupationalprogram", + "softwareapplication", "webapplication", "mobileapplication", + "medicalwebpage", "medicalcondition", "drug", "physician", "medicalclinic", + "dataset", "datacatalog", + "vehicle", "car", "motorcycle", "motorizedbicycle", + "event", "sportsevent", "musicevent", "educationevent", "businessevent", "socialevent", "theaterevent", "festival", + ) { + return nil + } + + var faqEnt map[string]any + var howToEnt map[string]any + for _, ent := range g.entities { + if faqEnt == nil && wave3SchemaHasEntityType(ent, "faqpage") { + faqEnt = ent + } + if howToEnt == nil && wave3SchemaHasEntityType(ent, "howto") { + howToEnt = ent + } + } + + if faqEnt != nil { + if res := wave3SchemaBuildFAQResult(g, faqEnt, rawHTML, baseURL, extractorID); res != nil { + return res + } + } + if howToEnt != nil { + if res := wave3SchemaBuildHowToResult(g, howToEnt, baseURL, extractorID); res != nil { + return res + } + } + return nil +} + +func wave3SchemaBuildFAQResult(g *wave3SchemaGraph, faq map[string]any, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + qNodes := g.resolveList(firstNonNilSchemaGo(faq["mainEntity"], faq["hasPart"])) + if len(qNodes) == 0 { + for _, ent := range g.entities { + if wave3SchemaHasEntityType(ent, "question") && (ent["acceptedAnswer"] != nil || ent["suggestedAnswer"] != nil) { + qNodes = append(qNodes, ent) + } + } + } + if len(qNodes) == 0 { + return nil + } + + var records []map[string]any + var qaBlocks []string + for i := 0; i < len(qNodes) && len(records) < wave3SchemaMaxListItems; i++ { + q := g.resolve(qNodes[i]) + if q == nil { + continue + } + qText := wave3SchemaPlain(firstNonNilSchemaGo(q["name"], q["headline"], q["text"]), 400) + if qText == "" { + continue + } + ansRaw := q["acceptedAnswer"] + if ansRaw == nil { + if arr, ok := q["suggestedAnswer"].([]any); ok && len(arr) > 0 { + ansRaw = arr[0] + } else { + ansRaw = q["suggestedAnswer"] + } + } + var ansSrc any + if ansObj := g.resolve(ansRaw); ansObj != nil { + ansSrc = firstNonNilSchemaGo(ansObj["text"], ansObj["articleBody"], ansObj["name"]) + } else { + ansSrc = firstNonNilSchemaGo(ansRaw, q["answer"]) + } + ansPlain := wave3SchemaPlain(ansSrc, 2000) + if ansPlain == "" { + continue + } + rec := map[string]any{ + "kind": "Question", + "position": len(records) + 1, + "question": qText, + "answer": ansPlain, + } + if qURL := SanitizeSchemaHTTPSURL(q["url"], baseURL); qURL != "" { + rec["url"] = qURL + } + records = append(records, rec) + qaBlocks = append(qaBlocks, fmt.Sprintf("### %s\n\n%s", escapeDeclMarkdownBrackets(qText), escapeDeclMarkdownBlock(ansPlain))) + } + if len(records) == 0 { + return nil + } + + title := wave3SchemaFirstNonEmpty( + wave3SchemaPlain(firstNonNilSchemaGo(faq["name"], faq["headline"]), 220), + wave3SchemaPlain(extractTitleLinearQuick(rawHTML), 220), + "FAQ", + ) + desc := wave3SchemaPlain(faq["description"], 800) + bullets := []string{ + "- **Schema Type**: FAQPage", + fmt.Sprintf("- **Questions**: %d", len(records)), + } + var sections []string + if desc != "" { + sections = append(sections, escapeDeclMarkdownBlock(desc)) + } + sections = append(sections, "## Questions & Answers\n\n"+strings.Join(qaBlocks, "\n\n")) + var links []string + if u := SanitizeSchemaHTTPSURL(faq["url"], baseURL); u != "" { + links = append(links, u) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: wave3SchemaRenderMarkdown(title, bullets, sections), + Links: links, + Records: records, + } +} + +func wave3SchemaBuildHowToResult(g *wave3SchemaGraph, howto map[string]any, baseURL, extractorID string) *DeclarativePostFetchResult { + title := wave3SchemaPlain(firstNonNilSchemaGo(howto["name"], howto["headline"]), 240) + if title == "" { + return nil + } + desc := wave3SchemaPlain(howto["description"], 1000) + totalTime := wave3SchemaPlain(firstNonNilSchemaGo(howto["totalTime"], howto["performTime"]), 60) + + collectNamed := func(raw any) []string { + var out []string + switch x := raw.(type) { + case string: + if s := wave3SchemaPlain(x, 180); s != "" { + out = append(out, s) + } + case map[string]any: + if s := wave3SchemaPlain(firstNonNilSchemaGo(x["name"], x["text"]), 180); s != "" { + out = append(out, s) + } + case []any: + for _, el := range x { + if len(out) >= 40 { + break + } + switch em := el.(type) { + case string: + if s := wave3SchemaPlain(em, 180); s != "" { + out = append(out, s) + } + case map[string]any: + if s := wave3SchemaPlain(firstNonNilSchemaGo(em["name"], em["text"]), 180); s != "" { + out = append(out, s) + } + } + } + } + return out + } + + supplies := collectNamed(howto["supply"]) + tools := collectNamed(howto["tool"]) + + var stepRecords []map[string]any + var stepLines []string + var pushStep func(raw any, sectionName string) + pushStep = func(raw any, sectionName string) { + if raw == nil || len(stepRecords) >= wave3SchemaMaxListItems { + return + } + switch st := raw.(type) { + case string: + txt := wave3SchemaPlain(st, 1500) + if txt == "" { + return + } + pos := len(stepRecords) + 1 + rec := map[string]any{"kind": "HowToStep", "position": pos, "text": txt} + if sectionName != "" { + rec["section"] = sectionName + } + stepRecords = append(stepRecords, rec) + stepLines = append(stepLines, fmt.Sprintf("%d. %s", pos, escapeDeclMarkdownBrackets(txt))) + case []any: + for _, sub := range st { + pushStep(sub, sectionName) + } + case map[string]any: + m := g.resolve(st) + if m == nil { + return + } + if subItems, ok := m["itemListElement"].([]any); ok && len(subItems) > 0 && m["text"] == nil { + secTitle := wave3SchemaPlain(m["name"], 180) + if secTitle != "" { + stepLines = append(stepLines, "### "+escapeDeclMarkdownBrackets(secTitle)) + } + pushStep(subItems, wave3SchemaFirstNonEmpty(secTitle, sectionName)) + return + } + stepTitle := wave3SchemaPlain(m["name"], 200) + stepText := wave3SchemaPlain(firstNonNilSchemaGo(m["text"], m["description"]), 1500) + if stepText == "" && stepTitle == "" { + return + } + pos := len(stepRecords) + 1 + rec := map[string]any{"kind": "HowToStep", "position": pos} + if sectionName != "" { + rec["section"] = sectionName + } + if stepTitle != "" { + rec["title"] = stepTitle + } + if stepText != "" { + rec["text"] = stepText + } + if su := SanitizeSchemaHTTPSURL(m["url"], baseURL); su != "" { + rec["url"] = su + } + stepRecords = append(stepRecords, rec) + if stepTitle != "" && stepTitle != stepText && stepText != "" { + stepLines = append(stepLines, fmt.Sprintf("%d. **%s** — %s", pos, escapeDeclMarkdownBrackets(stepTitle), escapeDeclMarkdownBrackets(stepText))) + } else { + stepLines = append(stepLines, fmt.Sprintf("%d. %s", pos, escapeDeclMarkdownBrackets(wave3SchemaFirstNonEmpty(stepText, stepTitle)))) + } + } + } + pushStep(firstNonNilSchemaGo(howto["step"], howto["steps"]), "") + + if len(stepRecords) == 0 && desc == "" { + return nil + } + + bullets := []string{"- **Schema Type**: HowTo"} + if totalTime != "" { + bullets = append(bullets, "- **Total Time**: "+totalTime) + } + if len(supplies) > 0 { + bullets = append(bullets, "- **Supplies**: "+escapeDeclMarkdownBrackets(strings.Join(supplies, ", "))) + } + if len(tools) > 0 { + bullets = append(bullets, "- **Tools**: "+escapeDeclMarkdownBrackets(strings.Join(tools, ", "))) + } + if len(stepRecords) > 0 { + bullets = append(bullets, fmt.Sprintf("- **Steps**: %d", len(stepRecords))) + } + + var sections []string + if desc != "" { + sections = append(sections, escapeDeclMarkdownBlock(desc)) + } + if len(stepLines) > 0 { + sections = append(sections, "## Steps\n\n"+strings.Join(stepLines, "\n")) + } + var links []string + if u := SanitizeSchemaHTTPSURL(howto["url"], baseURL); u != "" { + links = append(links, u) + } + out := &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: wave3SchemaRenderMarkdown(title, bullets, sections), + Links: links, + } + if len(stepRecords) > 0 { + out.Records = stepRecords + } + return out +} + +// ── #239 schema-dataset ───────────────────────────────────────────────────────────────────────── + +func wave3SchemaExtractDataset(g *wave3SchemaGraph, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if wave3SchemaHasCommercePlatformMarkers(rawHTML) || g.hasAnyType("product", "productgroup") { + return nil + } + var ds map[string]any + var dsType string + for _, ent := range g.entities { + if wave3SchemaHasEntityType(ent, "dataset") { + ds = ent + dsType = "Dataset" + break + } + } + if ds == nil { + for _, ent := range g.entities { + if wave3SchemaHasEntityType(ent, "datacatalog") { + ds = ent + dsType = "DataCatalog" + break + } + } + } + if ds == nil { + return nil + } + + name := wave3SchemaPlain(firstNonNilSchemaGo(ds["name"], ds["headline"]), 260) + if name == "" { + return nil + } + desc := SanitizeSchemaRichMarkdown(ds["description"], baseURL, nil, 8000) + descPlain := wave3SchemaPlain(ds["description"], 512) + creator := g.extractActorName(firstNonNilSchemaGo(ds["creator"], ds["publisher"], ds["sourceOrganization"])) + license := "" + switch lv := ds["license"].(type) { + case string: + license = wave3SchemaPlain(lv, 400) + case map[string]any: + lm := g.resolve(lv) + license = wave3SchemaPlain(firstNonNilSchemaGo(lm["name"], lm["url"]), 400) + } + temporal := wave3SchemaJoinStrings(ds["temporalCoverage"], 3, 120) + spatial := wave3SchemaJoinStrings(ds["spatialCoverage"], 4, 120) + identifier := "" + switch iv := ds["identifier"].(type) { + case string, json.Number, float64, int: + identifier = wave3SchemaPlain(iv, 160) + case map[string]any: + identifier = wave3SchemaPlain(firstNonNilSchemaGo(iv["value"], iv["name"], iv["url"]), 160) + case []any: + identifier = wave3SchemaJoinStrings(iv, 3, 120) + } + + bullets := []string{"- **Schema Type**: " + dsType} + if creator != "" { + bullets = append(bullets, "- **Creator**: "+escapeDeclMarkdownBrackets(creator)) + } + if identifier != "" { + bullets = append(bullets, "- **Identifier**: `"+identifier+"`") + } + if temporal != "" { + bullets = append(bullets, "- **Temporal Coverage**: "+escapeDeclMarkdownBrackets(temporal)) + } + if spatial != "" { + bullets = append(bullets, "- **Spatial Coverage**: "+escapeDeclMarkdownBrackets(spatial)) + } + if license != "" { + bullets = append(bullets, "- **License**: "+escapeDeclMarkdownBrackets(license)) + } + + var distRecords []map[string]any + var distRows []string + var links []string + seenLink := make(map[string]bool) + addLink := func(u string) { + if u != "" && !seenLink[u] { + seenLink[u] = true + links = append(links, u) + } + } + if u := SanitizeSchemaHTTPSURL(ds["url"], baseURL); u != "" { + addLink(u) + } + + for _, dist := range g.resolveList(ds["distribution"]) { + if len(distRecords) >= wave3SchemaMaxRecordsCap { + break + } + dURL := SanitizeSchemaHTTPSURL(firstNonNilSchemaGo(dist["contentUrl"], dist["url"]), baseURL) + fmtStr := wave3SchemaPlain(firstNonNilSchemaGo(dist["encodingFormat"], dist["fileFormat"]), 64) + sizeStr := wave3SchemaPlain(dist["contentSize"], 48) + dName := wave3SchemaPlain(dist["name"], 140) + if dURL == "" && fmtStr == "" && dName == "" { + continue + } + rec := map[string]any{"kind": "DataDownload"} + if dName != "" { + rec["name"] = dName + } + if dURL != "" { + rec["contentUrl"] = dURL + addLink(dURL) + } + if fmtStr != "" { + rec["encodingFormat"] = fmtStr + } + if sizeStr != "" { + rec["contentSize"] = sizeStr + } + distRecords = append(distRecords, rec) + label := wave3SchemaFirstNonEmpty(dName, fmtStr, "Download") + urlCell := "-" + if dURL != "" { + urlCell = fmt.Sprintf("[%s](%s)", escapeMarkdownLinkLabelGo(label), PercentEncodeUnsafeRecordURLChars(dURL)) + } else { + urlCell = escapeDeclMarkdownBrackets(label) + } + distRows = append(distRows, fmt.Sprintf("| %s | %s | %s |", + urlCell, + escapeDeclMarkdownBrackets(wave3SchemaFirstNonEmpty(fmtStr, "-")), + escapeDeclMarkdownBrackets(wave3SchemaFirstNonEmpty(sizeStr, "-")), + )) + } + + var sections []string + if desc != "" { + sections = append(sections, desc) + } + if len(distRows) > 0 { + sections = append(sections, "## Distributions\n\n| Distribution | Format | Size |\n|---|---|---|\n"+strings.Join(distRows, "\n")) + } + + md := wave3SchemaRenderMarkdown(name, bullets, sections) + if md == "" { + return nil + } + out := &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: name, + Description: descPlain, + Author: creator, + Markdown: md, + Links: links, + } + if len(distRecords) > 0 { + out.Records = distRecords + } + return out +} + +// ── #240 schema-software-app ──────────────────────────────────────────────────────────────────── + +var wave3SchemaSoftwareTypes = map[string]bool{ + "softwareapplication": true, + "webapplication": true, + "mobileapplication": true, +} + +func wave3SchemaExtractSoftwareApp(g *wave3SchemaGraph, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if wave3SchemaHasCommercePlatformMarkers(rawHTML) || g.hasAnyType("product", "productgroup") { + return nil + } + var app map[string]any + var appType string + for _, ent := range g.entities { + if mt := wave3SchemaFindMatchingType(ent, wave3SchemaSoftwareTypes); mt != "" { + app = ent + appType = mt + break + } + } + if app == nil { + return nil + } + + name := wave3SchemaPlain(firstNonNilSchemaGo(app["name"], app["headline"]), 220) + if name == "" { + return nil + } + version := wave3SchemaPlain(firstNonNilSchemaGo(app["softwareVersion"], app["version"]), 64) + osList := wave3SchemaJoinStrings(app["operatingSystem"], 8, 64) + category := wave3SchemaJoinStrings(app["applicationCategory"], 4, 80) + subCategory := wave3SchemaPlain(app["applicationSubCategory"], 80) + author := g.extractActorName(firstNonNilSchemaGo(app["author"], app["publisher"], app["creator"])) + offer := g.extractOffer(app["offers"], baseURL) + rating := wave3SchemaExtractRating(app["aggregateRating"]) + downloadURL := SanitizeSchemaHTTPSURL(firstNonNilSchemaGo(app["downloadUrl"], app["installUrl"]), baseURL) + appURL := SanitizeSchemaHTTPSURL(app["url"], baseURL) + desc := wave3SchemaPlain(app["description"], 1200) + + bullets := []string{"- **Schema Type**: " + appType} + if version != "" { + bullets = append(bullets, "- **Version**: `"+version+"`") + } + if osList != "" { + bullets = append(bullets, "- **Operating System**: "+escapeDeclMarkdownBrackets(osList)) + } + if category != "" { + catText := category + if subCategory != "" && subCategory != category { + catText += " (" + subCategory + ")" + } + bullets = append(bullets, "- **Category**: "+escapeDeclMarkdownBrackets(catText)) + } + if offer.PriceText != "" { + bullets = append(bullets, "- **Price**: "+offer.PriceText) + } + if rating != "" { + bullets = append(bullets, "- **Rating**: "+rating) + } + if author != "" { + bullets = append(bullets, "- **Publisher**: "+escapeDeclMarkdownBrackets(author)) + } + if downloadURL != "" { + bullets = append(bullets, "- **Download URL**: "+downloadURL) + } + + var sections []string + if desc != "" { + sections = append(sections, escapeDeclMarkdownBlock(desc)) + } + var links []string + seenLink := make(map[string]bool) + for _, cand := range []string{downloadURL, appURL, offer.URL} { + if cand != "" && !seenLink[cand] { + seenLink[cand] = true + links = append(links, cand) + } + } + + rec := map[string]any{ + "kind": "SoftwareApplication", + "schemaType": appType, + "name": name, + } + if version != "" { + rec["version"] = version + } + if osList != "" { + rec["operatingSystem"] = osList + } + if category != "" { + rec["applicationCategory"] = category + } + if offer.PriceText != "" { + rec["price"] = offer.PriceText + } + if author != "" { + rec["author"] = author + } + if downloadURL != "" { + rec["downloadUrl"] = downloadURL + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: name, + Description: desc, + Author: author, + Markdown: wave3SchemaRenderMarkdown(name, bullets, sections), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #241 schema-medical ───────────────────────────────────────────────────────────────────────── + +var wave3SchemaMedicalPriority = []string{ + "medicalcondition", + "drug", + "physician", + "medicalclinic", + "medicalwebpage", +} + +func wave3SchemaExtractMedical(g *wave3SchemaGraph, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if g.hasAnyType("product", "productgroup") { + return nil + } + + var med map[string]any + var medType string + for _, target := range wave3SchemaMedicalPriority { + for _, ent := range g.entities { + for _, t := range normalizeSchemaTypesSchemaGo(ent["@type"]) { + if strings.ToLower(t) == target { + med = ent + medType = t + break + } + } + if med != nil { + break + } + } + if med != nil { + break + } + } + if med == nil { + return nil + } + + name := wave3SchemaPlain(firstNonNilSchemaGo(med["name"], med["headline"]), 240) + if name == "" { + if about := g.resolve(med["about"]); about != nil { + name = wave3SchemaPlain(firstNonNilSchemaGo(about["name"], about["headline"]), 240) + } + } + if name == "" { + return nil + } + + headline := wave3SchemaPlain(med["headline"], 260) + desc := wave3SchemaPlain(med["description"], 1200) + specialty := wave3SchemaJoinStrings(med["medicalSpecialty"], 6, 80) + symptoms := wave3SchemaJoinStrings(med["signOrSymptom"], 12, 100) + treatments := wave3SchemaJoinStrings(med["possibleTreatment"], 12, 100) + activeIng := wave3SchemaJoinStrings(med["activeIngredient"], 6, 100) + dosageForm := wave3SchemaPlain(med["dosageForm"], 80) + nonProp := wave3SchemaPlain(med["nonProprietaryName"], 120) + addr := g.formatAddress(med["address"]) + tel := wave3SchemaPlain(med["telephone"], 60) + reviewed := wave3SchemaPlain(firstNonNilSchemaGo(med["lastReviewed"], med["dateModified"], med["datePublished"]), 64) + author := g.extractActorName(firstNonNilSchemaGo(med["author"], med["publisher"])) + u := SanitizeSchemaHTTPSURL(med["url"], baseURL) + + bullets := []string{"- **Schema Type**: " + medType} + if headline != "" && headline != name { + bullets = append(bullets, "- **Headline**: "+escapeDeclMarkdownBrackets(headline)) + } + if specialty != "" { + bullets = append(bullets, "- **Medical Specialty**: "+escapeDeclMarkdownBrackets(specialty)) + } + if activeIng != "" { + bullets = append(bullets, "- **Active Ingredient**: "+escapeDeclMarkdownBrackets(activeIng)) + } + if nonProp != "" { + bullets = append(bullets, "- **Non-Proprietary Name**: "+escapeDeclMarkdownBrackets(nonProp)) + } + if dosageForm != "" { + bullets = append(bullets, "- **Dosage Form**: "+escapeDeclMarkdownBrackets(dosageForm)) + } + if symptoms != "" { + bullets = append(bullets, "- **Signs or Symptoms**: "+escapeDeclMarkdownBrackets(symptoms)) + } + if treatments != "" { + bullets = append(bullets, "- **Possible Treatments**: "+escapeDeclMarkdownBrackets(treatments)) + } + if addr != "" { + bullets = append(bullets, "- **Address**: "+escapeDeclMarkdownBrackets(addr)) + } + if tel != "" { + bullets = append(bullets, "- **Telephone**: "+escapeDeclMarkdownBrackets(tel)) + } + if reviewed != "" { + bullets = append(bullets, "- **Last Reviewed / Modified**: "+reviewed) + } + if author != "" { + bullets = append(bullets, "- **Publisher**: "+escapeDeclMarkdownBrackets(author)) + } + + var sections []string + if desc != "" { + sections = append(sections, escapeDeclMarkdownBlock(desc)) + } + var links []string + if u != "" { + links = append(links, u) + } + rec := map[string]any{ + "kind": "MedicalEntity", + "schemaType": medType, + "name": name, + } + if specialty != "" { + rec["medicalSpecialty"] = specialty + } + if activeIng != "" { + rec["activeIngredient"] = activeIng + } + if dosageForm != "" { + rec["dosageForm"] = dosageForm + } + if addr != "" { + rec["address"] = addr + } + if tel != "" { + rec["telephone"] = tel + } + if reviewed != "" { + rec["lastReviewed"] = reviewed + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: name, + Description: desc, + Author: author, + PublishedTime: reviewed, + Markdown: wave3SchemaRenderMarkdown(name, bullets, sections), + Links: links, + Records: []map[string]any{rec}, + } +} diff --git a/internal/extract/wave3_schema_test.go b/internal/extract/wave3_schema_test.go new file mode 100644 index 0000000..e892060 --- /dev/null +++ b/internal/extract/wave3_schema_test.go @@ -0,0 +1,492 @@ +package extract + +import ( + "fmt" + "strings" + "testing" + + "github.com/bartrumb/edgefetch/v2/internal/classify" +) + +func TestWave3SchemaAllEightAdaptersPositive(t *testing.T) { + // 1. #234 schema-recipe (including HowToSection + HowToStep, nutrition, aggregateRating) + recipeHTML := `Chewy Cookies

Chewy Chocolate Chip Cookies

` + + recRes := Round2RunHTML("schema_recipe_html", recipeHTML, "https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/", "") + if recRes == nil || recRes.ExtractorID != "schema-recipe" { + t.Fatalf("schema-recipe positive failed: %+v", recRes) + } + for _, want := range []string{"Sally McKenney", "15 min", "13 min", "2 hr 45 min", "2 1/4 cups flour", "Dough", "Whisk dry ingredients together.", "210 kcal", "4.7"} { + if !strings.Contains(recRes.Markdown, want) { + t.Fatalf("schema-recipe markdown missing %q:\n%s", want, recRes.Markdown) + } + } + + // 2. #235 schema-event (single event + multi-event cap at 50) + singleEventHTML := `Jazz Night

Blue Note Jazz Night

` + evRes := Round2RunHTML("schema_event_html", singleEventHTML, "https://events.example.edu/jazz-night", "") + if evRes == nil || evRes.ExtractorID != "schema-event" { + t.Fatalf("schema-event single failed: %+v", evRes) + } + for _, want := range []string{"Blue Note Jazz Night", "2026-12-10T20:00:00-05:00", "Main Hall", "Campus Arts", "25 USD", "EventScheduled"} { + if !strings.Contains(evRes.Markdown, want) { + t.Fatalf("schema-event markdown missing %q:\n%s", want, evRes.Markdown) + } + } + + // Multi-event cap at round2MaxRecords (55 input events -> Returned=50, Total=55, Truncated=true) + var evObjs []string + for i := 1; i <= 55; i++ { + evObjs = append(evObjs, fmt.Sprintf(`{"@type":"Event","name":"Campus Talk %d","startDate":"2026-12-%02dT12:00:00Z","location":{"@type":"VirtualLocation","name":"Zoom","url":"https://events.example.edu/talk/%d"}}`, i, (i%28)+1, i)) + } + multiEventHTML := `Stanford Calendar

Calendar

` + mEvRes := Round2RunHTML("schema_event_html", multiEventHTML, "https://events.stanford.edu/", "") + if mEvRes == nil || len(mEvRes.Records) != 50 || mEvRes.Total == nil || *mEvRes.Total != 55 || mEvRes.Truncated == nil || !*mEvRes.Truncated { + t.Fatalf("schema-event multi-event cap failed: records=%d total=%v trunc=%v", len(mEvRes.Records), mEvRes.Total, mEvRes.Truncated) + } + + // 3. #236 schema-localbusiness + lbHTML := `Apple Fifth Avenue

Apple Fifth Avenue

` + lbRes := Round2RunHTML("schema_localbusiness_html", lbHTML, "https://www.apple.com/retail/fifthavenue/", "") + if lbRes == nil || lbRes.ExtractorID != "schema-localbusiness" { + t.Fatalf("schema-localbusiness positive failed: %+v", lbRes) + } + for _, want := range []string{"767 Fifth Avenue", "(212) 336-1440", "40.76383, -73.97296", "09:00"} { + if !strings.Contains(lbRes.Markdown, want) { + t.Fatalf("schema-localbusiness missing %q:\n%s", want, lbRes.Markdown) + } + } + + // 4. #237 schema-vehicle (["Product","Car"], @id seller ref, and strict VIN validation) + vehHTML := `2022 Dodge Charger

2022 Dodge Charger

` + vehRes := Wave3SchemaRunHTML("schema_vehicle_html", vehHTML, "https://dealer.example.com/listings/charger-2022", "") + if vehRes == nil || vehRes.ExtractorID != "schema-vehicle" { + t.Fatalf("schema-vehicle positive failed: %+v", vehRes) + } + for _, want := range []string{"2C3CDXBG0NH250138", "Dodge", "Charger", "2022", "31500 mi", "18220 USD", "Metro Auto"} { + if !strings.Contains(vehRes.Markdown, want) { + t.Fatalf("schema-vehicle missing %q:\n%s", want, vehRes.Markdown) + } + } + + // 5. #238 schema-faq-howto (FAQPage @id graph resolution + HowTo HowToSection) + faqHTML := `Yoast FAQ

Yoast FAQ

` + faqRes := Wave3SchemaRunHTML("schema_faq_howto_html", faqHTML, "https://yoast.com/features/structured-data/faq-block/", "") + if faqRes == nil || faqRes.ExtractorID != "schema-faq-howto" || !strings.Contains(faqRes.Markdown, "Is JSON-LD supported?") || !strings.Contains(faqRes.Markdown, "Yes, natively.") { + t.Fatalf("schema-faq-howto FAQPage failed: %+v", faqRes) + } + + howToHTML := `How to Tie a Tie

How to Tie a Tie

` + htRes := Wave3SchemaRunHTML("schema_faq_howto_html", howToHTML, "https://www.wikihow.com/Tie-a-Tie", "") + if htRes == nil || htRes.ExtractorID != "schema-faq-howto" { + t.Fatalf("schema-faq-howto HowTo failed: %+v", htRes) + } + for _, want := range []string{"PT5M", "Necktie", "Mirror", "Four-in-Hand", "Drape the tie around your neck."} { + if !strings.Contains(htRes.Markdown, want) { + t.Fatalf("schema-faq-howto HowTo missing %q:\n%s", want, htRes.Markdown) + } + } + if len(htRes.Records) != 2 || htRes.Records[0]["section"] != "Four-in-Hand" { + t.Fatalf("schema-faq-howto HowTo records unexpected: %+v", htRes.Records) + } + + // 6. #239 schema-dataset + dsHTML := `NOAA GOES

NOAA GOES

` + dsRes := Wave3SchemaRunHTML("schema_dataset_html", dsHTML, "https://registry.opendata.aws/noaa-goes/", "") + if dsRes == nil || dsRes.ExtractorID != "schema-dataset" { + t.Fatalf("schema-dataset positive failed: %+v", dsRes) + } + for _, want := range []string{"NOAA", "noaa-goes", "2017-05-24/..", "North America", "application/x-netcdf", "1.2 TB"} { + if !strings.Contains(dsRes.Markdown, want) { + t.Fatalf("schema-dataset missing %q:\n%s", want, dsRes.Markdown) + } + } + + // 7. #240 schema-software-app + swHTML := `VS Code

Visual Studio Code

` + swRes := Wave3SchemaRunHTML("schema_software_app_html", swHTML, "https://code.visualstudio.com/", "") + if swRes == nil || swRes.ExtractorID != "schema-software-app" { + t.Fatalf("schema-software-app positive failed: %+v", swRes) + } + for _, want := range []string{"1.148", "Mac, Linux, Windows", "DeveloperApplication", "0 USD", "4.8 / 5 (4200 reviews)", "Microsoft", "https://code.visualstudio.com/download"} { + if !strings.Contains(swRes.Markdown, want) { + t.Fatalf("schema-software-app missing %q:\n%s", want, swRes.Markdown) + } + } + + // 8. #241 schema-medical (MedicalWebPage + Drug) + medHTML := `Asthma

Asthma

` + medRes := Wave3SchemaRunHTML("schema_medical_html", medHTML, "https://my.clevelandclinic.org/health/diseases/6424-asthma", "") + if medRes == nil || medRes.ExtractorID != "schema-medical" { + t.Fatalf("schema-medical positive failed: %+v", medRes) + } + for _, want := range []string{"Pulmonology", "Wheezing", "Inhaled corticosteroids", "2026-03-30"} { + if !strings.Contains(medRes.Markdown, want) { + t.Fatalf("schema-medical missing %q:\n%s", want, medRes.Markdown) + } + } + + drugHTML := `Albuterol

Albuterol

` + drugRes := Wave3SchemaRunHTML("schema_medical_html", drugHTML, "https://med.example.org/drugs/albuterol", "") + if drugRes == nil || !strings.Contains(drugRes.Markdown, "Albuterol sulfate") || !strings.Contains(drugRes.Markdown, "Aerosol, metered") { + t.Fatalf("schema-medical Drug failed: %+v", drugRes) + } +} + +func TestWave3SchemaAlphabeticalPrecedenceAndYields(t *testing.T) { + // 1. schema-faq-howto (`f` < `r`) MUST yield when @graph contains Recipe, Product, JobPosting, Course, SoftwareApplication, MedicalWebPage, MedicalCondition + sallyShape := `Cookies

Cookies

` + if got := Wave3SchemaRunHTML("schema_faq_howto_html", sallyShape, "https://sallysbakingaddiction.com/cookies/", ""); got != nil { + t.Fatalf("schema-faq-howto MUST yield on Recipe @graph, got %+v", got) + } + if got := Round2RunHTML("schema_recipe_html", sallyShape, "https://sallysbakingaddiction.com/cookies/", ""); got == nil || got.ExtractorID != "schema-recipe" { + t.Fatalf("schema-recipe must claim Recipe after schema-faq-howto yields, got %+v", got) + } + + for _, blockingType := range []string{"Product", "JobPosting", "Course", "SoftwareApplication", "MedicalWebPage", "MedicalCondition"} { + html := fmt.Sprintf(`Page

Page

`, blockingType) + if got := Wave3SchemaRunHTML("schema_faq_howto_html", html, "https://example.com/page", ""); got != nil { + t.Fatalf("schema-faq-howto MUST yield when %s is in @graph, got %+v", blockingType, got) + } + } + + // 2. schema-localbusiness MUST yield on Product, ProductGroup, Recipe, Event, Car, Vehicle, and commerce markers + for _, blockingType := range []string{"Product", "ProductGroup", "Recipe", "Event", "Car", "Vehicle", "MedicalClinic"} { + html := fmt.Sprintf(`Store

Shop

`, blockingType) + if got := Round2RunHTML("schema_localbusiness_html", html, "https://shop.example.com/item", ""); got != nil { + t.Fatalf("schema-localbusiness MUST yield when %s is present, got %+v", blockingType, got) + } + } + for _, marker := range []string{"Shopify.shop = 'demo.myshopify.com';", ``, ``, `https://static.wixstatic.com/media/1.png`} { + html := fmt.Sprintf(`Store

Shop

`, marker) + if got := Round2RunHTML("schema_localbusiness_html", html, "https://shop.example.com/", ""); got != nil { + t.Fatalf("schema-localbusiness MUST yield on commerce marker %q, got %+v", marker, got) + } + } + // Missing all of address/telephone/openingHours/geo -> yield + minimalLB := `Name Only

Name Only

` + if got := Round2RunHTML("schema_localbusiness_html", minimalLB, "https://example.com/", ""); got != nil { + t.Fatalf("schema-localbusiness MUST yield without address/telephone/hours/geo, got %+v", got) + } + + // 3. schema-recipe yields on Product without Recipe + productOnly := `Mug

Mug

` + if got := Round2RunHTML("schema_recipe_html", productOnly, "https://shop.example.com/products/mug", ""); got != nil { + t.Fatalf("schema-recipe MUST yield on Product without Recipe, got %+v", got) + } + + // 4. schema-medical yields when Product is present + medProduct := `Supplement

Vitamin D3

` + if got := Wave3SchemaRunHTML("schema_medical_html", medProduct, "https://shop.example.com/products/vitd", ""); got != nil { + t.Fatalf("schema-medical MUST yield when Product is present, got %+v", got) + } + + // 5. schema-event excludes eventbrite/meetup/lu.ma/luma/ticketmaster/runsignup + evHTML := `Concert

Concert

` + for _, host := range []string{"eventbrite.com", "www.meetup.com", "lu.ma", "luma.com", "www.ticketmaster.com", "runsignup.com"} { + if got := Round2RunHTML("schema_event_html", evHTML, "https://"+host+"/e/123", ""); got != nil { + t.Fatalf("schema-event MUST exclude host %s, got %+v", host, got) + } + } + + // 6. schema-vehicle strict 17-char VIN validation excluding I, O, Q + for _, badVIN := range []string{ + "1HGCM82633A00435", // 16 chars + "1HGCM82633A0043521", // 18 chars + "1HGCM826I3A004352", // contains I + "1HGCM826O3A004352", // contains O + "1HGCM826Q3A004352", // contains Q + } { + html := fmt.Sprintf(`2023 Honda Civic

2023 Honda Civic

`, badVIN) + res := Wave3SchemaRunHTML("schema_vehicle_html", html, "https://cars.example.com/civic", "") + if res == nil { + t.Fatalf("expected vehicle extraction without invalid VIN %q, got nil", badVIN) + } + if strings.Contains(res.Markdown, badVIN) { + t.Fatalf("invalid VIN %q MUST NEVER be emitted in Markdown:\n%s", badVIN, res.Markdown) + } + if _, hasVIN := res.Records[0]["vin"]; hasVIN { + t.Fatalf("invalid VIN %q MUST NEVER be emitted in Records: %+v", badVIN, res.Records[0]) + } + } +} + +func TestWave3SchemaManifestRouteExecution(t *testing.T) { + // Verify explicit manifest dispatch through ExtractHTMLOnManifest (including excludeHosts on schema-event) + eventManifest := &DeclarativeAdapterManifest{ + ID: "schema-event", + Name: "Schema.org Event & Festival", + Category: "commerce-social", + Description: "Universal Schema.org Event extractor.", + Domains: []string{"events.stanford.edu"}, + UniversalEngine: true, + AuthMode: "html", + ExampleURLs: []string{"https://events.stanford.edu/"}, + HTMLRoutes: []DeclarativeHTMLRouteSpec{ + { + ID: "schema-event", + Mode: "schema_event_html", + Match: DeclarativeMatchSpec{ + ExcludeHosts: []string{"eventbrite.com", "www.eventbrite.com", "meetup.com", "lu.ma", "luma.com", "ticketmaster.com", "runsignup.com"}, + }, + }, + }, + } + evHTML := `Stanford Talk

AI Symposium

` + out, ok := ExtractHTMLOnManifest(eventManifest, evHTML, "https://events.stanford.edu/", "", nil) + if !ok || out == nil || out.ExtractorID != "schema-event" { + t.Fatalf("ExtractHTMLOnManifest failed for schema-event: ok=%v out=%+v", ok, out) + } + if _, excludedOK := ExtractHTMLOnManifest(eventManifest, evHTML, "https://www.eventbrite.com/e/123", "", nil); excludedOK { + t.Fatalf("ExtractHTMLOnManifest must exclude eventbrite.com") + } +} + +func TestWave3SchemaNegativeShellsAndSafety(t *testing.T) { + modes := []string{ + "schema_vehicle_html", + "schema_faq_howto_html", + "schema_dataset_html", + "schema_software_app_html", + "schema_medical_html", + } + negShells := []struct { + name string + status int + url string + html string + checkStateFull bool + }{ + {"http-404", 404, "https://example.com/item", `404 Page Not Found

Not Found

`, true}, + {"error-redirect", 200, "https://example.com/error", `Site

Error

`, true}, + {"maintenance", 503, "https://example.com/item", `503 Service Unavailable

Scheduled Maintenance

Site is down for maintenance. Please check back soon.

`, true}, + {"empty-spa", 200, "https://example.com/item", `Loading...
`, true}, + {"cf-challenge", 403, "https://example.com/item", `Just a moment...
`, true}, + {"anubis-pow", 200, "https://example.com/item", `Making sure you're not a bot!

Making sure you're not a bot!

`, false}, + } + + for _, m := range modes { + for _, ns := range negShells { + if res := Wave3SchemaRunHTML(m, ns.html, ns.url, ""); res != nil { + t.Fatalf("mode %s negative %s returned non-nil: %+v", m, ns.name, res) + } + if ns.checkStateFull { + cs := classify.ClassifyContentStateFull(classify.ContentStateInput{ + Status: ns.status, + URL: "https://example.com/item", + FinalURL: ns.url, + RawHTML: ns.html, + Markdown: "", + }) + if cs.State == "active" { + t.Fatalf("negative shell %s must never classify as active", ns.name) + } + } + } + } + + // XSS / unsafe URL sanitization check (JSON-escaped

Dataset

` + xssRes := Wave3SchemaRunHTML("schema_dataset_html", xssHTML, "https://data.example.org/ds", "") + if xssRes == nil { + t.Fatalf("expected sanitized dataset result") + } + if strings.Contains(xssRes.Markdown, "

Bistro Foo

` + if got := Round2RunHTML("schema_localbusiness_html", restHasMenu, "https://bistrofoo.example.com/menu", ""); got != nil { + t.Fatalf("schema-localbusiness MUST yield on Restaurant+hasMenu, got %+v", got) + } + if menuOut := Wave3PropRestIRRunHTML("schema_menu_html", restHasMenu, "https://bistrofoo.example.com/menu", ""); menuOut == nil || menuOut.ExtractorID != "schema-menu" { + t.Fatalf("schema-menu must extract Restaurant+hasMenu, got %+v", menuOut) + } + + restGraphMenu := `Bistro Bar

Bistro Bar

` + if got := Round2RunHTML("schema_localbusiness_html", restGraphMenu, "https://bistrobar.example.com/menu", ""); got != nil { + t.Fatalf("schema-localbusiness MUST yield on @graph Restaurant+Menu, got %+v", got) + } + + // Plain Restaurant with string hasMenu URL (no Menu items) should still resolve to schema-localbusiness + restLinkMenu := `Cafe

Corner Cafe

` + if got := Round2RunHTML("schema_localbusiness_html", restLinkMenu, "https://cafe.example.com/", ""); got == nil || got.ExtractorID != "schema-localbusiness" { + t.Fatalf("Restaurant with string hasMenu URL should still resolve to schema-localbusiness, got %+v", got) + } + + // Finding 7: schema-dataset, schema-software-app, schema-vehicle MUST yield on Product/ProductGroup or commerce platform markers + shopifyGraph := func(extraNode string) string { + return fmt.Sprintf(`Store

Item

`, extraNode) + } + if got := Wave3SchemaRunHTML("schema_dataset_html", shopifyGraph(`{"@type":"Dataset","name":"Size Chart Dataset"}`), "https://demo.example.com/products/shirt", ""); got != nil { + t.Fatalf("schema-dataset MUST yield on Product + Shopify.shop, got %+v", got) + } + if got := Wave3SchemaRunHTML("schema_software_app_html", shopifyGraph(`{"@type":"SoftwareApplication","name":"Store App"}`), "https://demo.example.com/products/app", ""); got != nil { + t.Fatalf("schema-software-app MUST yield on Product + Shopify.shop, got %+v", got) + } + if got := Wave3SchemaRunHTML("schema_vehicle_html", shopifyGraph(`{"@type":"Vehicle","name":"Roof Rack Fitment","vehicleIdentificationNumber":"1HGCM82633A004352"}`), "https://demo.example.com/products/rack", ""); got != nil { + t.Fatalf("schema-vehicle MUST yield on Product + Shopify.shop, got %+v", got) + } + // Separate Product + Vehicle without Shopify markers MUST also yield + separateProdVeh := `Roof Rack

Roof Rack

` + if got := Wave3SchemaRunHTML("schema_vehicle_html", separateProdVeh, "https://accessories.example.com/rack", ""); got != nil { + t.Fatalf("schema-vehicle MUST yield when separate Product node lacks Car/Vehicle type, got %+v", got) + } + // Dealership VDP with @type: ["Product","Car"] and NO Shopify/Woo markers MUST STILL WORK + dealerVDP := `2024 Honda Accord

2024 Honda Accord

` + if got := Wave3SchemaRunHTML("schema_vehicle_html", dealerVDP, "https://www.hondaofseattle.com/inventory/new-2024-honda-accord", ""); got == nil || got.ExtractorID != "schema-vehicle" { + t.Fatalf("dealership VDP with @type: ['Product','Car'] must resolve to schema-vehicle, got %+v", got) + } +} diff --git a/internal/extract/wave3_store_addons.go b/internal/extract/wave3_store_addons.go new file mode 100644 index 0000000..b616009 --- /dev/null +++ b/internal/extract/wave3_store_addons.go @@ -0,0 +1,1963 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3StoreMaxHTMLBytes = 2 * 1024 * 1024 + wave3StoreMaxJSONBytes = 4 * 1024 * 1024 + wave3StoreMaxRecords = 30 +) + +var ( + wave3StoreRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|page\s+not\s+found|page\s+cannot\s+be\s+found|not\s+found|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|tracking\s+not\s+found|shipment\s+not\s+found|article\s+not\s+found|product\s+not\s+found)(?:\b|$)`) + wave3StoreRxMaintTitle = 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)`) + wave3StoreRxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:401|403|404|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|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:401|403|404|410|429|500|502|503)|error)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3StoreRxGenericHead = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|menu|navigation|route\s+tracking)$`) + wave3StoreRxCurrency3 = newLazyRegexp(`^[A-Z]{3}$`) + wave3StoreRxISODate = 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})`) + wave3StoreRxSpace = newLazyRegexp(`[ \t\r\n]+`) + wave3StoreRxKlaviyoCID = newLazyRegexp(`(?i)(?:static\.klaviyo\.com/onsite/js/(?:([A-Za-z0-9]{4,16})/klaviyo\.js|klaviyo\.js\?company_id=([A-Za-z0-9]{4,16}))|[?&]company_id=([A-Za-z0-9]{4,16})|_learnq\.push\(\s*\[\s*['"]account['"]\s*,\s*['"]([A-Za-z0-9]{4,16})['"])`) + wave3StoreRxKlaviyoFormID = newLazyRegexp(`(?i)(?:data-klaviyo-form-id\s*=\s*["']([A-Za-z0-9]{4,16})["']|klaviyo-form-([A-Za-z0-9]{4,16}))`) + wave3StoreRxAttentiveTag = newLazyRegexp(`(?i)https?://cdn\.attn\.tv/([a-z0-9_-]{2,64})/dtag\.js`) + wave3StoreRxSellingSize = newLazyRegexp(`(?i)selling_plans_size\s*[:=]\s*["']?(\d+)["']?`) + wave3StoreRxRechargeShop = newLazyRegexp(`(?i)rechargecdn\.com/[^\s"'<>]*[?&]shop=([a-z0-9.-]+)`) + wave3StoreRxProductJSONLD = newLazyRegexp(`(?i)"@type"\s*:\s*(?:"(?:https?://schema\.org/)?(?:Product|ProductGroup|Article|NewsArticle|BlogPosting|Recipe|Event|Course|JobPosting)"|\[[^\]]{0,240}"(?:https?://schema\.org/)?(?:Product|ProductGroup|Article|NewsArticle|BlogPosting|Recipe|Event|Course|JobPosting)")`) + wave3StoreRxOGTypeProduct = newLazyRegexp(`(?is)]*(?:property\s*=\s*["']og:type["'][^>]*content\s*=\s*["']product["']|content\s*=\s*["']product["'][^>]*property\s*=\s*["']og:type["'])`) + wave3StoreRxHydratedTrack = newLazyRegexp(`(?i)(?:"trackingNumber"|"tracking_number"|"checkpoints"|"trackingStatus"|"deliveryStatus"|"orderNumber"|"order_number"|"courierSlug"|"slug"\s*:\s*"(?:ups|usps|fedex|dhl|ontrac|lasership|dpd|royal-mail))`) +) + +func init() { + for _, mode := range []string{ + "shopify_hydrogen_html", + "recharge_bold_subscriptions_html", + "shopify_filter_apps_html", + "rebuy_searchanise_html", + "aftership_tracking_html", + "branded_tracking_pack_html", + "gorgias_reamaze_html", + "klaviyo_attentive_forms_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3StoreAddonsRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3StoreAddonsHTMLMode reports whether mode is handled by Category I Store Add-Ons HTML extractors (#263-#270). +func IsWave3StoreAddonsHTMLMode(mode string) bool { + switch mode { + case "shopify_hydrogen_html", + "recharge_bold_subscriptions_html", + "shopify_filter_apps_html", + "rebuy_searchanise_html", + "aftership_tracking_html", + "branded_tracking_pack_html", + "gorgias_reamaze_html", + "klaviyo_attentive_forms_html": + return true + default: + return false + } +} + +// IsWave3StoreAddonsJSONMode reports whether mode is handled by Category I Store Add-Ons JSON formatters (#265, #266). +func IsWave3StoreAddonsJSONMode(mode string) bool { + switch mode { + case "shopify_filter_apps_json", + "rebuy_searchanise_json": + return true + default: + return false + } +} + +func wave3StoreDefaultExtractorID(mode string) string { + switch mode { + case "shopify_hydrogen_html": + return "shopify-hydrogen" + case "recharge_bold_subscriptions_html": + return "recharge-bold-subscriptions" + case "shopify_filter_apps_html", "shopify_filter_apps_json": + return "shopify-filter-apps" + case "rebuy_searchanise_html", "rebuy_searchanise_json": + return "rebuy-searchanise" + case "aftership_tracking_html": + return "aftership-tracking-page" + case "branded_tracking_pack_html": + return "branded-tracking-pack" + case "gorgias_reamaze_html": + return "gorgias-reamaze" + case "klaviyo_attentive_forms_html": + return "klaviyo-attentive-forms" + default: + return "" + } +} + +// Wave3StoreAddonsRunHTML executes a Category I Store Add-Ons HTML extractor (#263-#270). +// Companion-only modes (#265, #266) always return nil so they never preempt shopify_html. +func Wave3StoreAddonsRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + switch mode { + case "shopify_filter_apps_html", "rebuy_searchanise_html": + // Companion-only page-key modes return nil in HTML extraction so they never preempt + // shopify_html in alphabetical reg.universal order or block Tier 1A/1B auto-twins. + return nil + } + if !IsWave3StoreAddonsHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3StoreMaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3StoreMaxHTMLBytes) + } + trimmed := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmed == "" || trimmed[0] == '{' || trimmed[0] == '[' { + return nil + } + if wave3StoreHasNegativeShell(rawHTML, baseURL) { + return nil + } + if extractorID == "" { + extractorID = wave3StoreDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "shopify_hydrogen_html": + res = wave3StoreExtractHydrogenHTML(rawHTML, baseURL, extractorID) + case "recharge_bold_subscriptions_html": + res = wave3StoreExtractRechargeBoldHTML(rawHTML, baseURL, extractorID) + case "aftership_tracking_html": + res = wave3StoreExtractAfterShipHTML(rawHTML, baseURL, extractorID) + case "branded_tracking_pack_html": + res = wave3StoreExtractBrandedTrackingHTML(rawHTML, baseURL, extractorID) + case "gorgias_reamaze_html": + res = wave3StoreExtractGorgiasReamazeHTML(rawHTML, baseURL, extractorID) + case "klaviyo_attentive_forms_html": + res = wave3StoreExtractKlaviyoAttentiveHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return res +} + +// RunWave3StoreAddonsHTMLMode executes a Category I HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3StoreAddonsHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3StoreAddonsRunHTML(mode, rawHTML, baseURL, wave3StoreDefaultExtractorID(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 +} + +// FormatWave3StoreAddonsJSONDoc formats a Category I Store Add-Ons JSON payload into DeclarativeFormattedDoc. +func FormatWave3StoreAddonsJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3StoreAddonsJSONMode(mode) || len(raw) == 0 || len(raw) > wave3StoreMaxJSONBytes { + return nil, false + } + payload := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(payload) == 0 || (payload[0] != '{' && payload[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(payload) + if !ok || parsed == nil { + return nil, false + } + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "shopify_filter_apps_json": + doc, handled = wave3StoreFormatFilterAppsJSON(parsed, origURL) + case "rebuy_searchanise_json": + doc, handled = wave3StoreFormatRebuySearchaniseJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3StoreFinalizeDoc(doc), true +} + +// FormatWave3StoreAddonsJSONMode formats a Category I JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3StoreAddonsJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3StoreAddonsJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// ── Shared Hygiene & Validation Helpers ───────────────────────────────────────────────────────── + +func wave3StoreIntPtr(v int) *int { return &v } +func wave3StoreBoolPtr(v bool) *bool { return &v } + +func wave3StoreFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3StoreMaxRecords { + if doc.Total == nil { + doc.Total = wave3StoreIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3StoreMaxRecords] + doc.Returned = wave3StoreIntPtr(len(doc.Records)) + doc.Truncated = wave3StoreBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3StoreCleanText(s string) string { + if s == "" { + return "" + } + s = stdhtml.UnescapeString(s) + s = stripTagsInlineLinear(s) + s = wave3StoreRxSpace.ReplaceAllString(s, " ") + return strings.TrimSpace(s) +} + +func wave3StorePlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(v, maxLen) +} + +func wave3StoreFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if strings.TrimSpace(v) != "" { + return strings.TrimSpace(v) + } + } + return "" +} + +func wave3StoreLowerProbe(rawHTML string, maxBytes int) string { + return strings.ToLower(truncateUTF8SafeFullDocGo(rawHTML, maxBytes)) +} + +func wave3StoreCollectWindows(rawHTML string, anchors []string, back, fwd, maxHits int) string { + if rawHTML == "" || len(anchors) == 0 || maxHits <= 0 { + return "" + } + var sb strings.Builder + hits := 0 + for _, anchor := range anchors { + pos := 0 + for pos < len(rawHTML) && hits < maxHits { + rel := indexFoldASCIIExtract(rawHTML[pos:], anchor) + if rel < 0 { + break + } + hit := pos + rel + start := hit - back + if start < 0 { + start = 0 + } + end := hit + fwd + if end > len(rawHTML) { + end = len(rawHTML) + } + sb.WriteString(rawHTML[start:end]) + sb.WriteByte('\n') + hits++ + pos = hit + len(anchor) + } + if hits >= maxHits { + break + } + } + return sb.String() +} + +func wave3StoreValidateCurrency(raw string) string { + c := strings.ToUpper(strings.TrimSpace(raw)) + if wave3StoreRxCurrency3.MatchString(c) { + return c + } + return "" +} + +func wave3StoreValidatePrice(v any) (string, bool) { + switch t := v.(type) { + case json.Number: + f, err := t.Float64() + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) || f < 0 { + return "", false + } + return strconv.FormatFloat(f, 'f', 2, 64), true + case float64: + if math.IsNaN(t) || math.IsInf(t, 0) || t < 0 { + return "", false + } + return strconv.FormatFloat(t, 'f', 2, 64), true + case int: + if t < 0 { + return "", false + } + return strconv.Itoa(t) + ".00", true + case string: + s := strings.TrimSpace(t) + if s == "" { + return "", false + } + clean := strings.TrimSpace(strings.TrimLeft(s, "$€£¥")) + clean = strings.ReplaceAll(clean, ",", "") + f, err := strconv.ParseFloat(clean, 64) + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) || f < 0 { + return "", false + } + return strconv.FormatFloat(f, 'f', 2, 64), true + default: + return "", false + } +} + +func wave3StoreValidateISODate(raw string) string { + s := strings.TrimSpace(raw) + if m := wave3StoreRxISODate.FindStringSubmatch(s); len(m) == 2 { + return m[1] + } + return "" +} + +func wave3StoreResolveURL(rawRef, baseURL string) string { + ref := strings.TrimSpace(stdhtml.UnescapeString(rawRef)) + if ref == "" || strings.HasPrefix(ref, "#") || strings.HasPrefix(strings.ToLower(ref), "javascript:") || strings.HasPrefix(strings.ToLower(ref), "mailto:") { + return "" + } + if strings.HasPrefix(ref, "//") { + ref = "https:" + ref + } + u, err := url.Parse(ref) + if err != nil { + return "" + } + if !u.IsAbs() && baseURL != "" { + if bu, bErr := url.Parse(baseURL); bErr == nil { + u = bu.ResolveReference(u) + } + } + if u.Scheme != "https" && u.Scheme != "http" { + return "" + } + return u.String() +} + +func wave3StoreHTMLToMD(frag, baseURL string) (string, []string) { + trimmed := strings.TrimSpace(frag) + if trimmed == "" { + return "", nil + } + if !strings.Contains(trimmed, "<") { + return SanitizeSchemaPlainField(trimmed, 8000), nil + } + ext := ExtractHTMLDocumentFull(""+trimmed+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: false, + IncludeImages: true, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return ext.Markdown, ext.Links +} + +func wave3StoreIsNegativeURL(baseURL string) bool { + u, err := url.Parse(strings.TrimSpace(baseURL)) + if err != nil { + return false + } + p := strings.ToLower(u.Path) + for _, seg := range strings.Split(p, "/") { + switch seg { + case "error", "404", "403", "500", "502", "503", "not-found", "page-not-found", "maintenance", "unavailable", "cdn-cgi": + return true + } + } + return strings.Contains(p, "/cdn-cgi/challenge") +} + +func wave3StoreHasNegativeShell(rawHTML, baseURL string) bool { + if wave3StoreIsNegativeURL(baseURL) { + return true + } + probe := rawHTML + if len(probe) > 64*1024 { + probe = probe[:64*1024] + } + low := strings.ToLower(probe) + + // Cloudflare / WAF / anti-bot challenges (must reject honestly without bypass) + if strings.Contains(low, "cf-mitigated") || + strings.Contains(low, "cf-turnstile") || + strings.Contains(low, "cdn-cgi/challenge-platform") || + strings.Contains(low, "checking your browser before accessing") || + strings.Contains(low, "enable javascript and cookies to continue") || + strings.Contains(low, "attention required! | cloudflare") || + strings.Contains(low, "ddos-guard") || + strings.Contains(low, "px-captcha") { + return true + } + + doc := ParseHTMLDoc(probe, 64*1024) + title := strings.TrimSpace(doc.Text("title")) + h1 := strings.TrimSpace(doc.Text("h1")) + if wave3StoreRxNotFoundTitle.MatchString(title) || wave3StoreRxMaintTitle.MatchString(title) || wave3StoreRxErrorTitle.MatchString(title) { + return true + } + if wave3StoreRxNotFoundTitle.MatchString(h1) || wave3StoreRxMaintTitle.MatchString(h1) || wave3StoreRxErrorTitle.MatchString(h1) { + return true + } + if strings.Contains(low, "scheduled maintenance") || strings.Contains(low, "down for maintenance") || strings.Contains(low, "temporarily unavailable") { + if len(wave3StoreCleanText(doc.Text("body"))) < 800 { + return true + } + } + + // Empty SPA/CSR shell check (when no hydration payloads with data exist) + bodyText := wave3StoreCleanText(doc.Text("body")) + if len(bodyText) < 120 && + !strings.Contains(low, "__next_data__") && + !strings.Contains(low, "__remixcontext") && + !strings.Contains(low, "selling_plan") && + !strings.Contains(low, "ld+json") && + !strings.Contains(low, "klaviyo") && + !strings.Contains(low, "attn.tv") { + if strings.Contains(low, `id="root"`) || strings.Contains(low, `id='root'`) || + strings.Contains(low, `id="app"`) || strings.Contains(low, `id='app'`) || + strings.Contains(low, `id="__next"`) || strings.Contains(low, `id="__nuxt"`) || + wave3StoreRxGenericHead.MatchString(title) { + return true + } + } + return false +} + +func wave3StoreExtractScriptJSONByID(rawHTML, scriptID string) (any, bool) { + marker := fmt.Sprintf(`id="%s"`, scriptID) + idx := indexFoldASCIIExtract(rawHTML, strings.ToLower(marker)) + if idx < 0 { + markerSQ := fmt.Sprintf(`id='%s'`, scriptID) + idx = indexFoldASCIIExtract(rawHTML, strings.ToLower(markerSQ)) + } + if idx < 0 { + return nil, false + } + gt := strings.IndexByte(rawHTML[idx:], '>') + if gt < 0 { + return nil, false + } + start := idx + gt + 1 + endRel := indexFoldASCIIExtract(rawHTML[start:], "") + if endRel < 0 || endRel > 1024*1024 { + return nil, false + } + rawJSON := strings.TrimSpace(rawHTML[start : start+endRel]) + if rawJSON == "" || (rawJSON[0] != '{' && rawJSON[0] != '[') { + return nil, false + } + return decodeJSONWithNumbers([]byte(rawJSON)) +} + +func wave3StoreAppendLink(links *[]string, seen map[string]bool, rawURL string) { + if rawURL == "" || seen[rawURL] || len(*links) >= 40 { + return + } + seen[rawURL] = true + *links = append(*links, rawURL) +} + +func wave3StoreAsMap(v any) map[string]any { + m, _ := v.(map[string]any) + return m +} + +func wave3StoreAsSlice(v any) []any { + s, _ := v.([]any) + return s +} + +func wave3StoreIsJSONError(obj map[string]any) bool { + if obj == nil { + return true + } + if errVal, ok := obj["error"]; ok && errVal != nil && errVal != false && errVal != "" { + return true + } + if st := strings.ToLower(wave3StorePlain(obj["status"], 40)); st == "error" || st == "fail" || st == "failed" || st == "forbidden" || st == "unauthorized" { + return true + } + if code, ok := obj["statusCode"]; ok { + if f, okF := jsonValueToFloat(code); okF && f >= 400 { + return true + } + } + if code, ok := obj["status_code"]; ok { + if f, okF := jsonValueToFloat(code); okF && f >= 400 { + return true + } + } + return false +} + +// ── #262: Shopify Storefront GraphQL JSON Formatter ───────────────────────────────────────────── + +func wave3StoreExtractGraphQLNodes(conn map[string]any) []map[string]any { + if conn == nil { + return nil + } + var out []map[string]any + if edges := wave3StoreAsSlice(conn["edges"]); len(edges) > 0 { + for _, e := range edges { + if em := wave3StoreAsMap(e); em != nil { + if node := wave3StoreAsMap(em["node"]); node != nil { + out = append(out, node) + } + } + } + return out + } + if nodes := wave3StoreAsSlice(conn["nodes"]); len(nodes) > 0 { + for _, n := range nodes { + if nm := wave3StoreAsMap(n); nm != nil { + out = append(out, nm) + } + } + } + return out +} + +func wave3StoreFormatMoneyV2(m map[string]any) string { + if m == nil { + return "" + } + priceStr, okP := wave3StoreValidatePrice(m["amount"]) + if !okP { + return "" + } + cur := wave3StoreValidateCurrency(wave3StorePlain(m["currencyCode"], 10)) + if cur != "" { + return cur + " " + priceStr + } + return priceStr +} + +// ── #263: Shopify Hydrogen (__remixContext) HTML Extractor ────────────────────────────────────── + +func wave3StoreContainsShopifyHydrogenToken(s string) bool { + return strings.Contains(s, "gid://shopify/") || + strings.Contains(s, "checkout.hydrogen.shop") || + strings.Contains(s, "cdn.shopify.com") || + strings.Contains(s, "myshopify.com") || + strings.Contains(s, "shopify.com") +} + +func wave3StoreWalkHydrogenData(val any, shopInfo *map[string]any, products *[]map[string]any, collections *[]map[string]any, depth int) { + if depth > 6 || val == nil { + return + } + switch t := val.(type) { + case map[string]any: + if s := wave3StoreAsMap(t["shop"]); s != nil && wave3StorePlain(s["name"], 120) != "" && *shopInfo == nil { + *shopInfo = s + } + if p := wave3StoreAsMap(t["product"]); p != nil && wave3StorePlain(p["title"], 200) != "" { + *products = append(*products, p) + } + for _, arrKey := range []string{"products", "recommendedProducts", "featuredProducts", "items"} { + if conn := wave3StoreAsMap(t[arrKey]); conn != nil { + *products = append(*products, wave3StoreExtractGraphQLNodes(conn)...) + } else if arr := wave3StoreAsSlice(t[arrKey]); len(arr) > 0 { + for _, it := range arr { + if m := wave3StoreAsMap(it); m != nil && wave3StorePlain(m["title"], 200) != "" { + *products = append(*products, m) + } + } + } + } + for _, colKey := range []string{"collections", "featuredCollections"} { + if colConn := wave3StoreAsMap(t[colKey]); colConn != nil { + *collections = append(*collections, wave3StoreExtractGraphQLNodes(colConn)...) + } else if colArr := wave3StoreAsSlice(t[colKey]); len(colArr) > 0 { + for _, it := range colArr { + if m := wave3StoreAsMap(it); m != nil && wave3StorePlain(m["title"], 160) != "" { + *collections = append(*collections, m) + } + } + } + } + for k, v := range t { + if k == "shop" || k == "product" || k == "products" || k == "recommendedProducts" || k == "featuredProducts" || k == "items" || k == "collections" || k == "featuredCollections" { + continue + } + wave3StoreWalkHydrogenData(v, shopInfo, products, collections, depth+1) + } + case []any: + for i, it := range t { + if i >= 20 { + break + } + wave3StoreWalkHydrogenData(it, shopInfo, products, collections, depth+1) + } + } +} + +func wave3StoreExtractHydrogenHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + slice := truncateUTF8SafeFullDocGo(rawHTML, 256*1024) + if !strings.Contains(slice, "__remixContext") { + return nil + } + idx := strings.Index(slice, "__remixContext") + if idx < 0 { + return nil + } + tail := rawHTML[idx:] + if !wave3StoreContainsShopifyHydrogenToken(truncateUTF8SafeFullDocGo(tail, 1024*1024)) { + return nil + } + braceRel := strings.IndexByte(tail, '{') + if braceRel < 0 || braceRel > 48 { + return nil + } + rawJSON, _, ok := ExtractBalancedJSONAt(tail, braceRel, 1024*1024) + if !ok || rawJSON == "" || !wave3StoreContainsShopifyHydrogenToken(rawJSON) { + return nil + } + parsed, okP := decodeJSONWithNumbers([]byte(rawJSON)) + if !okP || parsed == nil { + return nil + } + root := wave3StoreAsMap(parsed) + state := wave3StoreAsMap(root["state"]) + loaderData := wave3StoreAsMap(state["loaderData"]) + if len(loaderData) == 0 { + return nil + } + if errs := wave3StoreAsMap(state["errors"]); len(errs) > 0 && len(loaderData) <= 1 { + // Remix error boundary without active route data + if _, hasRootOnly := loaderData["root"]; hasRootOnly && len(loaderData) == 1 { + return nil + } + } + + var shopInfo map[string]any + var products []map[string]any + var collections []map[string]any + wave3StoreWalkHydrogenData(loaderData, &shopInfo, &products, &collections, 0) + + doc := ParseHTMLDoc(rawHTML, 256*1024) + shopName := wave3StorePlain(shopInfo["name"], 160) + shopDesc := wave3StorePlain(shopInfo["description"], 400) + pageTitle := wave3StoreFirstNonEmpty( + wave3StorePlain(doc.Text("h1"), 220), + wave3StorePlain(doc.Text("title"), 220), + shopName, + ) + + if len(products) == 0 && len(collections) == 0 && shopName == "" { + return nil + } + + var md []string + var recs []map[string]any + var links []string + seenLinks := map[string]bool{} + + md = append(md, "# "+escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(pageTitle, "Shopify Hydrogen Storefront"))) + var metaBullets []string + if shopName != "" { + metaBullets = append(metaBullets, "- **Store**: "+escapeDeclMarkdownBrackets(shopName)) + } + metaBullets = append(metaBullets, "- **Framework**: Shopify Hydrogen (Remix SSR)") + if prim := wave3StoreAsMap(shopInfo["primaryDomain"]); prim != nil { + if pu := wave3StoreResolveURL(wave3StorePlain(prim["url"], 300), baseURL); pu != "" { + metaBullets = append(metaBullets, "- **Domain**: "+pu) + wave3StoreAppendLink(&links, seenLinks, pu) + } + } + md = append(md, strings.Join(metaBullets, "\n")) + if shopDesc != "" { + md = append(md, shopDesc) + } + + seenProd := map[string]bool{} + var prodRows []string + for _, p := range products { + if len(recs) >= wave3StoreMaxRecords { + break + } + pt := wave3StorePlain(p["title"], 200) + if pt == "" { + continue + } + ph := wave3StorePlain(p["handle"], 140) + key := strings.ToLower(pt + "|" + ph) + if seenProd[key] { + continue + } + seenProd[key] = true + vendor := wave3StorePlain(p["vendor"], 120) + pr := wave3StoreAsMap(p["priceRange"]) + price := wave3StoreFormatMoneyV2(wave3StoreAsMap(pr["minVariantPrice"])) + if price == "" { + if sv := wave3StoreAsMap(p["selectedVariant"]); sv != nil { + price = wave3StoreFormatMoneyV2(wave3StoreAsMap(sv["price"])) + } + } + pURL := "" + if ph != "" { + pURL = wave3StoreResolveURL("/products/"+ph, baseURL) + wave3StoreAppendLink(&links, seenLinks, pURL) + } + titleCell := escapeDeclMarkdownBrackets(pt) + if pURL != "" { + titleCell = fmt.Sprintf("[%s](%s)", titleCell, pURL) + } + prodRows = append(prodRows, fmt.Sprintf("| %s | %s | %s |", + titleCell, escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(vendor, "-")), wave3StoreFirstNonEmpty(price, "-"))) + rec := map[string]any{"type": "product", "title": pt} + if ph != "" { + rec["handle"] = ph + } + if vendor != "" { + rec["vendor"] = vendor + } + if price != "" { + rec["price"] = price + } + if pURL != "" { + rec["url"] = pURL + } + recs = append(recs, rec) + } + if len(prodRows) > 0 { + md = append(md, "## Products\n\n| Product | Vendor | Price |\n|---|---|---|\n"+strings.Join(prodRows, "\n")) + } + + var colLines []string + for i, c := range collections { + if i >= 15 { + break + } + ct := wave3StorePlain(c["title"], 160) + if ct == "" { + continue + } + ch := wave3StorePlain(c["handle"], 120) + cURL := "" + if ch != "" { + cURL = wave3StoreResolveURL("/collections/"+ch, baseURL) + wave3StoreAppendLink(&links, seenLinks, cURL) + } + if cURL != "" { + colLines = append(colLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(ct), cURL)) + } else { + colLines = append(colLines, "- "+escapeDeclMarkdownBrackets(ct)) + } + if len(recs) < wave3StoreMaxRecords { + recs = append(recs, map[string]any{"type": "collection", "title": ct, "handle": ch}) + } + } + if len(colLines) > 0 { + md = append(md, "## Collections\n\n"+strings.Join(colLines, "\n")) + } + + if len(recs) == 0 && shopName != "" { + // Shop metadata present — ensure meaningful DOM content exists so empty shell is rejected + bodyText := wave3StoreCleanText(doc.Text("main")) + if bodyText == "" { + bodyText = wave3StoreCleanText(doc.Text("body")) + } + if len(bodyText) < 40 && shopDesc == "" { + return nil + } + recs = append(recs, map[string]any{"type": "shop", "name": shopName, "framework": "shopify-hydrogen"}) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: pageTitle, + Description: shopDesc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #264: Recharge & Bold Subscriptions HTML Extractor ────────────────────────────────────────── + +func wave3StoreExtractRechargeBoldHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + // Cheap byte prefilter: must contain Recharge or Bold Subscriptions markers + hasRechargeMarker := strings.Contains(rawHTML, "rechargecdn.com") || + strings.Contains(rawHTML, "rechargepayments.com") || + strings.Contains(rawHTML, "rc-widget") || + strings.Contains(rawHTML, "rc-selling-plans") || + strings.Contains(rawHTML, "variant-purchase-selector") || + strings.Contains(rawHTML, "selling_plans_size") || + strings.Contains(rawHTML, "selling_plan_groups") + hasBoldMarker := strings.Contains(rawHTML, "boldapps.net") || + strings.Contains(rawHTML, "bold-subscriptions") || + strings.Contains(rawHTML, "bold_subscriptions") || + strings.Contains(rawHTML, "bold-ro__") || + strings.Contains(rawHTML, "bsub-widget") + if !hasRechargeMarker && !hasBoldMarker { + return nil + } + + // Non-preemption guard: verify genuine subscription / selling-plan data is present + // so normal Shopify PDPs without active subscriptions fall through cleanly to shopify_html. + hasSellingPlans := false + explicitZeroPlans := false + if idx := indexFoldASCIIExtract(rawHTML, "selling_plans_size"); idx >= 0 { + winEnd := idx + 64 + if winEnd > len(rawHTML) { + winEnd = len(rawHTML) + } + if m := wave3StoreRxSellingSize.FindStringSubmatch(rawHTML[idx:winEnd]); len(m) == 2 { + if n, err := strconv.Atoi(m[1]); err == nil { + if n > 0 { + hasSellingPlans = true + } else { + explicitZeroPlans = true + } + } + } + } + if !hasSellingPlans { + hasSellingPlans = indexFoldASCIIExtract(rawHTML, "selling_plan_groups") >= 0 || + indexFoldASCIIExtract(rawHTML, "rc-option--subsave") >= 0 || + indexFoldASCIIExtract(rawHTML, "bold-ro__recurring") >= 0 || + indexFoldASCIIExtract(rawHTML, "bsub-widget__plan") >= 0 + if !hasSellingPlans && !explicitZeroPlans { + probe := truncateUTF8SafeFullDocGo(rawHTML, 128*1024) + hasSellingPlans = indexFoldASCIIExtract(probe, `data-one-time-only="false"`) >= 0 || + indexFoldASCIIExtract(probe, `data-one-time-only='false'`) >= 0 || + indexFoldASCIIExtract(probe, "subscribe & save") >= 0 || + indexFoldASCIIExtract(probe, "subscribe & save") >= 0 || + indexFoldASCIIExtract(probe, "subscribe and save") >= 0 || + indexFoldASCIIExtract(probe, "delivery every") >= 0 + } + } + if !hasSellingPlans { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + title := wave3StoreFirstNonEmpty( + wave3StorePlain(doc.Text("h1"), 220), + wave3StorePlain(doc.AttrOf(`meta[property="og:title"]`, "content"), 220), + wave3StorePlain(doc.Text("title"), 220), + ) + if title == "" { + return nil + } + + var provider []string + if hasRechargeMarker { + provider = append(provider, "Recharge") + } + if hasBoldMarker { + provider = append(provider, "Bold Subscriptions") + } + + // Extract Product context from JSON-LD + meta tags + DOM + brand := wave3StorePlain(doc.AttrOf(`meta[property="og:site_name"]`, "content"), 140) + price := "" + currency := wave3StoreValidateCurrency(doc.AttrOf(`meta[property="product:price:currency"]`, "content")) + if pMeta := doc.AttrOf(`meta[property="product:price:amount"]`, "content"); pMeta != "" { + if pv, okP := wave3StoreValidatePrice(pMeta); okP { + price = pv + } + } + sku := "" + desc := wave3StorePlain(doc.AttrOf(`meta[name="description"]`, "content"), 500) + availability := "" + + for _, m := range ExtractJSONLDObjects(rawHTML, 25) { + isProduct := false + if tp, okT := m["@type"].(string); okT && strings.EqualFold(tp, "Product") { + isProduct = true + } else if tps, okArr := m["@type"].([]any); okArr { + for _, t := range tps { + if ts, okS := t.(string); okS && strings.EqualFold(ts, "Product") { + isProduct = true + break + } + } + } + if !isProduct { + continue + } + if pt := wave3StorePlain(m["name"], 220); pt != "" { + title = pt + } + if b := wave3StoreAsMap(m["brand"]); b != nil { + brand = wave3StoreFirstNonEmpty(wave3StorePlain(b["name"], 140), brand) + } else if bs := wave3StorePlain(m["brand"], 140); bs != "" { + brand = bs + } + sku = wave3StoreFirstNonEmpty(wave3StorePlain(m["sku"], 80), sku) + desc = wave3StoreFirstNonEmpty(wave3StorePlain(m["description"], 1200), desc) + offers := wave3StoreAsMap(m["offers"]) + if offers == nil { + if arr := wave3StoreAsSlice(m["offers"]); len(arr) > 0 { + offers = wave3StoreAsMap(arr[0]) + } + } + if offers != nil { + if pv, okP := wave3StoreValidatePrice(offers["price"]); okP { + price = pv + } else if pv, okP := wave3StoreValidatePrice(offers["lowPrice"]); okP { + price = pv + } + if c := wave3StoreValidateCurrency(wave3StorePlain(offers["priceCurrency"], 10)); c != "" { + currency = c + } + if av := wave3StorePlain(offers["availability"], 80); av != "" { + availability = av + } + } + break + } + + // Extract selling_plan_groups JSON if embedded + type planItem struct { + Group string + Name string + Info string + } + var plans []planItem + seenPlan := map[string]bool{} + if idx := strings.Index(rawHTML, `"selling_plan_groups"`); idx >= 0 { + tail := rawHTML[idx+len(`"selling_plan_groups"`):] + if arrStart := strings.IndexByte(tail, '['); arrStart >= 0 && arrStart < 16 { + if rawArr, _, okArr := ExtractBalancedJSONAt(tail, arrStart, 128*1024); okArr { + if parsedArr, okJ := decodeJSONWithNumbers([]byte(rawArr)); okJ { + for _, g := range wave3StoreAsSlice(parsedArr) { + gm := wave3StoreAsMap(g) + if gm == nil { + continue + } + gName := wave3StorePlain(gm["name"], 120) + for _, sp := range wave3StoreAsSlice(gm["selling_plans"]) { + spm := wave3StoreAsMap(sp) + if spm == nil { + continue + } + spName := wave3StorePlain(spm["name"], 160) + spDesc := wave3StorePlain(spm["description"], 200) + if spName != "" && !seenPlan[spName] { + seenPlan[spName] = true + plans = append(plans, planItem{Group: gName, Name: spName, Info: spDesc}) + } + } + } + } + } + } + } + + // Also extract DOM subscription options (Recharge/Bold selectors) + for _, opt := range doc.Select(`variant-purchase-selector option, .rc-selling-plans option, .rc-option__label, .bold-ro__recurring-lbl, .bsub-widget__plan-header, [data-selling-plan-id]`, 25) { + txt := wave3StoreCleanText(opt.Text()) + if len(txt) < 3 || len(txt) > 160 || seenPlan[txt] { + continue + } + seenPlan[txt] = true + plans = append(plans, planItem{Group: "Subscription Option", Name: txt}) + } + + shopDomain := "" + if idx := indexFoldASCIIExtract(rawHTML, "rechargecdn.com"); idx >= 0 { + winEnd := idx + 256 + if winEnd > len(rawHTML) { + winEnd = len(rawHTML) + } + if sm := wave3StoreRxRechargeShop.FindStringSubmatch(rawHTML[idx:winEnd]); len(sm) == 2 { + shopDomain = sm[1] + } + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + var bullets []string + bullets = append(bullets, "- **Subscription Provider**: "+strings.Join(provider, ", ")) + if brand != "" { + bullets = append(bullets, "- **Brand**: "+escapeDeclMarkdownBrackets(brand)) + } + if price != "" { + priceOut := price + if currency != "" { + priceOut = currency + " " + price + } + bullets = append(bullets, "- **Price**: "+priceOut) + } + if sku != "" { + bullets = append(bullets, "- **SKU**: `"+sku+"`") + } + if availability != "" { + bullets = append(bullets, "- **Availability**: "+escapeDeclMarkdownBrackets(availability)) + } + if shopDomain != "" { + bullets = append(bullets, "- **Shop**: `"+shopDomain+"`") + } + if m := wave3StoreRxSellingSize.FindStringSubmatch(rawHTML); len(m) == 2 { + bullets = append(bullets, "- **Selling Plans Count**: "+m[1]) + } + md = append(md, strings.Join(bullets, "\n")) + + if desc != "" { + md = append(md, "## Product Details\n\n"+desc) + } + + var planRecs []map[string]any + if len(plans) > 0 { + var rows []string + for i, p := range plans { + if i >= 20 { + break + } + rows = append(rows, fmt.Sprintf("| %s | %s | %s |", + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(p.Group, "-")), + escapeDeclMarkdownBrackets(p.Name), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(p.Info, "-")))) + planRecs = append(planRecs, map[string]any{ + "group": p.Group, + "name": p.Name, + "info": p.Info, + }) + } + md = append(md, "## Subscription Plans\n\n| Group | Plan | Details |\n|---|---|---|\n"+strings.Join(rows, "\n")) + } + + rec := map[string]any{ + "title": title, + "providers": provider, + } + if price != "" { + rec["price"] = price + } + if currency != "" { + rec["currency"] = currency + } + if len(planRecs) > 0 { + rec["selling_plans"] = planRecs + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3StorePlain(desc, 260), + Markdown: strings.Join(md, "\n\n"), + Records: []map[string]any{rec}, + } +} + +// ── #265: Shopify Filter Apps (Boost Commerce / Globo) JSON Formatter ─────────────────────────── + +func wave3StoreFormatFilterAppsJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + root := wave3StoreAsMap(parsed) + if root == nil || wave3StoreIsJSONError(root) { + return nil, false + } + // Boost Commerce 403 shape: {"message":"403 Forbidden: "} + if msg := strings.ToLower(wave3StorePlain(root["message"], 120)); strings.Contains(msg, "403") || strings.Contains(msg, "forbidden") || strings.Contains(msg, "unauthorized") { + return nil, false + } + + products := wave3StoreAsSlice(root["products"]) + if len(products) == 0 { + return nil, false + } + + totalCount := len(products) + for _, tk := range []string{"total_product", "total", "totalProducts"} { + if f, okF := jsonValueToFloat(root[tk]); okF && f >= float64(len(products)) { + totalCount = int(f) + break + } + } + + var rows []string + var recs []map[string]any + var links []string + seenLinks := map[string]bool{} + + for i, rawP := range products { + if i >= wave3StoreMaxRecords { + break + } + pm := wave3StoreAsMap(rawP) + if pm == nil { + continue + } + title := wave3StorePlain(pm["title"], 200) + if title == "" { + continue + } + handle := wave3StorePlain(pm["handle"], 140) + vendor := wave3StorePlain(pm["vendor"], 120) + ptype := wave3StorePlain(pm["product_type"], 100) + priceStr := "" + for _, pk := range []string{"price_min", "price", "price_max"} { + if pv, okP := wave3StoreValidatePrice(pm[pk]); okP { + priceStr = pv + break + } + } + availStr := "-" + if av, okA := pm["available"].(bool); okA { + if av { + availStr = "In Stock" + } else { + availStr = "Out of Stock" + } + } + pURL := wave3StoreResolveURL(wave3StorePlain(pm["url"], 500), origURL) + titleCell := escapeDeclMarkdownBrackets(title) + if pURL != "" { + titleCell = fmt.Sprintf("[%s](%s)", titleCell, pURL) + wave3StoreAppendLink(&links, seenLinks, pURL) + } + rows = append(rows, fmt.Sprintf("| %s | %s | %s | %s | %s |", + titleCell, + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(vendor, "-")), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(ptype, "-")), + wave3StoreFirstNonEmpty(priceStr, "-"), + availStr)) + rec := map[string]any{ + "id": wave3StorePlain(pm["id"], 64), + "title": title, + "handle": handle, + } + if vendor != "" { + rec["vendor"] = vendor + } + if priceStr != "" { + rec["price"] = priceStr + } + if availStr != "-" { + rec["availability"] = availStr + } + if pURL != "" { + rec["url"] = pURL + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + + var md []string + md = append(md, fmt.Sprintf("# Shopify Filter Catalog (%d products)\n\n| Product | Vendor | Type | Price | Availability |\n|---|---|---|---|---|\n%s", + totalCount, strings.Join(rows, "\n"))) + + // Extract filter facets (Boost `filter.options` or Globo `filters`) + var facetLines []string + var optionsArr []any + if filt := wave3StoreAsMap(root["filter"]); filt != nil { + optionsArr = wave3StoreAsSlice(filt["options"]) + } + if len(optionsArr) == 0 { + optionsArr = wave3StoreAsSlice(root["filters"]) + } + for i, rawF := range optionsArr { + if i >= 12 { + break + } + fm := wave3StoreAsMap(rawF) + if fm == nil { + continue + } + label := wave3StoreFirstNonEmpty(wave3StorePlain(fm["label"], 80), wave3StorePlain(fm["title"], 80), wave3StorePlain(fm["filterOptionId"], 80)) + if label == "" { + continue + } + var vals []string + for j, rawV := range wave3StoreAsSlice(fm["values"]) { + if j >= 8 { + break + } + if vm := wave3StoreAsMap(rawV); vm != nil { + if vn := wave3StoreFirstNonEmpty(wave3StorePlain(vm["key"], 60), wave3StorePlain(vm["label"], 60)); vn != "" { + vals = append(vals, vn) + } + } + } + if len(vals) > 0 { + facetLines = append(facetLines, fmt.Sprintf("- **%s**: %s", escapeDeclMarkdownBrackets(label), escapeDeclMarkdownBrackets(strings.Join(vals, ", ")))) + } else { + facetLines = append(facetLines, "- **"+escapeDeclMarkdownBrackets(label)+"**") + } + } + if len(facetLines) > 0 { + md = append(md, "## Filter Facets\n\n"+strings.Join(facetLines, "\n")) + } + + return &DeclarativeFormattedDoc{ + Title: "Shopify Filter Catalog", + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: recs, + Total: wave3StoreIntPtr(totalCount), + Returned: wave3StoreIntPtr(len(recs)), + }, true +} + +// ── #266: Rebuy & Searchanise JSON Formatter ──────────────────────────────────────────────────── + +func wave3StoreFormatRebuySearchaniseJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + root := wave3StoreAsMap(parsed) + if root == nil || wave3StoreIsJSONError(root) { + return nil, false + } + if msg := strings.ToLower(wave3StorePlain(root["message"], 120)); strings.Contains(msg, "invalid") || strings.Contains(msg, "forbidden") || strings.Contains(msg, "unauthorized") { + return nil, false + } + + var items []any + sourceName := "Rebuy & Searchanise" + totalCount := 0 + if saItems := wave3StoreAsSlice(root["items"]); len(saItems) > 0 { + items = saItems + sourceName = "Searchanise Product Search" + if f, okF := jsonValueToFloat(root["totalItems"]); okF { + totalCount = int(f) + } + } else if rbData := wave3StoreAsSlice(root["data"]); len(rbData) > 0 { + items = rbData + sourceName = "Rebuy Product Recommendations" + } else if rbProds := wave3StoreAsSlice(root["products"]); len(rbProds) > 0 { + items = rbProds + sourceName = "Rebuy Product Recommendations" + } + if len(items) == 0 { + return nil, false + } + if totalCount < len(items) { + totalCount = len(items) + } + + var rows []string + var recs []map[string]any + var links []string + seenLinks := map[string]bool{} + + for i, rawItem := range items { + if i >= wave3StoreMaxRecords { + break + } + im := wave3StoreAsMap(rawItem) + if im == nil { + continue + } + title := wave3StorePlain(im["title"], 200) + if title == "" { + continue + } + pid := wave3StoreFirstNonEmpty(wave3StorePlain(im["product_id"], 64), wave3StorePlain(im["id"], 64)) + sku := wave3StoreFirstNonEmpty(wave3StorePlain(im["product_code"], 80), wave3StorePlain(im["sku"], 80)) + vendor := wave3StorePlain(im["vendor"], 100) + priceStr, _ := wave3StoreValidatePrice(im["price"]) + if priceStr == "" { + if vars := wave3StoreAsSlice(im["variants"]); len(vars) > 0 { + if vm := wave3StoreAsMap(vars[0]); vm != nil { + priceStr, _ = wave3StoreValidatePrice(vm["price"]) + if sku == "" { + sku = wave3StorePlain(vm["sku"], 80) + } + } + } + } + itemURL := wave3StoreResolveURL(wave3StoreFirstNonEmpty(wave3StorePlain(im["link"], 500), wave3StorePlain(im["url"], 500)), origURL) + titleCell := escapeDeclMarkdownBrackets(title) + if itemURL != "" { + titleCell = fmt.Sprintf("[%s](%s)", titleCell, itemURL) + wave3StoreAppendLink(&links, seenLinks, itemURL) + } + rows = append(rows, fmt.Sprintf("| %s | %s | %s | %s |", + titleCell, + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(sku, "-")), + wave3StoreFirstNonEmpty(priceStr, "-"), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(vendor, "-")))) + rec := map[string]any{ + "id": pid, + "title": title, + } + if sku != "" { + rec["sku"] = sku + } + if priceStr != "" { + rec["price"] = priceStr + } + if vendor != "" { + rec["vendor"] = vendor + } + if itemURL != "" { + rec["url"] = itemURL + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + + md := fmt.Sprintf("# %s (%d items)\n\n| Product | SKU | Price | Vendor |\n|---|---|---|---|\n%s", + sourceName, totalCount, strings.Join(rows, "\n")) + return &DeclarativeFormattedDoc{ + Title: sourceName, + Markdown: md, + Links: links, + Records: recs, + Total: wave3StoreIntPtr(totalCount), + Returned: wave3StoreIntPtr(len(recs)), + }, true +} + +// ── #267: AfterShip Tracking Page HTML Extractor ──────────────────────────────────────────────── + +func wave3StoreExtractAfterShipHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + low := wave3StoreLowerProbe(rawHTML, 256*1024) + if !strings.Contains(low, "aftership") && + !(strings.Contains(rawHTML, "__NEXT_DATA__") && (strings.Contains(low, "tracking") || strings.Contains(low, "checkpoint"))) { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 256*1024) + title := wave3StoreFirstNonEmpty( + wave3StorePlain(doc.Text("h1"), 220), + wave3StorePlain(doc.Text("title"), 220), + ) + + var md []string + var recs []map[string]any + var links []string + seenLinks := map[string]bool{} + + // 1. Parse __NEXT_DATA__ for tracking payload or portal brand config + trackingNum := "" + courier := "" + status := "" + estDelivery := "" + brandName := "" + + type checkpointRow struct { + Time string + Location string + Status string + Message string + } + var checkpoints []checkpointRow + + if nextObj, okNext := wave3StoreExtractScriptJSONByID(rawHTML, "__NEXT_DATA__"); okNext { + if nm := wave3StoreAsMap(nextObj); nm != nil { + if props := wave3StoreAsMap(nm["props"]); props != nil { + if pageProps := wave3StoreAsMap(props["pageProps"]); pageProps != nil { + if org := wave3StoreAsMap(pageProps["organization"]); org != nil { + brandName = wave3StorePlain(org["name"], 140) + } + if brandName == "" { + if portal := wave3StoreAsMap(pageProps["portal"]); portal != nil { + brandName = wave3StorePlain(portal["brandName"], 140) + } + } + tr := wave3StoreAsMap(pageProps["tracking"]) + if tr == nil { + tr = wave3StoreAsMap(pageProps["shipment"]) + } + if tr != nil { + trackingNum = wave3StoreFirstNonEmpty(wave3StorePlain(tr["tracking_number"], 80), wave3StorePlain(tr["trackingNumber"], 80)) + courier = wave3StoreFirstNonEmpty(wave3StorePlain(tr["courier_name"], 100), wave3StorePlain(tr["slug"], 80), wave3StorePlain(tr["courier"], 100)) + status = wave3StoreFirstNonEmpty(wave3StorePlain(tr["subtag_message"], 120), wave3StorePlain(tr["tag"], 80), wave3StorePlain(tr["status"], 80)) + estDelivery = wave3StoreFirstNonEmpty( + wave3StoreValidateISODate(wave3StorePlain(tr["expected_delivery"], 40)), + wave3StorePlain(tr["expected_delivery"], 60), + ) + for i, rawCP := range wave3StoreAsSlice(tr["checkpoints"]) { + if i >= 25 { + break + } + if cpm := wave3StoreAsMap(rawCP); cpm != nil { + checkpoints = append(checkpoints, checkpointRow{ + Time: wave3StoreFirstNonEmpty(wave3StorePlain(cpm["checkpoint_time"], 40), wave3StorePlain(cpm["time"], 40)), + Location: wave3StoreFirstNonEmpty(wave3StorePlain(cpm["location"], 100), wave3StorePlain(cpm["city"], 80)), + Status: wave3StoreFirstNonEmpty(wave3StorePlain(cpm["tag"], 60), wave3StorePlain(cpm["subtag_message"], 80)), + Message: wave3StorePlain(cpm["message"], 200), + }) + } + } + } + } + } + } + } + + // 2. Fallback to hydrated AfterShip DOM + if trackingNum == "" { + trackingNum = wave3StorePlain(doc.Text(".tracking-number, [data-testid='tracking-number']"), 80) + } + if status == "" { + status = wave3StorePlain(doc.Text(".tracking-status, [data-testid='tracking-status'], .tag-label"), 120) + } + if courier == "" { + courier = wave3StorePlain(doc.Text(".courier-name, [data-testid='courier-name']"), 100) + } + if len(checkpoints) == 0 { + for _, cp := range doc.Select(".checkpoint, .checkpoints-list li", 20) { + msg := wave3StoreCleanText(cp.Text()) + if len(msg) > 6 { + checkpoints = append(checkpoints, checkpointRow{Message: wave3StorePlain(msg, 200)}) + } + } + } + + bodyText := wave3StoreCleanText(doc.Text("main, .tracking-container, body")) + hasTrackingData := trackingNum != "" || status != "" || len(checkpoints) > 0 + hasHydratedPortal := brandName != "" && len(bodyText) >= 80 + if !hasTrackingData && !hasHydratedPortal { + return nil + } + + heading := wave3StoreFirstNonEmpty(title, brandName, "AfterShip Order Tracking") + md = append(md, "# "+escapeDeclMarkdownBrackets(heading)) + var bullets []string + if brandName != "" { + bullets = append(bullets, "- **Merchant**: "+escapeDeclMarkdownBrackets(brandName)) + } + if trackingNum != "" { + bullets = append(bullets, "- **Tracking Number**: `"+trackingNum+"`") + } + if courier != "" { + bullets = append(bullets, "- **Carrier**: "+escapeDeclMarkdownBrackets(courier)) + } + if status != "" { + bullets = append(bullets, "- **Status**: "+escapeDeclMarkdownBrackets(status)) + } + if estDelivery != "" { + bullets = append(bullets, "- **Estimated Delivery**: "+escapeDeclMarkdownBrackets(estDelivery)) + } + if len(bullets) > 0 { + md = append(md, strings.Join(bullets, "\n")) + } + + if len(checkpoints) > 0 { + var rows []string + for _, cp := range checkpoints { + rows = append(rows, fmt.Sprintf("| %s | %s | %s | %s |", + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(cp.Time, "-")), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(cp.Location, "-")), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(cp.Status, "-")), + escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(cp.Message, "-")))) + recs = append(recs, map[string]any{ + "type": "checkpoint", + "time": cp.Time, + "location": cp.Location, + "status": cp.Status, + "message": cp.Message, + }) + } + md = append(md, "## Tracking Checkpoints\n\n| Time | Location | Status | Event |\n|---|---|---|---|\n"+strings.Join(rows, "\n")) + } else if bodyText != "" { + md = append(md, "## Tracking Portal\n\n"+wave3StorePlain(bodyText, 1200)) + recs = append(recs, map[string]any{"type": "portal", "brand": brandName, "tracking_number": trackingNum}) + } + + for _, a := range doc.Select("a[href]", 20) { + if href, ok := a.Attr("href"); ok { + wave3StoreAppendLink(&links, seenLinks, wave3StoreResolveURL(href, baseURL)) + } + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: heading, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #268: Branded Tracking Pack (Narvar / Route / ParcelPanel / Malomo / Wonderment) ──────────── + +func wave3StoreExtractBrandedTrackingHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + probe := truncateUTF8SafeFullDocGo(rawHTML, 256*1024) + low := strings.ToLower(probe) + if !strings.Contains(low, "narvar") && + !strings.Contains(low, "parcelpanel") && + !strings.Contains(low, "routeapp.io") && + !strings.Contains(low, "tracking.route.com") && + !strings.Contains(low, "route tracking") && + !strings.Contains(low, "malomo") && + !strings.Contains(low, "wonderment") { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 256*1024) + bodyText := wave3StoreCleanText(doc.Text("body")) + + // Strictly reject empty 1 KB CSR shells like tracking.route.com/ lacking hydrated tracking/order/checkpoint payload + hasHydratedTrack := wave3StoreRxHydratedTrack.MatchString(probe) + if !hasHydratedTrack && len(bodyText) < 200 { + return nil + } + if strings.Contains(low, "route tracking") && !hasHydratedTrack { + return nil + } + + platform := "Branded Tracking" + switch { + case strings.Contains(low, "narvar"): + platform = "Narvar" + case strings.Contains(low, "parcelpanel"): + platform = "ParcelPanel" + case strings.Contains(low, "route"): + platform = "Route" + case strings.Contains(low, "malomo"): + platform = "Malomo" + case strings.Contains(low, "wonderment"): + platform = "Wonderment" + } + + trackingNum := "" + orderNum := "" + carrier := "" + status := "" + retailer := "" + var checkpointLines []string + var recs []map[string]any + + if nextObj, okNext := wave3StoreExtractScriptJSONByID(rawHTML, "__NEXT_DATA__"); okNext { + if nm := wave3StoreAsMap(nextObj); nm != nil { + if props := wave3StoreAsMap(nm["props"]); props != nil { + if pp := wave3StoreAsMap(props["pageProps"]); pp != nil { + retailer = wave3StoreFirstNonEmpty(wave3StorePlain(pp["retailer"], 100), wave3StorePlain(pp["retailerName"], 100), wave3StorePlain(pp["brand"], 100)) + trackingNum = wave3StoreFirstNonEmpty(wave3StorePlain(pp["trackingNumber"], 80), wave3StorePlain(pp["tracking_number"], 80)) + orderNum = wave3StoreFirstNonEmpty(wave3StorePlain(pp["orderNumber"], 80), wave3StorePlain(pp["order_number"], 80)) + carrier = wave3StoreFirstNonEmpty(wave3StorePlain(pp["carrier"], 80), wave3StorePlain(pp["carrierName"], 80)) + status = wave3StoreFirstNonEmpty(wave3StorePlain(pp["status"], 100), wave3StorePlain(pp["deliveryStatus"], 100)) + if tr := wave3StoreAsMap(pp["tracking"]); tr != nil { + trackingNum = wave3StoreFirstNonEmpty(trackingNum, wave3StorePlain(tr["trackingNumber"], 80), wave3StorePlain(tr["tracking_number"], 80)) + carrier = wave3StoreFirstNonEmpty(carrier, wave3StorePlain(tr["carrier"], 80)) + status = wave3StoreFirstNonEmpty(status, wave3StorePlain(tr["status"], 100)) + for i, rawCP := range wave3StoreAsSlice(tr["checkpoints"]) { + if i >= 20 { + break + } + if cpm := wave3StoreAsMap(rawCP); cpm != nil { + msg := wave3StoreFirstNonEmpty(wave3StorePlain(cpm["message"], 200), wave3StorePlain(cpm["description"], 200), wave3StorePlain(cpm["status"], 120)) + dt := wave3StoreFirstNonEmpty(wave3StorePlain(cpm["time"], 40), wave3StorePlain(cpm["date"], 40)) + loc := wave3StorePlain(cpm["location"], 100) + if msg != "" { + checkpointLines = append(checkpointLines, fmt.Sprintf("- %s %s %s", dt, loc, msg)) + recs = append(recs, map[string]any{"type": "checkpoint", "time": dt, "location": loc, "message": msg}) + } + } + } + } + } + } + } + } + + if trackingNum == "" { + trackingNum = wave3StorePlain(doc.Text(".tracking-number, .pp_tracking_number, [data-testid='tracking-number']"), 80) + } + if status == "" { + status = wave3StorePlain(doc.Text(".tracking-status, .pp_tracking_status, .shipment-status"), 120) + } + if carrier == "" { + carrier = wave3StorePlain(doc.Text(".carrier-name, .pp_carrier_name"), 100) + } + if len(checkpointLines) == 0 { + for _, el := range doc.Select(".pp_checkpoint, .tracking-event, .checkpoint-item", 20) { + txt := wave3StoreCleanText(el.Text()) + if len(txt) > 6 { + checkpointLines = append(checkpointLines, "- "+wave3StorePlain(txt, 220)) + recs = append(recs, map[string]any{"type": "checkpoint", "message": wave3StorePlain(txt, 220)}) + } + } + } + + title := wave3StoreFirstNonEmpty( + wave3StorePlain(doc.Text("h1"), 200), + wave3StorePlain(doc.Text("title"), 200), + platform+" Tracking", + ) + hasHydratedPayload := trackingNum != "" || orderNum != "" || status != "" || len(checkpointLines) > 0 || (retailer != "" && len(bodyText) >= 120) + if !hasHydratedPayload { + return nil + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + var bullets []string + bullets = append(bullets, "- **Tracking Platform**: "+platform) + if retailer != "" { + bullets = append(bullets, "- **Retailer**: "+escapeDeclMarkdownBrackets(retailer)) + } + if orderNum != "" { + bullets = append(bullets, "- **Order**: `"+orderNum+"`") + } + if trackingNum != "" { + bullets = append(bullets, "- **Tracking Number**: `"+trackingNum+"`") + } + if carrier != "" { + bullets = append(bullets, "- **Carrier**: "+escapeDeclMarkdownBrackets(carrier)) + } + if status != "" { + bullets = append(bullets, "- **Status**: "+escapeDeclMarkdownBrackets(status)) + } + md = append(md, strings.Join(bullets, "\n")) + if len(checkpointLines) > 0 { + md = append(md, "## Checkpoints\n\n"+strings.Join(checkpointLines, "\n")) + } else if bodyText != "" { + md = append(md, "## Tracking Details\n\n"+wave3StorePlain(bodyText, 1200)) + recs = append(recs, map[string]any{"type": "tracking", "platform": platform, "retailer": retailer, "status": status}) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Markdown: strings.Join(md, "\n\n"), + Records: recs, + } +} + +// ── #269: Gorgias & Re:amaze Help Center HTML Extractor ───────────────────────────────────────── + +func wave3StoreExtractGorgiasReamazeHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + low := wave3StoreLowerProbe(rawHTML, 256*1024) + isGorgias := strings.Contains(low, "assets.gorgias.help") || strings.Contains(low, "gorgias.help") || strings.Contains(low, "gorgias-help") + isReamaze := strings.Contains(low, "cdn.reamaze.com") || strings.Contains(low, "reamaze.com") || strings.Contains(low, "topic-index") && strings.Contains(low, "reamaze") + if !isGorgias && !isReamaze { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 512*1024) + var md []string + var recs []map[string]any + var links []string + seenLinks := map[string]bool{} + title := "" + desc := "" + + if isGorgias { + // Parse Gorgias __NEXT_DATA__ + if nextObj, okNext := wave3StoreExtractScriptJSONByID(rawHTML, "__NEXT_DATA__"); okNext { + if nm := wave3StoreAsMap(nextObj); nm != nil { + if props := wave3StoreAsMap(nm["props"]); props != nil { + if pp := wave3StoreAsMap(props["pageProps"]); pp != nil { + if art := wave3StoreAsMap(pp["article"]); art != nil { + title = wave3StorePlain(art["title"], 250) + desc = wave3StorePlain(art["excerpt"], 300) + bodyHTML := wave3StoreFirstNonEmpty(wave3StorePlain(art["body"], 64*1024), wave3StorePlain(art["bodyHtml"], 64*1024)) + if bodyHTML != "" { + bodyMD, bodyLinks := wave3StoreHTMLToMD(bodyHTML, baseURL) + if title != "" { + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + } + md = append(md, "- **Help Center**: Gorgias") + if upd := wave3StoreValidateISODate(wave3StorePlain(art["updatedAt"], 40)); upd != "" { + md[len(md)-1] += "\n- **Updated**: " + upd + } + if bodyMD != "" { + md = append(md, bodyMD) + } + for _, l := range bodyLinks { + wave3StoreAppendLink(&links, seenLinks, l) + } + recs = append(recs, map[string]any{"type": "article", "platform": "gorgias", "title": title}) + } + } + if len(recs) == 0 { + var navItems []string + for _, rawCat := range wave3StoreAsSlice(pp["categories"]) { + if cm := wave3StoreAsMap(rawCat); cm != nil { + cn := wave3StoreFirstNonEmpty(wave3StorePlain(cm["name"], 140), wave3StorePlain(cm["title"], 140)) + if cn != "" { + navItems = append(navItems, "- "+escapeDeclMarkdownBrackets(cn)) + recs = append(recs, map[string]any{"type": "category", "platform": "gorgias", "name": cn}) + } + } + } + for _, rawNav := range wave3StoreAsSlice(pp["headerNavigationItems"]) { + if nm2 := wave3StoreAsMap(rawNav); nm2 != nil { + nt := wave3StorePlain(nm2["label"], 120) + nu := wave3StoreResolveURL(wave3StorePlain(nm2["url"], 400), baseURL) + if nt != "" { + if nu != "" { + navItems = append(navItems, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(nt), nu)) + wave3StoreAppendLink(&links, seenLinks, nu) + } else { + navItems = append(navItems, "- "+escapeDeclMarkdownBrackets(nt)) + } + } + } + } + if len(navItems) > 0 { + title = wave3StoreFirstNonEmpty(wave3StorePlain(doc.Text("h1"), 220), wave3StorePlain(doc.Text("title"), 220), "Gorgias Help Center") + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + md = append(md, "- **Help Center**: Gorgias") + md = append(md, "## Topics\n\n"+strings.Join(navItems, "\n")) + } + } + } + } + } + } + } + + // Re:amaze branch (or Gorgias DOM fallback) + if len(md) == 0 { + platform := "Re:amaze" + if isGorgias { + platform = "Gorgias" + } + title = wave3StoreFirstNonEmpty( + wave3StorePlain(doc.Text(`h1[itemprop="name"]`), 250), + wave3StorePlain(doc.Text("h1"), 250), + wave3StorePlain(doc.Text("title"), 250), + ) + if title == "" { + return nil + } + bodyHTML := wave3StoreFirstNonEmpty( + doc.HTML(`[itemprop="text"]`), + doc.HTML(".kb-article-body"), + doc.HTML(".article-content"), + doc.HTML("article"), + ) + bodyMD, bodyLinks := wave3StoreHTMLToMD(bodyHTML, baseURL) + for _, l := range bodyLinks { + wave3StoreAppendLink(&links, seenLinks, l) + } + + var topicLines []string + for _, a := range doc.Select(".topic-index a, .content-list a, .kb-topic-list a", 30) { + txt := wave3StoreCleanText(a.Text()) + href, _ := a.Attr("href") + resolved := wave3StoreResolveURL(href, baseURL) + if txt != "" && resolved != "" { + topicLines = append(topicLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(txt), resolved)) + wave3StoreAppendLink(&links, seenLinks, resolved) + if len(recs) < wave3StoreMaxRecords { + recs = append(recs, map[string]any{"type": "article_link", "platform": strings.ToLower(platform), "title": txt, "url": resolved}) + } + } + } + + if bodyMD == "" && len(topicLines) == 0 { + return nil + } + md = append(md, "# "+escapeDeclMarkdownBrackets(title)) + md = append(md, "- **Help Center**: "+platform) + if bodyMD != "" { + md = append(md, bodyMD) + if len(recs) == 0 { + recs = append(recs, map[string]any{"type": "article", "platform": strings.ToLower(platform), "title": title}) + } + } + if len(topicLines) > 0 { + md = append(md, "## Articles & Topics\n\n"+strings.Join(topicLines, "\n")) + } + } + + if len(md) == 0 { + return nil + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(md, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #270: Klaviyo & Attentive Read-Only Onsite Form / Tag Metadata Extractor ──────────────────── + +func wave3StoreExtractKlaviyoAttentiveHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + // Cheap byte prefilter + hasKlaviyo := strings.Contains(rawHTML, "static.klaviyo.com") || + strings.Contains(rawHTML, "klaviyo.js") || + strings.Contains(rawHTML, "klaviyo-form") || + strings.Contains(rawHTML, "_learnq") + hasAttentive := strings.Contains(rawHTML, "cdn.attn.tv") || + strings.Contains(rawHTML, "attn.tv") + if !hasKlaviyo && !hasAttentive { + return nil + } + + // CRITICAL Alphabetical Preemption Yield: + // "klaviyo-attentive-forms" precedes "shopify" ("s") and "woocommerce" ("w") in reg.universal! + // MUST yield (return nil) on product/collection PDPs, commerce platforms, and Product/Article/Recipe/Event/Course/JobPosting JSON-LD pages. + if u, err := url.Parse(strings.TrimSpace(baseURL)); err == nil { + lowPath := strings.ToLower(u.Path) + if strings.Contains(lowPath, "/products/") || strings.Contains(lowPath, "/product/") || strings.Contains(lowPath, "/collections/") { + return nil + } + } + probe := truncateUTF8SafeFullDocGo(rawHTML, 256*1024) + if indexFoldASCIIExtract(rawHTML, "shopify.shop") >= 0 || + indexFoldASCIIExtract(rawHTML, "cdn.shopify.com") >= 0 || + indexFoldASCIIExtract(rawHTML, "woocommerce-") >= 0 || + indexFoldASCIIExtract(probe, `og:type="product"`) >= 0 || + indexFoldASCIIExtract(probe, `og:type='product'`) >= 0 || + (indexFoldASCIIExtract(probe, "og:type") >= 0 && wave3StoreRxOGTypeProduct.MatchString(probe)) { + return nil + } + if hasJSONLDScriptToken(rawHTML) { + for _, obj := range ExtractJSONLDObjects(rawHTML, 40) { + for _, t := range normalizeSchemaTypesSchemaGo(obj["@type"]) { + switch strings.ToLower(t) { + case "product", "productgroup", "article", "newsarticle", "blogposting", "recipe", "event", "course", "jobposting": + return nil + } + } + } + } + if typeProbe := wave3StoreCollectWindows(rawHTML, []string{`"@type"`}, 16, 256, 20); typeProbe != "" && wave3StoreRxProductJSONLD.MatchString(typeProbe) { + return nil + } + + // Extract read-only Klaviyo & Attentive metadata (NEVER submit forms) using bounded anchor windows + var companyIDs []string + seenCID := map[string]bool{} + if cidProbe := wave3StoreCollectWindows(rawHTML, []string{"klaviyo.js", "company_id=", "_learnq"}, 96, 160, 12); cidProbe != "" { + for _, m := range wave3StoreRxKlaviyoCID.FindAllStringSubmatch(cidProbe, 10) { + cid := wave3StoreFirstNonEmpty(m[1], m[2], m[3], m[4]) + if cid != "" && !seenCID[cid] { + seenCID[cid] = true + companyIDs = append(companyIDs, cid) + } + } + } + + var formIDs []string + seenFID := map[string]bool{} + if fidProbe := wave3StoreCollectWindows(rawHTML, []string{"klaviyo-form"}, 32, 96, 15); fidProbe != "" { + for _, m := range wave3StoreRxKlaviyoFormID.FindAllStringSubmatch(fidProbe, 15) { + fid := wave3StoreFirstNonEmpty(m[1], m[2]) + if fid != "" && !seenFID[fid] { + seenFID[fid] = true + formIDs = append(formIDs, fid) + } + } + } + + var attentiveSlugs []string + seenAtt := map[string]bool{} + if attProbe := wave3StoreCollectWindows(rawHTML, []string{"cdn.attn.tv"}, 16, 120, 10); attProbe != "" { + for _, m := range wave3StoreRxAttentiveTag.FindAllStringSubmatch(attProbe, 10) { + slug := strings.TrimSpace(m[1]) + if slug != "" && !seenAtt[slug] { + seenAtt[slug] = true + attentiveSlugs = append(attentiveSlugs, slug) + } + } + } + + if len(companyIDs) == 0 && len(formIDs) == 0 && len(attentiveSlugs) == 0 { + return nil + } + + doc := ParseHTMLDoc(rawHTML, 256*1024) + siteTitle := wave3StoreFirstNonEmpty( + wave3StorePlain(doc.AttrOf(`meta[property="og:site_name"]`, "content"), 180), + wave3StorePlain(doc.Text("h1"), 180), + wave3StorePlain(doc.Text("title"), 180), + ExtractSlugTitleFromURL(baseURL), + ) + desc := wave3StorePlain(doc.AttrOf(`meta[name="description"]`, "content"), 400) + + // Collect read-only offer / signup prompt snippets if embedded in Klaviyo/Attentive form containers + var offerSnippets []string + seenOffer := map[string]bool{} + for _, sel := range []string{`[class*="klaviyo-form"]`, `[data-testid*="klaviyo"]`, `[id*="attentive"]`} { + for _, el := range doc.Select(sel, 8) { + txt := wave3StoreCleanText(el.Text()) + if len(txt) >= 6 && len(txt) <= 240 && !seenOffer[txt] { + seenOffer[txt] = true + offerSnippets = append(offerSnippets, txt) + } + } + } + + var md []string + md = append(md, "# "+escapeDeclMarkdownBrackets(wave3StoreFirstNonEmpty(siteTitle, "Klaviyo & Attentive Onsite Metadata"))) + var bullets []string + bullets = append(bullets, "- **Extraction Mode**: Read-only onsite marketing & signup metadata (no form submission)") + if len(companyIDs) > 0 { + bullets = append(bullets, "- **Klaviyo Company IDs**: `"+strings.Join(companyIDs, "`, `")+"`") + } + if len(formIDs) > 0 { + bullets = append(bullets, "- **Klaviyo Form IDs**: `"+strings.Join(formIDs, "`, `")+"`") + } + if len(attentiveSlugs) > 0 { + bullets = append(bullets, "- **Attentive Tag Slugs**: `"+strings.Join(attentiveSlugs, "`, `")+"`") + } + md = append(md, strings.Join(bullets, "\n")) + if desc != "" { + md = append(md, desc) + } + if len(offerSnippets) > 0 { + var lines []string + for _, o := range offerSnippets { + lines = append(lines, "- "+escapeDeclMarkdownBrackets(o)) + } + md = append(md, "## Onsite Signup Offers (Read-Only)\n\n"+strings.Join(lines, "\n")) + } + + var recs []map[string]any + if len(companyIDs) > 0 || len(formIDs) > 0 { + recs = append(recs, map[string]any{ + "platform": "klaviyo", + "company_ids": companyIDs, + "form_ids": formIDs, + "read_only": true, + }) + } + if len(attentiveSlugs) > 0 { + recs = append(recs, map[string]any{ + "platform": "attentive", + "brand_slug": attentiveSlugs[0], + "slugs": attentiveSlugs, + "read_only": true, + }) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: siteTitle, + Description: desc, + Markdown: strings.Join(md, "\n\n"), + Records: recs, + } +} diff --git a/internal/extract/wave3_store_addons_test.go b/internal/extract/wave3_store_addons_test.go new file mode 100644 index 0000000..c6633e7 --- /dev/null +++ b/internal/extract/wave3_store_addons_test.go @@ -0,0 +1,266 @@ +package extract + +import ( + "strings" + "testing" + "time" +) + +func TestWave3StoreAddonsRegistryAndCompanionNoOp(t *testing.T) { + htmlModes := []string{ + "shopify_hydrogen_html", + "recharge_bold_subscriptions_html", + "shopify_filter_apps_html", + "rebuy_searchanise_html", + "aftership_tracking_html", + "branded_tracking_pack_html", + "gorgias_reamaze_html", + "klaviyo_attentive_forms_html", + } + for _, m := range htmlModes { + if !IsWave3StoreAddonsHTMLMode(m) { + t.Fatalf("IsWave3StoreAddonsHTMLMode(%q) = false", m) + } + if getExternalHTMLModeLazy(m) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", m) + } + } + for _, jm := range []string{"shopify_filter_apps_json", "rebuy_searchanise_json"} { + if !IsWave3StoreAddonsJSONMode(jm) { + t.Fatalf("IsWave3StoreAddonsJSONMode(%q) = false", jm) + } + } + + // Companion-only page-key HTML modes MUST return nil so they never preempt shopify_html + shopifyPDP := `Layering Collection | Henry Rose

The Layering Collection

` + for _, noopMode := range []string{"shopify_filter_apps_html", "rebuy_searchanise_html"} { + if res := Wave3StoreAddonsRunHTML(noopMode, shopifyPDP, "https://www.henryrose.com/products/the-layering-collection", ""); res != nil { + t.Fatalf("companion-only mode %q must return nil, got %+v", noopMode, res) + } + } +} + +func TestWave3StoreAddonsPlatformTwinStorefrontGraphQL(t *testing.T) { + html := `The Layering Collection

The Layering Collection

` + + // Opt-out via AllowPageKeyTwins = false + off := DiscoverPlatformCompanionTwin(html, PlatformTwinDiscoveryInput{ + PageURL: "https://www.henryrose.com/products/the-layering-collection", + AllowPageKeyTwins: BoolPtr(false), + }) + if off.Matched { + t.Fatalf("expected Matched=false when AllowPageKeyTwins=false, got %+v", off) + } + + // Default ON (nil) and explicit true + for _, ptr := range []*bool{nil, BoolPtr(true)} { + cand := DiscoverPlatformCompanionTwin(html, PlatformTwinDiscoveryInput{ + PageURL: "https://www.henryrose.com/products/the-layering-collection", + AllowPageKeyTwins: ptr, + }) + if !cand.Matched || cand.AdapterID != "shopify-storefront-graphql" { + t.Fatalf("expected shopify-storefront-graphql twin, got %+v", cand) + } + if cand.FetchURL != "https://www.henryrose.com/api/2024-10/graphql.json" { + t.Fatalf("unexpected same-origin FetchURL: %q", cand.FetchURL) + } + if cand.Method != "POST" || !cand.RequiresPageKeyOptIn || cand.FormatMode != "json:shopify_storefront_graphql_json" { + t.Fatalf("unexpected candidate metadata: %+v", cand) + } + if cand.Headers["X-Shopify-Storefront-Access-Token"] != "c6f547549c3f539b991db94e4c0fb111" { + t.Fatalf("missing storefront access token header: %+v", cand.Headers) + } + if !strings.Contains(cand.RequestBody, "the-layering-collection") { + t.Fatalf("expected product handle in GraphQL body: %s", cand.RequestBody) + } + } + + // Rule 7: Cross-origin page-key-config MUST be rejected + evilHTML := `` + if evil := DiscoverPlatformCompanionTwin(evilHTML, PlatformTwinDiscoveryInput{ + PageURL: "https://www.henryrose.com/", + AllowPageKeyTwins: BoolPtr(true), + }); evil.Matched { + t.Fatalf("Rule 7 violation: cross-origin storefront GraphQL endpoint must be rejected, got %+v", evil) + } +} + +func TestWave3StoreAddonsJSONModesPositiveAndNegative(t *testing.T) { + // 1. #262 shopify_storefront_graphql_json (single product via FormatRound2JSONDoc + catalog + error rejection) + gqlProduct := `{"data":{"product":{"id":"gid://shopify/Product/15400794882138","handle":"the-layering-collection","title":"The Layering Collection","vendor":"Henry Rose","productType":"Fragrance Set","onlineStoreUrl":"https://www.henryrose.com/products/the-layering-collection","description":"Explore clean fine fragrances.","priceRange":{"minVariantPrice":{"amount":"45.0","currencyCode":"USD"},"maxVariantPrice":{"amount":"45.0","currencyCode":"USD"}},"variants":{"edges":[{"node":{"id":"gid://shopify/ProductVariant/1","title":"Discovery Set","sku":"HR-LAY-01","availableForSale":true,"price":{"amount":"45.0","currencyCode":"USD"}}}]}}}}` + doc, ok := FormatRound2JSONDoc("shopify_storefront_graphql_json", []byte(gqlProduct), nil, "https://www.henryrose.com/api/2024-10/graphql.json") + if !ok || doc == nil || !strings.Contains(doc.Markdown, "The Layering Collection") || !strings.Contains(doc.Markdown, "45.00 USD") || !strings.Contains(doc.Markdown, "HR-LAY-01") { + t.Fatalf("shopify_storefront_graphql_json single product failed: ok=%v doc=%+v", ok, doc) + } + if _, errOK := FormatRound2JSONDoc("shopify_storefront_graphql_json", []byte(`{"errors":[{"message":"Unauthorized"}],"data":{}}`), nil, "https://www.henryrose.com/api/2024-10/graphql.json"); errOK { + t.Fatalf("shopify_storefront_graphql_json must reject GraphQL errors with empty data") + } + + // 2. #265 shopify_filter_apps_json (Boost Commerce + Globo + 403 rejection) + boostJSON := `{"total_product":2,"products":[{"id":101,"title":"MagSafe Leather Case","handle":"magsafe-leather-case","vendor":"Casely","product_type":"Phone Case","price_min":35,"available":true,"url":"/products/magsafe-leather-case"}],"filter":{"options":[{"label":"Device","values":[{"key":"iPhone 16 Pro"}]}]}}` + fDoc, okF := FormatWave3StoreAddonsJSONDoc("shopify_filter_apps_json", []byte(boostJSON), nil, "https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com") + if !okF || fDoc == nil || !strings.Contains(fDoc.Markdown, "MagSafe Leather Case") || !strings.Contains(fDoc.Markdown, "iPhone 16 Pro") { + t.Fatalf("shopify_filter_apps_json failed: ok=%v doc=%+v", okF, fDoc) + } + if _, errF := FormatWave3StoreAddonsJSONDoc("shopify_filter_apps_json", []byte(`{"message":"403 Forbidden: "}`), nil, "https://services.mybcapps.com/bc-sf-filter/filter"); errF { + t.Fatalf("shopify_filter_apps_json must reject 403 Forbidden payload") + } + + // 3. #266 rebuy_searchanise_json (Searchanise + Rebuy + error rejection) + saJSON := `{"totalItems":318,"items":[{"product_id":"901","title":"Liquid Chlorophyll Drops","product_code":"MR-CHL-01","price":"24.95","vendor":"MaryRuth Organics","link":"https://www.maryruthorganics.com/products/chlorophyll"}]}` + rDoc, okR := FormatWave3StoreAddonsJSONDoc("rebuy_searchanise_json", []byte(saJSON), nil, "https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json") + if !okR || rDoc == nil || !strings.Contains(rDoc.Markdown, "Liquid Chlorophyll Drops") || !strings.Contains(rDoc.Markdown, "MR-CHL-01") { + t.Fatalf("rebuy_searchanise_json failed: ok=%v doc=%+v", okR, rDoc) + } + rebuyJSON := `{"data":[{"id":77,"title":"Electrolyte Powder","handle":"electrolyte-powder","vendor":"Hydrate","variants":[{"sku":"HYD-1","price":"29.00"}]}]}` + rbDoc, okRB := FormatWave3StoreAddonsJSONDoc("rebuy_searchanise_json", []byte(rebuyJSON), nil, "https://rebuyengine.com/api/v1/products/recommended?key=pub123") + if !okRB || rbDoc == nil || !strings.Contains(rbDoc.Markdown, "Electrolyte Powder") { + t.Fatalf("rebuy_searchanise_json Rebuy failed: ok=%v doc=%+v", okRB, rbDoc) + } + if _, errR := FormatWave3StoreAddonsJSONDoc("rebuy_searchanise_json", []byte(`{"error":"Invalid API key"}`), nil, "https://www.searchserverapi.com/getresults"); errR { + t.Fatalf("rebuy_searchanise_json must reject error JSON") + } +} + +func TestWave3StoreAddonsHTMLModesPositiveAndPreemption(t *testing.T) { + // 1. #263 shopify-hydrogen + hydroHTML := `Hydrogen Demo Store

Hydrogen Demo Store

` + hRes := Wave3StoreAddonsRunHTML("shopify_hydrogen_html", hydroHTML, "https://hydrogen.shop/", "") + if hRes == nil || hRes.ExtractorID != "shopify-hydrogen" || !strings.Contains(hRes.Markdown, "The Hydrogen Snowboard") || !strings.Contains(hRes.Markdown, "Snowboards") { + t.Fatalf("shopify_hydrogen_html positive failed: %+v", hRes) + } + nonShopifyRemix := `My Remix Blog

My Remix Blog

` + if got := Wave3StoreAddonsRunHTML("shopify_hydrogen_html", nonShopifyRemix, "https://blog.example.com/", ""); got != nil { + t.Fatalf("shopify_hydrogen_html must reject non-Shopify Remix apps, got %+v", got) + } + + // 2. #264 recharge-bold-subscriptions (positive + non-preemption on normal Shopify PDP) + rcHTML := `100% Recycled Toilet Paper | Who Gives A Crap

100% Recycled Toilet Paper Jumbo Rolls

` + rcRes := Wave3StoreAddonsRunHTML("recharge_bold_subscriptions_html", rcHTML, "https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls", "") + if rcRes == nil || rcRes.ExtractorID != "recharge-bold-subscriptions" || !strings.Contains(rcRes.Markdown, "Recharge") || !strings.Contains(rcRes.Markdown, "Every 4 Weeks") || !strings.Contains(rcRes.Markdown, "USD 52.00") { + t.Fatalf("recharge_bold_subscriptions_html positive failed: %+v", rcRes) + } + plainShopifyPDP := `The Layering Collection | Henry Rose

The Layering Collection

Fine fragrance discovery set.

` + if got := Wave3StoreAddonsRunHTML("recharge_bold_subscriptions_html", plainShopifyPDP, "https://www.henryrose.com/products/the-layering-collection", ""); got != nil { + t.Fatalf("recharge_bold_subscriptions_html must yield on plain Shopify PDP, got %+v", got) + } + + // 3. #267 aftership-tracking-page (positive + CF rejection) + asHTML := `Track Your Order | Neal's Yard Remedies

Track Your Order

` + asRes := Wave3StoreAddonsRunHTML("aftership_tracking_html", asHTML, "https://track.example.com/1Z999AA10123456784", "") + if asRes == nil || asRes.ExtractorID != "aftership-tracking-page" || !strings.Contains(asRes.Markdown, "1Z999AA10123456784") || !strings.Contains(asRes.Markdown, "Boston, MA") { + t.Fatalf("aftership_tracking_html positive failed: %+v", asRes) + } + cfHTML := `Just a moment...
Enable JavaScript and cookies to continue
` + if got := Wave3StoreAddonsRunHTML("aftership_tracking_html", cfHTML, "https://www.aftership.com/track", ""); got != nil { + t.Fatalf("aftership_tracking_html must reject CF challenge, got %+v", got) + } + + // 4. #268 branded-tracking-pack (positive Narvar + Route 1KB empty shell rejection) + narvarHTML := `ASICS Order Tracking | Narvar

ASICS Order Tracking

` + nvRes := Wave3StoreAddonsRunHTML("branded_tracking_pack_html", narvarHTML, "https://tracking.narvar.com/asics/tracking", "") + if nvRes == nil || nvRes.ExtractorID != "branded-tracking-pack" || !strings.Contains(nvRes.Markdown, "Narvar") || !strings.Contains(nvRes.Markdown, "9400111899223344556677") { + t.Fatalf("branded_tracking_pack_html Narvar positive failed: %+v", nvRes) + } + routeEmptyShell := `Route Tracking
` + if got := Wave3StoreAddonsRunHTML("branded_tracking_pack_html", routeEmptyShell, "https://tracking.route.com/", ""); got != nil { + t.Fatalf("branded_tracking_pack_html must reject 1KB Route empty CSR shell, got %+v", got) + } + + // 5. #269 gorgias-reamaze (Gorgias __NEXT_DATA__ + Re:amaze DOM) + gorgiasHTML := `Contact Us | BURGA Help Center

How to Contact Support

` + gRes := Wave3StoreAddonsRunHTML("gorgias_reamaze_html", gorgiasHTML, "https://support.burga.com/en-US/articles/contact-us-24868", "") + if gRes == nil || gRes.ExtractorID != "gorgias-reamaze" || !strings.Contains(gRes.Markdown, "How to Contact Support") || !strings.Contains(gRes.Markdown, "Gorgias") { + t.Fatalf("gorgias_reamaze_html Gorgias failed: %+v", gRes) + } + reamazeHTML := `Firmware Update | Storypod

Firmware Update Instructions

Connect your Storypod to Wi-Fi and press the top button to install updates.

` + rmRes := Wave3StoreAddonsRunHTML("gorgias_reamaze_html", reamazeHTML, "https://storypod.reamaze.com/kb/all-about-storypod/firmware-update", "") + if rmRes == nil || rmRes.ExtractorID != "gorgias-reamaze" || !strings.Contains(rmRes.Markdown, "Re:amaze") || !strings.Contains(rmRes.Markdown, "Initial Setup") { + t.Fatalf("gorgias_reamaze_html Re:amaze failed: %+v", rmRes) + } + + // 6. #270 klaviyo-attentive-forms (Read-only positive + non-preemption yield on Shopify PDP) + klaviyoHomeHTML := `Casely | Bold Phone Cases

Shop Bold Phone Cases

Sign up for 15% off your first case order.

` + kRes := Wave3StoreAddonsRunHTML("klaviyo_attentive_forms_html", klaviyoHomeHTML, "https://www.getcasely.com/", "") + if kRes == nil || kRes.ExtractorID != "klaviyo-attentive-forms" || !strings.Contains(kRes.Markdown, "L74p8W") || !strings.Contains(kRes.Markdown, "casely") || !strings.Contains(kRes.Markdown, "XyZ123") || !strings.Contains(kRes.Markdown, "Read-only") { + t.Fatalf("klaviyo_attentive_forms_html positive failed: %+v", kRes) + } + shopifyWithKlaviyoPDP := `The Layering Collection | Henry Rose

The Layering Collection

` + if got := Wave3StoreAddonsRunHTML("klaviyo_attentive_forms_html", shopifyWithKlaviyoPDP, "https://www.henryrose.com/products/the-layering-collection", ""); got != nil { + t.Fatalf("klaviyo_attentive_forms_html MUST yield on /products/ + Product JSON-LD so shopify_html is never preempted, got %+v", got) + } +} + +func TestWave3StoreAddonsNegativeShellsAndLatencyBudget(t *testing.T) { + negCases := []struct { + name string + baseURL string + html string + }{ + {"404", "https://example.com/missing", `404 Not Found

Page Not Found

`}, + {"error-redirect", "https://example.com/error", `Error

Application Error

`}, + {"maintenance", "https://example.com/", `503 Service Unavailable

Down for Maintenance

`}, + {"empty-spa", "https://example.com/", `Loading...
`}, + {"cf-challenge", "https://example.com/", `Just a moment...
Checking your browser before accessing
`}, + } + + activeModes := []string{ + "shopify_hydrogen_html", + "recharge_bold_subscriptions_html", + "aftership_tracking_html", + "branded_tracking_pack_html", + "gorgias_reamaze_html", + "klaviyo_attentive_forms_html", + } + start := time.Now() + for _, m := range activeModes { + for _, nc := range negCases { + if res := Wave3StoreAddonsRunHTML(m, nc.html, nc.baseURL, ""); res != nil { + t.Fatalf("mode %q negative case %q must return nil, got %+v", m, nc.name, res) + } + } + } + elapsed := time.Since(start) + if elapsed > 200*time.Millisecond { + t.Fatalf("negative shell sweep exceeded latency budget: %v", elapsed) + } +} + +func TestWave3StoreAddonsPreemptionAnd2MBPerfBudget(t *testing.T) { + // Finding 9a: klaviyo-attentive-forms yields on @type: ["Thing", "Product"], ProductGroup, schema.org/Product, and commerce markers + wooArrayProd := `Trail Boots

Trail Boots

` + if got := Wave3StoreAddonsRunHTML("klaviyo_attentive_forms_html", wooArrayProd, "https://woo.example.com/shop/trail-boots/", ""); got != nil { + t.Fatalf("klaviyo must yield on WooCommerce + @type:[Thing,Product], got %+v", got) + } + shopifyOGProd := `Trail Boots

Trail Boots

` + if got := Wave3StoreAddonsRunHTML("klaviyo_attentive_forms_html", shopifyOGProd, "https://shop.example.com/gear/trail-boots", ""); got != nil { + t.Fatalf("klaviyo must yield on Shopify.shop / cdn.shopify.com / og:type=product, got %+v", got) + } + + // Finding 9b: recharge-bold-subscriptions MUST NOT match generic prose when selling_plans_size = 0 and no widget DOM exists + zeroPlansProse := `Single Origin Coffee

Single Origin Coffee

Subscribe and save 10% on our newsletter! Free delivery every Friday.

` + if got := Wave3StoreAddonsRunHTML("recharge_bold_subscriptions_html", zeroPlansProse, "https://coffee.example.com/products/single-origin", ""); got != nil { + t.Fatalf("recharge must yield when selling_plans_size=0 and no widget DOM exists, got %+v", got) + } + + // Finding 8: 2.37 MB HTML latency budget (< 75ms per extractor) + pad := strings.Repeat("

Product catalog item description and styling details for storefront layout.

\n", 26000) + bigKlaviyo := `Casely
Sign up for 15% off
` + pad + `` + bigRecharge := `Coffee

Coffee

` + pad + `` + bigBranded := `Track

` + strings.Repeat("Order status details. ", 15) + `

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

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

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

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

Page not found

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

Not Found

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

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

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

Not Found

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

Scheduled maintenance.

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

Page Not Found

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

Error

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

Service temporarily unavailable.

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

Please enable JS and disable any ad blocker

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

Page Not Found

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

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

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

USA Trade Online International Trade Portal

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

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

404 Page Not Found

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

Page Not Found

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

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

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

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

Page Not Found

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

Error

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

Site under maintenance.

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

Access Denied

Reference #18.errors.edgesuite.net

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

Page Not Found

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

Page Not Found

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

Service Unavailable

DOL Open Data API is undergoing scheduled maintenance.

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

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

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

More EEOC Litigation Releases

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

Page not found

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

Page Not Found

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

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

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

404 Not Found


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

Error

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

Under maintenance.

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

Page Not Found

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

Service Unavailable

ECFS API is undergoing maintenance.

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

Access Denied

errors.edgesuite.net

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

Service Unavailable

FCC Open Data portal maintenance.

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

ADAMS Public Documents

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

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

Page Not Found

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

Page Not Found

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

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

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

Release Number 9331-26

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

November 23, 2026

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

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

404 Page Not Found

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

Page Not Found

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

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

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

Legal Library: Banned Debt Collectors

Matter Number: 192 3088
Last Updated:

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

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

Page not found

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

Page Not Found

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

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

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

Federal Cybersecurity Governance: Agencies Need Stronger Risk Monitoring

Fast Facts

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

What GAO Found

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

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

404 - Page Not Found

We couldn't find that page.

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

Application Error

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

GAO.gov is temporarily unavailable due to scheduled maintenance.

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

Access Denied

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

Reference #18.2345.errors.edgesuite.net

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

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

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

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

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

Access Denied

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

Briefly unavailable for scheduled maintenance.

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

Not Found

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

Scheduled maintenance in progress.

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

Page Not Found

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

HealthCare.gov is undergoing scheduled maintenance.

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

Import Alert 66-41

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

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

The requested page could not be found.

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

Page Not Found

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

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

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

Page Not Found

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

Under maintenance.

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

Trader Joe's East Inc.

Case Number: 13-CA-394913

Date Filed: 09/15/2026

Status: Open

Location: Chicago, IL

Region Assigned: Region 13, Chicago, Illinois

Docket Activity

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

Page not found

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

Page Not Found

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

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

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

404 Page Not Found

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

Not Found

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

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

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

Establishment Search Results: Midwest Metalworks Inc.

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

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

Not Found

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

Page Not Found

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

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

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

403 ERROR

The request could not be satisfied.

Request blocked. Generated by cloudfront (CloudFront).

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

Inspector General Reports

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

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

Page not found

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

Page Not Found

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

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

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

406

Bad request. Reference: 12345abcde

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

Page not found

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

Service temporarily unavailable.

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

Not Found

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

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

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

Not Found

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

Page Not Found

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

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

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

Not Found

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

USPS API maintenance.

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

China Section 301-Tariff Actions and Exclusion Process

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

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

Page not found

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

Page Not Found

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

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

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

Page Not Found

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

VA API temporarily unavailable.

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

Consolidated Screening List

The CSL consolidates eleven export screening lists.

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

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

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

OFAC Notice

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

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

Please enable JS and disable any ad blocker.

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

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

`, + Markdown: strings.Repeat("Service error details ", 120), + }) + if gotRedir.State != "soft_404" { + t.Fatalf("expected redirect to %s to classify soft_404, got %+v", errFin, gotRedir) + } + } + + // 8. UTF-8 BOM-prefixed > 8192-byte empty -> empty_shell + bomLargeSDN := "\uFEFF" + largeEmptySDN + gotBOMSDN := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + FinalURL: "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML", + RawHTML: bomLargeSDN, + Markdown: bomLargeSDN, + }) + if gotBOMSDN.State != "empty_shell" { + t.Fatalf("expected UTF-8 BOM >8KiB empty to classify empty_shell, got %+v", gotBOMSDN) + } } diff --git a/internal/extract/declarative.go b/internal/extract/declarative.go index 86cc27b..7c07578 100644 --- a/internal/extract/declarative.go +++ b/internal/extract/declarative.go @@ -818,6 +818,73 @@ func (m *DeclarativeTwinMatch) EffectiveMaxBytes() int { return 4 << 20 } +// AllowCrossOriginRedirects reports whether this twin route is vetted to follow a trusted cross-origin CDN/S3 redirect. +func (m *DeclarativeTwinMatch) AllowCrossOriginRedirects() bool { + if m == nil { + return false + } + id := m.AdapterID + if id == "" { + id = m.ID + } + if (id == "ofac-sdn" || m.ID == "ofac-sdn") && isOfacSdnTrustedSourceURLGo(m.FetchURL) { + return true + } + if (id == "musicbrainz-coverart" || m.ID == "musicbrainz-coverart") && isCoverArtArchiveSourceURLGo(m.FetchURL) { + return true + } + return false +} + +// AllowTruncatedStream reports whether a bounded streaming prefix (`maxBytes < 4 MiB` for text twins, or `cms-price-transparency` / `web-compat-data`) may be formatted when truncated. +func (m *DeclarativeTwinMatch) AllowTruncatedStream() bool { + if m == nil { + return false + } + mb := m.EffectiveMaxBytes() + if mb <= 0 || mb > (4<<20) { + return false + } + id := m.AdapterID + if id == "" { + id = m.ID + } + if m.Kind == classify.KindText { + return id != "us-cfr-govinfo" && m.ID != "us-cfr-govinfo" && mb < (4<<20) + } + return id == "cms-price-transparency" || m.ID == "cms-price-transparency" || id == "web-compat-data" || m.ID == "web-compat-data" +} + +// IsDomainSpecificExtractorID reports whether extractorID is a domain-specific adapter that preempts generic custom-domain storefront overlay enrichment. +func IsDomainSpecificExtractorID(extractorID string) bool { + id := strings.ToLower(strings.TrimSpace(extractorID)) + if id == "" || strings.HasPrefix(id, "schema-") { + return false + } + switch id { + case "shopify", + "woocommerce", + "bigcommerce-store", + "squarespace-commerce", + "sfcc-demandware", + "shopware-magento", + "shopify-hydrogen", + "shopify-storefront-graphql", + "shopify-filter-apps", + "aem", + "arc-xp", + "townnews-blox", + "brightspot", + "hubspot-cms", + "wordpress-vip-newspack", + "headless-commerce", + "headless-cms-delivery": + return false + default: + return true + } +} + type declarativeWildcard struct { kind string // "suffix", "prefix", or "infix" pattern string @@ -2344,136 +2411,6 @@ func (m *DeclarativeTwinMatch) ValidateRedirectTarget(finalURL string) bool { return false } -func buildResolvedTwinURLGo(route DeclarativeRouteSpec, u *url.URL, host string, params map[string]string) (string, bool) { - twin := route.Twin - var candidate string - if twin.FetchURL == "{requestUrl}" { - cloned := *u - cloned.Fragment = "" - cloned.User = nil - cloned.Host = host - if twin.OverridePathIf != nil { - cleanCur := strings.TrimRight(cloned.Path, "/") - if cleanCur == "" { - cleanCur = "/" - } - for _, mp := range twin.OverridePathIf.MatchPaths { - want := strings.TrimRight(mp, "/") - if want == "" { - want = "/" - } - if strings.EqualFold(cleanCur, want) { - cloned.Path = twin.OverridePathIf.NewPath - cloned.RawPath = "" - break - } - } - } - if len(twin.DefaultQueryParams) > 0 || len(twin.SetQueryParams) > 0 { - q := cloned.Query() - queryModified := false - for k, v := range twin.DefaultQueryParams { - if q.Get(k) == "" { - q.Set(k, v) - queryModified = true - } - } - for k, v := range twin.SetQueryParams { - if q.Get(k) != v || len(q[k]) != 1 { - q.Set(k, v) - queryModified = true - } - } - if queryModified { - keys := make([]string, 0, len(q)) - for k := range q { - keys = append(keys, k) - } - sort.Slice(keys, func(i, j int) bool { - if keys[i] == "ss" && keys[j] == "in_iframe" { - return true - } - if keys[i] == "in_iframe" && keys[j] == "ss" { - return false - } - return keys[i] < keys[j] - }) - var qParts []string - for _, k := range keys { - ek := url.QueryEscape(k) - for _, v := range q[k] { - qParts = append(qParts, ek+"="+url.QueryEscape(v)) - } - } - cloned.RawQuery = strings.Join(qParts, "&") - } - } - candidate = cloned.String() - } else { - rawSet := make(map[string]bool, len(twin.RawPathParams)) - for _, rp := range twin.RawPathParams { - rawSet[rp] = true - } - candidate = expandTemplate(twin.FetchURL, func(key string) string { - switch key { - case "host": - return host - case "origin": - return "https://" + host - case "baseCleanUrl": - return "https://" + host + strings.TrimRight(u.Path, "/") - } - val := params[key] - if rawSet[key] { - return encodeSafeSubpath(val) - } - return encodeURIComponent(val) - }) - } - if !isSafePublicTwinURL(candidate) { - return "", false - } - return candidate, true -} - -func normalizeDeclarativeAccept(kind, rawAccept string) string { - if kind != "text" { - if strings.TrimSpace(rawAccept) == "" { - return "application/json" - } - return strings.TrimSpace(rawAccept) - } - trimmed := strings.ToLower(strings.TrimSpace(rawAccept)) - if isAllowedGoKindTextAcceptGo(trimmed) { - return trimmed - } - for _, rawPart := range strings.Split(trimmed, ",") { - primary := strings.TrimSpace(strings.SplitN(rawPart, ";", 2)[0]) - if isAllowedGoKindTextAcceptGo(primary) { - return primary - } - } - return "text/plain" -} - -func isAllowedGoKindTextAcceptGo(mime string) bool { - switch mime { - case "text/html", "text/markdown", "text/x-markdown", "application/xml", "text/xml", "application/rss+xml", "application/atom+xml", "application/json", "text/calendar", "text/plain": - return true - default: - return false - } -} - -func isSafePublicHostnameGo(h string) bool { - return IsSafePublicHostname(h) -} - -// IsSafeDeclarativeTwinURL reports whether raw is a safe public HTTPS declarative twin URL. -func IsSafeDeclarativeTwinURL(raw string) bool { - return isSafePublicTwinURL(raw) -} - var ( reWorkdayHostTenantGo = newLazyRegexp(`^([a-z0-9-]+)\.(?:wd\d+\.)?(myworkday(?:jobs|site)\.com)$`) reTwinRedirectErrorPathGo = newLazyRegexp(`(?i)(?:^|/)(?:errors?|40[34](?:-page)?|not-?found|page-?not-?found(?:-sub)?|notfound|sorrypages?)(?:\.[a-z0-9]{1,8})?(?:/|$)`) @@ -2661,6 +2598,136 @@ func ValidateTwinRedirectFull(twinID, initialFetchURL, finalURL, selfHost string return false, errorPage } +func buildResolvedTwinURLGo(route DeclarativeRouteSpec, u *url.URL, host string, params map[string]string) (string, bool) { + twin := route.Twin + var candidate string + if twin.FetchURL == "{requestUrl}" { + cloned := *u + cloned.Fragment = "" + cloned.User = nil + cloned.Host = host + if twin.OverridePathIf != nil { + cleanCur := strings.TrimRight(cloned.Path, "/") + if cleanCur == "" { + cleanCur = "/" + } + for _, mp := range twin.OverridePathIf.MatchPaths { + want := strings.TrimRight(mp, "/") + if want == "" { + want = "/" + } + if strings.EqualFold(cleanCur, want) { + cloned.Path = twin.OverridePathIf.NewPath + cloned.RawPath = "" + break + } + } + } + if len(twin.DefaultQueryParams) > 0 || len(twin.SetQueryParams) > 0 { + q := cloned.Query() + queryModified := false + for k, v := range twin.DefaultQueryParams { + if q.Get(k) == "" { + q.Set(k, v) + queryModified = true + } + } + for k, v := range twin.SetQueryParams { + if q.Get(k) != v || len(q[k]) != 1 { + q.Set(k, v) + queryModified = true + } + } + if queryModified { + keys := make([]string, 0, len(q)) + for k := range q { + keys = append(keys, k) + } + sort.Slice(keys, func(i, j int) bool { + if keys[i] == "ss" && keys[j] == "in_iframe" { + return true + } + if keys[i] == "in_iframe" && keys[j] == "ss" { + return false + } + return keys[i] < keys[j] + }) + var qParts []string + for _, k := range keys { + ek := url.QueryEscape(k) + for _, v := range q[k] { + qParts = append(qParts, ek+"="+url.QueryEscape(v)) + } + } + cloned.RawQuery = strings.Join(qParts, "&") + } + } + candidate = cloned.String() + } else { + rawSet := make(map[string]bool, len(twin.RawPathParams)) + for _, rp := range twin.RawPathParams { + rawSet[rp] = true + } + candidate = expandTemplate(twin.FetchURL, func(key string) string { + switch key { + case "host": + return host + case "origin": + return "https://" + host + case "baseCleanUrl": + return "https://" + host + strings.TrimRight(u.Path, "/") + } + val := params[key] + if rawSet[key] { + return encodeSafeSubpath(val) + } + return encodeURIComponent(val) + }) + } + if !isSafePublicTwinURL(candidate) { + return "", false + } + return candidate, true +} + +func normalizeDeclarativeAccept(kind, rawAccept string) string { + if kind != "text" { + if strings.TrimSpace(rawAccept) == "" { + return "application/json" + } + return strings.TrimSpace(rawAccept) + } + trimmed := strings.ToLower(strings.TrimSpace(rawAccept)) + if isAllowedGoKindTextAcceptGo(trimmed) { + return trimmed + } + for _, rawPart := range strings.Split(trimmed, ",") { + primary := strings.TrimSpace(strings.SplitN(rawPart, ";", 2)[0]) + if isAllowedGoKindTextAcceptGo(primary) { + return primary + } + } + return "text/plain" +} + +func isAllowedGoKindTextAcceptGo(mime string) bool { + switch mime { + case "text/html", "text/markdown", "text/x-markdown", "application/xml", "text/xml", "application/rss+xml", "application/atom+xml", "application/json", "text/calendar", "text/plain": + return true + default: + return false + } +} + +func isSafePublicHostnameGo(h string) bool { + return IsSafePublicHostname(h) +} + +// IsSafeDeclarativeTwinURL reports whether raw is a safe public HTTPS declarative twin URL. +func IsSafeDeclarativeTwinURL(raw string) bool { + return isSafePublicTwinURL(raw) +} + // FormatJSONWithExtractSpec formats a raw JSON/Inertia twin payload against an explicit DeclarativeExtractSpec and route params. func FormatJSONWithExtractSpec(rawBody string, ext DeclarativeExtractSpec, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { if params == nil { @@ -4992,6 +5059,12 @@ func (m *DeclarativeTwinMatch) formatTextTwin(rawBody string) (*DeclarativeForma if IsWave3PropRestIRTextMode(ext.TextMode) { return FormatWave3PropRestIRTextDoc(ext.TextMode, rawBody, m.params, m.origURL) } + if IsWave3TradeTextMode(ext.TextMode) { + return FormatWave3TradeTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } + if IsWave3RegulatorsHealthTextMode(ext.TextMode) { + return FormatWave3RegulatorsHealthTextDoc(ext.TextMode, rawBody, m.params, m.origURL) + } if ext.JSONSource == "inertia_data_page" { jsonBytes, ok := extractInertiaDataPageBytesGo(rawBody) if !ok { @@ -5811,6 +5884,15 @@ func (m *DeclarativeTwinMatch) formatJSONBytesTwin(rawBytes []byte, ext Declarat if IsWave3StoreAddonsJSONMode(ext.JSONMode) { return FormatWave3StoreAddonsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) } + if IsWave3TradeJSONMode(ext.JSONMode) { + return FormatWave3TradeJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3RegulatorsJSONMode(ext.JSONMode) { + return FormatWave3RegulatorsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3RegulatorsHealthJSONMode(ext.JSONMode) { + return FormatWave3RegulatorsHealthJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } var rootObj map[string]any var selectiveCache *selectiveJSONCache unwrappedArray := false diff --git a/internal/extract/declarative_html.go b/internal/extract/declarative_html.go index b895821..94a36bc 100644 --- a/internal/extract/declarative_html.go +++ b/internal/extract/declarative_html.go @@ -4635,6 +4635,152 @@ func firstNonWhitespaceByteDeclHTML(s string) byte { return 0 } +func hasHTMLTagPrefixDeclHTML(lower string, prefix string) bool { + off := 0 + for { + idx := strings.Index(lower[off:], prefix) + if idx < 0 { + return false + } + end := off + idx + len(prefix) + if end < len(lower) { + next := lower[end] + if next == '>' || next == '/' || next == ' ' || next == '\t' || next == '\n' || next == '\r' { + return true + } + } + off = end + } +} + +func hasEmptyAppOrDivMountDeclHTML(probe, probeLower string) bool { + if strings.Contains(probeLower, `data-ng-app="app.main"`) || strings.Contains(probeLower, `data-ng-app='app.main'`) { + return true + } + if strings.Contains(probeLower, "loading_container") { + if _, ok := findOpenTagLinearDeclHTML(probe, "", func(attrStr string) bool { + return attrHasTokenLinearDeclHTML(attrStr, "class", "loading_container") + }, len(probe)); ok { + return true + } + } + for _, customTag := range []string{"app-root", "hts-root"} { + openNeedle := "<" + customTag + closeNeedle := "" + off := 0 + for { + idx := strings.Index(probeLower[off:], openNeedle) + if idx < 0 { + break + } + tagStart := off + idx + afterName := tagStart + len(openNeedle) + if afterName < len(probeLower) { + nc := probeLower[afterName] + if nc == '>' || nc == ' ' || nc == '\t' || nc == '\n' || nc == '\r' { + gtRel := strings.IndexByte(probeLower[afterName:], '>') + if gtRel >= 0 && strings.IndexByte(probeLower[afterName:afterName+gtRel], '<') < 0 { + innerStart := afterName + gtRel + 1 + trimmedRest := strings.TrimLeft(probeLower[innerStart:], " \t\r\n") + if strings.HasPrefix(trimmedRest, closeNeedle) { + return true + } + } + } + } + off = afterName + } + } + off := 0 + for { + idx := strings.Index(probeLower[off:], "') + if gtRel >= 0 && strings.IndexByte(probeLower[afterName:afterName+gtRel], '<') < 0 { + attrStr := probe[afterName : afterName+gtRel] + if idVal, hasID := getAttrValueLinearDeclHTML(attrStr, "id"); hasID { + switch strings.ToLower(strings.TrimSpace(idVal)) { + case "root", "app", "application", "__next", "react-root": + innerStart := afterName + gtRel + 1 + trimmedRest := strings.TrimLeft(probeLower[innerStart:], " \t\r\n") + if strings.HasPrefix(trimmedRest, "") { + return true + } + } + } + off = afterName + gtRel + 1 + continue + } + } + } + off = afterName + } + return false +} + +// IsObviousUnhydratedCSRShell reports whether rawHTML is an empty client-side SPA mount shell without SSR or JSON-LD content. +func IsObviousUnhydratedCSRShell(rawHTML string) bool { + if rawHTML == "" { + return false + } + firstByte := firstNonWhitespaceByteDeclHTML(rawHTML) + if firstByte == 0 || firstByte == '{' || firstByte == '[' { + return false + } + if strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return false + } + probe := rawHTML + if len(probe) > 262_144 { + probe = probe[:262_144] + } + probeLower := strings.ToLower(probe) + if !hasEmptyAppOrDivMountDeclHTML(probe, probeLower) { + return false + } + fullLower := probeLower + if len(rawHTML) > len(probe) { + fullLower = strings.ToLower(rawHTML) + } + if hasHTMLTagPrefixDeclHTML(fullLower, "/...html pages to .model.json / .infinity.json Sling model twins, with clean HTML fallback when disabled or on 404/403.","domains":["wknd.site"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://wknd.site/content/wknd/us/en.html","https://wknd.site/content/wknd/us/en.model.json"],"routes":[{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".model.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".infinity.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".html","pathSegments":["content",{"param":"siteSeg","charset":"url_seg","reserved":["pkg","dam"],"minLen":1,"maxLen":120},{"param":"pagePath","charset":"safe_subpath","stripSuffix":".html","greedy":true,"minLen":1,"maxLen":400}]},"twin":{"fetchUrl":"https://{host}/content/{siteSeg}/{pagePath}.model.json","rawPathParams":["pagePath"],"kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}}],"htmlRoutes":[{"id":"aem","match":{"exactSegments":false},"mode":"aem_html"}]},{"id":"aftership-tracking-page","name":"AfterShip Order Tracking Pages","category":"commerce-social","description":"Extracts hydrated AfterShip tracking portals and shipment checkpoints while enforcing strict_robots for *.aftership.com and rejecting Cloudflare/empty shells.","domains":["*.aftership.com","www.aftership.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nealsyardremedies.aftership.com/"],"htmlRoutes":[{"id":"aftership-tracking-page","match":{"exactSegments":false},"mode":"aftership_tracking_html"}]},{"id":"agenda-portal-pack","name":"Municipal Agenda Portal Pack (eScribe, NovusAgenda, CivicWeb)","category":"public-records","description":"Extracts public meeting lists, agenda links, and documents from eScribe, NovusAgenda, and CivicWeb/iCompass portals.","domains":["*.escribemeetings.com","*.novusagenda.com","*.civicweb.net"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pub-london.escribemeetings.com/","https://houston.novusagenda.com/agendapublic/","https://millcreekwa.civicweb.net/Portal/"],"htmlRoutes":[{"id":"agenda-portal-pack","match":{"exactSegments":false},"mode":"agenda_portal_html"}]},{"id":"airnow","name":"AirNow Air Quality API","category":"research-health","description":"US EPA AirNow air quality observation and forecast JSON API (API_KEY query parameter) with airnow.gov HTML fallback.","domains":["www.airnowapi.org","airnowapi.org","www.airnow.gov","airnow.gov","docs.airnowapi.org"],"auth_mode":"key","exampleUrls":["https://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=20002&distance=25","https://www.airnow.gov/?city=Washington&state=DC&country=USA"],"routes":[{"match":{"hosts":["www.airnowapi.org","airnowapi.org"],"pathPrefix":"/aq/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"application/json"},"kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"airnow_json"}}],"htmlRoutes":[{"id":"airnow","match":{"hosts":["www.airnow.gov","airnow.gov","docs.airnowapi.org"],"exactSegments":false},"mode":"airnow_html"}]},{"id":"algolia","name":"Algolia On-Site Search","category":"developer","description":"Opt-in page-key adapter for Algolia search index JSON twins; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["latency-dsn.algolia.net"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://latency-dsn.algolia.net/1/indexes/instant_search?query=apple"],"routes":[{"match":{"hostSubdomain":{"suffix":".algolia.net","param":"appHost"},"pathSegments":["1","indexes",{"param":"indexName","charset":"url_seg","minLen":1,"maxLen":120},{"param":"op","allowValues":["query"],"optional":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"algolia_search"}}],"htmlRoutes":[{"id":"algolia","match":{"exactSegments":false},"mode":"algolia_html"}]},{"id":"american-legal-publishing","name":"American Legal Publishing Municipal Codes","category":"public-records","description":"HTML extractor for American Legal Publishing Code Library municipal codes and ordinance sections.","domains":["codelibrary.amlegal.com"],"auth_mode":"html","exampleUrls":["https://codelibrary.amlegal.com/codes/san_francisco/latest/overview","https://codelibrary.amlegal.com/codes/chicago/latest/overview"],"htmlRoutes":[{"id":"american-legal-publishing","match":{"exactSegments":false},"mode":"amlegal_html"}]},{"id":"ap-news","name":"Associated Press (AP News)","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and RichTextStoryBody from AP News HTML pages while respecting robots.txt feed exclusions.","domains":["apnews.com","www.apnews.com"],"auth_mode":"html","exampleUrls":["https://apnews.com/hub/us-news"],"htmlRoutes":[{"id":"ap-news","match":{"exactSegments":false},"mode":"ap_news_html"}]},{"id":"api-docs-portals","name":"API Docs Portals (OpenAPI, Redocly, Postman, Stoplight)","category":"developer","description":"Universal extractor for OpenAPI 2/3 JSON specs, Postman Collection JSON, and Redocly/Postman/Stoplight API documentation portals.","domains":["petstore3.swagger.io","redocly.com","www.postman.com","learn.openapis.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://petstore3.swagger.io/api/v3/openapi.json","https://learn.openapis.org/"],"routes":[{"match":{"anyOf":[{"pathEquals":["/openapi.json","/swagger.json","/api-docs","/v2/api-docs","/v3/api-docs"]},{"pathSuffix":"/openapi.json"},{"pathSuffix":"/swagger.json"},{"pathSuffix":"/collection.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openapi_postman_json"}}],"htmlRoutes":[{"id":"api-docs-portals","match":{"exactSegments":false},"mode":"api_docs_portal_html"}]},{"id":"appfolio-listings","name":"AppFolio Rental Listings","category":"commerce-social","description":"Extracts residential rental listings from AppFolio property management portals while strictly honoring Crawl-delay: 10, robots.txt, and /page-not-found-sub soft-404 rejection.","domains":["*.appfolio.com"],"universalEngine":false,"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"max_concurrent":1,"exampleUrls":["https://lapmg.appfolio.com/listings"],"htmlRoutes":[{"id":"appfolio-listings","match":{"exactSegments":false},"mode":"appfolio_listings_html"}]},{"id":"apple-app-store","name":"Apple App Store","category":"developer","description":"Extracts structured iOS/macOS App Store metadata (developer, rating, review count, price, category, version notes, and description).","domains":["apps.apple.com"],"exampleUrls":["https://apps.apple.com/us/app/cloudflare-one-agent/id6443476492"],"htmlRoutes":[{"match":{"pathContainsSegment":"app","minSegments":2},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication","WebApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s+on the App\\s*Store$","cssText":["h1"]},"developer":{"jsonLdPaths":["author.name"],"cssText":["h2.product-header__identity"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.reviewCount","aggregateRating.ratingCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} ratings)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"osSys":{"jsonLdPaths":["operatingSystem"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"version":{"regexExtract":{"source":"clean_html","pattern":"Version\\s+([0-9][0-9A-Za-z._-]*)","group":1}}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Platform","template":"{osSys}","whenVar":"osSys"},{"label":"Latest Version","template":"`{version}`","whenVar":"version"}],"sections":[{"heading":"Description","textVar":"desc"}]}]},{"id":"arc-xp","name":"Arc XP Publishing (Fusion / ANS)","category":"commerce-social","description":"Extracts Arc XP /pf/api/v3/content/fetch ANS JSON twins and inline Fusion.globalContent publisher articles.","domains":["www.clickondetroit.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.clickondetroit.com/news/local/2026/11/27/1-killed-in-shooting-in-downtown-birmingham/"],"routes":[{"match":{"pathPrefix":"/pf/api/v3/content/fetch/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"arc_xp_ans"}}],"htmlRoutes":[{"id":"arc-xp","match":{"exactSegments":false},"mode":"arc_xp_html"}]},{"id":"arcgis-hub","name":"Esri ArcGIS Hub Open Data Portals","category":"public-records","description":"Extracts ArcGIS Hub /api/v3/datasets (with sparse field projection) and /api/search/v1 OGC GeoJSON item collections plus hydrated HTML.","domains":["hub.arcgis.com","*.hub.arcgis.com","*.opendata.arcgis.com","opendata.dc.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3","https://opendata.dc.gov/api/v3/datasets?page[size]=1"],"routes":[{"match":{"pathPrefix":"/api/v3/datasets"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields[datasets]":"name,description,owner,modified,created,url,orgName,recordCount,licenseInfo,tags,hubType"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}},{"match":{"pathPrefix":"/api/search/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json, application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}}],"htmlRoutes":[{"id":"arcgis-hub","match":{"exactSegments":false},"mode":"arcgis_hub_html"}]},{"id":"arcgis","name":"ArcGIS REST FeatureServer & MapServer Layers","category":"public-records","description":"Upgrades public ArcGIS REST FeatureServer/MapServer layer URLs to ?f=json metadata, geometry type, spatial reference, and field schemas.","domains":["services.arcgis.com"],"universalEngine":true,"exampleUrls":["https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/2020_Census_State_Apportionment/FeatureServer/0"],"match":{"arcgisRestLayer":true,"pathSegments":[{"param":"restPath","charset":"safe_subpath","greedy":true,"maxLen":500}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"rejectIfFieldTruthy":"error","vars":{"name":{"paths":["name","mapName","serviceDescription"],"trim":true,"default":"ArcGIS Service"},"desc":{"paths":["description","serviceDescription"],"format":"strip_tags"},"descShort":{"paths":["description","serviceDescription"],"format":"strip_tags","sliceMax":260},"geomType":{"paths":["geometryType"]},"maxRec":{"paths":["maxRecordCount"]},"capabilities":{"paths":["capabilities"]},"wkid":{"paths":["extent.spatialReference.latestWkid","extent.spatialReference.wkid"]},"baseClean":{"template":"https://{host}/{restPath}"},"hasFields":{"paths":["fields"],"format":"array_len","excludeEquals":"0"},"hasLayers":{"paths":["layers"],"format":"array_len","excludeEquals":"0"}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"REST Endpoint","template":"`{baseClean}`"},{"label":"Geometry Type","template":"`{geomType}`","whenVar":"geomType"},{"label":"Spatial Reference (WKID)","template":"`EPSG:{wkid}`","whenVar":"wkid"},{"label":"Max Record Count / Query","template":"{maxRec}","whenVar":"maxRec"},{"label":"Capabilities","template":"{capabilities}","whenVar":"capabilities"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Layer Fields","headingTemplate":"Layer Fields ({count})","whenVar":"hasFields","arrayPath":"fields","limit":40,"columns":[{"header":"Field","paths":["name"],"code":true},{"header":"Alias","paths":["alias"]},{"header":"Type","paths":["type"],"stripPrefix":"esriFieldType"}]},{"heading":"Sublayers","headingTemplate":"Sublayers ({count})","whenVar":"hasLayers","unlessVar":"hasFields","arrayPath":"layers","limit":30,"itemVars":{"layerId":{"paths":["id"],"default":"0"},"layerName":{"paths":["name"],"default":"Layer"}},"columns":[{"header":"ID","paths":["id"]},{"header":"Layer","template":"[{layerName}]({baseClean}/{layerId})"},{"header":"Geometry","paths":["geometryType"]}]}]}},{"id":"arxiv","name":"arXiv Preprints","category":"research-health","description":"Extracts arXiv preprint title, authors, submission date, subject classifications, PDF/HTML links, and clean abstract from arxiv.org/abs/ (strictly respecting robots.txt).","domains":["arxiv.org","www.arxiv.org"],"exampleUrls":["https://arxiv.org/abs/1706.03762"],"htmlRoutes":[{"match":{"pathSegments":["abs",{"param":"arxivId","charset":"arxiv_id","greedy":true}]},"mode":"dom","requireVars":["title","abstract"],"vars":{"titleDom":{"cssText":["h1.title"],"stripPrefix":"Title:"},"title":{"metaKeys":["citation_title"],"fallbackVar":"titleDom"},"authors":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":20,"join":", "},"authorsShort":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":4,"join":", "},"date":{"metaKeys":["citation_date","citation_online_date"]},"doi":{"metaKeys":["citation_doi"]},"primarySubject":{"cssText":["span.primary-subject"]},"absMeta":{"metaKeys":["citation_abstract"]},"abstract":{"cssText":["blockquote.abstract"],"stripPrefix":"Abstract:","fallbackVar":"absMeta"},"abstractShort":{"template":"{abstract}","whenVars":["abstract"],"sliceMax":260},"pdfUrl":{"template":"https://arxiv.org/pdf/{arxivId}"},"htmlPaperUrl":{"template":"https://arxiv.org/html/{arxivId}"}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"date","bullets":[{"label":"arXiv ID","template":"`{arxivId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Submitted","template":"{date}","whenVar":"date"},{"label":"Primary Subject","template":"{primarySubject}","whenVar":"primarySubject"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text","template":"[PDF]({pdfUrl}) · [ar5iv / HTML]({htmlPaperUrl})"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linkTemplates":["https://arxiv.org/pdf/{arxivId}","https://arxiv.org/html/{arxivId}"]}]},{"id":"association-ams-pack","name":"Association AMS Pack (Novi AMS, MemberClicks, YourMembership)","category":"commerce-social","description":"Extracts association events and member directories from Novi AMS, MemberClicks / Personify WebLink, and YourMembership portals while rejecting login gates and error shells.","domains":["www.austinaptassoc.com","web.arlingtonchamber.org","*.memberclicks.net","*.site-ym.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.austinaptassoc.com/events","https://web.arlingtonchamber.org/events"],"htmlRoutes":[{"id":"association-ams-pack","match":{"exactSegments":false},"mode":"association_ams_html"}]},{"id":"atlassian-statuspage","name":"Atlassian Statuspage","category":"developer","description":"Extracts Atlassian Statuspage /api/v2/summary.json and incidents.json endpoints (when robots.txt permits) plus Statuspage HTML pages.","domains":["statuspage.io","www.statuspage.io","www.githubstatus.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.githubstatus.com/","https://discord.statuspage.io/"],"routes":[{"match":{"pathEquals":["/api/v2/summary.json","/api/v2/incidents.json","/api/v2/status.json","/api/v2/components.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"statuspage_v2"}}],"htmlRoutes":[{"id":"atlassian-statuspage","match":{"exactSegments":false},"mode":"statuspage_html"}]},{"id":"auto-dealer-inventory","name":"Auto Dealer Inventory (Universal)","category":"commerce-social","description":"Universal automotive dealer SRP/VDP HTML and Schema.org Vehicle/Car JSON-LD extractor for Dealer.com, Dealer Inspire, and DealerOn storefronts.","domains":["www.johneaglehonda.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.johneaglehonda.com/used-inventory/index.htm","https://www.johneaglehonda.com/used/Honda/2021-Honda-Accord--for-sale-houston-texas-f65329b9ac180db0f233180fce0b2e1d.htm"],"htmlRoutes":[{"id":"auto-dealer-inventory","match":{"anyOf":[{"pathPrefix":"/used-inventory/"},{"pathPrefix":"/new-inventory/"},{"pathPrefix":"/all-inventory/"},{"pathPrefix":"/certified-inventory/"},{"pathPrefix":"/inventory/"},{"pathPrefix":"/used/"},{"pathPrefix":"/new/"},{"pathPrefix":"/vehicles/"},{"pathPrefix":"/vehicle/"},{"pathPrefix":"/vdp/"},{"pathPrefix":"/srp/"},{"pathEquals":["/searchused.aspx","/searchnew.aspx","/searchall.aspx"]}]},"mode":"auto_dealer_html"}]},{"id":"auto-parts-fitment","name":"Auto Parts Fitment & SKU Extractor","category":"commerce-social","description":"Extracts auto parts SKUs, part numbers, strict GTINs, and explicit vehicle fitment (year, make, model, engine) for AutoZone, O'Reilly, NAPA, and Advance Auto Parts.","domains":["autozone.com","www.autozone.com","oreillyauto.com","www.oreillyauto.com","napaonline.com","www.napaonline.com","shop.advanceautoparts.com","www.advanceautoparts.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.autozone.com/brakes-and-traction-control/brake-pads/duralast-gold-ceramic-brake-pads-dg1410/141001_0_0","https://www.napaonline.com/en/p/NAPA1410"],"htmlRoutes":[{"id":"auto-parts-fitment","match":{"exactSegments":false},"mode":"auto_parts_fitment_html"}]},{"id":"bamboohr-breezy-recruitee","name":"BambooHR, Breezy HR, Recruitee & Personio Boards","category":"jobs","description":"Upgrades BambooHR (/careers/list & /detail), Breezy HR (/json), Recruitee (/api/offers), and Personio (/xml) career boards to structured feeds.","domains":["*.bamboohr.com","*.breezy.hr","*.recruitee.com","*.jobs.personio.de","*.jobs.personio.com"],"exampleUrls":["https://posthog.bamboohr.com/careers","https://breezy.breezy.hr/","https://bunq.recruitee.com/","https://personio.jobs.personio.de/"],"routes":[{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"pathSegments":[{"param":"boardSection","charset":"alnum","allowValues":["careers","jobs"],"optional":true}]},"twin":{"id":"bamboohr-board","fetchUrl":"https://{host}/careers/list","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["result"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — BambooHR Careers ({count} open roles)","sections":[{"heading":"","arrayPath":"result","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"id":{"paths":["id"]},"jTitle":{"paths":["jobOpeningName"],"trim":true,"default":"Role"},"jUrl":{"template":"https://{host}/careers/{id}"},"dept":{"paths":["departmentLabel"],"trim":true,"default":"-"},"city":{"paths":["location.city"],"trim":true},"state":{"paths":["location.state"],"trim":true},"bothLoc":{"template":"{city}, {state}","whenVars":["city","state"]},"oneLoc":{"paths":["location.city","location.state"],"trim":true},"remoteLoc":{"paths":["isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"template":"{bothLoc}","whenVars":["bothLoc"],"fallbackVar":"oneLoc","fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"exactSegments":false,"pathSegments":["careers",{"param":"jobId","charset":"digits"}]},"twin":{"id":"bamboohr-job","fetchUrl":"https://{host}/careers/{jobId}/detail","kind":"json","accept":"application/json"},"extract":{"rootPath":"result.jobOpening","requireFields":["jobOpeningName"],"vars":{"jobTitle":{"paths":["jobOpeningName"],"trim":true},"body":{"paths":["description"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"body"}},{"match":{"hosts":["*.breezy.hr"],"hostSubdomain":{"suffix":".breezy.hr","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"breezy-hr","fetchUrl":"https://{host}/json","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"count":{"paths":["jobs"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Breezy HR Board ({count} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["location.is_remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location.name"],"trim":true,"fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["o",{"param":"targetSlug","charset":"pkg"}]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"offers","matchField":"slug","matchTemplate":"{targetSlug}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Role"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"desc","sections":[{"heading":"Requirements","textVar":"reqs"}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["offers"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Recruitee Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"offers","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"oTitle":{"paths":["title"],"trim":true,"default":"Role"},"slug":{"paths":["slug"]},"rawUrl":{"paths":["careers_url"],"requireHttps":true},"oUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/o/{slug}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location"],"trim":true,"fallbackTemplate":"{remoteLoc}"},"isRemote":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":""},"hybridOrOnsite":{"paths":["hybrid"],"format":"bool_map","trueValue":"Hybrid","falseValue":"On-site"},"workplace":{"template":"{isRemote}","whenVars":["isRemote"],"fallbackVar":"hybridOrOnsite"}},"collectLinkVars":["oUrl"],"columns":[{"header":"Role","template":"[{oTitle}]({oUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{workplace}"}]}]}},{"match":{"anyOf":[{"hosts":["*.jobs.personio.de"],"hostSubdomain":{"suffix":".jobs.personio.de","param":"org"},"pathSegments":[]},{"hosts":["*.jobs.personio.com"],"hostSubdomain":{"suffix":".jobs.personio.com","param":"org"},"pathSegments":[]}]},"twin":{"id":"personio","fetchUrl":"https://{host}/xml?language=en","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["workzag-jobs","position"],"itemTag":"position","titleTemplate":"{org} — Personio Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"itemVars":{"id":{"tags":["id"]},"pName":{"tags":["name"],"default":"Role"},"dept":{"tags":["department"],"default":"-"},"office":{"tags":["office"],"default":"-"},"schedule":{"tags":["schedule"],"default":"-"}},"columns":[{"header":"Role","template":"[{pName}](https://{host}/job/{id})"},{"header":"Department","template":"{dept}"},{"header":"Office","template":"{office}"},{"header":"Schedule","template":"{schedule}"}]}}}]},{"id":"bazaarvoice","name":"Bazaarvoice Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for Bazaarvoice Display API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["api.bazaarvoice.com","www.bazaarvoice.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://api.bazaarvoice.com/data/reviews.json?apiversion=5.4&passkey=lgnkpccztvv6hpje273tu0cx8&Filter=ProductId:YWSHTS&Include=Products&Stats=Reviews&Limit=5"],"routes":[{"match":{"hosts":["api.bazaarvoice.com"],"pathEquals":["/data/reviews.json","/data/display/0.2alpha/product/summary"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bazaarvoice_reviews"}}],"htmlRoutes":[{"id":"bazaarvoice","match":{"exactSegments":false},"mode":"bazaarvoice_html"}]},{"id":"bbb","name":"Better Business Bureau (BBB)","category":"commerce-social","description":"Extracts BBB business profile metadata, accreditation status, rating, contact details, and categories from public bbb.org profile pages while strictly honoring robots.txt.","domains":["bbb.org","www.bbb.org"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bbb.org/us/md/linthicum-heights/profile/property-management/american-community-management-inc-0011-10073"],"htmlRoutes":[{"id":"bbb","match":{"exactSegments":false},"mode":"bbb_html"}]},{"id":"bea","name":"Bureau of Economic Analysis (BEA)","category":"finance","description":"U.S. Bureau of Economic Analysis apps.bea.gov JSON API adapter (NIPA/GDP/Regional/International) with bea.gov HTML fallback.","domains":["bea.gov","www.bea.gov","apps.bea.gov"],"auth_mode":"key","exampleUrls":["https://apps.bea.gov/api/data?method=GetDataSetList&ResultFormat=JSON","https://www.bea.gov/data/gdp/gross-domestic-product"],"routes":[{"match":{"hosts":["apps.bea.gov"],"exactSegments":true,"pathEquals":["/api/data","/API/data","/api/data/","/API/data/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"ResultFormat":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"bea_json"}}],"htmlRoutes":[{"id":"bea","match":{"hosts":["bea.gov","www.bea.gov"],"exactSegments":false},"mode":"bea_html"}]},{"id":"bentobox","name":"BentoBox Restaurant Menus & Venues","category":"commerce-social","description":"Extracts restaurant menus, sections, items, prices, and FoodEstablishment metadata from BentoBox (getbento.com) sites and custom restaurant domains.","domains":["getbento.com","www.getbento.com","*.getbento.com","www.gramercytavern.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gramercytavern.com/dining-room-menu/","https://www.getbento.com/"],"htmlRoutes":[{"id":"bentobox","match":{"exactSegments":false},"mode":"bentobox_html"}]},{"id":"bestbuy","name":"Best Buy Products API","category":"commerce-social","description":"Extracts Best Buy product pricing, SKU, UPC/GTIN, availability, and search results via the official Best Buy Products API.","domains":["bestbuy.com","www.bestbuy.com","api.bestbuy.com"],"auth_mode":"key","exampleUrls":["https://api.bestbuy.com/v1/products/6500131.json","https://api.bestbuy.com/v1/products?format=json"],"routes":[{"match":{"hosts":["bestbuy.com","www.bestbuy.com"],"exactSegments":false,"pathSegments":["site",{"param":"slug","charset":"slug","maxLen":200},{"param":"sku","charset":"digits","stripSuffix":".p","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.bestbuy.com/v1/products/{sku}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}},{"match":{"hosts":["api.bestbuy.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}}]},{"id":"bicycleretailer","name":"Bicycle Retailer & Industry News","category":"commerce-social","description":"Extracts Drupal .node-article body, .view-content listings, and author/publishedTime metadata from bicycleretailer.com while stripping sidebar ads and leaving /rss.xml to feed XML parsing.","domains":["www.bicycleretailer.com","bicycleretailer.com"],"exampleUrls":["https://www.bicycleretailer.com/industry-news/2026/11/25/preliminary-analysis-industry-spared-new-recommended-tariffs","https://www.bicycleretailer.com/industry-news"],"htmlRoutes":[{"id":"bicycleretailer","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["admin","user"],"excludeSegmentSuffixes":[".xml",".rss",".atom"]},"vars":{"title":{"cssText":["article.node-article h1","main h1","h1","title"],"metaKeys":["og:title"],"trim":true},"author":{"metaKeys":["author","article:author"],"trim":true},"publishedTime":{"metaKeys":["article:published_time"],"trim":true},"body":{"cssHtmlToMd":["article.node-article .field-name-body",".node-article .field-name-body",".field-name-body",".view-content","article.node-article","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"big-cartel","name":"Big Cartel Storefronts & Products","category":"commerce-social","description":"Extracts Big Cartel /products.json catalogs and /product/{slug}.js product twins without colliding with Shopify /products.json, plus storefront HTML/JSON-LD fallback.","domains":["shop.bigcartel.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://shop.bigcartel.com/product/buy-from-artists-tote-bag.js","https://shop.bigcartel.com/products.json"],"routes":[{"match":{"anyOf":[{"hosts":["shop.bigcartel.com"],"pathEquals":["/products.json"]},{"hostSubdomain":{"suffix":".bigcartel.com","param":"shopSub","reserved":["www","my","api","developers","blog","assets","help"]},"pathEquals":["/products.json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}},{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","api.bigcartel.com","my.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com","assets.bigcartel.com","help.bigcartel.com"],"exactSegments":true,"pathSuffix":".js","pathSegments":["product",{"param":"slug","charset":"pkg","stripSuffix":".js","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}}],"htmlRoutes":[{"id":"big-cartel","match":{"exactSegments":false},"mode":"big_cartel_html"}]},{"id":"bigcommerce-store","name":"BigCommerce Stencil Storefronts","category":"commerce-social","description":"Extracts BigCommerce Stencil BCData, JSON-LD, Microdata, cart-form options, product specs, category grids, and bounded /xmlsitemap.php product sitemaps.","domains":["*.mybigcommerce.com","www.bigcommerce.com","ascolour.com"],"universalEngine":true,"exampleUrls":["https://ascolour.com/xmlsitemap.php","https://ascolour.com/classic-organic-tee-5026g/"],"routes":[{"match":{"exactSegments":true,"pathEquals":["/xmlsitemap.php"]},"twin":{"id":"bigcommerce-store","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"commerceMode":"bigcommerce_sitemap"}}],"htmlRoutes":[{"id":"bigcommerce-store","match":{"exactSegments":false},"mode":"bigcommerce_html"}]},{"id":"bike-index","name":"Bike Index Registry","category":"public-records","description":"Public Bike Index REST API v3 adapter for bicycle registrations, stolen reports, and search queries with HTML detail fallback.","domains":["bikeindex.org","www.bikeindex.org"],"auth_mode":"pub","exampleUrls":["https://bikeindex.org/api/v3/search?page=1&per_page=5","https://bikeindex.org/api/v3/bikes/3550041","https://bikeindex.org/bikes/3550041"],"routes":[{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathEquals":["/api/v3/search","/api/v3/search/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["api","v3","bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}}],"htmlRoutes":[{"id":"bike-index","match":{"exactSegments":false},"mode":"bike_index_html"}]},{"id":"bikereg-usacycling","name":"BikeReg & USA Cycling Events & Results","category":"commerce-social","description":"Extracts BikeReg event search JSON (/api/search with ASP.NET /Date()/ timestamps), USA Cycling Sport80 Inertia data-page events and results, and unchallenged BikeReg HTML while rejecting Cloudflare challenges.","domains":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://www.bikereg.com/api/search?name=Hush%20Money","https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today","https://usacycling.sport80.com/pub/results"],"routes":[{"match":{"hosts":["bikereg.com","www.bikereg.com"],"exactSegments":true,"pathSegments":["api","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bikereg_json"}}],"htmlRoutes":[{"id":"bikereg-usacycling","match":{"hosts":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"exactSegments":false},"mode":"bikereg_usacycling_html"}]},{"id":"blackboard-wcm","name":"Blackboard WCM & SchoolMessenger Presence","category":"public-records","description":"Extracts Blackboard Web Community Manager (Schoolwires) and SchoolMessenger Presence K-12 district news, calendars, and staff directories while excluding Finalsite /fs/ sites.","domains":["www.bhusd.org","bhusd.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.bhusd.org/calendar","https://www.bhusd.org/media/filter/news"],"htmlRoutes":[{"id":"blackboard-wcm","match":{"excludeHosts":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"exactSegments":false},"mode":"blackboard_wcm_html"}]},{"id":"bloomreach-discovery","name":"Bloomreach Discovery On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Bloomreach Discovery core search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["core.dxpapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://core.dxpapi.com/api/v1/core/?account_id=6276&auth_key=jazzhands&domain_key=example_com&request_type=search&search_type=keyword&q=shoes&fl=pid,title,price,url&rows=10&start=0&url=https://www.example.com/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".dxpapi.com","param":"apiHost"},"pathEquals":["/api/v1/core","/api/v1/core/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bloomreach_discovery"}}],"htmlRoutes":[{"id":"bloomreach-discovery","match":{"exactSegments":false},"mode":"bloomreach_discovery_html"}]},{"id":"bls","name":"Bureau of Labor Statistics (BLS)","category":"public-records","description":"U.S. Bureau of Labor Statistics publicAPI v1 (pub) and v2 (key) time-series JSON adapter with bls.gov HTML fallback.","domains":["bls.gov","www.bls.gov","data.bls.gov","api.bls.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.bls.gov/cpi/","https://www.bls.gov/ooh/"],"routes":[{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v1/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"bls_json"}},{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v2/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"bls_json"}}],"htmlRoutes":[{"id":"bls","match":{"hosts":["bls.gov","www.bls.gov","data.bls.gov"],"exactSegments":false},"mode":"bls_html"}]},{"id":"bluesky-thread","name":"Bluesky ATProto Post Threads","category":"commerce-social","description":"Upgrades bsky.app post URLs to public.api.bsky.app ATProto getPostThread JSON with replies and embeds.","domains":["bsky.app","staging.bsky.app"],"exampleUrls":["https://bsky.app/profile/golang.org/post/3mzyghkrmjh2y"],"match":{"exactSegments":false,"pathSegments":["profile",{"param":"actor","charset":"url_seg"},"post",{"param":"rkey","charset":"pkg"}]},"twin":{"id":"bluesky-thread","fetchUrl":"https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=at%3A%2F%2F{actor}%2Fapp.bsky.feed.post%2F{rkey}&depth=6","kind":"json","accept":"application/json"},"extract":{"rootPath":"thread","requireFields":["post.record.text"],"vars":{"handle":{"paths":["post.author.handle"],"fallbackTemplate":"{actor}"},"displayName":{"paths":["post.author.displayName"],"fallbackTemplate":"{handle}"},"text":{"paths":["post.record.text"],"format":"plain_text","trim":true},"desc":{"paths":["post.record.text"],"trim":true,"sliceMax":220},"createdAt":{"paths":["post.record.createdAt"]},"createdAtShort":{"paths":["post.record.createdAt"],"replaceAll":{"from":"T","to":" "},"sliceMax":16},"postedPrefix":{"template":"{createdAtShort} UTC · ","whenVars":["createdAtShort"]},"likes":{"paths":["post.likeCount"],"default":"0"},"reposts":{"paths":["post.repostCount"],"default":"0"},"extUri":{"paths":["post.embed.external.uri"]},"extTitle":{"paths":["post.embed.external.title"],"fallbackTemplate":"{extUri}"},"extDesc":{"paths":["post.embed.external.description"]},"extDescSuffix":{"template":" — {extDesc}","whenVars":["extDesc"]},"linkedEmbed":{"template":"> **Linked**: [{extTitle}]({extUri}){extDescSuffix}","whenVars":["extUri"]}},"titleTemplate":"{displayName} (@{handle}) on Bluesky","descriptionVar":"desc","authorTemplate":"@{handle}","publishedTimeVar":"createdAt","bodyVar":"text","footerItalicTemplate":"Posted {postedPrefix}{likes} likes · {reposts} reposts","sections":[{"heading":"","textVar":"linkedEmbed"},{"heading":"","listArrayPath":"post.embed.images","limit":10,"requireItemVar":"imgAlt","itemVars":{"imgAlt":{"paths":["alt"],"trim":true}},"itemTemplate":"*Image alt*: {imgAlt}"},{"heading":"Replies","listArrayPath":"replies","limit":15,"requireItemVar":"replyText","itemVars":{"replyAuthor":{"paths":["post.author.handle"],"default":"user"},"replyText":{"paths":["post.record.text"],"trim":true,"replaceAll":{"from":"\n","to":" "}}},"itemTemplate":"**@{replyAuthor}**: {replyText}"}]}},{"id":"boarddocs","name":"Diligent BoardDocs Public Meeting Portals","category":"public-records","description":"Extracts public school board and municipal BoardDocs meeting lists, agendas, and HTML views while detecting CloudFront blocks.","domains":["go.boarddocs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://go.boarddocs.com/ca/sandi/Board.nsf/BD-GetMeetingsList","https://go.boarddocs.com/ca/sandi/Board.nsf/Public"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"state","charset":"alnum_dash","minLen":2,"maxLen":8},{"param":"org","charset":"alnum_dash","minLen":2,"maxLen":48},"Board.nsf",{"param":"action","allowValues":["BD-GetMeetingsList","BD-GetAgenda","BD-GetAgendaItem"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"boarddocs_text"}}],"htmlRoutes":[{"id":"boarddocs","match":{"exactSegments":false},"mode":"boarddocs_html"}]},{"id":"bosch-ebike-help","name":"Bosch eBike Systems Help Center","category":"developer","description":"Bosch eBike error codes from help.bosch-ebike.com via the keyless public /v2/error_code JSON endpoint the Help Center SPA renders (code / severity / component / description / remedy per system generation), with a bounded HTML fallback for SSR help articles that strips data:image blobs and dodo-service-include chrome and never presents the loading SPA shell as content. Never calls the robots-disallowed /api/* paths.","domains":["help.bosch-ebike.com"],"auth_mode":"pub","exampleUrls":["https://help.bosch-ebike.com/en/help-center/error/6A0004","https://help.bosch-ebike.com/help-center/error/6A0004"],"routes":[{"match":{"hosts":["help.bosch-ebike.com"],"anyOf":[{"pathSegments":[{"param":"lang","allowValues":["cs","da","de","en","es","fr","it","nl","no","pl","sv"]},"help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"optionalLeadingLocale":true,"defaults":{"lang":"en"},"pathSegments":["help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"defaults":{"lang":"en"},"pathSegments":["er",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]}]},"twin":{"fetchUrl":"https://help.bosch-ebike.com/v2/error_code?externalID={code}&languageId={lang}","kind":"json","accept":"application/json","maxBytes":524288},"extract":{"jsonMode":"bosch_ebike_error_code_json"}}],"htmlRoutes":[{"id":"bosch-ebike-help","match":{"exactSegments":false},"mode":"bosch_help_html"}]},{"id":"branded-tracking-pack","name":"Branded Tracking Pack (Narvar / Route / ParcelPanel)","category":"commerce-social","description":"Extracts hydrated Narvar, ParcelPanel, Route, Malomo, and Wonderment tracking pages while strictly rejecting empty CSR shells such as unhydrated Route pages.","domains":["*.narvar.com","tracking.route.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://tracking.narvar.com/asics/tracking"],"htmlRoutes":[{"id":"branded-tracking-pack","match":{"exactSegments":false},"mode":"branded_tracking_pack_html"}]},{"id":"brightcove","name":"Brightcove Playback & Player","category":"commerce-social","description":"Opt-in page-key adapter for Brightcove Playback API v1; defaults OFF and falls back cleanly to Brightcove player HTML extraction.","domains":["edge.api.brightcove.com","players.brightcove.net"],"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://edge.api.brightcove.com/playback/v1/accounts/1752604059001/videos/4093643993001","https://players.brightcove.net/1752604059001/default_default/index.html?videoId=4093643993001"],"routes":[{"match":{"hosts":["edge.api.brightcove.com"],"exactSegments":true,"pathSegments":["playback","v1","accounts",{"param":"accountId","charset":"digits","minLen":4,"maxLen":24},"videos",{"param":"videoId","charset":"url_seg","minLen":4,"maxLen":64}]},"twin":{"id":"brightcove","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"brightcove_playback_json"}}],"htmlRoutes":[{"id":"brightcove","match":{"exactSegments":false},"mode":"brightcove_html"}]},{"id":"brightspot","name":"Brightspot Publishing CMS","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Brightspot RichText article bodies across Brightspot-powered newsrooms.","domains":["www.latimes.com","news.byu.edu"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.latimes.com/travel/story/2023-10-19/los-angeles-neighborhood-city-guides"],"htmlRoutes":[{"id":"brightspot","match":{"exactSegments":false},"mode":"brightspot_html"}]},{"id":"bts-transtats","name":"BTS TranStats & Open Data","category":"public-records","description":"Bureau of Transportation Statistics (data.bts.gov Socrata views/resource/catalog JSON + www.transtats.bts.gov HTML tables with TranStats error page rejection).","domains":["data.bts.gov","transtats.bts.gov","www.transtats.bts.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.bts.gov/api/views/crem-w557.json","https://data.bts.gov/resource/crem-w557.json?$limit=2","https://www.transtats.bts.gov/Tables.asp?QO_VQ=EFD&QO_anzr=Nv4"],"routes":[{"match":{"hosts":["data.bts.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}},{"match":{"hosts":["data.bts.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://data.bts.gov/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}}],"htmlRoutes":[{"id":"bts-transtats","match":{"hosts":["transtats.bts.gov","www.transtats.bts.gov"],"exactSegments":false},"mode":"bts_transtats_html"}]},{"id":"bullhorn-career-portal","name":"Bullhorn Career Portal","category":"jobs","description":"Extracts open JobOrder listings from public-rest*.bullhornstaffing.com REST endpoints and hydrated Bullhorn Career Portal pages while rejecting errors.badCorpToken and empty results.","domains":["*.bullhornstaffing.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25"],"routes":[{"match":{"hostSubdomain":{"suffix":".bullhornstaffing.com","param":"cluster","reserved":["www","login","auth","static"]},"pathPrefix":"/rest-services/","pathContainsSegment":"JobOrder","exactSegments":false},"twin":{"id":"bullhorn-career-portal","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bullhorn_joborder_json"}}],"htmlRoutes":[{"id":"bullhorn-career-portal","mode":"bullhorn_portal_html","match":{"exactSegments":false}}]},{"id":"bumm-de","name":"Busch & Mueller (bumm.de)","category":"commerce-social","description":"Extracts TYPO3 JSON-LD Product metadata, table.attributes-table technical specs, and PDF mounting manual links from bumm.de product pages.","domains":["bumm.de","www.bumm.de"],"exampleUrls":["https://bumm.de/en/product-detail/iq-xl-highbeam/","https://bumm.de/de/produktdetail/briq-s/"],"htmlRoutes":[{"id":"bumm-de","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"reservedFirstSegment":["typo3"],"anyOf":[{"pathSegments":["product-detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["produktdetail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["products","detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"price":{"jsonLdPaths":["offers.price","offers.0.price"],"trim":true},"currency":{"jsonLdPaths":["offers.priceCurrency","offers.0.priceCurrency"],"trim":true},"body":{"cssHtmlToMd":["main",".product-detail","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"},{"label":"Price","template":"{price} {currency}","whenVar":"price"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"canvas-public-courses","name":"Canvas LMS Public Courses","category":"public-records","description":"Extracts public Instructure Canvas LMS courses via /api/v1/courses JSON and public syllabus HTML while classifying SAML SSO redirects as login_wall and 503 maintenance shells as non-active.","domains":["*.instructure.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://ocw.instructure.com/api/v1/courses/44012","https://lor.instructure.com/"],"routes":[{"match":{"pathPrefix":"/api/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"canvas_course_json"}}],"htmlRoutes":[{"id":"canvas-public-courses","match":{"exactSegments":false},"mode":"canvas_public_html"}]},{"id":"cdc-wonder-healthdata","name":"CDC WONDER & HealthData.gov","category":"research-health","description":"HealthData.gov and data.cdc.gov Socrata views/resource/catalog JSON adapter (coexisting cleanly with socrata.yaml) plus CDC WONDER HTML.","domains":["healthdata.gov","www.healthdata.gov","wonder.cdc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://healthdata.gov/api/views/j8mb-icvb.json","https://data.cdc.gov/api/views/9bhg-hcku.json","https://wonder.cdc.gov/ucd-icd10.html"],"routes":[{"match":{"hosts":["healthdata.gov","www.healthdata.gov","data.cdc.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}},{"match":{"hosts":["healthdata.gov","www.healthdata.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}}],"htmlRoutes":[{"id":"cdc-wonder-healthdata","match":{"hosts":["wonder.cdc.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false},"mode":"cdc_wonder_html"}]},{"id":"census","name":"U.S. Census Bureau Data API","category":"public-records","description":"U.S. Census Bureau Data API (/data/{year}/... keyed JSON matrix) and /data.json DCAT catalog adapter with data.census.gov fallback.","domains":["data.census.gov","api.census.gov","census.gov","www.census.gov"],"auth_mode":"key","exampleUrls":["https://api.census.gov/data/2023/acs/acs1?get=NAME,B01001_001E&for=state:06","https://api.census.gov/data/2023/acs/acs1.json","https://www.census.gov/topics/population.html"],"routes":[{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","excludeSegmentSuffixes":[".html",".htm"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":true,"pathEquals":["/data.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}}],"htmlRoutes":[{"id":"census","match":{"hosts":["data.census.gov","census.gov","www.census.gov"],"exactSegments":false},"mode":"census_html"}]},{"id":"cfpb-complaints","name":"CFPB Consumer Complaint Database","category":"finance","description":"Upgrades consumerfinance.gov complaint detail URLs to keyless CFPB Consumer Complaint Database JSON API v1 with HTML fallback.","domains":["www.consumerfinance.gov","consumerfinance.gov"],"auth_mode":"pub","exampleUrls":["https://www.consumerfinance.gov/data-research/consumer-complaints/search/detail/3204968","https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/3204968"],"routes":[{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"exactSegments":false,"pathSegments":["data-research","consumer-complaints","search","detail",{"param":"complaintId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/{complaintId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}},{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/search/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}}],"htmlRoutes":[{"id":"cfpb-complaints","match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/","exactSegments":false},"mode":"cfpb_complaints_html"}]},{"id":"chambermaster-growthzone","name":"ChamberMaster / GrowthZone Chamber Directories","category":"commerce-social","description":"Universal extractor for chamber-of-commerce member directories and event calendars hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages, and /events/ calendars): member name, address, phone, website, hours, categories, events, and description.","domains":["business.fortworthchamber.com","www.brownstownchamber.org","*.chambermaster.com","*.growthzoneapp.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://business.fortworthchamber.com/list/category/apartments-25","https://business.fortworthchamber.com/list/member/the-harden-at-public-market-50786","https://www.brownstownchamber.org/events/"],"htmlRoutes":[{"id":"chambermaster-growthzone","match":{"exactSegments":false},"mode":"chambermaster_html"}]},{"id":"changelog-roadmap-pack","name":"Changelog & Roadmap Pack","category":"developer","description":"Extracts changelog releases and roadmap items from Canny, Productboard Portal, Headway, Beamer (via /loadMoreNews companion), and LaunchNotes.","domains":["feedback.canny.io","portal.productboard.com","headwayapp.co","app.getbeamer.com","updates.launchnotes.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://feedback.canny.io/changelog","https://portal.productboard.com/pb/1-productboard-portal/tabs/7-under-consideration","https://app.getbeamer.com/beamer/changelog","https://updates.launchnotes.io/"],"routes":[{"match":{"pathEquals":["/changelog.json","/releases.json","/updates.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"changelog_roadmap_json"}}],"htmlRoutes":[{"id":"changelog-roadmap-pack","match":{"exactSegments":false},"mode":"changelog_roadmap_html"}]},{"id":"chronicling-america","name":"Chronicling America (Historic American Newspapers)","category":"public-records","description":"Library of Congress Chronicling America historic newspapers adapter rewriting legacy chroniclingamerica.loc.gov and collection URLs directly to www.loc.gov ?fo=json.","domains":["chroniclingamerica.loc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/collections/chronicling-america/?fo=json","https://chroniclingamerica.loc.gov/lccn/sn83030214.json","https://www.loc.gov/collections/chronicling-america/"],"routes":[{"match":{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false,"pathSegments":["lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["chroniclingamerica.loc.gov"],"anyOf":[{"pathEquals":["/","/newspapers.json"]},{"pathPrefix":"/search/"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"exactSegments":false,"pathSegments":["chroniclingamerica","lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"anyOf":[{"pathPrefix":"/collections/chronicling-america"},{"pathPrefix":"/chroniclingamerica"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}}],"htmlRoutes":[{"id":"chronicling-america","match":{"anyOf":[{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/collections/chronicling-america"},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/chroniclingamerica"}]},"mode":"chronicling_america_html"}]},{"id":"civicclerk","name":"CivicPlus CivicClerk Agenda Portals","category":"public-records","description":"Extracts municipal meeting events and agendas via CivicClerk OData v1 API with portal-to-API same-eTLD+1 twin upgrades.","domains":["*.civicclerk.com"],"auth_mode":"pub","exampleUrls":["https://mauicounty.api.civicclerk.com/v1/Events?$top=3","https://mauicounty.api.civicclerk.com/v1/Events/1023","https://mauicounty.portal.civicclerk.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".api.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathPrefix":"/v1/Events"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"exactSegments":false,"pathSegments":["event",{"param":"eventId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events/{eventId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathEquals":["/","/events"]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events?$top=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}}],"htmlRoutes":[{"id":"civicclerk","match":{"exactSegments":false},"mode":"civicclerk_html"}]},{"id":"civicplus","name":"CivicPlus CivicEngage Agenda & Document Portals","category":"public-records","description":"Universal extractor for CivicPlus CivicEngage /AgendaCenter, /DocumentCenter, and /CivicAlerts.aspx pages on city and county domains: meeting dates, agenda titles, agenda/HTML/packet/minutes links, public document directories, and municipal alerts. Fingerprint-gated; never touches robots.txt-disallowed /RSSFeed.aspx.","domains":["www.gulfshoresal.gov","www.ankenyiowa.gov","www.springfieldmo.gov","www.brownwoodtexas.gov","www.fayetteville-ar.gov"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.gulfshoresal.gov/AgendaCenter","https://www.brownwoodtexas.gov/DocumentCenter","https://www.springfieldmo.gov/CivicAlerts.aspx"],"htmlRoutes":[{"id":"civicplus","match":{"anyOf":[{"pathPrefix":"/AgendaCenter","exactSegments":false},{"pathPrefix":"/DocumentCenter","exactSegments":false},{"pathEquals":["/CivicAlerts.aspx"]}]},"mode":"civicplus_agenda_html"}]},{"id":"ckan","name":"CKAN Open Data Portals (Data.gov, UK, AU, Canada & City Portals)","category":"public-records","description":"Upgrades CKAN open-data portal dataset pages to /api/3/action/package_show JSON with organization, license, and downloadable resources.","domains":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org","data.gov.uk","www.data.gov.uk","data.gov.au","open.canada.ca"],"exampleUrls":["https://open.canada.ca/data/en/dataset/0032ce54-c5dd-4b66-99a0-320a7b5e99f2"],"routes":[{"match":{"hosts":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.uk","www.data.gov.uk"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.uk/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.au"],"exactSegments":true,"pathSegments":["data","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.au/data/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["open.canada.ca"],"exactSegments":true,"pathSegments":["data","en","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://open.canada.ca/data/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}}]},{"id":"classic-forum-pack","name":"Classic Forum Pack","category":"commerce-social","description":"Extracts structured posts, authors, timestamps, and quote blocks from Invision Community, vBulletin (vB3/4 & vB5), and phpBB thread HTML while rejecting HTTP 200 soft-404s.","domains":["gtaforums.com","forum.doom9.org","forum.image-line.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://gtaforums.com/topic/1007946-gtao-event-12th-nov-2026-as-the-trip-to-leonida-approaches-go-back-to-the-basics-w-bonuses-on-all-contact-missions-free-mode-challenges-stunt-race-series-more/","https://forum.doom9.org/showthread.php?t=187224","https://forum.image-line.com/viewtopic.php?t=343634"],"htmlRoutes":[{"id":"classic-forum-pack","match":{"exactSegments":false},"mode":"classic_forum_pack_html"}]},{"id":"clinicaltrials","name":"ClinicalTrials.gov Studies","category":"research-health","description":"Extracts clinical trial NCT ID, recruitment status, phase, conditions, interventions, sponsor, and summary from rendered clinicaltrials.gov/study/NCT... pages (strictly respecting robots.txt).","domains":["clinicaltrials.gov","www.clinicaltrials.gov"],"exampleUrls":["https://clinicaltrials.gov/study/NCT04280705"],"htmlRoutes":[{"match":{"scanSegment":{"param":"nctId","charset":"nct_id","transform":"upper"}},"mode":"dom","jsonLdTypes":["MedicalStudy","MedicalTrial","ClinicalTrial"],"embeddedBalancedKey":"protocolSection","requireVars":["title","hasAnyDetail"],"vars":{"title":{"embeddedPaths":["identificationModule.briefTitle"],"jsonLdPaths":["name"],"metaKeys":["og:title"]},"overallStatus":{"embeddedPaths":["statusModule.overallStatus"],"jsonLdPaths":["status"]},"phases":{"embeddedPaths":["designModule.phases"],"join":", "},"leadSponsor":{"embeddedPaths":["sponsorCollaboratorsModule.leadSponsor.name"],"jsonLdPaths":["sponsor.name"]},"conditions":{"embeddedPaths":["conditionsModule.conditions"],"jsonLdPaths":["healthCondition"],"limit":10,"join":", "},"summary":{"embeddedPaths":["descriptionModule.briefSummary"],"jsonLdPaths":["description"],"metaKeys":["description"]},"summaryShort":{"template":"{summary}","whenVars":["summary"],"sliceMax":260},"hasAnyDetail":{"template":"1","whenAnyVars":["overallStatus","phases","leadSponsor","conditions","summary"]}},"titleTemplate":"{title} ({nctId})","descriptionVar":"summaryShort","bullets":[{"label":"NCT Number","template":"`{nctId}`"},{"label":"Status","template":"{overallStatus}","whenVar":"overallStatus"},{"label":"Phase","template":"{phases}","whenVar":"phases"},{"label":"Lead Sponsor","template":"{leadSponsor}","whenVar":"leadSponsor"},{"label":"Conditions","template":"{conditions}","whenVar":"conditions"}],"sections":[{"heading":"Brief Summary","textVar":"summary"}],"appendCurrentMdDelta":{"baseVar":"summary","minExtraChars":120}}]},{"id":"cms-data","name":"CMS Data & Provider Data Catalog","category":"research-health","description":"Centers for Medicare & Medicaid Services (CMS) DKAN metastore, datastore query, and data-api v1 adapter enforcing 10s crawl-delay.","domains":["data.cms.gov"],"auth_mode":"pub","min_interval_ms":10000,"strict_robots":true,"exampleUrls":["https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/mj5m-pzi6","https://data.cms.gov/provider-data/api/1/datastore/query/mj5m-pzi6/0?limit=2","https://data.cms.gov/data-api/v1/dataset/9767cb68-8ea9-4f0b-8179-9431abc89f11/data?size=2"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/provider-data/api/"},{"pathPrefix":"/data-api/v1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cms_data_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-data","dataset",{"param":"datasetId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_data_json"}}],"htmlRoutes":[{"id":"cms-data","match":{"exactSegments":false},"mode":"cms_data_html"}]},{"id":"college-scorecard","name":"College Scorecard (U.S. Department of Education)","category":"public-records","description":"U.S. Department of Education College Scorecard API adapter scoped to api.data.gov/ed/collegescorecard with compact default fields.","domains":["collegescorecard.ed.gov","api.data.gov"],"auth_mode":"key","exampleUrls":["https://api.data.gov/ed/collegescorecard/v1/schools?id=166027","https://collegescorecard.ed.gov/school/?166027-Harvard-University"],"routes":[{"match":{"hosts":["api.data.gov"],"exactSegments":false,"pathPrefix":"/ed/collegescorecard"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"id,school.name,school.city,school.state,school.school_url,latest.student.size,latest.admissions.admission_rate.overall,latest.cost.tuition.in_state,latest.cost.tuition.out_of_state,latest.earnings.10_yrs_after_entry.median","per_page":"10"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"college_scorecard_json"}}],"htmlRoutes":[{"id":"college-scorecard","match":{"hosts":["collegescorecard.ed.gov"],"exactSegments":false},"mode":"college_scorecard_html"}]},{"id":"company-newsrooms","name":"Company Newsrooms (Prowly / Prezly / Cision)","category":"commerce-social","description":"Extracts corporate newsrooms and RSS/Atom press release feeds from Prowly, Prezly, and Cision PR portals.","domains":["news.cision.com","multimedia.cision.com","*.prowly.com","*.prezly.com","press.brusselsairlines.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://residence.prowly.com/rss","https://residence.prowly.com/","https://press.brusselsairlines.com/feed","https://news.cision.com/tietoevry"],"routes":[{"match":{"anyOf":[{"pathEquals":["/rss","/feed","/rss.xml","/feed.xml"]},{"pathSuffix":"/rss"},{"pathSuffix":"/feed"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"company_newsroom_rss_xml"}}],"htmlRoutes":[{"id":"company-newsrooms","match":{"exactSegments":false},"mode":"company_newsrooms_html"}]},{"id":"confluence-public","name":"Confluence Public Spaces","category":"developer","description":"Upgrades public Confluence /wiki/spaces/.../pages/{pageId} URLs to same-origin REST content API JSON twins with SSR HTML fallback; keyless public spaces only.","domains":["openmrs.atlassian.net","ecosystem.atlassian.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://openmrs.atlassian.net/wiki/spaces/docs/pages/25462110/Reporting+Module","https://openmrs.atlassian.net/wiki/spaces/docs/overview"],"routes":[{"match":{"pathPrefix":"/wiki/spaces/","exactSegments":false,"pathSegments":["wiki","spaces",{"param":"space","charset":"url_seg","minLen":1,"maxLen":80},"pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/wiki/rest/api/content/{pageId}?expand=body.view,space,version,ancestors","kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","rest","api","content",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"expand":"body.view,space,version,ancestors"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","api","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"body-format":"view"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}}],"htmlRoutes":[{"id":"confluence-public","match":{"exactSegments":false},"mode":"confluence_public_html"}]},{"id":"congress-gov","name":"Congress.gov Federal Legislation","category":"public-records","description":"Official api.congress.gov v3 API adapter for federal bills, amendments, nominations, committees, and members with HTML fallback for www.congress.gov.","domains":["congress.gov","www.congress.gov","api.congress.gov"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.congress.gov/v3/bill/118/hr/815?format=json","https://www.congress.gov/bill/118th-congress/house-bill/815"],"routes":[{"match":{"hosts":["api.congress.gov"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hr/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/s/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}}],"htmlRoutes":[{"id":"congress-gov","match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false},"mode":"congress_gov_html"}]},{"id":"constructor-io","name":"Constructor.io On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Constructor.io search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["ac.cnstrc.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://ac.cnstrc.com/search/shirt?key=key_kUTI6qLxMCLBIaN9&num_results_per_page=10"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]},{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["v1","search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"constructor_io"}}],"htmlRoutes":[{"id":"constructor-io","match":{"exactSegments":false},"mode":"constructor_io_html"}]},{"id":"copyright-office","name":"U.S. Copyright Office Public Records","category":"public-records","description":"U.S. Copyright Office Public Records System (publicrecords.copyright.gov) keyless JSON API adapter with HTML fallback.","domains":["publicrecords.copyright.gov","api.publicrecords.copyright.gov","cocatalog.loc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query=TX0009000001&page_number=1&records_per_page=5","https://publicrecords.copyright.gov/detailed-record/voyager_32941460"],"routes":[{"match":{"hosts":["api.publicrecords.copyright.gov"],"pathPrefix":"/search_service_external/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}},{"match":{"hosts":["publicrecords.copyright.gov"],"exactSegments":false,"pathSegments":["detailed-record",{"param":"recordId","charset":"alnum_dash","minLen":3,"maxLen":80}]},"twin":{"fetchUrl":"https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query={recordId}&page_number=1&records_per_page=5","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}}],"htmlRoutes":[{"id":"copyright-office","match":{"hosts":["publicrecords.copyright.gov","cocatalog.loc.gov"],"exactSegments":false},"mode":"copyright_office_html"}]},{"id":"cornell-lii","name":"Cornell Law LII (CFR & US Code)","category":"public-records","description":"Extracts clean statutory and CFR regulatory text from www.law.cornell.edu/cfr/* and /uscode/* while stripping navigation and donation sidebars.","domains":["www.law.cornell.edu","law.cornell.edu"],"exampleUrls":["https://www.law.cornell.edu/cfr/text/16/part-1512","https://www.law.cornell.edu/uscode/text/15/2051"],"htmlRoutes":[{"id":"cornell-lii","mode":"dom","match":{"anyOf":[{"exactSegments":false,"pathSegments":["cfr",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]},{"exactSegments":false,"pathSegments":["uscode",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]}]},"vars":{"title":{"cssText":["#page-title","main#content h1","#content h1","h1","title"],"trim":true},"body":{"cssHtmlToMd":["#content .tab-pane.active","main#content","#content","main","article"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"costco-sams-club","name":"Costco & Sam's Club","category":"commerce-social","description":"Extracts Costco and Sam's Club public product pages from schema.org Product JSON-LD and Sam's Club __NEXT_DATA__ hydration, strictly rejecting Kasada, Akamai, and empty SPA shells.","domains":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.costco.com/p/-/costco-shop-card/10024438","https://www.samsclub.com/ip/tnt-fireworks-revolution-rumble/20020700393"],"htmlRoutes":[{"id":"costco-sams-club","match":{"hosts":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"]},"mode":"costco_sams_club_html"}]},{"id":"county-assessor","name":"County Assessor & Property Records","category":"public-records","description":"Universal extractor for Vision Government Solutions (VGSI), Tyler Technologies iasWorld, and SchneiderCorp qPublic/Beacon county property assessor portals.","domains":["gis.vgsi.com","icare.fairfaxcounty.gov","property.muni.org","qpublic.schneidercorp.com","beacon.schneidercorp.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://gis.vgsi.com/madisonct/Parcel.aspx?pid=4","https://gis.vgsi.com/madisonct/Parcel.aspx?pid=10","https://gis.vgsi.com/newhavenct/Parcel.aspx?pid=1"],"htmlRoutes":[{"id":"county-assessor","match":{"exactSegments":false},"mode":"county_assessor_html"}]},{"id":"coursedog","name":"Coursedog University Catalogs","category":"public-records","description":"Extracts Coursedog public university catalogs from SSR __NUXT_DATA__ and rendered catalog DOM alongside public Coursedog JSON API routes.","domains":["*.coursedog.com","catalog.pratt.edu","catalogs.umn.edu"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://app.coursedog.com/api/v1/cm/umn/courses/search","https://catalog.pratt.edu/courses","https://catalogs.umn.edu/"],"routes":[{"match":{"hosts":["app.coursedog.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"coursedog_json"}}],"htmlRoutes":[{"id":"coursedog","match":{"exactSegments":false},"mode":"coursedog_html"}]},{"id":"courseleaf","name":"CourseLeaf University Course Catalogs","category":"public-records","description":"Universal extractor for CourseLeaf catalog pages (catalog..edu/courses// and program pages): course code, title, credits, description, requisites, and grading from div.courseblock. Fingerprint-gated; never calls /ribbit/, which CourseLeaf robots.txt files disallow.","domains":["catalog.unc.edu","catalog.colorado.edu","catalog.utexas.edu"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://catalog.unc.edu/courses/comp/","https://catalog.colorado.edu/courses-a-z/csci/","https://catalog.utexas.edu/courses/acc/"],"htmlRoutes":[{"id":"courseleaf","match":{"exactSegments":false},"mode":"courseleaf_courses_html"}]},{"id":"courtlistener","name":"CourtListener Federal & State Case Law","category":"public-records","description":"Official CourtListener REST API v4 adapter for opinions, clusters, RECAP dockets, and court metadata with HTML fallback.","domains":["courtlistener.com","www.courtlistener.com"],"auth_mode":"key","exampleUrls":["https://www.courtlistener.com/api/rest/v4/courts/scotus/","https://www.courtlistener.com/api/rest/v4/clusters/108713/","https://www.courtlistener.com/opinion/108713/marbury-v-madison/"],"routes":[{"match":{"pathPrefix":"/api/rest/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["opinion",{"param":"clusterId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/clusters/{clusterId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/dockets/{docketId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}}],"htmlRoutes":[{"id":"courtlistener","match":{"exactSegments":false},"mode":"courtlistener_html"}]},{"id":"coveo","name":"Coveo Cloud Search","category":"developer","description":"Opt-in page-key adapter for Coveo /rest/search/v2 endpoints; honors robots.txt Allow /rest/search and defaults OFF.","domains":["platform.cloud.coveo.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://platform.cloud.coveo.com/rest/search/v2?organizationId=mycoveocloudv2organizationg8tp8wu3&access_token=xx564559b1-0045-48e1-953c-3addd1ee4457&q=coveo&numberOfResults=10"],"routes":[{"match":{"hostSubdomain":{"suffix":".cloud.coveo.com","param":"regionHost"},"pathEquals":["/rest/search/v2"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"coveo"}}],"htmlRoutes":[{"id":"coveo","match":{"exactSegments":false},"mode":"coveo_html"}]},{"id":"cpsc-ebike-battery","name":"E-Bike Battery Safety Standards (UL 2849)","category":"public-records","description":"Extracts UL 2849 / UL 2271 e-bike electrical system and battery certification guidance from ul.com (complementing cpsc-recalls and ebike-state-laws).","domains":["ul.com","www.ul.com"],"auth_mode":"html","exampleUrls":["https://www.ul.com/services/e-bikes-certificationevaluating-and-testing-ul-2849","https://www.ul.com/industries/automotive-and-mobility/micromobility-device-evaluation-testing-and-certification","https://www.ul.com/resources/comparison-e-bikes-standards-en-15194-and-ul-2849"],"htmlRoutes":[{"id":"cpsc-ebike-battery","match":{"exactSegments":false},"mode":"cpsc_ebike_battery_html"}]},{"id":"cpsc-recalls","name":"CPSC Recalls & SaferProducts.gov","category":"public-records","description":"Formats bounded saferproducts.gov RecallNumber queries via JSON twin and extracts structured recall details and RecallNumber from cpsc.gov/Recalls pages (never fetching the unfiltered 25 MiB SaferProducts dump).","domains":["www.saferproducts.gov","saferproducts.gov","www.cpsc.gov","cpsc.gov"],"exampleUrls":["https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123","https://www.cpsc.gov/Recalls/2027/Cipton-Recalls-Bicycle-Helmets-Due-to-Risk-of-Serious-Injury-or-Death-from-Head-Injury-Violate-Mandatory-Standard-for-Bicycle-Helmets"],"routes":[{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["RecallNumber","recallnumber","recallNumber","RECALLNUMBER"],"param":"recallNum","charset":"cpsc_recall_num","minLen":2,"maxLen":24,"transform":"strip_dashes"}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber={recallNum}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"unwrapFirstArrayElement":true,"requireFields":["RecallNumber","Title"],"vars":{"title":{"paths":["Title"],"trim":true},"recallNumber":{"paths":["RecallNumber"],"trim":true},"recallDate":{"paths":["RecallDate"],"sliceMax":10},"lastPublishDate":{"paths":["LastPublishDate"],"sliceMax":10},"description":{"paths":["Description"],"trim":true},"descShort":{"paths":["Description"],"trim":true,"sliceMax":260},"consumerContact":{"paths":["ConsumerContact"],"trim":true},"recallUrl":{"paths":["URL"],"requireHttps":true},"hazards":{"paths":["Hazards"],"subField":"Name","join":"; ","limit":10},"remedies":{"paths":["Remedies"],"subField":"Name","join":"; ","limit":10},"manufacturers":{"paths":["Manufacturers"],"subField":"Name","join":", ","limit":10},"retailers":{"paths":["Retailers"],"subField":"Name","join":", ","limit":10},"injuries":{"paths":["Injuries"],"subField":"Name","join":"; ","limit":10}},"titleTemplate":"{title} (Recall #{recallNumber})","descriptionVar":"descShort","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"},{"label":"Last Published","template":"{lastPublishDate}","whenVar":"lastPublishDate"},{"label":"Hazards","template":"{hazards}","whenVar":"hazards"},{"label":"Remedies","template":"{remedies}","whenVar":"remedies"},{"label":"Injuries / Incidents","template":"{injuries}","whenVar":"injuries"},{"label":"Manufacturers","template":"{manufacturers}","whenVar":"manufacturers"},{"label":"Retailers","template":"{retailers}","whenVar":"retailers"},{"label":"Consumer Contact","template":"{consumerContact}","whenVar":"consumerContact"},{"label":"CPSC URL","template":"{recallUrl}","whenVar":"recallUrl"}],"sections":[{"heading":"Description","textVar":"description"},{"heading":"Products","arrayPath":"Products","limit":25,"columns":[{"header":"Name","paths":["Name"]},{"header":"Model","paths":["Model"],"code":true},{"header":"Units","paths":["NumberOfUnits"]},{"header":"Type","paths":["Type"]}]},{"heading":"Images","arrayPath":"Images","limit":10,"requireItemVar":"imgUrl","collectLinkVars":["imgUrl"],"itemVars":{"imgUrl":{"paths":["URL"],"requireHttps":true},"imgCap":{"paths":["Caption"],"default":"Recall product image"}},"itemTemplate":"[{imgCap}]({imgUrl})"}],"linksVars":["recallUrl"],"recordFields":{"recallNumber":"{recallNumber}","title":"{title}","recallDate":"{recallDate}","url":"{recallUrl}","hazards":"{hazards}","remedies":"{remedies}","manufacturers":"{manufacturers}"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["Recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]},{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]}]},"mode":"dom","vars":{"title":{"cssText":["h1"],"metaKeys":["og:title"],"trim":true},"recallNumber":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"(?i)Recall\\s*(?:Number|No\\.?|#)\\s*:?\\s*([0-9]{2}-?[0-9]{2,5})","group":1},"trim":true},"recallDate":{"metaKeys":["article:published_time"],"cssText":["time",".recall-detail__date"],"trim":true},"summary":{"metaKeys":["description","og:description"],"trim":true},"body":{"cssHtmlToMd":["main article",".recall-detail",".node--type-recall","main","article"],"format":"strip_leading_h1"}},"requireVars":["title","body"],"titleTemplate":"{title}","descriptionVar":"summary","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`","whenVar":"recallNumber"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"}],"bodyVar":"body"}]},{"id":"crates-io","name":"Rust Crates.io","category":"developer","description":"Upgrades crates.io pages to the v1 JSON API with Cargo install command, MSRV, Cargo features, downloads, and release history.","domains":["crates.io","www.crates.io"],"exampleUrls":["https://crates.io/crates/serde"],"match":{"exactSegments":false,"pathSegments":["crates",{"param":"crateName","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://crates.io/api/v1/crates/{crateName}","kind":"json","accept":"application/json"},"extract":{"requireFields":["crate.name"],"vars":{"name":{"paths":["crate.name"]},"ver":{"paths":["crate.max_stable_version","crate.max_version","versions.0.num"]},"desc":{"paths":["crate.description"],"trim":true},"license":{"paths":["versions.0.license"]},"msrv":{"paths":["versions.0.rust_version"]},"repo":{"paths":["crate.repository"]},"docs":{"paths":["crate.documentation"],"fallbackTemplate":"https://docs.rs/{name}"},"downloads":{"paths":["crate.downloads"],"format":"int_comma"},"features":{"paths":["versions.0.features"],"format":"object_keys","limit":14,"itemWrap":"`","join":", "},"categories":{"paths":["categories"],"subField":"category","join":", "},"keywords":{"paths":["keywords"],"subField":"keyword","join":", "}},"titleTemplate":"{name} v{ver} (Rust Crate)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Rust Crate)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Cargo","template":"`cargo add {name}`"},{"label":"Version","template":"`{ver}`","whenVar":"ver"},{"label":"MSRV","template":"Rust `{msrv}`","whenVar":"msrv"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"API Docs","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"},{"label":"Cargo Features","template":"{features}","whenVar":"features"},{"label":"Categories","template":"{categories}","whenVar":"categories"},{"label":"Keywords","template":"{keywords}","whenVar":"keywords"}],"sections":[{"heading":"Recent Releases","arrayPath":"versions","minItems":2,"limit":6,"columns":[{"header":"Version","paths":["num"],"code":true},{"header":"Published","paths":["created_at"],"sliceMax":10},{"header":"MSRV","paths":["rust_version"]}]}],"linksVars":["docs","repo"]}},{"id":"dailymed","name":"NLM DailyMed Drug Labels","category":"research-health","description":"National Library of Medicine DailyMed v2 REST API adapter for JSON catalog endpoints and HL7 SPL XML documents with drugInfo HTML fallback.","domains":["dailymed.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?pagesize=2","https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/0f3234b2-806e-4fab-99f5-b7d15177565b.xml","https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.json?drug_name=lipitor&pagesize=2"],"routes":[{"match":{"pathPrefix":"/dailymed/services/v2/spls/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}},{"match":{"pathEquals":["/dailymed/services/v2/spls.json","/dailymed/services/v2/drugnames.json","/dailymed/services/v2/drugclasses.json","/dailymed/services/v2/ndcs.json","/dailymed/services/v2/rxcuis.json","/dailymed/services/v2/uniis.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"dailymed_list_json"}},{"match":{"pathEquals":["/dailymed/drugInfo.cfm"],"queryParams":[{"name":"setid","param":"setid","charset":"alnum_dash","minLen":32,"maxLen":40}]},"twin":{"fetchUrl":"https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/{setid}.xml","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}}],"htmlRoutes":[{"id":"dailymed","match":{"pathPrefix":"/dailymed/","exactSegments":false},"mode":"dailymed_html"}]},{"id":"dealer-locator-pack","name":"Dealer Locator Pack (Bullseye, Storepoint, MetaLocator, Where2GetIt)","category":"commerce-social","description":"Opt-in page-key adapter pack for Bullseye, Storepoint, MetaLocator, and Where2GetIt locator APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["ws.bullseyelocations.com","www.bullseyelocations.com","api.storepoint.co","hosted.where2getit.com","api.metalocator.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.bullseyelocations.com/"],"routes":[{"match":{"anyOf":[{"hosts":["ws.bullseyelocations.com","www.bullseyelocations.com"],"pathEquals":["/RestSearch.svc/DoSearch2","/RestSearch.svc/DoSearch"]},{"hosts":["api.storepoint.co"],"pathPrefix":"/v1/"},{"hosts":["api.storepoint.co"],"pathPrefix":"/public/v1/"},{"hosts":["api.metalocator.com"],"pathPrefix":"/api/"},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"responsive","ajax"]},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"rest",{"param":"action","charset":"alnum_dash","minLen":1,"maxLen":64}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"dealer_locator_pack"}}],"htmlRoutes":[{"id":"dealer-locator-pack","match":{"exactSegments":false},"mode":"dealer_locator_pack_html"}]},{"id":"deps-dev","name":"Open Source Insights (deps.dev)","category":"developer","description":"Extracts package versions, default/latest stable release, licenses, advisories, and dependencies via the deps.dev v3 JSON API.","domains":["deps.dev","api.deps.dev"],"auth_mode":"pub","exampleUrls":["https://api.deps.dev/v3/systems/npm/packages/express"],"routes":[{"match":{"hosts":["api.deps.dev"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/npm/packages/{scope}%2F{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":[{"param":"system","allowValues":["npm","pypi","cargo","nuget","go","maven"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":200}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/{system}/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}}],"htmlRoutes":[{"id":"deps-dev","match":{"hosts":["deps.dev"],"exactSegments":false},"mode":"deps_dev_html"}]},{"id":"dev-to","name":"DEV Community Articles (dev.to)","category":"commerce-social","description":"Upgrades dev.to// articles to dev.to/api/articles raw body_markdown.","domains":["dev.to","www.dev.to"],"exampleUrls":["https://dev.to/ben/long-live-rails-3p21"],"match":{"exactSegments":true,"pathSegments":[{"param":"author","charset":"alnum_dash","reserved":["t","top","latest","pod","videos","tags","search","settings","enter","new","about","privacy","terms"]},{"param":"slug","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://dev.to/api/articles/{author}/{slug}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title","body_markdown"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"author":{"paths":["user.name"]},"publishedTime":{"paths":["published_timestamp"]},"body":{"paths":["body_markdown"],"stripFrontmatter":true,"trim":true}},"titleTemplate":"{title}","descriptionVar":"desc","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body"}},{"id":"dining-reservations","name":"Dining Reservations (OpenTable / Resy / ToastTab)","category":"commerce-social","description":"Extracts public restaurant venue metadata from OpenTable, Resy, and ToastTab Local pages via Restaurant/FoodEstablishment JSON-LD and hydrated DOM while rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.opentable.com/r/gary-danko-san-francisco","https://resy.com/cities/new-york-ny/venues/carbone","https://www.toasttab.com/local"],"htmlRoutes":[{"id":"dining-reservations","match":{"hosts":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"]},"mode":"dining_reservations_html"}]},{"id":"discourse-topic","name":"Discourse Forum Threads (Universal Engine)","category":"commerce-social","description":"Upgrades any Discourse forum thread (/t//) to its .json post_stream with Accepted Solution badges.","domains":["meta.discourse.org","community.home-assistant.io","users.rust-lang.org","discuss.python.org"],"universalEngine":true,"exampleUrls":["https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371"],"match":{"exactSegments":false,"pathSegments":["t",{"param":"slug","charset":"url_seg"},{"param":"topicId","charset":"digits"}]},"twin":{"id":"discourse-topic","fetchUrl":"https://{host}/t/{slug}/{topicId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"requireAnyFields":["post_stream.posts"],"vars":{"title":{"paths":["title"],"trim":true},"tags":{"paths":["tags"],"itemWrap":"`","join":", ","limit":20},"firstAuthor":{"paths":["post_stream.posts.0.username"]},"firstCreated":{"paths":["post_stream.posts.0.created_at"]},"acceptedPostNum":{"paths":["accepted_answer.post_number"]}},"titleTemplate":"{title}","authorVar":"firstAuthor","publishedTimeVar":"firstCreated","metaLine":[{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"","subsectionsArrayPath":"post_stream.posts","limit":20,"requireItemVar":"body","subsectionHeadingTemplate":"Original Post — {userWithDate}","subsectionAltWhenVar":"nonOpPostNum","subsectionAltHeadingTemplate":"{replyBadge} — {userWithDate}","subsectionBodyVar":"body","itemVars":{"postNum":{"paths":["post_number"],"fallbackTemplate":"{index1}"},"nonOpPostNum":{"paths":["post_number"],"excludeEquals":"1"},"isAcceptedFlag":{"paths":["accepted_answer"],"format":"bool_map","trueValue":"1","falseValue":""},"isAcceptedPostNum":{"paths":["post_number"],"equalsVar":"acceptedPostNum"},"replyBadge":{"template":"✅ Accepted Solution","whenAnyVars":["isAcceptedFlag","isAcceptedPostNum"],"fallbackTemplate":"Reply #{postNum}"},"username":{"paths":["username"]},"userLabel":{"template":"@{username}","whenVars":["username"],"default":"user"},"createdDate":{"paths":["created_at"],"sliceMax":10},"userWithDate":{"template":"{userLabel} ({createdDate})","whenVars":["createdDate"],"fallbackVar":"userLabel"},"body":{"paths":["cooked"],"format":"html_to_md"}}}]}},{"id":"dkan","name":"DKAN Open Data Portals (Metastore & Datastore)","category":"public-records","description":"Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters.","domains":["data.medicaid.gov","data.healthcare.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false","https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3","https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8","https://data.healthcare.gov/dataset/e4rr-zk4i"],"routes":[{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"pathPrefix":"/api/1/metastore/schemas/dataset/items"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}},{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false,"pathSegments":["api","1","datastore","query",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_datastore_json"}},{"match":{"hosts":["data.medicaid.gov","data.healthcare.gov"],"exactSegments":true,"pathSegments":["dataset",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/api/1/metastore/schemas/dataset/items/{datasetId}?show-reference-ids=false","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}}]},{"id":"docker-hub","name":"Docker Hub","category":"developer","description":"Upgrades hub.docker.com repository and /tags pages (both /_/ official library and /r//) to the keyless Docker Hub v2 JSON API.","domains":["hub.docker.com"],"exampleUrls":["https://hub.docker.com/_/alpine","https://hub.docker.com/_/alpine/tags","https://hub.docker.com/r/library/nginx","https://hub.docker.com/r/library/nginx/tags"],"routes":[{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {namespace}/{name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}}]},{"id":"docs-rs","name":"Rust docs.rs Crate Documentation","category":"developer","description":"Extracts Rust crate metadata, version, feature flags, doc coverage, and rustdoc API pages from docs.rs SSR HTML (avoiding /json zstd binary archives).","domains":["docs.rs"],"auth_mode":"pub","exampleUrls":["https://docs.rs/crate/serde/latest","https://docs.rs/serde/latest/serde/"],"htmlRoutes":[{"id":"docs-rs","match":{"hosts":["docs.rs"],"exactSegments":false},"mode":"docs_rs_html"}]},{"id":"doi-crossref","name":"DOI.org & Crossref Bibliographic Resolver","category":"research-health","description":"Upgrades doi.org/10./ links to api.crossref.org/works/ bibliographic JSON (authors, venue, citations, JATS abstract, and publisher URL).","domains":["doi.org","www.doi.org","dx.doi.org"],"exampleUrls":["https://doi.org/10.1038/s41586-021-03819-2"],"match":{"pathSegments":[{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"https://api.crossref.org/works/{doi}","kind":"json","accept":"application/json"},"extract":{"rootPath":"message","requireVars":["title"],"vars":{"title":{"paths":["title.0"],"fallbackTemplate":"{doi}","format":"strip_tags"},"authors":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":16},"authorsShort":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":4},"venue":{"paths":["container-title.0"]},"publisher":{"paths":["publisher"]},"venueFull":{"template":"{venue} ({publisher})","whenVars":["venue","publisher"],"fallbackVar":"venue"},"citations":{"paths":["is-referenced-by-count"],"format":"int_comma"},"pubUrl":{"paths":["URL"],"fallbackTemplate":"https://doi.org/{doi}","requireHttps":true},"pubDate":{"paths":["issued.date-parts.0"],"format":"date_parts"},"abstract":{"paths":["abstract"],"format":"jats_abstract"},"abstractShort":{"paths":["abstract"],"format":"jats_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"DOI","template":"`{doi}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Venue / Journal","template":"{venueFull}","whenVar":"venueFull"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Cited By (Crossref)","template":"{citations}","whenVar":"citations"},{"label":"Publisher Link","template":"{pubUrl}","whenVar":"pubUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["pubUrl"]}},{"id":"dpla","name":"Digital Public Library of America (DPLA)","category":"public-records","description":"Digital Public Library of America (DPLA) API v2 adapter with HTML fallback and 2000ms Crawl-delay politeness.","domains":["dp.la","www.dp.la","api.dp.la"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.dp.la/v2/items?q=kittens","https://dp.la/item/c3e08f4945e5b7d26386942a4a7f24a2"],"routes":[{"match":{"hosts":["api.dp.la"],"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}},{"match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"pathSegments":["item",{"param":"itemId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://api.dp.la/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}}],"htmlRoutes":[{"id":"dpla","match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"reservedFirstSegment":["search","qa"]},"mode":"dpla_html"}]},{"id":"ebay","name":"eBay Official Browse API","category":"commerce-social","description":"Extracts eBay item pricing, condition, MPN, strict GTIN, and search summaries via the official eBay Browse API.","domains":["ebay.com","www.ebay.com","api.ebay.com"],"auth_mode":"key","exampleUrls":["https://www.ebay.com/itm/133000133001","https://api.ebay.com/buy/browse/v1/item/v1|133000133001|0"],"routes":[{"match":{"hosts":["ebay.com","www.ebay.com"],"anyOf":[{"exactSegments":true,"pathSegments":["itm",{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]},{"exactSegments":false,"pathSegments":["itm",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]}]},"twin":{"fetchUrl":"https://api.ebay.com/buy/browse/v1/item/v1|{itemId}|0","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}},{"match":{"hosts":["api.ebay.com"],"pathPrefix":"/buy/browse/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}}]},{"id":"ebike-state-laws","name":"US E-Bike & Bicycle State Laws","category":"public-records","description":"Extracts US state electric bicycle and cycling statutes from PeopleForBikes Prismic/Next.js state tables and League of American Bicyclists state law profiles.","domains":["peopleforbikes.org","www.peopleforbikes.org","bikeleague.org","www.bikeleague.org"],"auth_mode":"html","exampleUrls":["https://www.peopleforbikes.org/electric-bikes/state-laws","https://www.peopleforbikes.org/electric-bikes/policies-and-laws","https://bikeleague.org/bike-laws/state-bike-laws/?bikelaw-by-state=colorado"],"htmlRoutes":[{"id":"ebike-state-laws","match":{"exactSegments":false},"mode":"ebike_state_laws_html"}]},{"id":"ecfr","name":"Electronic Code of Federal Regulations (eCFR)","category":"public-records","description":"Public eCFR Versioner and Search API adapter enforcing strict robots.txt politeness on structure, ancestry, versions, titles, and search endpoints.","domains":["ecfr.gov","www.ecfr.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.ecfr.gov/api/versioner/v1/titles.json","https://www.ecfr.gov/api/versioner/v1/ancestry/2025-01-01/title-16.json?part=1512","https://www.ecfr.gov/api/search/v1/results?query=bicycle&per_page=2"],"routes":[{"match":{"anyOf":[{"pathEquals":["/api/versioner/v1/titles.json","/api/search/v1/results","/api/admin/v1/agencies.json"]},{"pathPrefix":"/api/versioner/v1/structure/"},{"pathPrefix":"/api/versioner/v1/ancestry/"},{"pathPrefix":"/api/versioner/v1/versions/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}},{"match":{"exactSegments":false,"pathSegments":["current",{"param":"title","charset":"alnum_dash","stripPrefix":"title-","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://www.ecfr.gov/api/search/v1/results?query=title+{title}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}}]},{"id":"ecode360-general-code","name":"eCode360 Municipal Codes","category":"public-records","description":"HTML extractor for General Code eCode360 municipal ordinances, chapters, and statutory sections.","domains":["ecode360.com","www.ecode360.com"],"auth_mode":"html","exampleUrls":["https://ecode360.com/44475260","https://ecode360.com/OR5214"],"htmlRoutes":[{"id":"ecode360-general-code","match":{"exactSegments":false},"mode":"ecode360_html"}]},{"id":"ecwid","name":"Ecwid Storefronts & REST API v3","category":"commerce-social","description":"Opt-in page-key adapter for Ecwid /api/v3/{storeId}/products JSON twins with clean HTML/JSON-LD storefront fallback when disabled.","domains":["app.ecwid.com","www.ecwid.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://mdemo.company.site/Black-Tank-p109736045"],"routes":[{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}},{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products",{"param":"productId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}}],"htmlRoutes":[{"id":"ecwid","match":{"exactSegments":false},"mode":"ecwid_html"}]},{"id":"edge-cloud-changelogs","name":"Edge & Cloud Changelogs (Cloudflare, Vercel, Netlify)","category":"developer","description":"Extracts RSS 2.0 and Atom 1.0 release changelogs from Cloudflare Developers, Vercel, and Netlify with same-origin HTML-to-feed upgrades.","domains":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"auth_mode":"pub","exampleUrls":["https://developers.cloudflare.com/changelog/rss/d1.xml","https://vercel.com/atom","https://www.netlify.com/changelog/feed.xml"],"routes":[{"match":{"hosts":["developers.cloudflare.com"],"anyOf":[{"pathEquals":["/changelog/rss/index.xml","/changelog/index.xml"]},{"pathPrefix":"/changelog/rss/","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["developers.cloudflare.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://developers.cloudflare.com/changelog/rss/index.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/atom","/changelog/atom"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://vercel.com/atom","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog/feed.xml","/changelog/rss.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://www.netlify.com/changelog/feed.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}}],"htmlRoutes":[{"id":"edge-cloud-changelogs","match":{"hosts":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"pathPrefix":"/changelog","exactSegments":false},"mode":"edge_cloud_changelog_html"}]},{"id":"edlio-thrillshare","name":"Edlio & Apptegy Thrillshare","category":"public-records","description":"Extracts K-12 school district news feeds, events, and announcements from Edlio (/apps/news/, /apps/events/) and Apptegy Thrillshare portals.","domains":["*.edlio.com","*.apptegy.us","*.sites.thrillshare.com","www.worldcompassacademy.com","www.windsorc1.com","www.eupschools.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.worldcompassacademy.com/apps/news/","https://www.windsorc1.com/o/wcmo/news","https://www.eupschools.org/"],"htmlRoutes":[{"id":"edlio-thrillshare","match":{"exactSegments":false},"mode":"edlio_thrillshare_html"}]},{"id":"edu-job-boards","name":"Education Job Boards (Chronicle Jobs, HigherEdJobs, K12JobSpot, EdJoin)","category":"jobs","description":"Extracts academic and K-12 JobPosting JSON-LD, Chronicle RSS feeds, and job board HTML while rejecting Incapsula/Cloudflare WAF challenges and unhydrated CSR templates.","domains":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"auth_mode":"pub","exampleUrls":["https://jobs.chronicle.com/job/38070836/director-of-occupational-therapy/","https://jobs.chronicle.com/jobsrss/?countrycode=US","https://www.k12jobspot.com/en","https://www.edjoin.org/Home/Jobs?keywords=teacher&searchType=all"],"routes":[{"match":{"hosts":["jobs.chronicle.com"],"pathPrefix":"/jobsrss","exactSegments":false},"twin":{"id":"edu-job-boards","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Chronicle of Higher Education Jobs ({itemCount})","emptyText":"No open academic positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","category":"{dept}","postedAt":"{pubDate}","source":"chronicle"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Category","template":"{dept}"},{"header":"Published","template":"{pubDate}"}]}}}],"htmlRoutes":[{"id":"edu-job-boards","mode":"edu_job_boards_html","match":{"hosts":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"exactSegments":false}}]},{"id":"edx-coursera","name":"edX & Coursera Course Catalog","category":"public-records","description":"Extracts edX course catalog API JSON and Coursera / edX public course landing pages via Course JSON-LD and DOM metadata.","domains":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/","https://www.coursera.org/learn/machine-learning","https://www.edx.org/learn/python"],"routes":[{"match":{"hosts":["courses.edx.org"],"pathPrefix":"/api/courses/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"edx_course_json"}}],"htmlRoutes":[{"id":"edx-coursera","match":{"hosts":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"exactSegments":false},"mode":"edx_coursera_html"}]},{"id":"eia","name":"U.S. Energy Information Administration (EIA)","category":"public-records","description":"U.S. Energy Information Administration Open Data v2 JSON API adapter with eia.gov HTML table/prose fallback.","domains":["eia.gov","www.eia.gov","api.eia.gov"],"auth_mode":"key","exampleUrls":["https://api.eia.gov/v2/petroleum/pri/gnd/data/?frequency=weekly&data[0]=value&length=10","https://www.eia.gov/opendata/","https://www.eia.gov/petroleum/gasdiesel/"],"routes":[{"match":{"hosts":["api.eia.gov"],"exactSegments":false,"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"eia_json"}}],"htmlRoutes":[{"id":"eia","match":{"hosts":["eia.gov","www.eia.gov"],"exactSegments":false},"mode":"eia_html"}]},{"id":"electronics-retail-specs","name":"US Electronics Retailers Spec Extractor","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical specification tables for Newegg, B&H Photo Video, and Micro Center.","domains":["newegg.com","www.newegg.com","bhphotovideo.com","www.bhphotovideo.com","microcenter.com","www.microcenter.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.microcenter.com/product/678482/amd-ryzen-7-7800x3d-raphael-am5-42ghz-8-core-boxed-processor-heatsink-not-included","https://www.bhphotovideo.com/c/product/1791390-REG/sony_ilce7m4_b.html"],"htmlRoutes":[{"id":"electronics-retail-specs","match":{"exactSegments":false},"mode":"electronics_retail_specs_html"}]},{"id":"enterprise-ats-full","name":"Enterprise ATS Full (Eightfold, Phenom, Avature, Cornerstone)","category":"jobs","description":"Upgrades Eightfold /careers & /careers/job/ to robots-allowed /api/pcsx/search & /api/pcsx/position_details JSON twins, plus Phenom, Avature, and Cornerstone HTML extractors.","domains":["www.phenom.com","eightfold.ai","nvidia.eightfold.ai","paypal.eightfold.ai","bloomberg.avature.net","www.avature.net","www.csod.com","cornerstone.csod.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://nvidia.eightfold.ai/careers/job/893391708161","https://cornerstone.csod.com/ux/ats/careersite/2/home/requisition/11818?c=cornerstone","https://bloomberg.avature.net/careers/JobDetail/Senior-Software-Engineer-Electronic-Trading/46354"],"routes":[{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathPrefix":"/careers/job/","scanSegment":{"afterLiteral":"job","param":"jobId","charset":"slug","minLen":1,"maxLen":64}},"twin":{"fetchUrl":"https://{host}/api/pcsx/position_details?position_id={jobId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/position_details"],"queryParams":[{"name":"position_id","param":"jobId","charset":"slug","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"],"queryParams":[{"name":"domain","param":"domain","charset":"pkg","minLen":3,"maxLen":120}]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={domain}&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={tenant}.com&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}}],"htmlRoutes":[{"id":"enterprise-ats-full","mode":"enterprise_ats_full_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"anyOf":[{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":false},{"hosts":["careers.phenom.com","www.phenom.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".avature.net","param":"tenant","reserved":["www","login","auth"]},"exactSegments":false},{"hosts":["www.avature.net"],"exactSegments":false},{"hostSubdomain":{"suffix":".csod.com","param":"tenant","reserved":["www","login","auth"]},"pathPrefix":"/ux/ats/careersite/","exactSegments":false},{"hosts":["www.csod.com"],"pathPrefix":"/ux/ats/careersite/","exactSegments":false}]}}]},{"id":"enterprise-ats","name":"SmartRecruiters, Oracle HCM Cloud & Jobvite","category":"jobs","description":"Keyless Oracle HCM Cloud recruitingCEJobRequisitions REST twin + robots.txt-safe SmartRecruiters and Jobvite HTML posting extractors.","domains":["jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"exampleUrls":["https://jobs.smartrecruiters.com/Canva/6000000001554828-enterprise-security-manager-","https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1001/requisitions","https://jobs.jobvite.com/optimizely/job/oHG8efwt"],"routes":[{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}}]},"twin":{"id":"oracle-hcm-job","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitionDetails?onlyData=true&expand=all&finder=ById;Id=%22{reqId}%22,siteNumber={siteNumber}","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["Title"],"vars":{"jobTitle":{"paths":["Title"],"trim":true},"loc":{"paths":["PrimaryLocation"],"trim":true},"wp":{"paths":["WorkplaceType"],"trim":true},"posted":{"paths":["ExternalPostedStartDate"],"sliceMax":10,"trim":true},"extDesc":{"paths":["ExternalDescriptionStr"],"format":"html_to_md"},"extResp":{"paths":["ExternalResponsibilitiesStr"],"format":"html_to_md"},"extQual":{"paths":["ExternalQualificationsStr"],"format":"html_to_md"}},"titleTemplate":"{jobTitle}","publishedTimeVar":"posted","bullets":[{"label":"Requisition ID","template":"`{reqId}`"},{"label":"Primary Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Posted","template":"{posted}","whenVar":"posted"}],"bodyVar":"extDesc","sections":[{"heading":"Responsibilities","textVar":"extResp"},{"heading":"Qualifications","textVar":"extQual"}]}},{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions/","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}]}]},"twin":{"id":"oracle-hcm-board","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitions?onlyData=true&expand=requisitionList.secondaryLocations&finder=findReqs;siteNumber={siteNumber},limit=25","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","vars":{"reqCount":{"paths":["requisitionList"],"format":"array_len"},"total":{"paths":["TotalJobsCount"],"fallbackTemplate":"{reqCount}"}},"requireVars":["reqCount"],"titleTemplate":"Oracle HCM ({siteNumber}) — Open Requisitions ({total})","sections":[{"heading":"","arrayPath":"requisitionList","limit":50,"emptyText":"No open requisitions currently listed.","itemVars":{"id":{"paths":["Id"]},"rTitle":{"paths":["Title"],"trim":true,"default":"Requisition"},"rUrl":{"template":"https://{host}/hcmUI/CandidateExperience/en/sites/{siteNumber}/job/{id}"},"loc":{"paths":["PrimaryLocation"],"trim":true,"default":"-"},"wp":{"paths":["WorkplaceType"],"trim":true,"default":"-"},"posted":{"paths":["PostedDate"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["rUrl"],"columns":[{"header":"Requisition","template":"[{rTitle}]({rUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Posted","template":"{posted}"}]}]}}],"htmlRoutes":[{"id":"smartrecruiters","mode":"dom","match":{"hosts":["jobs.smartrecruiters.com"],"exactSegments":false,"minSegments":2,"pathSegments":[{"param":"org","charset":"pkg"}]},"jsonLdTypes":["JobPosting"],"vars":{"jobTitle":{"jsonLdPaths":["title"],"cssText":["h1.job-title"]},"company":{"jsonLdPaths":["hiringOrganization.name"],"fallbackTemplate":"{org}"},"body":{"cssHtmlToMd":["div[itemprop=\"description\"]","section#st-jobDescription"],"jsonLdPaths":["description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"body"},{"id":"jobvite","mode":"dom","match":{"hosts":["jobs.jobvite.com"],"exactSegments":false,"pathSegments":[{"param":"org","charset":"pkg"},"job",{"param":"jobId","charset":"pkg"}]},"vars":{"jobTitle":{"cssText":["h2.jv-header"]},"meta":{"cssText":["p.jv-job-detail-meta"]},"body":{"cssHtmlToMd":["div.jv-job-detail-description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {org}","metaItalicTemplate":"{meta}","metaItalicWhenVar":"meta","bodyVar":"body"}]},{"id":"epa-envirofacts-echo","name":"EPA Envirofacts & ECHO","category":"research-health","description":"US EPA Envirofacts REST API (data.epa.gov/efservice), ECHO REST services, and echo.epa.gov HTML facility fallback with strict robots.txt politeness.","domains":["data.epa.gov","enviro.epa.gov","echo.epa.gov","echodata.epa.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://data.epa.gov/efservice/tri_facility/state_abbr/DC/rows/0:2/JSON","https://echo.epa.gov/detailed-facility-report?fid=110000350174"],"routes":[{"match":{"hosts":["data.epa.gov"],"pathPrefix":"/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["enviro.epa.gov"],"pathPrefix":"/enviro/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["echodata.epa.gov"],"pathPrefix":"/echo/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}}],"htmlRoutes":[{"id":"epa-envirofacts-echo","match":{"hosts":["echo.epa.gov"],"exactSegments":false},"mode":"epa_echo_html"}]},{"id":"epa-fueleconomy","name":"EPA FuelEconomy.gov","category":"public-records","description":"U.S. DOE/EPA FuelEconomy.gov /ws/rest/ JSON API adapter for vehicle MPG, range, CO2, and make/model/year menus.","domains":["fueleconomy.gov","www.fueleconomy.gov"],"auth_mode":"pub","exampleUrls":["https://www.fueleconomy.gov/ws/rest/vehicle/41276","https://www.fueleconomy.gov/ws/rest/vehicle/menu/make?year=2024"],"routes":[{"match":{"pathPrefix":"/ws/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"fueleconomy_json"}}]},{"id":"etsy","name":"Etsy Open API v3","category":"commerce-social","description":"Extracts Etsy listing title, converted price, SKU, quantity, state, and shop search results via the official Etsy Open API v3.","domains":["etsy.com","www.etsy.com","openapi.etsy.com"],"auth_mode":"key","exampleUrls":["https://www.etsy.com/listing/134000134/walnut-desk-tray","https://openapi.etsy.com/v3/application/listings/134000134"],"routes":[{"match":{"hosts":["etsy.com","www.etsy.com"],"exactSegments":false,"pathSegments":["listing",{"param":"listingId","charset":"digits","minLen":5,"maxLen":16}]},"twin":{"fetchUrl":"https://openapi.etsy.com/v3/application/listings/{listingId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}},{"match":{"hosts":["openapi.etsy.com"],"pathPrefix":"/v3/application/listings"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}}]},{"id":"eur-lex","name":"EUR-Lex","category":"public-records","description":"Upgrades eur-lex.europa.eu/legal-content//TXT/?uri=* pages to the static /TXT/HTML/?uri=* twin while respecting robots.txt Crawl-delay and never touching disallowed /TXT/DOC/.","domains":["eur-lex.europa.eu"],"exampleUrls":["https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679"],"match":{"exactSegments":true,"pathSegments":["legal-content",{"param":"lang","charset":"alnum","minLen":2,"maxLen":3,"transform":"upper"},"TXT"],"queryParams":[{"name":"uri","param":"uri","charset":"safe_subpath","minLen":3,"maxLen":200}]},"twin":{"fetchUrl":"https://eur-lex.europa.eu/legal-content/{lang}/TXT/HTML/?uri={uri}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"EUR-Lex {uri} ({lang})"}},{"id":"eventbrite","name":"Eventbrite Events","category":"commerce-social","description":"Extracts Eventbrite event details via the official Eventbrite v3 API when configured, with Event/Festival JSON-LD and __NEXT_DATA__ HTML fallback.","domains":["eventbrite.com","www.eventbrite.com","www.eventbriteapi.com"],"auth_mode":"key","exampleUrls":["https://www.eventbrite.com/e/music-mimosa-festival-fall-edition-tickets-2004426596909","https://www.eventbriteapi.com/v3/events/2004426596909/"],"routes":[{"match":{"hosts":["www.eventbriteapi.com"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}},{"match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":true,"pathSegments":["e",{"param":"eventId","charset":"digits","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://www.eventbriteapi.com/v3/events/{eventId}/","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}}],"htmlRoutes":[{"id":"eventbrite","match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":false},"mode":"eventbrite_html"}]},{"id":"faa-registry","name":"FAA Aircraft Registry","category":"public-records","description":"FAA Civil Aviation Registry HTML extractor for N-Number lookups (/aircraftinquiry/Search/NNumberResult); note origin Akamai may return 403 to non-browser bot UAs.","domains":["registry.faa.gov"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=N101"],"htmlRoutes":[{"id":"faa-registry","match":{"hosts":["registry.faa.gov"],"pathPrefix":"/aircraftinquiry/search/","excludeSegmentSuffixes":[".asp"],"exactSegments":false},"mode":"faa_registry_html"}]},{"id":"fcc-id","name":"FCC ID Equipment Authorization","category":"public-records","description":"Extracts FCC ID grant metadata, technical frequency/power tables, and exhibit PDF links from fccid.io public HTML pages while respecting robots.txt disallows.","domains":["fccid.io","www.fccid.io"],"exampleUrls":["https://fccid.io/BCG-E3542A"],"htmlRoutes":[{"id":"fcc-id","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["ViewExhibitReport.cfm","subscribe.php","frequency","search","api"],"pathSegments":[{"param":"grantee","charset":"url_seg","minLen":2,"maxLen":64},{"param":"product","charset":"url_seg","optional":true,"minLen":1,"maxLen":120}]},"vars":{"title":{"cssText":["h1","title"],"metaKeys":["og:title"],"trim":true},"summary":{"cssText":["main p","article p"],"minLen":20,"sliceMax":400,"trim":true}},"requireVars":["title","summary"],"titleTemplate":"{title}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"FCC ID","template":"`{grantee}`"}],"appendCurrentMdDelta":{"minExtraChars":0}}]},{"id":"fdic-bankfind","name":"FDIC BankFind Suite","category":"finance","description":"Extracts insured institution profiles and failed bank lists directly from api.fdic.gov/banks/ (avoiding banks.data.fdic.gov/api 301 redirects) with 1 req/s politeness and SPA shell rejection.","domains":["banks.data.fdic.gov","api.fdic.gov","www.fdic.gov","fdic.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.fdic.gov/banks/institutions?filters=CERT:3511&limit=1","https://www.fdic.gov/resources/resolutions/bank-failures/","https://api.fdic.gov/banks/failures?limit=1"],"routes":[{"match":{"hosts":["api.fdic.gov"],"pathPrefix":"/banks/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["banks.data.fdic.gov"],"exactSegments":false,"pathSegments":["api",{"param":"endpoint","charset":"url_seg","minLen":2,"maxLen":64}]},"twin":{"fetchUrl":"https://api.fdic.gov/banks/{endpoint}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["www.fdic.gov","fdic.gov"],"pathPrefix":"/resources/resolutions/bank-failures"},"twin":{"fetchUrl":"https://api.fdic.gov/banks/failures?sort_by=FAILDATE&sort_order=DESC&limit=25","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}}],"htmlRoutes":[{"id":"fdic-bankfind","match":{"hosts":["banks.data.fdic.gov","www.fdic.gov","fdic.gov"],"exactSegments":false},"mode":"fdic_bankfind_html"}]},{"id":"fec","name":"FEC Campaign Finance","category":"public-records","description":"Upgrades fec.gov candidate and committee pages to official OpenFEC API v1 JSON summaries via api.data.gov key helper with HTML fallback.","domains":["www.fec.gov","fec.gov","api.open.fec.gov"],"auth_mode":"key","exampleUrls":["https://www.fec.gov/data/candidate/S8FL00216/","https://api.open.fec.gov/v1/candidate/S8FL00216/"],"routes":[{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","candidate",{"param":"candId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/candidate/{candId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","committee",{"param":"commId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/committee/{commId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["api.open.fec.gov"],"pathPrefix":"/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}}],"htmlRoutes":[{"id":"fec","match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false},"mode":"fec_html"}]},{"id":"federal-register","name":"Federal Register","category":"public-records","description":"Upgrades federalregister.gov/documents///
//* pages to the official /api/v1/documents/.json twin (strictly excluding disallowed /documents/current).","domains":["www.federalregister.gov","federalregister.gov"],"exampleUrls":["https://www.federalregister.gov/documents/2024/05/07/2024-09171/non-compete-clause-rule"],"match":{"exactSegments":false,"pathSegments":["documents",{"param":"yyyy","charset":"digits","minLen":4,"maxLen":4},{"param":"mm","charset":"digits","minLen":2,"maxLen":2},{"param":"dd","charset":"digits","minLen":2,"maxLen":2},{"param":"docNumber","charset":"alnum_dash","minLen":3,"maxLen":64}]},"twin":{"fetchUrl":"https://www.federalregister.gov/api/v1/documents/{docNumber}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title","document_number"],"vars":{"title":{"paths":["title"],"trim":true},"docNumber":{"paths":["document_number"]},"docType":{"paths":["type"]},"citation":{"paths":["citation"]},"pubDate":{"paths":["publication_date"]},"urlDate":{"template":"{yyyy}-{mm}-{dd}"},"pubDateMatchesUrl":{"paths":["publication_date"],"equalsVar":"urlDate"},"effectiveOn":{"paths":["effective_on"]},"dates":{"paths":["dates"],"trim":true},"action":{"paths":["action"],"trim":true},"agencies":{"paths":["agencies"],"subField":"name","join":", ","limit":12},"cfrRefs":{"paths":["cfr_references"],"subFieldsJoin":{"fields":["title","part"],"sep":" CFR Part ","fallbackField":"title"},"join":"; ","limit":20},"dockets":{"paths":["docket_ids"],"join":", ","limit":12},"abstract":{"paths":["abstract"],"trim":true},"abstractShort":{"paths":["abstract"],"trim":true,"sliceMax":260},"pdfUrl":{"paths":["pdf_url"],"requireHttps":true},"bodyHtmlUrl":{"paths":["body_html_url"],"requireHttps":true},"xmlUrl":{"paths":["full_text_xml_url"],"requireHttps":true},"htmlUrl":{"paths":["html_url"],"requireHttps":true}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"agencies","publishedTimeVar":"pubDate","bullets":[{"label":"Document Number","template":"`{docNumber}`"},{"label":"Type","template":"{docType}","whenVar":"docType"},{"label":"Citation","template":"{citation}","whenVar":"citation"},{"label":"Agencies","template":"{agencies}","whenVar":"agencies"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Warning","template":"Publication date {pubDate} does not match the URL date {urlDate}; the URL may point to a different document than its date suggests.","whenVar":"pubDate","unlessVar":"pubDateMatchesUrl"},{"label":"Effective On","template":"{effectiveOn}","whenVar":"effectiveOn"},{"label":"Dates","template":"{dates}","whenVar":"dates"},{"label":"Action","template":"{action}","whenVar":"action"},{"label":"CFR References","template":"{cfrRefs}","whenVar":"cfrRefs"},{"label":"Docket IDs","template":"{dockets}","whenVar":"dockets"},{"label":"PDF","template":"{pdfUrl}","whenVar":"pdfUrl"},{"label":"Body HTML","template":"{bodyHtmlUrl}","whenVar":"bodyHtmlUrl"},{"label":"Full Text XML","template":"{xmlUrl}","whenVar":"xmlUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"},{"heading":"CFR References","arrayPath":"cfr_references","limit":25,"columns":[{"header":"Title","paths":["title"]},{"header":"Part","paths":["part"]},{"header":"Chapter","paths":["chapter"]}]}],"linksVars":["pdfUrl","htmlUrl","bodyHtmlUrl","xmlUrl"]}},{"id":"fediverse-pack","name":"Fediverse Pack (Misskey, Kbin, Mbin)","category":"commerce-social","description":"Extracts Misskey notes via POST /api/notes/show JSON and Kbin/Mbin threads via ActivityPub JSON or SSR HTML while rejecting Anubis proof-of-work and /login gates.","domains":["kbin.earth","gehirneimer.de","misskey.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://misskey.io/notes/au4n1wud00cl0t3s","https://kbin.earth/m/news@lemmy.world/t/3423982/Iran-reportedly-used-Starlink-in-military-operations-against-U-S"],"routes":[{"match":{"exactSegments":true,"pathSegments":["notes",{"param":"noteId","charset":"alnum","minLen":8,"maxLen":24}]},"twin":{"fetchUrl":"https://{host}/api/notes/show","method":"POST","contentType":"application/json","requestBody":"{\"noteId\":\"{noteId}\"}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":true,"pathSegments":["api","notes","show"]},"twin":{"fetchUrl":"{requestUrl}","method":"POST","contentType":"application/json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":false,"pathSegments":["m",{"param":"mag","charset":"brew_id","minLen":1,"maxLen":120},"t",{"param":"threadId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/activity+json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}}],"htmlRoutes":[{"id":"fediverse-pack","match":{"exactSegments":false},"mode":"fediverse_pack_html"}]},{"id":"fema-openfema","name":"FEMA OpenFEMA API v2","category":"public-records","description":"FEMA OpenFEMA v2 JSON dataset API (DisasterDeclarationsSummaries and public datasets) honoring strict robots.txt 15s crawl-delay.","domains":["www.fema.gov","fema.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":15000,"exampleUrls":["https://www.fema.gov/api/open/v2/DisasterDeclarationsSummaries?%24top=2"],"routes":[{"match":{"hosts":["www.fema.gov","fema.gov"],"pathPrefix":"/api/open/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fema_openfema_json"}}]},{"id":"finalsite","name":"Finalsite K-12 & Independent Schools","category":"public-records","description":"Extracts Finalsite K-12 school and independent school calendar events, news announcements, and resource blocks from /fs/ and fsElement DOM.","domains":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":5000,"exampleUrls":["https://www.greenwichschools.org/calendar","https://www.choate.edu/"],"htmlRoutes":[{"id":"finalsite","match":{"exactSegments":false},"mode":"finalsite_html"}]},{"id":"finra-brokercheck","name":"FINRA BrokerCheck","category":"finance","description":"Extracts FINRA BrokerCheck individual broker and firm registration, employment, exam, and disclosure records via same-eTLD+1 api.brokercheck.finra.org.","domains":["brokercheck.finra.org","api.brokercheck.finra.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://brokercheck.finra.org/individual/summary/810315","https://brokercheck.finra.org/firm/summary/79","https://api.brokercheck.finra.org/search/firm/79"],"routes":[{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["individual","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/individual/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["firm","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/firm/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["api.brokercheck.finra.org"],"pathPrefix":"/search/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}}],"htmlRoutes":[{"id":"finra-brokercheck","match":{"hosts":["brokercheck.finra.org"]},"mode":"finra_brokercheck_html"}]},{"id":"fmcsa-safer","name":"FMCSA SAFER Carrier Registry","category":"public-records","description":"FMCSA QCMobile REST API (webKey) adapter for USDOT/MC carrier lookups with safer.fmcsa.dot.gov Company Snapshot HTML fallback.","domains":["safer.fmcsa.dot.gov","mobile.fmcsa.dot.gov"],"auth_mode":"key","exampleUrls":["https://mobile.fmcsa.dot.gov/qc/services/carriers/44110","https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=44110"],"routes":[{"match":{"hosts":["mobile.fmcsa.dot.gov"],"pathPrefix":"/qc/services/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}},{"match":{"hosts":["safer.fmcsa.dot.gov"],"pathEquals":["/query.asp"],"queryParams":[{"name":"query_param","param":"queryParam","allowValues":["USDOT"]},{"name":"query_string","param":"dotNumber","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mobile.fmcsa.dot.gov/qc/services/carriers/{dotNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}}],"htmlRoutes":[{"id":"fmcsa-safer","match":{"hosts":["safer.fmcsa.dot.gov"],"exactSegments":false},"mode":"fmcsa_safer_html"}]},{"id":"foursquare-places","name":"Foursquare Places API v3","category":"commerce-social","description":"Extracts place search results, venue details, and tips from the official Foursquare Places API v3 (api.foursquare.com).","domains":["api.foursquare.com"],"auth_mode":"key","exampleUrls":["https://api.foursquare.com/v3/places/search?query=coffee&near=Seattle","https://api.foursquare.com/v3/places/4b86a9f7f964a520d69331e3"],"routes":[{"match":{"hosts":["api.foursquare.com"],"anyOf":[{"pathEquals":["/v3/places/search"]},{"pathPrefix":"/v3/places/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"foursquare_places_json"}}]},{"id":"fpds-sam-contract-awards","name":"FPDS & SAM.gov Contract Awards","category":"public-records","description":"Extracts keyless FPDS Atom XML contract award feeds (FEEDNAME=PUBLIC) and key-authenticated api.sam.gov/contract-awards JSON without colliding with sam-gov.","domains":["fpds.gov","www.fpds.gov"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q=LAST_MOD_DATE:[2026/06/25,2026/06/26]","https://api.sam.gov/contract-awards/v1/search?limit=1"],"routes":[{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/FEEDS/ATOM"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"FEEDNAME":"PUBLIC"},"kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"q","param":"q","charset":"safe_subpath","minLen":1,"maxLen":240}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q={q}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"s","param":"s","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&s={s}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/contract-awards"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fpds_sam_awards_json"}}],"htmlRoutes":[{"id":"fpds-sam-contract-awards","match":{"hosts":["fpds.gov","www.fpds.gov"],"exactSegments":false},"mode":"fpds_sam_awards_html"}]},{"id":"fred","name":"FRED Economic Data","category":"finance","description":"Federal Reserve Economic Data (FRED) API v1 JSON observations/series adapter with stlouisfed.org HTML series fallback.","domains":["fred.stlouisfed.org","api.stlouisfed.org"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://fred.stlouisfed.org/series/GDP","https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json","https://api.stlouisfed.org/fred/series?series_id=GDP&file_type=json"],"routes":[{"match":{"hosts":["api.stlouisfed.org"],"exactSegments":false,"pathPrefix":"/fred/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"file_type":"json"},"kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}},{"match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.stlouisfed.org/fred/series/observations?series_id={seriesId}&file_type=json&limit=25&sort_order=desc","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}}],"htmlRoutes":[{"id":"fred","match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"mode":"fred_html"}]},{"id":"freshdesk-portal","name":"Freshdesk Support Portal","category":"developer","description":"Extracts Freshdesk support portal articles, folders, and categories from public knowledge base HTML.","domains":["support.freshdesk.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.freshdesk.com/support/solutions/articles/240170-setting-up-your-support-email-in-gmail-video-guide","https://support.freshdesk.com/support/solutions/folders/275395"],"htmlRoutes":[{"id":"freshdesk-portal","match":{"exactSegments":false},"mode":"freshdesk_portal_html"}]},{"id":"gannett-usatoday-network","name":"Gannett / USA TODAY Network","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Gannett story content across USA TODAY and Gannett regional newspapers while rejecting Access Restricted gates.","domains":["www.usatoday.com","usatoday.com","www.azcentral.com","www.freep.com","www.indystar.com","www.cincinnati.com","www.dispatch.com","www.detroitnews.com","www.jsonline.com","www.tennessean.com","www.courier-journal.com"],"auth_mode":"html","exampleUrls":["https://www.usatoday.com/"],"htmlRoutes":[{"id":"gannett-usatoday-network","match":{"exactSegments":false},"mode":"gannett_usatoday_html"}]},{"id":"gem-ats","name":"Gem Job Boards","category":"jobs","description":"Upgrades jobs.gem.com/ boards and job posts to the keyless api.gem.com/job_board/v0//job_posts/ JSON feed.","domains":["jobs.gem.com"],"exampleUrls":["https://jobs.gem.com/gem"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"postId","charset":"pkg"}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","findInArray":{"arrayPath":"posts","matchFields":["id","public_id"],"matchTemplate":"{postId}","endsWithField":"absolute_url","endsWithTemplate":"/{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name","location_type"],"trim":true},"depts":{"paths":["departments"],"subField":"name","join":", "},"bodyHtml":{"paths":["content"],"format":"html_to_md"},"bodyPlain":{"paths":["content_plain"],"format":"plain_text","trim":true},"body":{"template":"{bodyHtml}","whenVars":["bodyHtml"],"fallbackVar":"bodyPlain"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Department","template":"{depts}","whenVar":"depts"}],"bodyVar":"body","fallbackExtract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}]},{"id":"giant-liv-bikes","name":"Giant & Liv Bicycles Specs & Manuals","category":"commerce-social","description":"Extracts bike specifications, geometry GFM tables, and owner manual PDF links from Giant and Liv regional HTML pages while respecting Crawl-delay and never hitting /shop*, /comparison*, /account*, or /apiproxy/*.","domains":["www.giant-bicycles.com","*.giant-bicycles.com","giant-bicycles.com","www.liv-cycling.com","*.liv-cycling.com","liv-cycling.com"],"exampleUrls":["https://www.giant-bicycles.com/us/defy-advanced-pro-0","https://www.liv-cycling.com/us/avail-advanced-pro-0","https://www.giant-bicycles.com/us/manuals"],"htmlRoutes":[{"id":"giant-liv-bikes","mode":"giant_liv_html","match":{"exactSegments":false,"excludeSegmentSuffixes":[".xml",".json"],"anyOf":[{"exactSegments":false,"optionalLeadingLocale":true,"reservedFirstSegment":["shop","comparison","account","apiproxy","int","global"]},{"exactSegments":false,"pathSegments":[{"param":"locale3","allowValues":["int","global"]},{"param":"seg1","charset":"url_seg","minLen":1,"maxLen":160,"reserved":["shop","comparison","account","apiproxy"]}]}]}}]},{"id":"github-gist","name":"GitHub Gists","category":"developer","description":"Extracts multi-file GitHub Gist code blocks with fenced language tags and rendered Markdown.","domains":["gist.github.com"],"exampleUrls":["https://gist.github.com/octocat/6cad326836d38bd3a7ae"],"htmlRoutes":[{"match":{"minSegments":2},"mode":"gist_files"}]},{"id":"gitlab-forgejo","name":"GitLab, Codeberg & Forgejo Twins","category":"developer","description":"Upgrades GitLab repo roots and file blobs via robots.txt-allowed ?format=json&viewer=simple endpoints, and extracts clean README content from Codeberg/Gitea SSR repo pages.","domains":["gitlab.com","gitlab.*","codeberg.org","gitea.com"],"exampleUrls":["https://gitlab.com/gitlab-org/cli","https://gitlab.com/inkscape/inkscape/-/blob/master/CMakeLists.txt","https://codeberg.org/forgejo/forgejo"],"routes":[{"match":{"hosts":["gitlab.com","gitlab.*"],"splitOnSegment":{"delimiter":"-","leftParam":"nsProj","leftMinSegs":2,"afterLiteral":"blob","rightParam":"rawTail","tailParam":"filePath"}},"twin":{"id":"gitlab-blob-json","fetchUrl":"https://{host}/{nsProj}/-/blob/{rawTail}?format=json&viewer=simple","rawPathParams":["nsProj","rawTail"],"kind":"json","accept":"application/json"},"extract":{"vars":{"plain":{"paths":["html"],"format":"gitlab_blob_html"}},"requireVars":["plain"],"titleTemplate":"{nsProj}/{filePath}","codeByPath":{"sourceVar":"plain","pathParam":"filePath","rawIfMarkdown":true}}},{"match":{"hosts":["gitlab.com","gitlab.*"],"minSegments":2,"maxSegments":5,"allSegmentsCharset":"pkg","reservedFirstSegment":["explore","groups","users","dashboard","help","topics","orgs","admin","search","abuse_reports","oauth","snippets","-"],"excludeSegmentSuffixes":[".git",".atom"]},"twin":{"id":"gitlab-readme-json","fetchUrl":"https://{host}/{joinedPath}/-/blob/HEAD/README.md?format=json&viewer=simple","rawPathParams":["joinedPath"],"kind":"json","accept":"application/json"},"extract":{"vars":{"readme":{"paths":["html"],"format":"gitlab_blob_html","trim":true}},"requireVars":["readme"],"titleTemplate":"{joinedPath}","bodyVar":"readme"}}],"htmlRoutes":[{"match":{"hosts":["codeberg.org","gitea.com"],"exactSegments":true,"pathSegments":[{"param":"owner","charset":"pkg"},{"param":"repo","charset":"pkg"}]},"mode":"dom","vars":{"desc":{"metaKeys":["og:description","description"]},"readme":{"cssHtmlToMd":["div.markup"],"minLen":40}},"requireVars":["readme"],"titleTemplate":"{owner}/{repo}","descriptionVar":"desc","blockquoteTemplate":"> **{owner}/{repo}** — {desc}","blockquoteWhenVar":"desc","bodyVar":"readme","preserveBodyLinksFromVar":"readme"}]},{"id":"google-my-maps-kml","name":"Google My Maps KML","category":"commerce-social","description":"Upgrades public Google My Maps /maps/d/ viewer, embed, and KML links to bounded KML placemark extraction with validated coordinates.","domains":["google.com","www.google.com","maps.google.com"],"auth_mode":"pub","exampleUrls":["https://www.google.com/maps/d/viewer?mid=1Mdlz2iXu_iZCPhUhzKvT2B2j-6E"],"routes":[{"match":{"anyOf":[{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d",{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]},{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d","u",{"param":"userIdx","charset":"digits","minLen":1,"maxLen":4},{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]}]},"twin":{"fetchUrl":"https://www.google.com/maps/d/kml?mid={mid}&forcekml=1","kind":"text","accept":"application/xml"},"extract":{"textMode":"kml_placemarks"}}]},{"id":"google-places","name":"Google Places API (New)","category":"commerce-social","description":"Extracts place details and text/nearby search results from the official Google Places API (New) with required X-Goog-Api-Key and X-Goog-FieldMask headers.","domains":["developers.google.com"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://places.googleapis.com/v1/places/ChIJj61dQgK6j4AR4GeTYWZsKWw","https://places.googleapis.com/v1/places:searchText?textQuery=coffee"],"routes":[{"match":{"hosts":["places.googleapis.com"],"anyOf":[{"pathEquals":["/v1/places:searchText","/v1/places:searchNearby"]}],"queryParams":[{"name":"textQuery","param":"textQuery","charset":"url_seg","maxLen":120,"optional":true,"default":"coffee"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"textQuery\":\"{textQuery}\"}","headers":{"X-Goog-FieldMask":"places.id,places.displayName,places.formattedAddress,places.rating,places.userRatingCount,places.websiteUri,places.nationalPhoneNumber,places.googleMapsUri,places.primaryType,places.businessStatus,places.priceLevel"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}},{"match":{"hosts":["places.googleapis.com"],"pathPrefix":"/v1/places/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"X-Goog-FieldMask":"id,displayName,formattedAddress,rating,userRatingCount,websiteUri,nationalPhoneNumber,googleMapsUri,primaryType,businessStatus,priceLevel,regularOpeningHours"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}}]},{"id":"google-play","name":"Google Play Store","category":"developer","description":"Extracts structured Google Play app metadata (package ID, developer, rating, downloads/reviews, category, price, and full description).","domains":["play.google.com"],"exampleUrls":["https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone"],"htmlRoutes":[{"match":{"pathPrefix":"/store/apps/details","queryParams":[{"name":"id","param":"pkgId","charset":"pkg","optional":true}]},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*-\\s*Apps on Google Play$"},"developer":{"jsonLdPaths":["author.name"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.ratingCount","aggregateRating.reviewCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} reviews)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"contentRating":{"jsonLdPaths":["contentRating"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Package ID","template":"`{pkgId}`","whenVar":"pkgId"},{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Content Rating","template":"{contentRating}","whenVar":"contentRating"}],"sections":[{"heading":"About This App","textVar":"desc"}]}]},{"id":"google-shopping-feed","name":"Google Shopping Merchant Center XML/Atom Feed","category":"commerce-social","description":"Universal XML/Atom parser for Google Merchant Center RSS 2.0 and Atom 1.0 product feeds with strict GTIN validation and compact records.","domains":["btrsports.co.uk"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://raw.githubusercontent.com/web3at50/btr-feed/main/affiliate-feed.xml"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/google-merchant.xml","/google-shopping.xml","/merchant-feed.xml","/product-feed.xml","/shopping-feed.xml"]},{"pathPrefix":"/feeds/","pathSuffix":".xml"},{"pathPrefix":"/feeds/","pathSuffix":".atom"},{"pathPrefix":"/feeds/","pathSuffix":".rss"},{"pathContainsSegment":"google-merchant","pathSuffix":".xml"},{"pathContainsSegment":"google-shopping","pathSuffix":".xml"},{"hosts":["raw.githubusercontent.com"],"pathEquals":["/web3at50/btr-feed/main/affiliate-feed.xml"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"google_shopping_feed_xml"}}]},{"id":"gorgias-reamaze","name":"Gorgias & Re:amaze Help Centers","category":"commerce-social","description":"Extracts help-center articles, topic indexes, and Q&A content from Gorgias (__NEXT_DATA__) and Re:amaze knowledge base portals.","domains":["*.gorgias.help","*.reamaze.com","support.burga.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.burga.com/en-US/articles/contact-us-24868","https://storypod.reamaze.com/kb/all-about-storypod/firmware-update"],"htmlRoutes":[{"id":"gorgias-reamaze","match":{"exactSegments":false},"mode":"gorgias_reamaze_html"}]},{"id":"granicus-govdelivery","name":"Granicus GovDelivery Public Bulletins","category":"public-records","description":"Extracts public government bulletins and optional RSS feeds from Granicus GovDelivery without rewriting HTML bulletins to .rss.","domains":["content.govdelivery.com","public.govdelivery.com"],"auth_mode":"pub","exampleUrls":["https://content.govdelivery.com/accounts/ILEVANSTON/bulletins.rss","https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149"],"routes":[{"match":{"pathSuffix":".rss","pathPrefix":"/accounts/"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Bulletin"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"granicus-govdelivery"},"columns":[{"header":"Bulletin","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"granicus-govdelivery","match":{"exactSegments":false},"mode":"govdelivery_html"}]},{"id":"grants-gov","name":"Grants.gov Federal Grant Opportunities","category":"public-records","description":"Upgrades grants.gov opportunity pages to official keyless POST api.grants.gov/v1/api/fetchOpportunity JSON with HTML fallback.","domains":["grants.gov","www.grants.gov","api.grants.gov"],"auth_mode":"pub","exampleUrls":["https://www.grants.gov/search-results-detail/357601","https://api.grants.gov/v1/api/fetchOpportunity"],"routes":[{"match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false,"pathSegments":["search-results-detail",{"param":"oppId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://api.grants.gov/v1/api/fetchOpportunity","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"opportunityId\":{oppId}}","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}},{"match":{"hosts":["api.grants.gov"],"pathPrefix":"/v1/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}}],"htmlRoutes":[{"id":"grants-gov","match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false},"mode":"grants_gov_html"}]},{"id":"greenhouse-lever-boards","name":"Greenhouse & Lever Whole-Board + EU APIs","category":"jobs","description":"Upgrades Greenhouse (US & EU) and Lever (US & EU) board root URLs to their official JSON posting feeds with truncation metadata.","domains":["boards.greenhouse.io","job-boards.greenhouse.io","eu-boards.greenhouse.io","job-boards.eu.greenhouse.io","jobs.lever.co","jobs.eu.lever.co"],"exampleUrls":["https://job-boards.greenhouse.io/anthropic","https://job-boards.greenhouse.io/celonis","https://jobs.lever.co/spotify"],"routes":[{"match":{"hosts":["boards.greenhouse.io","job-boards.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-board","fetchUrl":"https://boards-api.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["eu-boards.greenhouse.io","job-boards.eu.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-eu-board","fetchUrl":"https://boards-api.eu.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["jobs.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-board","fetchUrl":"https://api.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["jobs.eu.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-eu-board","fetchUrl":"https://api.eu.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}}]},{"id":"hackernews","name":"Hacker News Stories & Who is Hiring (Algolia API)","category":"commerce-social","description":"Upgrades news.ycombinator.com/item?id= threads (including monthly Who is Hiring threads) to hn.algolia.com/api/v1/items/ JSON.","domains":["news.ycombinator.com"],"exampleUrls":["https://news.ycombinator.com/item?id=41000000"],"match":{"exactSegments":true,"pathSegments":["item"],"queryParams":[{"name":"id","param":"itemId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"id":"hackernews","fetchUrl":"https://hn.algolia.com/api/v1/items/{itemId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["id"],"vars":{"title":{"paths":["title"],"trim":true,"fallbackTemplate":"HN Comment #{itemId}"},"author":{"paths":["author"]},"points":{"paths":["points"]},"createdAt":{"paths":["created_at"]},"postedDate":{"paths":["created_at"],"sliceMax":10},"storyUrl":{"paths":["url"]},"storyText":{"paths":["text"],"format":"html_to_md"}},"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"createdAt","metaLine":[{"label":"Points","template":"{points}","whenVar":"points"},{"label":"By","template":"{author}","whenVar":"author"},{"label":"Posted","template":"{postedDate}","whenVar":"postedDate"},{"label":"URL","template":"{storyUrl}","whenVar":"storyUrl"}],"bodyVar":"storyText","linksVars":["storyUrl"],"sections":[{"heading":"Comments","headingTemplate":"Comments ({topCount} top-level)","treeComments":{"childrenPath":"children","authorPath":"author","htmlTextPath":"text","maxDepth":2,"maxItems":60}}]}},{"id":"hardware-farm-specs","name":"Hardware & Farm Supply Spec Extractor","category":"commerce-social","description":"Extracts Product JSON-LD, specification tables, and Apollo SimpleProduct metadata for Tractor Supply and Harbor Freight.","domains":["tractorsupply.com","www.tractorsupply.com","harborfreight.com","www.harborfreight.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.harborfreight.com/20v-brushless-cordless-12-in-drilldriver-tool-only-59420.html"],"htmlRoutes":[{"id":"hardware-farm-specs","match":{"exactSegments":false},"mode":"hardware_farm_specs_html"}]},{"id":"hathitrust","name":"HathiTrust Digital Library","category":"public-records","description":"HathiTrust Bibliographic API (catalog.hathitrust.org/api/volumes) adapter for OCLC, ISBN, LCCN, ISSN, and Record IDs.","domains":["catalog.hathitrust.org","babel.hathitrust.org"],"auth_mode":"pub","min_interval_ms":1000,"strict_robots":false,"exampleUrls":["https://catalog.hathitrust.org/api/volumes/brief/oclc/424023.json","https://catalog.hathitrust.org/api/volumes/brief/isbn/9780030110405.json","https://catalog.hathitrust.org/Record/000578050"],"routes":[{"match":{"hosts":["catalog.hathitrust.org"],"pathPrefix":"/api/volumes/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}},{"match":{"hosts":["catalog.hathitrust.org"],"exactSegments":false,"pathSegments":["Record",{"param":"recordId","charset":"digits","minLen":5,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.hathitrust.org/api/volumes/brief/recordnumber/{recordId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}}]},{"id":"hcl-websphere-commerce","name":"HCL / WebSphere Commerce (WCS)","category":"commerce-social","description":"Extracts HCL/IBM WebSphere Commerce /wcs/resources/store//productview REST JSON and storefront HTML/companion twins.","domains":["www.childrensplace.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.childrensplace.com/us/p/Girls-Basic-Super-Skinny-Jeans-3044219-33C4"],"routes":[{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byPartNumber",{"param":"partNumber","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}},{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byId",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}}],"htmlRoutes":[{"id":"hcl-websphere-commerce","match":{"exactSegments":false},"mode":"hcl_wcs_html"}]},{"id":"headless-cms-delivery","name":"Headless CMS Delivery","category":"developer","description":"Opt-in single-page doc delivery twin for Sanity, Storyblok, Prismic, Contentful, Builder.io, and Strapi (gated by allowPageKeyTwins; falls back to HTML/JSON-LD when OFF).","domains":["3do82whm.apicdn.sanity.io","www.sanity.io","api.storyblok.com","www.storyblok.com","nextjs-starter-prismic-blog.cdn.prismic.io","prismic.io","cdn.contentful.com","cdn.builder.io","www.builder.io","strapi.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://3do82whm.apicdn.sanity.io/v2021-10-21/data/query/next?query=*%5Bslug.current%20%3D%3D%20%22content-lake%22%5D%5B0%5D%7B_id%2C_type%2Ctitle%2Cslug%7D","https://nextjs-starter-prismic-blog.cdn.prismic.io/api/v2/documents/search?ref=ZuGtnBkAAEcAW15g&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22YlcmoRMAACMAI0gs%22%29+%5D%5D","https://cdn.builder.io/api/v3/content/docs/9f6f5d07-9c2e-4b44-983a-3f065151247f?apiKey=YJIGb4i01jvw0SRdL5Bt","https://www.sanity.io/docs/content-lake"],"routes":[{"match":{"hosts":["cdn.contentful.com"],"exactSegments":true,"pathSegments":["spaces",{"param":"spaceId","charset":"url_seg","minLen":1,"maxLen":64},"environments",{"param":"envId","charset":"url_seg","minLen":1,"maxLen":64},"entries",{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["api.storyblok.com","api-us.storyblok.com"],"exactSegments":false,"pathSegments":["v2","cdn","stories",{"param":"slug","charset":"safe_subpath","minLen":1,"maxLen":200,"greedy":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["cdn.builder.io"],"exactSegments":true,"pathSegments":["api","v3","content",{"param":"model","charset":"url_seg","minLen":1,"maxLen":80},{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".apicdn.sanity.io","param":"projectId"},"exactSegments":true,"pathSegments":[{"param":"version","charset":"url_seg","minLen":4,"maxLen":24},"data","query",{"param":"dataset","charset":"url_seg","minLen":1,"maxLen":64}],"queryParams":[{"name":"query","param":"groqQuery","charset":"sanity_single_doc_query","minLen":5,"maxLen":400}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".cdn.prismic.io","param":"repo"},"exactSegments":true,"pathSegments":["api","v2","documents","search"],"queryParams":[{"name":"q","param":"prismicQ","charset":"prismic_single_doc_query","minLen":5,"maxLen":300}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json",".xml",".csv"],"pathSegments":["api",{"param":"contentType","charset":"strapi_content_type","minLen":1,"maxLen":80,"reserved":["auth","users","upload","graphql","all","list","search","export","v0","v1","v2","v3","v4","v5","v6","v7","v8","v9"]},{"param":"docId","charset":"strapi_doc_id","minLen":1,"maxLen":128,"reserved":["all","list","search","export","graphql","graphql.json","users"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}}],"htmlRoutes":[{"id":"headless-cms-delivery","match":{"exactSegments":false},"mode":"headless_cms_html"}]},{"id":"headless-commerce","name":"Headless & Enterprise Commerce (commercetools, Elastic Path, Kibo, Optimizely)","category":"commerce-social","description":"Extracts commercetools, Elastic Path, Kibo/Mozu, and Optimizely Configured Commerce JSON-LD (with additionalProperty specs), Microdata, and hydration state.","domains":["www.bang-olufsen.com","www.guestsupply.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.bang-olufsen.com/en/us/headphones/beoplay-h100","https://www.guestsupply.com/product/0078423-Keystone-Liquid-Laundry-Built-Detergent-5-Gallon-1602538"],"htmlRoutes":[{"id":"headless-commerce","match":{"exactSegments":false},"mode":"headless_commerce_html"}]},{"id":"healthcare-careers","name":"Healthcare Careers (HealthcareSource & symplr)","category":"jobs","description":"Extracts hospital and clinical job postings from HealthcareSource (*.healthcaresource.com) and symplr career pages while rejecting Application Error and WAF shells and deferring careers.symplr.com to Jibe.","domains":["*.healthcaresource.com","www.symplr.com","symplr.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.symplr.com/careers"],"htmlRoutes":[{"id":"healthcare-careers","mode":"healthcare_careers_html","match":{"excludeHosts":["careers.symplr.com"],"exactSegments":false}}]},{"id":"helpscout-docs","name":"Help Scout Docs","category":"developer","description":"Extracts Help Scout Docs knowledge base articles and collections from server-rendered HTML and BreadcrumbList JSON-LD.","domains":["docs.helpscout.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://docs.helpscout.com/article/666-use-dkim-to-help-with-email-delivery","https://docs.helpscout.com/collection/1543-getting-started"],"htmlRoutes":[{"id":"helpscout-docs","match":{"exactSegments":false},"mode":"helpscout_docs_html"}]},{"id":"hex-pm","name":"Hex.pm Elixir & Erlang Registry","category":"developer","description":"Upgrades hex.pm package pages to /api/packages/ metadata and HexDocs links.","domains":["hex.pm","www.hex.pm"],"exampleUrls":["https://hex.pm/packages/phoenix"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://hex.pm/api/packages/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["meta.description"],"trim":true},"licenses":{"paths":["meta.licenses"],"join":", "},"ver":{"paths":["releases.0.version"]},"verOrDefault":{"paths":["releases.0.version"],"default":"0.1"},"docsUrl":{"paths":["docs_html_url"],"fallbackTemplate":"https://hexdocs.pm/{name}"}},"titleTemplate":"{name} {ver} (Hex)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Hex)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Mix","template":"`{:{name}, \"~> {verOrDefault}\"}`"},{"label":"HexDocs","template":"{docsUrl}"},{"label":"License","template":"{licenses}","whenVar":"licenses"}],"objectLinksPath":"meta.links"}},{"id":"home-depot-lowes","name":"Home Depot & Lowe's Product JSON-LD","category":"commerce-social","description":"Strictly low-rate, robots-enforced JSON-LD Product/ProductGroup extractor for Home Depot and Lowe's product pages.","domains":["homedepot.com","www.homedepot.com","lowes.com","www.lowes.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.homedepot.com/p/Milwaukee-M18-FUEL-Hammer-Drill-2904-20/320326137","https://www.lowes.com/pd/DEWALT-20V-MAX-Drill/501326137"],"htmlRoutes":[{"id":"home-depot-lowes","match":{"exactSegments":false},"mode":"home_depot_lowes_html"}]},{"id":"home-goods-jsonld","name":"US Home Goods Product JSON-LD","category":"commerce-social","description":"Structured Product and ProductGroup JSON-LD extractor for Wayfair and Overstock.","domains":["wayfair.com","www.wayfair.com","overstock.com","www.overstock.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.wayfair.com/furniture/pdp/mercury-row-perdue-815-velvet-square-arm-convertible-sofa-w009315804.html?piid=1134429065","https://www.overstock.com/Home-Garden/accent-chair/1400001/product.html"],"htmlRoutes":[{"id":"home-goods-jsonld","match":{"exactSegments":false},"mode":"home_goods_jsonld_html"}]},{"id":"homebrew-formulae","name":"Homebrew Formulae & Casks","category":"developer","description":"Upgrades formulae.brew.sh/formula/ and /cask/ pages to the official Homebrew JSON API with install commands, dependencies, deprecation/disable notices, and 30-day install analytics.","domains":["formulae.brew.sh"],"exampleUrls":["https://formulae.brew.sh/formula/jq","https://formulae.brew.sh/cask/iterm2"],"routes":[{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["formula",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/formula/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"fullName":{"paths":["full_name","name"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["versions.stable","versions.head"]},"license":{"paths":["license"]},"homepage":{"paths":["homepage"],"requireHttps":true},"deps":{"paths":["dependencies"],"itemWrap":"`","join":", ","limit":20},"buildDeps":{"paths":["build_dependencies"],"itemWrap":"`","join":", ","limit":15},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_formula","disable_replacement_cask","deprecation_replacement_formula","deprecation_replacement_cask"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{fullName} (Homebrew Formula)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install {name}`"},{"label":"Stable Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Dependencies","template":"{deps}","whenVar":"deps"},{"label":"Build Dependencies","template":"{buildDeps}","whenVar":"buildDeps"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage"]}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["cask",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/cask/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["token"],"vars":{"token":{"paths":["token"]},"displayName":{"paths":["name.0","full_token","token"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["version"]},"homepage":{"paths":["homepage"],"requireHttps":true},"downloadUrl":{"paths":["url"],"requireHttps":true},"sha256":{"paths":["sha256"]},"autoUpdates":{"paths":["auto_updates"],"format":"bool_map","trueValue":"Yes","falseValue":"No"},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_cask","disable_replacement_formula","deprecation_replacement_cask","deprecation_replacement_formula"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{displayName} (Homebrew Cask)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install --cask {token}`"},{"label":"Token","template":"`{token}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"Auto Updates","template":"{autoUpdates}","whenVar":"autoUpdates"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Download URL","template":"{downloadUrl}","whenVar":"downloadUrl"},{"label":"SHA-256","template":"`{sha256}`","whenVar":"sha256"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage","downloadUrl"]}}]},{"id":"hourly-smb-ats","name":"Hourly & SMB ATS (Hireology, ApplicantPro, Harri, Fountain, ClearCompany, Workstream)","category":"jobs","description":"Extracts JobPosting JSON-LD, Next.js SSR boards, and structured HTML job postings from Hireology, ApplicantPro, Harri, Fountain, ClearCompany, and Workstream.","domains":["www.applicantpro.com","www.clearcompany.com","app.hireology.com","harri.com","web.fountain.com","www.workstream.us"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.hireology.com/hireology2/2908935/description","https://harri.com/Kitchen-Putters-Cw"],"htmlRoutes":[{"id":"hourly-smb-ats","mode":"hourly_smb_ats_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","app.clearcompany.com"],"anyOf":[{"hostSubdomain":{"suffix":".applicantpro.com","param":"tenant","reserved":["www","login","admin"]},"exactSegments":false},{"hosts":["www.applicantpro.com"],"pathPrefix":"/careers","exactSegments":false},{"hostSubdomain":{"suffix":".clearcompany.com","param":"tenant","reserved":["app","login","admin"]},"exactSegments":false},{"hosts":["careers.hireology.com","app.hireology.com"],"exactSegments":false},{"hosts":["harri.com","www.harri.com"],"exactSegments":false},{"hosts":["web.fountain.com"],"pathPrefix":"/apply/","exactSegments":false},{"hostSubdomain":{"suffix":".workstream.us","param":"tenant","reserved":["app","login","api"]},"exactSegments":false}]}}]},{"id":"hrsa-samhsa-locator","name":"HRSA & SAMHSA Treatment Locator","category":"research-health","description":"SAMHSA FindTreatment.gov locator JSON export API adapter with HRSA/SAMHSA portal HTML fallback.","domains":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"auth_mode":"pub","exampleUrls":["https://findtreatment.gov/locator/exportsAsJson/v2?sAddr=40.7506%2C-73.9972&sType=SA&limitValue=5000&limitType=2&pageSize=2&page=1","https://data.hrsa.gov/tools/web-services"],"routes":[{"match":{"hosts":["findtreatment.gov","www.findtreatment.gov"],"pathPrefix":"/locator/exportsAsJson/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"samhsa_locator_json"}}],"htmlRoutes":[{"id":"hrsa-samhsa-locator","match":{"hosts":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"exactSegments":false},"mode":"hrsa_samhsa_html"}]},{"id":"hubspot-cms","name":"HubSpot CMS","category":"developer","description":"Extracts same-origin HubSpot HubDB table rows (/_hcms/api/hubdb/v3/... and /hs/api/hubdb/v2/...) and HubSpot CMS HTML metadata while rejecting page_id:0 404s.","domains":["www.hubspot.com","developers.hubspot.com","www.smartbugmedia.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.smartbugmedia.com/blog/hubspot-unbound-2026-recap-7-ai-updates-to-turn-on-first-and-what-each-one-costs"],"routes":[{"match":{"exactSegments":true,"pathSegments":["_hcms","api","hubdb","v3","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}},{"match":{"exactSegments":true,"pathSegments":["hs","api","hubdb","v2","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}}],"htmlRoutes":[{"id":"hubspot-cms","match":{"exactSegments":false},"mode":"hubspot_cms_html"}]},{"id":"hud-fhfa","name":"HUD User & FHFA House Price Index","category":"public-records","description":"Extracts HUD User Fair Market Rent / Income Limit API JSON (when HUD_API_KEY is configured), FHFA House Price Index JSON & CSV datasets, and FHFA HPI HTML pages.","domains":["huduser.gov","www.huduser.gov","fhfa.gov","www.fhfa.gov"],"auth_mode":"key","exampleUrls":["https://www.huduser.gov/hudapi/public/fmr/listStates","https://www.fhfa.gov/hpi/download/quarterly_datasets/hpi_at_state.csv","https://www.fhfa.gov/data/hpi"],"routes":[{"match":{"hosts":["huduser.gov","www.huduser.gov"],"pathPrefix":"/hudapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"hud_user_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"fhfa_hpi_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":4194304,"auth_mode":"pub"},"extract":{"textMode":"fhfa_hpi_csv"}}],"htmlRoutes":[{"id":"hud-fhfa","match":{"hosts":["fhfa.gov","www.fhfa.gov","huduser.gov","www.huduser.gov"],"exactSegments":false},"mode":"hud_fhfa_html"}]},{"id":"huggingface","name":"Hugging Face Models, Datasets & Spaces","category":"genai","description":"Upgrades Hugging Face model/dataset/space pages and file blobs to raw README.md with parsed YAML frontmatter tables.","domains":["huggingface.co","www.huggingface.co"],"exampleUrls":["https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct"],"routes":[{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{repoType}/{org}/{repo}"}},{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{org}/{repo}"}},{"match":{"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{repoType}/{org}/{repo}/{filePath}"}},{"match":{"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{org}/{repo}/{filePath}"}}]},{"id":"icims","name":"iCIMS Enterprise Career Portals","category":"jobs","description":"Upgrades *.icims.com/jobs/... portals and postings to their server-rendered ?ss=1&in_iframe=1 twin, extracting JobPosting JSON-LD and open role cards without outer iframe shells.","domains":["*.icims.com"],"exampleUrls":["https://careers-compsych.icims.com/jobs/search?ss=1","https://careers-compsych.icims.com/jobs/2526/senior-cloud-architect/job"],"routes":[{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":true,"pathSegments":[]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"anyOf":[{"exactSegments":true,"pathSegments":["jobs"]},{"exactSegments":true,"pathSegments":["jobs","intro"]},{"exactSegments":true,"pathSegments":["jobs","search"]}]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/jobs","/jobs/intro","/jobs/search"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}}],"htmlRoutes":[{"id":"icims","mode":"icims_portal","match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]}}]},{"id":"idx-broker-showcase","name":"IDX Broker & Showcase IDX Real Estate Portals","category":"commerce-social","description":"Extracts real estate property listings, MLS numbers, pricing, and RealEstateAgent/RealEstateListing metadata from IDX Broker and Showcase IDX portals while rejecting 403/WAF shells.","domains":["*.idxbroker.com","entityrealty.com","realtorrajaram.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://entityrealty.com/","https://realtorrajaram.com/"],"htmlRoutes":[{"id":"idx-broker-showcase","match":{"exactSegments":false},"mode":"idx_broker_showcase_html"}]},{"id":"ietf-rfc","name":"IETF Datatracker & RFC Editor","category":"developer","description":"Strips ASCII RFC running page headers/footers ([Page N]) and promotes numbered section headings to Markdown headings.","domains":["datatracker.ietf.org","rfc-editor.org","www.rfc-editor.org"],"exampleUrls":["https://datatracker.ietf.org/doc/html/rfc9421","https://www.rfc-editor.org/rfc/rfc9110"],"routes":[{"match":{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","exactSegments":true,"pathSegments":["rfc",{"param":"rfcId","stripPrefix":"rfc","charset":"digits","minLen":1,"maxLen":6}]},"twin":{"fetchUrl":"https://www.rfc-editor.org/rfc/rfc{rfcId}.html","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"RFC {rfcId}"}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/rfc"},{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/draft-"},{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","minSegments":2}]},"mode":"markdown_clean","cleanPreset":"ietf_rfc"}]},{"id":"intercom-help","name":"Intercom Help Center","category":"developer","description":"Extracts Intercom Help Center articles and collections from __NEXT_DATA__ hydration, JSON-LD, and semantic HTML.","domains":["support.claude.com","www.intercom.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://support.claude.com/en/articles/7996845-what-are-some-things-i-can-use-claude-for","https://support.claude.com/en/collections/4078531-claude"],"htmlRoutes":[{"id":"intercom-help","match":{"exactSegments":false},"mode":"intercom_help_html"}]},{"id":"internet-archive","name":"Internet Archive Items (archive.org)","category":"genai","description":"Upgrades archive.org/details/ pages to the official /metadata/ JSON feed with creator, license, and downloadable files.","domains":["archive.org","www.archive.org"],"exampleUrls":["https://archive.org/details/07-28-16_Space-to-Grounds.zip"],"match":{"exactSegments":true,"pathSegments":["details",{"param":"identifier","charset":"pkg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://archive.org/metadata/{identifier}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["metadata"],"vars":{"title":{"paths":["metadata.title"],"fallbackTemplate":"{identifier}","trim":true},"creator":{"paths":["metadata.creator"],"join":", "},"mediatype":{"paths":["metadata.mediatype"]},"date":{"paths":["metadata.date","metadata.publicdate"]},"license":{"paths":["metadata.licenseurl"]},"collections":{"paths":["metadata.collection"],"limit":6,"join":", "},"desc":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags"},"descShort":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"creator","publishedTimeVar":"date","bullets":[{"label":"Identifier","template":"`{identifier}`"},{"label":"Creator","template":"{creator}","whenVar":"creator"},{"label":"Media Type","template":"{mediatype}","whenVar":"mediatype"},{"label":"Date","template":"{date}","whenVar":"date"},{"label":"Collections","template":"{collections}","whenVar":"collections"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Files","arrayPath":"files","filter":{"excludeFieldSuffixes":{"field":"name","suffixes":["_meta.xml","_files.xml"]}},"limit":15,"requireItemVar":"fname","collectLinkVars":["dlUrl"],"itemVars":{"fname":{"paths":["name"]},"dlUrl":{"template":"https://archive.org/download/{identifier}/{fname}","whenVars":["fname"],"replaceAll":{"from":" ","to":"%20"}}},"columns":[{"header":"File","template":"[{fname}]({dlUrl})"},{"header":"Format","paths":["format"]},{"header":"Size","paths":["size"],"format":"bytes_human"}]}]}},{"id":"ir-portal-pack","name":"Investor Relations Portals (Notified / Equisolve / Nasdaq IR)","category":"finance","description":"Extracts Notified/Intrado (wd_newsfeed), Equisolve, and Nasdaq IR investor relations portals and RSS press release feeds.","domains":["investor.iridium.com","ir.bowheadspecialty.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://investor.iridium.com/press-releases","https://ir.bowheadspecialty.com/news-events/press-releases/rss","https://ir.bowheadspecialty.com/"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/rss"},{"pathSuffix":".rss"},{"pathPrefix":"/rss/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ir_portal_rss_xml"}}],"htmlRoutes":[{"id":"ir-portal-pack","match":{"exactSegments":false},"mode":"ir_portal_pack_html"}]},{"id":"irs-teos","name":"IRS Tax Exempt Organization Search (TEOS)","category":"public-records","description":"Extracts IRS Tax Exempt Organization Search (Pub 78 / Form 990-N) lookup records while respecting robots.txt and strictly rejecting Akamai WAF challenge pages.","domains":["apps.irs.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://apps.irs.gov/app/eos/allSearch?ein=521693387","https://apps.irs.gov/app/eos/details/521693387"],"routes":[{"match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/allSearch"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}},{"match":{"hosts":["apps.irs.gov"],"exactSegments":false,"pathSegments":["app","eos","details",{"param":"ein","charset":"alnum_dash","minLen":4,"maxLen":20}]},"twin":{"fetchUrl":"https://apps.irs.gov/app/eos/allSearch?ein={ein}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}}],"htmlRoutes":[{"id":"irs-teos","match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/","exactSegments":false},"mode":"irs_teos_html"}]},{"id":"javadoc-dokka","name":"Javadoc & Kotlin Dokka API Docs","category":"developer","description":"Universal extractor for Javadoc and Kotlin Dokka HTML API pages as well as element-list and package-list index manifests.","domains":["docs.oracle.com","kotlinlang.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html","https://docs.oracle.com/en/java/javase/21/docs/api/element-list","https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/element-list"},{"pathSuffix":"/package-list"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"javadoc_element_list_text"}}],"htmlRoutes":[{"id":"javadoc-dokka","match":{"exactSegments":false},"mode":"javadoc_dokka_html"}]},{"id":"jazzhr","name":"JazzHR Career Boards (applytojob.com)","category":"jobs","description":"Upgrades .applytojob.com boards to app.jazz.co/feeds/export/jobs/ XML export (which includes full job descriptions and returns clean 404 on invalid slugs).","domains":["*.applytojob.com"],"exampleUrls":["https://axiomcloud.applytojob.com/apply"],"match":{"hostSubdomain":{"suffix":".applytojob.com","param":"org","reserved":["www","app"]},"maxSegments":1},"twin":{"id":"jazzhr","fetchUrl":"https://app.jazz.co/feeds/export/jobs/{org}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["jobs","job"],"itemTag":"job","titleTemplate":"{org} — JazzHR Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jUrl","itemVars":{"jTitle":{"tags":["title"]},"jUrl":{"tags":["url"]},"dept":{"tags":["department"],"default":"-"},"city":{"tags":["city"]},"state":{"tags":["state"]},"country":{"tags":["country"]},"jType":{"tags":["type"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{city} {state} {country}"},{"header":"Type","template":"{jType}"}]}}},{"id":"job-boards-jsonld-pack","name":"Job Boards (CareerArc, Nexxt, Reed, Alljobs)","category":"jobs","description":"Extracts JobPosting JSON-LD from CareerArc, Nexxt, Reed.co.uk, and Alljobs posting pages: title, company, locations, employment type, salary, posting/expiry dates, job ID, and description. Repairs the unescaped quotes CareerArc emits inside descriptions in one linear pass. Honors robots.txt.","domains":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"auth_mode":"html","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://www.careerarc.com/job-listing/state-of-vermont-jobs-trooper-probationary-53326582","https://www.nexxt.com/jobs/registered-nurse-rn-lebanon-oh-3496987559-job.html","https://www.reed.co.uk/jobs/nurse-wca/57553089","https://www.alljobs.co.il/Search/UploadSingle.aspx?JobID=8822511"],"htmlRoutes":[{"id":"job-boards-jsonld-pack","match":{"hosts":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"exactSegments":false},"mode":"job_boards_jsonld_html"}]},{"id":"jsr-io","name":"JSR JavaScript Registry","category":"developer","description":"Strips top-bar navigation and duplicate version/scorecard tabs from jsr.io/@scope/pkg Markdown.","domains":["jsr.io"],"exampleUrls":["https://jsr.io/@std/path"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"scope","charset":"npm_scope"},{"param":"pkg","charset":"npm_pkg"}]},"mode":"markdown_clean","cleanPreset":"jsr_io"}]},{"id":"judge-me","name":"Judge.me Product Reviews","category":"commerce-social","description":"Extracts public Judge.me product reviews widget JSON and HTML-in-JSON payloads without preempting storefront extractors.","domains":["api.judge.me","judge.me","cache.judge.me"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.judge.me/reviews/reviews_for_widget?shop_domain=thebraindriver.myshopify.com&platform=shopify&product_id=3946432580&page=1&per_page=10"],"routes":[{"match":{"hosts":["api.judge.me","judge.me","cache.judge.me"],"pathEquals":["/reviews/reviews_for_widget","/api/v1/widgets/product_review","/api/v1/reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"judgeme_reviews"}}],"htmlRoutes":[{"id":"judge-me","match":{"exactSegments":false},"mode":"judgeme_html"}]},{"id":"junar-tyler-data","name":"Junar & Tyler Data & Insights Open Data Portals","category":"public-records","description":"Extracts Junar /dataviews/ HTML and /api/v2/datastreams/ JSON plus Tyler Data & Insights /api/catalog/v1 datasets (without overlapping Socrata claims).","domains":["data.paloalto.gov","*.junar.com","data.tylertech.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://data.tylertech.com/api/catalog/v1","https://data.paloalto.gov/dataviews/251890/business-registry-2018/","https://data.paloalto.gov/home"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v2/datastreams/"},{"pathPrefix":"/api/catalog/v1"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"junar_tyler_json"}}],"htmlRoutes":[{"id":"junar-tyler-data","match":{"exactSegments":false},"mode":"junar_tyler_html"}]},{"id":"jwplayer","name":"JW Player Delivery & Previews","category":"commerce-social","description":"Extracts JW Player CDN v2 media/playlist JSON twins, /previews/{mediaId} redirects to v2 media JSON, and JW Platform feeds.","domains":["cdn.jwplayer.com","content.jwplatform.com"],"auth_mode":"pub","exampleUrls":["https://cdn.jwplayer.com/v2/media/1b02B03R","https://cdn.jwplayer.com/previews/1b02B03R"],"routes":[{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["v2",{"param":"kind","allowValues":["media","playlists"]},{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["previews",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://cdn.jwplayer.com/v2/media/{mediaId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["content.jwplatform.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["feeds",{"param":"mediaFile","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}}],"htmlRoutes":[{"id":"jwplayer","match":{"exactSegments":false},"mode":"jwplayer_html"}]},{"id":"kaggle","name":"Kaggle Datasets, Models & Competitions","category":"developer","description":"Extracts Kaggle dataset, model, and competition metadata via Kaggle REST API v1 (KAGGLE_API_KEY) with public HTML fallback.","domains":["www.kaggle.com","kaggle.com"],"auth_mode":"key","exampleUrls":["https://www.kaggle.com/api/v1/datasets/view/heptapod/titanic","https://www.kaggle.com/datasets/heptapod/titanic"],"routes":[{"match":{"hosts":["www.kaggle.com","kaggle.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}},{"match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false,"pathSegments":["datasets",{"param":"owner","charset":"pkg","minLen":1,"maxLen":100},{"param":"slug","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.kaggle.com/api/v1/datasets/view/{owner}/{slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}}],"htmlRoutes":[{"id":"kaggle","match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false},"mode":"kaggle_html"}]},{"id":"kb-platform-pack","name":"KB Platform Pack (Document360, Helpjuice, KnowledgeOwl)","category":"developer","description":"Extracts public knowledge base articles and categories across Document360, Helpjuice, and KnowledgeOwl.","domains":["docs.document360.com","help.helpjuice.com","support.knowledgeowl.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.helpjuice.com/getting-started/what-is-a-knowledge-base","https://support.knowledgeowl.com/help/enable-single-sign-on-sso"],"htmlRoutes":[{"id":"kb-platform-pack","match":{"exactSegments":false},"mode":"kb_platform_pack_html"}]},{"id":"khoros-lithium","name":"Khoros / Lithium Communities","category":"developer","description":"Upgrades Khoros/Lithium /t5/.../td-p/ community threads to /api/2.0/messages/ JSON twins with HTML fallback.","domains":["community.qlik.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"exampleUrls":["https://community.qlik.com/t5/Product-Innovation/AI-Without-Context-Is-Guessing-With-Confidence-Our-October-Qlik/ba-p/2560737","https://community.qlik.com/api/2.0/messages/2560737"],"routes":[{"match":{"pathPrefix":"/t5/","anyOf":[{"scanSegment":{"afterLiteral":"td-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"m-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ba-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ta-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}}]},"twin":{"fetchUrl":"https://{host}/api/2.0/messages/{msgId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}},{"match":{"pathSegments":["api","2.0","messages",{"param":"msgId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}}],"htmlRoutes":[{"id":"khoros-lithium","match":{"exactSegments":false},"mode":"khoros_html"}]},{"id":"klaviyo-attentive-forms","name":"Klaviyo & Attentive Onsite Forms (Read-Only)","category":"commerce-social","description":"Strictly read-only extractor for Klaviyo onsite company/form IDs, signup offer metadata, and Attentive tag metadata without submitting forms; yields on product/article pages.","domains":["www.getcasely.com","static.klaviyo.com","cdn.attn.tv"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.getcasely.com/"],"htmlRoutes":[{"id":"klaviyo-attentive-forms","match":{"exactSegments":false},"mode":"klaviyo_attentive_forms_html"}]},{"id":"klevu","name":"Klevu Smart Search","category":"commerce-social","description":"Opt-in page-key adapter for Klevu v2 POST search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["eucs15v2.ksearchnet.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://eucs15v2.ksearchnet.com/cs/v2/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".ksearchnet.com","param":"clusterHost"},"pathEquals":["/cs/v2/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"context\":{\"apiKeys\":[\"klevu-156925593843210765\"]},\"recordQueries\":[{\"id\":\"productList\",\"typeOfRequest\":\"SEARCH\",\"settings\":{\"query\":{\"term\":\"bag\"},\"limit\":10}}]}","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"klevu"}}],"htmlRoutes":[{"id":"klevu","match":{"exactSegments":false},"mode":"klevu_html"}]},{"id":"kroger","name":"Kroger Public Products API","category":"commerce-social","description":"Extracts Kroger product UPC/GTIN, brand, size, pricing, and fulfillment metadata via the official Kroger v1 Products API.","domains":["kroger.com","www.kroger.com","api.kroger.com"],"auth_mode":"key","exampleUrls":["https://api.kroger.com/v1/products/0001111085135","https://api.kroger.com/v1/products?filter.term=oats"],"routes":[{"match":{"hosts":["kroger.com","www.kroger.com"],"exactSegments":false,"pathSegments":["p",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"upc","charset":"digits","minLen":8,"maxLen":14}]},"twin":{"fetchUrl":"https://api.kroger.com/v1/products/{upc}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}},{"match":{"hosts":["api.kroger.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}}]},{"id":"lang-registry-pack","name":"Language Registry Pack (pub.dev, CRAN, CocoaPods, Anaconda)","category":"developer","description":"Extracts package metadata and newest stable versions from Dart pub.dev, R CRAN HTML, CocoaPods HTML, and Anaconda/conda-forge API.","domains":["pub.dev","cran.r-project.org","cocoapods.org","anaconda.org","api.anaconda.org"],"auth_mode":"pub","exampleUrls":["https://pub.dev/packages/http","https://cocoapods.org/pods/Alamofire","https://anaconda.org/conda-forge/six"],"routes":[{"match":{"hosts":["pub.dev"],"pathPrefix":"/api/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["pub.dev"],"exactSegments":false,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://pub.dev/api/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["api.anaconda.org"],"pathPrefix":"/package/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}},{"match":{"hosts":["anaconda.org"],"exactSegments":true,"reservedFirstSegment":["search","admin","download","static","api","login","signup","docs","pricing","about"],"pathSegments":[{"param":"channel","charset":"pkg","minLen":1,"maxLen":80},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.anaconda.org/package/{channel}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}}],"htmlRoutes":[{"id":"lang-registry-pack","match":{"hosts":["cran.r-project.org"],"pathPrefix":"/web/packages/","exactSegments":false},"mode":"cran_html"},{"id":"lang-registry-pack","match":{"hosts":["cocoapods.org"],"pathPrefix":"/pods/","exactSegments":false},"mode":"cocoapods_html"}]},{"id":"laserfiche-weblink","name":"Laserfiche WebLink Public Document Portals","category":"public-records","description":"Universal Laserfiche WebLink adapter for city and county records portals. DocView.aspx and Browse.aspx links that carry id and repo (as WebLink share links do) upgrade to the anonymous JSON services the viewer itself calls: document name, folder path, template, created/modified dates, page count and metadata fields, or a folder listing with links. No cookies or login are used; the CookieCheck redirect only guards the HTML shell.","domains":["cc-publicdocs.santa-ana.org","records.hawaiicounty.gov","docs.southbendin.gov","weblink.winterspringsfl.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://cc-publicdocs.santa-ana.org/WebLink/DocView.aspx?id=82504&dbid=1&repo=Clerk","https://cc-publicdocs.santa-ana.org/WebLink/Browse.aspx?id=82479&dbid=1&repo=Clerk"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"DocView.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/DocumentService.aspx/GetBasicDocumentInfo","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"entryId\":{id}}","maxBytes":2097152},"extract":{"jsonMode":"laserfiche_doc_json"}},{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"Browse.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/FolderListingService.aspx/GetFolderListing2","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"folderId\":{id},\"getNewListing\":true,\"start\":0,\"end\":50,\"sortColumn\":\"\",\"sortAscending\":true}","maxBytes":4194304},"extract":{"jsonMode":"laserfiche_folder_json"}}],"htmlRoutes":[{"id":"laserfiche-weblink","match":{"exactSegments":false},"mode":"laserfiche_missing_repo_html"}]},{"id":"legacy-cart","name":"Legacy Shopping Carts (OpenCart, nopCommerce, Shift4Shop, Volusion)","category":"commerce-social","description":"Extracts OpenCart, nopCommerce, Shift4Shop, and Volusion product JSON-LD, Microdata, and spec-table DOM while filtering template noise.","domains":["www.eurekagolf.co.uk","www.sturdybuiltonline.com","www.cctvcamerapros.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.eurekagolf.co.uk/oakley-standard-polo-shirt-pacific-blue","https://www.sturdybuiltonline.com/Steel-Diamond-Plate-Utility-Trailer-Fender-Single-Axle-10-in-x-32-in-x-13-in_p_215.html","https://www.cctvcamerapros.com/HDMI-to-USB-Converter-p/hdmi-u3.htm"],"htmlRoutes":[{"id":"legacy-cart","match":{"exactSegments":false},"mode":"legacy_cart_html"}]},{"id":"legistar","name":"Legistar Municipal Council Legislation & Meetings","category":"public-records","description":"Upgrades .legistar.com municipal council portals to the keyless webapi.legistar.com REST API for ordinances, resolutions, and meetings.","domains":["*.legistar.com"],"exampleUrls":["https://seattle.legistar.com/Legislation.aspx","https://seattle.legistar.com/Calendar.aspx"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathSuffix":"calendar.aspx","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathContainsSegment":"calendar","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}}]},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/events?$top=20&$orderby=EventDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Council — Recent Meetings (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":20,"itemVars":{"agendaUrl":{"paths":["EventInSiteURL"],"requireHttps":true},"linkCell":{"template":"[Agenda]({agendaUrl})","whenVars":["agendaUrl"],"default":"-"}},"columns":[{"header":"Date","paths":["EventDate"],"sliceMax":10},{"header":"Body / Committee","paths":["EventBodyName"]},{"header":"Location","paths":["EventLocation"]},{"header":"Link","template":"{linkCell}"}]}]}},{"match":{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/matters?$top=25&$orderby=MatterIntroDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Legislation — Recent Matters (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":25,"columns":[{"header":"File #","paths":["MatterFile"],"code":true},{"header":"Type","paths":["MatterTypeName"]},{"header":"Status","paths":["MatterStatusName"]},{"header":"Introduced","paths":["MatterIntroDate"],"sliceMax":10},{"header":"Title","paths":["MatterTitle","MatterName"]}]}]}}]},{"id":"lemmy","name":"Lemmy Federated Link Aggregator (Universal Engine)","category":"commerce-social","description":"Upgrades Lemmy posts (/post/{id}), communities (/c/{name}), and /api/v3/* endpoints via JSON API with SSR HTML fallback while rejecting Cloudflare challenges.","domains":["lemmy.world","lemmy.ml","programming.dev","sh.itjust.works"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lemmy.world/api/v3/post?id=54926010","https://lemmy.world/api/v3/community?name=memes","https://lemmy.world/post/54926010","https://lemmy.ml/post/55819348"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v3","post"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","comment","list"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","community"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":false,"pathSegments":["post",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{host}/api/v3/post?id={postId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["c",{"param":"communityName","charset":"brew_id","minLen":1,"maxLen":120,"reserved":["api","pictrs","feeds","u","post","search","communities","login","signup"]}]},"twin":{"fetchUrl":"https://{host}/api/v3/community?name={communityName}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}}],"htmlRoutes":[{"id":"lemmy","match":{"exactSegments":false},"mode":"lemmy_html"}]},{"id":"libraries-io","name":"Libraries.io Package Metadata API","category":"developer","description":"Extracts cross-ecosystem package metadata, latest stable release, dependents, and repository signals via the official Libraries.io API (LIBRARIES_IO_API_KEY).","domains":["libraries.io"],"auth_mode":"key","exampleUrls":["https://libraries.io/api/npm/express"],"routes":[{"match":{"hosts":["libraries.io"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://libraries.io/api/npm/{scope}%2F{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":[{"param":"platform","allowValues":["npm","pypi","rubygems","cargo","go","nuget","packagist","hex","maven","pub","cran","cocoapods","conda"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://libraries.io/api/{platform}/{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}}]},{"id":"lightspeed-ecom","name":"Lightspeed eCom (C-Series)","category":"commerce-social","description":"Extracts Lightspeed eCom C-Series ?format=json product and collection twins plus custom-domain storefront HTML/companion discovery.","domains":["www.kayasieraden.nl"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html","https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html?format=json"],"routes":[{"match":{"hosts":["www.kayasieraden.nl"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"lightspeed_ecom_json"}}],"htmlRoutes":[{"id":"lightspeed-ecom","match":{"exactSegments":false},"mode":"lightspeed_ecom_html"}]},{"id":"lobsters","name":"Lobste.rs Computing Stories","category":"commerce-social","description":"Upgrades lobste.rs/s/ story pages to their .json feed with nested plain-text comments.","domains":["lobste.rs"],"exampleUrls":["https://lobste.rs/s/abc123/zero_alloc_go_parsers"],"match":{"exactSegments":false,"pathSegments":["s",{"param":"shortId","charset":"alnum","minLen":4,"maxLen":12}]},"twin":{"fetchUrl":"https://lobste.rs/s/{shortId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"storyUrl":{"paths":["url"]},"score":{"paths":["score"],"default":"0"},"user":{"paths":["submitter_user"]},"created":{"paths":["created_at"]},"tags":{"paths":["tags"],"itemWrap":"`","join":", "},"descPlain":{"paths":["description_plain"],"trim":true}},"titleTemplate":"{title}","authorVar":"user","publishedTimeVar":"created","metaLine":[{"label":"Score","template":"{score}"},{"label":"By","template":"@{user}","whenVar":"user"},{"label":"Tags","template":"{tags}","whenVar":"tags"},{"label":"Link","template":"{storyUrl}","whenVar":"storyUrl"}],"introVar":"descPlain","sections":[{"heading":"Comments","listArrayPath":"comments","limit":40,"indentField":"indent_level","indentOffset":-1,"maxIndent":6,"itemTemplate":"**@{user}** ({score} pts): {body}","requireItemVar":"body","itemVars":{"user":{"paths":["commenting_user"],"default":"user"},"score":{"paths":["score"],"default":"0"},"body":{"paths":["comment_plain"],"trim":true}}}],"linksVars":["storyUrl"]}},{"id":"loc-gov","name":"Library of Congress (loc.gov)","category":"public-records","description":"Library of Congress JSON (?fo=json) adapter for items, resources, and collections (excluding Chronicling America and disallowed search paths).","domains":["loc.gov","www.loc.gov"],"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/item/2014645520/","https://www.loc.gov/item/2014645520/?fo=json","https://www.loc.gov/resource/ds.05251/?fo=json"],"routes":[{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["item",{"param":"itemId","charset":"url_seg","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{itemId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["resource",{"param":"resourceId","charset":"url_seg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://www.loc.gov/resource/{resourceId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/{collectionId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}}],"htmlRoutes":[{"id":"loc-gov","match":{"anyOf":[{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/item/"},{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/resource/"},{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]}]},"mode":"loc_gov_html"}]},{"id":"mastodon-status","name":"Mastodon & Fediverse Statuses (Universal Engine)","category":"commerce-social","description":"Upgrades Fediverse status permalinks (/@/) on any Mastodon instance to /api/v1/statuses/ JSON.","domains":["mastodon.social","fosstodon.org","hachyderm.io"],"universalEngine":true,"exampleUrls":["https://fosstodon.org/@realpython/117694898741277050"],"match":{"excludeHosts":["medium.com","*.medium.com","tiktok.com","*.tiktok.com","threads.net","*.threads.net"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle"},{"param":"statusId","charset":"digits","minLen":15,"maxLen":24}]},"twin":{"id":"mastodon-status","fetchUrl":"https://{host}/api/v1/statuses/{statusId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["content","account.acct"],"vars":{"acct":{"paths":["account.acct"]},"displayName":{"paths":["account.display_name"],"fallbackTemplate":"{acct}"},"createdAt":{"paths":["created_at"]},"spoiler":{"paths":["spoiler_text"],"trim":true},"body":{"paths":["content"],"format":"html_to_md"}},"titleTemplate":"{displayName} (@{acct}@{host})","authorTemplate":"@{acct}@{host}","publishedTimeVar":"createdAt","blockquoteTemplate":"> [!NOTE]\n> **Content Note**: {spoiler}","blockquoteWhenVar":"spoiler","bodyVar":"body","sections":[{"heading":"","listArrayPath":"media_attachments","limit":16,"requireItemVar":"mediaDesc","itemVars":{"mediaDesc":{"paths":["description"],"trim":true}},"itemTemplate":"*Media description*: {mediaDesc}"}]}},{"id":"maven-central","name":"Maven Central","category":"developer","description":"Upgrades central.sonatype.com/artifact//[/] pages to the keyless Maven Central Solr JSON API (central.sonatype.com for versioned artifacts, search.maven.org for artifact summaries) with Maven/Gradle coordinates and artifact metadata.","domains":["central.sonatype.com"],"exampleUrls":["https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind","https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.18.2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160},{"param":"v","charset":"pkg","reserved":["versions","overview","dependencies","dependents","jar"],"minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://central.sonatype.com/solrsearch/select?q=g:{g}+AND+a:{a}+AND+v:{v}&core=gav&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["v","latestVersion"]},"packaging":{"paths":["p"]},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}/{ver}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}},{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://search.maven.org/solrsearch/select?q=g:{g}+AND+a:{a}&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["latestVersion","v"]},"packaging":{"paths":["p"]},"versionCount":{"paths":["versionCount"],"format":"int_comma"},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","titleWhenVar":"ver","titleFallbackTemplate":"{groupId}:{artifactId} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`","whenVar":"ver"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`","whenVar":"ver"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}}]},{"id":"mcp-directories","name":"Community MCP Directories (Smithery, Glama, PulseMCP)","category":"developer","description":"Extracts community MCP directory listings from Smithery Registry API and public Glama/PulseMCP HTML pages, tagging every record trustTier=community, untrusted=true.","domains":["smithery.ai","registry.smithery.ai","glama.ai","pulsemcp.com","www.pulsemcp.com"],"auth_mode":"pub","exampleUrls":["https://registry.smithery.ai/servers?pageSize=5","https://www.pulsemcp.com/servers?q=github","https://glama.ai/mcp/servers?query=github"],"routes":[{"match":{"hosts":["registry.smithery.ai"],"pathPrefix":"/servers"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{ns}/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}}],"htmlRoutes":[{"id":"mcp-directories","match":{"hosts":["glama.ai"],"pathPrefix":"/mcp/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["pulsemcp.com","www.pulsemcp.com"],"pathPrefix":"/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["smithery.ai"],"exactSegments":false},"mode":"mcp_directory_html"}]},{"id":"mcp-registry","name":"Official Model Context Protocol (MCP) Registry","category":"developer","description":"Extracts official MCP server listings, remotes, and packages from registry.modelcontextprotocol.io tagged trustTier=official, untrusted=false.","domains":["registry.modelcontextprotocol.io"],"auth_mode":"pub","exampleUrls":["https://registry.modelcontextprotocol.io/v0/servers?limit=5"],"routes":[{"match":{"hosts":["registry.modelcontextprotocol.io"],"anyOf":[{"pathPrefix":"/v0/"},{"pathPrefix":"/v0.1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mcp_registry_json"}}]},{"id":"mediawiki","name":"Wikipedia & MediaWiki Encyclopedias","category":"commerce-social","description":"Robots-compliant Wikipedia & MediaWiki adapter: strips [ ], Edit links, [n] citation markers, [edit], and navigation chrome with 24h article caching; pair with search({ query, wikipedia: true, lang }) for Special:Search-free article discovery and Wikimedia Enterprise or dumps.wikimedia.org for bulk corpus access.","domains":["*.wikipedia.org","wiki.archlinux.org"],"universalEngine":true,"exampleUrls":["https://en.wikipedia.org/wiki/HTTP/2"],"htmlRoutes":[{"id":"mediawiki","match":{"exactSegments":false},"mode":"markdown_clean","cleanPreset":"mediawiki"}]},{"id":"medium","name":"Medium","category":"commerce-social","description":"Extracts Medium ?format=json responses with linear anti-XSSI prefix stripping, Medium RSS feeds, and Medium article HTML.","domains":["medium.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://medium.com/p/62edea66ffa4?format=json","https://medium.com/@medium/updating-our-rules-june-2023-62edea66ffa4","https://medium.com/feed/@medium"],"routes":[{"match":{"hosts":["medium.com"],"exactSegments":false,"queryParams":[{"name":"format","param":"fmt","allowValues":["json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":["p",{"param":"postId","charset":"alnum","minLen":8,"maxLen":20}]},"twin":{"fetchUrl":"https://medium.com/p/{postId}?format=json","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle","minLen":2,"maxLen":80},{"param":"slugId","charset":"slug","minLen":10,"maxLen":200}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"pathPrefix":"/feed/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"medium_rss_xml"}}],"htmlRoutes":[{"id":"medium","match":{"exactSegments":false},"mode":"medium_html"}]},{"id":"medlineplus","name":"NLM MedlinePlus","category":"research-health","description":"MedlinePlus Health Topics XML web service, MedlinePlus Connect JSON API, and medlineplus.gov topic HTML extractor.","domains":["medlineplus.gov","www.medlineplus.gov","wsearch.nlm.nih.gov","connect.medlineplus.gov"],"auth_mode":"pub","exampleUrls":["https://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=diabetes&retmax=2","https://medlineplus.gov/diabetes.html"],"routes":[{"match":{"hosts":["wsearch.nlm.nih.gov"],"pathEquals":["/ws/query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/xml","maxBytes":2097152},"extract":{"textMode":"medlineplus_xml"}},{"match":{"hosts":["connect.medlineplus.gov"],"pathEquals":["/service"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"knowledgeResponseType":"application/json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medlineplus_connect_json"}}],"htmlRoutes":[{"id":"medlineplus","match":{"hosts":["medlineplus.gov","www.medlineplus.gov"],"exactSegments":false},"mode":"medlineplus_html"}]},{"id":"medusa","name":"Medusa Storefront & Store API","category":"commerce-social","description":"Opt-in page-key adapter for Medusa /store/products API twins with Next.js RSC, JSON-LD, and DOM storefront HTML fallback when disabled.","domains":["next.medusajs.com","www.mattsleeps.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://next.medusajs.com/dk/products/hoodie","https://www.mattsleeps.com/en/beds"],"routes":[{"match":{"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["store","products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}},{"match":{"optionalLeadingLocale":true,"pathSegments":["store","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}}],"htmlRoutes":[{"id":"medusa","match":{"exactSegments":false},"mode":"medusa_html"}]},{"id":"meetup-luma","name":"Meetup & Luma Events","category":"commerce-social","description":"Extracts event title, schedule, venue/location, organizer, and description from Meetup and Luma (lu.ma / luma.com) via Schema.org Event JSON-LD and __NEXT_DATA__ hydration.","domains":["meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com"],"auth_mode":"html","exampleUrls":["https://www.meetup.com/lawofattractioncentre/events/317269557/","https://luma.com/8jye50v0"],"htmlRoutes":[{"id":"meetup-luma","match":{"exactSegments":false},"mode":"meetup_luma_html"}]},{"id":"midmarket-career-portals","name":"Mid-Market Career Portals (Paycom, Paycor, ADP)","category":"jobs","description":"Extracts structured open roles from Paycom (/v4/ats/web.php/portal/ & /api/ats/job-postings/), ADP Workforce Now (/mascsr/default/careercenter/), and public Paycor career pages.","domains":["pc00.paycomonline.com","www.paycomonline.net","workforcenow.adp.com","recruiting.adp.com","www.paycor.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://workforcenow.adp.com/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions?cid=7a48330e-b9d5-4122-9051-71a47afa46d5"],"routes":[{"match":{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"pathPrefix":"/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"adp_wfn_json"}}],"htmlRoutes":[{"id":"midmarket-career-portals","mode":"midmarket_career_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","recruitingbypaycor.com"],"anyOf":[{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"exactSegments":false},{"hosts":["www.paycor.com"],"pathPrefix":"/company/careers","exactSegments":false}]}}]},{"id":"mlb-statsapi","name":"MLB Stats API","category":"commerce-social","description":"Extracts public MLB schedule, team, game linescore, standings, and player data from statsapi.mlb.com JSON endpoints with mlb.com HTML/JSON-LD fallback.","domains":["statsapi.mlb.com","mlb.com","www.mlb.com"],"auth_mode":"pub","exampleUrls":["https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=2024-10-30","https://statsapi.mlb.com/api/v1/teams/119","https://statsapi.mlb.com/api/v1/game/775296/linescore","https://www.mlb.com/dodgers"],"routes":[{"match":{"hosts":["statsapi.mlb.com"],"anyOf":[{"pathPrefix":"/api/v1/schedule"},{"pathPrefix":"/api/v1/teams"},{"pathPrefix":"/api/v1/game/"},{"pathPrefix":"/api/v1/standings"},{"pathPrefix":"/api/v1/people"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"mlb_statsapi_json"}}],"htmlRoutes":[{"id":"mlb-statsapi","mode":"mlb_statsapi_html","match":{"hosts":["mlb.com","www.mlb.com"],"exactSegments":false}}]},{"id":"model-hub-pack","name":"Model Hub Pack (Replicate & Civitai)","category":"genai","description":"Extracts ML model metadata, versions, hardware, and descriptions from Replicate and Civitai SSR/Next.js HTML pages while honoring robots.txt.","domains":["replicate.com","www.replicate.com","civitai.com","www.civitai.com"],"auth_mode":"pub","exampleUrls":["https://replicate.com/meta/meta-llama-3-8b-instruct","https://civitai.com/models/4201/realistic-vision-v60-b1"],"htmlRoutes":[{"id":"model-hub-pack","match":{"hosts":["replicate.com","www.replicate.com"],"exactSegments":false},"mode":"replicate_html"},{"id":"model-hub-pack","match":{"hosts":["civitai.com","www.civitai.com"],"exactSegments":false},"mode":"civitai_html"}]},{"id":"modern-community-pack","name":"Modern Community Pack","category":"commerce-social","description":"Extracts community discussions, authors, and timestamps from Higher Logic, Bettermode (rendered SSR DOM only), and Circle HTML while rejecting soft-404s and empty shells.","domains":["community.broadcom.com","community.flutterflow.io","community.xano.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://community.broadcom.com/vmware-cloud-foundation/discussion/black-screen-after-upgrading-opensuse-leap-16-0-to-16-1-disabling-vmware-graphics-driver-restores-desktop","https://community.flutterflow.io/discussions/post/how-to-build-a-browser-based-instagram-story-viewer-with-flutterflow-lldyNB3IG314wPU","https://community.xano.com/ask-the-community/post/api-cache-bug-0GJQtNpHlTb471k"],"htmlRoutes":[{"id":"modern-community-pack","match":{"exactSegments":false},"mode":"modern_community_pack_html"}]},{"id":"multifamily-portals","name":"Multifamily Apartment Portals (RentCafe / Entrata / RealPage / Jonah)","category":"commerce-social","description":"Extracts apartment floor plans, square footage, and lease pricing from RentCafe, Entrata, RealPage, and Jonah Systems multifamily portals while honoring Disallow: /*.ashx.","domains":["*.rentcafe.com","*.entrata.com","*.realpage.com","www.canvasatmidlothian.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.canvasatmidlothian.com/"],"htmlRoutes":[{"id":"multifamily-portals","match":{"exactSegments":false},"mode":"multifamily_portals_html"}]},{"id":"municipal-cms-pack","name":"Municipal CMS Pack (Revize & OpenCities)","category":"public-records","description":"Universal HTML extractor for Revize and Granicus OpenCities (formerly Vision Internet) municipal government portals.","domains":["www.maplevalleywa.gov","www.reno.gov","www.culvercity.gov","www.glendaleaz.gov"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.maplevalleywa.gov/government/city_council_meetings_agendas_and_minutes.php","https://www.culvercity.gov/Home","https://www.glendaleaz.gov/Home"],"htmlRoutes":[{"id":"municipal-cms-pack","match":{"exactSegments":false},"mode":"municipal_cms_html"}]},{"id":"municode","name":"Municode Municipal Codes","category":"public-records","description":"Municode API JSON and municipal code library HTML adapter for city and county ordinances.","domains":["library.municode.com","api.municode.com"],"auth_mode":"pub","exampleUrls":["https://library.municode.com/tx/austin/codes/code_of_ordinances","https://api.municode.com/States"],"routes":[{"match":{"hosts":["api.municode.com"],"pathPrefix":"/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"municode_json"}}],"htmlRoutes":[{"id":"municode","match":{"hosts":["library.municode.com"],"exactSegments":false},"mode":"municode_html"}]},{"id":"nasa-apis","name":"NASA Open APIs & Image Library","category":"research-health","description":"NASA api.nasa.gov (APOD, NeoWs, EPIC with DEMO_KEY fallback or configured NASA_API_KEY) and keyless images-api.nasa.gov search.","domains":["api.nasa.gov","images-api.nasa.gov"],"auth_mode":"key","exampleUrls":["https://api.nasa.gov/neo/rest/v1/feed/today?detailed=false","https://api.nasa.gov/planetary/apod?date=2024-07-04","https://images-api.nasa.gov/search?q=apollo+11&page_size=2"],"routes":[{"match":{"hosts":["api.nasa.gov"],"anyOf":[{"pathPrefix":"/planetary/apod"},{"pathPrefix":"/neo/"},{"pathPrefix":"/EPIC/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}},{"match":{"hosts":["images-api.nasa.gov"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/asset/"},{"pathPrefix":"/metadata/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}}]},{"id":"national-archives","name":"U.S. National Archives (NARA Catalog)","category":"public-records","description":"National Archives and Records Administration (NARA) Catalog API v2 adapter (catalog.archives.gov/api/v2) with HTML fallback.","domains":["catalog.archives.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://catalog.archives.gov/api/v2/records/search?q=constitution","https://catalog.archives.gov/id/1667751"],"routes":[{"match":{"hosts":["catalog.archives.gov"],"pathPrefix":"/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}},{"match":{"hosts":["catalog.archives.gov"],"exactSegments":false,"pathSegments":["id",{"param":"naId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.archives.gov/api/v2/records/search?naId={naId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}}],"htmlRoutes":[{"id":"national-archives","match":{"hosts":["catalog.archives.gov"],"exactSegments":false},"mode":"national_archives_html"}]},{"id":"ncaa-espn","name":"NCAA & ESPN","category":"commerce-social","description":"Extracts NCAA and ESPN sports articles, scoreboards, standings, and public sports API JSON plus HTML JSON-LD and __espnfitt__ / turner_metadata hydration.","domains":["ncaa.com","www.ncaa.com","espn.com","www.espn.com","site.api.espn.com","sports.core.api.espn.com","site.web.api.espn.com","data.ncaa.com","sdataprod.ncaa.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.espn.com/mlb/story/_/id/50328768/free-agency-tracker-offseason-trades-moves-2026-2027","https://www.espn.com/nfl/scoreboard","https://www.ncaa.com/news/football/article/2026-11-25/4-games-storylines-rivalry-week-could-impact-college-football-playoff-bracket","https://sports.core.api.espn.com/v2/sports/football/leagues/nfl"],"routes":[{"match":{"hosts":["sports.core.api.espn.com"],"pathPrefix":"/v2/sports/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.web.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["data.ncaa.com"],"pathPrefix":"/cas/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}}],"htmlRoutes":[{"id":"ncaa-espn","match":{"hosts":["espn.com","www.espn.com","ncaa.com","www.ncaa.com"]},"mode":"ncaa_espn_html"}]},{"id":"nces-ipeds","name":"NCES IPEDS & Urban Institute Education Data","category":"public-records","description":"NCES IPEDS and Digest of Education Statistics HTML adapter with Urban Institute Education Data API JSON support (strict robots).","domains":["nces.ed.gov","educationdata.urban.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nces.ed.gov/ipeds/use-the-data","https://nces.ed.gov/programs/digest/current_tables.asp"],"routes":[{"match":{"hosts":["educationdata.urban.org"],"exactSegments":false,"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"nces_ipeds_json"}}],"htmlRoutes":[{"id":"nces-ipeds","match":{"hosts":["nces.ed.gov","educationdata.urban.org"],"exactSegments":false},"mode":"nces_ipeds_html"}]},{"id":"ncua-credit-unions","name":"NCUA Credit Union Lookup","category":"finance","description":"Extracts NCUA credit union details and call report pages with strict robots.txt enforcement (honoring mapping.ncua.gov Disallow /) and ncua.gov HTML fallback.","domains":["mapping.ncua.gov","ncua.gov","www.ncua.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://ncua.gov/analysis/credit-union-corporate-call-report-data","https://mapping.ncua.gov/CreditUnionDetails/60006"],"routes":[{"match":{"hosts":["mapping.ncua.gov"],"exactSegments":false,"pathSegments":["CreditUnionDetails",{"param":"charter","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mapping.ncua.gov/api/CreditUnionDetails/{charter}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}},{"match":{"hosts":["mapping.ncua.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}}],"htmlRoutes":[{"id":"ncua-credit-unions","match":{"hosts":["ncua.gov","www.ncua.gov","mapping.ncua.gov"],"exactSegments":false},"mode":"ncua_html"}]},{"id":"neogov","name":"NeoGov GovernmentJobs & SchoolJobs","category":"jobs","description":"Extracts structured public-sector job feeds and postings from NeoGov GovernmentJobs and SchoolJobs RSS/JSON/HTML while strictly honoring robots.txt.","domains":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.governmentjobs.com/careers/lacounty/rss","https://www.governmentjobs.com/careers/lacounty","https://www.schooljobs.com/careers/lausd"],"routes":[{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":"/rss","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".rss","exactSegments":false}]},"twin":{"id":"neogov-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"NeoGov Public Sector Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category","department"],"default":"-"},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","department":"{dept}","location":"{loc}","postedAt":"{pubDate}","source":"neogov"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".json","exactSegments":false}]},"twin":{"id":"neogov-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"neogov_json"}}],"htmlRoutes":[{"id":"neogov","mode":"neogov_html","match":{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"exactSegments":false}}]},{"id":"newsletter-archives","name":"Newsletter Archives (Beehiiv / Ghost / Buttondown / Kit)","category":"commerce-social","description":"Extracts Ghost Content API posts, scoped Beehiiv/Ghost/Buttondown RSS feeds, and newsletter archive HTML pages.","domains":["ghost.org","buttondown.com","rss.beehiiv.com","aibrews.beehiiv.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://ghost.org/changelog/rss/","https://ghost.org/changelog/","https://buttondown.com/hillelwayne/rss","https://aibrews.beehiiv.com/"],"routes":[{"match":{"pathPrefix":"/ghost/api/content/posts","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"newsletter_ghost_json"}},{"match":{"hosts":["rss.beehiiv.com"],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["buttondown.com"],"exactSegments":true,"pathSegments":[{"param":"pub","charset":"slug","minLen":1,"maxLen":80},"rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["ghost.org"],"pathEquals":["/changelog/rss","/changelog/rss/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".beehiiv.com","param":"pub"},"pathEquals":["/feed","/rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".ghost.io","param":"pub"},"pathEquals":["/rss","/rss/","/feed","/feed/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}}],"htmlRoutes":[{"id":"newsletter-archives","match":{"exactSegments":false},"mode":"newsletter_archives_html"}]},{"id":"newswire-pack","name":"Newswire Pack (PR Newswire / Business Wire / GlobeNewswire)","category":"commerce-social","description":"Extracts PR Newswire, Business Wire, and GlobeNewswire RSS feeds and NewsArticle HTML press releases.","domains":["www.prnewswire.com","prnewswire.com","www.businesswire.com","businesswire.com","www.globenewswire.com","globenewswire.com"],"auth_mode":"pub","exampleUrls":["https://www.prnewswire.com/rss/news-releases-list.rss","https://www.prnewswire.com/news-releases/binance-secures-in-principle-approval-in-gelephu-mindfulness-city-plans-asia-hub-in-bhutan-302951995.html"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rss/"},{"pathPrefix":"/RssFeed/"},{"pathPrefix":"/feed/"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newswire_rss_xml"}}],"htmlRoutes":[{"id":"newswire-pack","match":{"exactSegments":false},"mode":"newswire_html"}]},{"id":"nfpa","name":"NFPA Standards & Codes (www.nfpa.org)","category":"public-records","description":"Unpacks Sitecore JSS __NEXT_DATA__ storefront-main placeholders (PageTitle, ContentBlock, SplitScreenCalloutComponent, Accordion, TwoColumnVideo) on www.nfpa.org without headless browser rendering, never touching link.nfpa.org or robots-disallowed /en/ and /-/media/.","domains":["www.nfpa.org"],"exampleUrls":["https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70","https://www.nfpa.org/for-professionals/codes-and-standards/list-of-codes-and-standards/free-access"],"htmlRoutes":[{"id":"nfpa","mode":"sitecore_jss_html","match":{"exactSegments":false,"reservedFirstSegment":["-","ar","en","data","standard_items"]}}]},{"id":"nhl-api","name":"NHL Web API","category":"commerce-social","description":"Extracts public NHL standings, schedule, club stats, and gamecenter landing JSON from api-web.nhle.com with nhl.com HTML/JSON-LD fallback.","domains":["api-web.nhle.com","nhl.com","www.nhl.com"],"auth_mode":"pub","exampleUrls":["https://api-web.nhle.com/v1/standings/now","https://api-web.nhle.com/v1/schedule/now","https://api-web.nhle.com/v1/club-stats/TOR/now","https://api-web.nhle.com/v1/gamecenter/2024020001/landing"],"routes":[{"match":{"hosts":["api-web.nhle.com"],"anyOf":[{"pathPrefix":"/v1/standings"},{"pathPrefix":"/v1/schedule"},{"pathPrefix":"/v1/club-stats/"},{"pathPrefix":"/v1/gamecenter/"},{"pathPrefix":"/v1/player/"},{"pathPrefix":"/v1/roster/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nhl_api_json"}}],"htmlRoutes":[{"id":"nhl-api","mode":"nhl_api_html","match":{"hosts":["nhl.com","www.nhl.com"],"exactSegments":false}}]},{"id":"nhtsa-vpic-recalls","name":"NHTSA vPIC & Safety Recalls API","category":"public-records","description":"Formats keyless vpic.nhtsa.dot.gov VIN decode and api.nhtsa.gov vehicle recalls & complaints JSON endpoints into structured Markdown tables (respecting HTTP 403/robots.txt without bypass).","domains":["vpic.nhtsa.dot.gov","api.nhtsa.gov"],"exampleUrls":["https://vpic.nhtsa.dot.gov/api/vehicles/decodevinvalues/1HGCM82633A004352?format=json","https://api.nhtsa.gov/recalls/recallsByVehicle?make=honda&model=accord&modelYear=2020"],"routes":[{"match":{"hosts":["vpic.nhtsa.dot.gov"],"exactSegments":true,"pathSegments":["api","vehicles",{"param":"endpoint","allowValues":["decodevinvalues","decodevinvaluesextended"]},{"param":"vin","charset":"alnum","minLen":3,"maxLen":32}]},"twin":{"fetchUrl":"https://vpic.nhtsa.dot.gov/api/vehicles/{endpoint}/{vin}?format=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["Results","Message"],"vars":{"vinOut":{"paths":["Results.0.VIN"],"fallbackTemplate":"{vin}"},"make":{"paths":["Results.0.Make"],"trim":true},"model":{"paths":["Results.0.Model"],"trim":true},"modelYear":{"paths":["Results.0.ModelYear"],"trim":true},"vehicleType":{"paths":["Results.0.VehicleType"],"trim":true},"bodyClass":{"paths":["Results.0.BodyClass"],"trim":true},"plantCountry":{"paths":["Results.0.PlantCountry"],"trim":true},"engineCylinders":{"paths":["Results.0.EngineCylinders"],"trim":true},"displacementL":{"paths":["Results.0.DisplacementL"],"trim":true},"fuelType":{"paths":["Results.0.FuelTypePrimary"],"trim":true},"errorCode":{"paths":["Results.0.ErrorCode"],"trim":true},"errorText":{"paths":["Results.0.ErrorText"],"trim":true},"message":{"paths":["Message"],"trim":true}},"titleTemplate":"{modelYear} {make} {model} — VIN {vinOut}","titleWhenVar":"make","titleFallbackTemplate":"NHTSA vPIC VIN Decode ({vinOut})","bullets":[{"label":"VIN","template":"`{vinOut}`"},{"label":"Make","template":"{make}","whenVar":"make"},{"label":"Model","template":"{model}","whenVar":"model"},{"label":"Model Year","template":"{modelYear}","whenVar":"modelYear"},{"label":"Vehicle Type","template":"{vehicleType}","whenVar":"vehicleType"},{"label":"Body Class","template":"{bodyClass}","whenVar":"bodyClass"},{"label":"Plant Country","template":"{plantCountry}","whenVar":"plantCountry"},{"label":"Engine Cylinders","template":"{engineCylinders}","whenVar":"engineCylinders"},{"label":"Displacement (L)","template":"{displacementL}","whenVar":"displacementL"},{"label":"Fuel Type","template":"{fuelType}","whenVar":"fuelType"},{"label":"Error Code","template":"`{errorCode}`","whenVar":"errorCode"},{"label":"Error Text","template":"{errorText}","whenVar":"errorText"},{"label":"Message","template":"{message}","whenVar":"message"}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/recalls/recallsByVehicle","/recalls/recallsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["Count","count"],"format":"int_comma","default":"0"},"message":{"paths":["Message","message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Recalls ({count} found)","introVar":"message","sections":[{"heading":"Recalls","arrayPath":"results","limit":50,"emptyText":"No recalls found.","columns":[{"header":"Campaign","paths":["NHTSACampaignNumber"],"code":true},{"header":"Date","paths":["ReportReceivedDate"]},{"header":"Component","paths":["Component"]},{"header":"Summary","paths":["Summary"],"sliceMax":240},{"header":"Consequence","paths":["Consequence"],"sliceMax":240},{"header":"Remedy","paths":["Remedy"],"sliceMax":240}]}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/complaints/complaintsByVehicle","/complaints/complaintsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["count","Count"],"format":"int_comma","default":"0"},"message":{"paths":["message","Message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Complaints ({count} found)","introVar":"message","sections":[{"heading":"Complaints","arrayPath":"results","limit":50,"emptyText":"No complaints found.","columns":[{"header":"ODI Number","paths":["odiNumber"],"code":true},{"header":"Date","paths":["dateOfIncident"]},{"header":"Components","paths":["components"]},{"header":"Summary","paths":["summary"],"sliceMax":240},{"header":"Crash","paths":["crash"]},{"header":"Fire","paths":["fire"]}]}]}}]},{"id":"nist-nvd","name":"NIST National Vulnerability Database (NVD)","category":"developer","description":"Upgrades nvd.nist.gov CVE pages to the keyless NVD REST v2 JSON API with CVSS scores, CWEs, and vendor advisories.","domains":["nvd.nist.gov","www.nvd.nist.gov"],"exampleUrls":["https://nvd.nist.gov/vuln/detail/CVE-2024-3094"],"match":{"exactSegments":false,"pathSegments":["vuln","detail",{"param":"cveId","charset":"cve_id","transform":"upper"}]},"twin":{"fetchUrl":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId={cveId}","kind":"json","accept":"application/json"},"extract":{"rootPath":"vulnerabilities.0.cve","requireFields":["id"],"vars":{"id":{"paths":["id"]},"desc":{"findInArrayLang":{"arrayPath":"descriptions","langField":"lang","langValue":"en","valueField":"value"},"trim":true},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"baseScore":{"paths":["metrics.cvssMetricV40.0.cvssData.baseScore","metrics.cvssMetricV31.0.cvssData.baseScore","metrics.cvssMetricV30.0.cvssData.baseScore"]},"severity":{"paths":["metrics.cvssMetricV40.0.cvssData.baseSeverity","metrics.cvssMetricV40.0.baseSeverity","metrics.cvssMetricV31.0.cvssData.baseSeverity","metrics.cvssMetricV31.0.baseSeverity","metrics.cvssMetricV30.0.cvssData.baseSeverity","metrics.cvssMetricV30.0.baseSeverity"]},"vector":{"paths":["metrics.cvssMetricV40.0.cvssData.vectorString","metrics.cvssMetricV31.0.cvssData.vectorString","metrics.cvssMetricV30.0.cvssData.vectorString"]},"titleWithScore":{"template":"{id} ({severity} {baseScore})","whenVars":["severity","baseScore"]},"titleSevOnly":{"template":"{id} ({severity})","whenVars":["severity"]},"titleFull":{"template":"{titleWithScore}","whenVars":["titleWithScore"],"fallbackVar":"titleSevOnly"},"cvssScoreOnly":{"template":"**{baseScore}**","whenVars":["baseScore"]},"cvssScoreVec":{"template":"**{baseScore}** — `{vector}`","whenVars":["baseScore","vector"],"fallbackVar":"cvssScoreOnly"},"cvssScoreSev":{"template":"**{baseScore}** ({severity})","whenVars":["baseScore","severity"],"fallbackVar":"cvssScoreVec"},"cvssDisplay":{"template":"**{baseScore}** ({severity}) — `{vector}`","whenVars":["baseScore","severity","vector"],"fallbackVar":"cvssScoreSev"},"cwes":{"nestedSubValues":{"arrayPath":"weaknesses","subArrayField":"description","valueField":"value","excludeValues":["NVD-CWE-noinfo"],"join":", "}},"published":{"paths":["published"]},"publishedDate":{"paths":["published"],"sliceMax":10},"vulnStatus":{"paths":["vulnStatus"]},"cisaExploit":{"paths":["cisaExploitAdd"]}},"titleTemplate":"{titleFull}","titleWhenVar":"severity","titleFallbackTemplate":"{id}","descriptionVar":"descShort","publishedTimeVar":"published","bullets":[{"label":"CVSS Score","template":"{cvssDisplay}","whenVar":"cvssDisplay"},{"label":"Status","template":"{vulnStatus}","whenVar":"vulnStatus"},{"label":"Published","template":"{publishedDate}","whenVar":"publishedDate"},{"label":"Weaknesses (CWE)","template":"{cwes}","whenVar":"cwes"},{"label":"CISA KEV (Known Exploited)","template":"Added {cisaExploit}","whenVar":"cisaExploit"}],"sections":[{"heading":"Summary","textVar":"desc"},{"heading":"References & Advisories","arrayPath":"references","limit":15,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refTags":{"paths":["tags"],"join":", "}},"columns":[{"header":"URL","template":"{refUrl}"},{"header":"Tags","template":"{refTags}"}]}]}},{"id":"noaa-ncei-cdo","name":"NOAA NCEI Climate Data Online (CDO)","category":"research-health","description":"NOAA National Centers for Environmental Information CDO API v2 (token header) on www.ncei.noaa.gov with HTML fallback.","domains":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"auth_mode":"key","exampleUrls":["https://www.ncei.noaa.gov/cdo-web/api/v2/datasets?limit=2","https://www.ncei.noaa.gov/cdo-web/"],"routes":[{"match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov"],"pathPrefix":"/cdo-web/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"noaa_ncei_cdo_json"}}],"htmlRoutes":[{"id":"noaa-ncei-cdo","match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"exactSegments":false},"mode":"noaa_ncei_html"}]},{"id":"noaa-tides-currents","name":"NOAA Tides & Currents (CO-OPS)","category":"research-health","description":"NOAA Center for Operational Oceanographic Products and Services (CO-OPS) DataGetter and station metadata JSON APIs with stationhome HTML fallback.","domains":["tidesandcurrents.noaa.gov","api.tidesandcurrents.noaa.gov"],"auth_mode":"pub","exampleUrls":["https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=latest&station=8518750&product=water_level&datum=MLLW&time_zone=gmt&units=english&format=json","https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/8518750.json","https://tidesandcurrents.noaa.gov/stationhome.html?id=8518750"],"routes":[{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathEquals":["/api/prod/datagetter"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathPrefix":"/mdapi/prod/webapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["tidesandcurrents.noaa.gov"],"pathEquals":["/stationhome.html"],"queryParams":[{"name":"id","param":"stationId","charset":"digits","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/{stationId}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}}],"htmlRoutes":[{"id":"noaa-tides-currents","match":{"hosts":["tidesandcurrents.noaa.gov"],"exactSegments":false},"mode":"noaa_tides_html"}]},{"id":"notion-public-site","name":"Notion Public Sites","category":"developer","description":"Extracts public Notion site pages (*.notion.site and www.notion.so) via POST /api/v3/loadCachedPageChunk with fail-closed SSR HTML fallback.","domains":["www.notion.so"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://matt-mike.notion.site/Matt-Mike-Data-Analyst-Portfolio-201029b2366680969986e484d1aa4373"],"routes":[{"match":{"hostSubdomain":{"suffix":".notion.site","param":"siteSub"},"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}},{"match":{"hosts":["www.notion.so","notion.so"],"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}}],"htmlRoutes":[{"id":"notion-public-site","match":{"exactSegments":false},"mode":"notion_public_site_html"}]},{"id":"npm-registry","name":"npm Package Registry","category":"developer","description":"Upgrades npmjs.com package pages to registry.npmjs.org JSON metadata, TypeScript declarations, dependency list, and README.","domains":["npmjs.com","www.npmjs.com"],"exampleUrls":["https://www.npmjs.com/package/@cfworker/json-schema"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/@{scopeNoAt}%2F{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}},{"match":{"anyOf":[{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}}]},{"id":"nppes-npi","name":"NPPES NPI Registry","category":"research-health","description":"CMS National Plan and Provider Enumeration System (NPPES) NPI Registry v2.1 JSON API adapter with Angular SPA shell rejection.","domains":["npiregistry.cms.hhs.gov"],"auth_mode":"pub","exampleUrls":["https://npiregistry.cms.hhs.gov/api/?version=2.1&number=1003000126","https://npiregistry.cms.hhs.gov/provider-view/1003000126"],"routes":[{"match":{"pathEquals":["/api","/api/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"version":"2.1"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-view",{"param":"npi","charset":"digits","minLen":10,"maxLen":10}]},"twin":{"fetchUrl":"https://npiregistry.cms.hhs.gov/api/?version=2.1&number={npi}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}}],"htmlRoutes":[{"id":"nppes-npi","match":{"pathPrefix":"/provider-view/","exactSegments":false},"mode":"nppes_npi_html"}]},{"id":"npr-pbs","name":"NPR & PBS NewsHour","category":"commerce-social","description":"Extracts NPR/PBS RSS XML feeds, text.npr.org stories, and NPR/PBS article HTML.","domains":["www.npr.org","npr.org","text.npr.org","feeds.npr.org","www.pbs.org","pbs.org"],"auth_mode":"html","exampleUrls":["https://feeds.npr.org/1001/rss.xml","https://www.pbs.org/newshour/feeds/rss/headlines","https://www.pbs.org/newshour/nation"],"routes":[{"match":{"hosts":["feeds.npr.org"],"pathSuffix":".xml","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}},{"match":{"hosts":["www.pbs.org","pbs.org"],"pathPrefix":"/newshour/feeds/rss/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}}],"htmlRoutes":[{"id":"npr-pbs","match":{"exactSegments":false},"mode":"npr_pbs_html"}]},{"id":"nps","name":"National Park Service (NPS)","category":"public-records","description":"National Park Service developer.nps.gov v1 JSON API (via DATA_GOV_API_KEY) with www.nps.gov HTML fallback.","domains":["developer.nps.gov","www.nps.gov","nps.gov"],"auth_mode":"key","exampleUrls":["https://www.nps.gov/yell/index.htm","https://developer.nps.gov/api/v1/parks?parkCode=yell&limit=1"],"routes":[{"match":{"hosts":["developer.nps.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nps_json"}},{"match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":true,"pathSegments":[{"param":"parkCode","charset":"alnum","minLen":4,"maxLen":4,"reserved":["news","plan","maps","fees","find","jobs","kids","faqs","more","docs","help","info","blog","home","data","form","apps","page"],"transform":"lower"},"index.htm"]},"twin":{"fetchUrl":"https://developer.nps.gov/api/v1/parks?parkCode={parkCode}&limit=5","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nps_json"}}],"htmlRoutes":[{"id":"nps","match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":false},"mode":"nps_html"}]},{"id":"nuget-gallery","name":"NuGet Gallery","category":"developer","description":"Upgrades nuget.org/packages/[/] pages to the official api.nuget.org v3 registration JSON API (supporting both inlined catalogEntry pages and un-inlined CatalogPage stubs).","domains":["www.nuget.org","nuget.org"],"exampleUrls":["https://www.nuget.org/packages/Newtonsoft.Json","https://www.nuget.org/packages/Newtonsoft.Json/13.0.3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"},{"param":"ver","charset":"url_seg","reserved":["ReportAbuse","ContactOwners","versions"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}},{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}}]},{"id":"nyt-api","name":"New York Times API & News","category":"commerce-social","description":"Official NYT Developer API (Article Search, Top Stories, Most Popular) with NYT_API_KEY and NewsArticle HTML fallback.","domains":["api.nytimes.com","www.nytimes.com","nytimes.com"],"auth_mode":"key","exampleUrls":["https://api.nytimes.com/svc/topstories/v2/home.json","https://www.nytimes.com/"],"routes":[{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSegments":["svc","search","v2","articlesearch.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","topstories","v2",{"param":"section","charset":"slug","stripSuffix":".json","minLen":2,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","mostpopular","v2",{"param":"kind","allowValues":["emailed","shared","viewed"]},{"param":"period","charset":"digits","stripSuffix":".json","allowValues":["1","7","30"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}}],"htmlRoutes":[{"id":"nyt-api","match":{"hosts":["www.nytimes.com","nytimes.com"],"exactSegments":false},"mode":"nyt_html"}]},{"id":"okendo","name":"Okendo Product Reviews","category":"commerce-social","description":"Extracts public Okendo product review and review aggregate JSON payloads without preempting storefront HTML extractors.","domains":["api.okendo.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.okendo.io/v1/stores/892ce72b-10d2-4dd3-a7ab-e2dfdee9d001/products/shopify-6861943013449/reviews?limit=10"],"routes":[{"match":{"anyOf":[{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},{"param":"endpoint","allowValues":["reviews","review_aggregate"]}]},{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"reviews"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"okendo_reviews"}}],"htmlRoutes":[{"id":"okendo","match":{"exactSegments":false},"mode":"okendo_html"}]},{"id":"openalex","name":"OpenAlex Scholarly Works","category":"research-health","description":"Upgrades openalex.org work URLs to api.openalex.org JSON with reconstructed abstracts, citations, open-access PDF links, and topics.","domains":["openalex.org","www.openalex.org","api.openalex.org"],"exampleUrls":["https://openalex.org/W2741809807","https://openalex.org/works/W2741809807"],"match":{"anyOf":[{"exactSegments":false,"pathSegments":["works",{"param":"workId","charset":"openalex_work","transform":"upper"}]},{"exactSegments":false,"pathSegments":[{"param":"workId","charset":"openalex_work","transform":"upper"}]}]},"twin":{"fetchUrl":"https://api.openalex.org/works/{workId}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["display_name","title"],"requireVars":["title"],"vars":{"title":{"paths":["display_name","title"],"trim":true},"pubDate":{"paths":["publication_date"]},"citedBy":{"paths":["cited_by_count"],"format":"int_comma"},"doi":{"paths":["doi"]},"oaUrl":{"paths":["open_access.oa_url"],"requireHttps":true},"authors":{"paths":["authorships"],"subField":"author.display_name","limit":15,"join":", "},"authorsShort":{"paths":["authorships"],"subField":"author.display_name","limit":4,"join":", "},"abstract":{"paths":["abstract_inverted_index"],"format":"inverted_abstract"},"abstractShort":{"paths":["abstract_inverted_index"],"format":"inverted_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"OpenAlex ID","template":"`{workId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Citations","template":"{citedBy}","whenVar":"citedBy"},{"label":"DOI","template":"{doi}","whenVar":"doi"},{"label":"Open Access PDF","template":"{oaUrl}","whenVar":"oaUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["doi","oaUrl"]}},{"id":"opencorporates","name":"OpenCorporates Company Registry","category":"public-records","description":"Upgrades opencorporates.com company pages to key-authenticated OpenCorporates API v0.4 JSON with clean public HTML attributes fallback when unconfigured.","domains":["opencorporates.com","www.opencorporates.com","api.opencorporates.com"],"auth_mode":"key","exampleUrls":["https://opencorporates.com/companies/us_de/3857729","https://api.opencorporates.com/v0.4/companies/us_de/3857729"],"routes":[{"match":{"hosts":["opencorporates.com","www.opencorporates.com"],"exactSegments":false,"pathSegments":["companies",{"param":"jurisdiction","charset":"alnum_dash","minLen":2,"maxLen":16},{"param":"companyNumber","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.opencorporates.com/v0.4/companies/{jurisdiction}/{companyNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}},{"match":{"hosts":["api.opencorporates.com"],"pathPrefix":"/v0.4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}}],"htmlRoutes":[{"id":"opencorporates","match":{"hosts":["opencorporates.com","www.opencorporates.com"],"pathPrefix":"/companies/","exactSegments":false},"mode":"opencorporates_html"}]},{"id":"opendatasoft","name":"Opendatasoft Open Data Portals (Explore API v2.1)","category":"public-records","description":"Universal Opendatasoft adapter: /explore/dataset// pages and /api/explore/v2.1/catalog/datasets(/) upgrade to dataset metadata (publisher, license, record count, field schema, records/CSV API links); /records URLs render rows as a table while enforcing strict robots.txt compliance.","domains":["public.opendatasoft.com","*.opendatasoft.com","data.townofcary.org","data.jerseycitynj.gov"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://public.opendatasoft.com/explore/dataset/us-state-boundaries/","https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/us-state-boundaries/records?limit=3&select=name,stusab,region,division","https://data.townofcary.org/api/explore/v2.1/catalog/datasets?limit=3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160},"records"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_records_json"}},{"match":{"pathEquals":["/api/explore/v2.1/catalog/datasets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":false,"pathSegments":["explore","dataset",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}}]},{"id":"openfda","name":"openFDA Recalls, Labels & Adverse Events API","category":"research-health","description":"Formats keyless api.fda.gov JSON endpoints (drug/food/device enforcement recalls, drug labels, and adverse events) into clean Markdown tables.","domains":["api.fda.gov"],"exampleUrls":["https://api.fda.gov/food/enforcement.json?limit=5"],"match":{"pathSuffix":".json","pathSegments":[{"param":"endpointLabel","charset":"safe_subpath","greedy":true,"stripSuffix":".json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["results"],"vars":{"resultsCount":{"paths":["results"],"format":"array_len"},"total":{"paths":["meta.results.total"],"format":"int_comma","fallbackTemplate":"{resultsCount}"},"isRecall":{"paths":["results.0.recall_number","results.0.reason_for_recall"]}},"titleTemplate":"openFDA {endpointLabel} ({resultsCount} of {total} records)","sections":[{"heading":"","whenVar":"isRecall","arrayPath":"results","limit":25,"columns":[{"header":"Recall #","paths":["recall_number"],"code":true},{"header":"Class","paths":["classification"]},{"header":"Status","paths":["status"]},{"header":"Firm","paths":["recalling_firm"]},{"header":"Reason","paths":["reason_for_recall"]}]},{"heading":"","unlessVar":"isRecall","subsectionsArrayPath":"results","limit":10,"subsectionHeadingTemplate":"{recHeading}","subsectionSubkeys":["indications_and_usage","warnings","boxed_warning","dosage_and_administration","adverse_reactions"],"itemVars":{"brand":{"paths":["openfda.brand_name.0"]},"generic":{"paths":["openfda.generic_name.0"]},"genericParens":{"template":"({generic})","whenVars":["generic"]},"brandAndGeneric":{"template":"{brand} {genericParens}","whenVars":["brand","genericParens"],"fallbackVar":"brand"},"brandOrGeneric":{"template":"{brandAndGeneric}","whenVars":["brandAndGeneric"],"fallbackVar":"genericParens"},"recFallback":{"template":"Record #{index1}"},"recHeading":{"template":"{brandOrGeneric}","whenVars":["brandOrGeneric"],"fallbackVar":"recFallback"}}}]}},{"id":"openfoodfacts","name":"Open Food Facts Products","category":"commerce-social","description":"Extracts barcode, brand, Nutri-Score, NOVA group, ingredients, and nutrition facts from world.openfoodfacts.org/product/ (respecting robots.txt on /api).","domains":["world.openfoodfacts.org","openfoodfacts.org","*.openfoodfacts.org"],"exampleUrls":["https://world.openfoodfacts.org/product/3017620422003"],"htmlRoutes":[{"id":"openfoodfacts","match":{"exactSegments":false,"pathSegments":["product",{"param":"barcode","charset":"digits","minLen":6,"maxLen":16}]},"mode":"dom","jsonLdTypes":["Product"],"requireVars":["title"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"cssText":["h1"]},"brand":{"jsonLdPaths":["brand.name","brand"]},"nutriscore":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"Nutri-Score\\s*([A-E])\\b","group":1,"transform":"upper"}},"nova":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"NOVA\\s*([1-4])\\b","group":1}},"ingredientsLd":{"jsonLdPaths":["description"]},"ingredients":{"cssText":["#panel_ingredients_content"],"fallbackVar":"ingredientsLd"},"descShort":{"fallbackVar":"ingredients","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Barcode (GTIN)","template":"`{barcode}`"},{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"Nutri-Score","template":"**{nutriscore}**","whenVar":"nutriscore"},{"label":"NOVA Food Processing Group","template":"{nova}","whenVar":"nova"}],"sections":[{"heading":"Ingredients & Summary","textVar":"ingredients"}],"appendCurrentMdDelta":{"baseVar":"ingredients","minExtraChars":120}}]},{"id":"opengov-portals","name":"OpenGov Transparency & Procurement Portals","category":"public-records","description":"Extracts fiscal transparency datasets, window.gon/Zeus hydration, and public API data from OpenGov portals while classifying Cloudflare challenges honestly.","domains":["*.opengov.com"],"auth_mode":"pub","exampleUrls":["https://torranceca.opengov.com/api/v1/reports","https://torranceca.opengov.com/transparency","https://sanbernardinoca.opengov.com/transparency"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v1/"},{"pathPrefix":"/api/v2/"},{"pathPrefix":"/transparency/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opengov_json"}}],"htmlRoutes":[{"id":"opengov-portals","match":{"exactSegments":false},"mode":"opengov_html"}]},{"id":"openrouter","name":"OpenRouter AI Model Catalog","category":"genai","description":"Upgrades OpenRouter model pages to keyless /api/v1/models specs (context window, token pricing, modalities, and tool support).","domains":["openrouter.ai"],"exampleUrls":["https://openrouter.ai/anthropic/claude-sonnet-5.5","https://openrouter.ai/models/qwen/qwen4-max"],"match":{"anyOf":[{"exactSegments":true,"pathSegments":["models",{"param":"org","charset":"pkg"},{"param":"slug","charset":"model_slug"}]},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["docs","rankings","chat","activity","settings","keys","credits","privacy","terms","about","blog","pricing","providers"]},{"param":"slug","charset":"model_slug"}]}]},"twin":{"fetchUrl":"https://openrouter.ai/api/v1/models","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{org}/{slug}","ignoreCase":true},"vars":{"id":{"paths":["id"]},"name":{"paths":["name"],"fallbackTemplate":"{org}/{slug}","trim":true},"ctxLen":{"paths":["context_length"],"format":"int_comma"},"maxOut":{"paths":["top_provider.max_completion_tokens"],"format":"int_comma"},"promptPrice":{"paths":["pricing.prompt"],"format":"usd_per_million_tokens"},"compPrice":{"paths":["pricing.completion"],"format":"usd_per_million_tokens"},"modality":{"paths":["architecture.modality"]},"params":{"paths":["supported_parameters"],"join":"`, `","limit":14},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"Model ID","template":"`{id}`"},{"label":"Context Window","template":"{ctxLen} tokens","whenVar":"ctxLen"},{"label":"Max Output","template":"{maxOut} tokens","whenVar":"maxOut"},{"label":"Input Pricing","template":"{promptPrice}","whenVar":"promptPrice"},{"label":"Output Pricing","template":"{compPrice}","whenVar":"compPrice"},{"label":"Modality","template":"`{modality}`","whenVar":"modality"},{"label":"Supported Parameters","template":"`{params}`","whenVar":"params"}],"sections":[{"heading":"Description","textVar":"desc"}]}},{"id":"openstreetmap","name":"OpenStreetMap (Nominatim & Overpass)","category":"public-records","description":"OpenStreetMap Nominatim geocoding and Overpass API JSON adapter enforcing strict 1 req/s pacing, identifying User-Agent, and strict robots.txt politeness.","domains":["www.openstreetmap.org","openstreetmap.org","nominatim.openstreetmap.org","overpass-api.de"],"auth_mode":"pub","user_agent_profile":"openstreetmap","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.openstreetmap.org/about","https://www.openstreetmap.org/copyright"],"routes":[{"match":{"hosts":["nominatim.openstreetmap.org"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/reverse"},{"pathPrefix":"/lookup"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"jsonv2"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"openstreetmap_json"}},{"match":{"hosts":["overpass-api.de"],"pathPrefix":"/api/interpreter"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openstreetmap_json"}}],"htmlRoutes":[{"id":"openstreetmap","match":{"hosts":["www.openstreetmap.org","openstreetmap.org"],"exactSegments":false},"mode":"openstreetmap_html"}]},{"id":"oracle-commerce","name":"Oracle Commerce Cloud (ccstore)","category":"commerce-social","description":"Extracts Oracle Commerce Cloud /ccstore/v1 and /ccstoreui/v1 product and search JSON endpoints plus storefront HTML/companion twins.","domains":["www.dollartree.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.dollartree.com/ccstore/v1/products/805937","https://www.dollartree.com/ccstore/v1/search?Ntt=bag"],"routes":[{"match":{"pathSegments":["ccstore","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathSegments":["ccstoreui","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathEquals":["/ccstore/v1/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}}],"htmlRoutes":[{"id":"oracle-commerce","match":{"exactSegments":false},"mode":"oracle_commerce_html"}]},{"id":"os-package-pack","name":"OS Package Pack (Flathub, Snapcraft, AUR, Winget, Chocolatey)","category":"developer","description":"Extracts OS package metadata and newest stable versions from Flathub, Snapcraft (Snap-Device-Series: 16), Arch AUR RPC v5, Winget, and Chocolatey.","domains":["flathub.org","snapcraft.io","api.snapcraft.io","aur.archlinux.org","winget.run","api.winget.run","community.chocolatey.org"],"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://flathub.org/apps/org.mozilla.firefox","https://snapcraft.io/firefox","https://aur.archlinux.org/packages/yay","https://winget.run/pkg/Microsoft/PowerToys"],"routes":[{"match":{"hosts":["flathub.org"],"pathPrefix":"/api/v2/appstream/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["flathub.org"],"exactSegments":false,"pathSegments":["apps",{"param":"appId","charset":"pkg","minLen":3,"maxLen":160}]},"twin":{"fetchUrl":"https://flathub.org/api/v2/appstream/{appId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["api.snapcraft.io"],"pathPrefix":"/v2/snaps/info/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://api.snapcraft.io/v2/snaps/info/{snap}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["aur.archlinux.org"],"pathPrefix":"/rpc/v5/info"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["aur.archlinux.org"],"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://aur.archlinux.org/rpc/v5/info?arg[]={pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["api.winget.run"],"pathPrefix":"/v2/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["winget.run"],"exactSegments":false,"pathSegments":["pkg",{"param":"publisher","charset":"pkg","minLen":1,"maxLen":120},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.winget.run/v2/packages/{publisher}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/api/v2/Packages"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"chocolatey_xml"}}],"htmlRoutes":[{"id":"os-package-pack","match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"mode":"snapcraft_html"},{"id":"os-package-pack","match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/packages/","exactSegments":false},"mode":"chocolatey_html"}]},{"id":"osv-ghsa","name":"OSV & GitHub Security Advisories","category":"developer","description":"Upgrades osv.dev/vulnerability/ and github.com/advisories/GHSA-* pages to the keyless api.osv.dev/v1/vulns JSON API with canonical lowercase GHSA IDs and bounded affected-version slices.","domains":["osv.dev","www.osv.dev","github.com"],"exampleUrls":["https://osv.dev/vulnerability/GHSA-jfh8-c2jp-5v3q","https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"],"routes":[{"match":{"hosts":["osv.dev","www.osv.dev"],"exactSegments":false,"pathSegments":["vulnerability",{"param":"vulnId","charset":"url_seg","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/{vulnId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (OSV Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl"]}},{"match":{"hosts":["github.com"],"exactSegments":true,"pathPrefix":"/advisories/GHSA-","pathSegments":["advisories",{"param":"ghsaBody","stripPrefix":"GHSA-","charset":"alnum_dash","minLen":14,"maxLen":14,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/GHSA-{ghsaBody}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"ghsaUrl":{"template":"https://github.com/advisories/GHSA-{ghsaBody}","requireHttps":true},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (GitHub Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl","ghsaUrl"]}}]},{"id":"outdoor-retail-specs","name":"Outdoor & Cycling Retail Spec Extractor","category":"commerce-social","description":"Strictly rate-limited and robots-enforced HTML adapter for REI, Backcountry, and Competitive Cyclist product pages and technical specification tables.","domains":["rei.com","www.rei.com","backcountry.com","www.backcountry.com","competitivecyclist.com","www.competitivecyclist.com"],"auth_mode":"html","min_interval_ms":5000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.rei.com/product/230456/co-op-cycles-adv-22-bike","https://www.backcountry.com/santa-cruz-bicycles-hightower-c-s-mountain-bike","https://www.competitivecyclist.com/cervelo-caledonia-105-road-bike"],"htmlRoutes":[{"id":"outdoor-retail-specs","match":{"exactSegments":false},"mode":"outdoor_retail_specs_html"}]},{"id":"pacer-case-locator","name":"PACER Case Locator","category":"public-records","description":"Extracts public PACER informational and case-finder pages on pacer.uscourts.gov while honestly classifying login-gated portals (pcl.uscourts.gov, pacer.login.uscourts.gov) as login_wall.","domains":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"],"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://pacer.uscourts.gov/find-case","https://pacer.uscourts.gov/","https://pcl.uscourts.gov/pcl/index.jsf"],"htmlRoutes":[{"id":"pacer-case-locator","match":{"hosts":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"]},"mode":"pacer_case_locator_html"}]},{"id":"packagist","name":"Packagist PHP Composer Registry","category":"developer","description":"Upgrades packagist.org PHP Composer package pages to their official .json metadata feed.","domains":["packagist.org","www.packagist.org"],"exampleUrls":["https://packagist.org/packages/monolog/monolog"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"vendor","charset":"pkg"},{"param":"pkg","charset":"pkg"}]},"twin":{"fetchUrl":"https://packagist.org/packages/{vendor}/{pkg}.json","kind":"json","accept":"application/json"},"extract":{"rootPath":"package","requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"repo":{"paths":["repository"]},"stableVer":{"paths":["versions"],"firstNonMatchingKey":"dev"},"license":{"dynamicKeyPath":{"base":"versions","keyVar":"stableVer","subPath":"license"},"join":", "}},"titleTemplate":"{name} {stableVer} (Composer)","titleWhenVar":"stableVer","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`composer require {name}`"},{"label":"Latest Version","template":"`{stableVer}`","whenVar":"stableVer"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"paradox-olivia","name":"Paradox Olivia Career Sites","category":"jobs","description":"Extracts JobPosting JSON-LD and __NEXT_DATA__ hydration job listings from Paradox Olivia career sites (*.paradox.ai, jobs.mchire.com, and custom brand portals via universalEngine).","domains":["*.paradox.ai","jobs.mchire.com","www.mchire.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.fedex.com/account-manager-ii/job/P25-397759-1","https://jobs.mchire.com/jobs"],"htmlRoutes":[{"id":"paradox-olivia","mode":"paradox_olivia_html","match":{"exactSegments":false}}]},{"id":"peertube","name":"PeerTube Federated Video Platform (Universal Engine)","category":"commerce-social","description":"Upgrades PeerTube video permalinks (/w/{videoId} and /videos/watch/{videoId}) and /api/v1/videos/* endpoints via JSON API with VideoObject HTML fallback.","domains":["video.blender.org","tilvids.com","framatube.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6","https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6","https://tilvids.com/api/v1/videos/6PsLUGoGiV9isoaHmht6Eu"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64},"captions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["w",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["videos","watch",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}}],"htmlRoutes":[{"id":"peertube","match":{"exactSegments":false},"mode":"peertube_html"}]},{"id":"pinpoint","name":"Pinpoint ATS Job Boards","category":"jobs","description":"Upgrades .pinpointhq.com career portals to /postings.json with compensation, responsibilities, and workplace types.","domains":["*.pinpointhq.com"],"exampleUrls":["https://workwithus.pinpointhq.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["postings",{"param":"postId","charset":"pkg"}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{postId}","endsWithField":"url","endsWithTemplate":"{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name"],"trim":true},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin} – {compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"compMaxOnly":{"template":"{cur} – {compMax}","whenVars":["compMax"]},"compSub":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly"},"comp":{"template":"{compSub}","whenVars":["compSub"],"fallbackVar":"compMaxOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"resp":{"paths":["key_responsibilities"],"format":"html_to_md"},"skills":{"paths":["skills_knowledge_expertise"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Compensation","template":"{comp}","whenVar":"comp"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Key Responsibilities","textVar":"resp"},{"heading":"Skills & Expertise","textVar":"skills"},{"heading":"Benefits","textVar":"benefits"}],"fallbackExtract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}},{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs","postings"],"optional":true}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}]},{"id":"pkg-go-dev","name":"Go Packages (pkg.go.dev)","category":"developer","description":"Extracts Go module README and API documentation sections cleanly from pkg.go.dev.","domains":["pkg.go.dev"],"exampleUrls":["https://pkg.go.dev/github.com/coder/websocket"],"htmlRoutes":[{"match":{"minSegments":1},"mode":"dom","vars":{"title":{"cssText":["title"],"stripSuffix":"- Go Packages"},"readme":{"cssHtmlToMd":["div.UnitReadme-content"]},"docs":{"cssHtmlToMd":["div.Documentation-content"],"replaceAll":{"from":"¶","to":""}}},"requireBulletsOrVars":["readme","docs"],"titleTemplate":"{title}","sections":[{"heading":"Overview / README","textVar":"readme"},{"heading":"Documentation","textVar":"docs"}]}]},{"id":"pm-listing-widgets","name":"Property Management Listing Widgets (Buildium / Propertyware / RentManager)","category":"commerce-social","description":"Extracts public rental unit listings, rent pricing, bed/bath counts, and detail links from Buildium (managebuilding.com), Propertyware, and RentManager portals.","domains":["*.managebuilding.com","*.propertyware.com","*.rentmanager.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://portland.managebuilding.com/Resident/public/rentals","https://hannibalrentals.managebuilding.com/Resident/public/rentals"],"htmlRoutes":[{"id":"pm-listing-widgets","match":{"exactSegments":false},"mode":"pm_listing_widgets_html"}]},{"id":"podcasts-apple-lookup","name":"Apple Podcasts & iTunes Lookup","category":"commerce-social","description":"Extracts iTunes Lookup JSON for podcast metadata and Apple Podcasts HTML schema:show + serialized-server-data without cross-domain twins.","domains":["podcasts.apple.com","itunes.apple.com"],"auth_mode":"pub","exampleUrls":["https://itunes.apple.com/lookup?id=1200361736&entity=podcast","https://podcasts.apple.com/us/podcast/the-daily/id1200361736"],"routes":[{"match":{"hosts":["itunes.apple.com"],"pathEquals":["/lookup"],"queryParams":[{"name":"id","param":"itunesId","charset":"digits","minLen":3,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"apple_podcast_lookup_json"}}],"htmlRoutes":[{"id":"podcasts-apple-lookup","match":{"hosts":["podcasts.apple.com"],"exactSegments":false},"mode":"podcasts_apple_html"}]},{"id":"polymarket","name":"Polymarket Prediction Markets","category":"finance","description":"Upgrades polymarket.com/event/ pages to gamma-api.polymarket.com JSON with live outcome probabilities, volume, and liquidity.","domains":["polymarket.com","www.polymarket.com"],"exampleUrls":["https://polymarket.com/event/fed-decision-in-december"],"match":{"exactSegments":false,"pathSegments":["event",{"param":"slug","charset":"alnum_dash","minLen":2,"maxLen":140}]},"twin":{"fetchUrl":"https://gamma-api.polymarket.com/events?slug={slug}","kind":"json","accept":"application/json"},"extract":{"unwrapFirstArrayElement":true,"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"vol":{"paths":["volume"],"format":"usd_compact"},"liq":{"paths":["liquidity"],"format":"usd_compact"},"endDate":{"paths":["endDate"],"sliceMax":10},"status":{"paths":["closed"],"format":"bool_map","trueValue":"Closed / Resolved","falseValue":"Active"}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Status","template":"{status}"},{"label":"Total Volume","template":"{vol}","whenVar":"vol"},{"label":"Liquidity","template":"{liq}","whenVar":"liq"},{"label":"End Date","template":"{endDate}","whenVar":"endDate"}],"sections":[{"heading":"Market Odds","arrayPath":"markets","limit":25,"columns":[{"header":"Market / Outcome","paths":["groupItemTitle","question"],"fallbackVar":"title"},{"header":"Implied Probability","format":"paired_percent","outcomesField":"outcomes","pricesField":"outcomePrices","defaultOutcomes":["Yes","No"]},{"header":"Volume","paths":["volume"],"format":"usd_compact"}]},{"heading":"Resolution Rules","textVar":"desc"}]}},{"id":"popmenu","name":"Popmenu Restaurant Menus","category":"commerce-social","description":"Extracts restaurant menu sections, dishes, descriptions, and prices from Popmenu DOM, Apollo state, and Menu JSON-LD while rejecting Cloudflare challenge interstitials.","domains":["popmenu.com","www.popmenu.com","*.popmenu.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.popmenu.com/"],"htmlRoutes":[{"id":"popmenu","match":{"exactSegments":false},"mode":"popmenu_html"}]},{"id":"powerreviews","name":"PowerReviews Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for PowerReviews Read API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["readservices-b2c.powerreviews.com","www.skechers.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://readservices-b2c.powerreviews.com/m/8162/l/en_US/product/177197/reviews?apikey=412df53d-8be4-4d9e-8657-e8c846f08b1d"],"routes":[{"match":{"hosts":["readservices-b2c.powerreviews.com"],"pathSegments":["m",{"param":"merchantId","charset":"alnum_dash","minLen":1,"maxLen":40},"l",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":24},"product",{"param":"pageId","charset":"pkg","minLen":1,"maxLen":120},"reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"powerreviews_reviews"}}],"htmlRoutes":[{"id":"powerreviews","match":{"exactSegments":false},"mode":"powerreviews_html"}]},{"id":"prestashop","name":"PrestaShop Storefronts","category":"commerce-social","description":"Extracts PrestaShop storefront JSON-LD, data-product attributes, features tables, and ?action=quickview AJAX JSON payloads.","domains":["www.esprit-barbecue.fr"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.esprit-barbecue.fr/barbecues/3364-master-touch-gbs-premium-e-5770-noir-weber-0077924129551.html"],"routes":[{"match":{"anyOf":[{"hosts":["www.esprit-barbecue.fr"],"queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"}]},{"pathSuffix":".html","queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"},{"name":"ajax","param":"ajax","allowValues":["1"],"charset":"digits"}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"prestashop_quickview"}}],"htmlRoutes":[{"id":"prestashop","match":{"exactSegments":false},"mode":"prestashop_html"}]},{"id":"primegov","name":"Rock Solid / Granicus PrimeGov Portals","category":"public-records","description":"Extracts upcoming municipal meetings and agendas from PrimeGov PublicPortal API and HTML views while strictly honoring robots.txt.","domains":["*.primegov.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://okc.primegov.com/api/v2/PublicPortal/ListUpcomingMeetings","https://okc.primegov.com/public/portal"],"routes":[{"match":{"pathPrefix":"/api/v2/PublicPortal/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}},{"match":{"pathEquals":["/public/portal","/public/portal/"]},"twin":{"fetchUrl":"https://{host}/api/v2/PublicPortal/ListUpcomingMeetings","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}}],"htmlRoutes":[{"id":"primegov","match":{"exactSegments":false},"mode":"primegov_html"}]},{"id":"product-feed-discovery","name":"Storefront Product Feed Discovery","category":"commerce-social","description":"Universal XML/Atom/RSS parser for storefront product discovery endpoints (/products.atom, /feed/, and /sitemap_products_*.xml).","domains":["www.gymshark.com","henryrose.com","janji.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.gymshark.com/sitemap_products_1.xml","https://henryrose.com/sitemap_products_1.xml?from=1645692747866&to=15498254843994","https://janji.com/sitemap_products_1.xml?from=310052787&to=15293477683563"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/products.atom","/feed","/feed/"]},{"pathPrefix":"/sitemap_products_","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":4194304},"extract":{"textMode":"product_feed_discovery_xml"}}]},{"id":"propublica-nonprofits","name":"ProPublica Nonprofit Explorer","category":"public-records","description":"Upgrades ProPublica Nonprofit Explorer organization pages to keyless Form 990 JSON API v2 with HTML fallback.","domains":["projects.propublica.org"],"auth_mode":"pub","exampleUrls":["https://projects.propublica.org/nonprofits/organizations/521693387","https://projects.propublica.org/nonprofits/api/v2/organizations/521693387.json"],"routes":[{"match":{"hosts":["projects.propublica.org"],"exactSegments":false,"pathSegments":["nonprofits","organizations",{"param":"ein","charset":"digits","minLen":8,"maxLen":10}]},"twin":{"fetchUrl":"https://projects.propublica.org/nonprofits/api/v2/organizations/{ein}.json","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}},{"match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}}],"htmlRoutes":[{"id":"propublica-nonprofits","match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/","exactSegments":false},"mode":"propublica_nonprofit_html"}]},{"id":"pubchem","name":"PubChem Chemical Compounds (NCBI)","category":"research-health","description":"Upgrades pubchem.ncbi.nlm.nih.gov/compound/ to NCBI PUG-REST compound properties + pharmacological descriptions (with HTML JSON-LD fallback).","domains":["pubchem.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubchem.ncbi.nlm.nih.gov/compound/2244"],"routes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"cid","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{cid}/JSON/?heading=Names+and+Identifiers","kind":"json","accept":"application/json"},"extract":{"rootPath":"Record","requireFields":["RecordTitle"],"vars":{"cidVal":{"paths":["RecordNumber"],"fallbackTemplate":"{cid}"},"recTitle":{"paths":["RecordTitle"],"trim":true,"fallbackTemplate":"Compound {cidVal}"},"formula":{"format":"pubchem_toc","tocHeading":"Molecular Formula"},"iupac":{"format":"pubchem_toc","tocHeading":"IUPAC Name"},"inchiKey":{"format":"pubchem_toc","tocHeading":"InChIKey"},"canonicalSmiles":{"format":"pubchem_toc","tocHeading":"Canonical SMILES"},"smilesRaw":{"format":"pubchem_toc","tocHeading":"SMILES"},"smiles":{"template":"{smilesRaw}","whenVars":["smilesRaw"],"fallbackVar":"canonicalSmiles"},"cas":{"format":"pubchem_toc","tocHeading":"CAS"},"desc":{"format":"pubchem_toc","tocHeading":"Record Description"},"descShort":{"format":"pubchem_toc","tocHeading":"Record Description","sliceMax":260}},"titleTemplate":"{recTitle} (PubChem CID {cidVal})","descriptionVar":"descShort","bullets":[{"label":"PubChem CID","template":"`{cidVal}`"},{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"CAS Number","template":"`{cas}`","whenVar":"cas"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"linkTemplates":["https://pubchem.ncbi.nlm.nih.gov/compound/{cidVal}"]}}],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"slug","charset":"url_seg"}]},"mode":"dom","jsonLdTypes":["MolecularEntity","ChemicalSubstance"],"requireVars":["title"],"requireBulletsOrVars":["desc"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*\\|\\s*C\\d+.*?\\s*-\\s*PubChem$"},"formula":{"jsonLdPaths":["molecularFormula"]},"weightValObj":{"jsonLdPaths":["molecularWeight.value"]},"weightFromObj":{"template":"{weightValObj} g/mol","whenVars":["weightValObj"]},"weight":{"jsonLdPaths":["molecularWeight"],"fallbackVar":"weightFromObj"},"iupac":{"jsonLdPaths":["iupacName"]},"inchiKey":{"jsonLdPaths":["inChIKey"]},"smiles":{"jsonLdPaths":["smiles"],"limit":1},"desc":{"metaKeys":["description"]},"descShort":{"metaKeys":["description"],"sliceMax":260}},"titleTemplate":"{title} (PubChem)","descriptionVar":"descShort","bullets":[{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"Molecular Weight","template":"{weight}","whenVar":"weight"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"appendCurrentMdDelta":{"minExtraChars":200}}]},{"id":"public-bid-portals","name":"Public Procurement & Bid Portals (Bonfire, BidNet, Periscope)","category":"public-records","description":"Extracts public municipal solicitations and RFPs from BidNet Direct, Bonfire, and Periscope S2G while classifying login-gated bid details as login_wall.","domains":["*.bonfirehub.com","www.bidnetdirect.com","bidnetdirect.com","www.bidsync.com","app.periscopeholdings.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bidnetdirect.com/colorado/cityandcountyofdenverdoti/solicitations/open-bids?selectedContent=BUYER","https://www.bidnetdirect.com/colorado/solicitations/open-bids/W-38th-Ave-Multimodal-Improvements-Design-Services/0000443656?purchasingGroupId=8409951&origin=2"],"htmlRoutes":[{"id":"public-bid-portals","match":{"exactSegments":false},"mode":"public_bid_html"}]},{"id":"public-booking","name":"Public Booking (Calendly & Acuity Scheduling)","category":"commerce-social","description":"Extracts public Calendly event types via queryless /api/booking/profiles/{profile}/event_types (honoring Disallow: /*?*) and Calendly/Acuity HTML booking pages, rejecting unavailability_reason error-only payloads.","domains":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://calendly.com/api/booking/profiles/demo/event_types","https://calendly.com/demo","https://calendly.com/calendly-sales"],"routes":[{"match":{"hosts":["calendly.com","www.calendly.com"],"exactSegments":true,"pathSegments":[{"param":"profile","charset":"slug","minLen":2,"maxLen":80,"reserved":["app","api","d","s","login","signup","pricing","features","solutions","enterprise","integrations","resources","blog","about","careers","legal","privacy","terms","help","abuse_reports","error","404","not-found"]}]},"twin":{"fetchUrl":"https://calendly.com/api/booking/profiles/{profile}/event_types","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}},{"match":{"hosts":["calendly.com","www.calendly.com"],"pathPrefix":"/api/booking/profiles/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}}],"htmlRoutes":[{"id":"public-booking","mode":"booking_html","match":{"hosts":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"exactSegments":false}}]},{"id":"public-forms","name":"Public Forms (Typeform & Jotform)","category":"commerce-social","description":"Extracts public Typeform field definitions via api.typeform.com/forms/{formId} or window.rendererData HTML and Jotform forms via HTML field labels/configs, rejecting typeform-incorrectURL soft-404 redirects.","domains":["typeform.com","www.typeform.com","form.typeform.com","api.typeform.com","jotform.com","www.jotform.com","form.jotform.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://tfsales.typeform.com/to/PxcVKQGb","https://api.typeform.com/forms/PxcVKQGb","https://form.jotform.com/240912145384959"],"routes":[{"match":{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["www","api","admin","help","developer","login","auth"]},"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["typeform.com","www.typeform.com"],"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["api.typeform.com"],"exactSegments":true,"pathSegments":["forms",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}}],"htmlRoutes":[{"id":"public-forms","mode":"typeform_html","match":{"anyOf":[{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["api","admin","login","auth"]},"exactSegments":false},{"hosts":["typeform.com","www.typeform.com","form.typeform.com"],"exactSegments":false}]}},{"id":"public-forms","mode":"jotform_html","match":{"anyOf":[{"hosts":["jotform.com","www.jotform.com","form.jotform.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".jotform.com","param":"org","reserved":["api","www","form","login","auth"]},"exactSegments":false}]}}]},{"id":"public-job-feeds","name":"Public Open Job Feeds (WWR, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow & RemoteOK)","category":"jobs","description":"Formats robots.txt-allowed keyless public job feeds (We Work Remotely RSS, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow, and RemoteOK) into clean job tables.","domains":["weworkremotely.com","www.weworkremotely.com","himalayas.app","www.himalayas.app","www.workingnomads.com","workingnomads.com","www.themuse.com","themuse.com","jobicy.com","www.arbeitnow.com","arbeitnow.com","remoteok.com"],"exampleUrls":["https://weworkremotely.com/remote-jobs.rss","https://himalayas.app/jobs/api?limit=50","https://www.workingnomads.com/api/exposed_jobs/","https://www.themuse.com/api/public/jobs?page=1","https://jobicy.com/api/v2/remote-jobs?count=20","https://remoteok.com/api"],"routes":[{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathSuffix":".rss"},"twin":{"id":"weworkremotely-feed","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathEquals":["/remote-jobs","/remote-jobs/"]},"twin":{"id":"weworkremotely-feed","fetchUrl":"https://weworkremotely.com/remote-jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs/api"},"twin":{"id":"himalayas-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs"},"twin":{"id":"himalayas-feed","fetchUrl":"https://himalayas.app/jobs/api?limit=50","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathPrefix":"/api/exposed_jobs"},"twin":{"id":"workingnomads-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"workingnomads-feed","fetchUrl":"https://www.workingnomads.com/api/exposed_jobs/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.themuse.com","themuse.com"],"pathPrefix":"/api/public/jobs"},"twin":{"id":"themuse-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"resCount":{"paths":["results"],"format":"array_len"},"totalFmt":{"paths":["total"],"format":"int_comma","fallbackTemplate":"{resCount}"}},"requireVars":["resCount"],"titleTemplate":"The Muse Public Jobs ({resCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"results","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"co":{"paths":["company.name"],"trim":true,"default":"-"},"locs":{"paths":["locations"],"subField":"name","join":"; ","default":"-"},"lUrl":{"paths":["refs.landing_page"],"requireHttps":true},"pub":{"paths":["publication_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({lUrl})","whenVars":["lUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["lUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{co}"},{"header":"Locations","template":"{locs}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["jobicy.com"],"pathPrefix":"/api/v2/remote-jobs"},"twin":{"id":"jobicy-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"anyOf":[{"hosts":["jobicy.com"],"pathEquals":["/jobs-rss-feed","/jobs-rss-feed/"]},{"hosts":["jobicy.com"],"pathPrefix":"/remote-"}]},"twin":{"id":"jobicy-feed","fetchUrl":"https://jobicy.com/api/v2/remote-jobs?count=30","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathPrefix":"/api/job-board-api"},"twin":{"id":"arbeitnow-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"arbeitnow-feed","fetchUrl":"https://www.arbeitnow.com/api/job-board-api","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"anyOf":[{"hosts":["remoteok.com"],"pathSegments":[]},{"hosts":["remoteok.com"],"pathSegments":["api"]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs/","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]}]},"twin":{"id":"remoteok-feed","fetchUrl":"https://remoteok.com/api","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"RemoteOK Remote Jobs ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","filter":{"requireField":"position","tagFilterParam":{"param":"catTag","skipIfEquals":"dev","tagsField":"tags"}},"itemVars":{"pos":{"paths":["position"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"salMin":{"paths":["salary_min"],"excludeEquals":"0"},"salMax":{"paths":["salary_max"],"excludeEquals":"0"},"salRange":{"template":"${salMin}–${salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"${salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{pos}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"pos"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Salary","template":"{sal}"}]}]}}]},{"id":"public-share-links","name":"Public Share Links (Google Docs/Sheets, OneDrive, Dropbox, Box)","category":"commerce-social","description":"Extracts public Google Sheets via same-origin /gviz/tq?tqx=out:csv (avoiding 307 cross-domain /export redirects) and public Google Docs /pub, OneDrive /embed, Dropbox, and Box share links while strictly enforcing robots.txt.","domains":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/gviz/tq?tqx=out:csv","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/htmlview"],"routes":[{"match":{"hosts":["docs.google.com"],"anyOf":[{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]}]},{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},{"param":"view","allowValues":["edit","view","htmlview","preview","copy"]}]}]},"twin":{"fetchUrl":"https://docs.google.com/spreadsheets/d/{sheetId}/gviz/tq?tqx=out:csv","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}},{"match":{"hosts":["docs.google.com"],"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},"gviz","tq"],"queryParams":[{"name":"tqx","param":"tqx","charset":"url_seg","allowValues":["out:csv"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}}],"htmlRoutes":[{"id":"public-share-links","mode":"public_share_html","match":{"hosts":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"exactSegments":false}}]},{"id":"pubmed-pmc","name":"PubMed & PubMed Central (NCBI / Europe PMC)","category":"research-health","description":"Upgrades PubMed & PMC URLs to robots.txt-allowed Europe PMC REST JSON/JATS XML (with NCBI HTML fallback).","domains":["pubmed.ncbi.nlm.nih.gov","pmc.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubmed.ncbi.nlm.nih.gov/31452104/","https://pmc.ncbi.nlm.nih.gov/articles/PMC7095418/"],"routes":[{"match":{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},"twin":{"id":"pubmed-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=EXT_ID:{pmid}%20AND%20SRC:MED&resultType=core&format=json","kind":"json","accept":"application/json"},"extract":{"rootPath":"resultList.result.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags","stripSuffix":".","trim":true},"authorString":{"paths":["authorString"],"trim":true},"journalTitle":{"paths":["journalInfo.journal.title"]},"pubYear":{"paths":["pubYear"]},"journalFull":{"template":"{journalTitle} ({pubYear})","whenVars":["journalTitle","pubYear"],"fallbackVar":"journalTitle"},"doi":{"paths":["doi"]},"doiUrl":{"template":"https://doi.org/{doi}","whenVars":["doi"]},"pmcid":{"paths":["pmcid"]},"pmcUrl":{"template":"https://pmc.ncbi.nlm.nih.gov/articles/{pmcid}/","whenVars":["pmcid"]},"citedBy":{"paths":["citedByCount"],"format":"int_comma"},"abstractText":{"paths":["abstractText"],"format":"strip_tags"}},"titleTemplate":"{title}","authorVar":"authorString","publishedTimeVar":"pubYear","bullets":[{"label":"PMID","template":"`{pmid}`"},{"label":"Authors","template":"{authorString}","whenVar":"authorString"},{"label":"Journal","template":"{journalFull}","whenVar":"journalFull"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text (PMC)","template":"[{pmcid}]({pmcUrl})","whenVar":"pmcid"},{"label":"Cited By","template":"{citedBy}","whenVar":"citedBy"}],"sections":[{"heading":"Abstract","textVar":"abstractText"}],"linksVars":["doiUrl","pmcUrl"]}},{"match":{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]},"twin":{"id":"pmc-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/{pmcid}/fullTextXML","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"jats_article"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]}]},"mode":"dom","requireVars":["title","body"],"vars":{"title":{"cssText":["h1.heading-title","h1"]},"authors":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":15},"authorsShort":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":4},"doi":{"cssText":["span.citation-doi"]},"body":{"cssHtmlToMd":["article.article","div#abstract","div#eng-abstract","section.abstract"]}},"titleTemplate":"{title}","authorVar":"authorsShort","bullets":[{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Citation","template":"{doi}","whenVar":"doi"}],"bodyVar":"body","bodyFallbackHeading":"Abstract"}]},{"id":"pypi-project","name":"PyPI Python Package Index","category":"developer","description":"Extracts PyPI package install command, summary, and project README from pypi.org/project// (respecting robots.txt on /json).","domains":["pypi.org","www.pypi.org"],"exampleUrls":["https://pypi.org/project/httpx/"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["project",{"param":"pkg","charset":"pkg"}]},"mode":"dom","vars":{"headerName":{"cssText":["h1.project-header__name","h1.package-header__name"]},"pipCmd":{"cssText":["#pip-command"]},"summary":{"cssText":["p.project-header__summary","p.package-description__summary"]},"readme":{"cssHtmlToMd":["#description","div.project-description"],"format":"strip_leading_h1"}},"requireVars":["headerName","readme"],"titleTemplate":"{headerName}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"Install","template":"`{pipCmd}`","whenVar":"pipCmd"}],"bodyVar":"readme"}]},{"id":"q4-ir","name":"Q4 Inc. Investor Relations Portals","category":"finance","description":"Extracts Q4 Investor Relations /feed/PressRelease.svc and /feed/Event.svc JSON endpoints plus HTML press release and event pages while rejecting Cloudflare challenges.","domains":["*.q4web.com","investors.braze.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0","https://investors.braze.com/feed/Event.svc/GetEventList?apiKey=BF185719B0464B3AB809D2E68A89D240&LanguageId=1&eventDateFilter=3&pageSize=5&pageNumber=0"],"routes":[{"match":{"pathPrefix":"/feed/PressRelease.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}},{"match":{"pathPrefix":"/feed/Event.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}}],"htmlRoutes":[{"id":"q4-ir","match":{"exactSegments":false},"mode":"q4_ir_html"}]},{"id":"race-results-pack","name":"Race Results Pack (Athlinks, Race Roster, ACTIVE)","category":"commerce-social","description":"Extracts endurance race events and results from Athlinks, Race Roster, and ACTIVE JSON-LD, hydration JSON, and results tables while strictly rejecting empty CSR SPA shells.","domains":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"universalEngine":false,"auth_mode":"html","exampleUrls":["https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026"],"htmlRoutes":[{"id":"race-results-pack","match":{"hosts":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"exactSegments":false},"mode":"race_results_pack_html"}]},{"id":"readthedocs-sphinx","name":"Read the Docs & Sphinx Documentation","category":"developer","description":"Universal HTML extractor for Sphinx and Read the Docs documentation sites (requests.readthedocs.io, docs.python.org, and Sphinx-themed portals).","domains":["docs.python.org","numpy.org","matplotlib.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://numpy.org/doc/stable/user/absolute_beginners.html","https://docs.python.org/3/library/json.html"],"htmlRoutes":[{"id":"readthedocs-sphinx","match":{"exactSegments":false},"mode":"readthedocs_sphinx_html"}]},{"id":"rebuy-searchanise","name":"Rebuy & Searchanise Storefront APIs","category":"commerce-social","description":"Page-key adapter for Rebuy recommendation APIs and Searchanise searchserverapi.com JSON results; companion HTML mode yields so shopify_html is never preempted.","domains":["rebuyengine.com","www.rebuyengine.com","searchserverapi.com","www.searchserverapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3"],"routes":[{"match":{"anyOf":[{"hosts":["rebuyengine.com","www.rebuyengine.com"],"pathPrefix":"/api/v1/"},{"hosts":["searchserverapi.com","www.searchserverapi.com"],"pathEquals":["/getresults","/getwidgets"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"rebuy_searchanise_json"}}],"htmlRoutes":[{"id":"rebuy-searchanise","match":{"exactSegments":false},"mode":"rebuy_searchanise_html"}]},{"id":"recharge-bold-subscriptions","name":"Recharge & Bold Subscriptions","category":"commerce-social","description":"Extracts product and recurring selling-plan subscription metadata from storefronts powered by Recharge or Bold Subscriptions; yields on non-subscription PDPs so shopify_html is not preempted.","domains":["us.whogivesacrap.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls"],"htmlRoutes":[{"id":"recharge-bold-subscriptions","match":{"exactSegments":false},"mode":"recharge_bold_subscriptions_html"}]},{"id":"recreation-gov-ridb","name":"Recreation.gov & RIDB API","category":"public-records","description":"Recreation Information Database (RIDB) v1 API (apikey header) with Recreation.gov Campground JSON-LD / SSR HTML fallback and strict robots politeness.","domains":["ridb.recreation.gov","www.recreation.gov","recreation.gov"],"auth_mode":"key","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://www.recreation.gov/camping/campgrounds/232447","https://ridb.recreation.gov/api/v1/facilities/232447"],"routes":[{"match":{"hosts":["ridb.recreation.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"ridb_json"}},{"match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":true,"pathSegments":["camping","campgrounds",{"param":"facilityId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://ridb.recreation.gov/api/v1/facilities/{facilityId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"ridb_json"}}],"htmlRoutes":[{"id":"recreation-gov-ridb","match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":false},"mode":"recreation_gov_html"}]},{"id":"reddit-thread","name":"Reddit Threads & Comments","category":"commerce-social","description":"Extracts shreddit-post prose, subreddit/author/score metadata, and nested shreddit-comment trees.","domains":["reddit.com","*.reddit.com"],"exampleUrls":["https://www.reddit.com/r/golang/comments/1abc123/single_binary_deployments/"],"htmlRoutes":[{"id":"reddit-thread","match":{"pathContainsSegment":"comments"},"mode":"reddit_shreddit"}]},{"id":"regulations-gov","name":"Regulations.gov Federal Rulemaking","category":"public-records","description":"Official api.regulations.gov v4 JSON:API adapter for federal rulemaking documents, dockets, and public comments with HTML fallback.","domains":["regulations.gov","www.regulations.gov","api.regulations.gov"],"auth_mode":"key","exampleUrls":["https://api.regulations.gov/v4/documents/FTC-2023-0007-0001","https://api.regulations.gov/v4/dockets/FTC-2023-0007","https://www.regulations.gov/document/FTC-2023-0007-0001"],"routes":[{"match":{"hosts":["api.regulations.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["document",{"param":"docId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/documents/{docId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/dockets/{docketId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["comment",{"param":"commentId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/comments/{commentId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}}],"htmlRoutes":[{"id":"regulations-gov","match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false},"mode":"regulations_gov_html"}]},{"id":"repology","name":"Repology Package Version Matrix","category":"developer","description":"Extracts cross-distribution package versions from Repology API v1 and project HTML pages, prioritizing status == newest rows.","domains":["repology.org"],"auth_mode":"pub","exampleUrls":["https://repology.org/api/v1/project/python","https://repology.org/project/python/versions"],"routes":[{"match":{"hosts":["repology.org"],"pathPrefix":"/api/v1/project/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}},{"match":{"hosts":["repology.org"],"exactSegments":false,"pathSegments":["project",{"param":"project","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://repology.org/api/v1/project/{project}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}}],"htmlRoutes":[{"id":"repology","match":{"hosts":["repology.org"],"exactSegments":false},"mode":"repology_html"}]},{"id":"rippling","name":"Rippling ATS Career Boards","category":"jobs","description":"Upgrades ats.rippling.com/[locale/]/jobs to api.rippling.com (merging multi-location rows by uuid) and extracts __NEXT_DATA__ jobPost on detail pages.","domains":["ats.rippling.com"],"exampleUrls":["https://ats.rippling.com/rippling/jobs","https://ats.rippling.com/rippling/jobs/96601a74-e7b6-469d-8c69-6fdfd1c83bc0"],"match":{"optionalLeadingLocale":true,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"rippling-board","fetchUrl":"https://api.rippling.com/platform/api/ats/v1/board/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"results","vars":{"rawCount":{"paths":["results"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"{org} — Rippling Job Board ({dedupCount} open roles)","sections":[{"heading":"","arrayPath":"results","limit":100,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","dedupeBy":{"keyPaths":["uuid","id"],"mergeTextPaths":["workLocation.label","workLocation"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4},"requireItemVar":"jName","itemVars":{"uuid":{"paths":["uuid","id"],"trim":true},"jName":{"paths":["name","title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://ats.rippling.com/{org}/jobs/{uuid}"},"dept":{"paths":["department.label","department"],"trim":true,"default":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jName}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"}]}]},"htmlRoutes":[{"id":"rippling-job","mode":"embedded_json","scriptId":"__NEXT_DATA__","match":{"hosts":["ats.rippling.com"]},"extract":{"vars":{"jobTitle":{"paths":["props.pageProps.apiData.jobPost.name","props.pageProps.apiData.jobPost.title","props.pageProps.jobPost.name","props.pageProps.jobPost.title"],"trim":true},"company":{"paths":["props.pageProps.apiData.jobPost.companyName","props.pageProps.jobPost.companyName"],"trim":true,"default":"Company"},"descDirect":{"paths":["props.pageProps.apiData.jobPost.description","props.pageProps.jobPost.description"],"format":"html_to_md"},"descCompany":{"paths":["props.pageProps.apiData.jobPost.description.company","props.pageProps.jobPost.description.company"],"format":"html_to_md"},"descRole":{"paths":["props.pageProps.apiData.jobPost.description.role","props.pageProps.jobPost.description.role"],"format":"html_to_md"},"descReqs":{"paths":["props.pageProps.apiData.jobPost.description.requirements","props.pageProps.jobPost.description.requirements"],"format":"html_to_md"},"descBenefits":{"paths":["props.pageProps.apiData.jobPost.description.benefits","props.pageProps.jobPost.description.benefits"],"format":"html_to_md"},"hasAnyBody":{"template":"ok","whenAnyVars":["descDirect","descCompany","descRole","descReqs","descBenefits"]}},"requireVars":["jobTitle","hasAnyBody"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"descDirect","sections":[{"heading":"","unlessVar":"descDirect","textVar":"descCompany"},{"heading":"","unlessVar":"descDirect","textVar":"descRole"},{"heading":"","unlessVar":"descDirect","textVar":"descReqs"},{"heading":"","unlessVar":"descDirect","textVar":"descBenefits"}]}}]},{"id":"rubygems","name":"RubyGems Registry","category":"developer","description":"Upgrades rubygems.org gem pages to /api/v1/gems/.json metadata.","domains":["rubygems.org","www.rubygems.org"],"exampleUrls":["https://rubygems.org/gems/rails"],"match":{"exactSegments":false,"pathSegments":["gems",{"param":"gem","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://rubygems.org/api/v1/gems/{gem}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"version":{"paths":["version"]},"info":{"paths":["info"],"trim":true},"infoShort":{"paths":["info"],"trim":true,"sliceMax":260},"licenses":{"paths":["licenses"],"join":", "},"authors":{"paths":["authors"]},"repo":{"paths":["source_code_uri","homepage_uri"]},"docs":{"paths":["documentation_uri"]}},"titleTemplate":"{name} {version} (RubyGem)","titleWhenVar":"version","titleFallbackTemplate":"{name} (RubyGem)","descriptionVar":"infoShort","authorVar":"authors","introVar":"info","bullets":[{"label":"Install","template":"`gem install {name}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{licenses}","whenVar":"licenses"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Documentation","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"rumble-odysee","name":"Rumble & Odysee Video","category":"commerce-social","description":"Extracts Odysee video claim oEmbed and LBRY JSON-RPC metadata plus Rumble/Odysee HTML without hitting disallowed rumble.com/api/* routes.","domains":["rumble.com","www.rumble.com","odysee.com","www.odysee.com","api.na-backend.odysee.com"],"auth_mode":"pub","exampleUrls":["https://odysee.com/@Odysee:8/channel-roundup-may-2026:e","https://odysee.com/$/oembed?url=https%3A%2F%2Fodysee.com%2F%40Odysee%3A8%2Fchannel-roundup-may-2026%3Ae&format=json","https://www.rumble.com/c/Rumble"],"routes":[{"match":{"hosts":["odysee.com","www.odysee.com"],"pathEquals":["/$/oembed"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["odysee.com","www.odysee.com"],"exactSegments":true,"pathSegments":[{"param":"chan","charset":"at_handle","minLen":2,"maxLen":100},{"param":"claimSlug","charset":"url_seg","minLen":2,"maxLen":180}]},"twin":{"fetchUrl":"https://{host}/$/oembed?url=https%3A%2F%2F{host}%2F{chan}%2F{claimSlug}&format=json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["api.na-backend.odysee.com"],"pathEquals":["/api/v1/proxy"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}}],"htmlRoutes":[{"id":"rumble-odysee","match":{"exactSegments":false},"mode":"rumble_odysee_html"}]},{"id":"runsignup","name":"RunSignup Races & Events","category":"commerce-social","description":"Extracts RunSignup race listings and single race event details from public /Rest/races and /Rest/race/{raceId} JSON APIs plus /Race/ SportsEvent HTML fallback.","domains":["runsignup.com","www.runsignup.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://runsignup.com/Rest/races?format=json&events=T&page=1&results_per_page=2","https://runsignup.com/Rest/race/68640?format=json","https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile"],"routes":[{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","races"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}},{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","race",{"param":"raceId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}}],"htmlRoutes":[{"id":"runsignup","match":{"hosts":["runsignup.com","www.runsignup.com"],"pathPrefix":"/Race/","exactSegments":false},"mode":"runsignup_html"}]},{"id":"rxnorm-rxnav","name":"NLM RxNorm / RxNav","category":"research-health","description":"National Library of Medicine RxNav REST JSON API adapter for RxCUI lookups, concept properties, drug groups, and approximate term matches.","domains":["rxnav.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://rxnav.nlm.nih.gov/REST/rxcui.json?name=lipitor","https://rxnav.nlm.nih.gov/REST/rxcui/153165/properties.json","https://rxnav.nlm.nih.gov/REST/drugs.json?name=acetaminophen"],"routes":[{"match":{"pathPrefix":"/REST/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"rxnorm_json"}}]},{"id":"saleor","name":"Saleor Storefront & GraphQL API","category":"commerce-social","description":"Extracts Saleor Storefront bounded /graphql/ product queries (including EditorJS descriptions) and post-HTML JSON-LD/Microdata product pages.","domains":["demo.saleor.io","storefront1.saleor.cloud"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storefront1.saleor.cloud/graphql/"],"routes":[{"match":{"pathEquals":["/graphql","/graphql/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProducts { products(first: 25, channel: \\\"default\\\") { pageInfo { hasNextPage endCursor } edges { node { id slug name description category { name slug } thumbnail { url alt } pricing { priceRange { start { gross { amount currency } } stop { gross { amount currency } } } } variants { id name sku quantityAvailable pricing { price { gross { amount currency } } } } } } } }\"}"},"extract":{"commerceMode":"saleor_graphql"}}],"htmlRoutes":[{"id":"saleor","match":{"exactSegments":false},"mode":"saleor_html"}]},{"id":"salesforce-knowledge","name":"Salesforce Knowledge (Experience Cloud)","category":"developer","description":"Extracts public Salesforce Knowledge and Experience Cloud articles when SSR/hydrated DOM or TechArticle JSON-LD is present; rejects unhydrated Aura error shells and login redirects.","domains":["help.salesforce.com","help.mulesoft.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.salesforce.com/s/articleView?language=en_US&id=000391748&type=1"],"htmlRoutes":[{"id":"salesforce-knowledge","match":{"exactSegments":false},"mode":"salesforce_knowledge_html"}]},{"id":"sam-gov","name":"SAM.gov Opportunities & Entities","category":"public-records","description":"Extracts SAM.gov contract opportunities and entity registrations via official SAM.gov v2/v3 APIs (excluding /contract-awards handled by fpds-sam-contract-awards) with HTML fallback.","domains":["sam.gov","www.sam.gov","api.sam.gov"],"auth_mode":"key","exampleUrls":["https://sam.gov/contracting","https://sam.gov/help","https://api.sam.gov/opportunities/v2/search?limit=1"],"routes":[{"match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false,"pathSegments":["opp",{"param":"noticeId","charset":"url_seg","minLen":4,"maxLen":120},"view"]},"twin":{"fetchUrl":"https://api.sam.gov/opportunities/v2/search?noticeid={noticeId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}}],"htmlRoutes":[{"id":"sam-gov","match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false},"mode":"sam_gov_html"}]},{"id":"sap-commerce-occ","name":"SAP Commerce Cloud (OCC v2)","category":"commerce-social","description":"Extracts SAP Commerce Cloud OCC v2 /rest/v2 product and search JSON endpoints plus Spartacus storefront HTML/companion twins.","domains":["www.kay.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.kay.com/kay-labgrown-diamonds-large-small-link-bracelet-14-ct-tw-sterling-silver-8/p/V-238867701"],"routes":[{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["rest","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}}],"htmlRoutes":[{"id":"sap-commerce-occ","match":{"exactSegments":false},"mode":"sap_occ_html"}]},{"id":"sap-rmk-jibe","name":"SAP SuccessFactors RMK & Jibe Enterprise Career Feeds","category":"jobs","description":"Formats Jibe /api/jobs JSON feeds and SAP SuccessFactors Recruiting Marketing (RMK) /sitemap.xml RSS job feeds.","domains":["careers.*.com","jobs.*.com"],"universalEngine":true,"exampleUrls":["https://careers.rivian.com/api/jobs?page=1&limit=25","https://jobs.eastman.com/sitemap.xml"],"routes":[{"match":{"pathEquals":["/api/jobs"],"excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"jibe-careers","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireArrayItemField":{"arrayPath":"jobs","field":"data"},"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["totalCount"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{host} — Jibe Career Feed ({jobCount} of {total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":80,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["data.title","title"],"trim":true,"default":"Role"},"reqId":{"paths":["data.req_id","data.slug","req_id","slug"],"trim":true},"reqCell":{"template":"`{reqId}`","whenVars":["reqId"],"default":"-"},"catArr":{"paths":["data.categories"],"subField":"name","join":", "},"catStr":{"paths":["data.category","category"],"trim":true},"cat":{"template":"{catArr}","whenVars":["catArr"],"fallbackVar":"catStr","default":"-"},"fullLoc":{"paths":["data.full_location","full_location"],"trim":true},"city":{"paths":["data.city","city"],"trim":true},"state":{"paths":["data.state","state"],"trim":true},"country":{"paths":["data.country","country"],"trim":true},"csc3":{"template":"{city}, {state}, {country}","whenVars":["city","state","country"]},"csc2a":{"template":"{city}, {state}","whenVars":["city","state"]},"csc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"csc1":{"paths":["data.city","data.state","data.country"],"trim":true},"locSub1":{"template":"{csc3}","whenVars":["csc3"],"fallbackVar":"csc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"csc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"csc1"},"loc":{"template":"{fullLoc}","whenVars":["fullLoc"],"fallbackVar":"locSub3","default":"-"},"canonUrl":{"paths":["data.meta_data.canonical_url"],"requireHttps":true},"appUrl":{"paths":["data.apply_url","apply_url"],"requireHttps":true},"finalUrl":{"template":"{canonUrl}","whenVars":["canonUrl"],"fallbackVar":"appUrl"},"roleCell":{"template":"[{jTitle}]({finalUrl})","whenVars":["finalUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["finalUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Req ID","template":"{reqCell}"},{"header":"Category","template":"{cat}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"sap-rmk-jibe","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}}],"htmlRoutes":[{"id":"sap-rmk-jibe","mode":"xml_items_table","match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}]},{"id":"schema-course","name":"Schema.org Course & Educational Program","category":"public-records","description":"Universal Schema.org extractor for Course, CourseInstance, and EducationalOccupationalProgram JSON-LD running before generic schema_org fallback.","domains":["pll.harvard.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pll.harvard.edu/course/cs50-introduction-computer-science"],"htmlRoutes":[{"id":"schema-course","match":{"exactSegments":false},"mode":"schema_course_html"}]},{"id":"schema-dataset","name":"Schema.org Dataset & DataCatalog","category":"research-health","description":"Universal Schema.org extractor for Dataset and DataCatalog JSON-LD including DataDownload distributions, license, creator, and temporal/spatial coverage.","domains":["registry.opendata.aws"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.opendata.aws/noaa-goes/"],"htmlRoutes":[{"id":"schema-dataset","match":{"exactSegments":false},"mode":"schema_dataset_html"}]},{"id":"schema-event","name":"Schema.org Event (Universal)","category":"commerce-social","description":"Universal Schema.org Event JSON-LD extractor for venues, parks departments, clubs, and event calendars: name, start/end, venue and address, organizer, performer, offers/price, status, and attendance mode. Lists every Event on series and calendar pages while yielding on dedicated ticketing/race platforms.","domains":["neworleanscitypark.org","events.stanford.edu","calendar.mit.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://neworleanscitypark.org/series/crescent-city-farmers-market-2/","https://events.stanford.edu/"],"htmlRoutes":[{"id":"schema-event","match":{"exactSegments":false,"excludeHosts":["eventbrite.com","www.eventbrite.com","meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com","ticketmaster.com","www.ticketmaster.com","runsignup.com","www.runsignup.com"]},"mode":"schema_event_html"}]},{"id":"schema-faq-howto","name":"Schema.org FAQPage & HowTo","category":"public-records","description":"Universal Schema.org extractor for FAQPage Q&A and HowTo step-by-step instructions, yielding when Recipe, Product, JobPosting, Course, SoftwareApplication, or Medical types are present.","domains":["yoast.com","www.wikihow.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://yoast.com/features/structured-data/faq-block/","https://www.wikihow.com/Tie-a-Tie"],"htmlRoutes":[{"id":"schema-faq-howto","match":{"exactSegments":false},"mode":"schema_faq_howto_html"}]},{"id":"schema-localbusiness","name":"Schema.org LocalBusiness (Universal)","category":"commerce-social","description":"Universal Schema.org LocalBusiness JSON-LD extractor (Restaurant, Store, AutoDealer, BikeStore and every *Business/*Store subtype) for location, dealer, and shop pages: name, address, phone, geo, opening hours, price range, rating, and amenities. Skips pages whose main entity is an article, product, recipe, job, vehicle, medical, or event.","domains":["www.chipotle.com","www.apple.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://locations.chipotle.com/co/boulder/1650-28th-st","https://www.apple.com/retail/fifthavenue/"],"htmlRoutes":[{"id":"schema-localbusiness","match":{"exactSegments":false},"mode":"schema_localbusiness_html"}]},{"id":"schema-medical","name":"Schema.org Medical Entities","category":"research-health","description":"Universal Schema.org extractor for MedicalCondition, Drug, Physician, MedicalClinic, and MedicalWebPage JSON-LD, yielding when Product is present.","domains":["my.clevelandclinic.org","www.nhs.uk"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://my.clevelandclinic.org/health/diseases/6424-asthma","https://www.nhs.uk/conditions/asthma/"],"htmlRoutes":[{"id":"schema-medical","match":{"exactSegments":false},"mode":"schema_medical_html"}]},{"id":"schema-menu","name":"Schema.org Restaurant Menu (Menu / MenuSection / MenuItem)","category":"commerce-social","description":"Universal Schema.org Menu extractor that matches only when Menu, MenuSection, MenuItem, or hasMenu JSON-LD entities exist, never hijacking plain Restaurant pages.","domains":["www.chilis.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.chilis.com/menu"],"htmlRoutes":[{"id":"schema-menu","match":{"exactSegments":false},"mode":"schema_menu_html"}]},{"id":"schema-recipe","name":"Schema.org Recipe (Universal)","category":"commerce-social","description":"Universal Schema.org Recipe JSON-LD extractor for any recipe site: ingredients, numbered steps (HowToStep/HowToSection), prep/cook/total times, yield, cuisine, rating, and nutrition. Resolves @graph @id author references.","domains":["www.budgetbytes.com","sallysbakingaddiction.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.budgetbytes.com/one-pot-creamy-cajun-chicken-pasta/","https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"],"htmlRoutes":[{"id":"schema-recipe","match":{"exactSegments":false},"mode":"schema_recipe_html"}]},{"id":"schema-software-app","name":"Schema.org SoftwareApplication","category":"developer","description":"Universal Schema.org extractor for SoftwareApplication, WebApplication, and MobileApplication JSON-LD (version, OS, category, offers, rating, and downloadUrl).","domains":["code.visualstudio.com","www.mozilla.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://code.visualstudio.com/","https://www.mozilla.org/en-US/firefox/new/"],"htmlRoutes":[{"id":"schema-software-app","match":{"exactSegments":false},"mode":"schema_software_app_html"}]},{"id":"schema-vehicle","name":"Schema.org Vehicle & Car","category":"commerce-social","description":"Universal Schema.org extractor for Vehicle, Car, Motorcycle, and MotorizedBicycle JSON-LD with strict 17-character VIN validation (excluding I, O, Q).","domains":["www.hondaofseattle.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.hondaofseattle.com/viewdetails/used/5tdkdrbh0rs544979/2024-toyota-highlander-sport-utility"],"htmlRoutes":[{"id":"schema-vehicle","match":{"exactSegments":false},"mode":"schema_vehicle_html"}]},{"id":"searchspring","name":"Searchspring On-Site Search","category":"commerce-social","description":"Extracts public Searchspring JSON search API payloads and discovers siteId markers from storefront HTML.","domains":["api.searchspring.net","www.searchspring.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.searchspring.net/api/search/search.json?siteId=rn129l&q=router&resultsFormat=native"],"routes":[{"match":{"pathEquals":["/api/search/search.json"],"queryParams":[{"name":"siteId","param":"siteId","charset":"alnum_dash","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"searchspring_search"}}],"htmlRoutes":[{"id":"searchspring","match":{"exactSegments":false},"mode":"searchspring_html"}]},{"id":"sec-edgar","name":"SEC EDGAR Company Submissions & Filings","category":"finance","description":"Upgrades sec.gov EDGAR company browse pages and CIK URLs to keyless data.sec.gov JSON submissions (10-K, 10-Q, 8-K, DEF 14A, Form 4, 13F).","domains":["www.sec.gov","sec.gov","data.sec.gov"],"exampleUrls":["https://www.sec.gov/edgar/browse/?CIK=0001477333","https://data.sec.gov/submissions/CIK0000320193.json"],"match":{"anyOf":[{"hosts":["www.sec.gov","sec.gov"],"exactSegments":false,"pathSegments":["edgar","browse"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["www.sec.gov","sec.gov"],"exactSegments":true,"pathSegments":["cgi-bin","browse-edgar"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["data.sec.gov"],"exactSegments":true,"pathSuffix":".json","pathSegments":["submissions",{"param":"rawCik","stripPrefix":"CIK","stripSuffix":".json","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}}]},"twin":{"fetchUrl":"https://data.sec.gov/submissions/CIK{paddedCik}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"],"trim":true},"tickersPlain":{"paths":["tickers"],"join":", "},"tickersCode":{"paths":["tickers"],"itemWrap":"`","join":", "},"exchanges":{"paths":["exchanges"],"join":", "},"tickersBullet":{"template":"{tickersCode} ({exchanges})","whenVars":["tickersCode","exchanges"],"fallbackVar":"tickersCode"},"sic":{"paths":["sic"]},"sicDesc":{"paths":["sicDescription"]},"sicOrDesc":{"paths":["sic","sicDescription"]},"sicFull":{"template":"{sic} — {sicDesc}","whenVars":["sic","sicDesc"],"fallbackVar":"sicOrDesc"},"category":{"paths":["category"]},"stateInc":{"paths":["stateOfIncorporation"]},"fye":{"paths":["fiscalYearEnd"],"format":"fiscal_mmdd"},"descTickerOrCik":{"paths":["tickers"],"join":", ","fallbackTemplate":"CIK {paddedCik}"}},"titleTemplate":"{name} ({tickersPlain}) — SEC EDGAR","titleWhenVar":"tickersPlain","titleFallbackTemplate":"{name} (CIK {paddedCik}) — SEC EDGAR","descriptionTemplate":"{name} SEC EDGAR filings ({descTickerOrCik})","bullets":[{"label":"CIK","template":"`{paddedCik}`"},{"label":"Tickers","template":"{tickersBullet}","whenVar":"tickersBullet"},{"label":"SIC Industry","template":"{sicFull}","whenVar":"sicFull"},{"label":"Filer Category","template":"{category}","whenVar":"category"},{"label":"Incorporation","template":"{stateInc}","whenVar":"stateInc"},{"label":"Fiscal Year End","template":"{fye}","whenVar":"fye"}],"sections":[{"heading":"Recent SEC Filings","parallelArrays":{"basePath":"filings.recent","fields":{"form":"form","filingDate":"filingDate","reportDate":"reportDate","accessionNumber":"accessionNumber","primaryDocument":"primaryDocument","items":"items"},"priorityFilterAfter":{"index":12,"field":"form","allowValues":["10-K","10-K/A","10-Q","10-Q/A","8-K","DEF 14A","20-F","S-1","13F-HR","4"]}},"limit":25,"requireItemVar":"form","collectLinkVars":["docUrl"],"itemVars":{"form":{"paths":["form"]},"accRaw":{"paths":["accessionNumber"]},"accNoDash":{"paths":["accessionNumber"],"replaceAll":{"from":"-","to":""}},"primaryDocument":{"paths":["primaryDocument"]},"indexUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{accRaw}-index.htm","whenVars":["accRaw","accNoDash"]},"docUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{primaryDocument}","whenVars":["accNoDash","primaryDocument"],"fallbackVar":"indexUrl"},"formBold":{"template":"**{form}**","whenVars":["form"]},"formCell":{"template":"[**{form}**]({docUrl})","whenVars":["form","docUrl"],"fallbackVar":"formBold"}},"columns":[{"header":"Form","template":"{formCell}"},{"header":"Filed","paths":["filingDate"]},{"header":"Period","paths":["reportDate"]},{"header":"8-K Items","paths":["items"]}]}]}},{"id":"senate-lda","name":"Senate Lobbying Disclosures (LDA)","category":"public-records","description":"Extracts Senate Lobbying Disclosure Act filings from lda.gov (and lda.senate.gov) REST API v1 JSON with Crawl-delay 4s politeness and HTML fallback.","domains":["lda.gov","lda.senate.gov"],"auth_mode":"pub","min_interval_ms":4000,"strict_robots":true,"exampleUrls":["https://lda.gov/api/v1/filings/a934e791-d564-4fd3-8b78-041f8cfcf115/","https://lda.gov/filings/public/filing/a934e791-d564-4fd3-8b78-041f8cfcf115/"],"routes":[{"match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false,"pathSegments":["filings","public","filing",{"param":"filingId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/filings/{filingId}/","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}},{"match":{"hosts":["lda.gov","lda.senate.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}}],"htmlRoutes":[{"id":"senate-lda","match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false},"mode":"senate_lda_html"}]},{"id":"servicenow-kb","name":"ServiceNow Knowledge Base","category":"developer","description":"Extracts public ServiceNow Knowledge Base articles from TechArticle JSON-LD and Service Portal KB DOM while rejecting soft-404 shells.","domains":["support.servicenow.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963589"],"htmlRoutes":[{"id":"servicenow-kb","match":{"exactSegments":false},"mode":"servicenow_kb_html"}]},{"id":"sfcc-demandware","name":"Salesforce Commerce Cloud (Demandware) Storefronts","category":"commerce-social","description":"Structurally detects Salesforce Commerce Cloud storefronts and extracts Product-Variation twins, JSON-LD, variation options, and product geometry/specification tables.","domains":["www.demandware.com"],"universalEngine":true,"exampleUrls":["https://www.demandware.com/product/sample"],"htmlRoutes":[{"id":"sfcc-demandware","match":{"exactSegments":false},"mode":"sfcc_html"}]},{"id":"shopify-filter-apps","name":"Shopify Filter Apps (Boost Commerce / Globo)","category":"commerce-social","description":"Page-key adapter for Boost Commerce (mybcapps.com) and Globo Smart Product Filter JSON endpoints; companion HTML mode yields so shopify_html is never preempted.","domains":["services.mybcapps.com","filter.globo.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5"],"routes":[{"match":{"anyOf":[{"hosts":["services.mybcapps.com"],"pathEquals":["/bc-sf-filter/filter","/bc-sf-filter/search"]},{"hosts":["filter.globo.io"],"pathPrefix":"/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"shopify_filter_apps_json"}}],"htmlRoutes":[{"id":"shopify-filter-apps","match":{"exactSegments":false},"mode":"shopify_filter_apps_html"}]},{"id":"shopify-hydrogen","name":"Shopify Hydrogen Storefronts","category":"commerce-social","description":"Page-key adapter extracting Shopify Hydrogen SSR __remixContext loaderData (shop, products, collections) while rejecting non-Shopify Remix apps and empty shells.","domains":["hydrogen.shop"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://hydrogen.shop/"],"htmlRoutes":[{"id":"shopify-hydrogen","match":{"exactSegments":false},"mode":"shopify_hydrogen_html"}]},{"id":"shopify-storefront-graphql","name":"Shopify Storefront API (Tokenless GraphQL)","category":"commerce-social","description":"Queries any Shopify store's public Storefront API (/api//graphql.json) with Shopify's documented tokenless access for one product by handle (plus same-origin page-key companion discovery on storefronts embedding Storefront API tokens): shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections.","domains":["www.tentree.com","www.henryrose.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://henryrose.com/api/2025-07/graphql.json?handle=the-layering-collection","https://www.tentree.com/api/2025-07/graphql.json?handle=e-gift-code"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api",{"param":"apiVersion","charset":"slug","minLen":7,"maxLen":10},"graphql.json"],"queryParams":[{"name":"handle","param":"handle","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/{apiVersion}/graphql.json","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProduct { shop { name } product(handle: \\\"{handle}\\\") { id handle title vendor productType description onlineStoreUrl availableForSale priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } options { name optionValues { name } } variants(first: 100) { nodes { id title sku availableForSale price { amount currencyCode } compareAtPrice { amount currencyCode } } } collections(first: 20) { nodes { handle title } } } }\"}","maxBytes":2097152},"extract":{"jsonMode":"shopify_storefront_graphql_json"}}]},{"id":"shopify","name":"Shopify Universal Storefront & Catalogs","category":"commerce-social","description":"Formats /products.json and /collections//products.json store inventories, upgrades *.myshopify.com and custom-domain /products/ pages, and implements polite full-store catalog pulls.","domains":["*.myshopify.com"],"universalEngine":true,"exampleUrls":["https://www.henryrose.com/products/the-layering-collection","https://www.henryrose.com/products.json?limit=30&page=1"],"catalog":{"platform":"shopify","pauseMs":1000,"pageCap":200,"firstPageTemplate":"{origin}/products.json?limit=250&page=1","collectionPageTemplate":"{origin}/collections/{collection}/products.json?limit=250&page=1","perPage":250,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","my.bigcartel.com","api.bigcartel.com","assets.bigcartel.com","help.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com"],"anyOf":[{"pathEquals":["/products.json"]},{"exactSegments":true,"pathSegments":["collections",{"param":"col","charset":"slug","maxLen":160},"products.json"]}]},"twin":{"id":"shopify-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_catalog_page"}},{"match":{"pathSuffix":".js","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".js","maxLen":160}},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.js","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product_js"}},{"match":{"anyOf":[{"pathSuffix":".json","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}},{"hosts":["*.myshopify.com"],"scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.json","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product"}},{"match":{"hosts":["*.myshopify.com"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["collections",{"param":"handle","charset":"slug","maxLen":160}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/collections/{handle}/products.json?limit=50","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"commerceMode":"shopify_catalog_page"}}],"htmlRoutes":[{"id":"shopify","match":{"pathContainsSegment":"products"},"mode":"shopify_html"}]},{"id":"shopware-magento","name":"Magento 2 & Shopware 6 Storefronts","category":"commerce-social","description":"Structurally detects Magento 2 (text/x-magento-init swatches and bounded products-render-info) and Shopware 6 (sw-product-detail and property tables) storefronts.","domains":["www.shopware.com","business.adobe.com"],"universalEngine":true,"exampleUrls":["https://frontends-demo.vercel.app/Pepper-white-Muntok-pearl/SW10095"],"htmlRoutes":[{"id":"shopware-magento","match":{"exactSegments":false},"mode":"shopware_magento_html"}]},{"id":"slide-decks","name":"Slide Decks (SlideShare & SpeakerDeck)","category":"commerce-social","description":"Extracts SpeakerDeck presentations via public oEmbed JSON and slide transcripts HTML, and SlideShare decks via __NEXT_DATA__ HTML (no /api/ twin per robots.txt).","domains":["slideshare.net","www.slideshare.net","speakerdeck.com","www.speakerdeck.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.slideshare.net/slideshow/slideshare-rebrand-announcement-deck-2025/283262633","https://speakerdeck.com/csswizardry/well-thats-weird"],"routes":[{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":true,"pathSegments":[{"param":"user","charset":"slug","minLen":1,"maxLen":80,"reserved":["search","signup","login","categories","features","pro","terms","privacy","about","jobs","assets","users","oembed.json"]},{"param":"deck","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://speakerdeck.com/oembed.json?url=https%3A%2F%2Fspeakerdeck.com%2F{user}%2F{deck}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}},{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"pathEquals":["/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}}],"htmlRoutes":[{"id":"slide-decks","mode":"slideshare_html","match":{"hosts":["slideshare.net","www.slideshare.net"],"exactSegments":false}},{"id":"slide-decks","mode":"speakerdeck_html","match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":false}}]},{"id":"small-search","name":"Searchanise, Doofinder, Findify & Nosto Search","category":"commerce-social","description":"Opt-in page-key adapter pack for Searchanise, Doofinder, Findify, and Nosto search APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["searchserverapi1.com","eu1-search.doofinder.com","api-v3.findify.io","api.nosto.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://searchserverapi1.com/getresults?apiKey=3O4A8B9F4q&q=brew&output=json&maxResults=10"],"routes":[{"match":{"hosts":["searchserverapi1.com","www.searchserverapi1.com"],"pathEquals":["/getresults","/getwidgets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"anyOf":[{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathEquals":["/5/search"]},{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathSegments":["6",{"param":"hashid","charset":"alnum_dash","minLen":8,"maxLen":64},"_search"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api-v3.findify.io"],"pathEquals":["/v3/search","/v3/autocomplete"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api.nosto.com"],"pathEquals":["/v1/graphql"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}}],"htmlRoutes":[{"id":"small-search","match":{"exactSegments":false},"mode":"small_search_html"}]},{"id":"smartetailing","name":"SmartEtailing IBD Storefronts","category":"commerce-social","description":"Structurally detects SmartEtailing independent bicycle dealer storefronts and extracts Product JSON-LD, spec tables, and dealer pickup info.","domains":["www.trekchicago.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.trekchicago.com/product/trek-precaliber-16-556127-1.htm"],"htmlRoutes":[{"id":"smartetailing","match":{"exactSegments":false},"mode":"smartetailing_html"}]},{"id":"smb-ats-full","name":"SMB ATS Full (Manatal, Homerun, Zoho Recruit, Freshteam)","category":"jobs","description":"Extracts open roles from Manatal career-page JSON API, Homerun JobPosting JSON-LD, Zoho Recruit, and Freshteam portals while rejecting 404.homerun.co and soft errors.","domains":["api.manatal.com","core.api.manatal.com","jobs.manatal.com","*.zohorecruit.com","*.freshteam.com","*.homerun.co"],"auth_mode":"pub","exampleUrls":["https://api.manatal.com/open/v3/career-page/manatal/jobs/","https://jobs.homerun.co/sales-executive-amsterdam"],"routes":[{"match":{"hosts":["api.manatal.com","core.api.manatal.com"],"pathPrefix":"/open/v3/career-page/","exactSegments":false},"twin":{"id":"smb-ats-full","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"hosts":["jobs.manatal.com"],"exactSegments":true,"pathSegments":[{"param":"slug","charset":"slug","reserved":["api","login","auth","static","assets","robots.txt","sitemap.xml","favicon.ico"],"minLen":1,"maxLen":120}]},"twin":{"id":"smb-ats-full-manatal","fetchUrl":"https://api.manatal.com/open/v3/career-page/{slug}/jobs/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"anyOf":[{"hosts":["*.freshteam.com"],"pathPrefix":"/api/job_postings","exactSegments":false},{"hosts":["*.zohorecruit.com"],"pathPrefix":"/recruit/v2/","exactSegments":false}]},"twin":{"id":"smb-ats-full-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"smb_ats_json"}}],"htmlRoutes":[{"id":"smb-ats-full","mode":"smb_ats_full_html","match":{"hosts":["*.homerun.co","*.zohorecruit.com","*.freshteam.com","jobs.manatal.com"],"exactSegments":false}}]},{"id":"smithsonian-open-access","name":"Smithsonian Open Access","category":"public-records","description":"Smithsonian Open Access API v1.0 adapter (api.si.edu/openaccess) via api.data.gov key helper with HTML fallback.","domains":["si.edu","www.si.edu","api.si.edu"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.si.edu/openaccess/api/v1.0/search?q=apollo","https://api.si.edu/openaccess/api/v1.0/content/edanmdm:nasm_A19700102000","https://www.si.edu/object/apollo-11-command-module-columbia:nasm_A19700102000"],"routes":[{"match":{"hosts":["api.si.edu"],"pathPrefix":"/openaccess/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}},{"match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"pathSegments":["object",{"param":"objectSlug","charset":"url_seg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://api.si.edu/openaccess/api/v1.0/search?q={objectSlug}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}}],"htmlRoutes":[{"id":"smithsonian-open-access","match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"reservedFirstSegment":["search","admin","core"]},"mode":"smithsonian_open_access_html"}]},{"id":"socrata","name":"Socrata Open Data Portals (SODA Universal Engine)","category":"public-records","description":"Upgrades city, state, and federal Socrata open-data dataset URLs (/d/<4x4-id> or /dataset/.../<4x4-id>) to /api/views/.json column schemas and SODA endpoints.","domains":["data.cityofnewyork.us","data.sfgov.org","data.sf.gov","data.seattle.gov","data.cityofchicago.org","data.lacity.org","data.wa.gov","data.nj.gov","data.colorado.gov","data.texas.gov","data.ny.gov","data.cdc.gov","*.socrata.com"],"universalEngine":true,"exampleUrls":["https://data.cityofnewyork.us/Housing-Development/DOB-Job-Application-Filings/ic3t-wcy2","https://data.sf.gov/d/i98e-djp9"],"match":{"socrataHost":true,"minSegments":2,"anyOf":[{"socrataHost":true,"minSegments":2,"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"socrataHost":true,"minSegments":2,"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name","id"],"vars":{"name":{"paths":["name"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"attribution":{"paths":["attribution"]},"category":{"paths":["category"]},"license":{"paths":["license.name"]},"updatedDate":{"paths":["rowsUpdatedAt"],"format":"epoch_sec_date"},"sodaJsonUrl":{"template":"https://{host}/resource/{viewId}.json?$limit=50"},"csvExportUrl":{"template":"https://{host}/api/views/{viewId}/rows.csv?accessType=DOWNLOAD"}},"titleTemplate":"{name} ({host})","descriptionVar":"descShort","publishedTimeVar":"updatedDate","bullets":[{"label":"Dataset ID","template":"`{viewId}` ({host})"},{"label":"SODA JSON API","template":"`{sodaJsonUrl}`"},{"label":"CSV Download","template":"{csvExportUrl}"},{"label":"Agency / Attribution","template":"{attribution}","whenVar":"attribution"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rows Last Updated","template":"{updatedDate}","whenVar":"updatedDate"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Schema","headingTemplate":"Schema ({shownCount} Columns)","arrayPath":"columns","filter":{"excludeFieldPrefix":{"field":"fieldName","prefix":":@"}},"limit":40,"columns":[{"header":"Field Name","paths":["fieldName"],"code":true},{"header":"Label","paths":["name"]},{"header":"Type","paths":["dataTypeName"]},{"header":"Description","paths":["description"]}]}],"linksVars":["sodaJsonUrl","csvExportUrl"]}},{"id":"specialized","name":"Specialized Bicycles & Geometry Specs","category":"commerce-social","description":"Polite HTML adapter for Specialized product pages extracting technical specifications, frame geometry tables, pricing, availability, and manual downloads.","domains":["specialized.com","www.specialized.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.specialized.com/us/en/s-works-tarmac-sl9-sram-red-axs/p/4293533"],"htmlRoutes":[{"id":"specialized","match":{"exactSegments":false},"mode":"specialized_html"}]},{"id":"spree-solidus","name":"Spree Commerce & Solidus","category":"commerce-social","description":"Extracts Spree/Solidus JSON:API /api/v2/storefront/products twins and post-HTML JSON-LD/Microdata product pages.","domains":["demo.spreecommerce.org","demo.solidus.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://demo.spreecommerce.org/us/en/products/espresso-barista-kit","https://demo.solidus.io/products/solidus-hoodie"],"routes":[{"match":{"pathEquals":["/api/v2/storefront/products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}},{"match":{"pathSegments":["api","v2","storefront","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}}],"htmlRoutes":[{"id":"spree-solidus","match":{"exactSegments":false},"mode":"spree_solidus_html"}]},{"id":"square-online","name":"Square Online Storefronts","category":"commerce-social","description":"Extracts Square Online storefront product JSON-LD, Microdata, and __BOOTSTRAP_STATE__ storeInfo/commerceLinks hydration while rejecting empty SPA shells.","domains":["www.pessosices.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.pessosices.com/product/ice-cream-gelato/92"],"htmlRoutes":[{"id":"square-online","match":{"exactSegments":false},"mode":"square_online_html"}]},{"id":"square-toast-menu","name":"Square Online Restaurant & Toast Online Ordering Menus","category":"commerce-social","description":"Extracts Square Online restaurant __BOOTSTRAP_STATE__ menus and Toast order.toasttab.com online ordering menus while rejecting Cloudflare challenges and empty shells.","domains":["order.toasttab.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR","https://rinconmx-restaurant.square.site/"],"htmlRoutes":[{"id":"square-toast-menu","match":{"exactSegments":false},"mode":"square_toast_menu_html"}]},{"id":"squarespace-commerce","name":"Squarespace Commerce Storefronts","category":"commerce-social","description":"Detects Squarespace Commerce storefronts structurally and formats ?format=json-pretty product/collection payloads and HTML fallback into GFM tables and normalized CatalogRecord arrays.","domains":["commerce.squarespace.com"],"universalEngine":true,"exampleUrls":["https://www.trice-co.com/shop/p/pink-flare-leggings"],"htmlRoutes":[{"id":"squarespace-commerce","match":{"exactSegments":false},"mode":"squarespace_html"}]},{"id":"sram-docs","name":"SRAM Technical Documentation (Fluid Topics)","category":"developer","description":"Extracts bounded Fluid Topics SSR HTML documentation from docs.sram.com, stripping inline data:image base64 blobs and error chrome while preserving breadcrumbs, model codes, and PDF manual links.","domains":["docs.sram.com"],"exampleUrls":["https://docs.sram.com/en-US/publications/2eIzVnWuTRM7vhoKQjadQr"],"htmlRoutes":[{"id":"sram-docs","match":{"exactSegments":false},"mode":"sram_docs_html"}]},{"id":"sram-models","name":"SRAM Component Models (www.sram.com)","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical component specification tables from www.sram.com/*/sram/models/* pages.","domains":["www.sram.com","sram.com"],"exampleUrls":["https://www.sram.com/en/sram/models/rd-xx-e-b1","https://www.sram.com/en/service/models/rd-gx-1-b1"],"htmlRoutes":[{"id":"sram-models","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["sram","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]},{"pathSegments":["service","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":[".product-detail h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main.product-detail",".product-detail","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"stackexchange-qa","name":"Stack Overflow & Stack Exchange Q&A","category":"developer","description":"Upgrades Stack Overflow / Stack Exchange URLs to keyless API v2.3 native Markdown (with HTML fallback), sorting the Accepted Answer first.","domains":["stackoverflow.com","www.stackoverflow.com","serverfault.com","superuser.com","askubuntu.com","mathoverflow.net","stackapps.com","*.stackexchange.com"],"exampleUrls":["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"],"match":{"hostMap":{"param":"siteParam","stripWww":true,"exact":{"stackoverflow.com":"stackoverflow","serverfault.com":"serverfault","superuser.com":"superuser","askubuntu.com":"askubuntu","mathoverflow.net":"mathoverflow","stackapps.com":"stackapps"},"suffixSubdomain":".stackexchange.com"},"exactSegments":false,"pathSegments":[{"param":"qPrefix","allowValues":["questions","q"]},{"param":"qid","charset":"digits"}]},"twin":{"fetchUrl":"https://api.stackexchange.com/2.3/questions/{qid}?site={siteParam}&filter=%2120aKG._8Oscv%2A6dguVOli","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags"},"score":{"paths":["score"],"default":"0"},"tags":{"paths":["tags"],"limit":8,"itemWrap":"`","join":", "},"qMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"qHtmlMd":{"paths":["body"],"format":"html_to_md"},"qMd":{"template":"{qMdRaw}","whenVars":["qMdRaw"],"fallbackVar":"qHtmlMd"},"link":{"paths":["link"],"requireHttps":true}},"requireVars":["qMd"],"titleTemplate":"{title}","metaLine":[{"label":"Votes","template":"{score}"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Question","textVar":"qMd"},{"heading":"","subsectionsArrayPath":"answers","sortBy":{"boolDescField":"is_accepted","numDescField":"score"},"limit":8,"requireItemVar":"ansMd","subsectionHeadingTemplate":"Answer {index1} (Score: {scoreLabel})","subsectionAltWhenVar":"acceptedFlag","subsectionAltHeadingTemplate":"✅ Accepted Answer (Score: {scoreLabel})","subsectionBodyVar":"ansMd","itemVars":{"ansMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"ansHtmlMd":{"paths":["body"],"format":"html_to_md"},"ansMd":{"template":"{ansMdRaw}","whenVars":["ansMdRaw"],"fallbackVar":"ansHtmlMd"},"ansScore":{"paths":["score"],"default":"0"},"ansAuthor":{"paths":["owner.display_name"],"format":"strip_tags"},"scoreLabel":{"template":"{ansScore} — by {ansAuthor}","whenVars":["ansAuthor"],"fallbackVar":"ansScore"},"acceptedFlag":{"paths":["is_accepted"],"format":"bool_map","trueValue":"1","falseValue":""}}}],"linksVars":["link"]},"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["questions",{"param":"qid","charset":"digits"}]},"mode":"stackexchange_html"}]},{"id":"staffing-ats-pack","name":"Staffing ATS Pack (Crelate, JobDiva, Ceipal)","category":"jobs","description":"Extracts public staffing job boards and postings from Crelate, JobDiva, and Ceipal while rejecting disabled portals (Organization Portal Disabled) and error shells.","domains":["jobs.crelate.com","app.crelate.com","*.jobdiva.com","*.ceipal.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://jobs.crelate.com/portal/promotive/rss","https://jobs.crelate.com/portal/promotive","https://www1.jobdiva.com/"],"routes":[{"match":{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/portal/","pathSuffix":"/rss","exactSegments":false},"twin":{"id":"staffing-ats-pack-crelate-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Crelate Staffing Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","location":"{loc}","postedAt":"{pubDate}","source":"crelate"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["*.ceipal.com"],"anyOf":[{"pathPrefix":"/jobs/api/","exactSegments":false},{"pathPrefix":"/api/","exactSegments":false}]},{"hosts":["*.jobdiva.com"],"pathPrefix":"/portal/api/","exactSegments":false}]},"twin":{"id":"staffing-ats-pack","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"staffing_ats_json"}}],"htmlRoutes":[{"id":"staffing-ats-pack","mode":"staffing_ats_pack_html","match":{"exactSegments":false}}]},{"id":"stamped-loox-junip","name":"Stamped, Loox & Junip Product Reviews","category":"commerce-social","description":"Extracts public Stamped, Junip, and Loox storefront API review JSON payloads without hitting disallowed loox.io/widget paths.","domains":["stamped.io","api.juniphq.com","apid.juniphq.com","storefront-api.loox.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stamped.io/api/widget/reviews?sId=291293&apiKey=a23ad1ea-e527-4a21-9a95-37fefe0ff5cd&productId=8317758832957&page=1&take=10"],"routes":[{"match":{"hosts":["stamped.io"],"pathEquals":["/api/widget/reviews","/api/widget/reviews/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"anyOf":[{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathEquals":["/v1/product_reviews","/v1/display_settings"]},{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathSegments":["v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"hosts":["storefront-api.loox.io"],"pathSegments":["storefront","v1","store",{"param":"storeId","charset":"alnum_dash","minLen":2,"maxLen":80},{"param":"endpoint","allowValues":["product-reviews","bottomline"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}}],"htmlRoutes":[{"id":"stamped-loox-junip","match":{"exactSegments":false},"mode":"stamped_loox_junip_html"}]},{"id":"state-court-portals","name":"State Court Portals","category":"public-records","description":"Extracts public state court appellate pages, orders, and opinions (www.txcourts.gov) while honestly detecting WAF, login, and SPA barriers on research.txcourts.gov.","domains":["research.txcourts.gov","www.txcourts.gov"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.txcourts.gov/supreme/orders-opinions/","https://research.txcourts.gov/CourtRecordsSearch/#!/home"],"htmlRoutes":[{"id":"state-court-portals","match":{"hosts":["research.txcourts.gov","www.txcourts.gov"]},"mode":"state_court_portals_html"}]},{"id":"state-legislatures","name":"State Legislatures (Open States & LegiScan)","category":"public-records","description":"Official Open States v3 API and LegiScan API adapter for state bills, sessions, legislators, and jurisdictions with HTML fallback.","domains":["openstates.org","www.openstates.org","v3.openstates.org","legiscan.com","www.legiscan.com","api.legiscan.com"],"auth_mode":"key","exampleUrls":["https://v3.openstates.org/bills/tx/89/HB%201","https://api.legiscan.com/?op=getBill&id=1167968"],"routes":[{"match":{"hosts":["v3.openstates.org"],"anyOf":[{"pathPrefix":"/bills"},{"pathPrefix":"/jurisdictions"},{"pathPrefix":"/people"},{"pathPrefix":"/events"},{"pathPrefix":"/committees"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["openstates.org","www.openstates.org"],"exactSegments":false,"pathSegments":[{"param":"state","charset":"alnum","minLen":2,"maxLen":2,"transform":"lower"},"bills",{"param":"session","charset":"url_seg","minLen":1,"maxLen":40},{"param":"billId","charset":"url_seg","minLen":1,"maxLen":40}]},"twin":{"fetchUrl":"https://v3.openstates.org/bills/{state}/{session}/{billId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["api.legiscan.com"],"queryParams":[{"name":"op","param":"op","charset":"alnum","minLen":3,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}}],"htmlRoutes":[{"id":"state-legislatures","match":{"hosts":["openstates.org","www.openstates.org","legiscan.com","www.legiscan.com"],"exactSegments":false},"mode":"state_legislatures_html"}]},{"id":"state-sos-business","name":"State Secretary of State Business Registries","category":"public-records","description":"Extracts public state business registry filings (DE, CA, FL, TX) with strict robots.txt enforcement, rate pacing, and WAF/Incapsula/Cloudflare rejection.","domains":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://comptroller.texas.gov/taxes/franchise/"],"routes":[{"match":{"hosts":["bizfileonline.sos.ca.gov"],"exactSegments":false,"pathSegments":["search","business",{"param":"recordId","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://bizfileonline.sos.ca.gov/api/Records/businesssearch/{recordId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}},{"match":{"hosts":["bizfileonline.sos.ca.gov"],"pathPrefix":"/api/Records/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}}],"htmlRoutes":[{"id":"state-sos-business","match":{"hosts":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"exactSegments":false},"mode":"state_sos_html"}]},{"id":"state-workforce-boards","name":"State Workforce & Public Job Boards","category":"jobs","description":"Extracts structured public job postings from state workforce portals (jobs.myflorida.com, statejobs.ny.gov, calcareers.ca.gov, usnlx.com) with Rule 5 honest fallbacks.","domains":["statejobs.ny.gov","calcareers.ca.gov","usnlx.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://jobs.myflorida.com/job/TALLAHASSEE-Attorney-FL-32301/1425569100/","https://statejobs.ny.gov/public/vacancyDetailsView.cfm?id=229697"],"htmlRoutes":[{"id":"state-workforce-boards","mode":"state_workforce_boards_html","match":{"excludeHosts":["governmentjobs.com","*.governmentjobs.com","workintexas.com","*.workintexas.com"],"anyOf":[{"hosts":["jobs.myflorida.com","statejobs.ny.gov","calcareers.ca.gov","www.calcareers.ca.gov","usnlx.com","www.usnlx.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".usnlx.com","param":"state","reserved":["www","api","login"]},"exactSegments":false}]}}]},{"id":"status-page-pack","name":"Status Page Pack","category":"developer","description":"Extracts service status, components, and incidents from Instatus, Better Stack, Status.io, and Cachet public JSON endpoints and SSR HTML pages.","domains":["deno.instatus.com","status.instatus.com","status.betterstack.com","status.raycast.com","status.gitlab.com","demo.cachethq.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://deno.instatus.com/","https://deno.instatus.com/v2/components.json","https://status.betterstack.com/","https://status.gitlab.com/1.0/status/5b36dc6502d06804c08349f7","https://demo.cachethq.io/api/v1/components"],"routes":[{"match":{"pathEquals":["/summary.json","/v2/components.json","/v2/incidents.json","/index.json","/api/v1/components","/api/v1/incidents","/api/v1/status"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}},{"match":{"exactSegments":true,"pathSegments":["1.0","status",{"param":"statusId","charset":"alnum","minLen":16,"maxLen":48}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}}],"htmlRoutes":[{"id":"status-page-pack","match":{"exactSegments":false},"mode":"status_page_pack_html"}]},{"id":"stockist","name":"Stockist Dealer Locator","category":"commerce-social","description":"Extracts public Stockist store/dealer locator JSON payloads and discovers Stockist widget tags on merchant HTML pages.","domains":["stockist.co","www.stockist.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stockist.co/api/v1/map_93wm75n3/locations/all"],"routes":[{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}},{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations","all"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}}],"htmlRoutes":[{"id":"stockist","match":{"exactSegments":false},"mode":"stockist_html"}]},{"id":"storemapper","name":"Storemapper Dealer Locator","category":"commerce-social","description":"Extracts public Storemapper store locator JSON feeds and discovers Storemapper widget IDs on merchant HTML pages.","domains":["www.storemapper.co","storemapper.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.storemapper.co/api/users/12873/stores.json"],"routes":[{"match":{"hosts":["www.storemapper.co","storemapper.co"],"pathSegments":["api","users",{"param":"userId","charset":"alnum_dash","minLen":1,"maxLen":64},"stores.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storemapper_locations"}}],"htmlRoutes":[{"id":"storemapper","match":{"exactSegments":false},"mode":"storemapper_html"}]},{"id":"storerocket","name":"StoreRocket Dealer Locator","category":"commerce-social","description":"Extracts public StoreRocket store locator JSON payloads and discovers StoreRocket widget IDs on merchant HTML pages.","domains":["storerocket.io","www.storerocket.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storerocket.io/api/user/OdJERNO8WE/locations"],"routes":[{"match":{"hosts":["storerocket.io","www.storerocket.io"],"pathSegments":["api","user",{"param":"userId","charset":"alnum_dash","minLen":2,"maxLen":64},"locations"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storerocket_locations"}}],"htmlRoutes":[{"id":"storerocket","match":{"exactSegments":false},"mode":"storerocket_html"}]},{"id":"strava-segments","name":"Strava Public Segments","category":"commerce-social","description":"Extracts Strava segments via authenticated API v3 (/api/v3/segments/* with STRAVA_ACCESS_TOKEN or Part 2 strava Virtual OAuth MCP) and public /segments/* __NEXT_DATA__ HTML fallback, rejecting /register/free authwalls.","domains":["www.strava.com","strava.com"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://www.strava.com/segments/229781","https://www.strava.com/api/v3/segments/229781"],"routes":[{"match":{"hosts":["www.strava.com","strava.com"],"exactSegments":true,"pathSegments":["api","v3","segments",{"param":"segmentId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576,"auth_mode":"key"},"extract":{"jsonMode":"strava_segments_json"}}],"htmlRoutes":[{"id":"strava-segments","mode":"strava_segments_html","match":{"hosts":["www.strava.com","strava.com"],"pathPrefix":"/segments/","exactSegments":false}}]},{"id":"supremecourt-gov","name":"U.S. Supreme Court Opinions, Dockets & Orders","category":"public-records","description":"Robots-enforced HTML adapter for Supreme Court slip opinions, public docket files, and orders of the Court.","domains":["supremecourt.gov","www.supremecourt.gov"],"auth_mode":"html","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.supremecourt.gov/opinions/slipopinion/24","https://www.supremecourt.gov/docket/docketfiles/html/public/23-939.html","https://www.supremecourt.gov/orders/ordersofthecourt/24"],"htmlRoutes":[{"id":"supremecourt-gov","match":{"anyOf":[{"pathPrefix":"/opinions/"},{"pathPrefix":"/docket/"},{"pathPrefix":"/orders/"}]},"mode":"supremecourt_html"}]},{"id":"taleo-full","name":"Oracle Taleo Career Section Job Search","category":"jobs","description":"Formats Oracle Taleo career-section job boards via the public /careersection/rest/jobboard/searchjobs endpoint (portal id from the page: title, location, posted date, contest number, total open requisitions) plus SSR FreeMarker /careersection/
/jobsearch.ftl and jobdetail.ftl HTML fallbacks.","domains":["hdr.taleo.net","*.taleo.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://hdr.taleo.net/careersection/rest/jobboard/searchjobs?lang=en&portal=101430233§ion=ex","https://chicago.taleo.net/careersection/100/jobsearch.ftl"],"routes":[{"match":{"hostSubdomain":{"suffix":".taleo.net","param":"tenant","reserved":["www"]},"pathEquals":["/careersection/rest/jobboard/searchjobs"],"queryParams":[{"name":"portal","param":"portal","charset":"digits","minLen":4,"maxLen":20},{"name":"section","param":"section","charset":"slug","minLen":1,"maxLen":40,"optional":true}]},"twin":{"fetchUrl":"https://{host}/careersection/rest/jobboard/searchjobs?lang=en&portal={portal}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","headers":{"tz":"GMT-06:00","tzname":"America/Chicago"},"requestBody":"{\"multilineEnabled\":false,\"sortingSelection\":{\"sortBySelectionParam\":\"3\",\"ascendingSortingOrder\":\"false\"},\"fieldData\":{\"fields\":{\"KEYWORD\":\"\",\"LOCATION\":\"\"},\"valid\":true},\"filterSelectionParam\":{\"searchFilterSelections\":[]},\"advancedSearchFiltersSelectionParam\":{\"searchFilterSelections\":[]},\"pageNo\":1}","maxBytes":4194304},"extract":{"jsonMode":"taleo_searchjobs_json"}}],"htmlRoutes":[{"id":"taleo-full","mode":"taleo_full_html","match":{"pathPrefix":"/careersection/","exactSegments":false}}]},{"id":"target","name":"Target","category":"commerce-social","description":"Extracts Target product pages from schema.org Product JSON-LD (including entity-encoded ld+json) and live Target SSR HTML metadata without calling disallowed redsky endpoints.","domains":["target.com","www.target.com","redsky.target.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.target.com/p/campus-lab-university-of-arkansas-at-monticello-official-uam-boll-weevils-logo-unisex-adult-pull-over-hoodie/-/A-1000000076"],"htmlRoutes":[{"id":"target","match":{"hosts":["target.com","www.target.com"]},"mode":"target_html"}]},{"id":"teamtailor","name":"Teamtailor Career Portals","category":"jobs","description":"Upgrades [.na].teamtailor.com career roots to their /jobs.rss feed with locations and departments.","domains":["*.teamtailor.com"],"exampleUrls":["https://stratio.teamtailor.com/","https://stratio.teamtailor.com/jobs"],"match":{"hostSubdomain":{"suffix":".teamtailor.com","param":"org","stripOptional2LetterRegion":true,"reserved":["www","app","career"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"teamtailor","fetchUrl":"https://{host}/jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"org","titleTemplate":"{channelTitle} — Open Roles ({itemCount})","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["tt:department","category"],"default":"-"},"loc":{"tags":["tt:location","g:location","location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"id":"tech-job-boards-jsonld","name":"Tech Job Boards (BuiltIn, Wellfound, Dice)","category":"jobs","description":"Extracts JobPosting JSON-LD (including HTML-entity-encoded application/ld+json) from BuiltIn, Wellfound, and Dice while honoring robots.txt and rejecting Cloudflare Turnstile/SPA shells.","domains":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://builtin.com/job/executive-employee-social-media-vice-president/12592638"],"htmlRoutes":[{"id":"tech-job-boards-jsonld","mode":"tech_job_boards_jsonld_html","match":{"hosts":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"exactSegments":false}}]},{"id":"terraform-registry","name":"Terraform Registry","category":"developer","description":"Upgrades registry.terraform.io provider and module pages to the official keyless /v1/ JSON API with versions, documentation entries, inputs, outputs, and README.","domains":["registry.terraform.io"],"exampleUrls":["https://registry.terraform.io/providers/hashicorp/random","https://registry.terraform.io/providers/hashicorp/random/3.8.1","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/5.1.0"],"routes":[{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","docs"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","submodules","examples"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}}]},{"id":"ticketmaster-discovery","name":"Ticketmaster Discovery API","category":"commerce-social","description":"Extracts Ticketmaster events, venues, and attractions via the official Ticketmaster Discovery API v2 with Schema.org Event JSON-LD HTML fallback.","domains":["ticketmaster.com","www.ticketmaster.com","app.ticketmaster.com"],"auth_mode":"key","exampleUrls":["https://app.ticketmaster.com/discovery/v2/events.json?keyword=concert&countryCode=US","https://www.ticketmaster.com/demo-tour-los-angeles-california-12-01-2026/event/3C006457CF441F75"],"routes":[{"match":{"hosts":["app.ticketmaster.com"],"pathPrefix":"/discovery/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}},{"match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"scanSegment":{"afterLiteral":"event","param":"eventId","charset":"alnum","minLen":6,"maxLen":32}},"twin":{"fetchUrl":"https://app.ticketmaster.com/discovery/v2/events/{eventId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}}],"htmlRoutes":[{"id":"ticketmaster-discovery","match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"exactSegments":false},"mode":"ticketmaster_html"}]},{"id":"townnews-blox","name":"TownNews BLOX CMS","category":"commerce-social","description":"Extracts TownNews BLOX ?f=json news asset twins and discovers tncms/bloxcms markers on local publisher HTML pages.","domains":["lancasteronline.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lancasteronline.com/sports/highschool/football/district-3-gold-piaa-glory-up-for-grabs-for-4-l-l-league-football-teams/article_a6f1fede-b459-44f2-a5cd-8224c48f76a8.html"],"routes":[{"match":{"hosts":["lancasteronline.com"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"townnews_blox_json"}}],"htmlRoutes":[{"id":"townnews-blox","match":{"exactSegments":false},"mode":"townnews_blox_html"}]},{"id":"tq-ebike","name":"TQ e-Mobility Products & Support","category":"commerce-social","description":"Extracts Product JSON-LD, drive system technical specs, and support documentation from www.tq-ebike.com product and help-support pages.","domains":["www.tq-ebike.com","tq-ebike.com"],"exampleUrls":["https://www.tq-ebike.com/en/e-bike-system/hpr50/"],"htmlRoutes":[{"id":"tq-ebike","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["products",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["e-bike-system",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["help-support",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main","article",".tx-specs",".site-content","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"trailforks-mtb-project","name":"Trailforks & MTB Project Trail Intelligence","category":"commerce-social","description":"Official Trailforks API v1 key-authenticated twin + HTML fallback for Trailforks and MTB Project trail reports (honoring mtbproject.com Crawl-delay: 60 and Disallow: /data*).","domains":["trailforks.com","www.trailforks.com","mtbproject.com","www.mtbproject.com"],"auth_mode":"key","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.trailforks.com/trails/betasso-preserve-canyon-loop/","https://www.trailforks.com/api/1/trail?id=40401","https://www.mtbproject.com/trail/12376/buffehr-creek-trail"],"routes":[{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathEquals":["/api/1/trail","/api/1/trail/","/api/1/trails","/api/1/trails/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}},{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathSegments":["trails",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}],"exactSegments":false},"twin":{"fetchUrl":"https://www.trailforks.com/api/1/trail?id={slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}}],"htmlRoutes":[{"id":"trailforks-mtb-project","match":{"exactSegments":false},"mode":"trailforks_mtb_html"}]},{"id":"transitland-gtfs","name":"Transitland GTFS Registry","category":"public-records","description":"Transitland v2 REST API (apikey header on apex transit.land) for GTFS feeds/operators/routes/stops with www.transit.land/data/feeds HTML fallback.","domains":["transit.land","www.transit.land"],"auth_mode":"key","exampleUrls":["https://transit.land/api/v2/rest/feeds?limit=1","https://www.transit.land/data/feeds/f-9q9-bart"],"routes":[{"match":{"hosts":["transit.land"],"pathPrefix":"/api/v2/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}},{"match":{"hosts":["www.transit.land","transit.land"],"exactSegments":true,"pathSegments":["data","feeds",{"param":"feedId","charset":"alnum_dash","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://transit.land/api/v2/rest/feeds/{feedId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}}],"htmlRoutes":[{"id":"transitland-gtfs","match":{"hosts":["www.transit.land","transit.land"],"exactSegments":false},"mode":"transitland_html"}]},{"id":"treasury-fiscal-data","name":"U.S. Treasury Fiscal Data","category":"finance","description":"Upgrades fiscaldata.treasury.gov dataset pages to keyless api.fiscaldata.treasury.gov JSON endpoints with metadata-labeled GFM tables and HTML fallback.","domains":["fiscaldata.treasury.gov","api.fiscaldata.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/debt-to-the-penny","https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1"],"routes":[{"match":{"hosts":["api.fiscaldata.treasury.gov"],"pathPrefix":"/services/api/fiscal_service/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}},{"match":{"hosts":["fiscaldata.treasury.gov"],"pathPrefix":"/datasets/debt-to-the-penny"},"twin":{"fetchUrl":"https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page[size]=1","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}}],"htmlRoutes":[{"id":"treasury-fiscal-data","match":{"hosts":["fiscaldata.treasury.gov"],"exactSegments":false},"mode":"treasury_fiscal_html"}]},{"id":"trustpilot","name":"Trustpilot Business Reviews","category":"commerce-social","description":"Extracts Trustpilot business summary and review records from __NEXT_DATA__ or JSON-LD while honoring robots.txt policies.","domains":["trustpilot.com","www.trustpilot.com"],"auth_mode":"html","exampleUrls":["https://www.trustpilot.com/review/shopify.com"],"htmlRoutes":[{"id":"trustpilot","match":{"hosts":["trustpilot.com","www.trustpilot.com"],"exactSegments":false},"mode":"trustpilot_html"}]},{"id":"twitch-kick","name":"Twitch & Kick Streaming","category":"commerce-social","description":"Extracts Twitch Helix (Bearer + Client-Id) and Kick public v1/v2 channel APIs plus Twitch/Kick channel HTML.","domains":["api.twitch.tv","www.twitch.tv","twitch.tv","api.kick.com","kick.com","www.kick.com"],"auth_mode":"key","exampleUrls":["https://kick.com/api/v2/channels/kick","https://www.twitch.tv/twitch","https://kick.com/kick","https://api.twitch.tv/helix/users?login=twitch"],"routes":[{"match":{"hosts":["api.twitch.tv"],"pathPrefix":"/helix/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["api.kick.com"],"pathPrefix":"/public/v1/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["kick.com","www.kick.com"],"exactSegments":true,"pathSegments":["api","v2","channels",{"param":"slug","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub"},"extract":{"jsonMode":"twitch_kick_json"}}],"htmlRoutes":[{"id":"twitch-kick","match":{"hosts":["www.twitch.tv","twitch.tv","kick.com","www.kick.com"],"exactSegments":false},"mode":"twitch_kick_html"}]},{"id":"tyler-energov","name":"Tyler Technologies EnerGov SelfService","category":"public-records","description":"Extracts public permit, plan, and license records from Tyler EnerGov SelfService APIs and SSR HTML while rejecting empty AngularJS shells and WAF challenges.","domains":["energovweb.capecoral.gov","energovcss.miamibeachfl.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://energovweb.capecoral.gov/EnerGovProd/selfservice/api/energov/permits","https://energovweb.capecoral.gov/EnerGovProd/selfservice","https://energovcss.miamibeachfl.gov/energovprod/selfservice/"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/EnerGov_Prod/SelfService/api/"},{"pathPrefix":"/EnerGovProd/selfservice/api/"},{"pathPrefix":"/energovprod/selfservice/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"tyler_energov_json"}}],"htmlRoutes":[{"id":"tyler-energov","match":{"exactSegments":false},"mode":"tyler_energov_html"}]},{"id":"ukg-paylocity-dover","name":"UKG Pro, Paylocity & Dover Job Boards","category":"jobs","description":"Extracts structured open roles from Paylocity (/recruiting/api/feed/jobs & window.pageData), UKG Pro (*/JobBoard/* only, never / or */JobBoardView), and Dover HTML/SSR __NEXT_DATA__ (never /api/).","domains":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com"],"exampleUrls":["https://recruiting.paylocity.com/Recruiting/Jobs/All/cfe0e892-760a-4f34-b732-e6d0be968d4f"],"routes":[{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/all/","scanSegment":{"afterLiteral":"all","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"https://recruiting.paylocity.com/recruiting/api/feed/jobs/{guid}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}},{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/api/feed/jobs/","scanSegment":{"afterLiteral":"jobs","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}}],"htmlRoutes":[{"id":"ukg-paylocity-dover","mode":"ukg_pro_html","match":{"hosts":["recruiting.ultipro.com"],"pathContainsSegment":"JobBoard","minSegments":3}},{"id":"ukg-paylocity-dover","mode":"paylocity_html","match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/"}},{"id":"ukg-paylocity-dover","mode":"dover_html","match":{"anyOf":[{"hosts":["app.dover.com"],"exactSegments":false,"pathSegments":["jobs",{"param":"org","charset":"slug","minLen":1,"maxLen":120}]},{"hosts":["jobs.dover.com"],"minSegments":1,"reservedFirstSegment":["api","apply","static","assets","_next","login"]}]}}]},{"id":"us-cfr-govinfo","name":"U.S. CFR & GovInfo","category":"public-records","description":"Bypasses the empty Angular /app/details/ SPA on govinfo.gov by fetching static /content/pkg//html/*.htm documents or /wssearch/getContentDetail summary JSON.","domains":["www.govinfo.gov","govinfo.gov"],"exampleUrls":["https://www.govinfo.gov/app/details/CFR-2023-title16-vol2/CFR-2023-title16-vol2-part1500","https://www.govinfo.gov/app/details/CFR-2023-title16-vol2","https://www.govinfo.gov/wssearch/getContentDetail?packageId=CFR-2023-title16-vol2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"param":"granuleId","charset":"pkg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{granuleId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{granuleId} ({pkgId})"}},{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{pkgId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{pkgId}"}},{"match":{"pathEquals":["/wssearch/getContentDetail"],"queryParams":[{"name":"packageId","param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"name":"granuleId","param":"granuleId","charset":"pkg","optional":true,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["title","packageId"],"vars":{"title":{"paths":["title"],"fallbackTemplate":"{pkgId}","trim":true},"packageId":{"paths":["packageId"],"fallbackTemplate":"{pkgId}"},"collection":{"paths":["collectionName","collection","collectionCode"]},"category":{"paths":["category"]},"dateIssued":{"paths":["dateIssued"]},"lastModified":{"paths":["lastModified"],"sliceMax":10},"authors":{"paths":["governmentAuthor","metadata.agency"],"join":", ","limit":10},"granuleCount":{"paths":["granuleCount"],"format":"int_comma"},"pdfLink":{"paths":["download.pdfLink"],"requireHttps":true},"htmlLink":{"paths":["download.htmlLink","download.htmLink"],"requireHttps":true},"xmlLink":{"paths":["download.xmlLink"],"requireHttps":true},"txtLink":{"paths":["download.txtLink"],"requireHttps":true},"zipLink":{"paths":["download.zipLink"],"requireHttps":true},"modsLink":{"paths":["download.modsLink"],"requireHttps":true}},"titleTemplate":"{title}","authorVar":"authors","publishedTimeVar":"dateIssued","bullets":[{"label":"Package ID","template":"`{packageId}`","whenVar":"packageId"},{"label":"Collection","template":"{collection}","whenVar":"collection"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Date Issued","template":"{dateIssued}","whenVar":"dateIssued"},{"label":"Last Modified","template":"{lastModified}","whenVar":"lastModified"},{"label":"Government Author","template":"{authors}","whenVar":"authors"},{"label":"Granules","template":"{granuleCount}","whenVar":"granuleCount"},{"label":"PDF Download","template":"{pdfLink}","whenVar":"pdfLink"},{"label":"HTML Download","template":"{htmlLink}","whenVar":"htmlLink"},{"label":"XML Download","template":"{xmlLink}","whenVar":"xmlLink"},{"label":"Text Download","template":"{txtLink}","whenVar":"txtLink"},{"label":"ZIP Archive","template":"{zipLink}","whenVar":"zipLink"}],"linksVars":["pdfLink","htmlLink","xmlLink","txtLink","zipLink","modsLink"]}}]},{"id":"usajobs","name":"USAJOBS Federal Jobs","category":"jobs","description":"Extracts federal job search listings and codelists from data.usajobs.gov (with Authorization-Key + User-Agent) and JobPosting/HTML job details from www.usajobs.gov.","domains":["data.usajobs.gov","www.usajobs.gov","usajobs.gov"],"auth_mode":"key","user_agent_profile":"usajobs","strict_robots":true,"exampleUrls":["https://data.usajobs.gov/api/search?Keyword=software","https://www.usajobs.gov/job/893002300"],"routes":[{"match":{"hosts":["data.usajobs.gov"],"anyOf":[{"pathPrefix":"/api/search"},{"pathPrefix":"/api/codelist/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usajobs_json"}}],"htmlRoutes":[{"id":"usajobs","mode":"usajobs_html","match":{"hosts":["www.usajobs.gov","usajobs.gov"],"exactSegments":false}}]},{"id":"usaspending","name":"USAspending.gov Federal Awards","category":"public-records","description":"Upgrades usaspending.gov/award/ pages to api.usaspending.gov/api/v2/awards// JSON details.","domains":["www.usaspending.gov","usaspending.gov"],"exampleUrls":["https://www.usaspending.gov/award/CONT_AWD_ZSMG_9700_HTC71114DR027_9700"],"match":{"exactSegments":false,"pathSegments":["award",{"param":"awardId","charset":"pkg","minLen":4,"maxLen":140}]},"twin":{"fetchUrl":"https://api.usaspending.gov/api/v2/awards/{awardId}/","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["generated_unique_award_id","piid","fain"],"vars":{"idLabel":{"paths":["piid","fain","uri"],"fallbackTemplate":"{awardId}"},"category":{"paths":["category"],"default":"Federal Award"},"recipient":{"paths":["recipient.recipient_name"]},"awardingAgency":{"paths":["awarding_agency.toptier_agency.name"]},"fundingAgency":{"paths":["funding_agency.toptier_agency.name"]},"obligation":{"paths":["total_obligation"],"format":"usd_compact"},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"startDate":{"paths":["period_of_performance.start_date"]},"hasPop":{"paths":["period_of_performance.start_date","period_of_performance.end_date"]},"startOrQ":{"paths":["period_of_performance.start_date"],"default":"?"},"endOrQ":{"paths":["period_of_performance.end_date"],"default":"?"}},"titleTemplate":"{idLabel} — {recipient} (USAspending)","titleWhenVar":"recipient","titleFallbackTemplate":"{idLabel} (USAspending)","descriptionVar":"descShort","publishedTimeVar":"startDate","bullets":[{"label":"Award ID","template":"`{idLabel}` ({category})"},{"label":"Recipient","template":"{recipient}","whenVar":"recipient"},{"label":"Total Obligation","template":"{obligation}","whenVar":"obligation"},{"label":"Awarding Agency","template":"{awardingAgency}","whenVar":"awardingAgency"},{"label":"Funding Agency","template":"{fundingAgency}","whenVar":"fundingAgency"},{"label":"Period of Performance","template":"{startOrQ} → {endOrQ}","whenVar":"hasPop"}],"sections":[{"heading":"Award Description","textVar":"desc"}]}},{"id":"uscode-house","name":"U.S. Code (House OLRC)","category":"public-records","description":"HTML extractor for U.S. House Office of the Law Revision Counsel United States Code sections, title browse trees, and legacy /view.xhtml pages.","domains":["uscode.house.gov"],"auth_mode":"pub","exampleUrls":["https://uscode.house.gov/us/usc/t17/s107/","https://uscode.house.gov/browse.html","https://uscode.house.gov/us/usc/t17/frontmatter/"],"htmlRoutes":[{"id":"uscode-house","match":{"anyOf":[{"pathPrefix":"/us/usc/"},{"pathEquals":["/browse.html"]},{"pathPrefix":"/browse-tree/"},{"pathEquals":["/view.xhtml"]}]},"mode":"uscode_house_html"}]},{"id":"usda-nass-fdc","name":"USDA FoodData Central & NASS QuickStats","category":"research-health","description":"USDA FoodData Central REST API v1 (/fdc/v1/...) and NASS QuickStats (/api/api_GET/) adapter with Angular SPA shell guard.","domains":["quickstats.nass.usda.gov","fdc.nal.usda.gov","api.nal.usda.gov"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://api.nal.usda.gov/fdc/v1/food/171705","https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=3","https://quickstats.nass.usda.gov/api/api_GET/?commodity_desc=CORN&year=2023&state_alpha=IA"],"routes":[{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":true,"pathSegments":["fdc","v1","food",{"param":"fdcId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://api.nal.usda.gov/fdc/v1/food/{fdcId}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":false,"pathPrefix":"/fdc/v1/foods"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["quickstats.nass.usda.gov"],"exactSegments":false,"pathEquals":["/api/api_GET","/api/api_GET/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"format":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_nass_json"}}],"htmlRoutes":[{"id":"usda-nass-fdc","match":{"hosts":["fdc.nal.usda.gov"],"exactSegments":false},"mode":"usda_fdc_html"}]},{"id":"usfs-blm-trails","name":"USFS & BLM Trails ArcGIS Services","category":"public-records","description":"US Forest Service (apps.fs.usda.gov) and BLM (gis.blm.gov) ArcGIS MapServer/FeatureServer layer metadata and /query feature adapter, scoped off *.arcgis.com.","domains":["apps.fs.usda.gov","gis.blm.gov"],"auth_mode":"pub","exampleUrls":["https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recreation_Offline/FeatureServer/0/query?where=1%3D1&outFields=*&resultRecordCount=1&f=json","https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recs_pts/MapServer/0?f=json","https://gis.blm.gov/arcgis/rest/services/transportation/BLM_Natl_GTLF_Public_Display/MapServer?f=json"],"routes":[{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","pathSuffix":"/query"},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","pathSuffix":"/query"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"defaultQueryParams":{"where":"1=1","outFields":"*","returnGeometry":"false","resultRecordCount":"25"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usfs_blm_trails_json"}},{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","arcgisRestLayer":true},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","arcgisRestLayer":true}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usfs_blm_trails_json"}}]},{"id":"usgs-earthquakes","name":"USGS Earthquake Hazards Program","category":"research-health","description":"USGS GeoJSON earthquake summary feeds, FDSNWS Event Query API, and eventpage JSON twins.","domains":["earthquake.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson","https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=5&minmagnitude=4.5","https://earthquake.usgs.gov/earthquakes/eventpage/us6000ue1k/executive"],"routes":[{"match":{"hosts":["earthquake.usgs.gov"],"anyOf":[{"pathPrefix":"/earthquakes/feed/"},{"pathPrefix":"/fdsnws/event/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_earthquakes_json"}},{"match":{"hosts":["earthquake.usgs.gov"],"exactSegments":false,"pathSegments":["earthquakes","eventpage",{"param":"eventId","charset":"alnum_dash","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"https://earthquake.usgs.gov/fdsnws/event/1/query?eventid={eventId}&format=geojson","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_earthquakes_json"}}]},{"id":"usgs-water","name":"USGS Water Services & OGC API","category":"research-health","description":"USGS NWIS Water Services (WaterML JSON and tab-delimited RDB) and api.waterdata.usgs.gov OGC API GeoJSON adapter.","domains":["waterservices.usgs.gov","api.waterdata.usgs.gov","waterdata.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://api.waterdata.usgs.gov/ogcapi/v0/collections/monitoring-locations?f=json","https://api.waterdata.usgs.gov/ogcapi/v0/collections?f=json"],"routes":[{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/","queryParams":[{"name":"format","param":"fmt","allowValues":["rdb","rdb,1.0"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"usgs_water_rdb"}},{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["api.waterdata.usgs.gov"],"pathPrefix":"/ogcapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["waterdata.usgs.gov"],"exactSegments":false,"pathSegments":["monitoring-location",{"param":"siteNo","charset":"digits","minLen":5,"maxLen":15}]},"twin":{"fetchUrl":"https://waterservices.usgs.gov/nwis/iv/?format=json&sites={siteNo}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_water_json"}}]},{"id":"uspto-patentsview","name":"USPTO PatentsView & Open Data Portal","category":"public-records","description":"USPTO Open Data Portal (api.uspto.gov) patent application and PatentsView API JSON adapter with HTML fallback.","domains":["patentsview.org","www.patentsview.org","search.patentsview.org","api.patentsview.org","api.uspto.gov","data.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.uspto.gov/api/v1/patent/applications/16330077","https://api.uspto.gov/api/v1/patent/applications/search?q=16330077"],"routes":[{"match":{"hosts":["api.uspto.gov"],"pathPrefix":"/api/v1/patent/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["api.patentsview.org"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patent",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patents",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}}],"htmlRoutes":[{"id":"uspto-patentsview","match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false},"mode":"uspto_patentsview_html"}]},{"id":"uspto-ppubs","name":"USPTO Patent Public Search (PPUBS)","category":"public-records","description":"USPTO Patent Public Search (ppubs.uspto.gov) HTML adapter rejecting empty SPA shells.","domains":["ppubs.uspto.gov","patft.uspto.gov"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://ppubs.uspto.gov/basic/"],"htmlRoutes":[{"id":"uspto-ppubs","match":{"hosts":["ppubs.uspto.gov","patft.uspto.gov"],"exactSegments":false},"mode":"uspto_ppubs_html"}]},{"id":"uspto-tsdr","name":"USPTO TSDR Trademark Status","category":"public-records","description":"USPTO Trademark Status & Document Retrieval (TSDR) API JSON adapter with keyless tsdr.uspto.gov/statusview HTML fallback.","domains":["tsdr.uspto.gov","tsdrapi.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://tsdrapi.uspto.gov/ts/cd/casestatus/sn78787878/info.json","https://tsdr.uspto.gov/statusview/sn78787878"],"routes":[{"match":{"hosts":["tsdrapi.uspto.gov"],"pathPrefix":"/ts/cd/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}},{"match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false,"pathSegments":["statusview",{"param":"caseNum","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://tsdrapi.uspto.gov/ts/cd/casestatus/{caseNum}/info.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}}],"htmlRoutes":[{"id":"uspto-tsdr","match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false},"mode":"uspto_tsdr_html"}]},{"id":"vanilla-forums","name":"Vanilla Forums","category":"commerce-social","description":"Upgrades Vanilla Forums /discussion/{discussionID} URLs to same-origin /api/v2/discussions/{discussionID} JSON twins with HTML fallback.","domains":["forum.onshape.com","forum.polkaudio.com","forum.linuxfoundation.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://forum.onshape.com/discussion/32195/new-feature-codes","https://forum.onshape.com/api/v2/discussions/32195","https://forum.polkaudio.com/api/v2/discussions/163343"],"routes":[{"match":{"exactSegments":false,"pathSegments":["discussion",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/api/v2/discussions/{discussionID}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}}],"htmlRoutes":[{"id":"vanilla-forums","match":{"exactSegments":false},"mode":"vanilla_forums_html"}]},{"id":"vimeo","name":"Vimeo Video & oEmbed","category":"commerce-social","description":"Extracts Vimeo video and player embed metadata via Vimeo oEmbed JSON and VideoObject HTML fallback.","domains":["vimeo.com","www.vimeo.com","player.vimeo.com"],"auth_mode":"pub","exampleUrls":["https://vimeo.com/76979871","https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F76979871","https://player.vimeo.com/video/76979871"],"routes":[{"match":{"hosts":["vimeo.com","www.vimeo.com"],"pathEquals":["/api/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["vimeo.com","www.vimeo.com"],"exactSegments":true,"pathSegments":[{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["player.vimeo.com"],"exactSegments":true,"pathSegments":["video",{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}}],"htmlRoutes":[{"id":"vimeo","match":{"exactSegments":false},"mode":"vimeo_html"}]},{"id":"vtex","name":"VTEX Storefronts & Catalog API","category":"commerce-social","description":"Extracts VTEX storefront product JSON from /api/catalog_system/pub/products/search and /variations endpoints, plus post-HTML storefront JSON-LD and companion discovery.","domains":["www.motorola.com.br"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.motorola.com.br/api/catalog_system/pub/products/search?fq=productId:488"],"routes":[{"match":{"pathEquals":["/api/catalog_system/pub/products/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathPrefix":"/api/catalog_system/pub/products/search/","pathSuffix":"/p"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathSegments":["api","catalog_system","pub","products","variations",{"param":"productId","charset":"pkg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}}],"htmlRoutes":[{"id":"vtex","match":{"exactSegments":false},"mode":"vtex_html"}]},{"id":"walmart","name":"Walmart Official Affiliate/IO API","category":"commerce-social","description":"Official Walmart Affiliate/IO API product lookup only (zero HTML scraping of walmart.com).","domains":["walmart.com","www.walmart.com","developer.api.walmart.com"],"auth_mode":"key","exampleUrls":["https://www.walmart.com/ip/132000132","https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/132000132"],"routes":[{"match":{"hosts":["walmart.com","www.walmart.com"],"anyOf":[{"exactSegments":true,"pathSegments":["ip",{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]},{"exactSegments":false,"pathSegments":["ip",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]}]},"twin":{"fetchUrl":"https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}},{"match":{"hosts":["developer.api.walmart.com"],"pathPrefix":"/api-proxy/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}}]},{"id":"weather-gov","name":"National Weather Service (weather.gov)","category":"research-health","description":"NOAA National Weather Service GeoJSON API (points, gridpoint forecasts, active alerts, observations) and forecast.weather.gov HTML extractor with identifying User-Agent.","domains":["weather.gov","www.weather.gov","api.weather.gov","forecast.weather.gov"],"auth_mode":"pub","user_agent_profile":"weather-gov","strict_robots":true,"exampleUrls":["https://forecast.weather.gov/MapClick.php?lat=39.7456&lon=-97.0892","https://forecast.weather.gov/MapClick.php?lat=40.7128&lon=-74.0060"],"routes":[{"match":{"hosts":["api.weather.gov"],"anyOf":[{"pathPrefix":"/points/"},{"pathPrefix":"/gridpoints/"},{"pathPrefix":"/alerts"},{"pathPrefix":"/stations/"},{"pathPrefix":"/zones/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json","maxBytes":2097152},"extract":{"jsonMode":"weather_gov_json"}}],"htmlRoutes":[{"id":"weather-gov","match":{"hosts":["weather.gov","www.weather.gov","forecast.weather.gov"],"exactSegments":false},"mode":"weather_gov_html"}]},{"id":"wikidata-openlibrary","name":"Wikidata & Open Library","category":"research-health","description":"Upgrades wikidata.org/wiki/Q* to Special:EntityData/Q*.json (handling labels.en, labels.mul, and sitelinks.enwiki fallbacks) and openlibrary.org/isbn/* to /isbn/*.json (never calling disallowed /api/*).","domains":["www.wikidata.org","wikidata.org","openlibrary.org","www.openlibrary.org"],"exampleUrls":["https://www.wikidata.org/wiki/Q42","https://openlibrary.org/isbn/9780140328721"],"routes":[{"match":{"hosts":["www.wikidata.org","wikidata.org"],"exactSegments":true,"pathPrefix":"/wiki/Q","pathSegments":["wiki",{"param":"qidNum","stripPrefix":"Q","charset":"digits","minLen":1,"maxLen":15}]},"twin":{"fetchUrl":"https://www.wikidata.org/wiki/Special:EntityData/Q{qidNum}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["entities"],"vars":{"qid":{"template":"Q{qidNum}"},"labelEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.en.value"},"trim":true},"labelMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.mul.value"},"trim":true},"labelEnwiki":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"trim":true},"labelMulOrEnwiki":{"template":"{labelMul}","whenVars":["labelMul"],"fallbackVar":"labelEnwiki"},"label":{"template":"{labelEn}","whenVars":["labelEn"],"fallbackVar":"labelMulOrEnwiki"},"descEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.en.value"},"trim":true},"descMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.mul.value"},"trim":true},"desc":{"template":"{descEn}","whenVars":["descEn"],"fallbackVar":"descMul"},"aliasesEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.en"},"subField":"value","join":", ","limit":10},"aliasesMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.mul"},"subField":"value","join":", ","limit":10},"aliases":{"template":"{aliasesEn}","whenVars":["aliasesEn"],"fallbackVar":"aliasesMul"},"modified":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"modified"},"sliceMax":10},"claimProps":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims"},"format":"object_keys","limit":25,"itemWrap":"`","join":", "},"instanceOf":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P31"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"sexOrGender":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P21"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":3},"citizenship":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P27"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":5},"occupation":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P106"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"birthDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P569"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"deathDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P570"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"inception":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P571"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"population":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P1082"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal","fallbackLast":true},"subField":"mainsnak.datavalue.value.amount","format":"int_comma"},"officialWebsite":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P856.0.mainsnak.datavalue.value"},"trim":true,"requireHttpPrefix":true},"enwikiSlug":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"replaceAll":{"from":" ","to":"_"}},"enwikiUrl":{"template":"https://en.wikipedia.org/wiki/{enwikiSlug}","whenVars":["enwikiSlug"],"requireHttps":true},"wikidataUrl":{"template":"https://www.wikidata.org/wiki/{qid}","requireHttps":true}},"requireVars":["label"],"titleTemplate":"{label} ({qid})","descriptionVar":"desc","publishedTimeVar":"modified","introVar":"desc","bullets":[{"label":"Wikidata ID","template":"`{qid}`"},{"label":"Also Known As","template":"{aliases}","whenVar":"aliases"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"Instance Of","template":"{instanceOf}","whenVar":"instanceOf"},{"label":"Sex or Gender","template":"{sexOrGender}","whenVar":"sexOrGender"},{"label":"Country of Citizenship","template":"{citizenship}","whenVar":"citizenship"},{"label":"Occupation","template":"{occupation}","whenVar":"occupation"},{"label":"Date of Birth","template":"{birthDate}","whenVar":"birthDate"},{"label":"Date of Death","template":"{deathDate}","whenVar":"deathDate"},{"label":"Inception","template":"{inception}","whenVar":"inception"},{"label":"Population","template":"{population}","whenVar":"population"},{"label":"Official Website","template":"{officialWebsite}","whenVar":"officialWebsite"},{"label":"Claim Properties","template":"{claimProps}","whenVar":"claimProps"},{"label":"English Wikipedia","template":"{enwikiUrl}","whenVar":"enwikiUrl"},{"label":"Wikidata URL","template":"{wikidataUrl}","whenVar":"wikidataUrl"}],"linksVars":["wikidataUrl","enwikiUrl","officialWebsite"]}},{"match":{"hosts":["openlibrary.org","www.openlibrary.org"],"exactSegments":true,"pathSegments":["isbn",{"param":"isbn","stripSuffix":".json","charset":"alnum_dash","minLen":10,"maxLen":17}]},"twin":{"fetchUrl":"https://openlibrary.org/isbn/{isbn}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"subtitle":{"paths":["subtitle"],"trim":true},"isbn13":{"paths":["isbn_13"],"itemWrap":"`","join":", "},"isbn10":{"paths":["isbn_10"],"itemWrap":"`","join":", "},"publishers":{"paths":["publishers"],"join":", ","limit":8},"publishDate":{"paths":["publish_date"],"trim":true},"pages":{"paths":["number_of_pages"],"format":"int_comma"},"contributions":{"paths":["contributions"],"join":", ","limit":8},"byStatement":{"paths":["by_statement"],"trim":true,"sliceMax":200},"authorLine":{"template":"{byStatement}","whenVars":["byStatement"],"fallbackVar":"contributions"},"authors":{"paths":["authors"],"subField":"key","join":", ","limit":8},"works":{"paths":["works"],"subField":"key","join":", ","limit":5},"olKey":{"paths":["key"]},"olUrl":{"template":"https://openlibrary.org{olKey}","whenVars":["olKey"],"requireHttps":true},"desc":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true},"descShort":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true,"sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"authorLine","publishedTimeVar":"publishDate","bullets":[{"label":"Subtitle","template":"{subtitle}","whenVar":"subtitle"},{"label":"ISBN-13","template":"{isbn13}","whenVar":"isbn13"},{"label":"ISBN-10","template":"{isbn10}","whenVar":"isbn10"},{"label":"Publishers","template":"{publishers}","whenVar":"publishers"},{"label":"Published","template":"{publishDate}","whenVar":"publishDate"},{"label":"Pages","template":"{pages}","whenVar":"pages"},{"label":"By","template":"{byStatement}","whenVar":"byStatement"},{"label":"Contributors","template":"{contributions}","whenVar":"contributions"},{"label":"Author Keys","template":"{authors}","whenVar":"authors"},{"label":"Work Keys","template":"{works}","whenVar":"works"},{"label":"Open Library URL","template":"{olUrl}","whenVar":"olUrl"}],"sections":[{"heading":"Description","textVar":"desc"}],"linksVars":["olUrl"]}}]},{"id":"wild-apricot","name":"Wild Apricot Member Associations & Events","category":"commerce-social","description":"Extracts public Wild Apricot association event details, upcoming event schedules, and member directories from WaGadget DOM while rejecting /sys/login and login-only gated shells.","domains":["www.ndshp.org","members.mbbi.org","*.wildapricot.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.ndshp.org/event-6925405","https://members.mbbi.org/event-6156275","https://members.mbbi.org/Member-Directory/"],"htmlRoutes":[{"id":"wild-apricot","match":{"exactSegments":false},"mode":"wild_apricot_html"}]},{"id":"wistia","name":"Wistia Video Hosting","category":"commerce-social","description":"Extracts Wistia /embed/medias/{mediaId}.json twins and Wistia video HTML while respecting robots.txt /oembed disallow and rejecting login walls.","domains":["fast.wistia.com","fast.wistia.net","home.wistia.com","wistia.com","www.wistia.com"],"auth_mode":"pub","exampleUrls":["https://fast.wistia.com/embed/medias/29b0fbf547.json","https://fast.wistia.com/embed/iframe/29b0fbf547","https://wistia.com/blog/video-marketing-statistics"],"routes":[{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSuffix":".json","pathSegments":["embed","medias",{"param":"mediaId","charset":"alnum","stripSuffix":".json","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}},{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSegments":["embed","iframe",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://{host}/embed/medias/{mediaId}.json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}}],"htmlRoutes":[{"id":"wistia","match":{"exactSegments":false},"mode":"wistia_html"}]},{"id":"wix-stores","name":"Wix Stores","category":"commerce-social","description":"Extracts Wix Stores product details, pricing, stock, options, and media from wix-warmup-data hydration and JSON-LD/Microdata.","domains":["www.vivietmargot.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.vivietmargot.com/product-page/bon-appetit-linen-napkin-lin-bleu"],"htmlRoutes":[{"id":"wix-stores","match":{"exactSegments":false},"mode":"wix_stores_html"}]},{"id":"woocommerce","name":"WooCommerce Store API & Storefronts","category":"commerce-social","description":"Formats public WooCommerce Store API (/wp-json/wc/store/v1/products) feeds, extracts WooCommerce product pages, and implements polite full-store catalog pulls.","domains":["woocommerce.com"],"universalEngine":true,"exampleUrls":["https://yithemes.com/wp-json/wc/store/v1/products?per_page=20&page=1"],"catalog":{"platform":"woocommerce","pauseMs":2000,"pageCap":200,"firstPageTemplate":"{origin}/wp-json/wc/store/v1/products?per_page=100&page=1","perPage":100,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products"]},"twin":{"id":"woocommerce-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_catalog_page"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products",{"param":"pid","charset":"digits"}]},"twin":{"id":"woocommerce-product","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_product"}}],"htmlRoutes":[{"id":"woocommerce","match":{"exactSegments":false},"mode":"woocommerce_html"}]},{"id":"wordpress-vip-newspack","name":"WordPress VIP & Newspack","category":"commerce-social","description":"Extracts WP REST v2 posts/pages JSON twins and Newspack/WP-VIP article HTML without colliding with WooCommerce or standard WordPress blogs.","domains":["calmatters.org","missionlocal.org","www.berkeleyside.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://calmatters.org/wp-json/wp/v2/posts/516249","https://calmatters.org/commentary/2026/11/californias-philanthropic-funders-give-bravely/"],"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}}],"htmlRoutes":[{"id":"wordpress-vip-newspack","match":{"exactSegments":false},"mode":"wp_vip_newspack_html"}]},{"id":"workable","name":"Workable Job Boards & Postings","category":"jobs","description":"Upgrades apply.workable.com boards to /api/v1/widget/accounts/?details=true (merging multi-location rows on shortcode) and single jobs to /api/v2/accounts//jobs/.","domains":["apply.workable.com"],"exampleUrls":["https://apply.workable.com/huggingface/","https://apply.workable.com/huggingface/j/81B46579FE/"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]},"j",{"param":"code","charset":"slug","minLen":4,"maxLen":24}]},"twin":{"id":"workable-job","fetchUrl":"https://apply.workable.com/api/v2/accounts/{org}/jobs/{code}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"jobTitle":{"paths":["title"],"trim":true},"city":{"paths":["location.city"],"trim":true},"region":{"paths":["location.region"],"trim":true},"country":{"paths":["location.country"],"trim":true},"loc3":{"template":"{city}, {region}, {country}","whenVars":["city","region","country"]},"loc2a":{"template":"{city}, {region}","whenVars":["city","region"]},"loc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"loc2c":{"template":"{region}, {country}","whenVars":["region","country"]},"loc1":{"paths":["location.city","location.region","location.country"],"trim":true},"locSub1":{"template":"{loc3}","whenVars":["loc3"],"fallbackVar":"loc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"loc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"loc2c"},"locStr":{"template":"{locSub3}","whenVars":["locSub3"],"fallbackVar":"loc1"},"teleRemote":{"paths":["location.telecommuting"],"format":"bool_map","trueValue":"remote","falseValue":""},"workplace":{"paths":["workplace"],"trim":true,"fallbackTemplate":"{teleRemote}"},"dept":{"paths":["department"],"join":", ","trim":true},"empType":{"paths":["type"],"trim":true},"published":{"paths":["published"],"sliceMax":10,"trim":true},"salCur":{"paths":["salary.salary_currency"],"upper":true,"trim":true,"default":"USD"},"salFrom":{"paths":["salary.salary_from"],"excludeEquals":"0"},"salTo":{"paths":["salary.salary_to"],"excludeEquals":"0"},"salRange":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"]},"salFromOnly":{"template":"{salCur} {salFrom}","whenVars":["salFrom"]},"salToOnly":{"template":"{salCur} – {salTo}","whenVars":["salTo"]},"salSub":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"],"fallbackVar":"salFromOnly"},"salStr":{"template":"{salSub}","whenVars":["salSub"],"fallbackVar":"salToOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","publishedTimeVar":"published","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{locStr}","whenVar":"locStr"},{"label":"Workplace","template":"{workplace}","whenVar":"workplace"},{"label":"Department","template":"{dept}","whenVar":"dept"},{"label":"Type","template":"{empType}","whenVar":"empType"},{"label":"Salary","template":"{salStr}","whenVar":"salStr"},{"label":"Published","template":"{published}","whenVar":"published"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Requirements","textVar":"reqs"},{"heading":"Benefits","textVar":"benefits"}],"linkTemplates":["https://apply.workable.com/{org}/j/{code}/apply/"]}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]}]},"twin":{"id":"workable-board","fetchUrl":"https://apply.workable.com/api/v1/widget/accounts/{org}?details=true","kind":"json","accept":"application/json"},"extract":{"vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"},"orgName":{"paths":["name"],"trim":true,"fallbackTemplate":"{org}"}},"requireVars":["rawCount"],"titleTemplate":"{orgName} — Open Roles ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":100,"linkScanLimit":2000,"emptyText":"No open positions are currently listed on this Workable board.","filter":{"requireField":"title"},"dedupeBy":{"keyPaths":["shortcode"],"mergeTextPaths":["city+state+country"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4,"orBoolPaths":["telecommuting","workplace_type"],"orBoolTargetField":"_isRemote"},"itemVars":{"code":{"paths":["shortcode"],"trim":true},"jTitle":{"paths":["title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://apply.workable.com/{org}/j/{code}/"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLocFallback":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"fallbackTemplate":"{remoteLocFallback}"},"workplace":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site / Hybrid"},"published":{"paths":["published_on"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"},{"header":"Workplace","template":"{workplace}"},{"header":"Published","template":"{published}"}]}]}}]},{"id":"xenforo-thread","name":"XenForo 2 Forum Threads","category":"commerce-social","description":"Extracts structured forum posts, authors, timestamps, and clean quote blocks from XenForo 2 thread HTML (article.message--post) while stripping signatures and sidebar chrome.","domains":["forums.electricbikereview.com","mtbr.com","www.mtbr.com","endless-sphere.com"],"universalEngine":true,"exampleUrls":["https://forums.electricbikereview.com/threads/where-we-are-in-2026.59397/","https://www.mtbr.com/threads/ozark-trail-fs-2-slalom-for-a-kid.1249288/","https://endless-sphere.com/sphere/threads/es-2-0-forum-updates-and-tribulations.119104/"],"htmlRoutes":[{"id":"xenforo-thread","match":{"pathContainsSegment":"threads"},"mode":"xenforo_html"}]},{"id":"ycombinator","name":"Y Combinator Directory & Work at a Startup","category":"finance","description":"Extracts YC company profiles, founders, batches, and open roles from ycombinator.com/companies/ (and upgrades login-gated workatastartup.com company pages to their public YC mirror).","domains":["www.ycombinator.com","ycombinator.com","www.workatastartup.com","workatastartup.com"],"exampleUrls":["https://www.ycombinator.com/companies/supabase","https://www.workatastartup.com/companies/supabase"],"routes":[{"match":{"hosts":["www.workatastartup.com","workatastartup.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"twin":{"id":"workatastartup-yc-mirror","fetchUrl":"https://www.ycombinator.com/companies/{slug}/jobs","kind":"text","accept":"text/html"},"extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}],"htmlRoutes":[{"match":{"hosts":["www.ycombinator.com","ycombinator.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"mode":"embedded_json","dataAttr":"data-page","extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}]},{"id":"yelp-fusion","name":"Yelp Fusion API v3","category":"commerce-social","description":"Extracts business search results, single business profiles, and reviews from the official Yelp Fusion v3 API (api.yelp.com) with a strict 24-hour max cache TTL; yelp.com HTML stays detect-only.","domains":["api.yelp.com"],"auth_mode":"key","max_cache_ttl_ms":86400000,"exampleUrls":["https://api.yelp.com/v3/businesses/search?term=coffee&location=San+Francisco","https://api.yelp.com/v3/businesses/gary-danko-san-francisco"],"routes":[{"match":{"hosts":["api.yelp.com"],"anyOf":[{"pathEquals":["/v3/businesses/search","/v3/businesses/matches"]},{"pathPrefix":"/v3/businesses/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"yelp_fusion_json"}}]},{"id":"yext-locator","name":"Yext Store & Dealer Locator","category":"commerce-social","description":"Opt-in page-key adapter for Yext Live/Search API dealer locators; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["liveapi.yext.com","cdn.yextapis.com","locations.chipotle.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://cdn.yextapis.com/v2/accounts/me/answers/query?api_key=01db1d1e5ebbaa7ea2e6807ad2196ab3&v=20220511&experienceKey=yext-help-hitchhikers&input=locator"],"routes":[{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"entities"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}},{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"answers","query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}}],"htmlRoutes":[{"id":"yext-locator","match":{"exactSegments":false},"mode":"yext_locator_html"}]},{"id":"yotpo","name":"Yotpo Product Reviews","category":"commerce-social","description":"Extracts public Yotpo reviews widget JSON payloads and discovers Yotpo widget markers on storefront HTML pages.","domains":["api-cdn.yotpo.com","api.yotpo.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api-cdn.yotpo.com/v1/widget/MdtpPOdzecvdDWwA3pFvhLyB6ab4osWf5p8TQHpj/products/8158162911322/reviews.json"],"routes":[{"match":{"hosts":["api-cdn.yotpo.com","api.yotpo.com"],"pathSegments":["v1","widget",{"param":"appKey","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},"reviews.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"yotpo_reviews"}}],"htmlRoutes":[{"id":"yotpo","match":{"exactSegments":false},"mode":"yotpo_html"}]},{"id":"zendesk-hc","name":"Zendesk Help Center","category":"developer","description":"Upgrades *.zendesk.com Help Center article, section, and category pages to the official Help Center v2 JSON API with breadcrumbs, updated timestamps, and Markdown conversion.","domains":["*.zendesk.com","support.sram.com"],"exampleUrls":["https://support.zendesk.com/hc/en-us/articles/4408885959066-Lesson-4-Business-rules","https://support.zendesk.com/hc/en-us/sections/5634465167514-Business-rules","https://support.zendesk.com/hc/en-us/categories/6191910393754-Product-guides"],"routes":[{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"articles",{"param":"articleId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/articles/{articleId}.json?include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rejectIfFieldTruthy":"article.draft","requireFields":["article.title","article.body"],"vars":{"title":{"paths":["article.title"],"format":"strip_tags","trim":true},"updatedAt":{"paths":["article.updated_at","article.edited_at"]},"htmlUrl":{"paths":["article.html_url"],"requireHttps":true},"sectionName":{"paths":["sections.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"catAndSec":{"template":"{categoryName} › {sectionName}","whenVars":["categoryName","sectionName"],"fallbackVar":"sectionName"},"breadcrumbs":{"template":"{catAndSec}","whenVars":["catAndSec"],"fallbackVar":"categoryName"},"labels":{"paths":["article.label_names"],"itemWrap":"`","join":", ","limit":12},"bodyMd":{"paths":["article.body"],"format":"html_to_md","trim":true}},"requireVars":["title","bodyMd"],"titleTemplate":"{title}","publishedTimeVar":"updatedAt","bullets":[{"label":"Breadcrumbs","template":"{breadcrumbs}","whenVar":"breadcrumbs"},{"label":"Updated","template":"{updatedAt}","whenVar":"updatedAt"},{"label":"Labels","template":"{labels}","whenVar":"labels"},{"label":"Canonical URL","template":"{htmlUrl}","whenVar":"htmlUrl"}],"bodyVar":"bodyMd","linksVars":["htmlUrl","sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"sections",{"param":"sectionId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/sections/{sectionId}/articles.json?per_page=50&include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["articles","sections"],"vars":{"sectionTitle":{"paths":["sections.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Section #{sectionId}"},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"articleCount":{"paths":["articles"],"format":"array_len_comma"}},"titleTemplate":"{sectionTitle}","bullets":[{"label":"Category","template":"{categoryName}","whenVar":"categoryName"},{"label":"Articles","template":"{articleCount}","whenVar":"articleCount"}],"sections":[{"heading":"Articles","arrayPath":"articles","limit":50,"emptyText":"No published articles found in this section.","requireItemVar":"artTitle","collectLinkVars":["artUrl"],"itemVars":{"artTitle":{"paths":["title"],"format":"strip_tags","trim":true},"artUrl":{"paths":["html_url"],"requireHttps":true},"artLabels":{"paths":["label_names"],"join":", ","limit":8},"artUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{artTitle}","url":"{artUrl}","updatedAt":"{artUpdated}","labels":"{artLabels}"},"columns":[{"header":"Article","template":"[{artTitle}]({artUrl})"},{"header":"Updated","paths":["updated_at"],"sliceMax":10},{"header":"Labels","template":"{artLabels}"}]}],"linksVars":["sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"categories",{"param":"categoryId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/categories/{categoryId}/sections.json?per_page=50&include=categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["sections","categories"],"vars":{"categoryTitle":{"paths":["categories.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Category #{categoryId}"},"categoryDesc":{"paths":["categories.0.description"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"sectionCount":{"paths":["sections"],"format":"array_len_comma"}},"titleTemplate":"{categoryTitle}","descriptionVar":"categoryDesc","introVar":"categoryDesc","bullets":[{"label":"Sections","template":"{sectionCount}","whenVar":"sectionCount"}],"sections":[{"heading":"Sections","arrayPath":"sections","limit":50,"emptyText":"No sections found in this category.","requireItemVar":"secName","collectLinkVars":["secUrl"],"itemVars":{"secName":{"paths":["name"],"format":"strip_tags","trim":true},"secUrl":{"paths":["html_url"],"requireHttps":true},"secDesc":{"paths":["description"],"format":"strip_tags","trim":true,"sliceMax":160},"secUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{secName}","url":"{secUrl}","description":"{secDesc}","updatedAt":"{secUpdated}"},"columns":[{"header":"Section","template":"[{secName}]({secUrl})"},{"header":"Description","template":"{secDesc}"},{"header":"Updated","paths":["updated_at"],"sliceMax":10}]}],"linksVars":["categoryUrl"]}}]}]} +{"version":2,"manifests":[{"id":"acalog","name":"Acalog University Course Catalogs","category":"public-records","description":"Extracts Acalog university catalog course descriptions and program pages from preview_course_nopop.php and content.php while strictly honoring robots.txt and crawl delays.","domains":["*.acalog.com","catalog.highline.edu","catalog.missouristate.edu","catalog.purdue.edu","catalog.unlv.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://csulb.catalog.acalog.com/index.php","https://catalog.highline.edu/"],"htmlRoutes":[{"id":"acalog","match":{"exactSegments":false},"mode":"acalog_html"}]},{"id":"accela-citizen-access","name":"Accela Citizen Access Permitting Portals","category":"public-records","description":"Strictly read-only GET HTML extractor for Accela Citizen Access permit and license CapDetail pages (never submits forms).","domains":["aca-prod.accela.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://aca-prod.accela.com/SANDIEGO/Cap/CapDetail.aspx?Module=DSD&TabName=DSD&capID1=REC26&capID2=00000&capID3=008YQ&agencyCode=SANDIEGO"],"htmlRoutes":[{"id":"accela-citizen-access","match":{"exactSegments":false},"mode":"accela_html"}]},{"id":"aem","name":"Adobe Experience Manager (AEM)","category":"developer","description":"Upgrades AEM /content//...html pages to .model.json / .infinity.json Sling model twins, with clean HTML fallback when disabled or on 404/403.","domains":["wknd.site"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://wknd.site/content/wknd/us/en.html","https://wknd.site/content/wknd/us/en.model.json"],"routes":[{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".model.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".infinity.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}},{"match":{"excludeHosts":["www.govinfo.gov","govinfo.gov"],"pathSuffix":".html","pathSegments":["content",{"param":"siteSeg","charset":"url_seg","reserved":["pkg","dam"],"minLen":1,"maxLen":120},{"param":"pagePath","charset":"safe_subpath","stripSuffix":".html","greedy":true,"minLen":1,"maxLen":400}]},"twin":{"fetchUrl":"https://{host}/content/{siteSeg}/{pagePath}.model.json","rawPathParams":["pagePath"],"kind":"json","accept":"application/json"},"extract":{"jsonMode":"aem_model"}}],"htmlRoutes":[{"id":"aem","match":{"exactSegments":false},"mode":"aem_html"}]},{"id":"aftership-tracking-page","name":"AfterShip Order Tracking Pages","category":"commerce-social","description":"Extracts hydrated AfterShip tracking portals and shipment checkpoints while enforcing strict_robots for *.aftership.com and rejecting Cloudflare/empty shells.","domains":["*.aftership.com","www.aftership.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nealsyardremedies.aftership.com/"],"htmlRoutes":[{"id":"aftership-tracking-page","match":{"exactSegments":false},"mode":"aftership_tracking_html"}]},{"id":"agenda-portal-pack","name":"Municipal Agenda Portal Pack (eScribe, NovusAgenda, CivicWeb)","category":"public-records","description":"Extracts public meeting lists, agenda links, and documents from eScribe, NovusAgenda, and CivicWeb/iCompass portals.","domains":["*.escribemeetings.com","*.novusagenda.com","*.civicweb.net"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pub-london.escribemeetings.com/","https://houston.novusagenda.com/agendapublic/","https://millcreekwa.civicweb.net/Portal/"],"htmlRoutes":[{"id":"agenda-portal-pack","match":{"exactSegments":false},"mode":"agenda_portal_html"}]},{"id":"airnow","name":"AirNow Air Quality API","category":"research-health","description":"US EPA AirNow air quality observation and forecast JSON API (API_KEY query parameter) with airnow.gov HTML fallback.","domains":["www.airnowapi.org","airnowapi.org","www.airnow.gov","airnow.gov","docs.airnowapi.org"],"auth_mode":"key","exampleUrls":["https://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=20002&distance=25","https://www.airnow.gov/?city=Washington&state=DC&country=USA"],"routes":[{"match":{"hosts":["www.airnowapi.org","airnowapi.org"],"pathPrefix":"/aq/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"application/json"},"kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"airnow_json"}}],"htmlRoutes":[{"id":"airnow","match":{"hosts":["www.airnow.gov","airnow.gov","docs.airnowapi.org"],"exactSegments":false},"mode":"airnow_html"}]},{"id":"algolia","name":"Algolia On-Site Search","category":"developer","description":"Opt-in page-key adapter for Algolia search index JSON twins; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["latency-dsn.algolia.net"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://latency-dsn.algolia.net/1/indexes/instant_search?query=apple"],"routes":[{"match":{"hostSubdomain":{"suffix":".algolia.net","param":"appHost"},"pathSegments":["1","indexes",{"param":"indexName","charset":"url_seg","minLen":1,"maxLen":120},{"param":"op","allowValues":["query"],"optional":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"algolia_search"}}],"htmlRoutes":[{"id":"algolia","match":{"exactSegments":false},"mode":"algolia_html"}]},{"id":"american-legal-publishing","name":"American Legal Publishing Municipal Codes","category":"public-records","description":"HTML extractor for American Legal Publishing Code Library municipal codes and ordinance sections.","domains":["codelibrary.amlegal.com"],"auth_mode":"html","exampleUrls":["https://codelibrary.amlegal.com/codes/san_francisco/latest/overview","https://codelibrary.amlegal.com/codes/chicago/latest/overview"],"htmlRoutes":[{"id":"american-legal-publishing","match":{"exactSegments":false},"mode":"amlegal_html"}]},{"id":"ap-news","name":"Associated Press (AP News)","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and RichTextStoryBody from AP News HTML pages while respecting robots.txt feed exclusions.","domains":["apnews.com","www.apnews.com"],"auth_mode":"html","exampleUrls":["https://apnews.com/hub/us-news"],"htmlRoutes":[{"id":"ap-news","match":{"exactSegments":false},"mode":"ap_news_html"}]},{"id":"api-docs-portals","name":"API Docs Portals (OpenAPI, Redocly, Postman, Stoplight)","category":"developer","description":"Universal extractor for OpenAPI 2/3 JSON specs, Postman Collection JSON, and Redocly/Postman/Stoplight API documentation portals.","domains":["petstore3.swagger.io","redocly.com","www.postman.com","learn.openapis.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://petstore3.swagger.io/api/v3/openapi.json","https://learn.openapis.org/"],"routes":[{"match":{"anyOf":[{"pathEquals":["/openapi.json","/swagger.json","/api-docs","/v2/api-docs","/v3/api-docs"]},{"pathSuffix":"/openapi.json"},{"pathSuffix":"/swagger.json"},{"pathSuffix":"/collection.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openapi_postman_json"}}],"htmlRoutes":[{"id":"api-docs-portals","match":{"exactSegments":false},"mode":"api_docs_portal_html"}]},{"id":"appfolio-listings","name":"AppFolio Rental Listings","category":"commerce-social","description":"Extracts residential rental listings from AppFolio property management portals while strictly honoring Crawl-delay: 10, robots.txt, and /page-not-found-sub soft-404 rejection.","domains":["*.appfolio.com"],"universalEngine":false,"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"max_concurrent":1,"exampleUrls":["https://lapmg.appfolio.com/listings"],"htmlRoutes":[{"id":"appfolio-listings","match":{"exactSegments":false},"mode":"appfolio_listings_html"}]},{"id":"apple-app-store","name":"Apple App Store","category":"developer","description":"Extracts structured iOS/macOS App Store metadata (developer, rating, review count, price, category, version notes, and description).","domains":["apps.apple.com"],"exampleUrls":["https://apps.apple.com/us/app/cloudflare-one-agent/id6443476492"],"htmlRoutes":[{"match":{"pathContainsSegment":"app","minSegments":2},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication","WebApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s+on the App\\s*Store$","cssText":["h1"]},"developer":{"jsonLdPaths":["author.name"],"cssText":["h2.product-header__identity"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.reviewCount","aggregateRating.ratingCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} ratings)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"osSys":{"jsonLdPaths":["operatingSystem"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"version":{"regexExtract":{"source":"clean_html","pattern":"Version\\s+([0-9][0-9A-Za-z._-]*)","group":1}}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Platform","template":"{osSys}","whenVar":"osSys"},{"label":"Latest Version","template":"`{version}`","whenVar":"version"}],"sections":[{"heading":"Description","textVar":"desc"}]}]},{"id":"arc-xp","name":"Arc XP Publishing (Fusion / ANS)","category":"commerce-social","description":"Extracts Arc XP /pf/api/v3/content/fetch ANS JSON twins and inline Fusion.globalContent publisher articles.","domains":["www.clickondetroit.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.clickondetroit.com/news/local/2026/11/27/1-killed-in-shooting-in-downtown-birmingham/"],"routes":[{"match":{"pathPrefix":"/pf/api/v3/content/fetch/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"arc_xp_ans"}}],"htmlRoutes":[{"id":"arc-xp","match":{"exactSegments":false},"mode":"arc_xp_html"}]},{"id":"arcgis-hub","name":"Esri ArcGIS Hub Open Data Portals","category":"public-records","description":"Extracts ArcGIS Hub /api/v3/datasets (with sparse field projection) and /api/search/v1 OGC GeoJSON item collections plus hydrated HTML.","domains":["hub.arcgis.com","*.hub.arcgis.com","*.opendata.arcgis.com","opendata.dc.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://hub.arcgis.com/api/search/v1/collections/all/items?limit=3","https://opendata.dc.gov/api/v3/datasets?page[size]=1"],"routes":[{"match":{"pathPrefix":"/api/v3/datasets"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields[datasets]":"name,description,owner,modified,created,url,orgName,recordCount,licenseInfo,tags,hubType"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}},{"match":{"pathPrefix":"/api/search/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json, application/json","maxBytes":4194304},"extract":{"jsonMode":"arcgis_hub_json"}}],"htmlRoutes":[{"id":"arcgis-hub","match":{"exactSegments":false},"mode":"arcgis_hub_html"}]},{"id":"arcgis","name":"ArcGIS REST FeatureServer & MapServer Layers","category":"public-records","description":"Upgrades public ArcGIS REST FeatureServer/MapServer layer URLs to ?f=json metadata, geometry type, spatial reference, and field schemas.","domains":["services.arcgis.com"],"universalEngine":true,"exampleUrls":["https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/2020_Census_State_Apportionment/FeatureServer/0"],"match":{"arcgisRestLayer":true,"pathSegments":[{"param":"restPath","charset":"safe_subpath","greedy":true,"maxLen":500}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"rejectIfFieldTruthy":"error","vars":{"name":{"paths":["name","mapName","serviceDescription"],"trim":true,"default":"ArcGIS Service"},"desc":{"paths":["description","serviceDescription"],"format":"strip_tags"},"descShort":{"paths":["description","serviceDescription"],"format":"strip_tags","sliceMax":260},"geomType":{"paths":["geometryType"]},"maxRec":{"paths":["maxRecordCount"]},"capabilities":{"paths":["capabilities"]},"wkid":{"paths":["extent.spatialReference.latestWkid","extent.spatialReference.wkid"]},"baseClean":{"template":"https://{host}/{restPath}"},"hasFields":{"paths":["fields"],"format":"array_len","excludeEquals":"0"},"hasLayers":{"paths":["layers"],"format":"array_len","excludeEquals":"0"}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"REST Endpoint","template":"`{baseClean}`"},{"label":"Geometry Type","template":"`{geomType}`","whenVar":"geomType"},{"label":"Spatial Reference (WKID)","template":"`EPSG:{wkid}`","whenVar":"wkid"},{"label":"Max Record Count / Query","template":"{maxRec}","whenVar":"maxRec"},{"label":"Capabilities","template":"{capabilities}","whenVar":"capabilities"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Layer Fields","headingTemplate":"Layer Fields ({count})","whenVar":"hasFields","arrayPath":"fields","limit":40,"columns":[{"header":"Field","paths":["name"],"code":true},{"header":"Alias","paths":["alias"]},{"header":"Type","paths":["type"],"stripPrefix":"esriFieldType"}]},{"heading":"Sublayers","headingTemplate":"Sublayers ({count})","whenVar":"hasLayers","unlessVar":"hasFields","arrayPath":"layers","limit":30,"itemVars":{"layerId":{"paths":["id"],"default":"0"},"layerName":{"paths":["name"],"default":"Layer"}},"columns":[{"header":"ID","paths":["id"]},{"header":"Layer","template":"[{layerName}]({baseClean}/{layerId})"},{"header":"Geometry","paths":["geometryType"]}]}]}},{"id":"arxiv","name":"arXiv Preprints","category":"research-health","description":"Extracts arXiv preprint title, authors, submission date, subject classifications, PDF/HTML links, and clean abstract from arxiv.org/abs/ (strictly respecting robots.txt).","domains":["arxiv.org","www.arxiv.org"],"exampleUrls":["https://arxiv.org/abs/1706.03762"],"htmlRoutes":[{"match":{"pathSegments":["abs",{"param":"arxivId","charset":"arxiv_id","greedy":true}]},"mode":"dom","requireVars":["title","abstract"],"vars":{"titleDom":{"cssText":["h1.title"],"stripPrefix":"Title:"},"title":{"metaKeys":["citation_title"],"fallbackVar":"titleDom"},"authors":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":20,"join":", "},"authorsShort":{"allMetaKey":"citation_author","cssAllText":{"selector":"div.authors a","limit":50,"join":", "},"limit":4,"join":", "},"date":{"metaKeys":["citation_date","citation_online_date"]},"doi":{"metaKeys":["citation_doi"]},"primarySubject":{"cssText":["span.primary-subject"]},"absMeta":{"metaKeys":["citation_abstract"]},"abstract":{"cssText":["blockquote.abstract"],"stripPrefix":"Abstract:","fallbackVar":"absMeta"},"abstractShort":{"template":"{abstract}","whenVars":["abstract"],"sliceMax":260},"pdfUrl":{"template":"https://arxiv.org/pdf/{arxivId}"},"htmlPaperUrl":{"template":"https://arxiv.org/html/{arxivId}"}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"date","bullets":[{"label":"arXiv ID","template":"`{arxivId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Submitted","template":"{date}","whenVar":"date"},{"label":"Primary Subject","template":"{primarySubject}","whenVar":"primarySubject"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text","template":"[PDF]({pdfUrl}) · [ar5iv / HTML]({htmlPaperUrl})"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linkTemplates":["https://arxiv.org/pdf/{arxivId}","https://arxiv.org/html/{arxivId}"]}]},{"id":"association-ams-pack","name":"Association AMS Pack (Novi AMS, MemberClicks, YourMembership)","category":"commerce-social","description":"Extracts association events and member directories from Novi AMS, MemberClicks / Personify WebLink, and YourMembership portals while rejecting login gates and error shells.","domains":["www.austinaptassoc.com","web.arlingtonchamber.org","*.memberclicks.net","*.site-ym.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.austinaptassoc.com/events","https://web.arlingtonchamber.org/events"],"htmlRoutes":[{"id":"association-ams-pack","match":{"exactSegments":false},"mode":"association_ams_html"}]},{"id":"atlassian-statuspage","name":"Atlassian Statuspage","category":"developer","description":"Extracts Atlassian Statuspage /api/v2/summary.json and incidents.json endpoints (when robots.txt permits) plus Statuspage HTML pages.","domains":["statuspage.io","www.statuspage.io","www.githubstatus.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.githubstatus.com/","https://discord.statuspage.io/"],"routes":[{"match":{"pathEquals":["/api/v2/summary.json","/api/v2/incidents.json","/api/v2/status.json","/api/v2/components.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"statuspage_v2"}}],"htmlRoutes":[{"id":"atlassian-statuspage","match":{"exactSegments":false},"mode":"statuspage_html"}]},{"id":"auto-dealer-inventory","name":"Auto Dealer Inventory (Universal)","category":"commerce-social","description":"Universal automotive dealer SRP/VDP HTML and Schema.org Vehicle/Car JSON-LD extractor for Dealer.com, Dealer Inspire, and DealerOn storefronts.","domains":["www.johneaglehonda.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.johneaglehonda.com/used-inventory/index.htm","https://www.johneaglehonda.com/used/Honda/2021-Honda-Accord--for-sale-houston-texas-f65329b9ac180db0f233180fce0b2e1d.htm"],"htmlRoutes":[{"id":"auto-dealer-inventory","match":{"anyOf":[{"pathPrefix":"/used-inventory/"},{"pathPrefix":"/new-inventory/"},{"pathPrefix":"/all-inventory/"},{"pathPrefix":"/certified-inventory/"},{"pathPrefix":"/inventory/"},{"pathPrefix":"/used/"},{"pathPrefix":"/new/"},{"pathPrefix":"/vehicles/"},{"pathPrefix":"/vehicle/"},{"pathPrefix":"/vdp/"},{"pathPrefix":"/srp/"},{"pathEquals":["/searchused.aspx","/searchnew.aspx","/searchall.aspx"]}]},"mode":"auto_dealer_html"}]},{"id":"auto-parts-fitment","name":"Auto Parts Fitment & SKU Extractor","category":"commerce-social","description":"Extracts auto parts SKUs, part numbers, strict GTINs, and explicit vehicle fitment (year, make, model, engine) for AutoZone, O'Reilly, NAPA, and Advance Auto Parts.","domains":["autozone.com","www.autozone.com","oreillyauto.com","www.oreillyauto.com","napaonline.com","www.napaonline.com","shop.advanceautoparts.com","www.advanceautoparts.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.autozone.com/brakes-and-traction-control/brake-pads/duralast-gold-ceramic-brake-pads-dg1410/141001_0_0","https://www.napaonline.com/en/p/NAPA1410"],"htmlRoutes":[{"id":"auto-parts-fitment","match":{"exactSegments":false},"mode":"auto_parts_fitment_html"}]},{"id":"bamboohr-breezy-recruitee","name":"BambooHR, Breezy HR, Recruitee & Personio Boards","category":"jobs","description":"Upgrades BambooHR (/careers/list & /detail), Breezy HR (/json), Recruitee (/api/offers), and Personio (/xml) career boards to structured feeds.","domains":["*.bamboohr.com","*.breezy.hr","*.recruitee.com","*.jobs.personio.de","*.jobs.personio.com"],"exampleUrls":["https://posthog.bamboohr.com/careers","https://breezy.breezy.hr/","https://bunq.recruitee.com/","https://personio.jobs.personio.de/"],"routes":[{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"pathSegments":[{"param":"boardSection","charset":"alnum","allowValues":["careers","jobs"],"optional":true}]},"twin":{"id":"bamboohr-board","fetchUrl":"https://{host}/careers/list","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["result"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — BambooHR Careers ({count} open roles)","sections":[{"heading":"","arrayPath":"result","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"id":{"paths":["id"]},"jTitle":{"paths":["jobOpeningName"],"trim":true,"default":"Role"},"jUrl":{"template":"https://{host}/careers/{id}"},"dept":{"paths":["departmentLabel"],"trim":true,"default":"-"},"city":{"paths":["location.city"],"trim":true},"state":{"paths":["location.state"],"trim":true},"bothLoc":{"template":"{city}, {state}","whenVars":["city","state"]},"oneLoc":{"paths":["location.city","location.state"],"trim":true},"remoteLoc":{"paths":["isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"template":"{bothLoc}","whenVars":["bothLoc"],"fallbackVar":"oneLoc","fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.bamboohr.com"],"hostSubdomain":{"suffix":".bamboohr.com","param":"org","reserved":["www","resources","help","documentation","developers","blog","status","api"]},"exactSegments":false,"pathSegments":["careers",{"param":"jobId","charset":"digits"}]},"twin":{"id":"bamboohr-job","fetchUrl":"https://{host}/careers/{jobId}/detail","kind":"json","accept":"application/json"},"extract":{"rootPath":"result.jobOpening","requireFields":["jobOpeningName"],"vars":{"jobTitle":{"paths":["jobOpeningName"],"trim":true},"body":{"paths":["description"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"body"}},{"match":{"hosts":["*.breezy.hr"],"hostSubdomain":{"suffix":".breezy.hr","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"breezy-hr","fetchUrl":"https://{host}/json","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"count":{"paths":["jobs"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Breezy HR Board ({count} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["location.is_remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location.name"],"trim":true,"fallbackTemplate":"{remoteLoc}"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["o",{"param":"targetSlug","charset":"pkg"}]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"offers","matchField":"slug","matchTemplate":"{targetSlug}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Role"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bodyVar":"desc","sections":[{"heading":"Requirements","textVar":"reqs"}]}},{"match":{"hosts":["*.recruitee.com"],"hostSubdomain":{"suffix":".recruitee.com","param":"org","reserved":["www","app"]},"pathSegments":[]},"twin":{"id":"recruitee","fetchUrl":"https://{host}/api/offers","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["offers"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Recruitee Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"offers","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"oTitle":{"paths":["title"],"trim":true,"default":"Role"},"slug":{"paths":["slug"]},"rawUrl":{"paths":["careers_url"],"requireHttps":true},"oUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/o/{slug}"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLoc":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"loc":{"paths":["location"],"trim":true,"fallbackTemplate":"{remoteLoc}"},"isRemote":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":""},"hybridOrOnsite":{"paths":["hybrid"],"format":"bool_map","trueValue":"Hybrid","falseValue":"On-site"},"workplace":{"template":"{isRemote}","whenVars":["isRemote"],"fallbackVar":"hybridOrOnsite"}},"collectLinkVars":["oUrl"],"columns":[{"header":"Role","template":"[{oTitle}]({oUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{workplace}"}]}]}},{"match":{"anyOf":[{"hosts":["*.jobs.personio.de"],"hostSubdomain":{"suffix":".jobs.personio.de","param":"org"},"pathSegments":[]},{"hosts":["*.jobs.personio.com"],"hostSubdomain":{"suffix":".jobs.personio.com","param":"org"},"pathSegments":[]}]},"twin":{"id":"personio","fetchUrl":"https://{host}/xml?language=en","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["workzag-jobs","position"],"itemTag":"position","titleTemplate":"{org} — Personio Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"itemVars":{"id":{"tags":["id"]},"pName":{"tags":["name"],"default":"Role"},"dept":{"tags":["department"],"default":"-"},"office":{"tags":["office"],"default":"-"},"schedule":{"tags":["schedule"],"default":"-"}},"columns":[{"header":"Role","template":"[{pName}](https://{host}/job/{id})"},{"header":"Department","template":"{dept}"},{"header":"Office","template":"{office}"},{"header":"Schedule","template":"{schedule}"}]}}}]},{"id":"bazaarvoice","name":"Bazaarvoice Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for Bazaarvoice Display API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["api.bazaarvoice.com","www.bazaarvoice.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://api.bazaarvoice.com/data/reviews.json?apiversion=5.4&passkey=lgnkpccztvv6hpje273tu0cx8&Filter=ProductId:YWSHTS&Include=Products&Stats=Reviews&Limit=5"],"routes":[{"match":{"hosts":["api.bazaarvoice.com"],"pathEquals":["/data/reviews.json","/data/display/0.2alpha/product/summary"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bazaarvoice_reviews"}}],"htmlRoutes":[{"id":"bazaarvoice","match":{"exactSegments":false},"mode":"bazaarvoice_html"}]},{"id":"bbb","name":"Better Business Bureau (BBB)","category":"commerce-social","description":"Extracts BBB business profile metadata, accreditation status, rating, contact details, and categories from public bbb.org profile pages while strictly honoring robots.txt.","domains":["bbb.org","www.bbb.org"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bbb.org/us/md/linthicum-heights/profile/property-management/american-community-management-inc-0011-10073"],"htmlRoutes":[{"id":"bbb","match":{"exactSegments":false},"mode":"bbb_html"}]},{"id":"bea","name":"Bureau of Economic Analysis (BEA)","category":"finance","description":"U.S. Bureau of Economic Analysis apps.bea.gov JSON API adapter (NIPA/GDP/Regional/International) with bea.gov HTML fallback.","domains":["bea.gov","www.bea.gov","apps.bea.gov"],"auth_mode":"key","exampleUrls":["https://apps.bea.gov/api/data?method=GetDataSetList&ResultFormat=JSON","https://www.bea.gov/data/gdp/gross-domestic-product"],"routes":[{"match":{"hosts":["apps.bea.gov"],"exactSegments":true,"pathEquals":["/api/data","/API/data","/api/data/","/API/data/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"ResultFormat":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"bea_json"}}],"htmlRoutes":[{"id":"bea","match":{"hosts":["bea.gov","www.bea.gov"],"exactSegments":false},"mode":"bea_html"}]},{"id":"bentobox","name":"BentoBox Restaurant Menus & Venues","category":"commerce-social","description":"Extracts restaurant menus, sections, items, prices, and FoodEstablishment metadata from BentoBox (getbento.com) sites and custom restaurant domains.","domains":["getbento.com","www.getbento.com","*.getbento.com","www.gramercytavern.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gramercytavern.com/dining-room-menu/","https://www.getbento.com/"],"htmlRoutes":[{"id":"bentobox","match":{"exactSegments":false},"mode":"bentobox_html"}]},{"id":"bestbuy","name":"Best Buy Products API","category":"commerce-social","description":"Extracts Best Buy product pricing, SKU, UPC/GTIN, availability, and search results via the official Best Buy Products API.","domains":["bestbuy.com","www.bestbuy.com","api.bestbuy.com"],"auth_mode":"key","exampleUrls":["https://api.bestbuy.com/v1/products/6500131.json","https://api.bestbuy.com/v1/products?format=json"],"routes":[{"match":{"hosts":["bestbuy.com","www.bestbuy.com"],"exactSegments":false,"pathSegments":["site",{"param":"slug","charset":"slug","maxLen":200},{"param":"sku","charset":"digits","stripSuffix":".p","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.bestbuy.com/v1/products/{sku}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}},{"match":{"hosts":["api.bestbuy.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bestbuy_json"}}]},{"id":"bicycleretailer","name":"Bicycle Retailer & Industry News","category":"commerce-social","description":"Extracts Drupal .node-article body, .view-content listings, and author/publishedTime metadata from bicycleretailer.com while stripping sidebar ads and leaving /rss.xml to feed XML parsing.","domains":["www.bicycleretailer.com","bicycleretailer.com"],"exampleUrls":["https://www.bicycleretailer.com/industry-news/2026/11/25/preliminary-analysis-industry-spared-new-recommended-tariffs","https://www.bicycleretailer.com/industry-news"],"htmlRoutes":[{"id":"bicycleretailer","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["admin","user"],"excludeSegmentSuffixes":[".xml",".rss",".atom"]},"vars":{"title":{"cssText":["article.node-article h1","main h1","h1","title"],"metaKeys":["og:title"],"trim":true},"author":{"metaKeys":["author","article:author"],"trim":true},"publishedTime":{"metaKeys":["article:published_time"],"trim":true},"body":{"cssHtmlToMd":["article.node-article .field-name-body",".node-article .field-name-body",".field-name-body",".view-content","article.node-article","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"big-cartel","name":"Big Cartel Storefronts & Products","category":"commerce-social","description":"Extracts Big Cartel /products.json catalogs and /product/{slug}.js product twins without colliding with Shopify /products.json, plus storefront HTML/JSON-LD fallback.","domains":["shop.bigcartel.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://shop.bigcartel.com/product/buy-from-artists-tote-bag.js","https://shop.bigcartel.com/products.json"],"routes":[{"match":{"anyOf":[{"hosts":["shop.bigcartel.com"],"pathEquals":["/products.json"]},{"hostSubdomain":{"suffix":".bigcartel.com","param":"shopSub","reserved":["www","my","api","developers","blog","assets","help"]},"pathEquals":["/products.json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}},{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","api.bigcartel.com","my.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com","assets.bigcartel.com","help.bigcartel.com"],"exactSegments":true,"pathSuffix":".js","pathSegments":["product",{"param":"slug","charset":"pkg","stripSuffix":".js","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"big_cartel_json"}}],"htmlRoutes":[{"id":"big-cartel","match":{"exactSegments":false},"mode":"big_cartel_html"}]},{"id":"bigcommerce-store","name":"BigCommerce Stencil Storefronts","category":"commerce-social","description":"Extracts BigCommerce Stencil BCData, JSON-LD, Microdata, cart-form options, product specs, category grids, and bounded /xmlsitemap.php product sitemaps.","domains":["*.mybigcommerce.com","www.bigcommerce.com","ascolour.com"],"universalEngine":true,"exampleUrls":["https://ascolour.com/xmlsitemap.php","https://ascolour.com/classic-organic-tee-5026g/"],"routes":[{"match":{"exactSegments":true,"pathEquals":["/xmlsitemap.php"]},"twin":{"id":"bigcommerce-store","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"commerceMode":"bigcommerce_sitemap"}}],"htmlRoutes":[{"id":"bigcommerce-store","match":{"exactSegments":false},"mode":"bigcommerce_html"}]},{"id":"bike-index","name":"Bike Index Registry","category":"public-records","description":"Public Bike Index REST API v3 adapter for bicycle registrations, stolen reports, and search queries with HTML detail fallback.","domains":["bikeindex.org","www.bikeindex.org"],"auth_mode":"pub","exampleUrls":["https://bikeindex.org/api/v3/search?page=1&per_page=5","https://bikeindex.org/api/v3/bikes/3550041","https://bikeindex.org/bikes/3550041"],"routes":[{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathEquals":["/api/v3/search","/api/v3/search/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["api","v3","bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}},{"match":{"hosts":["bikeindex.org","www.bikeindex.org"],"pathSegments":["bikes",{"param":"bikeId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://bikeindex.org/api/v3/bikes/{bikeId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"bike_index_json"}}],"htmlRoutes":[{"id":"bike-index","match":{"exactSegments":false},"mode":"bike_index_html"}]},{"id":"bikereg-usacycling","name":"BikeReg & USA Cycling Events & Results","category":"commerce-social","description":"Extracts BikeReg event search JSON (/api/search with ASP.NET /Date()/ timestamps), USA Cycling Sport80 Inertia data-page events and results, and unchallenged BikeReg HTML while rejecting Cloudflare challenges.","domains":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://www.bikereg.com/api/search?name=Hush%20Money","https://usacycling.sport80.com/pub/e_locator/events/find?from_date=today","https://usacycling.sport80.com/pub/results"],"routes":[{"match":{"hosts":["bikereg.com","www.bikereg.com"],"exactSegments":true,"pathSegments":["api","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bikereg_json"}}],"htmlRoutes":[{"id":"bikereg-usacycling","match":{"hosts":["bikereg.com","www.bikereg.com","usacycling.org","www.usacycling.org","usacycling.sport80.com"],"exactSegments":false},"mode":"bikereg_usacycling_html"}]},{"id":"bis-entity-list","name":"BIS Export Administration Regulations & Entity List","category":"public-records","description":"Extracts Bureau of Industry and Security (BIS) EAR Part 744 / Entity List guidance and enforcement press releases from www.bis.gov, bis.gov, and media.bis.gov.","domains":["www.bis.gov","bis.gov","media.bis.gov"],"auth_mode":"pub","exampleUrls":["https://www.bis.gov/regulations/ear/744","https://www.bis.gov/regulations/ear","https://www.bis.gov/press-release/bis-reaches-administrative-enforcement-settlement-lambda-research-corporation"],"htmlRoutes":[{"id":"bis-entity-list","match":{"hosts":["www.bis.gov","bis.gov","media.bis.gov"],"exactSegments":false},"mode":"bis_entity_list_html"}]},{"id":"blackboard-wcm","name":"Blackboard WCM & SchoolMessenger Presence","category":"public-records","description":"Extracts Blackboard Web Community Manager (Schoolwires) and SchoolMessenger Presence K-12 district news, calendars, and staff directories while excluding Finalsite /fs/ sites.","domains":["www.bhusd.org","bhusd.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.bhusd.org/calendar","https://www.bhusd.org/media/filter/news"],"htmlRoutes":[{"id":"blackboard-wcm","match":{"excludeHosts":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"exactSegments":false},"mode":"blackboard_wcm_html"}]},{"id":"bloomreach-discovery","name":"Bloomreach Discovery On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Bloomreach Discovery core search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["core.dxpapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://core.dxpapi.com/api/v1/core/?account_id=6276&auth_key=jazzhands&domain_key=example_com&request_type=search&search_type=keyword&q=shoes&fl=pid,title,price,url&rows=10&start=0&url=https://www.example.com/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".dxpapi.com","param":"apiHost"},"pathEquals":["/api/v1/core","/api/v1/core/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"bloomreach_discovery"}}],"htmlRoutes":[{"id":"bloomreach-discovery","match":{"exactSegments":false},"mode":"bloomreach_discovery_html"}]},{"id":"bls","name":"Bureau of Labor Statistics (BLS)","category":"public-records","description":"U.S. Bureau of Labor Statistics publicAPI v1 (pub) and v2 (key) time-series JSON adapter with bls.gov HTML fallback.","domains":["bls.gov","www.bls.gov","data.bls.gov","api.bls.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.bls.gov/cpi/","https://www.bls.gov/ooh/"],"routes":[{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v1/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"bls_json"}},{"match":{"hosts":["api.bls.gov"],"exactSegments":false,"pathPrefix":"/publicAPI/v2/timeseries/data"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"bls_json"}}],"htmlRoutes":[{"id":"bls","match":{"hosts":["bls.gov","www.bls.gov","data.bls.gov"],"exactSegments":false},"mode":"bls_html"}]},{"id":"bluesky-thread","name":"Bluesky ATProto Post Threads","category":"commerce-social","description":"Upgrades bsky.app post URLs to public.api.bsky.app ATProto getPostThread JSON with replies and embeds.","domains":["bsky.app","staging.bsky.app"],"exampleUrls":["https://bsky.app/profile/golang.org/post/3mzyghkrmjh2y"],"match":{"exactSegments":false,"pathSegments":["profile",{"param":"actor","charset":"url_seg"},"post",{"param":"rkey","charset":"pkg"}]},"twin":{"id":"bluesky-thread","fetchUrl":"https://public.api.bsky.app/xrpc/app.bsky.feed.getPostThread?uri=at%3A%2F%2F{actor}%2Fapp.bsky.feed.post%2F{rkey}&depth=6","kind":"json","accept":"application/json"},"extract":{"rootPath":"thread","requireFields":["post.record.text"],"vars":{"handle":{"paths":["post.author.handle"],"fallbackTemplate":"{actor}"},"displayName":{"paths":["post.author.displayName"],"fallbackTemplate":"{handle}"},"text":{"paths":["post.record.text"],"format":"plain_text","trim":true},"desc":{"paths":["post.record.text"],"trim":true,"sliceMax":220},"createdAt":{"paths":["post.record.createdAt"]},"createdAtShort":{"paths":["post.record.createdAt"],"replaceAll":{"from":"T","to":" "},"sliceMax":16},"postedPrefix":{"template":"{createdAtShort} UTC · ","whenVars":["createdAtShort"]},"likes":{"paths":["post.likeCount"],"default":"0"},"reposts":{"paths":["post.repostCount"],"default":"0"},"extUri":{"paths":["post.embed.external.uri"]},"extTitle":{"paths":["post.embed.external.title"],"fallbackTemplate":"{extUri}"},"extDesc":{"paths":["post.embed.external.description"]},"extDescSuffix":{"template":" — {extDesc}","whenVars":["extDesc"]},"linkedEmbed":{"template":"> **Linked**: [{extTitle}]({extUri}){extDescSuffix}","whenVars":["extUri"]}},"titleTemplate":"{displayName} (@{handle}) on Bluesky","descriptionVar":"desc","authorTemplate":"@{handle}","publishedTimeVar":"createdAt","bodyVar":"text","footerItalicTemplate":"Posted {postedPrefix}{likes} likes · {reposts} reposts","sections":[{"heading":"","textVar":"linkedEmbed"},{"heading":"","listArrayPath":"post.embed.images","limit":10,"requireItemVar":"imgAlt","itemVars":{"imgAlt":{"paths":["alt"],"trim":true}},"itemTemplate":"*Image alt*: {imgAlt}"},{"heading":"Replies","listArrayPath":"replies","limit":15,"requireItemVar":"replyText","itemVars":{"replyAuthor":{"paths":["post.author.handle"],"default":"user"},"replyText":{"paths":["post.record.text"],"trim":true,"replaceAll":{"from":"\n","to":" "}}},"itemTemplate":"**@{replyAuthor}**: {replyText}"}]}},{"id":"boarddocs","name":"Diligent BoardDocs Public Meeting Portals","category":"public-records","description":"Extracts public school board and municipal BoardDocs meeting lists, agendas, and HTML views while detecting CloudFront blocks.","domains":["go.boarddocs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://go.boarddocs.com/ca/sandi/Board.nsf/BD-GetMeetingsList","https://go.boarddocs.com/ca/sandi/Board.nsf/Public"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"state","charset":"alnum_dash","minLen":2,"maxLen":8},{"param":"org","charset":"alnum_dash","minLen":2,"maxLen":48},"Board.nsf",{"param":"action","allowValues":["BD-GetMeetingsList","BD-GetAgenda","BD-GetAgendaItem"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"boarddocs_text"}}],"htmlRoutes":[{"id":"boarddocs","match":{"exactSegments":false},"mode":"boarddocs_html"}]},{"id":"bosch-ebike-help","name":"Bosch eBike Systems Help Center","category":"developer","description":"Bosch eBike error codes from help.bosch-ebike.com via the keyless public /v2/error_code JSON endpoint the Help Center SPA renders (code / severity / component / description / remedy per system generation), with a bounded HTML fallback for SSR help articles that strips data:image blobs and dodo-service-include chrome and never presents the loading SPA shell as content. Never calls the robots-disallowed /api/* paths.","domains":["help.bosch-ebike.com"],"auth_mode":"pub","exampleUrls":["https://help.bosch-ebike.com/en/help-center/error/6A0004","https://help.bosch-ebike.com/help-center/error/6A0004"],"routes":[{"match":{"hosts":["help.bosch-ebike.com"],"anyOf":[{"pathSegments":[{"param":"lang","allowValues":["cs","da","de","en","es","fr","it","nl","no","pl","sv"]},"help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"optionalLeadingLocale":true,"defaults":{"lang":"en"},"pathSegments":["help-center","error",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]},{"defaults":{"lang":"en"},"pathSegments":["er",{"param":"code","charset":"hex","minLen":3,"maxLen":6,"transform":"upper"}]}]},"twin":{"fetchUrl":"https://help.bosch-ebike.com/v2/error_code?externalID={code}&languageId={lang}","kind":"json","accept":"application/json","maxBytes":524288},"extract":{"jsonMode":"bosch_ebike_error_code_json"}}],"htmlRoutes":[{"id":"bosch-ebike-help","match":{"exactSegments":false},"mode":"bosch_help_html"}]},{"id":"branded-tracking-pack","name":"Branded Tracking Pack (Narvar / Route / ParcelPanel)","category":"commerce-social","description":"Extracts hydrated Narvar, ParcelPanel, Route, Malomo, and Wonderment tracking pages while strictly rejecting empty CSR shells such as unhydrated Route pages.","domains":["*.narvar.com","tracking.route.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://tracking.narvar.com/asics/tracking"],"htmlRoutes":[{"id":"branded-tracking-pack","match":{"exactSegments":false},"mode":"branded_tracking_pack_html"}]},{"id":"brightcove","name":"Brightcove Playback & Player","category":"commerce-social","description":"Opt-in page-key adapter for Brightcove Playback API v1; defaults OFF and falls back cleanly to Brightcove player HTML extraction.","domains":["edge.api.brightcove.com","players.brightcove.net"],"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://edge.api.brightcove.com/playback/v1/accounts/1752604059001/videos/4093643993001","https://players.brightcove.net/1752604059001/default_default/index.html?videoId=4093643993001"],"routes":[{"match":{"hosts":["edge.api.brightcove.com"],"exactSegments":true,"pathSegments":["playback","v1","accounts",{"param":"accountId","charset":"digits","minLen":4,"maxLen":24},"videos",{"param":"videoId","charset":"url_seg","minLen":4,"maxLen":64}]},"twin":{"id":"brightcove","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"brightcove_playback_json"}}],"htmlRoutes":[{"id":"brightcove","match":{"exactSegments":false},"mode":"brightcove_html"}]},{"id":"brightspot","name":"Brightspot Publishing CMS","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Brightspot RichText article bodies across Brightspot-powered newsrooms.","domains":["www.latimes.com","news.byu.edu"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.latimes.com/travel/story/2023-10-19/los-angeles-neighborhood-city-guides"],"htmlRoutes":[{"id":"brightspot","match":{"exactSegments":false},"mode":"brightspot_html"}]},{"id":"bts-transtats","name":"BTS TranStats & Open Data","category":"public-records","description":"Bureau of Transportation Statistics (data.bts.gov Socrata views/resource/catalog JSON + www.transtats.bts.gov HTML tables with TranStats error page rejection).","domains":["data.bts.gov","transtats.bts.gov","www.transtats.bts.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.bts.gov/api/views/crem-w557.json","https://data.bts.gov/resource/crem-w557.json?$limit=2","https://www.transtats.bts.gov/Tables.asp?QO_VQ=EFD&QO_anzr=Nv4"],"routes":[{"match":{"hosts":["data.bts.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}},{"match":{"hosts":["data.bts.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://data.bts.gov/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bts_transtats_json"}}],"htmlRoutes":[{"id":"bts-transtats","match":{"hosts":["transtats.bts.gov","www.transtats.bts.gov"],"exactSegments":false},"mode":"bts_transtats_html"}]},{"id":"bullhorn-career-portal","name":"Bullhorn Career Portal","category":"jobs","description":"Extracts open JobOrder listings from public-rest*.bullhornstaffing.com REST endpoints and hydrated Bullhorn Career Portal pages while rejecting errors.badCorpToken and empty results.","domains":["*.bullhornstaffing.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://public-rest33.bullhornstaffing.com/rest-services/sample/search/JobOrder?query=(isOpen:1)&fields=id,title,publishedCategory,address,employmentType,dateLastPublished&count=25"],"routes":[{"match":{"hostSubdomain":{"suffix":".bullhornstaffing.com","param":"cluster","reserved":["www","login","auth","static"]},"pathPrefix":"/rest-services/","pathContainsSegment":"JobOrder","exactSegments":false},"twin":{"id":"bullhorn-career-portal","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"bullhorn_joborder_json"}}],"htmlRoutes":[{"id":"bullhorn-career-portal","mode":"bullhorn_portal_html","match":{"exactSegments":false}}]},{"id":"bumm-de","name":"Busch & Mueller (bumm.de)","category":"commerce-social","description":"Extracts TYPO3 JSON-LD Product metadata, table.attributes-table technical specs, and PDF mounting manual links from bumm.de product pages.","domains":["bumm.de","www.bumm.de"],"exampleUrls":["https://bumm.de/en/product-detail/iq-xl-highbeam/","https://bumm.de/de/produktdetail/briq-s/"],"htmlRoutes":[{"id":"bumm-de","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"reservedFirstSegment":["typo3"],"anyOf":[{"pathSegments":["product-detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["produktdetail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]},{"pathSegments":["products","detail",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"price":{"jsonLdPaths":["offers.price","offers.0.price"],"trim":true},"currency":{"jsonLdPaths":["offers.priceCurrency","offers.0.priceCurrency"],"trim":true},"body":{"cssHtmlToMd":["main",".product-detail","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"},{"label":"Price","template":"{price} {currency}","whenVar":"price"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"canvas-public-courses","name":"Canvas LMS Public Courses","category":"public-records","description":"Extracts public Instructure Canvas LMS courses via /api/v1/courses JSON and public syllabus HTML while classifying SAML SSO redirects as login_wall and 503 maintenance shells as non-active.","domains":["*.instructure.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://ocw.instructure.com/api/v1/courses/44012","https://lor.instructure.com/"],"routes":[{"match":{"pathPrefix":"/api/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"canvas_course_json"}}],"htmlRoutes":[{"id":"canvas-public-courses","match":{"exactSegments":false},"mode":"canvas_public_html"}]},{"id":"carrier-tracking-official","name":"Official Carrier Tracking APIs (USPS, UPS, FedEx)","category":"commerce-social","description":"Keyed OAuth Bearer official tracking APIs for USPS (/tracking/), UPS (/api/track/v1/details with transactionSrc/transId), and FedEx (POST /track/v1/trackingnumbers).","domains":["onlinetools.ups.com","wwwcie.ups.com","apis.fedex.com","apis-sandbox.fedex.com"],"universalEngine":true,"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://apis.usps.com/tracking/v3/tracking/9400111899223344556677","https://onlinetools.ups.com/api/track/v1/details/1Z999AA10123456784","https://apis.fedex.com/track/v1/trackingnumbers"],"routes":[{"match":{"hosts":["apis.usps.com","apis-tem.usps.com"],"pathPrefix":"/tracking/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}},{"match":{"hosts":["onlinetools.ups.com","wwwcie.ups.com"],"pathPrefix":"/api/track/v1/details"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","headers":{"transactionSrc":"edgefetch"},"auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}},{"match":{"hosts":["apis.fedex.com","apis-sandbox.fedex.com"],"pathPrefix":"/track/v1/trackingnumbers","queryParams":[{"name":"trackingNumber","param":"trackingNumber","charset":"alnum_dash","optional":true,"default":"784592018372"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"includeDetailedScans\":true,\"trackingInfo\":[{\"trackingNumberInfo\":{\"trackingNumber\":\"{trackingNumber}\"}}]}","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"carrier_tracking_json"}}]},{"id":"cbo","name":"Congressional Budget Office (CBO)","category":"public-records","description":"Extracts CBO publication and cost-estimate RSS feeds and HTML publication pages while cleanly classifying DataDome JS challenges as non-active.","domains":["www.cbo.gov","cbo.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.cbo.gov/publications/all/rss.xml","https://www.cbo.gov/publication/62899"],"routes":[{"match":{"pathPrefix":"/publications/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":1048576},"extract":{"textMode":"cbo_rss_xml"}}],"htmlRoutes":[{"id":"cbo","match":{"exactSegments":false},"mode":"cbo_html"}]},{"id":"cbp-cross-rulings","name":"CBP CROSS Customs Rulings","category":"public-records","description":"Extracts U.S. Customs and Border Protection CROSS ruling search and ruling detail JSON endpoints while rejecting unhydrated Angular CSR shells and security-parameter 403 blocks.","domains":["rulings.cbp.gov"],"auth_mode":"pub","exampleUrls":["https://rulings.cbp.gov/api/ruling/N328640","https://rulings.cbp.gov/search?term=bicycle","https://rulings.cbp.gov/ruling/N328640"],"routes":[{"match":{"hosts":["rulings.cbp.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cbp_cross_json"}}],"htmlRoutes":[{"id":"cbp-cross-rulings","match":{"hosts":["rulings.cbp.gov"],"exactSegments":false},"mode":"cbp_cross_html"}]},{"id":"cdc-wonder-healthdata","name":"CDC WONDER & HealthData.gov","category":"research-health","description":"HealthData.gov and data.cdc.gov Socrata views/resource/catalog JSON adapter (coexisting cleanly with socrata.yaml) plus CDC WONDER HTML.","domains":["healthdata.gov","www.healthdata.gov","wonder.cdc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://healthdata.gov/api/views/j8mb-icvb.json","https://data.cdc.gov/api/views/9bhg-hcku.json","https://wonder.cdc.gov/ucd-icd10.html"],"routes":[{"match":{"hosts":["healthdata.gov","www.healthdata.gov","data.cdc.gov"],"anyOf":[{"pathPrefix":"/api/views/","pathSuffix":".json"},{"pathPrefix":"/resource/","pathSuffix":".json"},{"pathEquals":["/api/catalog/v1"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}},{"match":{"hosts":["healthdata.gov","www.healthdata.gov"],"minSegments":2,"anyOf":[{"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cdc_healthdata_json"}}],"htmlRoutes":[{"id":"cdc-wonder-healthdata","match":{"hosts":["wonder.cdc.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false},"mode":"cdc_wonder_html"}]},{"id":"census-foreign-trade","name":"U.S. Census Foreign Trade (USA Trade Online)","category":"public-records","description":"Covers USA Trade Online portal pages (usatradeonline.census.gov, usatrade.census.gov) disjoint from census.yaml, which handles api.census.gov/data/timeseries/intltrade/* via census_json.","domains":["usatradeonline.census.gov","usatrade.census.gov"],"auth_mode":"pub","exampleUrls":["https://usatradeonline.census.gov/"],"htmlRoutes":[{"id":"census-foreign-trade","match":{"hosts":["usatradeonline.census.gov","usatrade.census.gov"],"exactSegments":false},"mode":"census_foreign_trade_html"}]},{"id":"census","name":"U.S. Census Bureau Data API","category":"public-records","description":"U.S. Census Bureau Data API (/data/{year}/... keyed JSON matrix) and /data.json DCAT catalog adapter with data.census.gov fallback.","domains":["data.census.gov","api.census.gov","census.gov","www.census.gov"],"auth_mode":"key","exampleUrls":["https://api.census.gov/data/2023/acs/acs1?get=NAME,B01001_001E&for=state:06","https://api.census.gov/data/2023/acs/acs1.json","https://www.census.gov/topics/population.html"],"routes":[{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":false,"pathPrefix":"/data/","excludeSegmentSuffixes":[".html",".htm"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"census_json"}},{"match":{"hosts":["api.census.gov"],"exactSegments":true,"pathEquals":["/data.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"census_json"}}],"htmlRoutes":[{"id":"census","match":{"hosts":["data.census.gov","census.gov","www.census.gov"],"exactSegments":false},"mode":"census_html"}]},{"id":"cfpb-complaints","name":"CFPB Consumer Complaint Database","category":"finance","description":"Upgrades consumerfinance.gov complaint detail URLs to keyless CFPB Consumer Complaint Database JSON API v1 with HTML fallback.","domains":["www.consumerfinance.gov","consumerfinance.gov"],"auth_mode":"pub","exampleUrls":["https://www.consumerfinance.gov/data-research/consumer-complaints/search/detail/3204968","https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/3204968"],"routes":[{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"exactSegments":false,"pathSegments":["data-research","consumer-complaints","search","detail",{"param":"complaintId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://www.consumerfinance.gov/data-research/consumer-complaints/search/api/v1/{complaintId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}},{"match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/search/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"cfpb_complaints_json"}}],"htmlRoutes":[{"id":"cfpb-complaints","match":{"hosts":["www.consumerfinance.gov","consumerfinance.gov"],"pathPrefix":"/data-research/consumer-complaints/","exactSegments":false},"mode":"cfpb_complaints_html"}]},{"id":"chambermaster-growthzone","name":"ChamberMaster / GrowthZone Chamber Directories","category":"commerce-social","description":"Universal extractor for chamber-of-commerce member directories and event calendars hosted on ChamberMaster / GrowthZone (/list/ category and search pages, /list/member/ detail pages, and /events/ calendars): member name, address, phone, website, hours, categories, events, and description.","domains":["business.fortworthchamber.com","www.brownstownchamber.org","*.chambermaster.com","*.growthzoneapp.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://business.fortworthchamber.com/list/category/apartments-25","https://business.fortworthchamber.com/list/member/the-harden-at-public-market-50786","https://www.brownstownchamber.org/events/"],"htmlRoutes":[{"id":"chambermaster-growthzone","match":{"exactSegments":false},"mode":"chambermaster_html"}]},{"id":"changelog-roadmap-pack","name":"Changelog & Roadmap Pack","category":"developer","description":"Extracts changelog releases and roadmap items from Canny, Productboard Portal, Headway, Beamer (via /loadMoreNews companion), and LaunchNotes.","domains":["feedback.canny.io","portal.productboard.com","headwayapp.co","app.getbeamer.com","updates.launchnotes.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://feedback.canny.io/changelog","https://portal.productboard.com/pb/1-productboard-portal/tabs/7-under-consideration","https://app.getbeamer.com/beamer/changelog","https://updates.launchnotes.io/"],"routes":[{"match":{"pathEquals":["/changelog.json","/releases.json","/updates.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"changelog_roadmap_json"}}],"htmlRoutes":[{"id":"changelog-roadmap-pack","match":{"exactSegments":false},"mode":"changelog_roadmap_html"}]},{"id":"chronicling-america","name":"Chronicling America (Historic American Newspapers)","category":"public-records","description":"Library of Congress Chronicling America historic newspapers adapter rewriting legacy chroniclingamerica.loc.gov and collection URLs directly to www.loc.gov ?fo=json.","domains":["chroniclingamerica.loc.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/collections/chronicling-america/?fo=json","https://chroniclingamerica.loc.gov/lccn/sn83030214.json","https://www.loc.gov/collections/chronicling-america/"],"routes":[{"match":{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false,"pathSegments":["lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["chroniclingamerica.loc.gov"],"anyOf":[{"pathEquals":["/","/newspapers.json"]},{"pathPrefix":"/search/"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"exactSegments":false,"pathSegments":["chroniclingamerica","lccn",{"param":"lccn","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{lccn}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}},{"match":{"hosts":["www.loc.gov","loc.gov"],"anyOf":[{"pathPrefix":"/collections/chronicling-america"},{"pathPrefix":"/chroniclingamerica"}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/chronicling-america/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"chronicling_america_json"}}],"htmlRoutes":[{"id":"chronicling-america","match":{"anyOf":[{"hosts":["chroniclingamerica.loc.gov"],"exactSegments":false},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/collections/chronicling-america"},{"hosts":["www.loc.gov","loc.gov"],"pathPrefix":"/chroniclingamerica"}]},"mode":"chronicling_america_html"}]},{"id":"civicclerk","name":"CivicPlus CivicClerk Agenda Portals","category":"public-records","description":"Extracts municipal meeting events and agendas via CivicClerk OData v1 API with portal-to-API same-eTLD+1 twin upgrades.","domains":["*.civicclerk.com"],"auth_mode":"pub","exampleUrls":["https://mauicounty.api.civicclerk.com/v1/Events?$top=3","https://mauicounty.api.civicclerk.com/v1/Events/1023","https://mauicounty.portal.civicclerk.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".api.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathPrefix":"/v1/Events"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"exactSegments":false,"pathSegments":["event",{"param":"eventId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events/{eventId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"civicclerk_json"}},{"match":{"hostSubdomain":{"suffix":".portal.civicclerk.com","param":"tenant","reserved":["www","api","auth","login","admin"]},"pathEquals":["/","/events"]},"twin":{"fetchUrl":"https://{tenant}.api.civicclerk.com/v1/Events?$top=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"civicclerk_json"}}],"htmlRoutes":[{"id":"civicclerk","match":{"exactSegments":false},"mode":"civicclerk_html"}]},{"id":"civicplus","name":"CivicPlus CivicEngage Agenda & Document Portals","category":"public-records","description":"Universal extractor for CivicPlus CivicEngage /AgendaCenter, /DocumentCenter, and /CivicAlerts.aspx pages on city and county domains: meeting dates, agenda titles, agenda/HTML/packet/minutes links, public document directories, and municipal alerts. Fingerprint-gated; never touches robots.txt-disallowed /RSSFeed.aspx.","domains":["www.gulfshoresal.gov","www.ankenyiowa.gov","www.springfieldmo.gov","www.brownwoodtexas.gov","www.fayetteville-ar.gov"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.gulfshoresal.gov/AgendaCenter","https://www.brownwoodtexas.gov/DocumentCenter","https://www.springfieldmo.gov/CivicAlerts.aspx"],"htmlRoutes":[{"id":"civicplus","match":{"anyOf":[{"pathPrefix":"/AgendaCenter","exactSegments":false},{"pathPrefix":"/DocumentCenter","exactSegments":false},{"pathEquals":["/CivicAlerts.aspx"]}]},"mode":"civicplus_agenda_html"}]},{"id":"ckan","name":"CKAN Open Data Portals (Data.gov, UK, AU, Canada & City Portals)","category":"public-records","description":"Upgrades CKAN open-data portal dataset pages to /api/3/action/package_show JSON with organization, license, and downloadable resources.","domains":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org","data.gov.uk","www.data.gov.uk","data.gov.au","open.canada.ca"],"exampleUrls":["https://open.canada.ca/data/en/dataset/0032ce54-c5dd-4b66-99a0-320a7b5e99f2"],"routes":[{"match":{"hosts":["catalog.data.gov","data.boston.gov","data.sanantonio.gov","data.sanjoseca.gov","data.wprdc.org"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.uk","www.data.gov.uk"],"exactSegments":true,"pathSegments":["dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.uk/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["data.gov.au"],"exactSegments":true,"pathSegments":["data","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://data.gov.au/data/api/3/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}},{"match":{"hosts":["open.canada.ca"],"exactSegments":true,"pathSegments":["data","en","dataset",{"param":"pkgId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://open.canada.ca/data/api/action/package_show?id={pkgId}","kind":"json","accept":"application/json"},"extract":{"requireFieldEquals":{"path":"success","value":"true"},"requireAnyFields":["result"],"vars":{"title":{"paths":["result.title","result.title.en"],"trim":true,"fallbackTemplate":"{pkgId}"},"orgTitle":{"paths":["result.organization.title"]},"license":{"paths":["result.license_title"]},"modified":{"paths":["result.metadata_modified"],"sliceMax":10},"notes":{"paths":["result.notes"],"format":"strip_tags"},"notesShort":{"paths":["result.notes"],"format":"strip_tags","sliceMax":260},"tags":{"paths":["result.tags"],"subFieldsJoin":{"fields":["display_name"],"sep":"","fallbackField":"name"},"limit":12,"join":", "}},"titleTemplate":"{title}","descriptionVar":"notesShort","authorVar":"orgTitle","publishedTimeVar":"modified","bullets":[{"label":"Portal","template":"`{host}`"},{"label":"Publisher","template":"{orgTitle}","whenVar":"orgTitle"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Last Updated","template":"{modified}","whenVar":"modified"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Description","textVar":"notes"},{"heading":"Data Resources","headingTemplate":"Data Resources ({count})","arrayPath":"result.resources","limit":20,"collectLinkVars":["rUrl"],"itemVars":{"rName":{"paths":["name","description","format"],"trim":true,"default":"Resource"},"rUrl":{"paths":["url"],"requireHttps":true},"rCell":{"template":"[{rName}]({rUrl})","whenVars":["rName","rUrl"],"fallbackVar":"rName"},"rFmt":{"paths":["format"],"upper":true,"default":"-"}},"columns":[{"header":"Resource","template":"{rCell}"},{"header":"Format","template":"{rFmt}"}]}]}}]},{"id":"classic-forum-pack","name":"Classic Forum Pack","category":"commerce-social","description":"Extracts structured posts, authors, timestamps, and quote blocks from Invision Community, vBulletin (vB3/4 & vB5), and phpBB thread HTML while rejecting HTTP 200 soft-404s.","domains":["gtaforums.com","forum.doom9.org","forum.image-line.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://gtaforums.com/topic/1007946-gtao-event-12th-nov-2026-as-the-trip-to-leonida-approaches-go-back-to-the-basics-w-bonuses-on-all-contact-missions-free-mode-challenges-stunt-race-series-more/","https://forum.doom9.org/showthread.php?t=187224","https://forum.image-line.com/viewtopic.php?t=343634"],"htmlRoutes":[{"id":"classic-forum-pack","match":{"exactSegments":false},"mode":"classic_forum_pack_html"}]},{"id":"clinicaltrials","name":"ClinicalTrials.gov Studies","category":"research-health","description":"Extracts clinical trial NCT ID, recruitment status, phase, conditions, interventions, sponsor, and summary from rendered clinicaltrials.gov/study/NCT... pages (strictly respecting robots.txt).","domains":["clinicaltrials.gov","www.clinicaltrials.gov"],"exampleUrls":["https://clinicaltrials.gov/study/NCT04280705"],"htmlRoutes":[{"match":{"scanSegment":{"param":"nctId","charset":"nct_id","transform":"upper"}},"mode":"dom","jsonLdTypes":["MedicalStudy","MedicalTrial","ClinicalTrial"],"embeddedBalancedKey":"protocolSection","requireVars":["title","hasAnyDetail"],"vars":{"title":{"embeddedPaths":["identificationModule.briefTitle"],"jsonLdPaths":["name"],"metaKeys":["og:title"]},"overallStatus":{"embeddedPaths":["statusModule.overallStatus"],"jsonLdPaths":["status"]},"phases":{"embeddedPaths":["designModule.phases"],"join":", "},"leadSponsor":{"embeddedPaths":["sponsorCollaboratorsModule.leadSponsor.name"],"jsonLdPaths":["sponsor.name"]},"conditions":{"embeddedPaths":["conditionsModule.conditions"],"jsonLdPaths":["healthCondition"],"limit":10,"join":", "},"summary":{"embeddedPaths":["descriptionModule.briefSummary"],"jsonLdPaths":["description"],"metaKeys":["description"]},"summaryShort":{"template":"{summary}","whenVars":["summary"],"sliceMax":260},"hasAnyDetail":{"template":"1","whenAnyVars":["overallStatus","phases","leadSponsor","conditions","summary"]}},"titleTemplate":"{title} ({nctId})","descriptionVar":"summaryShort","bullets":[{"label":"NCT Number","template":"`{nctId}`"},{"label":"Status","template":"{overallStatus}","whenVar":"overallStatus"},{"label":"Phase","template":"{phases}","whenVar":"phases"},{"label":"Lead Sponsor","template":"{leadSponsor}","whenVar":"leadSponsor"},{"label":"Conditions","template":"{conditions}","whenVar":"conditions"}],"sections":[{"heading":"Brief Summary","textVar":"summary"}],"appendCurrentMdDelta":{"baseVar":"summary","minExtraChars":120}}]},{"id":"cms-data","name":"CMS Data & Provider Data Catalog","category":"research-health","description":"Centers for Medicare & Medicaid Services (CMS) DKAN metastore, datastore query, and data-api v1 adapter enforcing 10s crawl-delay.","domains":["data.cms.gov"],"auth_mode":"pub","min_interval_ms":10000,"strict_robots":true,"exampleUrls":["https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/mj5m-pzi6","https://data.cms.gov/provider-data/api/1/datastore/query/mj5m-pzi6/0?limit=2","https://data.cms.gov/data-api/v1/dataset/9767cb68-8ea9-4f0b-8179-9431abc89f11/data?size=2"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/provider-data/api/"},{"pathPrefix":"/data-api/v1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"cms_data_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-data","dataset",{"param":"datasetId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://data.cms.gov/provider-data/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_data_json"}}],"htmlRoutes":[{"id":"cms-data","match":{"exactSegments":false},"mode":"cms_data_html"}]},{"id":"cms-price-transparency","name":"CMS Hospital & Payer Price Transparency (HPT & MRF)","category":"research-health","description":"Universal engine for hospital /cms-hpt.txt discovery files, bounded Range-streaming MRF JSON/CSV charge files, ZIP/gzip archive detection, and payer TiC index feeds.","domains":["stanfordhealthcare.org","www.mountsinai.org","nyulangone.org","www.ucsfhealth.org","transparency-in-coverage.uhc.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://stanfordhealthcare.org/cms-hpt.txt","https://nyulangone.org/cms-hpt.txt","https://stanfordhealthcare.org/content/dam/SHC/patientsandvisitors/pricingtransparency/946174066_stanford-health-care_standardcharges.json","https://transparency-in-coverage.uhc.com/api/v1/uhc/blobs/"],"routes":[{"match":{"pathEquals":["/cms-hpt.txt"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":524288},"extract":{"textMode":"cms_hpt_txt"}},{"match":{"pathSuffix":"standardcharges.json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}},{"match":{"pathSuffix":"standardcharges.csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"cms_mrf_csv"}},{"match":{"hosts":["transparency-in-coverage.uhc.com"],"pathPrefix":"/api/v1/uhc/blobs"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}},{"match":{"anyOf":[{"pathSuffix":"table-of-contents.json"},{"pathSuffix":"_index.json"},{"pathSuffix":"-index.json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"jsonMode":"cms_mrf_json"}}],"htmlRoutes":[{"id":"cms-price-transparency","match":{"exactSegments":false},"mode":"cms_price_transparency_html"}]},{"id":"college-scorecard","name":"College Scorecard (U.S. Department of Education)","category":"public-records","description":"U.S. Department of Education College Scorecard API adapter scoped to api.data.gov/ed/collegescorecard with compact default fields.","domains":["collegescorecard.ed.gov","api.data.gov"],"auth_mode":"key","exampleUrls":["https://api.data.gov/ed/collegescorecard/v1/schools?id=166027","https://collegescorecard.ed.gov/school/?166027-Harvard-University"],"routes":[{"match":{"hosts":["api.data.gov"],"exactSegments":false,"pathPrefix":"/ed/collegescorecard"},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"id,school.name,school.city,school.state,school.school_url,latest.student.size,latest.admissions.admission_rate.overall,latest.cost.tuition.in_state,latest.cost.tuition.out_of_state,latest.earnings.10_yrs_after_entry.median","per_page":"10"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"college_scorecard_json"}}],"htmlRoutes":[{"id":"college-scorecard","match":{"hosts":["collegescorecard.ed.gov"],"exactSegments":false},"mode":"college_scorecard_html"}]},{"id":"company-newsrooms","name":"Company Newsrooms (Prowly / Prezly / Cision)","category":"commerce-social","description":"Extracts corporate newsrooms and RSS/Atom press release feeds from Prowly, Prezly, and Cision PR portals.","domains":["news.cision.com","multimedia.cision.com","*.prowly.com","*.prezly.com","press.brusselsairlines.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://residence.prowly.com/rss","https://residence.prowly.com/","https://press.brusselsairlines.com/feed","https://news.cision.com/tietoevry"],"routes":[{"match":{"anyOf":[{"pathEquals":["/rss","/feed","/rss.xml","/feed.xml"]},{"pathSuffix":"/rss"},{"pathSuffix":"/feed"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"company_newsroom_rss_xml"}}],"htmlRoutes":[{"id":"company-newsrooms","match":{"exactSegments":false},"mode":"company_newsrooms_html"}]},{"id":"confluence-public","name":"Confluence Public Spaces","category":"developer","description":"Upgrades public Confluence /wiki/spaces/.../pages/{pageId} URLs to same-origin REST content API JSON twins with SSR HTML fallback; keyless public spaces only.","domains":["openmrs.atlassian.net","ecosystem.atlassian.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://openmrs.atlassian.net/wiki/spaces/docs/pages/25462110/Reporting+Module","https://openmrs.atlassian.net/wiki/spaces/docs/overview"],"routes":[{"match":{"pathPrefix":"/wiki/spaces/","exactSegments":false,"pathSegments":["wiki","spaces",{"param":"space","charset":"url_seg","minLen":1,"maxLen":80},"pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/wiki/rest/api/content/{pageId}?expand=body.view,space,version,ancestors","kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","rest","api","content",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"expand":"body.view,space,version,ancestors"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}},{"match":{"exactSegments":true,"pathSegments":["wiki","api","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"body-format":"view"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"confluence_public"}}],"htmlRoutes":[{"id":"confluence-public","match":{"exactSegments":false},"mode":"confluence_public_html"}]},{"id":"congress-gov","name":"Congress.gov Federal Legislation","category":"public-records","description":"Official api.congress.gov v3 API adapter for federal bills, amendments, nominations, committees, and members with HTML fallback for www.congress.gov.","domains":["congress.gov","www.congress.gov","api.congress.gov"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.congress.gov/v3/bill/118/hr/815?format=json","https://www.congress.gov/bill/118th-congress/house-bill/815"],"routes":[{"match":{"hosts":["api.congress.gov"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hr/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-bill",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/s/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-joint-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sjres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-concurrent-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sconres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"house-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/hres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}},{"match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false,"pathSegments":["bill",{"param":"congress","charset":"alnum_dash","minLen":3,"maxLen":20,"transform":"leading_digits"},"senate-resolution",{"param":"billNumber","charset":"digits","minLen":1,"maxLen":8}]},"twin":{"fetchUrl":"https://api.congress.gov/v3/bill/{congress}/sres/{billNumber}?format=json","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"congress_gov_json"}}],"htmlRoutes":[{"id":"congress-gov","match":{"hosts":["congress.gov","www.congress.gov"],"exactSegments":false},"mode":"congress_gov_html"}]},{"id":"constructor-io","name":"Constructor.io On-Site Search","category":"commerce-social","description":"Opt-in page-key adapter for Constructor.io search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["ac.cnstrc.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://ac.cnstrc.com/search/shirt?key=key_kUTI6qLxMCLBIaN9&num_results_per_page=10"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]},{"hostSubdomain":{"suffix":".cnstrc.com","param":"regionHost"},"pathSegments":["v1","search",{"param":"query","charset":"url_seg","minLen":1,"maxLen":200}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"constructor_io"}}],"htmlRoutes":[{"id":"constructor-io","match":{"exactSegments":false},"mode":"constructor_io_html"}]},{"id":"copyright-office","name":"U.S. Copyright Office Public Records","category":"public-records","description":"U.S. Copyright Office Public Records System (publicrecords.copyright.gov) keyless JSON API adapter with HTML fallback.","domains":["publicrecords.copyright.gov","api.publicrecords.copyright.gov","cocatalog.loc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query=TX0009000001&page_number=1&records_per_page=5","https://publicrecords.copyright.gov/detailed-record/voyager_32941460"],"routes":[{"match":{"hosts":["api.publicrecords.copyright.gov"],"pathPrefix":"/search_service_external/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}},{"match":{"hosts":["publicrecords.copyright.gov"],"exactSegments":false,"pathSegments":["detailed-record",{"param":"recordId","charset":"alnum_dash","minLen":3,"maxLen":80}]},"twin":{"fetchUrl":"https://api.publicrecords.copyright.gov/search_service_external/simple_search_dsl?query={recordId}&page_number=1&records_per_page=5","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"copyright_office_json"}}],"htmlRoutes":[{"id":"copyright-office","match":{"hosts":["publicrecords.copyright.gov","cocatalog.loc.gov"],"exactSegments":false},"mode":"copyright_office_html"}]},{"id":"cornell-lii","name":"Cornell Law LII (CFR & US Code)","category":"public-records","description":"Extracts clean statutory and CFR regulatory text from www.law.cornell.edu/cfr/* and /uscode/* while stripping navigation and donation sidebars.","domains":["www.law.cornell.edu","law.cornell.edu"],"exampleUrls":["https://www.law.cornell.edu/cfr/text/16/part-1512","https://www.law.cornell.edu/uscode/text/15/2051"],"htmlRoutes":[{"id":"cornell-lii","mode":"dom","match":{"anyOf":[{"exactSegments":false,"pathSegments":["cfr",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]},{"exactSegments":false,"pathSegments":["uscode",{"param":"rest","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]}]},"vars":{"title":{"cssText":["#page-title","main#content h1","#content h1","h1","title"],"trim":true},"body":{"cssHtmlToMd":["#content .tab-pane.active","main#content","#content","main","article"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"costco-sams-club","name":"Costco & Sam's Club","category":"commerce-social","description":"Extracts Costco and Sam's Club public product pages from schema.org Product JSON-LD and Sam's Club __NEXT_DATA__ hydration, strictly rejecting Kasada, Akamai, and empty SPA shells.","domains":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.costco.com/p/-/costco-shop-card/10024438","https://www.samsclub.com/ip/tnt-fireworks-revolution-rumble/20020700393"],"htmlRoutes":[{"id":"costco-sams-club","match":{"hosts":["costco.com","www.costco.com","costco.ca","www.costco.ca","samsclub.com","www.samsclub.com"]},"mode":"costco_sams_club_html"}]},{"id":"county-assessor","name":"County Assessor & Property Records","category":"public-records","description":"Universal extractor for Vision Government Solutions (VGSI), Tyler Technologies iasWorld, and SchneiderCorp qPublic/Beacon county property assessor portals.","domains":["gis.vgsi.com","icare.fairfaxcounty.gov","property.muni.org","qpublic.schneidercorp.com","beacon.schneidercorp.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://gis.vgsi.com/madisonct/Parcel.aspx?pid=4","https://gis.vgsi.com/madisonct/Parcel.aspx?pid=10","https://gis.vgsi.com/newhavenct/Parcel.aspx?pid=1"],"htmlRoutes":[{"id":"county-assessor","match":{"exactSegments":false},"mode":"county_assessor_html"}]},{"id":"coursedog","name":"Coursedog University Catalogs","category":"public-records","description":"Extracts Coursedog public university catalogs from SSR __NUXT_DATA__ and rendered catalog DOM alongside public Coursedog JSON API routes.","domains":["*.coursedog.com","catalog.pratt.edu","catalogs.umn.edu"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://app.coursedog.com/api/v1/cm/umn/courses/search","https://catalog.pratt.edu/courses","https://catalogs.umn.edu/"],"routes":[{"match":{"hosts":["app.coursedog.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"coursedog_json"}}],"htmlRoutes":[{"id":"coursedog","match":{"exactSegments":false},"mode":"coursedog_html"}]},{"id":"courseleaf","name":"CourseLeaf University Course Catalogs","category":"public-records","description":"Universal extractor for CourseLeaf catalog pages (catalog..edu/courses// and program pages): course code, title, credits, description, requisites, and grading from div.courseblock. Fingerprint-gated; never calls /ribbit/, which CourseLeaf robots.txt files disallow.","domains":["catalog.unc.edu","catalog.colorado.edu","catalog.utexas.edu"],"universalEngine":true,"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://catalog.unc.edu/courses/comp/","https://catalog.colorado.edu/courses-a-z/csci/","https://catalog.utexas.edu/courses/acc/"],"htmlRoutes":[{"id":"courseleaf","match":{"exactSegments":false},"mode":"courseleaf_courses_html"}]},{"id":"courtlistener","name":"CourtListener Federal & State Case Law","category":"public-records","description":"Official CourtListener REST API v4 adapter for opinions, clusters, RECAP dockets, and court metadata with HTML fallback.","domains":["courtlistener.com","www.courtlistener.com"],"auth_mode":"key","exampleUrls":["https://www.courtlistener.com/api/rest/v4/courts/scotus/","https://www.courtlistener.com/api/rest/v4/clusters/108713/","https://www.courtlistener.com/opinion/108713/marbury-v-madison/"],"routes":[{"match":{"pathPrefix":"/api/rest/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["opinion",{"param":"clusterId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/clusters/{clusterId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}},{"match":{"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://www.courtlistener.com/api/rest/v4/dockets/{docketId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"courtlistener_v4_json"}}],"htmlRoutes":[{"id":"courtlistener","match":{"exactSegments":false},"mode":"courtlistener_html"}]},{"id":"coveo","name":"Coveo Cloud Search","category":"developer","description":"Opt-in page-key adapter for Coveo /rest/search/v2 endpoints; honors robots.txt Allow /rest/search and defaults OFF.","domains":["platform.cloud.coveo.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://platform.cloud.coveo.com/rest/search/v2?organizationId=mycoveocloudv2organizationg8tp8wu3&access_token=xx564559b1-0045-48e1-953c-3addd1ee4457&q=coveo&numberOfResults=10"],"routes":[{"match":{"hostSubdomain":{"suffix":".cloud.coveo.com","param":"regionHost"},"pathEquals":["/rest/search/v2"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"coveo"}}],"htmlRoutes":[{"id":"coveo","match":{"exactSegments":false},"mode":"coveo_html"}]},{"id":"cpsc-ebike-battery","name":"E-Bike Battery Safety Standards (UL 2849)","category":"public-records","description":"Extracts UL 2849 / UL 2271 e-bike electrical system and battery certification guidance from ul.com (complementing cpsc-recalls and ebike-state-laws).","domains":["ul.com","www.ul.com"],"auth_mode":"html","exampleUrls":["https://www.ul.com/services/e-bikes-certificationevaluating-and-testing-ul-2849","https://www.ul.com/industries/automotive-and-mobility/micromobility-device-evaluation-testing-and-certification","https://www.ul.com/resources/comparison-e-bikes-standards-en-15194-and-ul-2849"],"htmlRoutes":[{"id":"cpsc-ebike-battery","match":{"exactSegments":false},"mode":"cpsc_ebike_battery_html"}]},{"id":"cpsc-recalls","name":"CPSC Recalls & SaferProducts.gov","category":"public-records","description":"Formats bounded saferproducts.gov RecallNumber queries via JSON twin and extracts structured recall details and RecallNumber from cpsc.gov/Recalls pages (never fetching the unfiltered 25 MiB SaferProducts dump).","domains":["www.saferproducts.gov","saferproducts.gov","www.cpsc.gov","cpsc.gov"],"exampleUrls":["https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123","https://www.cpsc.gov/Recalls/2027/Cipton-Recalls-Bicycle-Helmets-Due-to-Risk-of-Serious-Injury-or-Death-from-Head-Injury-Violate-Mandatory-Standard-for-Bicycle-Helmets"],"routes":[{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["RecallNumber","recallnumber","recallNumber","RECALLNUMBER"],"param":"recallNum","charset":"cpsc_recall_num","minLen":2,"maxLen":24,"transform":"strip_dashes"}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber={recallNum}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"unwrapFirstArrayElement":true,"requireFields":["RecallNumber","Title"],"vars":{"title":{"paths":["Title"],"trim":true},"recallNumber":{"paths":["RecallNumber"],"trim":true},"recallDate":{"paths":["RecallDate"],"sliceMax":10},"lastPublishDate":{"paths":["LastPublishDate"],"sliceMax":10},"description":{"paths":["Description"],"trim":true},"descShort":{"paths":["Description"],"trim":true,"sliceMax":260},"consumerContact":{"paths":["ConsumerContact"],"trim":true},"recallUrl":{"paths":["URL"],"requireHttps":true},"hazards":{"paths":["Hazards"],"subField":"Name","join":"; ","limit":10},"remedies":{"paths":["Remedies"],"subField":"Name","join":"; ","limit":10},"manufacturers":{"paths":["Manufacturers"],"subField":"Name","join":", ","limit":10},"retailers":{"paths":["Retailers"],"subField":"Name","join":", ","limit":10},"injuries":{"paths":["Injuries"],"subField":"Name","join":"; ","limit":10}},"titleTemplate":"{title} (Recall #{recallNumber})","descriptionVar":"descShort","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"},{"label":"Last Published","template":"{lastPublishDate}","whenVar":"lastPublishDate"},{"label":"Hazards","template":"{hazards}","whenVar":"hazards"},{"label":"Remedies","template":"{remedies}","whenVar":"remedies"},{"label":"Injuries / Incidents","template":"{injuries}","whenVar":"injuries"},{"label":"Manufacturers","template":"{manufacturers}","whenVar":"manufacturers"},{"label":"Retailers","template":"{retailers}","whenVar":"retailers"},{"label":"Consumer Contact","template":"{consumerContact}","whenVar":"consumerContact"},{"label":"CPSC URL","template":"{recallUrl}","whenVar":"recallUrl"}],"sections":[{"heading":"Description","textVar":"description"},{"heading":"Products","arrayPath":"Products","limit":25,"columns":[{"header":"Name","paths":["Name"]},{"header":"Model","paths":["Model"],"code":true},{"header":"Units","paths":["NumberOfUnits"]},{"header":"Type","paths":["Type"]}]},{"heading":"Images","arrayPath":"Images","limit":10,"requireItemVar":"imgUrl","collectLinkVars":["imgUrl"],"itemVars":{"imgUrl":{"paths":["URL"],"requireHttps":true},"imgCap":{"paths":["Caption"],"default":"Recall product image"}},"itemTemplate":"[{imgCap}]({imgUrl})"}],"linksVars":["recallUrl"],"recordFields":{"recallNumber":"{recallNumber}","title":"{title}","recallDate":"{recallDate}","url":"{recallUrl}","hazards":"{hazards}","remedies":"{remedies}","manufacturers":"{manufacturers}"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["Recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]},{"hosts":["www.cpsc.gov","cpsc.gov"],"exactSegments":false,"pathSegments":["recalls",{"param":"year","charset":"digits","minLen":4,"maxLen":4},{"param":"slug","charset":"url_seg"}]}]},"mode":"dom","vars":{"title":{"cssText":["h1"],"metaKeys":["og:title"],"trim":true},"recallNumber":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"(?i)Recall\\s*(?:Number|No\\.?|#)\\s*:?\\s*([0-9]{2}-?[0-9]{2,5})","group":1},"trim":true},"recallDate":{"metaKeys":["article:published_time"],"cssText":["time",".recall-detail__date"],"trim":true},"summary":{"metaKeys":["description","og:description"],"trim":true},"body":{"cssHtmlToMd":["main article",".recall-detail",".node--type-recall","main","article"],"format":"strip_leading_h1"}},"requireVars":["title","body"],"titleTemplate":"{title}","descriptionVar":"summary","publishedTimeVar":"recallDate","bullets":[{"label":"Recall Number","template":"`{recallNumber}`","whenVar":"recallNumber"},{"label":"Recall Date","template":"{recallDate}","whenVar":"recallDate"}],"bodyVar":"body"}]},{"id":"crates-io","name":"Rust Crates.io","category":"developer","description":"Upgrades crates.io pages to the v1 JSON API with Cargo install command, MSRV, Cargo features, downloads, and release history.","domains":["crates.io","www.crates.io"],"exampleUrls":["https://crates.io/crates/serde"],"match":{"exactSegments":false,"pathSegments":["crates",{"param":"crateName","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://crates.io/api/v1/crates/{crateName}","kind":"json","accept":"application/json"},"extract":{"requireFields":["crate.name"],"vars":{"name":{"paths":["crate.name"]},"ver":{"paths":["crate.max_stable_version","crate.max_version","versions.0.num"]},"desc":{"paths":["crate.description"],"trim":true},"license":{"paths":["versions.0.license"]},"msrv":{"paths":["versions.0.rust_version"]},"repo":{"paths":["crate.repository"]},"docs":{"paths":["crate.documentation"],"fallbackTemplate":"https://docs.rs/{name}"},"downloads":{"paths":["crate.downloads"],"format":"int_comma"},"features":{"paths":["versions.0.features"],"format":"object_keys","limit":14,"itemWrap":"`","join":", "},"categories":{"paths":["categories"],"subField":"category","join":", "},"keywords":{"paths":["keywords"],"subField":"keyword","join":", "}},"titleTemplate":"{name} v{ver} (Rust Crate)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Rust Crate)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Cargo","template":"`cargo add {name}`"},{"label":"Version","template":"`{ver}`","whenVar":"ver"},{"label":"MSRV","template":"Rust `{msrv}`","whenVar":"msrv"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"API Docs","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"},{"label":"Cargo Features","template":"{features}","whenVar":"features"},{"label":"Categories","template":"{categories}","whenVar":"categories"},{"label":"Keywords","template":"{keywords}","whenVar":"keywords"}],"sections":[{"heading":"Recent Releases","arrayPath":"versions","minItems":2,"limit":6,"columns":[{"header":"Version","paths":["num"],"code":true},{"header":"Published","paths":["created_at"],"sliceMax":10},{"header":"MSRV","paths":["rust_version"]}]}],"linksVars":["docs","repo"]}},{"id":"dailymed","name":"NLM DailyMed Drug Labels","category":"research-health","description":"National Library of Medicine DailyMed v2 REST API adapter for JSON catalog endpoints and HL7 SPL XML documents with drugInfo HTML fallback.","domains":["dailymed.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://dailymed.nlm.nih.gov/dailymed/services/v2/spls.json?pagesize=2","https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/0f3234b2-806e-4fab-99f5-b7d15177565b.xml","https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.json?drug_name=lipitor&pagesize=2"],"routes":[{"match":{"pathPrefix":"/dailymed/services/v2/spls/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}},{"match":{"pathEquals":["/dailymed/services/v2/spls.json","/dailymed/services/v2/drugnames.json","/dailymed/services/v2/drugclasses.json","/dailymed/services/v2/ndcs.json","/dailymed/services/v2/rxcuis.json","/dailymed/services/v2/uniis.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"dailymed_list_json"}},{"match":{"pathEquals":["/dailymed/drugInfo.cfm"],"queryParams":[{"name":"setid","param":"setid","charset":"alnum_dash","minLen":32,"maxLen":40}]},"twin":{"fetchUrl":"https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/{setid}.xml","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"dailymed_spl_xml"}}],"htmlRoutes":[{"id":"dailymed","match":{"pathPrefix":"/dailymed/","exactSegments":false},"mode":"dailymed_html"}]},{"id":"dealer-locator-pack","name":"Dealer Locator Pack (Bullseye, Storepoint, MetaLocator, Where2GetIt)","category":"commerce-social","description":"Opt-in page-key adapter pack for Bullseye, Storepoint, MetaLocator, and Where2GetIt locator APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["ws.bullseyelocations.com","www.bullseyelocations.com","api.storepoint.co","hosted.where2getit.com","api.metalocator.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.bullseyelocations.com/"],"routes":[{"match":{"anyOf":[{"hosts":["ws.bullseyelocations.com","www.bullseyelocations.com"],"pathEquals":["/RestSearch.svc/DoSearch2","/RestSearch.svc/DoSearch"]},{"hosts":["api.storepoint.co"],"pathPrefix":"/v1/"},{"hosts":["api.storepoint.co"],"pathPrefix":"/public/v1/"},{"hosts":["api.metalocator.com"],"pathPrefix":"/api/"},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"responsive","ajax"]},{"hosts":["hosted.where2getit.com"],"pathSegments":[{"param":"brand","charset":"alnum_dash","minLen":1,"maxLen":64},"rest",{"param":"action","charset":"alnum_dash","minLen":1,"maxLen":64}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"dealer_locator_pack"}}],"htmlRoutes":[{"id":"dealer-locator-pack","match":{"exactSegments":false},"mode":"dealer_locator_pack_html"}]},{"id":"deps-dev","name":"Open Source Insights (deps.dev)","category":"developer","description":"Extracts package versions, default/latest stable release, licenses, advisories, and dependencies via the deps.dev v3 JSON API.","domains":["deps.dev","api.deps.dev"],"auth_mode":"pub","exampleUrls":["https://api.deps.dev/v3/systems/npm/packages/express"],"routes":[{"match":{"hosts":["api.deps.dev"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/npm/packages/{scope}%2F{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}},{"match":{"hosts":["deps.dev"],"exactSegments":false,"pathSegments":[{"param":"system","allowValues":["npm","pypi","cargo","nuget","go","maven"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":200}]},"twin":{"fetchUrl":"https://api.deps.dev/v3/systems/{system}/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"deps_dev_json"}}],"htmlRoutes":[{"id":"deps-dev","match":{"hosts":["deps.dev"],"exactSegments":false},"mode":"deps_dev_html"}]},{"id":"dev-to","name":"DEV Community Articles (dev.to)","category":"commerce-social","description":"Upgrades dev.to// articles to dev.to/api/articles raw body_markdown.","domains":["dev.to","www.dev.to"],"exampleUrls":["https://dev.to/ben/long-live-rails-3p21"],"match":{"exactSegments":true,"pathSegments":[{"param":"author","charset":"alnum_dash","reserved":["t","top","latest","pod","videos","tags","search","settings","enter","new","about","privacy","terms"]},{"param":"slug","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://dev.to/api/articles/{author}/{slug}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title","body_markdown"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"author":{"paths":["user.name"]},"publishedTime":{"paths":["published_timestamp"]},"body":{"paths":["body_markdown"],"stripFrontmatter":true,"trim":true}},"titleTemplate":"{title}","descriptionVar":"desc","authorVar":"author","publishedTimeVar":"publishedTime","bodyVar":"body"}},{"id":"dining-reservations","name":"Dining Reservations (OpenTable / Resy / ToastTab)","category":"commerce-social","description":"Extracts public restaurant venue metadata from OpenTable, Resy, and ToastTab Local pages via Restaurant/FoodEstablishment JSON-LD and hydrated DOM while rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.opentable.com/r/gary-danko-san-francisco","https://resy.com/cities/new-york-ny/venues/carbone","https://www.toasttab.com/local"],"htmlRoutes":[{"id":"dining-reservations","match":{"hosts":["opentable.com","www.opentable.com","resy.com","www.resy.com","toasttab.com","www.toasttab.com"]},"mode":"dining_reservations_html"}]},{"id":"discourse-topic","name":"Discourse Forum Threads (Universal Engine)","category":"commerce-social","description":"Upgrades any Discourse forum thread (/t//) to its .json post_stream with Accepted Solution badges.","domains":["meta.discourse.org","community.home-assistant.io","users.rust-lang.org","discuss.python.org"],"universalEngine":true,"exampleUrls":["https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371"],"match":{"exactSegments":false,"pathSegments":["t",{"param":"slug","charset":"url_seg"},{"param":"topicId","charset":"digits"}]},"twin":{"id":"discourse-topic","fetchUrl":"https://{host}/t/{slug}/{topicId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"requireAnyFields":["post_stream.posts"],"vars":{"title":{"paths":["title"],"trim":true},"tags":{"paths":["tags"],"itemWrap":"`","join":", ","limit":20},"firstAuthor":{"paths":["post_stream.posts.0.username"]},"firstCreated":{"paths":["post_stream.posts.0.created_at"]},"acceptedPostNum":{"paths":["accepted_answer.post_number"]}},"titleTemplate":"{title}","authorVar":"firstAuthor","publishedTimeVar":"firstCreated","metaLine":[{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"","subsectionsArrayPath":"post_stream.posts","limit":20,"requireItemVar":"body","subsectionHeadingTemplate":"Original Post — {userWithDate}","subsectionAltWhenVar":"nonOpPostNum","subsectionAltHeadingTemplate":"{replyBadge} — {userWithDate}","subsectionBodyVar":"body","itemVars":{"postNum":{"paths":["post_number"],"fallbackTemplate":"{index1}"},"nonOpPostNum":{"paths":["post_number"],"excludeEquals":"1"},"isAcceptedFlag":{"paths":["accepted_answer"],"format":"bool_map","trueValue":"1","falseValue":""},"isAcceptedPostNum":{"paths":["post_number"],"equalsVar":"acceptedPostNum"},"replyBadge":{"template":"✅ Accepted Solution","whenAnyVars":["isAcceptedFlag","isAcceptedPostNum"],"fallbackTemplate":"Reply #{postNum}"},"username":{"paths":["username"]},"userLabel":{"template":"@{username}","whenVars":["username"],"default":"user"},"createdDate":{"paths":["created_at"],"sliceMax":10},"userWithDate":{"template":"{userLabel} ({createdDate})","whenVars":["createdDate"],"fallbackVar":"userLabel"},"body":{"paths":["cooked"],"format":"html_to_md"}}}]}},{"id":"dkan","name":"DKAN Open Data Portals (Metastore & Datastore)","category":"public-records","description":"Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters.","domains":["data.healthcare.gov"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false","https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3","https://data.healthcare.gov/dataset/e4rr-zk4i"],"routes":[{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"pathPrefix":"/api/1/metastore/schemas/dataset/items"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}},{"match":{"excludeHosts":["data.cms.gov","healthdata.gov","www.healthdata.gov"],"exactSegments":false,"pathSegments":["api","1","datastore","query",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_datastore_json"}},{"match":{"hosts":["data.healthcare.gov"],"exactSegments":true,"pathSegments":["dataset",{"param":"datasetId","charset":"slug","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/api/1/metastore/schemas/dataset/items/{datasetId}?show-reference-ids=false","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"dkan_metastore_json"}}]},{"id":"docker-hub","name":"Docker Hub","category":"developer","description":"Upgrades hub.docker.com repository and /tags pages (both /_/ official library and /r//) to the keyless Docker Hub v2 JSON API.","domains":["hub.docker.com"],"exampleUrls":["https://hub.docker.com/_/alpine","https://hub.docker.com/_/alpine/tags","https://hub.docker.com/r/library/nginx","https://hub.docker.com/r/library/nginx/tags"],"routes":[{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128},"tags"]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/tags?page_size=25","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results"],"vars":{"totalCount":{"paths":["count"],"format":"int_comma"}},"titleTemplate":"{ns}/{repo} — Docker Tags ({totalCount} total)","titleWhenVar":"totalCount","titleFallbackTemplate":"{ns}/{repo} — Docker Tags","sections":[{"heading":"Recent Tags","arrayPath":"results","limit":25,"itemVars":{"platforms":{"paths":["images"],"subFieldsJoin":{"fields":["os","architecture"],"sep":"/"},"join":", ","limit":8},"sizeHuman":{"paths":["full_size"],"format":"bytes_human"}},"columns":[{"header":"Tag","paths":["name"],"code":true},{"header":"Size","template":"{sizeHuman}"},{"header":"Architectures","template":"{platforms}"},{"header":"Last Updated","paths":["last_updated"],"sliceMax":10}]}]}},{"match":{"defaults":{"ns":"library"},"exactSegments":false,"pathSegments":["_",{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/library/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}},{"match":{"exactSegments":false,"pathSegments":["r",{"param":"ns","charset":"pkg","minLen":1,"maxLen":128},{"param":"repo","charset":"pkg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://hub.docker.com/v2/repositories/{ns}/{repo}/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name","namespace"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"pulls":{"paths":["pull_count"],"format":"int_comma"},"stars":{"paths":["star_count"],"format":"int_comma"},"statusDesc":{"paths":["status_description"]},"lastUpdated":{"paths":["last_updated"],"sliceMax":10},"fullDesc":{"paths":["full_description"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name} (Docker Hub)","descriptionVar":"desc","publishedTimeVar":"lastUpdated","introVar":"desc","bullets":[{"label":"Pull Command","template":"`docker pull {namespace}/{name}`"},{"label":"Pulls","template":"{pulls}","whenVar":"pulls"},{"label":"Stars","template":"{stars}","whenVar":"stars"},{"label":"Status","template":"{statusDesc}","whenVar":"statusDesc"},{"label":"Last Updated","template":"{lastUpdated}","whenVar":"lastUpdated"}],"bodyVar":"fullDesc"}}]},{"id":"docs-rs","name":"Rust docs.rs Crate Documentation","category":"developer","description":"Extracts Rust crate metadata, version, feature flags, doc coverage, and rustdoc API pages from docs.rs SSR HTML (avoiding /json zstd binary archives).","domains":["docs.rs"],"auth_mode":"pub","exampleUrls":["https://docs.rs/crate/serde/latest","https://docs.rs/serde/latest/serde/"],"htmlRoutes":[{"id":"docs-rs","match":{"hosts":["docs.rs"],"exactSegments":false},"mode":"docs_rs_html"}]},{"id":"doi-crossref","name":"DOI.org & Crossref Bibliographic Resolver","category":"research-health","description":"Upgrades doi.org/10./ links to api.crossref.org/works/ bibliographic JSON (authors, venue, citations, JATS abstract, and publisher URL).","domains":["doi.org","www.doi.org","dx.doi.org"],"exampleUrls":["https://doi.org/10.1038/s41586-021-03819-2"],"match":{"pathSegments":[{"param":"doi","charset":"doi_rest","greedy":true,"minLen":8,"maxLen":240}]},"twin":{"fetchUrl":"https://api.crossref.org/works/{doi}","kind":"json","accept":"application/json"},"extract":{"rootPath":"message","requireVars":["title"],"vars":{"title":{"paths":["title.0"],"fallbackTemplate":"{doi}","format":"strip_tags"},"authors":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":16},"authorsShort":{"paths":["author"],"subFieldsJoin":{"fields":["given","family"],"sep":" ","fallbackField":"name"},"join":", ","limit":4},"venue":{"paths":["container-title.0"]},"publisher":{"paths":["publisher"]},"venueFull":{"template":"{venue} ({publisher})","whenVars":["venue","publisher"],"fallbackVar":"venue"},"citations":{"paths":["is-referenced-by-count"],"format":"int_comma"},"pubUrl":{"paths":["URL"],"fallbackTemplate":"https://doi.org/{doi}","requireHttps":true},"pubDate":{"paths":["issued.date-parts.0"],"format":"date_parts"},"abstract":{"paths":["abstract"],"format":"jats_abstract"},"abstractShort":{"paths":["abstract"],"format":"jats_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"DOI","template":"`{doi}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Venue / Journal","template":"{venueFull}","whenVar":"venueFull"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Cited By (Crossref)","template":"{citations}","whenVar":"citations"},{"label":"Publisher Link","template":"{pubUrl}","whenVar":"pubUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["pubUrl"]}},{"id":"dol-enforcement","name":"U.S. Department of Labor Enforcement & Data","category":"public-records","description":"Extracts Wage and Hour Division (WHD) and OSHA enforcement records from apiprod.dol.gov v4 APIs (DOL_API_KEY) with HTML fallback for dol.gov and enforcedata/data.dol.gov while rejecting empty data.dol.gov shells.","domains":["apiprod.dol.gov","enforcedata.dol.gov","data.dol.gov","www.dol.gov","dol.gov"],"auth_mode":"key","exampleUrls":["https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2","https://apiprod.dol.gov/v4/get/OSHA/inspection/json?limit=2","https://www.dol.gov/agencies/whd/data"],"routes":[{"match":{"hosts":["apiprod.dol.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"dol_enforcement_json"}}],"htmlRoutes":[{"id":"dol-enforcement","match":{"hosts":["data.dol.gov","enforcedata.dol.gov","www.dol.gov","dol.gov"],"exactSegments":false},"mode":"dol_enforcement_html"}]},{"id":"dpla","name":"Digital Public Library of America (DPLA)","category":"public-records","description":"Digital Public Library of America (DPLA) API v2 adapter with HTML fallback and 2000ms Crawl-delay politeness.","domains":["dp.la","www.dp.la","api.dp.la"],"auth_mode":"key","min_interval_ms":2000,"exampleUrls":["https://api.dp.la/v2/items?q=kittens","https://dp.la/item/c3e08f4945e5b7d26386942a4a7f24a2"],"routes":[{"match":{"hosts":["api.dp.la"],"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}},{"match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"pathSegments":["item",{"param":"itemId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://api.dp.la/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"dpla_json"}}],"htmlRoutes":[{"id":"dpla","match":{"hosts":["dp.la","www.dp.la"],"exactSegments":false,"reservedFirstSegment":["search","qa"]},"mode":"dpla_html"}]},{"id":"ebay","name":"eBay Official Browse API","category":"commerce-social","description":"Extracts eBay item pricing, condition, MPN, strict GTIN, and search summaries via the official eBay Browse API.","domains":["ebay.com","www.ebay.com","api.ebay.com"],"auth_mode":"key","exampleUrls":["https://www.ebay.com/itm/133000133001","https://api.ebay.com/buy/browse/v1/item/v1|133000133001|0"],"routes":[{"match":{"hosts":["ebay.com","www.ebay.com"],"anyOf":[{"exactSegments":true,"pathSegments":["itm",{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]},{"exactSegments":false,"pathSegments":["itm",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":6,"maxLen":16}]}]},"twin":{"fetchUrl":"https://api.ebay.com/buy/browse/v1/item/v1|{itemId}|0","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}},{"match":{"hosts":["api.ebay.com"],"pathPrefix":"/buy/browse/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ebay_json"}}]},{"id":"ebike-state-laws","name":"US E-Bike & Bicycle State Laws","category":"public-records","description":"Extracts US state electric bicycle and cycling statutes from PeopleForBikes Prismic/Next.js state tables and League of American Bicyclists state law profiles.","domains":["peopleforbikes.org","www.peopleforbikes.org","bikeleague.org","www.bikeleague.org"],"auth_mode":"html","exampleUrls":["https://www.peopleforbikes.org/electric-bikes/state-laws","https://www.peopleforbikes.org/electric-bikes/policies-and-laws","https://bikeleague.org/bike-laws/state-bike-laws/?bikelaw-by-state=colorado"],"htmlRoutes":[{"id":"ebike-state-laws","match":{"exactSegments":false},"mode":"ebike_state_laws_html"}]},{"id":"ecfr","name":"Electronic Code of Federal Regulations (eCFR)","category":"public-records","description":"Public eCFR Versioner and Search API adapter enforcing strict robots.txt politeness on structure, ancestry, versions, titles, and search endpoints.","domains":["ecfr.gov","www.ecfr.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.ecfr.gov/api/versioner/v1/titles.json","https://www.ecfr.gov/api/versioner/v1/ancestry/2025-01-01/title-16.json?part=1512","https://www.ecfr.gov/api/search/v1/results?query=bicycle&per_page=2"],"routes":[{"match":{"anyOf":[{"pathEquals":["/api/versioner/v1/titles.json","/api/search/v1/results","/api/admin/v1/agencies.json"]},{"pathPrefix":"/api/versioner/v1/structure/"},{"pathPrefix":"/api/versioner/v1/ancestry/"},{"pathPrefix":"/api/versioner/v1/versions/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}},{"match":{"exactSegments":false,"pathSegments":["current",{"param":"title","charset":"alnum_dash","stripPrefix":"title-","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://www.ecfr.gov/api/search/v1/results?query=title+{title}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"ecfr_api_json"}}]},{"id":"ecode360-general-code","name":"eCode360 Municipal Codes","category":"public-records","description":"HTML extractor for General Code eCode360 municipal ordinances, chapters, and statutory sections.","domains":["ecode360.com","www.ecode360.com"],"auth_mode":"html","exampleUrls":["https://ecode360.com/44475260","https://ecode360.com/OR5214"],"htmlRoutes":[{"id":"ecode360-general-code","match":{"exactSegments":false},"mode":"ecode360_html"}]},{"id":"ecwid","name":"Ecwid Storefronts & REST API v3","category":"commerce-social","description":"Opt-in page-key adapter for Ecwid /api/v3/{storeId}/products JSON twins with clean HTML/JSON-LD storefront fallback when disabled.","domains":["app.ecwid.com","www.ecwid.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://mdemo.company.site/Black-Tank-p109736045"],"routes":[{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}},{"match":{"hosts":["app.ecwid.com"],"pathSegments":["api","v3",{"param":"storeId","charset":"digits","minLen":1,"maxLen":20},"products",{"param":"productId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"ecwid_v3_json"}}],"htmlRoutes":[{"id":"ecwid","match":{"exactSegments":false},"mode":"ecwid_html"}]},{"id":"edge-cloud-changelogs","name":"Edge & Cloud Changelogs (Cloudflare, Vercel, Netlify)","category":"developer","description":"Extracts RSS 2.0 and Atom 1.0 release changelogs from Cloudflare Developers, Vercel, and Netlify with same-origin HTML-to-feed upgrades.","domains":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"auth_mode":"pub","exampleUrls":["https://developers.cloudflare.com/changelog/rss/d1.xml","https://vercel.com/atom","https://www.netlify.com/changelog/feed.xml"],"routes":[{"match":{"hosts":["developers.cloudflare.com"],"anyOf":[{"pathEquals":["/changelog/rss/index.xml","/changelog/index.xml"]},{"pathPrefix":"/changelog/rss/","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["developers.cloudflare.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://developers.cloudflare.com/changelog/rss/index.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/atom","/changelog/atom"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["vercel.com","www.vercel.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://vercel.com/atom","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog/feed.xml","/changelog/rss.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}},{"match":{"hosts":["netlify.com","www.netlify.com"],"pathEquals":["/changelog","/changelog/"]},"twin":{"fetchUrl":"https://www.netlify.com/changelog/feed.xml","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"textMode":"edge_cloud_changelog_xml"}}],"htmlRoutes":[{"id":"edge-cloud-changelogs","match":{"hosts":["developers.cloudflare.com","vercel.com","www.vercel.com","netlify.com","www.netlify.com"],"pathPrefix":"/changelog","exactSegments":false},"mode":"edge_cloud_changelog_html"}]},{"id":"edlio-thrillshare","name":"Edlio & Apptegy Thrillshare","category":"public-records","description":"Extracts K-12 school district news feeds, events, and announcements from Edlio (/apps/news/, /apps/events/) and Apptegy Thrillshare portals.","domains":["*.edlio.com","*.apptegy.us","*.sites.thrillshare.com","www.worldcompassacademy.com","www.windsorc1.com","www.eupschools.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.worldcompassacademy.com/apps/news/","https://www.windsorc1.com/o/wcmo/news","https://www.eupschools.org/"],"htmlRoutes":[{"id":"edlio-thrillshare","match":{"exactSegments":false},"mode":"edlio_thrillshare_html"}]},{"id":"edu-job-boards","name":"Education Job Boards (Chronicle Jobs, HigherEdJobs, K12JobSpot, EdJoin)","category":"jobs","description":"Extracts academic and K-12 JobPosting JSON-LD, Chronicle RSS feeds, and job board HTML while rejecting Incapsula/Cloudflare WAF challenges and unhydrated CSR templates.","domains":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"auth_mode":"pub","exampleUrls":["https://jobs.chronicle.com/job/38070836/director-of-occupational-therapy/","https://jobs.chronicle.com/jobsrss/?countrycode=US","https://www.k12jobspot.com/en","https://www.edjoin.org/Home/Jobs?keywords=teacher&searchType=all"],"routes":[{"match":{"hosts":["jobs.chronicle.com"],"pathPrefix":"/jobsrss","exactSegments":false},"twin":{"id":"edu-job-boards","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Chronicle of Higher Education Jobs ({itemCount})","emptyText":"No open academic positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","category":"{dept}","postedAt":"{pubDate}","source":"chronicle"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Category","template":"{dept}"},{"header":"Published","template":"{pubDate}"}]}}}],"htmlRoutes":[{"id":"edu-job-boards","mode":"edu_job_boards_html","match":{"hosts":["jobs.chronicle.com","www.higheredjobs.com","higheredjobs.com","www.k12jobspot.com","k12jobspot.com","www.edjoin.org","edjoin.org"],"exactSegments":false}}]},{"id":"edx-coursera","name":"edX & Coursera Course Catalog","category":"public-records","description":"Extracts edX course catalog API JSON and Coursera / edX public course landing pages via Course JSON-LD and DOM metadata.","domains":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://courses.edx.org/api/courses/v1/courses/course-v1:HarvardX+CS50+X/","https://www.coursera.org/learn/machine-learning","https://www.edx.org/learn/python"],"routes":[{"match":{"hosts":["courses.edx.org"],"pathPrefix":"/api/courses/v1/courses"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"edx_course_json"}}],"htmlRoutes":[{"id":"edx-coursera","match":{"hosts":["courses.edx.org","www.edx.org","edx.org","www.coursera.org","coursera.org"],"exactSegments":false},"mode":"edx_coursera_html"}]},{"id":"eeoc-litigation","name":"EEOC Litigation & Enforcement Releases","category":"public-records","description":"Extracts EEOC enforcement press releases, litigation summaries, settlement figures, and district office metadata from eeoc.gov.","domains":["www.eeoc.gov","eeoc.gov"],"auth_mode":"pub","exampleUrls":["https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit","https://www.eeoc.gov/eeoc-litigation","https://www.eeoc.gov/newsroom"],"htmlRoutes":[{"id":"eeoc-litigation","match":{"exactSegments":false},"mode":"eeoc_litigation_html"}]},{"id":"eia","name":"U.S. Energy Information Administration (EIA)","category":"public-records","description":"U.S. Energy Information Administration Open Data v2 JSON API adapter with eia.gov HTML table/prose fallback.","domains":["eia.gov","www.eia.gov","api.eia.gov"],"auth_mode":"key","exampleUrls":["https://api.eia.gov/v2/petroleum/pri/gnd/data/?frequency=weekly&data[0]=value&length=10","https://www.eia.gov/opendata/","https://www.eia.gov/petroleum/gasdiesel/"],"routes":[{"match":{"hosts":["api.eia.gov"],"exactSegments":false,"pathPrefix":"/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"eia_json"}}],"htmlRoutes":[{"id":"eia","match":{"hosts":["eia.gov","www.eia.gov"],"exactSegments":false},"mode":"eia_html"}]},{"id":"electronics-retail-specs","name":"US Electronics Retailers Spec Extractor","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical specification tables for Newegg, B&H Photo Video, and Micro Center.","domains":["newegg.com","www.newegg.com","bhphotovideo.com","www.bhphotovideo.com","microcenter.com","www.microcenter.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.microcenter.com/product/678482/amd-ryzen-7-7800x3d-raphael-am5-42ghz-8-core-boxed-processor-heatsink-not-included","https://www.bhphotovideo.com/c/product/1791390-REG/sony_ilce7m4_b.html"],"htmlRoutes":[{"id":"electronics-retail-specs","match":{"exactSegments":false},"mode":"electronics_retail_specs_html"}]},{"id":"enterprise-ats-full","name":"Enterprise ATS Full (Eightfold, Phenom, Avature, Cornerstone)","category":"jobs","description":"Upgrades Eightfold /careers & /careers/job/ to robots-allowed /api/pcsx/search & /api/pcsx/position_details JSON twins, plus Phenom, Avature, and Cornerstone HTML extractors.","domains":["www.phenom.com","eightfold.ai","nvidia.eightfold.ai","paypal.eightfold.ai","bloomberg.avature.net","www.avature.net","www.csod.com","cornerstone.csod.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://nvidia.eightfold.ai/careers/job/893391708161","https://cornerstone.csod.com/ux/ats/careersite/2/home/requisition/11818?c=cornerstone","https://bloomberg.avature.net/careers/JobDetail/Senior-Software-Engineer-Electronic-Trading/46354"],"routes":[{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathPrefix":"/careers/job/","scanSegment":{"afterLiteral":"job","param":"jobId","charset":"slug","minLen":1,"maxLen":64}},"twin":{"fetchUrl":"https://{host}/api/pcsx/position_details?position_id={jobId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/position_details"],"queryParams":[{"name":"position_id","param":"jobId","charset":"slug","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_job_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"],"queryParams":[{"name":"domain","param":"domain","charset":"pkg","minLen":3,"maxLen":120}]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={domain}&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":true,"pathSegments":["careers"]},"twin":{"fetchUrl":"https://{host}/api/pcsx/search?domain={tenant}.com&query=&start=0","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}},{"match":{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"pathEquals":["/api/pcsx/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"eightfold_board_json"}}],"htmlRoutes":[{"id":"enterprise-ats-full","mode":"enterprise_ats_full_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"anyOf":[{"hostSubdomain":{"suffix":".eightfold.ai","param":"tenant","reserved":["www","api","login","auth","static"]},"exactSegments":false},{"hosts":["careers.phenom.com","www.phenom.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".avature.net","param":"tenant","reserved":["www","login","auth"]},"exactSegments":false},{"hosts":["www.avature.net"],"exactSegments":false},{"hostSubdomain":{"suffix":".csod.com","param":"tenant","reserved":["www","login","auth"]},"pathPrefix":"/ux/ats/careersite/","exactSegments":false},{"hosts":["www.csod.com"],"pathPrefix":"/ux/ats/careersite/","exactSegments":false}]}}]},{"id":"enterprise-ats","name":"SmartRecruiters, Oracle HCM Cloud & Jobvite","category":"jobs","description":"Keyless Oracle HCM Cloud recruitingCEJobRequisitions REST twin + robots.txt-safe SmartRecruiters and Jobvite HTML posting extractors.","domains":["jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com"],"exampleUrls":["https://jobs.smartrecruiters.com/Canva/6000000001554828-enterprise-security-manager-","https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1001/requisitions","https://jobs.jobvite.com/optimizely/job/oHG8efwt"],"routes":[{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"job","param":"reqId","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":false,"pathContainsSegment":"requisitions","pathSegments":["sites",{"param":"siteNumber","charset":"slug"}],"scanSegment":{"afterLiteral":"preview","param":"reqId","charset":"slug"}}]},"twin":{"id":"oracle-hcm-job","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitionDetails?onlyData=true&expand=all&finder=ById;Id=%22{reqId}%22,siteNumber={siteNumber}","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["Title"],"vars":{"jobTitle":{"paths":["Title"],"trim":true},"loc":{"paths":["PrimaryLocation"],"trim":true},"wp":{"paths":["WorkplaceType"],"trim":true},"posted":{"paths":["ExternalPostedStartDate"],"sliceMax":10,"trim":true},"extDesc":{"paths":["ExternalDescriptionStr"],"format":"html_to_md"},"extResp":{"paths":["ExternalResponsibilitiesStr"],"format":"html_to_md"},"extQual":{"paths":["ExternalQualificationsStr"],"format":"html_to_md"}},"titleTemplate":"{jobTitle}","publishedTimeVar":"posted","bullets":[{"label":"Requisition ID","template":"`{reqId}`"},{"label":"Primary Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Posted","template":"{posted}","whenVar":"posted"}],"bodyVar":"extDesc","sections":[{"heading":"Responsibilities","textVar":"extResp"},{"heading":"Qualifications","textVar":"extQual"}]}},{"match":{"anyOf":[{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"pathSuffix":"/requisitions/","scanSegment":{"afterLiteral":"sites","param":"siteNumber","charset":"slug"}},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience",{"param":"lang","charset":"pkg"},"sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["hcmUI","CandidateExperience","sites",{"param":"siteNumber","charset":"slug"}]},{"hosts":["*.fa.*oraclecloud.com"],"exactSegments":true,"pathSegments":["sites",{"param":"siteNumber","charset":"slug"}]}]},"twin":{"id":"oracle-hcm-board","fetchUrl":"https://{host}/hcmRestApi/resources/latest/recruitingCEJobRequisitions?onlyData=true&expand=requisitionList.secondaryLocations&finder=findReqs;siteNumber={siteNumber},limit=25","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","vars":{"reqCount":{"paths":["requisitionList"],"format":"array_len"},"total":{"paths":["TotalJobsCount"],"fallbackTemplate":"{reqCount}"}},"requireVars":["reqCount"],"titleTemplate":"Oracle HCM ({siteNumber}) — Open Requisitions ({total})","sections":[{"heading":"","arrayPath":"requisitionList","limit":50,"emptyText":"No open requisitions currently listed.","itemVars":{"id":{"paths":["Id"]},"rTitle":{"paths":["Title"],"trim":true,"default":"Requisition"},"rUrl":{"template":"https://{host}/hcmUI/CandidateExperience/en/sites/{siteNumber}/job/{id}"},"loc":{"paths":["PrimaryLocation"],"trim":true,"default":"-"},"wp":{"paths":["WorkplaceType"],"trim":true,"default":"-"},"posted":{"paths":["PostedDate"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["rUrl"],"columns":[{"header":"Requisition","template":"[{rTitle}]({rUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Posted","template":"{posted}"}]}]}}],"htmlRoutes":[{"id":"smartrecruiters","mode":"dom","match":{"hosts":["jobs.smartrecruiters.com"],"exactSegments":false,"minSegments":2,"pathSegments":[{"param":"org","charset":"pkg"}]},"jsonLdTypes":["JobPosting"],"vars":{"jobTitle":{"jsonLdPaths":["title"],"cssText":["h1.job-title"]},"company":{"jsonLdPaths":["hiringOrganization.name"],"fallbackTemplate":"{org}"},"body":{"cssHtmlToMd":["div[itemprop=\"description\"]","section#st-jobDescription"],"jsonLdPaths":["description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"body"},{"id":"jobvite","mode":"dom","match":{"hosts":["jobs.jobvite.com"],"exactSegments":false,"pathSegments":[{"param":"org","charset":"pkg"},"job",{"param":"jobId","charset":"pkg"}]},"vars":{"jobTitle":{"cssText":["h2.jv-header"]},"meta":{"cssText":["p.jv-job-detail-meta"]},"body":{"cssHtmlToMd":["div.jv-job-detail-description"]}},"requireVars":["jobTitle","body"],"titleTemplate":"{jobTitle} @ {org}","metaItalicTemplate":"{meta}","metaItalicWhenVar":"meta","bodyVar":"body"}]},{"id":"epa-envirofacts-echo","name":"EPA Envirofacts & ECHO","category":"research-health","description":"US EPA Envirofacts REST API (data.epa.gov/efservice), ECHO REST services, and echo.epa.gov HTML facility fallback with strict robots.txt politeness.","domains":["data.epa.gov","enviro.epa.gov","echo.epa.gov","echodata.epa.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://data.epa.gov/efservice/tri_facility/state_abbr/DC/rows/0:2/JSON","https://echo.epa.gov/detailed-facility-report?fid=110000350174"],"routes":[{"match":{"hosts":["data.epa.gov"],"pathPrefix":"/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["enviro.epa.gov"],"pathPrefix":"/enviro/efservice/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}},{"match":{"hosts":["echodata.epa.gov"],"pathPrefix":"/echo/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"epa_envirofacts_json"}}],"htmlRoutes":[{"id":"epa-envirofacts-echo","match":{"hosts":["echo.epa.gov"],"exactSegments":false},"mode":"epa_echo_html"}]},{"id":"epa-fueleconomy","name":"EPA FuelEconomy.gov","category":"public-records","description":"U.S. DOE/EPA FuelEconomy.gov /ws/rest/ JSON API adapter for vehicle MPG, range, CO2, and make/model/year menus.","domains":["fueleconomy.gov","www.fueleconomy.gov"],"auth_mode":"pub","exampleUrls":["https://www.fueleconomy.gov/ws/rest/vehicle/41276","https://www.fueleconomy.gov/ws/rest/vehicle/menu/make?year=2024"],"routes":[{"match":{"pathPrefix":"/ws/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"fueleconomy_json"}}]},{"id":"etsy","name":"Etsy Open API v3","category":"commerce-social","description":"Extracts Etsy listing title, converted price, SKU, quantity, state, and shop search results via the official Etsy Open API v3.","domains":["etsy.com","www.etsy.com","openapi.etsy.com"],"auth_mode":"key","exampleUrls":["https://www.etsy.com/listing/134000134/walnut-desk-tray","https://openapi.etsy.com/v3/application/listings/134000134"],"routes":[{"match":{"hosts":["etsy.com","www.etsy.com"],"exactSegments":false,"pathSegments":["listing",{"param":"listingId","charset":"digits","minLen":5,"maxLen":16}]},"twin":{"fetchUrl":"https://openapi.etsy.com/v3/application/listings/{listingId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}},{"match":{"hosts":["openapi.etsy.com"],"pathPrefix":"/v3/application/listings"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"etsy_json"}}]},{"id":"eur-lex","name":"EUR-Lex","category":"public-records","description":"Upgrades eur-lex.europa.eu/legal-content//TXT/?uri=* pages to the static /TXT/HTML/?uri=* twin while respecting robots.txt Crawl-delay and never touching disallowed /TXT/DOC/.","domains":["eur-lex.europa.eu"],"exampleUrls":["https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32016R0679"],"match":{"exactSegments":true,"pathSegments":["legal-content",{"param":"lang","charset":"alnum","minLen":2,"maxLen":3,"transform":"upper"},"TXT"],"queryParams":[{"name":"uri","param":"uri","charset":"safe_subpath","minLen":3,"maxLen":200}]},"twin":{"fetchUrl":"https://eur-lex.europa.eu/legal-content/{lang}/TXT/HTML/?uri={uri}","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"EUR-Lex {uri} ({lang})"}},{"id":"eventbrite","name":"Eventbrite Events","category":"commerce-social","description":"Extracts Eventbrite event details via the official Eventbrite v3 API when configured, with Event/Festival JSON-LD and __NEXT_DATA__ HTML fallback.","domains":["eventbrite.com","www.eventbrite.com","www.eventbriteapi.com"],"auth_mode":"key","exampleUrls":["https://www.eventbrite.com/e/music-mimosa-festival-fall-edition-tickets-2004426596909","https://www.eventbriteapi.com/v3/events/2004426596909/"],"routes":[{"match":{"hosts":["www.eventbriteapi.com"],"pathPrefix":"/v3/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}},{"match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":true,"pathSegments":["e",{"param":"eventId","charset":"digits","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://www.eventbriteapi.com/v3/events/{eventId}/","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"eventbrite_json"}}],"htmlRoutes":[{"id":"eventbrite","match":{"hosts":["eventbrite.com","www.eventbrite.com"],"exactSegments":false},"mode":"eventbrite_html"}]},{"id":"everycrsreport","name":"EveryCRSReport Archive","category":"public-records","description":"Extracts Congressional Research Service reports from EveryCRSReport JSON metadata, /reports/{id}.html JSON twins, and bounded /reports.csv index.","domains":["www.everycrsreport.com","everycrsreport.com"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.everycrsreport.com/reports/IN11532.json","https://www.everycrsreport.com/reports/IN11532.html","https://www.everycrsreport.com/reports.csv"],"routes":[{"match":{"exactSegments":true,"pathSuffix":".json","pathSegments":["reports",{"param":"reportId","charset":"alnum_dash","stripSuffix":".json","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"everycrs_json"}},{"match":{"exactSegments":true,"pathSuffix":".html","pathSegments":["reports",{"param":"reportId","charset":"alnum_dash","stripSuffix":".html","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"https://{host}/reports/{reportId}.json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"everycrs_json"}},{"match":{"exactSegments":true,"pathEquals":["/reports.csv"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"everycrs_csv"}}],"htmlRoutes":[{"id":"everycrsreport","match":{"exactSegments":false},"mode":"everycrs_html"}]},{"id":"faa-registry","name":"FAA Aircraft Registry","category":"public-records","description":"FAA Civil Aviation Registry HTML extractor for N-Number lookups (/aircraftinquiry/Search/NNumberResult); note origin Akamai may return 403 to non-browser bot UAs.","domains":["registry.faa.gov"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=N101"],"htmlRoutes":[{"id":"faa-registry","match":{"hosts":["registry.faa.gov"],"pathPrefix":"/aircraftinquiry/search/","excludeSegmentSuffixes":[".asp"],"exactSegments":false},"mode":"faa_registry_html"}]},{"id":"fcc-ecfs","name":"FCC Electronic Comment Filing System (ECFS)","category":"public-records","description":"Extracts FCC Electronic Comment Filing System (ECFS) filings, proceedings, filers, and comment text via publicapi.fcc.gov/ecfs/ (api.data.gov key) with HTML fallback on www.fcc.gov/ecfs/.","domains":["publicapi.fcc.gov","www.fcc.gov","fcc.gov"],"auth_mode":"key","exampleUrls":["https://publicapi.fcc.gov/ecfs/filings?limit=2","https://www.fcc.gov/ecfs/search/search-filings"],"routes":[{"match":{"hosts":["publicapi.fcc.gov"],"pathPrefix":"/ecfs/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"fcc_ecfs_json"}}],"htmlRoutes":[{"id":"fcc-ecfs","match":{"hosts":["www.fcc.gov","fcc.gov"],"pathPrefix":"/ecfs"},"mode":"fcc_ecfs_html"}]},{"id":"fcc-id","name":"FCC ID Equipment Authorization","category":"public-records","description":"Extracts FCC ID grant metadata, technical frequency/power tables, and exhibit PDF links from fccid.io public HTML pages while respecting robots.txt disallows.","domains":["fccid.io","www.fccid.io"],"exampleUrls":["https://fccid.io/BCG-E3542A"],"htmlRoutes":[{"id":"fcc-id","mode":"dom","match":{"exactSegments":false,"reservedFirstSegment":["ViewExhibitReport.cfm","subscribe.php","frequency","search","api"],"pathSegments":[{"param":"grantee","charset":"url_seg","minLen":2,"maxLen":64},{"param":"product","charset":"url_seg","optional":true,"minLen":1,"maxLen":120}]},"vars":{"title":{"cssText":["h1","title"],"metaKeys":["og:title"],"trim":true},"summary":{"cssText":["main p","article p"],"minLen":20,"sliceMax":400,"trim":true}},"requireVars":["title","summary"],"titleTemplate":"{title}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"FCC ID","template":"`{grantee}`"}],"appendCurrentMdDelta":{"minExtraChars":0}}]},{"id":"fcc-uls","name":"FCC Universal Licensing System (ULS)","category":"public-records","description":"Extracts FCC Universal Licensing System (ULS) Socrata datasets and catalog records on opendata.fcc.gov, legacy License View JSON on data.fcc.gov, and wireless2.fcc.gov HTML pages.","domains":["opendata.fcc.gov","data.fcc.gov","wireless2.fcc.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2","https://opendata.fcc.gov/api/catalog/v1?q=ULS&limit=3","https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json"],"routes":[{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/resource/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/api/views/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["opendata.fcc.gov"],"pathPrefix":"/api/catalog/v1"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}},{"match":{"hosts":["data.fcc.gov"],"pathPrefix":"/api/license-view/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fcc_uls_json"}}],"htmlRoutes":[{"id":"fcc-uls","match":{"hosts":["wireless2.fcc.gov","opendata.fcc.gov","data.fcc.gov"],"exactSegments":false},"mode":"fcc_uls_html"}]},{"id":"fdic-bankfind","name":"FDIC BankFind Suite","category":"finance","description":"Extracts insured institution profiles and failed bank lists directly from api.fdic.gov/banks/ (avoiding banks.data.fdic.gov/api 301 redirects) with 1 req/s politeness and SPA shell rejection.","domains":["banks.data.fdic.gov","api.fdic.gov","www.fdic.gov","fdic.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://api.fdic.gov/banks/institutions?filters=CERT:3511&limit=1","https://www.fdic.gov/resources/resolutions/bank-failures/","https://api.fdic.gov/banks/failures?limit=1"],"routes":[{"match":{"hosts":["api.fdic.gov"],"pathPrefix":"/banks/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["banks.data.fdic.gov"],"exactSegments":false,"pathSegments":["api",{"param":"endpoint","charset":"url_seg","minLen":2,"maxLen":64}]},"twin":{"fetchUrl":"https://api.fdic.gov/banks/{endpoint}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}},{"match":{"hosts":["www.fdic.gov","fdic.gov"],"pathPrefix":"/resources/resolutions/bank-failures"},"twin":{"fetchUrl":"https://api.fdic.gov/banks/failures?sort_by=FAILDATE&sort_order=DESC&limit=25","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"fdic_bankfind_json"}}],"htmlRoutes":[{"id":"fdic-bankfind","match":{"hosts":["banks.data.fdic.gov","www.fdic.gov","fdic.gov"],"exactSegments":false},"mode":"fdic_bankfind_html"}]},{"id":"fec","name":"FEC Campaign Finance","category":"public-records","description":"Upgrades fec.gov candidate and committee pages to official OpenFEC API v1 JSON summaries via api.data.gov key helper with HTML fallback.","domains":["www.fec.gov","fec.gov","api.open.fec.gov"],"auth_mode":"key","exampleUrls":["https://www.fec.gov/data/candidate/S8FL00216/","https://api.open.fec.gov/v1/candidate/S8FL00216/"],"routes":[{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","candidate",{"param":"candId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/candidate/{candId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false,"pathSegments":["data","committee",{"param":"commId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://api.open.fec.gov/v1/committee/{commId}/","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}},{"match":{"hosts":["api.open.fec.gov"],"pathPrefix":"/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fec_json"}}],"htmlRoutes":[{"id":"fec","match":{"hosts":["www.fec.gov","fec.gov"],"exactSegments":false},"mode":"fec_html"}]},{"id":"federal-register","name":"Federal Register","category":"public-records","description":"Upgrades federalregister.gov/documents///
//* pages to the official /api/v1/documents/.json twin (strictly excluding disallowed /documents/current).","domains":["www.federalregister.gov","federalregister.gov"],"exampleUrls":["https://www.federalregister.gov/documents/2024/05/07/2024-09171/non-compete-clause-rule"],"match":{"exactSegments":false,"pathSegments":["documents",{"param":"yyyy","charset":"digits","minLen":4,"maxLen":4},{"param":"mm","charset":"digits","minLen":2,"maxLen":2},{"param":"dd","charset":"digits","minLen":2,"maxLen":2},{"param":"docNumber","charset":"alnum_dash","minLen":3,"maxLen":64}]},"twin":{"fetchUrl":"https://www.federalregister.gov/api/v1/documents/{docNumber}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title","document_number"],"vars":{"title":{"paths":["title"],"trim":true},"docNumber":{"paths":["document_number"]},"docType":{"paths":["type"]},"citation":{"paths":["citation"]},"pubDate":{"paths":["publication_date"]},"urlDate":{"template":"{yyyy}-{mm}-{dd}"},"pubDateMatchesUrl":{"paths":["publication_date"],"equalsVar":"urlDate"},"effectiveOn":{"paths":["effective_on"]},"dates":{"paths":["dates"],"trim":true},"action":{"paths":["action"],"trim":true},"agencies":{"paths":["agencies"],"subField":"name","join":", ","limit":12},"cfrRefs":{"paths":["cfr_references"],"subFieldsJoin":{"fields":["title","part"],"sep":" CFR Part ","fallbackField":"title"},"join":"; ","limit":20},"dockets":{"paths":["docket_ids"],"join":", ","limit":12},"abstract":{"paths":["abstract"],"trim":true},"abstractShort":{"paths":["abstract"],"trim":true,"sliceMax":260},"pdfUrl":{"paths":["pdf_url"],"requireHttps":true},"bodyHtmlUrl":{"paths":["body_html_url"],"requireHttps":true},"xmlUrl":{"paths":["full_text_xml_url"],"requireHttps":true},"htmlUrl":{"paths":["html_url"],"requireHttps":true}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"agencies","publishedTimeVar":"pubDate","bullets":[{"label":"Document Number","template":"`{docNumber}`"},{"label":"Type","template":"{docType}","whenVar":"docType"},{"label":"Citation","template":"{citation}","whenVar":"citation"},{"label":"Agencies","template":"{agencies}","whenVar":"agencies"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Warning","template":"Publication date {pubDate} does not match the URL date {urlDate}; the URL may point to a different document than its date suggests.","whenVar":"pubDate","unlessVar":"pubDateMatchesUrl"},{"label":"Effective On","template":"{effectiveOn}","whenVar":"effectiveOn"},{"label":"Dates","template":"{dates}","whenVar":"dates"},{"label":"Action","template":"{action}","whenVar":"action"},{"label":"CFR References","template":"{cfrRefs}","whenVar":"cfrRefs"},{"label":"Docket IDs","template":"{dockets}","whenVar":"dockets"},{"label":"PDF","template":"{pdfUrl}","whenVar":"pdfUrl"},{"label":"Body HTML","template":"{bodyHtmlUrl}","whenVar":"bodyHtmlUrl"},{"label":"Full Text XML","template":"{xmlUrl}","whenVar":"xmlUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"},{"heading":"CFR References","arrayPath":"cfr_references","limit":25,"columns":[{"header":"Title","paths":["title"]},{"header":"Part","paths":["part"]},{"header":"Chapter","paths":["chapter"]}]}],"linksVars":["pdfUrl","htmlUrl","bodyHtmlUrl","xmlUrl"]}},{"id":"fediverse-pack","name":"Fediverse Pack (Misskey, Kbin, Mbin)","category":"commerce-social","description":"Extracts Misskey notes via POST /api/notes/show JSON and Kbin/Mbin threads via ActivityPub JSON or SSR HTML while rejecting Anubis proof-of-work and /login gates.","domains":["kbin.earth","gehirneimer.de","misskey.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://misskey.io/notes/au4n1wud00cl0t3s","https://kbin.earth/m/news@lemmy.world/t/3423982/Iran-reportedly-used-Starlink-in-military-operations-against-U-S"],"routes":[{"match":{"exactSegments":true,"pathSegments":["notes",{"param":"noteId","charset":"alnum","minLen":8,"maxLen":24}]},"twin":{"fetchUrl":"https://{host}/api/notes/show","method":"POST","contentType":"application/json","requestBody":"{\"noteId\":\"{noteId}\"}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":true,"pathSegments":["api","notes","show"]},"twin":{"fetchUrl":"{requestUrl}","method":"POST","contentType":"application/json","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}},{"match":{"exactSegments":false,"pathSegments":["m",{"param":"mag","charset":"brew_id","minLen":1,"maxLen":120},"t",{"param":"threadId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/activity+json","maxBytes":1048576},"extract":{"jsonMode":"fediverse_pack_json"}}],"htmlRoutes":[{"id":"fediverse-pack","match":{"exactSegments":false},"mode":"fediverse_pack_html"}]},{"id":"fema-openfema","name":"FEMA OpenFEMA API v2","category":"public-records","description":"FEMA OpenFEMA v2 JSON dataset API (DisasterDeclarationsSummaries and public datasets) honoring strict robots.txt 15s crawl-delay.","domains":["www.fema.gov","fema.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":15000,"exampleUrls":["https://www.fema.gov/api/open/v2/DisasterDeclarationsSummaries?%24top=2"],"routes":[{"match":{"hosts":["www.fema.gov","fema.gov"],"pathPrefix":"/api/open/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"fema_openfema_json"}}]},{"id":"ferc-nrc-dockets","name":"FERC eLibrary & NRC ADAMS Dockets","category":"public-records","description":"Extracts public FERC eLibrary and NRC ADAMS docket/document pages while strictly honoring robots.txt and rejecting Cloudflare challenges and unhydrated Angular shells.","domains":["elibrary.ferc.gov","www.ferc.gov","ferc.gov","adams.nrc.gov","adams-search.nrc.gov","www.nrc.gov","nrc.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.nrc.gov/documents-reports/adams-public-documents","https://elibrary.ferc.gov/eLibrary/search","https://adams-search.nrc.gov/"],"htmlRoutes":[{"id":"ferc-nrc-dockets","match":{"exactSegments":false},"mode":"ferc_nrc_dockets_html"}]},{"id":"finalsite","name":"Finalsite K-12 & Independent Schools","category":"public-records","description":"Extracts Finalsite K-12 school and independent school calendar events, news announcements, and resource blocks from /fs/ and fsElement DOM.","domains":["www.finalsite.com","finalsite.com","www.greenwichschools.org","www.choate.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":5000,"exampleUrls":["https://www.greenwichschools.org/calendar","https://www.choate.edu/"],"htmlRoutes":[{"id":"finalsite","match":{"exactSegments":false},"mode":"finalsite_html"}]},{"id":"financial-regulators-enforcement","name":"CFTC, OCC & FinCEN Enforcement & Bulletins","category":"finance","description":"Extracts enforcement actions, press releases, bulletins, and advisories from CFTC, OCC (including occ_news.xml RSS), and FinCEN.","domains":["www.cftc.gov","cftc.gov","www.occ.gov","occ.gov","www.fincen.gov","fincen.gov"],"auth_mode":"pub","exampleUrls":["https://www.cftc.gov/PressRoom/PressReleases/9331-26","https://www.occ.gov/news-issuances/bulletins/2023/bulletin-2023-17.html","https://www.occ.gov/rss/occ_news.xml","https://www.fincen.gov/news"],"routes":[{"match":{"hosts":["www.occ.gov","occ.gov"],"pathEquals":["/rss/occ_news.xml"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Release"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"financial-regulators-enforcement"},"columns":[{"header":"Title","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"financial-regulators-enforcement","match":{"exactSegments":false},"mode":"financial_regulators_html"}]},{"id":"finra-brokercheck","name":"FINRA BrokerCheck","category":"finance","description":"Extracts FINRA BrokerCheck individual broker and firm registration, employment, exam, and disclosure records via same-eTLD+1 api.brokercheck.finra.org.","domains":["brokercheck.finra.org","api.brokercheck.finra.org"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://brokercheck.finra.org/individual/summary/810315","https://brokercheck.finra.org/firm/summary/79","https://api.brokercheck.finra.org/search/firm/79"],"routes":[{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["individual","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/individual/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["brokercheck.finra.org"],"pathSegments":["firm","summary",{"param":"crd","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://api.brokercheck.finra.org/search/firm/{crd}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}},{"match":{"hosts":["api.brokercheck.finra.org"],"pathPrefix":"/search/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"finra_brokercheck_json"}}],"htmlRoutes":[{"id":"finra-brokercheck","match":{"hosts":["brokercheck.finra.org"]},"mode":"finra_brokercheck_html"}]},{"id":"fmcsa-safer","name":"FMCSA SAFER Carrier Registry","category":"public-records","description":"FMCSA QCMobile REST API (webKey) adapter for USDOT/MC carrier lookups with safer.fmcsa.dot.gov Company Snapshot HTML fallback.","domains":["safer.fmcsa.dot.gov","mobile.fmcsa.dot.gov"],"auth_mode":"key","exampleUrls":["https://mobile.fmcsa.dot.gov/qc/services/carriers/44110","https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=44110"],"routes":[{"match":{"hosts":["mobile.fmcsa.dot.gov"],"pathPrefix":"/qc/services/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}},{"match":{"hosts":["safer.fmcsa.dot.gov"],"pathEquals":["/query.asp"],"queryParams":[{"name":"query_param","param":"queryParam","allowValues":["USDOT"]},{"name":"query_string","param":"dotNumber","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mobile.fmcsa.dot.gov/qc/services/carriers/{dotNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fmcsa_safer_json"}}],"htmlRoutes":[{"id":"fmcsa-safer","match":{"hosts":["safer.fmcsa.dot.gov"],"exactSegments":false},"mode":"fmcsa_safer_html"}]},{"id":"foursquare-places","name":"Foursquare Places API v3","category":"commerce-social","description":"Extracts place search results, venue details, and tips from the official Foursquare Places API v3 (api.foursquare.com).","domains":["api.foursquare.com"],"auth_mode":"key","exampleUrls":["https://api.foursquare.com/v3/places/search?query=coffee&near=Seattle","https://api.foursquare.com/v3/places/4b86a9f7f964a520d69331e3"],"routes":[{"match":{"hosts":["api.foursquare.com"],"anyOf":[{"pathEquals":["/v3/places/search"]},{"pathPrefix":"/v3/places/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"foursquare_places_json"}}]},{"id":"fpds-sam-contract-awards","name":"FPDS & SAM.gov Contract Awards","category":"public-records","description":"Extracts keyless FPDS Atom XML contract award feeds (FEEDNAME=PUBLIC) and key-authenticated api.sam.gov/contract-awards JSON without colliding with sam-gov.","domains":["fpds.gov","www.fpds.gov"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q=LAST_MOD_DATE:[2026/06/25,2026/06/26]","https://api.sam.gov/contract-awards/v1/search?limit=1"],"routes":[{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/FEEDS/ATOM"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"FEEDNAME":"PUBLIC"},"kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"q","param":"q","charset":"safe_subpath","minLen":1,"maxLen":240}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&q={q}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["fpds.gov","www.fpds.gov"],"pathEquals":["/ezsearch/search.do"],"queryParams":[{"name":"s","param":"s","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.fpds.gov/ezsearch/FEEDS/ATOM?FEEDNAME=PUBLIC&s={s}","kind":"text","accept":"application/atom+xml","auth_mode":"pub","maxBytes":4194304},"extract":{"textMode":"fpds_atom_xml"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/contract-awards"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"fpds_sam_awards_json"}}],"htmlRoutes":[{"id":"fpds-sam-contract-awards","match":{"hosts":["fpds.gov","www.fpds.gov"],"exactSegments":false},"mode":"fpds_sam_awards_html"}]},{"id":"fred","name":"FRED Economic Data","category":"finance","description":"Federal Reserve Economic Data (FRED) API v1 JSON observations/series adapter with stlouisfed.org HTML series fallback.","domains":["fred.stlouisfed.org","api.stlouisfed.org"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://fred.stlouisfed.org/series/GDP","https://api.stlouisfed.org/fred/series/observations?series_id=GDP&file_type=json","https://api.stlouisfed.org/fred/series?series_id=GDP&file_type=json"],"routes":[{"match":{"hosts":["api.stlouisfed.org"],"exactSegments":false,"pathPrefix":"/fred/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"file_type":"json"},"kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}},{"match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.stlouisfed.org/fred/series/observations?series_id={seriesId}&file_type=json&limit=25&sort_order=desc","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"fred_json"}}],"htmlRoutes":[{"id":"fred","match":{"hosts":["fred.stlouisfed.org"],"exactSegments":false,"pathSegments":["series",{"param":"seriesId","charset":"alnum_dash","minLen":1,"maxLen":64}]},"mode":"fred_html"}]},{"id":"freshdesk-portal","name":"Freshdesk Support Portal","category":"developer","description":"Extracts Freshdesk support portal articles, folders, and categories from public knowledge base HTML.","domains":["support.freshdesk.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.freshdesk.com/support/solutions/articles/240170-setting-up-your-support-email-in-gmail-video-guide","https://support.freshdesk.com/support/solutions/folders/275395"],"htmlRoutes":[{"id":"freshdesk-portal","match":{"exactSegments":false},"mode":"freshdesk_portal_html"}]},{"id":"ftc-cases","name":"FTC Cases, Proceedings & Early Termination Notices","category":"public-records","description":"Extracts FTC Legal Library cases, proceedings, matter numbers, and Hart-Scott-Rodino early termination notices while honoring FTC Crawl-delay: 5.","domains":["www.ftc.gov","ftc.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":5000,"max_concurrent":1,"exampleUrls":["https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors","https://www.ftc.gov/legal-library/browse/cases-proceedings","https://www.ftc.gov/legal-library/browse/early-termination-notices"],"htmlRoutes":[{"id":"ftc-cases","match":{"exactSegments":false},"mode":"ftc_cases_html"}]},{"id":"gannett-usatoday-network","name":"Gannett / USA TODAY Network","category":"commerce-social","description":"Extracts NewsArticle JSON-LD and Gannett story content across USA TODAY and Gannett regional newspapers while rejecting Access Restricted gates.","domains":["www.usatoday.com","usatoday.com","www.azcentral.com","www.freep.com","www.indystar.com","www.cincinnati.com","www.dispatch.com","www.detroitnews.com","www.jsonline.com","www.tennessean.com","www.courier-journal.com"],"auth_mode":"html","exampleUrls":["https://www.usatoday.com/"],"htmlRoutes":[{"id":"gannett-usatoday-network","match":{"exactSegments":false},"mode":"gannett_usatoday_html"}]},{"id":"gao-reports","name":"U.S. GAO Reports & Testimonies","category":"public-records","description":"Extracts U.S. Government Accountability Office RSS report feeds and product detail pages while honoring strict_robots and rejecting Akamai Access Denied shells.","domains":["www.gao.gov","gao.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.gao.gov/products/gao-27-108423","https://www.gao.gov/rss/reports.xml"],"routes":[{"match":{"pathPrefix":"/rss/","pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":1048576},"extract":{"textMode":"gao_rss_xml"}}],"htmlRoutes":[{"id":"gao-reports","match":{"exactSegments":false},"mode":"gao_reports_html"}]},{"id":"gem-ats","name":"Gem Job Boards","category":"jobs","description":"Upgrades jobs.gem.com/ boards and job posts to the keyless api.gem.com/job_board/v0//job_posts/ JSON feed.","domains":["jobs.gem.com"],"exampleUrls":["https://jobs.gem.com/gem"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"postId","charset":"pkg"}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","findInArray":{"arrayPath":"posts","matchFields":["id","public_id"],"matchTemplate":"{postId}","endsWithField":"absolute_url","endsWithTemplate":"/{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name","location_type"],"trim":true},"depts":{"paths":["departments"],"subField":"name","join":", "},"bodyHtml":{"paths":["content"],"format":"html_to_md"},"bodyPlain":{"paths":["content_plain"],"format":"plain_text","trim":true},"body":{"template":"{bodyHtml}","whenVars":["bodyHtml"],"fallbackVar":"bodyPlain"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Department","template":"{depts}","whenVar":"depts"}],"bodyVar":"body","fallbackExtract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80}]},"twin":{"id":"gem-ats","fetchUrl":"https://api.gem.com/job_board/v0/{org}/job_posts/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"posts","vars":{"count":{"paths":["posts"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Gem Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"posts","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://jobs.gem.com/{org}/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["location_type"],"trim":true,"default":"-"},"created":{"paths":["first_published_at","created_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Published","template":"{created}"}]}]}}]},{"id":"giant-liv-bikes","name":"Giant & Liv Bicycles Specs & Manuals","category":"commerce-social","description":"Extracts bike specifications, geometry GFM tables, and owner manual PDF links from Giant and Liv regional HTML pages while respecting Crawl-delay and never hitting /shop*, /comparison*, /account*, or /apiproxy/*.","domains":["www.giant-bicycles.com","*.giant-bicycles.com","giant-bicycles.com","www.liv-cycling.com","*.liv-cycling.com","liv-cycling.com"],"exampleUrls":["https://www.giant-bicycles.com/us/defy-advanced-pro-0","https://www.liv-cycling.com/us/avail-advanced-pro-0","https://www.giant-bicycles.com/us/manuals"],"htmlRoutes":[{"id":"giant-liv-bikes","mode":"giant_liv_html","match":{"exactSegments":false,"excludeSegmentSuffixes":[".xml",".json"],"anyOf":[{"exactSegments":false,"optionalLeadingLocale":true,"reservedFirstSegment":["shop","comparison","account","apiproxy","int","global"]},{"exactSegments":false,"pathSegments":[{"param":"locale3","allowValues":["int","global"]},{"param":"seg1","charset":"url_seg","minLen":1,"maxLen":160,"reserved":["shop","comparison","account","apiproxy"]}]}]}}]},{"id":"github-gist","name":"GitHub Gists","category":"developer","description":"Extracts multi-file GitHub Gist code blocks with fenced language tags and rendered Markdown.","domains":["gist.github.com"],"exampleUrls":["https://gist.github.com/octocat/6cad326836d38bd3a7ae"],"htmlRoutes":[{"match":{"minSegments":2},"mode":"gist_files"}]},{"id":"gitlab-forgejo","name":"GitLab, Codeberg & Forgejo Twins","category":"developer","description":"Upgrades GitLab repo roots and file blobs via robots.txt-allowed ?format=json&viewer=simple endpoints, and extracts clean README content from Codeberg/Gitea SSR repo pages.","domains":["gitlab.com","gitlab.*","codeberg.org","gitea.com"],"exampleUrls":["https://gitlab.com/gitlab-org/cli","https://gitlab.com/inkscape/inkscape/-/blob/master/CMakeLists.txt","https://codeberg.org/forgejo/forgejo"],"routes":[{"match":{"hosts":["gitlab.com","gitlab.*"],"splitOnSegment":{"delimiter":"-","leftParam":"nsProj","leftMinSegs":2,"afterLiteral":"blob","rightParam":"rawTail","tailParam":"filePath"}},"twin":{"id":"gitlab-blob-json","fetchUrl":"https://{host}/{nsProj}/-/blob/{rawTail}?format=json&viewer=simple","rawPathParams":["nsProj","rawTail"],"kind":"json","accept":"application/json"},"extract":{"vars":{"plain":{"paths":["html"],"format":"gitlab_blob_html"}},"requireVars":["plain"],"titleTemplate":"{nsProj}/{filePath}","codeByPath":{"sourceVar":"plain","pathParam":"filePath","rawIfMarkdown":true}}},{"match":{"hosts":["gitlab.com","gitlab.*"],"minSegments":2,"maxSegments":5,"allSegmentsCharset":"pkg","reservedFirstSegment":["explore","groups","users","dashboard","help","topics","orgs","admin","search","abuse_reports","oauth","snippets","-"],"excludeSegmentSuffixes":[".git",".atom"]},"twin":{"id":"gitlab-readme-json","fetchUrl":"https://{host}/{joinedPath}/-/blob/HEAD/README.md?format=json&viewer=simple","rawPathParams":["joinedPath"],"kind":"json","accept":"application/json"},"extract":{"vars":{"readme":{"paths":["html"],"format":"gitlab_blob_html","trim":true}},"requireVars":["readme"],"titleTemplate":"{joinedPath}","bodyVar":"readme"}}],"htmlRoutes":[{"match":{"hosts":["codeberg.org","gitea.com"],"exactSegments":true,"pathSegments":[{"param":"owner","charset":"pkg"},{"param":"repo","charset":"pkg"}]},"mode":"dom","vars":{"desc":{"metaKeys":["og:description","description"]},"readme":{"cssHtmlToMd":["div.markup"],"minLen":40}},"requireVars":["readme"],"titleTemplate":"{owner}/{repo}","descriptionVar":"desc","blockquoteTemplate":"> **{owner}/{repo}** — {desc}","blockquoteWhenVar":"desc","bodyVar":"readme","preserveBodyLinksFromVar":"readme"}]},{"id":"google-my-maps-kml","name":"Google My Maps KML","category":"commerce-social","description":"Upgrades public Google My Maps /maps/d/ viewer, embed, and KML links to bounded KML placemark extraction with validated coordinates.","domains":["google.com","www.google.com","maps.google.com"],"auth_mode":"pub","exampleUrls":["https://www.google.com/maps/d/viewer?mid=1Mdlz2iXu_iZCPhUhzKvT2B2j-6E"],"routes":[{"match":{"anyOf":[{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d",{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]},{"hosts":["google.com","www.google.com","maps.google.com"],"pathSegments":["maps","d","u",{"param":"userIdx","charset":"digits","minLen":1,"maxLen":4},{"param":"view","allowValues":["viewer","embed","edit","kml"]}],"queryParams":[{"name":"mid","param":"mid","charset":"alnum_dash","minLen":12,"maxLen":64}]}]},"twin":{"fetchUrl":"https://www.google.com/maps/d/kml?mid={mid}&forcekml=1","kind":"text","accept":"application/xml"},"extract":{"textMode":"kml_placemarks"}}]},{"id":"google-places","name":"Google Places API (New)","category":"commerce-social","description":"Extracts place details and text/nearby search results from the official Google Places API (New) with required X-Goog-Api-Key and X-Goog-FieldMask headers.","domains":["developers.google.com"],"universalEngine":true,"auth_mode":"key","exampleUrls":["https://places.googleapis.com/v1/places/ChIJj61dQgK6j4AR4GeTYWZsKWw","https://places.googleapis.com/v1/places:searchText?textQuery=coffee"],"routes":[{"match":{"hosts":["places.googleapis.com"],"anyOf":[{"pathEquals":["/v1/places:searchText","/v1/places:searchNearby"]}],"queryParams":[{"name":"textQuery","param":"textQuery","charset":"url_seg","maxLen":120,"optional":true,"default":"coffee"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"textQuery\":\"{textQuery}\"}","headers":{"X-Goog-FieldMask":"places.id,places.displayName,places.formattedAddress,places.rating,places.userRatingCount,places.websiteUri,places.nationalPhoneNumber,places.googleMapsUri,places.primaryType,places.businessStatus,places.priceLevel"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}},{"match":{"hosts":["places.googleapis.com"],"pathPrefix":"/v1/places/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"X-Goog-FieldMask":"id,displayName,formattedAddress,rating,userRatingCount,websiteUri,nationalPhoneNumber,googleMapsUri,primaryType,businessStatus,priceLevel,regularOpeningHours"},"maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"google_places_json"}}]},{"id":"google-play","name":"Google Play Store","category":"developer","description":"Extracts structured Google Play app metadata (package ID, developer, rating, downloads/reviews, category, price, and full description).","domains":["play.google.com"],"exampleUrls":["https://play.google.com/store/apps/details?id=com.cloudflare.onedotonedotonedotone"],"htmlRoutes":[{"match":{"pathPrefix":"/store/apps/details","queryParams":[{"name":"id","param":"pkgId","charset":"pkg","optional":true}]},"mode":"dom","jsonLdTypes":["SoftwareApplication","MobileApplication"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*-\\s*Apps on Google Play$"},"developer":{"jsonLdPaths":["author.name"]},"ratingVal":{"jsonLdPaths":["aggregateRating.ratingValue"]},"ratingCount":{"jsonLdPaths":["aggregateRating.ratingCount","aggregateRating.reviewCount"]},"ratingOnly":{"template":"{ratingVal} / 5","whenVars":["ratingVal"]},"rating":{"template":"{ratingVal} / 5 ({ratingCount} reviews)","whenVars":["ratingVal","ratingCount"],"fallbackVar":"ratingOnly"},"currency":{"jsonLdPaths":["offers.0.priceCurrency","offers.priceCurrency"],"default":"USD"},"price":{"jsonLdPaths":["offers.0.price","offers.price"],"format":"free_or_currency","currencyVar":"currency"},"category":{"jsonLdPaths":["applicationCategory"]},"contentRating":{"jsonLdPaths":["contentRating"]},"desc":{"jsonLdPaths":["description"],"metaKeys":["description"]},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260}},"requireVars":["title"],"requireBulletsOrVars":["desc"],"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"developer","bullets":[{"label":"Package ID","template":"`{pkgId}`","whenVar":"pkgId"},{"label":"Developer","template":"{developer}","whenVar":"developer"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rating","template":"{rating}","whenVar":"rating"},{"label":"Price","template":"{price}","whenVar":"price"},{"label":"Content Rating","template":"{contentRating}","whenVar":"contentRating"}],"sections":[{"heading":"About This App","textVar":"desc"}]}]},{"id":"google-shopping-feed","name":"Google Shopping Merchant Center XML/Atom Feed","category":"commerce-social","description":"Universal XML/Atom parser for Google Merchant Center RSS 2.0 and Atom 1.0 product feeds with strict GTIN validation and compact records.","domains":["btrsports.co.uk"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://raw.githubusercontent.com/web3at50/btr-feed/main/affiliate-feed.xml"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/google-merchant.xml","/google-shopping.xml","/merchant-feed.xml","/product-feed.xml","/shopping-feed.xml"]},{"pathPrefix":"/feeds/","pathSuffix":".xml"},{"pathPrefix":"/feeds/","pathSuffix":".atom"},{"pathPrefix":"/feeds/","pathSuffix":".rss"},{"pathContainsSegment":"google-merchant","pathSuffix":".xml"},{"pathContainsSegment":"google-shopping","pathSuffix":".xml"},{"hosts":["raw.githubusercontent.com"],"pathEquals":["/web3at50/btr-feed/main/affiliate-feed.xml"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","maxBytes":4194304},"extract":{"textMode":"google_shopping_feed_xml"}}]},{"id":"gorgias-reamaze","name":"Gorgias & Re:amaze Help Centers","category":"commerce-social","description":"Extracts help-center articles, topic indexes, and Q&A content from Gorgias (__NEXT_DATA__) and Re:amaze knowledge base portals.","domains":["*.gorgias.help","*.reamaze.com","support.burga.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.burga.com/en-US/articles/contact-us-24868","https://storypod.reamaze.com/kb/all-about-storypod/firmware-update"],"htmlRoutes":[{"id":"gorgias-reamaze","match":{"exactSegments":false},"mode":"gorgias_reamaze_html"}]},{"id":"gov-wordpress-newsrooms","name":"Federal .gov WordPress Newsrooms","category":"public-records","description":"Extracts official federal .gov WordPress REST v2 posts (excluding whitehouse.gov 403 /wp-json/) and briefing/newsroom HTML pages.","domains":["www.whitehouse.gov","whitehouse.gov","news.va.gov","www.nasa.gov","nasa.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://news.va.gov/wp-json/wp/v2/posts?per_page=1","https://news.va.gov/151377/memphis-veterans-received-help-claims-clinic/","https://www.whitehouse.gov/presidential-actions/"],"routes":[{"match":{"excludeHosts":["www.whitehouse.gov","whitehouse.gov"],"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"gov_wp_posts_json"}},{"match":{"excludeHosts":["www.whitehouse.gov","whitehouse.gov"],"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"gov_wp_posts_json"}}],"htmlRoutes":[{"id":"gov-wordpress-newsrooms","match":{"exactSegments":false},"mode":"gov_wp_newsroom_html"}]},{"id":"granicus-govdelivery","name":"Granicus GovDelivery Public Bulletins","category":"public-records","description":"Extracts public government bulletins and optional RSS feeds from Granicus GovDelivery without rewriting HTML bulletins to .rss.","domains":["content.govdelivery.com","public.govdelivery.com"],"auth_mode":"pub","exampleUrls":["https://content.govdelivery.com/accounts/ILEVANSTON/bulletins.rss","https://content.govdelivery.com/accounts/ILEVANSTON/bulletins/4345149"],"routes":[{"match":{"pathSuffix":".rss","pathPrefix":"/accounts/"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"host","titleTemplate":"{channelTitle} ({itemCount})","limit":25,"collectLinkVar":"itemLink","emitTotals":true,"itemVars":{"title":{"tags":["title"],"default":"Bulletin"},"itemLink":{"tags":["link"]},"pubDate":{"tags":["pubDate"],"sliceMax":24,"default":"-"},"desc":{"tags":["description"],"sliceMax":180,"default":"-"}},"recordFields":{"title":"{title}","url":"{itemLink}","publishedAt":"{pubDate}","description":"{desc}","source":"granicus-govdelivery"},"columns":[{"header":"Bulletin","template":"[{title}]({itemLink})"},{"header":"Published","template":"{pubDate}"},{"header":"Summary","template":"{desc}"}]}}}],"htmlRoutes":[{"id":"granicus-govdelivery","match":{"exactSegments":false},"mode":"govdelivery_html"}]},{"id":"grants-gov","name":"Grants.gov Federal Grant Opportunities","category":"public-records","description":"Upgrades grants.gov opportunity pages to official keyless POST api.grants.gov/v1/api/fetchOpportunity JSON with HTML fallback.","domains":["grants.gov","www.grants.gov","api.grants.gov"],"auth_mode":"pub","exampleUrls":["https://www.grants.gov/search-results-detail/357601","https://api.grants.gov/v1/api/fetchOpportunity"],"routes":[{"match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false,"pathSegments":["search-results-detail",{"param":"oppId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://api.grants.gov/v1/api/fetchOpportunity","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"opportunityId\":{oppId}}","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}},{"match":{"hosts":["api.grants.gov"],"pathPrefix":"/v1/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"grants_gov_json"}}],"htmlRoutes":[{"id":"grants-gov","match":{"hosts":["grants.gov","www.grants.gov"],"exactSegments":false},"mode":"grants_gov_html"}]},{"id":"greenhouse-lever-boards","name":"Greenhouse & Lever Whole-Board + EU APIs","category":"jobs","description":"Upgrades Greenhouse (US & EU) and Lever (US & EU) board root URLs to their official JSON posting feeds with truncation metadata.","domains":["boards.greenhouse.io","job-boards.greenhouse.io","eu-boards.greenhouse.io","job-boards.eu.greenhouse.io","jobs.lever.co","jobs.eu.lever.co"],"exampleUrls":["https://job-boards.greenhouse.io/anthropic","https://job-boards.greenhouse.io/celonis","https://jobs.lever.co/spotify"],"routes":[{"match":{"hosts":["boards.greenhouse.io","job-boards.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-board","fetchUrl":"https://boards-api.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["eu-boards.greenhouse.io","job-boards.eu.greenhouse.io"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"greenhouse-eu-board","fetchUrl":"https://boards-api.eu.greenhouse.io/v1/boards/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["meta.total"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{org} — Greenhouse Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"meta.total","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["absolute_url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/jobs/{id}"},"dept":{"paths":["departments"],"subField":"name","join":", ","default":"-"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"updated":{"paths":["updated_at"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Updated","template":"{updated}"}]}]}},{"match":{"hosts":["jobs.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-board","fetchUrl":"https://api.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["jobs.eu.lever.co"],"pathSegments":[{"param":"org","charset":"pkg","maxLen":80,"reserved":["embed","v1","api","static","assets","favicon.ico"]}]},"twin":{"id":"lever-eu-board","fetchUrl":"https://api.eu.lever.co/v0/postings/{org}?mode=json&limit=100","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"total":{"paths":["jobs"],"format":"array_len"}},"requireVars":["total"],"titleTemplate":"{org} — Lever Job Board ({total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":120,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"last_id","idField":"id"},"itemVars":{"jTitle":{"paths":["text"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["hostedUrl"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/{org}/{id}"},"team":{"paths":["categories.team","categories.department"],"trim":true,"default":"-"},"loc":{"paths":["categories.location"],"trim":true,"default":"-"},"wp":{"paths":["workplaceType"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Team","template":"{team}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}}]},{"id":"gsa-site-scanning","name":"GSA Site Scanning API","category":"public-records","description":"GSA Technology Transformation Services Site Scanning API (DATA_GOV_API_KEY) and open.gsa.gov documentation fallback.","domains":["api.gsa.gov","open.gsa.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5","https://api.gsa.gov/technology/site-scanning/v1/websites/usa.gov"],"routes":[{"match":{"hosts":["api.gsa.gov"],"pathPrefix":"/technology/site-scanning/v1/websites"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"gsa_site_scanning_json"}}],"htmlRoutes":[{"id":"gsa-site-scanning","match":{"hosts":["open.gsa.gov"],"exactSegments":false},"mode":"gsa_site_scanning_html"}]},{"id":"hackernews","name":"Hacker News Stories & Who is Hiring (Algolia API)","category":"commerce-social","description":"Upgrades news.ycombinator.com/item?id= threads (including monthly Who is Hiring threads) to hn.algolia.com/api/v1/items/ JSON.","domains":["news.ycombinator.com"],"exampleUrls":["https://news.ycombinator.com/item?id=41000000"],"match":{"exactSegments":true,"pathSegments":["item"],"queryParams":[{"name":"id","param":"itemId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"id":"hackernews","fetchUrl":"https://hn.algolia.com/api/v1/items/{itemId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["id"],"vars":{"title":{"paths":["title"],"trim":true,"fallbackTemplate":"HN Comment #{itemId}"},"author":{"paths":["author"]},"points":{"paths":["points"]},"createdAt":{"paths":["created_at"]},"postedDate":{"paths":["created_at"],"sliceMax":10},"storyUrl":{"paths":["url"]},"storyText":{"paths":["text"],"format":"html_to_md"}},"titleTemplate":"{title}","authorVar":"author","publishedTimeVar":"createdAt","metaLine":[{"label":"Points","template":"{points}","whenVar":"points"},{"label":"By","template":"{author}","whenVar":"author"},{"label":"Posted","template":"{postedDate}","whenVar":"postedDate"},{"label":"URL","template":"{storyUrl}","whenVar":"storyUrl"}],"bodyVar":"storyText","linksVars":["storyUrl"],"sections":[{"heading":"Comments","headingTemplate":"Comments ({topCount} top-level)","treeComments":{"childrenPath":"children","authorPath":"author","htmlTextPath":"text","maxDepth":2,"maxItems":60}}]}},{"id":"hardware-farm-specs","name":"Hardware & Farm Supply Spec Extractor","category":"commerce-social","description":"Extracts Product JSON-LD, specification tables, and Apollo SimpleProduct metadata for Tractor Supply and Harbor Freight.","domains":["tractorsupply.com","www.tractorsupply.com","harborfreight.com","www.harborfreight.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.harborfreight.com/20v-brushless-cordless-12-in-drilldriver-tool-only-59420.html"],"htmlRoutes":[{"id":"hardware-farm-specs","match":{"exactSegments":false},"mode":"hardware_farm_specs_html"}]},{"id":"hathitrust","name":"HathiTrust Digital Library","category":"public-records","description":"HathiTrust Bibliographic API (catalog.hathitrust.org/api/volumes) adapter for OCLC, ISBN, LCCN, ISSN, and Record IDs.","domains":["catalog.hathitrust.org","babel.hathitrust.org"],"auth_mode":"pub","min_interval_ms":1000,"strict_robots":false,"exampleUrls":["https://catalog.hathitrust.org/api/volumes/brief/oclc/424023.json","https://catalog.hathitrust.org/api/volumes/brief/isbn/9780030110405.json","https://catalog.hathitrust.org/Record/000578050"],"routes":[{"match":{"hosts":["catalog.hathitrust.org"],"pathPrefix":"/api/volumes/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}},{"match":{"hosts":["catalog.hathitrust.org"],"exactSegments":false,"pathSegments":["Record",{"param":"recordId","charset":"digits","minLen":5,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.hathitrust.org/api/volumes/brief/recordnumber/{recordId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"hathitrust_json"}}]},{"id":"hcl-websphere-commerce","name":"HCL / WebSphere Commerce (WCS)","category":"commerce-social","description":"Extracts HCL/IBM WebSphere Commerce /wcs/resources/store//productview REST JSON and storefront HTML/companion twins.","domains":["www.childrensplace.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.childrensplace.com/us/p/Girls-Basic-Super-Skinny-Jeans-3044219-33C4"],"routes":[{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byPartNumber",{"param":"partNumber","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}},{"match":{"pathSegments":["wcs","resources","store",{"param":"storeId","charset":"digits","minLen":2,"maxLen":16},"productview","byId",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"hcl_wcs_product"}}],"htmlRoutes":[{"id":"hcl-websphere-commerce","match":{"exactSegments":false},"mode":"hcl_wcs_html"}]},{"id":"headless-cms-delivery","name":"Headless CMS Delivery","category":"developer","description":"Opt-in single-page doc delivery twin for Sanity, Storyblok, Prismic, Contentful, Builder.io, and Strapi (gated by allowPageKeyTwins; falls back to HTML/JSON-LD when OFF).","domains":["3do82whm.apicdn.sanity.io","www.sanity.io","api.storyblok.com","www.storyblok.com","nextjs-starter-prismic-blog.cdn.prismic.io","prismic.io","cdn.contentful.com","cdn.builder.io","www.builder.io","strapi.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://3do82whm.apicdn.sanity.io/v2021-10-21/data/query/next?query=*%5Bslug.current%20%3D%3D%20%22content-lake%22%5D%5B0%5D%7B_id%2C_type%2Ctitle%2Cslug%7D","https://nextjs-starter-prismic-blog.cdn.prismic.io/api/v2/documents/search?ref=ZuGtnBkAAEcAW15g&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22YlcmoRMAACMAI0gs%22%29+%5D%5D","https://cdn.builder.io/api/v3/content/docs/9f6f5d07-9c2e-4b44-983a-3f065151247f?apiKey=YJIGb4i01jvw0SRdL5Bt","https://www.sanity.io/docs/content-lake"],"routes":[{"match":{"hosts":["cdn.contentful.com"],"exactSegments":true,"pathSegments":["spaces",{"param":"spaceId","charset":"url_seg","minLen":1,"maxLen":64},"environments",{"param":"envId","charset":"url_seg","minLen":1,"maxLen":64},"entries",{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["api.storyblok.com","api-us.storyblok.com"],"exactSegments":false,"pathSegments":["v2","cdn","stories",{"param":"slug","charset":"safe_subpath","minLen":1,"maxLen":200,"greedy":true}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hosts":["cdn.builder.io"],"exactSegments":true,"pathSegments":["api","v3","content",{"param":"model","charset":"url_seg","minLen":1,"maxLen":80},{"param":"entryId","charset":"url_seg","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".apicdn.sanity.io","param":"projectId"},"exactSegments":true,"pathSegments":[{"param":"version","charset":"url_seg","minLen":4,"maxLen":24},"data","query",{"param":"dataset","charset":"url_seg","minLen":1,"maxLen":64}],"queryParams":[{"name":"query","param":"groqQuery","charset":"sanity_single_doc_query","minLen":5,"maxLen":400}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"hostSubdomain":{"suffix":".cdn.prismic.io","param":"repo"},"exactSegments":true,"pathSegments":["api","v2","documents","search"],"queryParams":[{"name":"q","param":"prismicQ","charset":"prismic_single_doc_query","minLen":5,"maxLen":300}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json",".xml",".csv"],"pathSegments":["api",{"param":"contentType","charset":"strapi_content_type","minLen":1,"maxLen":80,"reserved":["auth","users","upload","graphql","all","list","search","export","v0","v1","v2","v3","v4","v5","v6","v7","v8","v9"]},{"param":"docId","charset":"strapi_doc_id","minLen":1,"maxLen":128,"reserved":["all","list","search","export","graphql","graphql.json","users"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"headless_cms_doc"}}],"htmlRoutes":[{"id":"headless-cms-delivery","match":{"exactSegments":false},"mode":"headless_cms_html"}]},{"id":"headless-commerce","name":"Headless & Enterprise Commerce (commercetools, Elastic Path, Kibo, Optimizely)","category":"commerce-social","description":"Extracts commercetools, Elastic Path, Kibo/Mozu, and Optimizely Configured Commerce JSON-LD (with additionalProperty specs), Microdata, and hydration state.","domains":["www.bang-olufsen.com","www.guestsupply.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.bang-olufsen.com/en/us/headphones/beoplay-h100","https://www.guestsupply.com/product/0078423-Keystone-Liquid-Laundry-Built-Detergent-5-Gallon-1602538"],"htmlRoutes":[{"id":"headless-commerce","match":{"exactSegments":false},"mode":"headless_commerce_html"}]},{"id":"healthcare-careers","name":"Healthcare Careers (HealthcareSource & symplr)","category":"jobs","description":"Extracts hospital and clinical job postings from HealthcareSource (*.healthcaresource.com) and symplr career pages while rejecting Application Error and WAF shells and deferring careers.symplr.com to Jibe.","domains":["*.healthcaresource.com","www.symplr.com","symplr.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.symplr.com/careers"],"htmlRoutes":[{"id":"healthcare-careers","mode":"healthcare_careers_html","match":{"excludeHosts":["careers.symplr.com"],"exactSegments":false}}]},{"id":"healthcare-gov-marketplace","name":"HealthCare.gov Marketplace API","category":"research-health","description":"CMS HealthCare.gov Marketplace Plan Search (POST), States, Counties, and Plan Detail API (HEALTHCARE_GOV_API_KEY) with healthcare.gov HTML fallback.","domains":["marketplace.api.healthcare.gov","www.healthcare.gov","healthcare.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://marketplace.api.healthcare.gov/api/v1/plans/search","https://marketplace.api.healthcare.gov/api/v1/states","https://www.healthcare.gov/glossary/affordable-care-act/"],"routes":[{"match":{"hosts":["marketplace.api.healthcare.gov"],"pathPrefix":"/api/v1/plans/search"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"household\":{\"income\":52000,\"people\":[{\"age\":30,\"aptc_eligible\":true,\"uses_tobacco\":false}]},\"market\":\"Individual\",\"place\":{\"zipcode\":\"27360\",\"state\":\"NC\",\"countyfips\":\"37057\"},\"year\":2026}","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"healthcare_marketplace_json"}},{"match":{"hosts":["marketplace.api.healthcare.gov"],"anyOf":[{"pathPrefix":"/api/v1/states"},{"pathPrefix":"/api/v1/counties/"},{"pathPrefix":"/api/v1/plans/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"GET","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"healthcare_marketplace_json"}}],"htmlRoutes":[{"id":"healthcare-gov-marketplace","match":{"hosts":["www.healthcare.gov","healthcare.gov"],"exactSegments":false},"mode":"healthcare_gov_html"}]},{"id":"helpscout-docs","name":"Help Scout Docs","category":"developer","description":"Extracts Help Scout Docs knowledge base articles and collections from server-rendered HTML and BreadcrumbList JSON-LD.","domains":["docs.helpscout.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://docs.helpscout.com/article/666-use-dkim-to-help-with-email-delivery","https://docs.helpscout.com/collection/1543-getting-started"],"htmlRoutes":[{"id":"helpscout-docs","match":{"exactSegments":false},"mode":"helpscout_docs_html"}]},{"id":"hex-pm","name":"Hex.pm Elixir & Erlang Registry","category":"developer","description":"Upgrades hex.pm package pages to /api/packages/ metadata and HexDocs links.","domains":["hex.pm","www.hex.pm"],"exampleUrls":["https://hex.pm/packages/phoenix"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"alnum_dash"}]},"twin":{"fetchUrl":"https://hex.pm/api/packages/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["meta.description"],"trim":true},"licenses":{"paths":["meta.licenses"],"join":", "},"ver":{"paths":["releases.0.version"]},"verOrDefault":{"paths":["releases.0.version"],"default":"0.1"},"docsUrl":{"paths":["docs_html_url"],"fallbackTemplate":"https://hexdocs.pm/{name}"}},"titleTemplate":"{name} {ver} (Hex)","titleWhenVar":"ver","titleFallbackTemplate":"{name} (Hex)","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Mix","template":"`{:{name}, \"~> {verOrDefault}\"}`"},{"label":"HexDocs","template":"{docsUrl}"},{"label":"License","template":"{licenses}","whenVar":"licenses"}],"objectLinksPath":"meta.links"}},{"id":"home-depot-lowes","name":"Home Depot & Lowe's Product JSON-LD","category":"commerce-social","description":"Strictly low-rate, robots-enforced JSON-LD Product/ProductGroup extractor for Home Depot and Lowe's product pages.","domains":["homedepot.com","www.homedepot.com","lowes.com","www.lowes.com"],"auth_mode":"html","min_interval_ms":3000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.homedepot.com/p/Milwaukee-M18-FUEL-Hammer-Drill-2904-20/320326137","https://www.lowes.com/pd/DEWALT-20V-MAX-Drill/501326137"],"htmlRoutes":[{"id":"home-depot-lowes","match":{"exactSegments":false},"mode":"home_depot_lowes_html"}]},{"id":"home-goods-jsonld","name":"US Home Goods Product JSON-LD","category":"commerce-social","description":"Structured Product and ProductGroup JSON-LD extractor for Wayfair and Overstock.","domains":["wayfair.com","www.wayfair.com","overstock.com","www.overstock.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.wayfair.com/furniture/pdp/mercury-row-perdue-815-velvet-square-arm-convertible-sofa-w009315804.html?piid=1134429065","https://www.overstock.com/Home-Garden/accent-chair/1400001/product.html"],"htmlRoutes":[{"id":"home-goods-jsonld","match":{"exactSegments":false},"mode":"home_goods_jsonld_html"}]},{"id":"homebrew-formulae","name":"Homebrew Formulae & Casks","category":"developer","description":"Upgrades formulae.brew.sh/formula/ and /cask/ pages to the official Homebrew JSON API with install commands, dependencies, deprecation/disable notices, and 30-day install analytics.","domains":["formulae.brew.sh"],"exampleUrls":["https://formulae.brew.sh/formula/jq","https://formulae.brew.sh/cask/iterm2"],"routes":[{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["formula",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/formula/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"fullName":{"paths":["full_name","name"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["versions.stable","versions.head"]},"license":{"paths":["license"]},"homepage":{"paths":["homepage"],"requireHttps":true},"deps":{"paths":["dependencies"],"itemWrap":"`","join":", ","limit":20},"buildDeps":{"paths":["build_dependencies"],"itemWrap":"`","join":", ","limit":15},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_formula","disable_replacement_cask","deprecation_replacement_formula","deprecation_replacement_cask"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{fullName} (Homebrew Formula)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install {name}`"},{"label":"Stable Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Dependencies","template":"{deps}","whenVar":"deps"},{"label":"Build Dependencies","template":"{buildDeps}","whenVar":"buildDeps"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage"]}},{"match":{"exactSegments":true,"excludeSegmentSuffixes":[".json"],"pathSegments":["cask",{"param":"id","charset":"brew_id","minLen":1,"maxLen":128}]},"twin":{"fetchUrl":"https://formulae.brew.sh/api/cask/{id}.json","rawPathParams":["id"],"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["token"],"vars":{"token":{"paths":["token"]},"displayName":{"paths":["name.0","full_token","token"]},"desc":{"paths":["desc"],"trim":true},"version":{"paths":["version"]},"homepage":{"paths":["homepage"],"requireHttps":true},"downloadUrl":{"paths":["url"],"requireHttps":true},"sha256":{"paths":["sha256"]},"autoUpdates":{"paths":["auto_updates"],"format":"bool_map","trueValue":"Yes","falseValue":"No"},"caveats":{"paths":["caveats"],"trim":true},"installs30d":{"dynamicKeyPath":{"base":"analytics.install.30d","keyVar":"id"},"format":"int_comma"},"disabledFlag":{"paths":["disabled"],"format":"bool_map","trueValue":"Disabled","falseValue":""},"disabledReason":{"paths":["disable_reason"]},"disabledDate":{"paths":["disable_date"]},"deprecatedFlag":{"paths":["deprecated"],"format":"bool_map","trueValue":"Deprecated","falseValue":""},"deprecationReason":{"paths":["deprecation_reason"]},"deprecationDate":{"paths":["deprecation_date"]},"replacement":{"paths":["disable_replacement_cask","disable_replacement_formula","deprecation_replacement_cask","deprecation_replacement_formula"]},"disabledSummary":{"template":"Disabled ({disabledReason}, {disabledDate})","whenVars":["disabledFlag","disabledReason","disabledDate"],"fallbackVar":"disabledFlag"},"deprecatedSummary":{"template":"Deprecated ({deprecationReason}, {deprecationDate})","whenVars":["deprecatedFlag","deprecationReason","deprecationDate"],"fallbackVar":"deprecatedFlag"},"statusNotice":{"template":"{disabledSummary}","whenVars":["disabledSummary"],"fallbackVar":"deprecatedSummary"}},"titleTemplate":"{displayName} (Homebrew Cask)","descriptionVar":"desc","blockquoteTemplate":"> **Notice**: {statusNotice}","blockquoteWhenVar":"statusNotice","introVar":"desc","bullets":[{"label":"Install","template":"`brew install --cask {token}`"},{"label":"Token","template":"`{token}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"Auto Updates","template":"{autoUpdates}","whenVar":"autoUpdates"},{"label":"Replacement","template":"`{replacement}`","whenVar":"replacement"},{"label":"30d Installs","template":"{installs30d}","whenVar":"installs30d"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Download URL","template":"{downloadUrl}","whenVar":"downloadUrl"},{"label":"SHA-256","template":"`{sha256}`","whenVar":"sha256"}],"sections":[{"heading":"Caveats","textVar":"caveats"}],"linksVars":["homepage","downloadUrl"]}}]},{"id":"hourly-smb-ats","name":"Hourly & SMB ATS (Hireology, ApplicantPro, Harri, Fountain, ClearCompany, Workstream)","category":"jobs","description":"Extracts JobPosting JSON-LD, Next.js SSR boards, and structured HTML job postings from Hireology, ApplicantPro, Harri, Fountain, ClearCompany, and Workstream.","domains":["www.applicantpro.com","www.clearcompany.com","app.hireology.com","harri.com","web.fountain.com","www.workstream.us"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.hireology.com/hireology2/2908935/description","https://harri.com/Kitchen-Putters-Cw"],"htmlRoutes":[{"id":"hourly-smb-ats","mode":"hourly_smb_ats_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","app.clearcompany.com"],"anyOf":[{"hostSubdomain":{"suffix":".applicantpro.com","param":"tenant","reserved":["www","login","admin"]},"exactSegments":false},{"hosts":["www.applicantpro.com"],"pathPrefix":"/careers","exactSegments":false},{"hostSubdomain":{"suffix":".clearcompany.com","param":"tenant","reserved":["app","login","admin"]},"exactSegments":false},{"hosts":["careers.hireology.com","app.hireology.com"],"exactSegments":false},{"hosts":["harri.com","www.harri.com"],"exactSegments":false},{"hosts":["web.fountain.com"],"pathPrefix":"/apply/","exactSegments":false},{"hostSubdomain":{"suffix":".workstream.us","param":"tenant","reserved":["app","login","api"]},"exactSegments":false}]}}]},{"id":"hrsa-samhsa-locator","name":"HRSA & SAMHSA Treatment Locator","category":"research-health","description":"SAMHSA FindTreatment.gov locator JSON export API adapter with HRSA/SAMHSA portal HTML fallback.","domains":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"auth_mode":"pub","exampleUrls":["https://findtreatment.gov/locator/exportsAsJson/v2?sAddr=40.7506%2C-73.9972&sType=SA&limitValue=5000&limitType=2&pageSize=2&page=1","https://data.hrsa.gov/tools/web-services"],"routes":[{"match":{"hosts":["findtreatment.gov","www.findtreatment.gov"],"pathPrefix":"/locator/exportsAsJson/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"samhsa_locator_json"}}],"htmlRoutes":[{"id":"hrsa-samhsa-locator","match":{"hosts":["data.hrsa.gov","findahealthcenter.hrsa.gov","findtreatment.gov","www.findtreatment.gov"],"exactSegments":false},"mode":"hrsa_samhsa_html"}]},{"id":"hubspot-cms","name":"HubSpot CMS","category":"developer","description":"Extracts same-origin HubSpot HubDB table rows (/_hcms/api/hubdb/v3/... and /hs/api/hubdb/v2/...) and HubSpot CMS HTML metadata while rejecting page_id:0 404s.","domains":["www.hubspot.com","developers.hubspot.com","www.smartbugmedia.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.smartbugmedia.com/blog/hubspot-unbound-2026-recap-7-ai-updates-to-turn-on-first-and-what-each-one-costs"],"routes":[{"match":{"exactSegments":true,"pathSegments":["_hcms","api","hubdb","v3","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}},{"match":{"exactSegments":true,"pathSegments":["hs","api","hubdb","v2","tables",{"param":"tableId","charset":"url_seg","minLen":1,"maxLen":120},"rows"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"hubspot_hubdb_json"}}],"htmlRoutes":[{"id":"hubspot-cms","match":{"exactSegments":false},"mode":"hubspot_cms_html"}]},{"id":"hud-fhfa","name":"HUD User & FHFA House Price Index","category":"public-records","description":"Extracts HUD User Fair Market Rent / Income Limit API JSON (when HUD_API_KEY is configured), FHFA House Price Index JSON & CSV datasets, and FHFA HPI HTML pages.","domains":["huduser.gov","www.huduser.gov","fhfa.gov","www.fhfa.gov"],"auth_mode":"key","exampleUrls":["https://www.huduser.gov/hudapi/public/fmr/listStates","https://www.fhfa.gov/hpi/download/quarterly_datasets/hpi_at_state.csv","https://www.fhfa.gov/data/hpi"],"routes":[{"match":{"hosts":["huduser.gov","www.huduser.gov"],"pathPrefix":"/hudapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"hud_user_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"fhfa_hpi_json"}},{"match":{"hosts":["fhfa.gov","www.fhfa.gov"],"pathPrefix":"/hpi/download/","pathSuffix":".csv"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":4194304,"auth_mode":"pub"},"extract":{"textMode":"fhfa_hpi_csv"}}],"htmlRoutes":[{"id":"hud-fhfa","match":{"hosts":["fhfa.gov","www.fhfa.gov","huduser.gov","www.huduser.gov"],"exactSegments":false},"mode":"hud_fhfa_html"}]},{"id":"huggingface","name":"Hugging Face Models, Datasets & Spaces","category":"genai","description":"Upgrades Hugging Face model/dataset/space pages and file blobs to raw README.md with parsed YAML frontmatter tables.","domains":["huggingface.co","www.huggingface.co"],"exampleUrls":["https://huggingface.co/Qwen/Qwen2.5-Coder-32B-Instruct"],"routes":[{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{repoType}/{org}/{repo}"}},{"match":{"anyOf":[{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"}],"defaults":{"rev":"main"}},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"tree",{"param":"rev","charset":"pkg"}]}]},"twin":{"id":"huggingface-card","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/README.md","kind":"text","accept":"text/markdown"},"extract":{"textMode":"yaml_frontmatter_card","titleTemplate":"{org}/{repo}"}},{"match":{"pathSegments":[{"param":"repoType","allowValues":["datasets","spaces"]},{"param":"org","charset":"pkg"},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{repoType}/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{repoType}/{org}/{repo}/{filePath}"}},{"match":{"pathSegments":[{"param":"org","charset":"pkg","reserved":["models","datasets","spaces","docs","blog","papers","posts","tasks","organizations","settings","login","join","pricing"]},{"param":"repo","charset":"pkg"},"blob",{"param":"rev","charset":"pkg"},{"param":"filePath","charset":"safe_subpath","greedy":true,"maxLen":240}]},"twin":{"id":"huggingface-blob","fetchUrl":"https://huggingface.co/{org}/{repo}/raw/{rev}/{filePath}","rawPathParams":["filePath"],"kind":"text","accept":"text/plain"},"extract":{"textMode":"code_or_markdown_by_path","pathParam":"filePath","titleTemplate":"{org}/{repo}/{filePath}"}}]},{"id":"icims","name":"iCIMS Enterprise Career Portals","category":"jobs","description":"Upgrades *.icims.com/jobs/... portals and postings to their server-rendered ?ss=1&in_iframe=1 twin, extracting JobPosting JSON-LD and open role cards without outer iframe shells.","domains":["*.icims.com"],"exampleUrls":["https://careers-compsych.icims.com/jobs/search?ss=1","https://careers-compsych.icims.com/jobs/2526/senior-cloud-architect/job"],"routes":[{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":true,"pathSegments":[]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"anyOf":[{"exactSegments":true,"pathSegments":["jobs"]},{"exactSegments":true,"pathSegments":["jobs","intro"]},{"exactSegments":true,"pathSegments":["jobs","search"]}]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","overridePathIf":{"matchPaths":["/jobs","/jobs/intro","/jobs/search"],"newPath":"/jobs/search"},"defaultQueryParams":{"ss":"1"},"setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}},{"match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]},"twin":{"id":"icims","fetchUrl":"{requestUrl}","setQueryParams":{"in_iframe":"1"},"kind":"text","accept":"text/html"},"extract":{"icimsPortal":true}}],"htmlRoutes":[{"id":"icims","mode":"icims_portal","match":{"hostSubdomain":{"suffix":".icims.com","param":"org","reserved":["www","status","support","community","developer","developers","login"]},"exactSegments":false,"pathSegments":["jobs"]}}]},{"id":"idx-broker-showcase","name":"IDX Broker & Showcase IDX Real Estate Portals","category":"commerce-social","description":"Extracts real estate property listings, MLS numbers, pricing, and RealEstateAgent/RealEstateListing metadata from IDX Broker and Showcase IDX portals while rejecting 403/WAF shells.","domains":["*.idxbroker.com","entityrealty.com","realtorrajaram.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://entityrealty.com/","https://realtorrajaram.com/"],"htmlRoutes":[{"id":"idx-broker-showcase","match":{"exactSegments":false},"mode":"idx_broker_showcase_html"}]},{"id":"ietf-rfc","name":"IETF Datatracker & RFC Editor","category":"developer","description":"Strips ASCII RFC running page headers/footers ([Page N]) and promotes numbered section headings to Markdown headings.","domains":["datatracker.ietf.org","rfc-editor.org","www.rfc-editor.org"],"exampleUrls":["https://datatracker.ietf.org/doc/html/rfc9421","https://www.rfc-editor.org/rfc/rfc9110"],"routes":[{"match":{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","exactSegments":true,"pathSegments":["rfc",{"param":"rfcId","stripPrefix":"rfc","charset":"digits","minLen":1,"maxLen":6}]},"twin":{"fetchUrl":"https://www.rfc-editor.org/rfc/rfc{rfcId}.html","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"RFC {rfcId}"}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/rfc"},{"hosts":["datatracker.ietf.org"],"pathPrefix":"/doc/html/draft-"},{"hosts":["rfc-editor.org","www.rfc-editor.org"],"pathPrefix":"/rfc/rfc","minSegments":2}]},"mode":"markdown_clean","cleanPreset":"ietf_rfc"}]},{"id":"import-alerts-aphis-fda","name":"FDA Import Alerts & USDA APHIS Import Manuals","category":"public-records","description":"Extracts FDA Import Alerts (/cms_ia/* on accessdata.fda.gov) and USDA APHIS import guidance and manuals (aphis.usda.gov).","domains":["www.accessdata.fda.gov","accessdata.fda.gov","www.aphis.usda.gov","aphis.usda.gov"],"auth_mode":"pub","exampleUrls":["https://www.accessdata.fda.gov/cms_ia/importalert_190.html","https://www.accessdata.fda.gov/cms_ia/ialist.html","https://www.aphis.usda.gov/plant-imports","https://www.aphis.usda.gov/trade-management-manuals"],"htmlRoutes":[{"id":"import-alerts-aphis-fda","match":{"hosts":["www.accessdata.fda.gov","accessdata.fda.gov"],"pathPrefix":"/cms_ia/"},"mode":"import_alerts_fda_aphis_html"},{"id":"import-alerts-aphis-fda","match":{"hosts":["www.aphis.usda.gov","aphis.usda.gov"],"exactSegments":false},"mode":"import_alerts_fda_aphis_html"}]},{"id":"intercom-help","name":"Intercom Help Center","category":"developer","description":"Extracts Intercom Help Center articles and collections from __NEXT_DATA__ hydration, JSON-LD, and semantic HTML.","domains":["support.claude.com","www.intercom.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://support.claude.com/en/articles/7996845-what-are-some-things-i-can-use-claude-for","https://support.claude.com/en/collections/4078531-claude"],"htmlRoutes":[{"id":"intercom-help","match":{"exactSegments":false},"mode":"intercom_help_html"}]},{"id":"internet-archive","name":"Internet Archive Items (archive.org)","category":"genai","description":"Upgrades archive.org/details/ pages to the official /metadata/ JSON feed with creator, license, and downloadable files.","domains":["archive.org","www.archive.org"],"exampleUrls":["https://archive.org/details/07-28-16_Space-to-Grounds.zip"],"match":{"exactSegments":true,"pathSegments":["details",{"param":"identifier","charset":"pkg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://archive.org/metadata/{identifier}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["metadata"],"vars":{"title":{"paths":["metadata.title"],"fallbackTemplate":"{identifier}","trim":true},"creator":{"paths":["metadata.creator"],"join":", "},"mediatype":{"paths":["metadata.mediatype"]},"date":{"paths":["metadata.date","metadata.publicdate"]},"license":{"paths":["metadata.licenseurl"]},"collections":{"paths":["metadata.collection"],"limit":6,"join":", "},"desc":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags"},"descShort":{"paths":["metadata.description"],"join":"\n\n","format":"strip_tags","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"creator","publishedTimeVar":"date","bullets":[{"label":"Identifier","template":"`{identifier}`"},{"label":"Creator","template":"{creator}","whenVar":"creator"},{"label":"Media Type","template":"{mediatype}","whenVar":"mediatype"},{"label":"Date","template":"{date}","whenVar":"date"},{"label":"Collections","template":"{collections}","whenVar":"collections"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Files","arrayPath":"files","filter":{"excludeFieldSuffixes":{"field":"name","suffixes":["_meta.xml","_files.xml"]}},"limit":15,"requireItemVar":"fname","collectLinkVars":["dlUrl"],"itemVars":{"fname":{"paths":["name"]},"dlUrl":{"template":"https://archive.org/download/{identifier}/{fname}","whenVars":["fname"],"replaceAll":{"from":" ","to":"%20"}}},"columns":[{"header":"File","template":"[{fname}]({dlUrl})"},{"header":"Format","paths":["format"]},{"header":"Size","paths":["size"],"format":"bytes_human"}]}]}},{"id":"ir-portal-pack","name":"Investor Relations Portals (Notified / Equisolve / Nasdaq IR)","category":"finance","description":"Extracts Notified/Intrado (wd_newsfeed), Equisolve, and Nasdaq IR investor relations portals and RSS press release feeds.","domains":["investor.iridium.com","ir.bowheadspecialty.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://investor.iridium.com/press-releases","https://ir.bowheadspecialty.com/news-events/press-releases/rss","https://ir.bowheadspecialty.com/"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/rss"},{"pathSuffix":".rss"},{"pathPrefix":"/rss/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ir_portal_rss_xml"}}],"htmlRoutes":[{"id":"ir-portal-pack","match":{"exactSegments":false},"mode":"ir_portal_pack_html"}]},{"id":"irs-teos","name":"IRS Tax Exempt Organization Search (TEOS)","category":"public-records","description":"Extracts IRS Tax Exempt Organization Search (Pub 78 / Form 990-N) lookup records while respecting robots.txt and strictly rejecting Akamai WAF challenge pages.","domains":["apps.irs.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://apps.irs.gov/app/eos/allSearch?ein=521693387","https://apps.irs.gov/app/eos/details/521693387"],"routes":[{"match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/allSearch"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}},{"match":{"hosts":["apps.irs.gov"],"exactSegments":false,"pathSegments":["app","eos","details",{"param":"ein","charset":"alnum_dash","minLen":4,"maxLen":20}]},"twin":{"fetchUrl":"https://apps.irs.gov/app/eos/allSearch?ein={ein}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"irs_teos_json"}}],"htmlRoutes":[{"id":"irs-teos","match":{"hosts":["apps.irs.gov"],"pathPrefix":"/app/eos/","exactSegments":false},"mode":"irs_teos_html"}]},{"id":"javadoc-dokka","name":"Javadoc & Kotlin Dokka API Docs","category":"developer","description":"Universal extractor for Javadoc and Kotlin Dokka HTML API pages as well as element-list and package-list index manifests.","domains":["docs.oracle.com","kotlinlang.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html","https://docs.oracle.com/en/java/javase/21/docs/api/element-list","https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html"],"routes":[{"match":{"anyOf":[{"pathSuffix":"/element-list"},{"pathSuffix":"/package-list"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":1048576},"extract":{"textMode":"javadoc_element_list_text"}}],"htmlRoutes":[{"id":"javadoc-dokka","match":{"exactSegments":false},"mode":"javadoc_dokka_html"}]},{"id":"jazzhr","name":"JazzHR Career Boards (applytojob.com)","category":"jobs","description":"Upgrades .applytojob.com boards to app.jazz.co/feeds/export/jobs/ XML export (which includes full job descriptions and returns clean 404 on invalid slugs).","domains":["*.applytojob.com"],"exampleUrls":["https://axiomcloud.applytojob.com/apply"],"match":{"hostSubdomain":{"suffix":".applytojob.com","param":"org","reserved":["www","app"]},"maxSegments":1},"twin":{"id":"jazzhr","fetchUrl":"https://app.jazz.co/feeds/export/jobs/{org}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["jobs","job"],"itemTag":"job","titleTemplate":"{org} — JazzHR Job Board ({itemCount} open roles)","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jUrl","itemVars":{"jTitle":{"tags":["title"]},"jUrl":{"tags":["url"]},"dept":{"tags":["department"],"default":"-"},"city":{"tags":["city"]},"state":{"tags":["state"]},"country":{"tags":["country"]},"jType":{"tags":["type"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{city} {state} {country}"},{"header":"Type","template":"{jType}"}]}}},{"id":"job-boards-jsonld-pack","name":"Job Boards (CareerArc, Nexxt, Reed, Alljobs)","category":"jobs","description":"Extracts JobPosting JSON-LD from CareerArc, Nexxt, Reed.co.uk, and Alljobs posting pages: title, company, locations, employment type, salary, posting/expiry dates, job ID, and description. Repairs the unescaped quotes CareerArc emits inside descriptions in one linear pass. Honors robots.txt.","domains":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"auth_mode":"html","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://www.careerarc.com/job-listing/state-of-vermont-jobs-trooper-probationary-53326582","https://www.nexxt.com/jobs/registered-nurse-rn-lebanon-oh-3496987559-job.html","https://www.reed.co.uk/jobs/nurse-wca/57553089","https://www.alljobs.co.il/Search/UploadSingle.aspx?JobID=8822511"],"htmlRoutes":[{"id":"job-boards-jsonld-pack","match":{"hosts":["www.careerarc.com","careerarc.com","www.nexxt.com","nexxt.com","www.reed.co.uk","reed.co.uk","www.alljobs.co.il","alljobs.co.il"],"exactSegments":false},"mode":"job_boards_jsonld_html"}]},{"id":"jsr-io","name":"JSR JavaScript Registry","category":"developer","description":"Strips top-bar navigation and duplicate version/scorecard tabs from jsr.io/@scope/pkg Markdown.","domains":["jsr.io"],"exampleUrls":["https://jsr.io/@std/path"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"scope","charset":"npm_scope"},{"param":"pkg","charset":"npm_pkg"}]},"mode":"markdown_clean","cleanPreset":"jsr_io"}]},{"id":"judge-me","name":"Judge.me Product Reviews","category":"commerce-social","description":"Extracts public Judge.me product reviews widget JSON and HTML-in-JSON payloads without preempting storefront extractors.","domains":["api.judge.me","judge.me","cache.judge.me"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.judge.me/reviews/reviews_for_widget?shop_domain=thebraindriver.myshopify.com&platform=shopify&product_id=3946432580&page=1&per_page=10"],"routes":[{"match":{"hosts":["api.judge.me","judge.me","cache.judge.me"],"pathEquals":["/reviews/reviews_for_widget","/api/v1/widgets/product_review","/api/v1/reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"judgeme_reviews"}}],"htmlRoutes":[{"id":"judge-me","match":{"exactSegments":false},"mode":"judgeme_html"}]},{"id":"junar-tyler-data","name":"Junar & Tyler Data & Insights Open Data Portals","category":"public-records","description":"Extracts Junar /dataviews/ HTML and /api/v2/datastreams/ JSON plus Tyler Data & Insights /api/catalog/v1 datasets (without overlapping Socrata claims).","domains":["data.paloalto.gov","*.junar.com","data.tylertech.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://data.tylertech.com/api/catalog/v1","https://data.paloalto.gov/dataviews/251890/business-registry-2018/","https://data.paloalto.gov/home"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v2/datastreams/"},{"pathPrefix":"/api/catalog/v1"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"junar_tyler_json"}}],"htmlRoutes":[{"id":"junar-tyler-data","match":{"exactSegments":false},"mode":"junar_tyler_html"}]},{"id":"jwplayer","name":"JW Player Delivery & Previews","category":"commerce-social","description":"Extracts JW Player CDN v2 media/playlist JSON twins, /previews/{mediaId} redirects to v2 media JSON, and JW Platform feeds.","domains":["cdn.jwplayer.com","content.jwplatform.com"],"auth_mode":"pub","exampleUrls":["https://cdn.jwplayer.com/v2/media/1b02B03R","https://cdn.jwplayer.com/previews/1b02B03R"],"routes":[{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["v2",{"param":"kind","allowValues":["media","playlists"]},{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["cdn.jwplayer.com"],"exactSegments":true,"pathSegments":["previews",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":16}]},"twin":{"fetchUrl":"https://cdn.jwplayer.com/v2/media/{mediaId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}},{"match":{"hosts":["content.jwplatform.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["feeds",{"param":"mediaFile","charset":"url_seg","stripSuffix":".json","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"jwplayer_json"}}],"htmlRoutes":[{"id":"jwplayer","match":{"exactSegments":false},"mode":"jwplayer_html"}]},{"id":"kaggle","name":"Kaggle Datasets, Models & Competitions","category":"developer","description":"Extracts Kaggle dataset, model, and competition metadata via Kaggle REST API v1 (KAGGLE_API_KEY) with public HTML fallback.","domains":["www.kaggle.com","kaggle.com"],"auth_mode":"key","exampleUrls":["https://www.kaggle.com/api/v1/datasets/view/heptapod/titanic","https://www.kaggle.com/datasets/heptapod/titanic"],"routes":[{"match":{"hosts":["www.kaggle.com","kaggle.com"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}},{"match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false,"pathSegments":["datasets",{"param":"owner","charset":"pkg","minLen":1,"maxLen":100},{"param":"slug","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://www.kaggle.com/api/v1/datasets/view/{owner}/{slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"kaggle_json"}}],"htmlRoutes":[{"id":"kaggle","match":{"hosts":["www.kaggle.com","kaggle.com"],"exactSegments":false},"mode":"kaggle_html"}]},{"id":"kb-platform-pack","name":"KB Platform Pack (Document360, Helpjuice, KnowledgeOwl)","category":"developer","description":"Extracts public knowledge base articles and categories across Document360, Helpjuice, and KnowledgeOwl.","domains":["docs.document360.com","help.helpjuice.com","support.knowledgeowl.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.helpjuice.com/getting-started/what-is-a-knowledge-base","https://support.knowledgeowl.com/help/enable-single-sign-on-sso"],"htmlRoutes":[{"id":"kb-platform-pack","match":{"exactSegments":false},"mode":"kb_platform_pack_html"}]},{"id":"khoros-lithium","name":"Khoros / Lithium Communities","category":"developer","description":"Upgrades Khoros/Lithium /t5/.../td-p/ community threads to /api/2.0/messages/ JSON twins with HTML fallback.","domains":["community.qlik.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":5000,"exampleUrls":["https://community.qlik.com/t5/Product-Innovation/AI-Without-Context-Is-Guessing-With-Confidence-Our-October-Qlik/ba-p/2560737","https://community.qlik.com/api/2.0/messages/2560737"],"routes":[{"match":{"pathPrefix":"/t5/","anyOf":[{"scanSegment":{"afterLiteral":"td-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"m-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ba-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}},{"scanSegment":{"afterLiteral":"ta-p","param":"msgId","charset":"digits","minLen":1,"maxLen":16}}]},"twin":{"fetchUrl":"https://{host}/api/2.0/messages/{msgId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}},{"match":{"pathSegments":["api","2.0","messages",{"param":"msgId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"khoros_message"}}],"htmlRoutes":[{"id":"khoros-lithium","match":{"exactSegments":false},"mode":"khoros_html"}]},{"id":"klaviyo-attentive-forms","name":"Klaviyo & Attentive Onsite Forms (Read-Only)","category":"commerce-social","description":"Strictly read-only extractor for Klaviyo onsite company/form IDs, signup offer metadata, and Attentive tag metadata without submitting forms; yields on product/article pages.","domains":["www.getcasely.com","static.klaviyo.com","cdn.attn.tv"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.getcasely.com/"],"htmlRoutes":[{"id":"klaviyo-attentive-forms","match":{"exactSegments":false},"mode":"klaviyo_attentive_forms_html"}]},{"id":"klevu","name":"Klevu Smart Search","category":"commerce-social","description":"Opt-in page-key adapter for Klevu v2 POST search JSON endpoints; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["eucs15v2.ksearchnet.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://eucs15v2.ksearchnet.com/cs/v2/search"],"routes":[{"match":{"hostSubdomain":{"suffix":".ksearchnet.com","param":"clusterHost"},"pathEquals":["/cs/v2/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"context\":{\"apiKeys\":[\"klevu-156925593843210765\"]},\"recordQueries\":[{\"id\":\"productList\",\"typeOfRequest\":\"SEARCH\",\"settings\":{\"query\":{\"term\":\"bag\"},\"limit\":10}}]}","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"klevu"}}],"htmlRoutes":[{"id":"klevu","match":{"exactSegments":false},"mode":"klevu_html"}]},{"id":"kroger","name":"Kroger Public Products API","category":"commerce-social","description":"Extracts Kroger product UPC/GTIN, brand, size, pricing, and fulfillment metadata via the official Kroger v1 Products API.","domains":["kroger.com","www.kroger.com","api.kroger.com"],"auth_mode":"key","exampleUrls":["https://api.kroger.com/v1/products/0001111085135","https://api.kroger.com/v1/products?filter.term=oats"],"routes":[{"match":{"hosts":["kroger.com","www.kroger.com"],"exactSegments":false,"pathSegments":["p",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"upc","charset":"digits","minLen":8,"maxLen":14}]},"twin":{"fetchUrl":"https://api.kroger.com/v1/products/{upc}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}},{"match":{"hosts":["api.kroger.com"],"pathPrefix":"/v1/products"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"kroger_json"}}]},{"id":"lang-registry-pack","name":"Language Registry Pack (pub.dev, CRAN, CocoaPods, Anaconda)","category":"developer","description":"Extracts package metadata and newest stable versions from Dart pub.dev, R CRAN HTML, CocoaPods HTML, and Anaconda/conda-forge API.","domains":["pub.dev","cran.r-project.org","cocoapods.org","anaconda.org","api.anaconda.org"],"auth_mode":"pub","exampleUrls":["https://pub.dev/packages/http","https://cocoapods.org/pods/Alamofire","https://anaconda.org/conda-forge/six"],"routes":[{"match":{"hosts":["pub.dev"],"pathPrefix":"/api/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["pub.dev"],"exactSegments":false,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://pub.dev/api/packages/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"pubdev_json"}},{"match":{"hosts":["api.anaconda.org"],"pathPrefix":"/package/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}},{"match":{"hosts":["anaconda.org"],"exactSegments":true,"reservedFirstSegment":["search","admin","download","static","api","login","signup","docs","pricing","about"],"pathSegments":[{"param":"channel","charset":"pkg","minLen":1,"maxLen":80},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.anaconda.org/package/{channel}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"anaconda_json"}}],"htmlRoutes":[{"id":"lang-registry-pack","match":{"hosts":["cran.r-project.org"],"pathPrefix":"/web/packages/","exactSegments":false},"mode":"cran_html"},{"id":"lang-registry-pack","match":{"hosts":["cocoapods.org"],"pathPrefix":"/pods/","exactSegments":false},"mode":"cocoapods_html"}]},{"id":"laserfiche-weblink","name":"Laserfiche WebLink Public Document Portals","category":"public-records","description":"Universal Laserfiche WebLink adapter for city and county records portals. DocView.aspx and Browse.aspx links that carry id and repo (as WebLink share links do) upgrade to the anonymous JSON services the viewer itself calls: document name, folder path, template, created/modified dates, page count and metadata fields, or a folder listing with links. No cookies or login are used; the CookieCheck redirect only guards the HTML shell.","domains":["cc-publicdocs.santa-ana.org","records.hawaiicounty.gov","docs.southbendin.gov","weblink.winterspringsfl.org"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://cc-publicdocs.santa-ana.org/WebLink/DocView.aspx?id=82504&dbid=1&repo=Clerk","https://cc-publicdocs.santa-ana.org/WebLink/Browse.aspx?id=82479&dbid=1&repo=Clerk"],"routes":[{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"DocView.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/DocumentService.aspx/GetBasicDocumentInfo","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"entryId\":{id}}","maxBytes":2097152},"extract":{"jsonMode":"laserfiche_doc_json"}},{"match":{"exactSegments":true,"pathSegments":[{"param":"vdir","charset":"slug","minLen":2,"maxLen":40},"Browse.aspx"],"queryParams":[{"name":"id","param":"id","charset":"digits","minLen":1,"maxLen":12},{"name":"repo","param":"repo","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://{host}/{vdir}/FolderListingService.aspx/GetFolderListing2","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"repoName\":\"{repo}\",\"folderId\":{id},\"getNewListing\":true,\"start\":0,\"end\":50,\"sortColumn\":\"\",\"sortAscending\":true}","maxBytes":4194304},"extract":{"jsonMode":"laserfiche_folder_json"}}],"htmlRoutes":[{"id":"laserfiche-weblink","match":{"exactSegments":false},"mode":"laserfiche_missing_repo_html"}]},{"id":"legacy-cart","name":"Legacy Shopping Carts (OpenCart, nopCommerce, Shift4Shop, Volusion)","category":"commerce-social","description":"Extracts OpenCart, nopCommerce, Shift4Shop, and Volusion product JSON-LD, Microdata, and spec-table DOM while filtering template noise.","domains":["www.eurekagolf.co.uk","www.sturdybuiltonline.com","www.cctvcamerapros.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.eurekagolf.co.uk/oakley-standard-polo-shirt-pacific-blue","https://www.sturdybuiltonline.com/Steel-Diamond-Plate-Utility-Trailer-Fender-Single-Axle-10-in-x-32-in-x-13-in_p_215.html","https://www.cctvcamerapros.com/HDMI-to-USB-Converter-p/hdmi-u3.htm"],"htmlRoutes":[{"id":"legacy-cart","match":{"exactSegments":false},"mode":"legacy_cart_html"}]},{"id":"legistar","name":"Legistar Municipal Council Legislation & Meetings","category":"public-records","description":"Upgrades .legistar.com municipal council portals to the keyless webapi.legistar.com REST API for ordinances, resolutions, and meetings.","domains":["*.legistar.com"],"exampleUrls":["https://seattle.legistar.com/Legislation.aspx","https://seattle.legistar.com/Calendar.aspx"],"routes":[{"match":{"anyOf":[{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathSuffix":"calendar.aspx","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"pathContainsSegment":"calendar","derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}}]},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/events?$top=20&$orderby=EventDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Council — Recent Meetings (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":20,"itemVars":{"agendaUrl":{"paths":["EventInSiteURL"],"requireHttps":true},"linkCell":{"template":"[Agenda]({agendaUrl})","whenVars":["agendaUrl"],"default":"-"}},"columns":[{"header":"Date","paths":["EventDate"],"sliceMax":10},{"header":"Body / Committee","paths":["EventBodyName"]},{"header":"Location","paths":["EventLocation"]},{"header":"Link","template":"{linkCell}"}]}]}},{"match":{"hostSubdomain":{"suffix":".legistar.com","param":"client","reserved":["www","webapi"]},"derivedParams":{"clientUpper":{"fromParam":"client","transform":"upper"}}},"twin":{"fetchUrl":"https://webapi.legistar.com/v1/{client}/matters?$top=25&$orderby=MatterIntroDate%20desc","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"items","requireAnyFields":["items"],"titleTemplate":"{clientUpper} Municipal Legislation — Recent Matters (Legistar)","sections":[{"heading":"","arrayPath":"items","limit":25,"columns":[{"header":"File #","paths":["MatterFile"],"code":true},{"header":"Type","paths":["MatterTypeName"]},{"header":"Status","paths":["MatterStatusName"]},{"header":"Introduced","paths":["MatterIntroDate"],"sliceMax":10},{"header":"Title","paths":["MatterTitle","MatterName"]}]}]}}]},{"id":"lemmy","name":"Lemmy Federated Link Aggregator (Universal Engine)","category":"commerce-social","description":"Upgrades Lemmy posts (/post/{id}), communities (/c/{name}), and /api/v3/* endpoints via JSON API with SSR HTML fallback while rejecting Cloudflare challenges.","domains":["lemmy.world","lemmy.ml","programming.dev","sh.itjust.works"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lemmy.world/api/v3/post?id=54926010","https://lemmy.world/api/v3/community?name=memes","https://lemmy.world/post/54926010","https://lemmy.ml/post/55819348"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v3","post"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","comment","list"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v3","community"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":false,"pathSegments":["post",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://{host}/api/v3/post?id={postId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"exactSegments":true,"pathSegments":["c",{"param":"communityName","charset":"brew_id","minLen":1,"maxLen":120,"reserved":["api","pictrs","feeds","u","post","search","communities","login","signup"]}]},"twin":{"fetchUrl":"https://{host}/api/v3/community?name={communityName}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}}],"htmlRoutes":[{"id":"lemmy","match":{"exactSegments":false},"mode":"lemmy_html"}]},{"id":"libraries-io","name":"Libraries.io Package Metadata API","category":"developer","description":"Extracts cross-ecosystem package metadata, latest stable release, dependents, and repository signals via the official Libraries.io API (LIBRARIES_IO_API_KEY).","domains":["libraries.io"],"auth_mode":"key","exampleUrls":["https://libraries.io/api/npm/express"],"routes":[{"match":{"hosts":["libraries.io"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":["npm",{"param":"scope","charset":"npm_scope","minLen":2,"maxLen":80},{"param":"pkg","charset":"npm_pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://libraries.io/api/npm/{scope}%2F{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}},{"match":{"hosts":["libraries.io"],"exactSegments":false,"pathSegments":[{"param":"platform","allowValues":["npm","pypi","rubygems","cargo","go","nuget","packagist","hex","maven","pub","cran","cocoapods","conda"]},{"param":"pkg","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://libraries.io/api/{platform}/{pkg}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"libraries_io_json"}}]},{"id":"lightspeed-ecom","name":"Lightspeed eCom (C-Series)","category":"commerce-social","description":"Extracts Lightspeed eCom C-Series ?format=json product and collection twins plus custom-domain storefront HTML/companion discovery.","domains":["www.kayasieraden.nl"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html","https://www.kayasieraden.nl/nl/feestdagen-actie-gratis-armband.html?format=json"],"routes":[{"match":{"hosts":["www.kayasieraden.nl"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"lightspeed_ecom_json"}}],"htmlRoutes":[{"id":"lightspeed-ecom","match":{"exactSegments":false},"mode":"lightspeed_ecom_html"}]},{"id":"lobsters","name":"Lobste.rs Computing Stories","category":"commerce-social","description":"Upgrades lobste.rs/s/ story pages to their .json feed with nested plain-text comments.","domains":["lobste.rs"],"exampleUrls":["https://lobste.rs/s/abc123/zero_alloc_go_parsers"],"match":{"exactSegments":false,"pathSegments":["s",{"param":"shortId","charset":"alnum","minLen":4,"maxLen":12}]},"twin":{"fetchUrl":"https://lobste.rs/s/{shortId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"storyUrl":{"paths":["url"]},"score":{"paths":["score"],"default":"0"},"user":{"paths":["submitter_user"]},"created":{"paths":["created_at"]},"tags":{"paths":["tags"],"itemWrap":"`","join":", "},"descPlain":{"paths":["description_plain"],"trim":true}},"titleTemplate":"{title}","authorVar":"user","publishedTimeVar":"created","metaLine":[{"label":"Score","template":"{score}"},{"label":"By","template":"@{user}","whenVar":"user"},{"label":"Tags","template":"{tags}","whenVar":"tags"},{"label":"Link","template":"{storyUrl}","whenVar":"storyUrl"}],"introVar":"descPlain","sections":[{"heading":"Comments","listArrayPath":"comments","limit":40,"indentField":"indent_level","indentOffset":-1,"maxIndent":6,"itemTemplate":"**@{user}** ({score} pts): {body}","requireItemVar":"body","itemVars":{"user":{"paths":["commenting_user"],"default":"user"},"score":{"paths":["score"],"default":"0"},"body":{"paths":["comment_plain"],"trim":true}}}],"linksVars":["storyUrl"]}},{"id":"loc-gov","name":"Library of Congress (loc.gov)","category":"public-records","description":"Library of Congress JSON (?fo=json) adapter for items, resources, and collections (excluding Chronicling America and disallowed search paths).","domains":["loc.gov","www.loc.gov"],"auth_mode":"pub","min_interval_ms":5000,"strict_robots":true,"exampleUrls":["https://www.loc.gov/item/2014645520/","https://www.loc.gov/item/2014645520/?fo=json","https://www.loc.gov/resource/ds.05251/?fo=json"],"routes":[{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["item",{"param":"itemId","charset":"url_seg","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://www.loc.gov/item/{itemId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["resource",{"param":"resourceId","charset":"url_seg","minLen":2,"maxLen":120}]},"twin":{"fetchUrl":"https://www.loc.gov/resource/{resourceId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}},{"match":{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"reservedFirstSegment":["chroniclingamerica","search","fedsearch","cgi-bin","web_arch","myloc","nationalfilmregistry"],"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]},"twin":{"fetchUrl":"https://www.loc.gov/collections/{collectionId}/?fo=json","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"pub"},"extract":{"jsonMode":"loc_gov_json"}}],"htmlRoutes":[{"id":"loc-gov","match":{"anyOf":[{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/item/"},{"hosts":["loc.gov","www.loc.gov"],"pathPrefix":"/resource/"},{"hosts":["loc.gov","www.loc.gov"],"exactSegments":false,"pathSegments":["collections",{"param":"collectionId","charset":"alnum_dash","reserved":["chronicling-america"],"minLen":2,"maxLen":100}]}]},"mode":"loc_gov_html"}]},{"id":"mastodon-status","name":"Mastodon & Fediverse Statuses (Universal Engine)","category":"commerce-social","description":"Upgrades Fediverse status permalinks (/@/) on any Mastodon instance to /api/v1/statuses/ JSON.","domains":["mastodon.social","fosstodon.org","hachyderm.io"],"universalEngine":true,"exampleUrls":["https://fosstodon.org/@realpython/117694898741277050"],"match":{"excludeHosts":["medium.com","*.medium.com","tiktok.com","*.tiktok.com","threads.net","*.threads.net"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle"},{"param":"statusId","charset":"digits","minLen":15,"maxLen":24}]},"twin":{"id":"mastodon-status","fetchUrl":"https://{host}/api/v1/statuses/{statusId}","kind":"json","accept":"application/json"},"extract":{"requireFields":["content","account.acct"],"vars":{"acct":{"paths":["account.acct"]},"displayName":{"paths":["account.display_name"],"fallbackTemplate":"{acct}"},"createdAt":{"paths":["created_at"]},"spoiler":{"paths":["spoiler_text"],"trim":true},"body":{"paths":["content"],"format":"html_to_md"}},"titleTemplate":"{displayName} (@{acct}@{host})","authorTemplate":"@{acct}@{host}","publishedTimeVar":"createdAt","blockquoteTemplate":"> [!NOTE]\n> **Content Note**: {spoiler}","blockquoteWhenVar":"spoiler","bodyVar":"body","sections":[{"heading":"","listArrayPath":"media_attachments","limit":16,"requireItemVar":"mediaDesc","itemVars":{"mediaDesc":{"paths":["description"],"trim":true}},"itemTemplate":"*Media description*: {mediaDesc}"}]}},{"id":"maven-central","name":"Maven Central","category":"developer","description":"Upgrades central.sonatype.com/artifact//[/] pages to the keyless Maven Central Solr JSON API (central.sonatype.com for versioned artifacts, search.maven.org for artifact summaries) with Maven/Gradle coordinates and artifact metadata.","domains":["central.sonatype.com"],"exampleUrls":["https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind","https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.18.2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160},{"param":"v","charset":"pkg","reserved":["versions","overview","dependencies","dependents","jar"],"minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://central.sonatype.com/solrsearch/select?q=g:{g}+AND+a:{a}+AND+v:{v}&core=gav&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["v","latestVersion"]},"packaging":{"paths":["p"]},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}/{ver}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}},{"match":{"exactSegments":true,"pathSegments":["artifact",{"param":"g","charset":"pkg","minLen":1,"maxLen":160},{"param":"a","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://search.maven.org/solrsearch/select?q=g:{g}+AND+a:{a}&rows=20&wt=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rootPath":"response.docs.0","requireFields":["id","g","a"],"vars":{"groupId":{"paths":["g"]},"artifactId":{"paths":["a"]},"ver":{"paths":["latestVersion","v"]},"packaging":{"paths":["p"]},"versionCount":{"paths":["versionCount"],"format":"int_comma"},"published":{"paths":["timestamp"],"format":"epoch_ms_date"},"artifacts":{"paths":["ec"],"itemWrap":"`","join":", ","limit":12},"centralUrl":{"template":"https://central.sonatype.com/artifact/{groupId}/{artifactId}","requireHttps":true}},"titleTemplate":"{groupId}:{artifactId}:{ver} (Maven Central)","titleWhenVar":"ver","titleFallbackTemplate":"{groupId}:{artifactId} (Maven Central)","publishedTimeVar":"published","bullets":[{"label":"Maven Coordinate","template":"`{groupId}:{artifactId}:{ver}`","whenVar":"ver"},{"label":"Gradle","template":"`implementation(\"{groupId}:{artifactId}:{ver}\")`","whenVar":"ver"},{"label":"Packaging","template":"{packaging}","whenVar":"packaging"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Classifiers / Files","template":"{artifacts}","whenVar":"artifacts"}],"linksVars":["centralUrl"]}}]},{"id":"mcp-directories","name":"Community MCP Directories (Smithery, Glama, PulseMCP)","category":"developer","description":"Extracts community MCP directory listings from Smithery Registry API and public Glama/PulseMCP HTML pages, tagging every record trustTier=community, untrusted=true.","domains":["smithery.ai","registry.smithery.ai","glama.ai","pulsemcp.com","www.pulsemcp.com"],"auth_mode":"pub","exampleUrls":["https://registry.smithery.ai/servers?pageSize=5","https://www.pulsemcp.com/servers?q=github","https://glama.ai/mcp/servers?query=github"],"routes":[{"match":{"hosts":["registry.smithery.ai"],"pathPrefix":"/servers"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{ns}/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}},{"match":{"hosts":["smithery.ai"],"exactSegments":true,"pathSegments":["server",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://registry.smithery.ai/servers/{slug}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"smithery_registry_json"}}],"htmlRoutes":[{"id":"mcp-directories","match":{"hosts":["glama.ai"],"pathPrefix":"/mcp/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["pulsemcp.com","www.pulsemcp.com"],"pathPrefix":"/servers","exactSegments":false},"mode":"mcp_directory_html"},{"id":"mcp-directories","match":{"hosts":["smithery.ai"],"exactSegments":false},"mode":"mcp_directory_html"}]},{"id":"mcp-registry","name":"Official Model Context Protocol (MCP) Registry","category":"developer","description":"Extracts official MCP server listings, remotes, and packages from registry.modelcontextprotocol.io tagged trustTier=official, untrusted=false.","domains":["registry.modelcontextprotocol.io"],"auth_mode":"pub","exampleUrls":["https://registry.modelcontextprotocol.io/v0/servers?limit=5"],"routes":[{"match":{"hosts":["registry.modelcontextprotocol.io"],"anyOf":[{"pathPrefix":"/v0/"},{"pathPrefix":"/v0.1/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"mcp_registry_json"}}]},{"id":"mediawiki","name":"Wikipedia & MediaWiki Encyclopedias","category":"commerce-social","description":"Robots-compliant Wikipedia & MediaWiki adapter: strips [ ], Edit links, [n] citation markers, [edit], and navigation chrome with 24h article caching; pair with search({ query, wikipedia: true, lang }) for Special:Search-free article discovery and Wikimedia Enterprise or dumps.wikimedia.org for bulk corpus access.","domains":["*.wikipedia.org","wiki.archlinux.org"],"universalEngine":true,"exampleUrls":["https://en.wikipedia.org/wiki/HTTP/2"],"htmlRoutes":[{"id":"mediawiki","match":{"exactSegments":false},"mode":"markdown_clean","cleanPreset":"mediawiki"}]},{"id":"medicaid-nadac","name":"Medicaid NADAC Drug Pricing (DKAN)","category":"research-health","description":"Extracts data.medicaid.gov NADAC drug pricing DKAN metastore datasets, datastore queries, and /dataset/{id} twins while rejecting empty CMS Medicaid Data React shells.","domains":["data.medicaid.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/fbb83258-11c7-47f5-8b18-5f8e79f7e704","https://data.medicaid.gov/api/1/datastore/query/e3af839d-8175-5be0-b94e-4a302ed7a035/0?limit=5","https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704"],"routes":[{"match":{"pathPrefix":"/api/1/metastore/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}},{"match":{"pathPrefix":"/api/1/datastore/query/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}},{"match":{"exactSegments":false,"pathSegments":["dataset",{"param":"datasetId","charset":"alnum_dash","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/{datasetId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medicaid_nadac_json"}}],"htmlRoutes":[{"id":"medicaid-nadac","match":{"exactSegments":false},"mode":"medicaid_nadac_html"}]},{"id":"medium","name":"Medium","category":"commerce-social","description":"Extracts Medium ?format=json responses with linear anti-XSSI prefix stripping, Medium RSS feeds, and Medium article HTML.","domains":["medium.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://medium.com/p/62edea66ffa4?format=json","https://medium.com/@medium/updating-our-rules-june-2023-62edea66ffa4","https://medium.com/feed/@medium"],"routes":[{"match":{"hosts":["medium.com"],"exactSegments":false,"queryParams":[{"name":"format","param":"fmt","allowValues":["json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":["p",{"param":"postId","charset":"alnum","minLen":8,"maxLen":20}]},"twin":{"fetchUrl":"https://medium.com/p/{postId}?format=json","kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"exactSegments":true,"pathSegments":[{"param":"userHandle","charset":"at_handle","minLen":2,"maxLen":80},{"param":"slugId","charset":"slug","minLen":10,"maxLen":200}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"text","accept":"application/json"},"extract":{"textMode":"medium_xssi_json"}},{"match":{"hosts":["medium.com"],"pathPrefix":"/feed/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"medium_rss_xml"}}],"htmlRoutes":[{"id":"medium","match":{"exactSegments":false},"mode":"medium_html"}]},{"id":"medlineplus","name":"NLM MedlinePlus","category":"research-health","description":"MedlinePlus Health Topics XML web service, MedlinePlus Connect JSON API, and medlineplus.gov topic HTML extractor.","domains":["medlineplus.gov","www.medlineplus.gov","wsearch.nlm.nih.gov","connect.medlineplus.gov"],"auth_mode":"pub","exampleUrls":["https://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=diabetes&retmax=2","https://medlineplus.gov/diabetes.html"],"routes":[{"match":{"hosts":["wsearch.nlm.nih.gov"],"pathEquals":["/ws/query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/xml","maxBytes":2097152},"extract":{"textMode":"medlineplus_xml"}},{"match":{"hosts":["connect.medlineplus.gov"],"pathEquals":["/service"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"knowledgeResponseType":"application/json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"medlineplus_connect_json"}}],"htmlRoutes":[{"id":"medlineplus","match":{"hosts":["medlineplus.gov","www.medlineplus.gov"],"exactSegments":false},"mode":"medlineplus_html"}]},{"id":"medusa","name":"Medusa Storefront & Store API","category":"commerce-social","description":"Opt-in page-key adapter for Medusa /store/products API twins with Next.js RSC, JSON-LD, and DOM storefront HTML fallback when disabled.","domains":["next.medusajs.com","www.mattsleeps.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://next.medusajs.com/dk/products/hoodie","https://www.mattsleeps.com/en/beds"],"routes":[{"match":{"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["store","products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}},{"match":{"optionalLeadingLocale":true,"pathSegments":["store","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"commerceMode":"medusa_product"}}],"htmlRoutes":[{"id":"medusa","match":{"exactSegments":false},"mode":"medusa_html"}]},{"id":"meetup-luma","name":"Meetup & Luma Events","category":"commerce-social","description":"Extracts event title, schedule, venue/location, organizer, and description from Meetup and Luma (lu.ma / luma.com) via Schema.org Event JSON-LD and __NEXT_DATA__ hydration.","domains":["meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com"],"auth_mode":"html","exampleUrls":["https://www.meetup.com/lawofattractioncentre/events/317269557/","https://luma.com/8jye50v0"],"htmlRoutes":[{"id":"meetup-luma","match":{"exactSegments":false},"mode":"meetup_luma_html"}]},{"id":"midmarket-career-portals","name":"Mid-Market Career Portals (Paycom, Paycor, ADP)","category":"jobs","description":"Extracts structured open roles from Paycom (/v4/ats/web.php/portal/ & /api/ats/job-postings/), ADP Workforce Now (/mascsr/default/careercenter/), and public Paycor career pages.","domains":["pc00.paycomonline.com","www.paycomonline.net","workforcenow.adp.com","recruiting.adp.com","www.paycor.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://workforcenow.adp.com/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions?cid=7a48330e-b9d5-4122-9051-71a47afa46d5"],"routes":[{"match":{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/api/ats/job-postings/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paycom_json"}},{"match":{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"pathPrefix":"/mascsr/default/careercenter/public/events/staffing/v1/job-requisitions"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"adp_wfn_json"}}],"htmlRoutes":[{"id":"midmarket-career-portals","mode":"midmarket_career_html","match":{"excludeHosts":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com","jobs.smartrecruiters.com","*.oraclecloud.com","jobs.jobvite.com","recruitingbypaycor.com"],"anyOf":[{"hostSubdomain":{"suffix":".paycomonline.net","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hostSubdomain":{"suffix":".paycomonline.com","param":"tenant","reserved":["login","auth","static","assets"]},"pathPrefix":"/v4/ats/web.php/portal/"},{"hosts":["workforcenow.adp.com","recruiting.adp.com"],"exactSegments":false},{"hosts":["www.paycor.com"],"pathPrefix":"/company/careers","exactSegments":false}]}}]},{"id":"mlb-statsapi","name":"MLB Stats API","category":"commerce-social","description":"Extracts public MLB schedule, team, game linescore, standings, and player data from statsapi.mlb.com JSON endpoints with mlb.com HTML/JSON-LD fallback.","domains":["statsapi.mlb.com","mlb.com","www.mlb.com"],"auth_mode":"pub","exampleUrls":["https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=2024-10-30","https://statsapi.mlb.com/api/v1/teams/119","https://statsapi.mlb.com/api/v1/game/775296/linescore","https://www.mlb.com/dodgers"],"routes":[{"match":{"hosts":["statsapi.mlb.com"],"anyOf":[{"pathPrefix":"/api/v1/schedule"},{"pathPrefix":"/api/v1/teams"},{"pathPrefix":"/api/v1/game/"},{"pathPrefix":"/api/v1/standings"},{"pathPrefix":"/api/v1/people"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"mlb_statsapi_json"}}],"htmlRoutes":[{"id":"mlb-statsapi","mode":"mlb_statsapi_html","match":{"hosts":["mlb.com","www.mlb.com"],"exactSegments":false}}]},{"id":"model-hub-pack","name":"Model Hub Pack (Replicate & Civitai)","category":"genai","description":"Extracts ML model metadata, versions, hardware, and descriptions from Replicate and Civitai SSR/Next.js HTML pages while honoring robots.txt.","domains":["replicate.com","www.replicate.com","civitai.com","www.civitai.com"],"auth_mode":"pub","exampleUrls":["https://replicate.com/meta/meta-llama-3-8b-instruct","https://civitai.com/models/4201/realistic-vision-v60-b1"],"htmlRoutes":[{"id":"model-hub-pack","match":{"hosts":["replicate.com","www.replicate.com"],"exactSegments":false},"mode":"replicate_html"},{"id":"model-hub-pack","match":{"hosts":["civitai.com","www.civitai.com"],"exactSegments":false},"mode":"civitai_html"}]},{"id":"modern-community-pack","name":"Modern Community Pack","category":"commerce-social","description":"Extracts community discussions, authors, and timestamps from Higher Logic, Bettermode (rendered SSR DOM only), and Circle HTML while rejecting soft-404s and empty shells.","domains":["community.broadcom.com","community.flutterflow.io","community.xano.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://community.broadcom.com/vmware-cloud-foundation/discussion/black-screen-after-upgrading-opensuse-leap-16-0-to-16-1-disabling-vmware-graphics-driver-restores-desktop","https://community.flutterflow.io/discussions/post/how-to-build-a-browser-based-instagram-story-viewer-with-flutterflow-lldyNB3IG314wPU","https://community.xano.com/ask-the-community/post/api-cache-bug-0GJQtNpHlTb471k"],"htmlRoutes":[{"id":"modern-community-pack","match":{"exactSegments":false},"mode":"modern_community_pack_html"}]},{"id":"multifamily-portals","name":"Multifamily Apartment Portals (RentCafe / Entrata / RealPage / Jonah)","category":"commerce-social","description":"Extracts apartment floor plans, square footage, and lease pricing from RentCafe, Entrata, RealPage, and Jonah Systems multifamily portals while honoring Disallow: /*.ashx.","domains":["*.rentcafe.com","*.entrata.com","*.realpage.com","www.canvasatmidlothian.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.canvasatmidlothian.com/"],"htmlRoutes":[{"id":"multifamily-portals","match":{"exactSegments":false},"mode":"multifamily_portals_html"}]},{"id":"municipal-cms-pack","name":"Municipal CMS Pack (Revize & OpenCities)","category":"public-records","description":"Universal HTML extractor for Revize and Granicus OpenCities (formerly Vision Internet) municipal government portals.","domains":["www.maplevalleywa.gov","www.reno.gov","www.culvercity.gov","www.glendaleaz.gov"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.maplevalleywa.gov/government/city_council_meetings_agendas_and_minutes.php","https://www.culvercity.gov/Home","https://www.glendaleaz.gov/Home"],"htmlRoutes":[{"id":"municipal-cms-pack","match":{"exactSegments":false},"mode":"municipal_cms_html"}]},{"id":"municode","name":"Municode Municipal Codes","category":"public-records","description":"Municode API JSON and municipal code library HTML adapter for city and county ordinances.","domains":["library.municode.com","api.municode.com"],"auth_mode":"pub","exampleUrls":["https://library.municode.com/tx/austin/codes/code_of_ordinances","https://api.municode.com/States"],"routes":[{"match":{"hosts":["api.municode.com"],"pathPrefix":"/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"municode_json"}}],"htmlRoutes":[{"id":"municode","match":{"hosts":["library.municode.com"],"exactSegments":false},"mode":"municode_html"}]},{"id":"nasa-apis","name":"NASA Open APIs & Image Library","category":"research-health","description":"NASA api.nasa.gov (APOD, NeoWs, EPIC with DEMO_KEY fallback or configured NASA_API_KEY) and keyless images-api.nasa.gov search.","domains":["api.nasa.gov","images-api.nasa.gov"],"auth_mode":"key","exampleUrls":["https://api.nasa.gov/neo/rest/v1/feed/today?detailed=false","https://api.nasa.gov/planetary/apod?date=2024-07-04","https://images-api.nasa.gov/search?q=apollo+11&page_size=2"],"routes":[{"match":{"hosts":["api.nasa.gov"],"anyOf":[{"pathPrefix":"/planetary/apod"},{"pathPrefix":"/neo/"},{"pathPrefix":"/EPIC/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}},{"match":{"hosts":["images-api.nasa.gov"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/asset/"},{"pathPrefix":"/metadata/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":4194304},"extract":{"jsonMode":"nasa_apis_json"}}]},{"id":"national-archives","name":"U.S. National Archives (NARA Catalog)","category":"public-records","description":"National Archives and Records Administration (NARA) Catalog API v2 adapter (catalog.archives.gov/api/v2) with HTML fallback.","domains":["catalog.archives.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://catalog.archives.gov/api/v2/records/search?q=constitution","https://catalog.archives.gov/id/1667751"],"routes":[{"match":{"hosts":["catalog.archives.gov"],"pathPrefix":"/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}},{"match":{"hosts":["catalog.archives.gov"],"exactSegments":false,"pathSegments":["id",{"param":"naId","charset":"digits","minLen":1,"maxLen":20}]},"twin":{"fetchUrl":"https://catalog.archives.gov/api/v2/records/search?naId={naId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"national_archives_json"}}],"htmlRoutes":[{"id":"national-archives","match":{"hosts":["catalog.archives.gov"],"exactSegments":false},"mode":"national_archives_html"}]},{"id":"ncaa-espn","name":"NCAA & ESPN","category":"commerce-social","description":"Extracts NCAA and ESPN sports articles, scoreboards, standings, and public sports API JSON plus HTML JSON-LD and __espnfitt__ / turner_metadata hydration.","domains":["ncaa.com","www.ncaa.com","espn.com","www.espn.com","site.api.espn.com","sports.core.api.espn.com","site.web.api.espn.com","data.ncaa.com","sdataprod.ncaa.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.espn.com/mlb/story/_/id/50328768/free-agency-tracker-offseason-trades-moves-2026-2027","https://www.espn.com/nfl/scoreboard","https://www.ncaa.com/news/football/article/2026-11-25/4-games-storylines-rivalry-week-could-impact-college-football-playoff-bracket","https://sports.core.api.espn.com/v2/sports/football/leagues/nfl"],"routes":[{"match":{"hosts":["sports.core.api.espn.com"],"pathPrefix":"/v2/sports/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.web.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["site.api.espn.com"],"pathPrefix":"/apis/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}},{"match":{"hosts":["data.ncaa.com"],"pathPrefix":"/cas/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ncaa_espn_json"}}],"htmlRoutes":[{"id":"ncaa-espn","match":{"hosts":["espn.com","www.espn.com","ncaa.com","www.ncaa.com"]},"mode":"ncaa_espn_html"}]},{"id":"nces-ipeds","name":"NCES IPEDS & Urban Institute Education Data","category":"public-records","description":"NCES IPEDS and Digest of Education Statistics HTML adapter with Urban Institute Education Data API JSON support (strict robots).","domains":["nces.ed.gov","educationdata.urban.org"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://nces.ed.gov/ipeds/use-the-data","https://nces.ed.gov/programs/digest/current_tables.asp"],"routes":[{"match":{"hosts":["educationdata.urban.org"],"exactSegments":false,"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"pub"},"extract":{"jsonMode":"nces_ipeds_json"}}],"htmlRoutes":[{"id":"nces-ipeds","match":{"hosts":["nces.ed.gov","educationdata.urban.org"],"exactSegments":false},"mode":"nces_ipeds_html"}]},{"id":"ncua-credit-unions","name":"NCUA Credit Union Lookup","category":"finance","description":"Extracts NCUA credit union details and call report pages with strict robots.txt enforcement (honoring mapping.ncua.gov Disallow /) and ncua.gov HTML fallback.","domains":["mapping.ncua.gov","ncua.gov","www.ncua.gov"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://ncua.gov/analysis/credit-union-corporate-call-report-data","https://mapping.ncua.gov/CreditUnionDetails/60006"],"routes":[{"match":{"hosts":["mapping.ncua.gov"],"exactSegments":false,"pathSegments":["CreditUnionDetails",{"param":"charter","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://mapping.ncua.gov/api/CreditUnionDetails/{charter}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}},{"match":{"hosts":["mapping.ncua.gov"],"pathPrefix":"/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"ncua_json"}}],"htmlRoutes":[{"id":"ncua-credit-unions","match":{"hosts":["ncua.gov","www.ncua.gov","mapping.ncua.gov"],"exactSegments":false},"mode":"ncua_html"}]},{"id":"neogov","name":"NeoGov GovernmentJobs & SchoolJobs","category":"jobs","description":"Extracts structured public-sector job feeds and postings from NeoGov GovernmentJobs and SchoolJobs RSS/JSON/HTML while strictly honoring robots.txt.","domains":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.governmentjobs.com/careers/lacounty/rss","https://www.governmentjobs.com/careers/lacounty","https://www.schooljobs.com/careers/lausd"],"routes":[{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":"/rss","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".rss","exactSegments":false}]},"twin":{"id":"neogov-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"NeoGov Public Sector Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["category","department"],"default":"-"},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","department":"{dept}","location":"{loc}","postedAt":"{pubDate}","source":"neogov"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"pathSuffix":".json","exactSegments":false}]},"twin":{"id":"neogov-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"neogov_json"}}],"htmlRoutes":[{"id":"neogov","mode":"neogov_html","match":{"hosts":["governmentjobs.com","www.governmentjobs.com","*.governmentjobs.com","schooljobs.com","www.schooljobs.com","*.schooljobs.com"],"exactSegments":false}}]},{"id":"newsletter-archives","name":"Newsletter Archives (Beehiiv / Ghost / Buttondown / Kit)","category":"commerce-social","description":"Extracts Ghost Content API posts, scoped Beehiiv/Ghost/Buttondown RSS feeds, and newsletter archive HTML pages.","domains":["ghost.org","buttondown.com","rss.beehiiv.com","aibrews.beehiiv.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://ghost.org/changelog/rss/","https://ghost.org/changelog/","https://buttondown.com/hillelwayne/rss","https://aibrews.beehiiv.com/"],"routes":[{"match":{"pathPrefix":"/ghost/api/content/posts","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"newsletter_ghost_json"}},{"match":{"hosts":["rss.beehiiv.com"],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["buttondown.com"],"exactSegments":true,"pathSegments":[{"param":"pub","charset":"slug","minLen":1,"maxLen":80},"rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hosts":["ghost.org"],"pathEquals":["/changelog/rss","/changelog/rss/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".beehiiv.com","param":"pub"},"pathEquals":["/feed","/rss"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}},{"match":{"hostSubdomain":{"suffix":".ghost.io","param":"pub"},"pathEquals":["/rss","/rss/","/feed","/feed/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newsletter_rss_xml"}}],"htmlRoutes":[{"id":"newsletter-archives","match":{"exactSegments":false},"mode":"newsletter_archives_html"}]},{"id":"newswire-pack","name":"Newswire Pack (PR Newswire / Business Wire / GlobeNewswire)","category":"commerce-social","description":"Extracts PR Newswire, Business Wire, and GlobeNewswire RSS feeds and NewsArticle HTML press releases.","domains":["www.prnewswire.com","prnewswire.com","www.businesswire.com","businesswire.com","www.globenewswire.com","globenewswire.com"],"auth_mode":"pub","exampleUrls":["https://www.prnewswire.com/rss/news-releases-list.rss","https://www.prnewswire.com/news-releases/binance-secures-in-principle-approval-in-gelephu-mindfulness-city-plans-asia-hub-in-bhutan-302951995.html"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/rss/"},{"pathPrefix":"/RssFeed/"},{"pathPrefix":"/feed/"},{"pathSuffix":".rss"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"textMode":"newswire_rss_xml"}}],"htmlRoutes":[{"id":"newswire-pack","match":{"exactSegments":false},"mode":"newswire_html"}]},{"id":"nfpa","name":"NFPA Standards & Codes (www.nfpa.org)","category":"public-records","description":"Unpacks Sitecore JSS __NEXT_DATA__ storefront-main placeholders (PageTitle, ContentBlock, SplitScreenCalloutComponent, Accordion, TwoColumnVideo) on www.nfpa.org without headless browser rendering, never touching link.nfpa.org or robots-disallowed /en/ and /-/media/.","domains":["www.nfpa.org"],"exampleUrls":["https://www.nfpa.org/codes-and-standards/nfpa-70-standard-development/70","https://www.nfpa.org/for-professionals/codes-and-standards/list-of-codes-and-standards/free-access"],"htmlRoutes":[{"id":"nfpa","mode":"sitecore_jss_html","match":{"exactSegments":false,"reservedFirstSegment":["-","ar","en","data","standard_items"]}}]},{"id":"nhl-api","name":"NHL Web API","category":"commerce-social","description":"Extracts public NHL standings, schedule, club stats, and gamecenter landing JSON from api-web.nhle.com with nhl.com HTML/JSON-LD fallback.","domains":["api-web.nhle.com","nhl.com","www.nhl.com"],"auth_mode":"pub","exampleUrls":["https://api-web.nhle.com/v1/standings/now","https://api-web.nhle.com/v1/schedule/now","https://api-web.nhle.com/v1/club-stats/TOR/now","https://api-web.nhle.com/v1/gamecenter/2024020001/landing"],"routes":[{"match":{"hosts":["api-web.nhle.com"],"anyOf":[{"pathPrefix":"/v1/standings"},{"pathPrefix":"/v1/schedule"},{"pathPrefix":"/v1/club-stats/"},{"pathPrefix":"/v1/gamecenter/"},{"pathPrefix":"/v1/player/"},{"pathPrefix":"/v1/roster/"}],"exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nhl_api_json"}}],"htmlRoutes":[{"id":"nhl-api","mode":"nhl_api_html","match":{"hosts":["nhl.com","www.nhl.com"],"exactSegments":false}}]},{"id":"nhtsa-vpic-recalls","name":"NHTSA vPIC & Safety Recalls API","category":"public-records","description":"Formats keyless vpic.nhtsa.dot.gov VIN decode and api.nhtsa.gov vehicle recalls & complaints JSON endpoints into structured Markdown tables (respecting HTTP 403/robots.txt without bypass).","domains":["vpic.nhtsa.dot.gov","api.nhtsa.gov"],"exampleUrls":["https://vpic.nhtsa.dot.gov/api/vehicles/decodevinvalues/1HGCM82633A004352?format=json","https://api.nhtsa.gov/recalls/recallsByVehicle?make=honda&model=accord&modelYear=2020"],"routes":[{"match":{"hosts":["vpic.nhtsa.dot.gov"],"exactSegments":true,"pathSegments":["api","vehicles",{"param":"endpoint","allowValues":["decodevinvalues","decodevinvaluesextended"]},{"param":"vin","charset":"alnum","minLen":3,"maxLen":32}]},"twin":{"fetchUrl":"https://vpic.nhtsa.dot.gov/api/vehicles/{endpoint}/{vin}?format=json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["Results","Message"],"vars":{"vinOut":{"paths":["Results.0.VIN"],"fallbackTemplate":"{vin}"},"make":{"paths":["Results.0.Make"],"trim":true},"model":{"paths":["Results.0.Model"],"trim":true},"modelYear":{"paths":["Results.0.ModelYear"],"trim":true},"vehicleType":{"paths":["Results.0.VehicleType"],"trim":true},"bodyClass":{"paths":["Results.0.BodyClass"],"trim":true},"plantCountry":{"paths":["Results.0.PlantCountry"],"trim":true},"engineCylinders":{"paths":["Results.0.EngineCylinders"],"trim":true},"displacementL":{"paths":["Results.0.DisplacementL"],"trim":true},"fuelType":{"paths":["Results.0.FuelTypePrimary"],"trim":true},"errorCode":{"paths":["Results.0.ErrorCode"],"trim":true},"errorText":{"paths":["Results.0.ErrorText"],"trim":true},"message":{"paths":["Message"],"trim":true}},"titleTemplate":"{modelYear} {make} {model} — VIN {vinOut}","titleWhenVar":"make","titleFallbackTemplate":"NHTSA vPIC VIN Decode ({vinOut})","bullets":[{"label":"VIN","template":"`{vinOut}`"},{"label":"Make","template":"{make}","whenVar":"make"},{"label":"Model","template":"{model}","whenVar":"model"},{"label":"Model Year","template":"{modelYear}","whenVar":"modelYear"},{"label":"Vehicle Type","template":"{vehicleType}","whenVar":"vehicleType"},{"label":"Body Class","template":"{bodyClass}","whenVar":"bodyClass"},{"label":"Plant Country","template":"{plantCountry}","whenVar":"plantCountry"},{"label":"Engine Cylinders","template":"{engineCylinders}","whenVar":"engineCylinders"},{"label":"Displacement (L)","template":"{displacementL}","whenVar":"displacementL"},{"label":"Fuel Type","template":"{fuelType}","whenVar":"fuelType"},{"label":"Error Code","template":"`{errorCode}`","whenVar":"errorCode"},{"label":"Error Text","template":"{errorText}","whenVar":"errorText"},{"label":"Message","template":"{message}","whenVar":"message"}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/recalls/recallsByVehicle","/recalls/recallsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["Count","count"],"format":"int_comma","default":"0"},"message":{"paths":["Message","message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Recalls ({count} found)","introVar":"message","sections":[{"heading":"Recalls","arrayPath":"results","limit":50,"emptyText":"No recalls found.","columns":[{"header":"Campaign","paths":["NHTSACampaignNumber"],"code":true},{"header":"Date","paths":["ReportReceivedDate"]},{"header":"Component","paths":["Component"]},{"header":"Summary","paths":["Summary"],"sliceMax":240},{"header":"Consequence","paths":["Consequence"],"sliceMax":240},{"header":"Remedy","paths":["Remedy"],"sliceMax":240}]}]}},{"match":{"hosts":["api.nhtsa.gov"],"pathEquals":["/complaints/complaintsByVehicle","/complaints/complaintsByVehicle/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["results","Results"],"vars":{"count":{"paths":["count","Count"],"format":"int_comma","default":"0"},"message":{"paths":["message","Message"],"trim":true}},"titleTemplate":"NHTSA Vehicle Complaints ({count} found)","introVar":"message","sections":[{"heading":"Complaints","arrayPath":"results","limit":50,"emptyText":"No complaints found.","columns":[{"header":"ODI Number","paths":["odiNumber"],"code":true},{"header":"Date","paths":["dateOfIncident"]},{"header":"Components","paths":["components"]},{"header":"Summary","paths":["summary"],"sliceMax":240},{"header":"Crash","paths":["crash"]},{"header":"Fire","paths":["fire"]}]}]}}]},{"id":"nist-nvd","name":"NIST National Vulnerability Database (NVD)","category":"developer","description":"Upgrades nvd.nist.gov CVE pages to the keyless NVD REST v2 JSON API with CVSS scores, CWEs, and vendor advisories.","domains":["nvd.nist.gov","www.nvd.nist.gov"],"exampleUrls":["https://nvd.nist.gov/vuln/detail/CVE-2024-3094"],"match":{"exactSegments":false,"pathSegments":["vuln","detail",{"param":"cveId","charset":"cve_id","transform":"upper"}]},"twin":{"fetchUrl":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId={cveId}","kind":"json","accept":"application/json"},"extract":{"rootPath":"vulnerabilities.0.cve","requireFields":["id"],"vars":{"id":{"paths":["id"]},"desc":{"findInArrayLang":{"arrayPath":"descriptions","langField":"lang","langValue":"en","valueField":"value"},"trim":true},"descShort":{"template":"{desc}","whenVars":["desc"],"sliceMax":260},"baseScore":{"paths":["metrics.cvssMetricV40.0.cvssData.baseScore","metrics.cvssMetricV31.0.cvssData.baseScore","metrics.cvssMetricV30.0.cvssData.baseScore"]},"severity":{"paths":["metrics.cvssMetricV40.0.cvssData.baseSeverity","metrics.cvssMetricV40.0.baseSeverity","metrics.cvssMetricV31.0.cvssData.baseSeverity","metrics.cvssMetricV31.0.baseSeverity","metrics.cvssMetricV30.0.cvssData.baseSeverity","metrics.cvssMetricV30.0.baseSeverity"]},"vector":{"paths":["metrics.cvssMetricV40.0.cvssData.vectorString","metrics.cvssMetricV31.0.cvssData.vectorString","metrics.cvssMetricV30.0.cvssData.vectorString"]},"titleWithScore":{"template":"{id} ({severity} {baseScore})","whenVars":["severity","baseScore"]},"titleSevOnly":{"template":"{id} ({severity})","whenVars":["severity"]},"titleFull":{"template":"{titleWithScore}","whenVars":["titleWithScore"],"fallbackVar":"titleSevOnly"},"cvssScoreOnly":{"template":"**{baseScore}**","whenVars":["baseScore"]},"cvssScoreVec":{"template":"**{baseScore}** — `{vector}`","whenVars":["baseScore","vector"],"fallbackVar":"cvssScoreOnly"},"cvssScoreSev":{"template":"**{baseScore}** ({severity})","whenVars":["baseScore","severity"],"fallbackVar":"cvssScoreVec"},"cvssDisplay":{"template":"**{baseScore}** ({severity}) — `{vector}`","whenVars":["baseScore","severity","vector"],"fallbackVar":"cvssScoreSev"},"cwes":{"nestedSubValues":{"arrayPath":"weaknesses","subArrayField":"description","valueField":"value","excludeValues":["NVD-CWE-noinfo"],"join":", "}},"published":{"paths":["published"]},"publishedDate":{"paths":["published"],"sliceMax":10},"vulnStatus":{"paths":["vulnStatus"]},"cisaExploit":{"paths":["cisaExploitAdd"]}},"titleTemplate":"{titleFull}","titleWhenVar":"severity","titleFallbackTemplate":"{id}","descriptionVar":"descShort","publishedTimeVar":"published","bullets":[{"label":"CVSS Score","template":"{cvssDisplay}","whenVar":"cvssDisplay"},{"label":"Status","template":"{vulnStatus}","whenVar":"vulnStatus"},{"label":"Published","template":"{publishedDate}","whenVar":"publishedDate"},{"label":"Weaknesses (CWE)","template":"{cwes}","whenVar":"cwes"},{"label":"CISA KEV (Known Exploited)","template":"Added {cisaExploit}","whenVar":"cisaExploit"}],"sections":[{"heading":"Summary","textVar":"desc"},{"heading":"References & Advisories","arrayPath":"references","limit":15,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refTags":{"paths":["tags"],"join":", "}},"columns":[{"header":"URL","template":"{refUrl}"},{"header":"Tags","template":"{refTags}"}]}]}},{"id":"nlrb-cases","name":"National Labor Relations Board Cases & Dockets","category":"public-records","description":"Extracts NLRB unfair labor practice and representation case metadata, docket activity rows, and decision links from nlrb.gov.","domains":["www.nlrb.gov","nlrb.gov"],"auth_mode":"pub","exampleUrls":["https://www.nlrb.gov/case/13-CA-394913","https://www.nlrb.gov/cases-decisions/cases"],"htmlRoutes":[{"id":"nlrb-cases","match":{"exactSegments":false},"mode":"nlrb_cases_html"}]},{"id":"noaa-ncei-cdo","name":"NOAA NCEI Climate Data Online (CDO)","category":"research-health","description":"NOAA National Centers for Environmental Information CDO API v2 (token header) on www.ncei.noaa.gov with HTML fallback.","domains":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"auth_mode":"key","exampleUrls":["https://www.ncei.noaa.gov/cdo-web/api/v2/datasets?limit=2","https://www.ncei.noaa.gov/cdo-web/"],"routes":[{"match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov"],"pathPrefix":"/cdo-web/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"noaa_ncei_cdo_json"}}],"htmlRoutes":[{"id":"noaa-ncei-cdo","match":{"hosts":["www.ncei.noaa.gov","ncei.noaa.gov","www.ncdc.noaa.gov"],"exactSegments":false},"mode":"noaa_ncei_html"}]},{"id":"noaa-tides-currents","name":"NOAA Tides & Currents (CO-OPS)","category":"research-health","description":"NOAA Center for Operational Oceanographic Products and Services (CO-OPS) DataGetter and station metadata JSON APIs with stationhome HTML fallback.","domains":["tidesandcurrents.noaa.gov","api.tidesandcurrents.noaa.gov"],"auth_mode":"pub","exampleUrls":["https://api.tidesandcurrents.noaa.gov/api/prod/datagetter?date=latest&station=8518750&product=water_level&datum=MLLW&time_zone=gmt&units=english&format=json","https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/8518750.json","https://tidesandcurrents.noaa.gov/stationhome.html?id=8518750"],"routes":[{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathEquals":["/api/prod/datagetter"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["api.tidesandcurrents.noaa.gov"],"pathPrefix":"/mdapi/prod/webapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}},{"match":{"hosts":["tidesandcurrents.noaa.gov"],"pathEquals":["/stationhome.html"],"queryParams":[{"name":"id","param":"stationId","charset":"digits","minLen":5,"maxLen":12}]},"twin":{"fetchUrl":"https://api.tidesandcurrents.noaa.gov/mdapi/prod/webapi/stations/{stationId}.json","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"noaa_tides_json"}}],"htmlRoutes":[{"id":"noaa-tides-currents","match":{"hosts":["tidesandcurrents.noaa.gov"],"exactSegments":false},"mode":"noaa_tides_html"}]},{"id":"notion-public-site","name":"Notion Public Sites","category":"developer","description":"Extracts public Notion site pages (*.notion.site and www.notion.so) via POST /api/v3/loadCachedPageChunk with fail-closed SSR HTML fallback.","domains":["www.notion.so"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://matt-mike.notion.site/Matt-Mike-Data-Analyst-Portfolio-201029b2366680969986e484d1aa4373"],"routes":[{"match":{"hostSubdomain":{"suffix":".notion.site","param":"siteSub"},"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}},{"match":{"hosts":["www.notion.so","notion.so"],"scanSegment":{"scanLast":true,"param":"pageUuid","charset":"notion_page_id","minLen":32,"maxLen":200,"transform":"notion_uuid"}},"twin":{"fetchUrl":"https://{host}/api/v3/loadCachedPageChunk","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"page\":{\"id\":\"{pageUuid}\"},\"limit\":50,\"cursor\":{\"stack\":[]},\"chunkNumber\":0,\"verticalColumns\":false}"},"extract":{"jsonMode":"notion_public_site"}}],"htmlRoutes":[{"id":"notion-public-site","match":{"exactSegments":false},"mode":"notion_public_site_html"}]},{"id":"npm-registry","name":"npm Package Registry","category":"developer","description":"Upgrades npmjs.com package pages to registry.npmjs.org JSON metadata, TypeScript declarations, dependency list, and README.","domains":["npmjs.com","www.npmjs.com"],"exampleUrls":["https://www.npmjs.com/package/@cfworker/json-schema"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"pathPrefix":"/package/@","exactSegments":false,"pathSegments":["package",{"param":"scopeNoAt","stripPrefix":"@","charset":"npm_pkg"},{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/@{scopeNoAt}%2F{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}},{"match":{"anyOf":[{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"},"v",{"param":"requestedVer","charset":"url_seg"}]},{"exactSegments":false,"pathSegments":["package",{"param":"pkg","charset":"npm_pkg"}]}]},"twin":{"fetchUrl":"https://registry.npmjs.org/{pkg}","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"latestTag":{"paths":["dist-tags.latest"]},"ver":{"template":"{requestedVer}","whenVars":["requestedVer"],"fallbackVar":"latestTag"},"verDesc":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"description"},"trim":true},"rootDesc":{"paths":["description"],"trim":true},"desc":{"template":"{verDesc}","whenVars":["verDesc"],"fallbackVar":"rootDesc"},"verLicense":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"license"}},"rootLicense":{"paths":["license"]},"license":{"template":"{verLicense}","whenVars":["verLicense"],"fallbackVar":"rootLicense"},"verHomepage":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"homepage"}},"rootHomepage":{"paths":["homepage"]},"homepage":{"template":"{verHomepage}","whenVars":["verHomepage"],"fallbackVar":"rootHomepage"},"verRepoUrl":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository.url"}},"verRepoStr":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"repository"}},"verRepo":{"template":"{verRepoUrl}","whenVars":["verRepoUrl"],"fallbackVar":"verRepoStr"},"rootRepo":{"paths":["repository.url","repository"]},"repoClean":{"template":"{verRepo}","whenVars":["verRepo"],"fallbackVar":"rootRepo","stripPrefix":"git+","stripSuffix":".git","requireHttpPrefix":true},"verTypes":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"types"}},"verTypings":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"typings"}},"hasTypes":{"template":"Bundled declarations included","whenAnyVars":["verTypes","verTypings"]},"depsDisplay":{"dynamicKeyPath":{"base":"versions","keyVar":"ver","subPath":"dependencies"},"format":"object_keys","limit":10,"join":", ","default":"0 (zero dependencies)"},"readme":{"paths":["readme"],"excludeEquals":"ERROR: No README data found!","format":"strip_leading_h1","trim":true}},"titleTemplate":"{name}@{ver}","titleWhenVar":"ver","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`npm install {name}`"},{"label":"Latest Version","template":"`{ver}`","whenVar":"ver"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"TypeScript","template":"{hasTypes}","whenVar":"hasTypes"},{"label":"Runtime Dependencies","template":"{depsDisplay}","whenVar":"depsDisplay"},{"label":"Homepage","template":"{homepage}","whenVar":"homepage"},{"label":"Repository","template":"{repoClean}","whenVar":"repoClean"}],"bodyVar":"readme"}}]},{"id":"nppes-npi","name":"NPPES NPI Registry","category":"research-health","description":"CMS National Plan and Provider Enumeration System (NPPES) NPI Registry v2.1 JSON API adapter with Angular SPA shell rejection.","domains":["npiregistry.cms.hhs.gov"],"auth_mode":"pub","exampleUrls":["https://npiregistry.cms.hhs.gov/api/?version=2.1&number=1003000126","https://npiregistry.cms.hhs.gov/provider-view/1003000126"],"routes":[{"match":{"pathEquals":["/api","/api/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"version":"2.1"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}},{"match":{"exactSegments":true,"pathSegments":["provider-view",{"param":"npi","charset":"digits","minLen":10,"maxLen":10}]},"twin":{"fetchUrl":"https://npiregistry.cms.hhs.gov/api/?version=2.1&number={npi}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"nppes_npi_json"}}],"htmlRoutes":[{"id":"nppes-npi","match":{"pathPrefix":"/provider-view/","exactSegments":false},"mode":"nppes_npi_html"}]},{"id":"npr-pbs","name":"NPR & PBS NewsHour","category":"commerce-social","description":"Extracts NPR/PBS RSS XML feeds, text.npr.org stories, and NPR/PBS article HTML.","domains":["www.npr.org","npr.org","text.npr.org","feeds.npr.org","www.pbs.org","pbs.org"],"auth_mode":"html","exampleUrls":["https://feeds.npr.org/1001/rss.xml","https://www.pbs.org/newshour/feeds/rss/headlines","https://www.pbs.org/newshour/nation"],"routes":[{"match":{"hosts":["feeds.npr.org"],"pathSuffix":".xml","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}},{"match":{"hosts":["www.pbs.org","pbs.org"],"pathPrefix":"/newshour/feeds/rss/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","auth_mode":"pub"},"extract":{"textMode":"npr_pbs_rss_xml"}}],"htmlRoutes":[{"id":"npr-pbs","match":{"exactSegments":false},"mode":"npr_pbs_html"}]},{"id":"nps","name":"National Park Service (NPS)","category":"public-records","description":"National Park Service developer.nps.gov v1 JSON API (via DATA_GOV_API_KEY) with www.nps.gov HTML fallback.","domains":["developer.nps.gov","www.nps.gov","nps.gov"],"auth_mode":"key","exampleUrls":["https://www.nps.gov/yell/index.htm","https://developer.nps.gov/api/v1/parks?parkCode=yell&limit=1"],"routes":[{"match":{"hosts":["developer.nps.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"nps_json"}},{"match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":true,"pathSegments":[{"param":"parkCode","charset":"alnum","minLen":4,"maxLen":4,"reserved":["news","plan","maps","fees","find","jobs","kids","faqs","more","docs","help","info","blog","home","data","form","apps","page"],"transform":"lower"},"index.htm"]},"twin":{"fetchUrl":"https://developer.nps.gov/api/v1/parks?parkCode={parkCode}&limit=5","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"nps_json"}}],"htmlRoutes":[{"id":"nps","match":{"hosts":["www.nps.gov","nps.gov"],"exactSegments":false},"mode":"nps_html"}]},{"id":"nuget-gallery","name":"NuGet Gallery","category":"developer","description":"Upgrades nuget.org/packages/[/] pages to the official api.nuget.org v3 registration JSON API (supporting both inlined catalogEntry pages and un-inlined CatalogPage stubs).","domains":["www.nuget.org","nuget.org"],"exampleUrls":["https://www.nuget.org/packages/Newtonsoft.Json","https://www.nuget.org/packages/Newtonsoft.Json/13.0.3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"},{"param":"ver","charset":"url_seg","reserved":["ReportAbuse","ContactOwners","versions"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}},{"match":{"exactSegments":true,"pathSegments":["packages",{"param":"pkgId","charset":"pkg","minLen":1,"maxLen":128,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.nuget.org/v3/registration5-gz-semver2/{pkgId}/index.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"nuget_registration"}}]},{"id":"nyt-api","name":"New York Times API & News","category":"commerce-social","description":"Official NYT Developer API (Article Search, Top Stories, Most Popular) with NYT_API_KEY and NewsArticle HTML fallback.","domains":["api.nytimes.com","www.nytimes.com","nytimes.com"],"auth_mode":"key","exampleUrls":["https://api.nytimes.com/svc/topstories/v2/home.json","https://www.nytimes.com/"],"routes":[{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSegments":["svc","search","v2","articlesearch.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","topstories","v2",{"param":"section","charset":"slug","stripSuffix":".json","minLen":2,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}},{"match":{"hosts":["api.nytimes.com"],"exactSegments":true,"pathSuffix":".json","pathSegments":["svc","mostpopular","v2",{"param":"kind","allowValues":["emailed","shared","viewed"]},{"param":"period","charset":"digits","stripSuffix":".json","allowValues":["1","7","30"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"nyt_api_json"}}],"htmlRoutes":[{"id":"nyt-api","match":{"hosts":["www.nytimes.com","nytimes.com"],"exactSegments":false},"mode":"nyt_html"}]},{"id":"ofac-sdn","name":"OFAC SDN Sanctions List & Actions","category":"public-records","description":"Bounded Range-streaming XML scanner for OFAC SDN.XML (<= 2 MiB) plus recent-actions and sanctions program HTML extraction on ofac.treasury.gov.","domains":["sanctionslistservice.ofac.treas.gov","ofac.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML","https://ofac.treasury.gov/recent-actions"],"routes":[{"match":{"hosts":["sanctionslistservice.ofac.treas.gov"],"exactSegments":true,"pathEquals":["/api/PublicationPreview/exports/SDN.XML","/api/PublicationPreview/exports/CONS_PRIM.XML","/api/PublicationPreview/exports/SDN_ENHANCED.XML"]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml","headers":{"Range":"bytes=0-2097151"},"maxBytes":2097152},"extract":{"textMode":"ofac_sdn_xml"}}],"htmlRoutes":[{"id":"ofac-sdn","match":{"hosts":["ofac.treasury.gov"],"exactSegments":false},"mode":"ofac_html"}]},{"id":"okendo","name":"Okendo Product Reviews","category":"commerce-social","description":"Extracts public Okendo product review and review aggregate JSON payloads without preempting storefront HTML extractors.","domains":["api.okendo.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.okendo.io/v1/stores/892ce72b-10d2-4dd3-a7ab-e2dfdee9d001/products/shopify-6861943013449/reviews?limit=10"],"routes":[{"match":{"anyOf":[{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},{"param":"endpoint","allowValues":["reviews","review_aggregate"]}]},{"hosts":["api.okendo.io"],"pathSegments":["v1","stores",{"param":"subscriberId","charset":"alnum_dash","minLen":4,"maxLen":80},"reviews"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"okendo_reviews"}}],"htmlRoutes":[{"id":"okendo","match":{"exactSegments":false},"mode":"okendo_html"}]},{"id":"openalex","name":"OpenAlex Scholarly Works","category":"research-health","description":"Upgrades openalex.org work URLs to api.openalex.org JSON with reconstructed abstracts, citations, open-access PDF links, and topics.","domains":["openalex.org","www.openalex.org","api.openalex.org"],"exampleUrls":["https://openalex.org/W2741809807","https://openalex.org/works/W2741809807"],"match":{"anyOf":[{"exactSegments":false,"pathSegments":["works",{"param":"workId","charset":"openalex_work","transform":"upper"}]},{"exactSegments":false,"pathSegments":[{"param":"workId","charset":"openalex_work","transform":"upper"}]}]},"twin":{"fetchUrl":"https://api.openalex.org/works/{workId}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["display_name","title"],"requireVars":["title"],"vars":{"title":{"paths":["display_name","title"],"trim":true},"pubDate":{"paths":["publication_date"]},"citedBy":{"paths":["cited_by_count"],"format":"int_comma"},"doi":{"paths":["doi"]},"oaUrl":{"paths":["open_access.oa_url"],"requireHttps":true},"authors":{"paths":["authorships"],"subField":"author.display_name","limit":15,"join":", "},"authorsShort":{"paths":["authorships"],"subField":"author.display_name","limit":4,"join":", "},"abstract":{"paths":["abstract_inverted_index"],"format":"inverted_abstract"},"abstractShort":{"paths":["abstract_inverted_index"],"format":"inverted_abstract","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"abstractShort","authorVar":"authorsShort","publishedTimeVar":"pubDate","bullets":[{"label":"OpenAlex ID","template":"`{workId}`"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Published","template":"{pubDate}","whenVar":"pubDate"},{"label":"Citations","template":"{citedBy}","whenVar":"citedBy"},{"label":"DOI","template":"{doi}","whenVar":"doi"},{"label":"Open Access PDF","template":"{oaUrl}","whenVar":"oaUrl"}],"sections":[{"heading":"Abstract","textVar":"abstract"}],"linksVars":["doi","oaUrl"]}},{"id":"opencorporates","name":"OpenCorporates Company Registry","category":"public-records","description":"Upgrades opencorporates.com company pages to key-authenticated OpenCorporates API v0.4 JSON with clean public HTML attributes fallback when unconfigured.","domains":["opencorporates.com","www.opencorporates.com","api.opencorporates.com"],"auth_mode":"key","exampleUrls":["https://opencorporates.com/companies/us_de/3857729","https://api.opencorporates.com/v0.4/companies/us_de/3857729"],"routes":[{"match":{"hosts":["opencorporates.com","www.opencorporates.com"],"exactSegments":false,"pathSegments":["companies",{"param":"jurisdiction","charset":"alnum_dash","minLen":2,"maxLen":16},{"param":"companyNumber","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://api.opencorporates.com/v0.4/companies/{jurisdiction}/{companyNumber}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}},{"match":{"hosts":["api.opencorporates.com"],"pathPrefix":"/v0.4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"opencorporates_json"}}],"htmlRoutes":[{"id":"opencorporates","match":{"hosts":["opencorporates.com","www.opencorporates.com"],"pathPrefix":"/companies/","exactSegments":false},"mode":"opencorporates_html"}]},{"id":"opendatasoft","name":"Opendatasoft Open Data Portals (Explore API v2.1)","category":"public-records","description":"Universal Opendatasoft adapter: /explore/dataset// pages and /api/explore/v2.1/catalog/datasets(/) upgrade to dataset metadata (publisher, license, record count, field schema, records/CSV API links); /records URLs render rows as a table while enforcing strict robots.txt compliance.","domains":["public.opendatasoft.com","*.opendatasoft.com","data.townofcary.org","data.jerseycitynj.gov"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://public.opendatasoft.com/explore/dataset/us-state-boundaries/","https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/us-state-boundaries/records?limit=3&select=name,stusab,region,division","https://data.townofcary.org/api/explore/v2.1/catalog/datasets?limit=3"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160},"records"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_records_json"}},{"match":{"pathEquals":["/api/explore/v2.1/catalog/datasets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":true,"pathSegments":["api","explore","v2.1","catalog","datasets",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}},{"match":{"exactSegments":false,"pathSegments":["explore","dataset",{"param":"datasetId","charset":"pkg","minLen":2,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/explore/v2.1/catalog/datasets/{datasetId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opendatasoft_dataset_json"}}]},{"id":"openfda","name":"openFDA Recalls, Labels & Adverse Events API","category":"research-health","description":"Formats keyless api.fda.gov JSON endpoints (drug/food/device enforcement recalls, drug labels, and adverse events) into clean Markdown tables.","domains":["api.fda.gov"],"exampleUrls":["https://api.fda.gov/food/enforcement.json?limit=5"],"match":{"pathSuffix":".json","pathSegments":[{"param":"endpointLabel","charset":"safe_subpath","greedy":true,"stripSuffix":".json"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["results"],"vars":{"resultsCount":{"paths":["results"],"format":"array_len"},"total":{"paths":["meta.results.total"],"format":"int_comma","fallbackTemplate":"{resultsCount}"},"isRecall":{"paths":["results.0.recall_number","results.0.reason_for_recall"]}},"titleTemplate":"openFDA {endpointLabel} ({resultsCount} of {total} records)","sections":[{"heading":"","whenVar":"isRecall","arrayPath":"results","limit":25,"columns":[{"header":"Recall #","paths":["recall_number"],"code":true},{"header":"Class","paths":["classification"]},{"header":"Status","paths":["status"]},{"header":"Firm","paths":["recalling_firm"]},{"header":"Reason","paths":["reason_for_recall"]}]},{"heading":"","unlessVar":"isRecall","subsectionsArrayPath":"results","limit":10,"subsectionHeadingTemplate":"{recHeading}","subsectionSubkeys":["indications_and_usage","warnings","boxed_warning","dosage_and_administration","adverse_reactions"],"itemVars":{"brand":{"paths":["openfda.brand_name.0"]},"generic":{"paths":["openfda.generic_name.0"]},"genericParens":{"template":"({generic})","whenVars":["generic"]},"brandAndGeneric":{"template":"{brand} {genericParens}","whenVars":["brand","genericParens"],"fallbackVar":"brand"},"brandOrGeneric":{"template":"{brandAndGeneric}","whenVars":["brandAndGeneric"],"fallbackVar":"genericParens"},"recFallback":{"template":"Record #{index1}"},"recHeading":{"template":"{brandOrGeneric}","whenVars":["brandOrGeneric"],"fallbackVar":"recFallback"}}}]}},{"id":"openfoodfacts","name":"Open Food Facts Products","category":"commerce-social","description":"Extracts barcode, brand, Nutri-Score, NOVA group, ingredients, and nutrition facts from world.openfoodfacts.org/product/ (respecting robots.txt on /api).","domains":["world.openfoodfacts.org","openfoodfacts.org","*.openfoodfacts.org"],"exampleUrls":["https://world.openfoodfacts.org/product/3017620422003"],"htmlRoutes":[{"id":"openfoodfacts","match":{"exactSegments":false,"pathSegments":["product",{"param":"barcode","charset":"digits","minLen":6,"maxLen":16}]},"mode":"dom","jsonLdTypes":["Product"],"requireVars":["title"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"cssText":["h1"]},"brand":{"jsonLdPaths":["brand.name","brand"]},"nutriscore":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"Nutri-Score\\s*([A-E])\\b","group":1,"transform":"upper"}},"nova":{"regexExtract":{"source":"doc_text_and_img_alts","pattern":"NOVA\\s*([1-4])\\b","group":1}},"ingredientsLd":{"jsonLdPaths":["description"]},"ingredients":{"cssText":["#panel_ingredients_content"],"fallbackVar":"ingredientsLd"},"descShort":{"fallbackVar":"ingredients","sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Barcode (GTIN)","template":"`{barcode}`"},{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"Nutri-Score","template":"**{nutriscore}**","whenVar":"nutriscore"},{"label":"NOVA Food Processing Group","template":"{nova}","whenVar":"nova"}],"sections":[{"heading":"Ingredients & Summary","textVar":"ingredients"}],"appendCurrentMdDelta":{"baseVar":"ingredients","minExtraChars":120}}]},{"id":"opengov-portals","name":"OpenGov Transparency & Procurement Portals","category":"public-records","description":"Extracts fiscal transparency datasets, window.gon/Zeus hydration, and public API data from OpenGov portals while classifying Cloudflare challenges honestly.","domains":["*.opengov.com"],"auth_mode":"pub","exampleUrls":["https://torranceca.opengov.com/api/v1/reports","https://torranceca.opengov.com/transparency","https://sanbernardinoca.opengov.com/transparency"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/api/v1/"},{"pathPrefix":"/api/v2/"},{"pathPrefix":"/transparency/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"opengov_json"}}],"htmlRoutes":[{"id":"opengov-portals","match":{"exactSegments":false},"mode":"opengov_html"}]},{"id":"openrouter","name":"OpenRouter AI Model Catalog","category":"genai","description":"Upgrades OpenRouter model pages to keyless /api/v1/models specs (context window, token pricing, modalities, and tool support).","domains":["openrouter.ai"],"exampleUrls":["https://openrouter.ai/anthropic/claude-sonnet-5.5","https://openrouter.ai/models/qwen/qwen4-max"],"match":{"anyOf":[{"exactSegments":true,"pathSegments":["models",{"param":"org","charset":"pkg"},{"param":"slug","charset":"model_slug"}]},{"exactSegments":true,"pathSegments":[{"param":"org","charset":"pkg","reserved":["docs","rankings","chat","activity","settings","keys","credits","privacy","terms","about","blog","pricing","providers"]},{"param":"slug","charset":"model_slug"}]}]},"twin":{"fetchUrl":"https://openrouter.ai/api/v1/models","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{org}/{slug}","ignoreCase":true},"vars":{"id":{"paths":["id"]},"name":{"paths":["name"],"fallbackTemplate":"{org}/{slug}","trim":true},"ctxLen":{"paths":["context_length"],"format":"int_comma"},"maxOut":{"paths":["top_provider.max_completion_tokens"],"format":"int_comma"},"promptPrice":{"paths":["pricing.prompt"],"format":"usd_per_million_tokens"},"compPrice":{"paths":["pricing.completion"],"format":"usd_per_million_tokens"},"modality":{"paths":["architecture.modality"]},"params":{"paths":["supported_parameters"],"join":"`, `","limit":14},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260}},"titleTemplate":"{name}","descriptionVar":"descShort","bullets":[{"label":"Model ID","template":"`{id}`"},{"label":"Context Window","template":"{ctxLen} tokens","whenVar":"ctxLen"},{"label":"Max Output","template":"{maxOut} tokens","whenVar":"maxOut"},{"label":"Input Pricing","template":"{promptPrice}","whenVar":"promptPrice"},{"label":"Output Pricing","template":"{compPrice}","whenVar":"compPrice"},{"label":"Modality","template":"`{modality}`","whenVar":"modality"},{"label":"Supported Parameters","template":"`{params}`","whenVar":"params"}],"sections":[{"heading":"Description","textVar":"desc"}]}},{"id":"openstreetmap","name":"OpenStreetMap (Nominatim & Overpass)","category":"public-records","description":"OpenStreetMap Nominatim geocoding and Overpass API JSON adapter enforcing strict 1 req/s pacing, identifying User-Agent, and strict robots.txt politeness.","domains":["www.openstreetmap.org","openstreetmap.org","nominatim.openstreetmap.org","overpass-api.de"],"auth_mode":"pub","user_agent_profile":"openstreetmap","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.openstreetmap.org/about","https://www.openstreetmap.org/copyright"],"routes":[{"match":{"hosts":["nominatim.openstreetmap.org"],"anyOf":[{"pathPrefix":"/search"},{"pathPrefix":"/reverse"},{"pathPrefix":"/lookup"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"jsonv2"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"openstreetmap_json"}},{"match":{"hosts":["overpass-api.de"],"pathPrefix":"/api/interpreter"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"openstreetmap_json"}}],"htmlRoutes":[{"id":"openstreetmap","match":{"hosts":["www.openstreetmap.org","openstreetmap.org"],"exactSegments":false},"mode":"openstreetmap_html"}]},{"id":"oracle-commerce","name":"Oracle Commerce Cloud (ccstore)","category":"commerce-social","description":"Extracts Oracle Commerce Cloud /ccstore/v1 and /ccstoreui/v1 product and search JSON endpoints plus storefront HTML/companion twins.","domains":["www.dollartree.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.dollartree.com/ccstore/v1/products/805937","https://www.dollartree.com/ccstore/v1/search?Ntt=bag"],"routes":[{"match":{"pathSegments":["ccstore","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathSegments":["ccstoreui","v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}},{"match":{"pathEquals":["/ccstore/v1/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"oracle_commerce_product"}}],"htmlRoutes":[{"id":"oracle-commerce","match":{"exactSegments":false},"mode":"oracle_commerce_html"}]},{"id":"os-package-pack","name":"OS Package Pack (Flathub, Snapcraft, AUR, Winget, Chocolatey)","category":"developer","description":"Extracts OS package metadata and newest stable versions from Flathub, Snapcraft (Snap-Device-Series: 16), Arch AUR RPC v5, Winget, and Chocolatey.","domains":["flathub.org","snapcraft.io","api.snapcraft.io","aur.archlinux.org","winget.run","api.winget.run","community.chocolatey.org"],"auth_mode":"pub","min_interval_ms":2000,"exampleUrls":["https://flathub.org/apps/org.mozilla.firefox","https://snapcraft.io/firefox","https://aur.archlinux.org/packages/yay","https://winget.run/pkg/Microsoft/PowerToys"],"routes":[{"match":{"hosts":["flathub.org"],"pathPrefix":"/api/v2/appstream/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["flathub.org"],"exactSegments":false,"pathSegments":["apps",{"param":"appId","charset":"pkg","minLen":3,"maxLen":160}]},"twin":{"fetchUrl":"https://flathub.org/api/v2/appstream/{appId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"flathub_json"}},{"match":{"hosts":["api.snapcraft.io"],"pathPrefix":"/v2/snaps/info/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://api.snapcraft.io/v2/snaps/info/{snap}","kind":"json","accept":"application/json","headers":{"Snap-Device-Series":"16"},"maxBytes":2097152},"extract":{"jsonMode":"snapcraft_json"}},{"match":{"hosts":["aur.archlinux.org"],"pathPrefix":"/rpc/v5/info"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["aur.archlinux.org"],"exactSegments":true,"pathSegments":["packages",{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://aur.archlinux.org/rpc/v5/info?arg[]={pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"aur_json"}},{"match":{"hosts":["api.winget.run"],"pathPrefix":"/v2/packages/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["winget.run"],"exactSegments":false,"pathSegments":["pkg",{"param":"publisher","charset":"pkg","minLen":1,"maxLen":120},{"param":"pkg","charset":"pkg","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"https://api.winget.run/v2/packages/{publisher}/{pkg}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"winget_json"}},{"match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/api/v2/Packages"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":2097152},"extract":{"textMode":"chocolatey_xml"}}],"htmlRoutes":[{"id":"os-package-pack","match":{"hosts":["snapcraft.io"],"exactSegments":true,"reservedFirstSegment":["account","admin","login","logout","store","docs","blog","about","publisher","search","first-snap","build"],"pathSegments":[{"param":"snap","charset":"pkg","minLen":1,"maxLen":80}]},"mode":"snapcraft_html"},{"id":"os-package-pack","match":{"hosts":["community.chocolatey.org"],"pathPrefix":"/packages/","exactSegments":false},"mode":"chocolatey_html"}]},{"id":"osha-establishment","name":"OSHA Establishment Inspections & Injury Data","category":"public-records","description":"Extracts OSHA IMIS/ORDS establishment inspection records and ITA injury/illness data pages from osha.gov while honoring robots.txt and detecting CloudFront 403 blocks.","domains":["www.osha.gov","osha.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1500,"exampleUrls":["https://www.osha.gov/pls/imis/establishment.html","https://www.osha.gov/Establishment-Specific-Injury-and-Illness-Data"],"htmlRoutes":[{"id":"osha-establishment","match":{"exactSegments":false},"mode":"osha_establishment_html"}]},{"id":"osv-ghsa","name":"OSV & GitHub Security Advisories","category":"developer","description":"Upgrades osv.dev/vulnerability/ and github.com/advisories/GHSA-* pages to the keyless api.osv.dev/v1/vulns JSON API with canonical lowercase GHSA IDs and bounded affected-version slices.","domains":["osv.dev","www.osv.dev","github.com"],"exampleUrls":["https://osv.dev/vulnerability/GHSA-jfh8-c2jp-5v3q","https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"],"routes":[{"match":{"hosts":["osv.dev","www.osv.dev"],"exactSegments":false,"pathSegments":["vulnerability",{"param":"vulnId","charset":"url_seg","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/{vulnId}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (OSV Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl"]}},{"match":{"hosts":["github.com"],"exactSegments":true,"pathPrefix":"/advisories/GHSA-","pathSegments":["advisories",{"param":"ghsaBody","stripPrefix":"GHSA-","charset":"alnum_dash","minLen":14,"maxLen":14,"transform":"lower"}]},"twin":{"fetchUrl":"https://api.osv.dev/v1/vulns/GHSA-{ghsaBody}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["id"],"vars":{"id":{"paths":["id"]},"summary":{"paths":["summary"],"trim":true},"details":{"paths":["details"],"trim":true},"summaryShort":{"paths":["summary","details"],"trim":true,"sliceMax":260},"aliases":{"paths":["aliases"],"itemWrap":"`","join":", ","limit":12},"severityScore":{"paths":["severity.0.score"]},"severityType":{"paths":["severity.0.type"]},"published":{"paths":["published"],"sliceMax":10},"modified":{"paths":["modified"],"sliceMax":10},"ghsaUrl":{"template":"https://github.com/advisories/GHSA-{ghsaBody}","requireHttps":true},"osvUrl":{"template":"https://osv.dev/vulnerability/{id}","requireHttps":true}},"titleTemplate":"{id} — {summary}","titleWhenVar":"summary","titleFallbackTemplate":"{id} (GitHub Advisory)","descriptionVar":"summaryShort","publishedTimeVar":"published","introVar":"summary","bullets":[{"label":"Advisory ID","template":"`{id}`"},{"label":"Aliases","template":"{aliases}","whenVar":"aliases"},{"label":"Severity","template":"`{severityScore}` ({severityType})","whenVar":"severityScore"},{"label":"Published","template":"{published}","whenVar":"published"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"OSV URL","template":"{osvUrl}","whenVar":"osvUrl"}],"bodyVar":"details","sections":[{"heading":"Affected Packages","arrayPath":"affected","limit":20,"itemVars":{"versionsCount":{"paths":["versions"],"format":"array_len_comma"},"versionsSample":{"paths":["versions"],"limit":12,"itemWrap":"`","join":", "},"fixedVersions":{"nestedSubValues":{"arrayPath":"ranges","subArrayField":"events","valueField":"fixed","limit":12,"join":", "}}},"columns":[{"header":"Ecosystem","paths":["package.ecosystem"]},{"header":"Package","paths":["package.name"],"code":true},{"header":"Affected Count","template":"{versionsCount}"},{"header":"Sample Versions","template":"{versionsSample}"},{"header":"Fixed","template":"{fixedVersions}"}]},{"heading":"References","arrayPath":"references","limit":20,"requireItemVar":"refUrl","collectLinkVars":["refUrl"],"itemVars":{"refUrl":{"paths":["url"],"requireHttps":true},"refType":{"paths":["type"]}},"columns":[{"header":"Type","template":"{refType}"},{"header":"URL","template":"{refUrl}"}]}],"linksVars":["osvUrl","ghsaUrl"]}}]},{"id":"outdoor-retail-specs","name":"Outdoor & Cycling Retail Spec Extractor","category":"commerce-social","description":"Strictly rate-limited and robots-enforced HTML adapter for REI, Backcountry, and Competitive Cyclist product pages and technical specification tables.","domains":["rei.com","www.rei.com","backcountry.com","www.backcountry.com","competitivecyclist.com","www.competitivecyclist.com"],"auth_mode":"html","min_interval_ms":5000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.rei.com/product/230456/co-op-cycles-adv-22-bike","https://www.backcountry.com/santa-cruz-bicycles-hightower-c-s-mountain-bike","https://www.competitivecyclist.com/cervelo-caledonia-105-road-bike"],"htmlRoutes":[{"id":"outdoor-retail-specs","match":{"exactSegments":false},"mode":"outdoor_retail_specs_html"}]},{"id":"oversight-gov","name":"Oversight.gov Inspector General Reports","category":"public-records","description":"Extracts Council of the Inspectors General on Integrity and Efficiency (CIGIE) Inspector General reports and metadata from oversight.gov while rejecting Azure App Gateway 406 shells.","domains":["www.oversight.gov","oversight.gov"],"auth_mode":"pub","exampleUrls":["https://www.oversight.gov/reports"],"htmlRoutes":[{"id":"oversight-gov","match":{"exactSegments":false},"mode":"oversight_gov_html"}]},{"id":"pacer-case-locator","name":"PACER Case Locator","category":"public-records","description":"Extracts public PACER informational and case-finder pages on pacer.uscourts.gov while honestly classifying login-gated portals (pcl.uscourts.gov, pacer.login.uscourts.gov) as login_wall.","domains":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"],"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://pacer.uscourts.gov/find-case","https://pacer.uscourts.gov/","https://pcl.uscourts.gov/pcl/index.jsf"],"htmlRoutes":[{"id":"pacer-case-locator","match":{"hosts":["pcl.uscourts.gov","pacer.uscourts.gov","ecf.dcd.uscourts.gov","pacer.login.uscourts.gov"]},"mode":"pacer_case_locator_html"}]},{"id":"packagist","name":"Packagist PHP Composer Registry","category":"developer","description":"Upgrades packagist.org PHP Composer package pages to their official .json metadata feed.","domains":["packagist.org","www.packagist.org"],"exampleUrls":["https://packagist.org/packages/monolog/monolog"],"match":{"exactSegments":true,"pathSegments":["packages",{"param":"vendor","charset":"pkg"},{"param":"pkg","charset":"pkg"}]},"twin":{"fetchUrl":"https://packagist.org/packages/{vendor}/{pkg}.json","kind":"json","accept":"application/json"},"extract":{"rootPath":"package","requireFields":["name"],"vars":{"name":{"paths":["name"]},"desc":{"paths":["description"],"trim":true},"repo":{"paths":["repository"]},"stableVer":{"paths":["versions"],"firstNonMatchingKey":"dev"},"license":{"dynamicKeyPath":{"base":"versions","keyVar":"stableVer","subPath":"license"},"join":", "}},"titleTemplate":"{name} {stableVer} (Composer)","titleWhenVar":"stableVer","titleFallbackTemplate":"{name}","descriptionVar":"desc","introVar":"desc","bullets":[{"label":"Install","template":"`composer require {name}`"},{"label":"Latest Version","template":"`{stableVer}`","whenVar":"stableVer"},{"label":"License","template":"{license}","whenVar":"license"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"paradox-olivia","name":"Paradox Olivia Career Sites","category":"jobs","description":"Extracts JobPosting JSON-LD and __NEXT_DATA__ hydration job listings from Paradox Olivia career sites (*.paradox.ai, jobs.mchire.com, and custom brand portals via universalEngine).","domains":["*.paradox.ai","jobs.mchire.com","www.mchire.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://careers.fedex.com/account-manager-ii/job/P25-397759-1","https://jobs.mchire.com/jobs"],"htmlRoutes":[{"id":"paradox-olivia","mode":"paradox_olivia_html","match":{"exactSegments":false}}]},{"id":"peertube","name":"PeerTube Federated Video Platform (Universal Engine)","category":"commerce-social","description":"Upgrades PeerTube video permalinks (/w/{videoId} and /videos/watch/{videoId}) and /api/v1/videos/* endpoints via JSON API with VideoObject HTML fallback.","domains":["video.blender.org","tilvids.com","framatube.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://video.blender.org/w/v3kudnbEWnLVG5Fzormny6","https://video.blender.org/api/v1/videos/v3kudnbEWnLVG5Fzormny6","https://tilvids.com/api/v1/videos/6PsLUGoGiV9isoaHmht6Eu"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["api","v1","videos",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64},"captions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["w",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}},{"match":{"exactSegments":true,"pathSegments":["videos","watch",{"param":"videoId","charset":"url_seg","minLen":8,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/videos/{videoId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"peertube_json"}}],"htmlRoutes":[{"id":"peertube","match":{"exactSegments":false},"mode":"peertube_html"}]},{"id":"pinpoint","name":"Pinpoint ATS Job Boards","category":"jobs","description":"Upgrades .pinpointhq.com career portals to /postings.json with compensation, responsibilities, and workplace types.","domains":["*.pinpointhq.com"],"exampleUrls":["https://workwithus.pinpointhq.com/"],"routes":[{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"exactSegments":false,"pathSegments":["postings",{"param":"postId","charset":"pkg"}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"findInArray":{"arrayPath":"data","matchField":"id","matchTemplate":"{postId}","endsWithField":"url","endsWithTemplate":"{postId}"},"vars":{"jobTitle":{"paths":["title"],"trim":true,"default":"Job Posting"},"loc":{"paths":["location.name"],"trim":true},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin} – {compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"compMaxOnly":{"template":"{cur} – {compMax}","whenVars":["compMax"]},"compSub":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly"},"comp":{"template":"{compSub}","whenVars":["compSub"],"fallbackVar":"compMaxOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"resp":{"paths":["key_responsibilities"],"format":"html_to_md"},"skills":{"paths":["skills_knowledge_expertise"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{loc}","whenVar":"loc"},{"label":"Workplace","template":"{wp}","whenVar":"wp"},{"label":"Compensation","template":"{comp}","whenVar":"comp"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Key Responsibilities","textVar":"resp"},{"heading":"Skills & Expertise","textVar":"skills"},{"heading":"Benefits","textVar":"benefits"}],"fallbackExtract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}},{"match":{"hostSubdomain":{"suffix":".pinpointhq.com","param":"org","reserved":["www","app"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs","postings"],"optional":true}]},"twin":{"id":"pinpoint","fetchUrl":"https://{host}/postings.json","kind":"json","accept":"application/json"},"extract":{"vars":{"count":{"paths":["data"],"format":"array_len"}},"requireVars":["count"],"titleTemplate":"{org} — Pinpoint Job Board ({count} open roles)","sections":[{"heading":"","arrayPath":"data","limit":100,"emptyText":"No open positions currently listed.","itemVars":{"pTitle":{"paths":["title"],"trim":true,"default":"Role"},"id":{"paths":["id"]},"rawUrl":{"paths":["url"],"requireHttps":true},"pUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://{host}/postings/{id}"},"loc":{"paths":["location.name"],"trim":true,"default":"-"},"wp":{"paths":["workplace_type_text","workplace_type"],"trim":true,"default":"-"},"cur":{"paths":["compensation_currency"],"trim":true,"default":"USD"},"compMin":{"paths":["compensation_minimum"],"excludeEquals":"0"},"compMax":{"paths":["compensation_maximum"],"excludeEquals":"0"},"compRange":{"template":"{cur} {compMin}–{compMax}","whenVars":["compMin","compMax"]},"compMinOnly":{"template":"{cur} {compMin}","whenVars":["compMin"]},"comp":{"template":"{compRange}","whenVars":["compRange"],"fallbackVar":"compMinOnly","default":"-"}},"collectLinkVars":["pUrl"],"columns":[{"header":"Role","template":"[{pTitle}]({pUrl})"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"},{"header":"Compensation","template":"{comp}"}]}]}}]},{"id":"pkg-go-dev","name":"Go Packages (pkg.go.dev)","category":"developer","description":"Extracts Go module README and API documentation sections cleanly from pkg.go.dev.","domains":["pkg.go.dev"],"exampleUrls":["https://pkg.go.dev/github.com/coder/websocket"],"htmlRoutes":[{"match":{"minSegments":1},"mode":"dom","vars":{"title":{"cssText":["title"],"stripSuffix":"- Go Packages"},"readme":{"cssHtmlToMd":["div.UnitReadme-content"]},"docs":{"cssHtmlToMd":["div.Documentation-content"],"replaceAll":{"from":"¶","to":""}}},"requireBulletsOrVars":["readme","docs"],"titleTemplate":"{title}","sections":[{"heading":"Overview / README","textVar":"readme"},{"heading":"Documentation","textVar":"docs"}]}]},{"id":"pm-listing-widgets","name":"Property Management Listing Widgets (Buildium / Propertyware / RentManager)","category":"commerce-social","description":"Extracts public rental unit listings, rent pricing, bed/bath counts, and detail links from Buildium (managebuilding.com), Propertyware, and RentManager portals.","domains":["*.managebuilding.com","*.propertyware.com","*.rentmanager.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://portland.managebuilding.com/Resident/public/rentals","https://hannibalrentals.managebuilding.com/Resident/public/rentals"],"htmlRoutes":[{"id":"pm-listing-widgets","match":{"exactSegments":false},"mode":"pm_listing_widgets_html"}]},{"id":"podcasts-apple-lookup","name":"Apple Podcasts & iTunes Lookup","category":"commerce-social","description":"Extracts iTunes Lookup JSON for podcast metadata and Apple Podcasts HTML schema:show + serialized-server-data without cross-domain twins.","domains":["podcasts.apple.com","itunes.apple.com"],"auth_mode":"pub","exampleUrls":["https://itunes.apple.com/lookup?id=1200361736&entity=podcast","https://podcasts.apple.com/us/podcast/the-daily/id1200361736"],"routes":[{"match":{"hosts":["itunes.apple.com"],"pathEquals":["/lookup"],"queryParams":[{"name":"id","param":"itunesId","charset":"digits","minLen":3,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"apple_podcast_lookup_json"}}],"htmlRoutes":[{"id":"podcasts-apple-lookup","match":{"hosts":["podcasts.apple.com"],"exactSegments":false},"mode":"podcasts_apple_html"}]},{"id":"polymarket","name":"Polymarket Prediction Markets","category":"finance","description":"Upgrades polymarket.com/event/ pages to gamma-api.polymarket.com JSON with live outcome probabilities, volume, and liquidity.","domains":["polymarket.com","www.polymarket.com"],"exampleUrls":["https://polymarket.com/event/fed-decision-in-december"],"match":{"exactSegments":false,"pathSegments":["event",{"param":"slug","charset":"alnum_dash","minLen":2,"maxLen":140}]},"twin":{"fetchUrl":"https://gamma-api.polymarket.com/events?slug={slug}","kind":"json","accept":"application/json"},"extract":{"unwrapFirstArrayElement":true,"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"vol":{"paths":["volume"],"format":"usd_compact"},"liq":{"paths":["liquidity"],"format":"usd_compact"},"endDate":{"paths":["endDate"],"sliceMax":10},"status":{"paths":["closed"],"format":"bool_map","trueValue":"Closed / Resolved","falseValue":"Active"}},"titleTemplate":"{title}","descriptionVar":"descShort","bullets":[{"label":"Status","template":"{status}"},{"label":"Total Volume","template":"{vol}","whenVar":"vol"},{"label":"Liquidity","template":"{liq}","whenVar":"liq"},{"label":"End Date","template":"{endDate}","whenVar":"endDate"}],"sections":[{"heading":"Market Odds","arrayPath":"markets","limit":25,"columns":[{"header":"Market / Outcome","paths":["groupItemTitle","question"],"fallbackVar":"title"},{"header":"Implied Probability","format":"paired_percent","outcomesField":"outcomes","pricesField":"outcomePrices","defaultOutcomes":["Yes","No"]},{"header":"Volume","paths":["volume"],"format":"usd_compact"}]},{"heading":"Resolution Rules","textVar":"desc"}]}},{"id":"popmenu","name":"Popmenu Restaurant Menus","category":"commerce-social","description":"Extracts restaurant menu sections, dishes, descriptions, and prices from Popmenu DOM, Apollo state, and Menu JSON-LD while rejecting Cloudflare challenge interstitials.","domains":["popmenu.com","www.popmenu.com","*.popmenu.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"exampleUrls":["https://www.popmenu.com/"],"htmlRoutes":[{"id":"popmenu","match":{"exactSegments":false},"mode":"popmenu_html"}]},{"id":"powerreviews","name":"PowerReviews Product Reviews","category":"commerce-social","description":"Opt-in page-key adapter for PowerReviews Read API reviews; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["readservices-b2c.powerreviews.com","www.skechers.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://readservices-b2c.powerreviews.com/m/8162/l/en_US/product/177197/reviews?apikey=412df53d-8be4-4d9e-8657-e8c846f08b1d"],"routes":[{"match":{"hosts":["readservices-b2c.powerreviews.com"],"pathSegments":["m",{"param":"merchantId","charset":"alnum_dash","minLen":1,"maxLen":40},"l",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":24},"product",{"param":"pageId","charset":"pkg","minLen":1,"maxLen":120},"reviews"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"powerreviews_reviews"}}],"htmlRoutes":[{"id":"powerreviews","match":{"exactSegments":false},"mode":"powerreviews_html"}]},{"id":"prestashop","name":"PrestaShop Storefronts","category":"commerce-social","description":"Extracts PrestaShop storefront JSON-LD, data-product attributes, features tables, and ?action=quickview AJAX JSON payloads.","domains":["www.esprit-barbecue.fr"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.esprit-barbecue.fr/barbecues/3364-master-touch-gbs-premium-e-5770-noir-weber-0077924129551.html"],"routes":[{"match":{"anyOf":[{"hosts":["www.esprit-barbecue.fr"],"queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"}]},{"pathSuffix":".html","queryParams":[{"name":"action","param":"action","allowValues":["quickview"],"charset":"alnum"},{"name":"ajax","param":"ajax","allowValues":["1"],"charset":"digits"}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"prestashop_quickview"}}],"htmlRoutes":[{"id":"prestashop","match":{"exactSegments":false},"mode":"prestashop_html"}]},{"id":"primegov","name":"Rock Solid / Granicus PrimeGov Portals","category":"public-records","description":"Extracts upcoming municipal meetings and agendas from PrimeGov PublicPortal API and HTML views while strictly honoring robots.txt.","domains":["*.primegov.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://okc.primegov.com/api/v2/PublicPortal/ListUpcomingMeetings","https://okc.primegov.com/public/portal"],"routes":[{"match":{"pathPrefix":"/api/v2/PublicPortal/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}},{"match":{"pathEquals":["/public/portal","/public/portal/"]},"twin":{"fetchUrl":"https://{host}/api/v2/PublicPortal/ListUpcomingMeetings","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"primegov_json"}}],"htmlRoutes":[{"id":"primegov","match":{"exactSegments":false},"mode":"primegov_html"}]},{"id":"product-feed-discovery","name":"Storefront Product Feed Discovery","category":"commerce-social","description":"Universal XML/Atom/RSS parser for storefront product discovery endpoints (/products.atom, /feed/, and /sitemap_products_*.xml).","domains":["www.gymshark.com","henryrose.com","janji.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.gymshark.com/sitemap_products_1.xml","https://henryrose.com/sitemap_products_1.xml?from=1645692747866&to=15498254843994","https://janji.com/sitemap_products_1.xml?from=310052787&to=15293477683563"],"routes":[{"match":{"excludeHosts":["feeds.npr.org","npr.org","www.npr.org","pbs.org","www.pbs.org","prnewswire.com","www.prnewswire.com","businesswire.com","www.businesswire.com","globenewswire.com","www.globenewswire.com","medium.com","www.medium.com","*.medium.com","ghost.org","www.ghost.org","*.ghost.io","buttondown.com","www.buttondown.com","buttondown.email","rss.beehiiv.com","milkroad.beehiiv.com","*.beehiiv.com","wordpress.org","www.wordpress.org","*.wordpress.com","weworkremotely.com","www.weworkremotely.com","bicycleretailer.com","www.bicycleretailer.com","earthquake.usgs.gov","api.nasa.gov","recruiting.paylocity.com","app.jazz.co","*.applytojob.com","www.fpds.gov","fpds.gov","*.substack.com","substack.com","careers.*.com","jobs.*.com"],"anyOf":[{"pathEquals":["/products.atom","/feed","/feed/"]},{"pathPrefix":"/sitemap_products_","pathSuffix":".xml"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/atom+xml","maxBytes":4194304},"extract":{"textMode":"product_feed_discovery_xml"}}]},{"id":"propublica-nonprofits","name":"ProPublica Nonprofit Explorer","category":"public-records","description":"Upgrades ProPublica Nonprofit Explorer organization pages to keyless Form 990 JSON API v2 with HTML fallback.","domains":["projects.propublica.org"],"auth_mode":"pub","exampleUrls":["https://projects.propublica.org/nonprofits/organizations/521693387","https://projects.propublica.org/nonprofits/api/v2/organizations/521693387.json"],"routes":[{"match":{"hosts":["projects.propublica.org"],"exactSegments":false,"pathSegments":["nonprofits","organizations",{"param":"ein","charset":"digits","minLen":8,"maxLen":10}]},"twin":{"fetchUrl":"https://projects.propublica.org/nonprofits/api/v2/organizations/{ein}.json","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}},{"match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/api/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"propublica_nonprofit_json"}}],"htmlRoutes":[{"id":"propublica-nonprofits","match":{"hosts":["projects.propublica.org"],"pathPrefix":"/nonprofits/","exactSegments":false},"mode":"propublica_nonprofit_html"}]},{"id":"pubchem","name":"PubChem Chemical Compounds (NCBI)","category":"research-health","description":"Upgrades pubchem.ncbi.nlm.nih.gov/compound/ to NCBI PUG-REST compound properties + pharmacological descriptions (with HTML JSON-LD fallback).","domains":["pubchem.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubchem.ncbi.nlm.nih.gov/compound/2244"],"routes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"cid","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/{cid}/JSON/?heading=Names+and+Identifiers","kind":"json","accept":"application/json"},"extract":{"rootPath":"Record","requireFields":["RecordTitle"],"vars":{"cidVal":{"paths":["RecordNumber"],"fallbackTemplate":"{cid}"},"recTitle":{"paths":["RecordTitle"],"trim":true,"fallbackTemplate":"Compound {cidVal}"},"formula":{"format":"pubchem_toc","tocHeading":"Molecular Formula"},"iupac":{"format":"pubchem_toc","tocHeading":"IUPAC Name"},"inchiKey":{"format":"pubchem_toc","tocHeading":"InChIKey"},"canonicalSmiles":{"format":"pubchem_toc","tocHeading":"Canonical SMILES"},"smilesRaw":{"format":"pubchem_toc","tocHeading":"SMILES"},"smiles":{"template":"{smilesRaw}","whenVars":["smilesRaw"],"fallbackVar":"canonicalSmiles"},"cas":{"format":"pubchem_toc","tocHeading":"CAS"},"desc":{"format":"pubchem_toc","tocHeading":"Record Description"},"descShort":{"format":"pubchem_toc","tocHeading":"Record Description","sliceMax":260}},"titleTemplate":"{recTitle} (PubChem CID {cidVal})","descriptionVar":"descShort","bullets":[{"label":"PubChem CID","template":"`{cidVal}`"},{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"CAS Number","template":"`{cas}`","whenVar":"cas"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"linkTemplates":["https://pubchem.ncbi.nlm.nih.gov/compound/{cidVal}"]}}],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["compound",{"param":"slug","charset":"url_seg"}]},"mode":"dom","jsonLdTypes":["MolecularEntity","ChemicalSubstance"],"requireVars":["title"],"requireBulletsOrVars":["desc"],"vars":{"title":{"jsonLdPaths":["name"],"metaKeys":["og:title"],"stripRegexSuffix":"\\s*\\|\\s*C\\d+.*?\\s*-\\s*PubChem$"},"formula":{"jsonLdPaths":["molecularFormula"]},"weightValObj":{"jsonLdPaths":["molecularWeight.value"]},"weightFromObj":{"template":"{weightValObj} g/mol","whenVars":["weightValObj"]},"weight":{"jsonLdPaths":["molecularWeight"],"fallbackVar":"weightFromObj"},"iupac":{"jsonLdPaths":["iupacName"]},"inchiKey":{"jsonLdPaths":["inChIKey"]},"smiles":{"jsonLdPaths":["smiles"],"limit":1},"desc":{"metaKeys":["description"]},"descShort":{"metaKeys":["description"],"sliceMax":260}},"titleTemplate":"{title} (PubChem)","descriptionVar":"descShort","bullets":[{"label":"Molecular Formula","template":"`{formula}`","whenVar":"formula"},{"label":"Molecular Weight","template":"{weight}","whenVar":"weight"},{"label":"IUPAC Name","template":"`{iupac}`","whenVar":"iupac"},{"label":"InChIKey","template":"`{inchiKey}`","whenVar":"inchiKey"},{"label":"SMILES","template":"`{smiles}`","whenVar":"smiles"}],"sections":[{"heading":"Summary","textVar":"desc"}],"appendCurrentMdDelta":{"minExtraChars":200}}]},{"id":"public-bid-portals","name":"Public Procurement & Bid Portals (Bonfire, BidNet, Periscope)","category":"public-records","description":"Extracts public municipal solicitations and RFPs from BidNet Direct, Bonfire, and Periscope S2G while classifying login-gated bid details as login_wall.","domains":["*.bonfirehub.com","www.bidnetdirect.com","bidnetdirect.com","www.bidsync.com","app.periscopeholdings.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.bidnetdirect.com/colorado/cityandcountyofdenverdoti/solicitations/open-bids?selectedContent=BUYER","https://www.bidnetdirect.com/colorado/solicitations/open-bids/W-38th-Ave-Multimodal-Improvements-Design-Services/0000443656?purchasingGroupId=8409951&origin=2"],"htmlRoutes":[{"id":"public-bid-portals","match":{"exactSegments":false},"mode":"public_bid_html"}]},{"id":"public-booking","name":"Public Booking (Calendly & Acuity Scheduling)","category":"commerce-social","description":"Extracts public Calendly event types via queryless /api/booking/profiles/{profile}/event_types (honoring Disallow: /*?*) and Calendly/Acuity HTML booking pages, rejecting unavailability_reason error-only payloads.","domains":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://calendly.com/api/booking/profiles/demo/event_types","https://calendly.com/demo","https://calendly.com/calendly-sales"],"routes":[{"match":{"hosts":["calendly.com","www.calendly.com"],"exactSegments":true,"pathSegments":[{"param":"profile","charset":"slug","minLen":2,"maxLen":80,"reserved":["app","api","d","s","login","signup","pricing","features","solutions","enterprise","integrations","resources","blog","about","careers","legal","privacy","terms","help","abuse_reports","error","404","not-found"]}]},"twin":{"fetchUrl":"https://calendly.com/api/booking/profiles/{profile}/event_types","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}},{"match":{"hosts":["calendly.com","www.calendly.com"],"pathPrefix":"/api/booking/profiles/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"calendly_booking_json"}}],"htmlRoutes":[{"id":"public-booking","mode":"booking_html","match":{"hosts":["calendly.com","www.calendly.com","acuityscheduling.com","app.acuityscheduling.com"],"exactSegments":false}}]},{"id":"public-forms","name":"Public Forms (Typeform & Jotform)","category":"commerce-social","description":"Extracts public Typeform field definitions via api.typeform.com/forms/{formId} or window.rendererData HTML and Jotform forms via HTML field labels/configs, rejecting typeform-incorrectURL soft-404 redirects.","domains":["typeform.com","www.typeform.com","form.typeform.com","api.typeform.com","jotform.com","www.jotform.com","form.jotform.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://tfsales.typeform.com/to/PxcVKQGb","https://api.typeform.com/forms/PxcVKQGb","https://form.jotform.com/240912145384959"],"routes":[{"match":{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["www","api","admin","help","developer","login","auth"]},"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["typeform.com","www.typeform.com"],"exactSegments":true,"pathSegments":["to",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"https://api.typeform.com/forms/{formId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}},{"match":{"hosts":["api.typeform.com"],"exactSegments":true,"pathSegments":["forms",{"param":"formId","charset":"slug","minLen":4,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"typeform_json"}}],"htmlRoutes":[{"id":"public-forms","mode":"typeform_html","match":{"anyOf":[{"hostSubdomain":{"suffix":".typeform.com","param":"org","reserved":["api","admin","login","auth"]},"exactSegments":false},{"hosts":["typeform.com","www.typeform.com","form.typeform.com"],"exactSegments":false}]}},{"id":"public-forms","mode":"jotform_html","match":{"anyOf":[{"hosts":["jotform.com","www.jotform.com","form.jotform.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".jotform.com","param":"org","reserved":["api","www","form","login","auth"]},"exactSegments":false}]}}]},{"id":"public-job-feeds","name":"Public Open Job Feeds (WWR, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow & RemoteOK)","category":"jobs","description":"Formats robots.txt-allowed keyless public job feeds (We Work Remotely RSS, Himalayas, Working Nomads, The Muse, Jobicy, Arbeitnow, and RemoteOK) into clean job tables.","domains":["weworkremotely.com","www.weworkremotely.com","himalayas.app","www.himalayas.app","www.workingnomads.com","workingnomads.com","www.themuse.com","themuse.com","jobicy.com","www.arbeitnow.com","arbeitnow.com","remoteok.com"],"exampleUrls":["https://weworkremotely.com/remote-jobs.rss","https://himalayas.app/jobs/api?limit=50","https://www.workingnomads.com/api/exposed_jobs/","https://www.themuse.com/api/public/jobs?page=1","https://jobicy.com/api/v2/remote-jobs?count=20","https://remoteok.com/api"],"routes":[{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathSuffix":".rss"},"twin":{"id":"weworkremotely-feed","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["weworkremotely.com","www.weworkremotely.com"],"pathEquals":["/remote-jobs","/remote-jobs/"]},"twin":{"id":"weworkremotely-feed","fetchUrl":"https://weworkremotely.com/remote-jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"We Work Remotely Jobs ({itemCount})","limit":50,"collectLinkVar":"jLink","emitTotals":true,"itemVars":{"company":{"tags":["title"],"splitColonPart":0,"default":"We Work Remotely"},"role":{"tags":["title"],"splitColonPart":1,"default":"Role"},"jLink":{"tags":["link"]},"region":{"tags":["region"],"default":"Remote"},"category":{"tags":["category"],"default":"-"},"pubDate":{"tags":["pubDate"]},"pubDisplay":{"tags":["pubDate","category"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{role}","company":"{company}","url":"{jLink}","region":"{region}","category":"{category}","postedAt":"{pubDate}","source":"weworkremotely"},"columns":[{"header":"Role","template":"[{role}]({jLink})"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{region}"},{"header":"Published","template":"{pubDisplay}"}]}}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs/api"},"twin":{"id":"himalayas-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["himalayas.app","www.himalayas.app"],"pathPrefix":"/jobs"},"twin":{"id":"himalayas-feed","fetchUrl":"https://himalayas.app/jobs/api?limit=50","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"totalFmt":{"paths":["totalCount"],"format":"int_comma","fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"Himalayas Remote Jobs ({jobCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"totalPath":"totalCount","cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["companyName"],"trim":true,"default":"-"},"appUrl":{"paths":["applicationLink"],"requireHttps":true},"guidUrl":{"paths":["guid"],"requireHttps":true},"jUrl":{"template":"{appUrl}","whenVars":["appUrl"],"fallbackVar":"guidUrl"},"locs":{"paths":["locationRestrictions"],"join":", ","default":"Worldwide"},"cur":{"paths":["currency"],"trim":true,"default":"USD"},"minSal":{"paths":["minSalary"],"format":"int_comma","excludeEquals":"0"},"maxSal":{"paths":["maxSalary"],"format":"int_comma","excludeEquals":"0"},"salRange":{"template":"{cur} {minSal}–{maxSal}","whenVars":["minSal","maxSal"]},"salMinOnly":{"template":"{cur} {minSal}","whenVars":["minSal"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","locations":"{locs}","salary":"{sal}","source":"himalayas"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{locs}"},{"header":"Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathPrefix":"/api/exposed_jobs"},"twin":{"id":"workingnomads-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.workingnomads.com","workingnomads.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"workingnomads-feed","fetchUrl":"https://www.workingnomads.com/api/exposed_jobs/","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Working Nomads Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","paginationMeta":{"cursorMode":"offset"},"itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"company":{"paths":["company_name"],"trim":true,"default":"-"},"jUrl":{"paths":["url"],"requireHttps":true},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"pub":{"paths":["pub_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"recordFields":{"title":"{jTitle}","company":"{company}","url":"{jUrl}","location":"{loc}","postedAt":"{pub}","source":"workingnomads"},"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["www.themuse.com","themuse.com"],"pathPrefix":"/api/public/jobs"},"twin":{"id":"themuse-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"resCount":{"paths":["results"],"format":"array_len"},"totalFmt":{"paths":["total"],"format":"int_comma","fallbackTemplate":"{resCount}"}},"requireVars":["resCount"],"titleTemplate":"The Muse Public Jobs ({resCount} of {totalFmt})","sections":[{"heading":"","arrayPath":"results","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["name"],"trim":true,"default":"Role"},"co":{"paths":["company.name"],"trim":true,"default":"-"},"locs":{"paths":["locations"],"subField":"name","join":"; ","default":"-"},"lUrl":{"paths":["refs.landing_page"],"requireHttps":true},"pub":{"paths":["publication_date"],"sliceMax":10,"trim":true,"default":"-"},"roleCell":{"template":"[{jTitle}]({lUrl})","whenVars":["lUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["lUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{co}"},{"header":"Locations","template":"{locs}"},{"header":"Published","template":"{pub}"}]}]}},{"match":{"hosts":["jobicy.com"],"pathPrefix":"/api/v2/remote-jobs"},"twin":{"id":"jobicy-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"anyOf":[{"hosts":["jobicy.com"],"pathEquals":["/jobs-rss-feed","/jobs-rss-feed/"]},{"hosts":["jobicy.com"],"pathPrefix":"/remote-"}]},"twin":{"id":"jobicy-feed","fetchUrl":"https://jobicy.com/api/v2/remote-jobs?count=30","kind":"json","accept":"application/json"},"extract":{"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Jobicy Remote Jobs ({jobCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["jobTitle"],"format":"strip_tags","trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["companyName"],"trim":true,"default":"-"},"geo":{"paths":["jobGeo"],"trim":true,"default":"Remote"},"cur":{"paths":["salaryCurrency"],"trim":true,"default":"USD"},"salMin":{"paths":["annualSalaryMin"],"excludeEquals":"0"},"salMax":{"paths":["annualSalaryMax"],"excludeEquals":"0"},"salRange":{"template":"{cur} {salMin}–{salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"{cur} {salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Region","template":"{geo}"},{"header":"Annual Salary","template":"{sal}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathPrefix":"/api/job-board-api"},"twin":{"id":"arbeitnow-feed","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"hosts":["www.arbeitnow.com","arbeitnow.com"],"pathEquals":["/jobs","/jobs/"]},"twin":{"id":"arbeitnow-feed","fetchUrl":"https://www.arbeitnow.com/api/job-board-api","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"vars":{"jobCount":{"paths":["data"],"format":"array_len"}},"requireVars":["jobCount"],"titleTemplate":"Arbeitnow Job Feed ({jobCount})","sections":[{"heading":"","arrayPath":"data","limit":50,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["title"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company_name"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"-"},"wp":{"paths":["remote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site"},"roleCell":{"template":"[{jTitle}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Workplace","template":"{wp}"}]}]}},{"match":{"anyOf":[{"hosts":["remoteok.com"],"pathSegments":[]},{"hosts":["remoteok.com"],"pathSegments":["api"]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]},{"hosts":["remoteok.com"],"pathPrefix":"/remote-","pathSuffix":"-jobs/","pathSegments":[{"param":"catTag","charset":"alnum_dash","stripPrefix":"remote-","stripSuffix":"-jobs","transform":"lower"}]}]},"twin":{"id":"remoteok-feed","fetchUrl":"https://remoteok.com/api","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"jobs","vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"RemoteOK Remote Jobs ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":50,"emptyText":"No open positions currently listed.","filter":{"requireField":"position","tagFilterParam":{"param":"catTag","skipIfEquals":"dev","tagsField":"tags"}},"itemVars":{"pos":{"paths":["position"],"trim":true,"default":"Role"},"jUrl":{"paths":["url"],"requireHttps":true},"company":{"paths":["company"],"trim":true,"default":"-"},"loc":{"paths":["location"],"trim":true,"default":"Remote"},"salMin":{"paths":["salary_min"],"excludeEquals":"0"},"salMax":{"paths":["salary_max"],"excludeEquals":"0"},"salRange":{"template":"${salMin}–${salMax}","whenVars":["salMin","salMax"]},"salMinOnly":{"template":"${salMin}","whenVars":["salMin"]},"sal":{"template":"{salRange}","whenVars":["salRange"],"fallbackVar":"salMinOnly","default":"-"},"roleCell":{"template":"[{pos}]({jUrl})","whenVars":["jUrl"],"fallbackVar":"pos"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Company","template":"{company}"},{"header":"Location","template":"{loc}"},{"header":"Salary","template":"{sal}"}]}]}}]},{"id":"public-share-links","name":"Public Share Links (Google Docs/Sheets, OneDrive, Dropbox, Box)","category":"commerce-social","description":"Extracts public Google Sheets via same-origin /gviz/tq?tqx=out:csv (avoiding 307 cross-domain /export redirects) and public Google Docs /pub, OneDrive /embed, Dropbox, and Box share links while strictly enforcing robots.txt.","domains":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/gviz/tq?tqx=out:csv","https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/htmlview"],"routes":[{"match":{"hosts":["docs.google.com"],"anyOf":[{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]}]},{"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},{"param":"view","allowValues":["edit","view","htmlview","preview","copy"]}]}]},"twin":{"fetchUrl":"https://docs.google.com/spreadsheets/d/{sheetId}/gviz/tq?tqx=out:csv","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}},{"match":{"hosts":["docs.google.com"],"exactSegments":true,"pathSegments":["spreadsheets","d",{"param":"sheetId","charset":"slug","minLen":12,"maxLen":128,"reserved":["e"]},"gviz","tq"],"queryParams":[{"name":"tqx","param":"tqx","charset":"url_seg","allowValues":["out:csv"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"public_share_csv"}}],"htmlRoutes":[{"id":"public-share-links","mode":"public_share_html","match":{"hosts":["docs.google.com","dropbox.com","www.dropbox.com","box.com","app.box.com","onedrive.live.com","1drv.ms"],"exactSegments":false}}]},{"id":"pubmed-pmc","name":"PubMed & PubMed Central (NCBI / Europe PMC)","category":"research-health","description":"Upgrades PubMed & PMC URLs to robots.txt-allowed Europe PMC REST JSON/JATS XML (with NCBI HTML fallback).","domains":["pubmed.ncbi.nlm.nih.gov","pmc.ncbi.nlm.nih.gov"],"exampleUrls":["https://pubmed.ncbi.nlm.nih.gov/31452104/","https://pmc.ncbi.nlm.nih.gov/articles/PMC7095418/"],"routes":[{"match":{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},"twin":{"id":"pubmed-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=EXT_ID:{pmid}%20AND%20SRC:MED&resultType=core&format=json","kind":"json","accept":"application/json"},"extract":{"rootPath":"resultList.result.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags","stripSuffix":".","trim":true},"authorString":{"paths":["authorString"],"trim":true},"journalTitle":{"paths":["journalInfo.journal.title"]},"pubYear":{"paths":["pubYear"]},"journalFull":{"template":"{journalTitle} ({pubYear})","whenVars":["journalTitle","pubYear"],"fallbackVar":"journalTitle"},"doi":{"paths":["doi"]},"doiUrl":{"template":"https://doi.org/{doi}","whenVars":["doi"]},"pmcid":{"paths":["pmcid"]},"pmcUrl":{"template":"https://pmc.ncbi.nlm.nih.gov/articles/{pmcid}/","whenVars":["pmcid"]},"citedBy":{"paths":["citedByCount"],"format":"int_comma"},"abstractText":{"paths":["abstractText"],"format":"strip_tags"}},"titleTemplate":"{title}","authorVar":"authorString","publishedTimeVar":"pubYear","bullets":[{"label":"PMID","template":"`{pmid}`"},{"label":"Authors","template":"{authorString}","whenVar":"authorString"},{"label":"Journal","template":"{journalFull}","whenVar":"journalFull"},{"label":"DOI","template":"`{doi}`","whenVar":"doi"},{"label":"Full Text (PMC)","template":"[{pmcid}]({pmcUrl})","whenVar":"pmcid"},{"label":"Cited By","template":"{citedBy}","whenVar":"citedBy"}],"sections":[{"heading":"Abstract","textVar":"abstractText"}],"linksVars":["doiUrl","pmcUrl"]}},{"match":{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]},"twin":{"id":"pmc-europepmc","fetchUrl":"https://www.ebi.ac.uk/europepmc/webservices/rest/{pmcid}/fullTextXML","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"jats_article"}}}],"htmlRoutes":[{"match":{"anyOf":[{"hosts":["pubmed.ncbi.nlm.nih.gov"],"exactSegments":true,"pathSegments":[{"param":"pmid","charset":"digits"}]},{"hosts":["pmc.ncbi.nlm.nih.gov"],"exactSegments":false,"pathSegments":["articles",{"param":"pmcid","charset":"pmc_id","transform":"upper"}]}]},"mode":"dom","requireVars":["title","body"],"vars":{"title":{"cssText":["h1.heading-title","h1"]},"authors":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":15},"authorsShort":{"cssAllText":{"selector":"a.full-name","limit":20,"dedupe":true,"join":", "},"limit":4},"doi":{"cssText":["span.citation-doi"]},"body":{"cssHtmlToMd":["article.article","div#abstract","div#eng-abstract","section.abstract"]}},"titleTemplate":"{title}","authorVar":"authorsShort","bullets":[{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Citation","template":"{doi}","whenVar":"doi"}],"bodyVar":"body","bodyFallbackHeading":"Abstract"}]},{"id":"pypi-project","name":"PyPI Python Package Index","category":"developer","description":"Extracts PyPI package install command, summary, and project README from pypi.org/project// (respecting robots.txt on /json).","domains":["pypi.org","www.pypi.org"],"exampleUrls":["https://pypi.org/project/httpx/"],"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["project",{"param":"pkg","charset":"pkg"}]},"mode":"dom","vars":{"headerName":{"cssText":["h1.project-header__name","h1.package-header__name"]},"pipCmd":{"cssText":["#pip-command"]},"summary":{"cssText":["p.project-header__summary","p.package-description__summary"]},"readme":{"cssHtmlToMd":["#description","div.project-description"],"format":"strip_leading_h1"}},"requireVars":["headerName","readme"],"titleTemplate":"{headerName}","descriptionVar":"summary","introVar":"summary","bullets":[{"label":"Install","template":"`{pipCmd}`","whenVar":"pipCmd"}],"bodyVar":"readme"}]},{"id":"q4-ir","name":"Q4 Inc. Investor Relations Portals","category":"finance","description":"Extracts Q4 Investor Relations /feed/PressRelease.svc and /feed/Event.svc JSON endpoints plus HTML press release and event pages while rejecting Cloudflare challenges.","domains":["*.q4web.com","investors.braze.com"],"universalEngine":true,"auth_mode":"pub","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://mtr.q4web.com/feed/PressRelease.svc/GetPressReleaseList?LanguageId=1&bodyType=0&pressReleaseDateFilter=3&pageSize=5&pageNumber=0","https://investors.braze.com/feed/Event.svc/GetEventList?apiKey=BF185719B0464B3AB809D2E68A89D240&LanguageId=1&eventDateFilter=3&pageSize=5&pageNumber=0"],"routes":[{"match":{"pathPrefix":"/feed/PressRelease.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}},{"match":{"pathPrefix":"/feed/Event.svc/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"q4_ir_json"}}],"htmlRoutes":[{"id":"q4-ir","match":{"exactSegments":false},"mode":"q4_ir_html"}]},{"id":"race-results-pack","name":"Race Results Pack (Athlinks, Race Roster, ACTIVE)","category":"commerce-social","description":"Extracts endurance race events and results from Athlinks, Race Roster, and ACTIVE JSON-LD, hydration JSON, and results tables while strictly rejecting empty CSR SPA shells.","domains":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"universalEngine":false,"auth_mode":"html","exampleUrls":["https://www.active.com/baltimore-md/running/distance-running-races/9th-annual-homewood-holiday-5k-2026"],"htmlRoutes":[{"id":"race-results-pack","match":{"hosts":["athlinks.com","www.athlinks.com","results.athlinks.com","raceroster.com","www.raceroster.com","results.raceroster.com","active.com","www.active.com","resultscui.active.com"],"exactSegments":false},"mode":"race_results_pack_html"}]},{"id":"readthedocs-sphinx","name":"Read the Docs & Sphinx Documentation","category":"developer","description":"Universal HTML extractor for Sphinx and Read the Docs documentation sites (requests.readthedocs.io, docs.python.org, and Sphinx-themed portals).","domains":["docs.python.org","numpy.org","matplotlib.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://numpy.org/doc/stable/user/absolute_beginners.html","https://docs.python.org/3/library/json.html"],"htmlRoutes":[{"id":"readthedocs-sphinx","match":{"exactSegments":false},"mode":"readthedocs_sphinx_html"}]},{"id":"rebuy-searchanise","name":"Rebuy & Searchanise Storefront APIs","category":"commerce-social","description":"Page-key adapter for Rebuy recommendation APIs and Searchanise searchserverapi.com JSON results; companion HTML mode yields so shopify_html is never preempted.","domains":["rebuyengine.com","www.rebuyengine.com","searchserverapi.com","www.searchserverapi.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://www.searchserverapi.com/getresults?apiKey=1Q7P8A7s4h&q=&output=json&maxResults=3"],"routes":[{"match":{"anyOf":[{"hosts":["rebuyengine.com","www.rebuyengine.com"],"pathPrefix":"/api/v1/"},{"hosts":["searchserverapi.com","www.searchserverapi.com"],"pathEquals":["/getresults","/getwidgets"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"rebuy_searchanise_json"}}],"htmlRoutes":[{"id":"rebuy-searchanise","match":{"exactSegments":false},"mode":"rebuy_searchanise_html"}]},{"id":"recharge-bold-subscriptions","name":"Recharge & Bold Subscriptions","category":"commerce-social","description":"Extracts product and recurring selling-plan subscription metadata from storefronts powered by Recharge or Bold Subscriptions; yields on non-subscription PDPs so shopify_html is not preempted.","domains":["us.whogivesacrap.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://us.whogivesacrap.org/products/100-recycled-toilet-paper-jumbo-rolls"],"htmlRoutes":[{"id":"recharge-bold-subscriptions","match":{"exactSegments":false},"mode":"recharge_bold_subscriptions_html"}]},{"id":"recreation-gov-ridb","name":"Recreation.gov & RIDB API","category":"public-records","description":"Recreation Information Database (RIDB) v1 API (apikey header) with Recreation.gov Campground JSON-LD / SSR HTML fallback and strict robots politeness.","domains":["ridb.recreation.gov","www.recreation.gov","recreation.gov"],"auth_mode":"key","strict_robots":true,"min_interval_ms":10000,"exampleUrls":["https://www.recreation.gov/camping/campgrounds/232447","https://ridb.recreation.gov/api/v1/facilities/232447"],"routes":[{"match":{"hosts":["ridb.recreation.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"ridb_json"}},{"match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":true,"pathSegments":["camping","campgrounds",{"param":"facilityId","charset":"digits","minLen":1,"maxLen":12}]},"twin":{"fetchUrl":"https://ridb.recreation.gov/api/v1/facilities/{facilityId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"ridb_json"}}],"htmlRoutes":[{"id":"recreation-gov-ridb","match":{"hosts":["www.recreation.gov","recreation.gov"],"exactSegments":false},"mode":"recreation_gov_html"}]},{"id":"reddit-thread","name":"Reddit Threads & Comments","category":"commerce-social","description":"Extracts shreddit-post prose, subreddit/author/score metadata, and nested shreddit-comment trees.","domains":["reddit.com","*.reddit.com"],"exampleUrls":["https://www.reddit.com/r/golang/comments/1abc123/single_binary_deployments/"],"htmlRoutes":[{"id":"reddit-thread","match":{"pathContainsSegment":"comments"},"mode":"reddit_shreddit"}]},{"id":"regulations-gov","name":"Regulations.gov Federal Rulemaking","category":"public-records","description":"Official api.regulations.gov v4 JSON:API adapter for federal rulemaking documents, dockets, and public comments with HTML fallback.","domains":["regulations.gov","www.regulations.gov","api.regulations.gov"],"auth_mode":"key","exampleUrls":["https://api.regulations.gov/v4/documents/FTC-2023-0007-0001","https://api.regulations.gov/v4/dockets/FTC-2023-0007","https://www.regulations.gov/document/FTC-2023-0007-0001"],"routes":[{"match":{"hosts":["api.regulations.gov"],"pathPrefix":"/v4/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["document",{"param":"docId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/documents/{docId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["docket",{"param":"docketId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/dockets/{docketId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}},{"match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false,"pathSegments":["comment",{"param":"commentId","charset":"alnum_dash","minLen":4,"maxLen":80}]},"twin":{"fetchUrl":"https://api.regulations.gov/v4/comments/{commentId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"regulations_gov_json"}}],"htmlRoutes":[{"id":"regulations-gov","match":{"hosts":["regulations.gov","www.regulations.gov"],"exactSegments":false},"mode":"regulations_gov_html"}]},{"id":"repology","name":"Repology Package Version Matrix","category":"developer","description":"Extracts cross-distribution package versions from Repology API v1 and project HTML pages, prioritizing status == newest rows.","domains":["repology.org"],"auth_mode":"pub","exampleUrls":["https://repology.org/api/v1/project/python","https://repology.org/project/python/versions"],"routes":[{"match":{"hosts":["repology.org"],"pathPrefix":"/api/v1/project/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}},{"match":{"hosts":["repology.org"],"exactSegments":false,"pathSegments":["project",{"param":"project","charset":"pkg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://repology.org/api/v1/project/{project}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"repology_json"}}],"htmlRoutes":[{"id":"repology","match":{"hosts":["repology.org"],"exactSegments":false},"mode":"repology_html"}]},{"id":"rippling","name":"Rippling ATS Career Boards","category":"jobs","description":"Upgrades ats.rippling.com/[locale/]/jobs to api.rippling.com (merging multi-location rows by uuid) and extracts __NEXT_DATA__ jobPost on detail pages.","domains":["ats.rippling.com"],"exampleUrls":["https://ats.rippling.com/rippling/jobs","https://ats.rippling.com/rippling/jobs/96601a74-e7b6-469d-8c69-6fdfd1c83bc0"],"match":{"optionalLeadingLocale":true,"pathSegments":[{"param":"org","charset":"slug","maxLen":80},{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"rippling-board","fetchUrl":"https://api.rippling.com/platform/api/ats/v1/board/{org}/jobs","kind":"json","accept":"application/json"},"extract":{"wrapRootArrayAs":"results","vars":{"rawCount":{"paths":["results"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"}},"requireVars":["rawCount"],"titleTemplate":"{org} — Rippling Job Board ({dedupCount} open roles)","sections":[{"heading":"","arrayPath":"results","limit":100,"linkScanLimit":2000,"emptyText":"No open positions currently listed.","dedupeBy":{"keyPaths":["uuid","id"],"mergeTextPaths":["workLocation.label","workLocation"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4},"requireItemVar":"jName","itemVars":{"uuid":{"paths":["uuid","id"],"trim":true},"jName":{"paths":["name","title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://ats.rippling.com/{org}/jobs/{uuid}"},"dept":{"paths":["department.label","department"],"trim":true,"default":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jName}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"}]}]},"htmlRoutes":[{"id":"rippling-job","mode":"embedded_json","scriptId":"__NEXT_DATA__","match":{"hosts":["ats.rippling.com"]},"extract":{"vars":{"jobTitle":{"paths":["props.pageProps.apiData.jobPost.name","props.pageProps.apiData.jobPost.title","props.pageProps.jobPost.name","props.pageProps.jobPost.title"],"trim":true},"company":{"paths":["props.pageProps.apiData.jobPost.companyName","props.pageProps.jobPost.companyName"],"trim":true,"default":"Company"},"descDirect":{"paths":["props.pageProps.apiData.jobPost.description","props.pageProps.jobPost.description"],"format":"html_to_md"},"descCompany":{"paths":["props.pageProps.apiData.jobPost.description.company","props.pageProps.jobPost.description.company"],"format":"html_to_md"},"descRole":{"paths":["props.pageProps.apiData.jobPost.description.role","props.pageProps.jobPost.description.role"],"format":"html_to_md"},"descReqs":{"paths":["props.pageProps.apiData.jobPost.description.requirements","props.pageProps.jobPost.description.requirements"],"format":"html_to_md"},"descBenefits":{"paths":["props.pageProps.apiData.jobPost.description.benefits","props.pageProps.jobPost.description.benefits"],"format":"html_to_md"},"hasAnyBody":{"template":"ok","whenAnyVars":["descDirect","descCompany","descRole","descReqs","descBenefits"]}},"requireVars":["jobTitle","hasAnyBody"],"titleTemplate":"{jobTitle} @ {company}","bodyVar":"descDirect","sections":[{"heading":"","unlessVar":"descDirect","textVar":"descCompany"},{"heading":"","unlessVar":"descDirect","textVar":"descRole"},{"heading":"","unlessVar":"descDirect","textVar":"descReqs"},{"heading":"","unlessVar":"descDirect","textVar":"descBenefits"}]}}]},{"id":"rubygems","name":"RubyGems Registry","category":"developer","description":"Upgrades rubygems.org gem pages to /api/v1/gems/.json metadata.","domains":["rubygems.org","www.rubygems.org"],"exampleUrls":["https://rubygems.org/gems/rails"],"match":{"exactSegments":false,"pathSegments":["gems",{"param":"gem","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://rubygems.org/api/v1/gems/{gem}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"]},"version":{"paths":["version"]},"info":{"paths":["info"],"trim":true},"infoShort":{"paths":["info"],"trim":true,"sliceMax":260},"licenses":{"paths":["licenses"],"join":", "},"authors":{"paths":["authors"]},"repo":{"paths":["source_code_uri","homepage_uri"]},"docs":{"paths":["documentation_uri"]}},"titleTemplate":"{name} {version} (RubyGem)","titleWhenVar":"version","titleFallbackTemplate":"{name} (RubyGem)","descriptionVar":"infoShort","authorVar":"authors","introVar":"info","bullets":[{"label":"Install","template":"`gem install {name}`"},{"label":"Version","template":"`{version}`","whenVar":"version"},{"label":"License","template":"{licenses}","whenVar":"licenses"},{"label":"Authors","template":"{authors}","whenVar":"authors"},{"label":"Documentation","template":"{docs}","whenVar":"docs"},{"label":"Repository","template":"{repo}","whenVar":"repo"}]}},{"id":"rumble-odysee","name":"Rumble & Odysee Video","category":"commerce-social","description":"Extracts Odysee video claim oEmbed and LBRY JSON-RPC metadata plus Rumble/Odysee HTML without hitting disallowed rumble.com/api/* routes.","domains":["rumble.com","www.rumble.com","odysee.com","www.odysee.com","api.na-backend.odysee.com"],"auth_mode":"pub","exampleUrls":["https://odysee.com/@Odysee:8/channel-roundup-may-2026:e","https://odysee.com/$/oembed?url=https%3A%2F%2Fodysee.com%2F%40Odysee%3A8%2Fchannel-roundup-may-2026%3Ae&format=json","https://www.rumble.com/c/Rumble"],"routes":[{"match":{"hosts":["odysee.com","www.odysee.com"],"pathEquals":["/$/oembed"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["odysee.com","www.odysee.com"],"exactSegments":true,"pathSegments":[{"param":"chan","charset":"at_handle","minLen":2,"maxLen":100},{"param":"claimSlug","charset":"url_seg","minLen":2,"maxLen":180}]},"twin":{"fetchUrl":"https://{host}/$/oembed?url=https%3A%2F%2F{host}%2F{chan}%2F{claimSlug}&format=json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}},{"match":{"hosts":["api.na-backend.odysee.com"],"pathEquals":["/api/v1/proxy"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"rumble_odysee_json"}}],"htmlRoutes":[{"id":"rumble-odysee","match":{"exactSegments":false},"mode":"rumble_odysee_html"}]},{"id":"runsignup","name":"RunSignup Races & Events","category":"commerce-social","description":"Extracts RunSignup race listings and single race event details from public /Rest/races and /Rest/race/{raceId} JSON APIs plus /Race/ SportsEvent HTML fallback.","domains":["runsignup.com","www.runsignup.com"],"universalEngine":false,"auth_mode":"pub","exampleUrls":["https://runsignup.com/Rest/races?format=json&events=T&page=1&results_per_page=2","https://runsignup.com/Rest/race/68640?format=json","https://runsignup.com/Race/MI/PortHuron/BaconandBubbles5k1Mile"],"routes":[{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","races"]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}},{"match":{"hosts":["runsignup.com","www.runsignup.com"],"exactSegments":true,"pathSegments":["Rest","race",{"param":"raceId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"runsignup_json"}}],"htmlRoutes":[{"id":"runsignup","match":{"hosts":["runsignup.com","www.runsignup.com"],"pathPrefix":"/Race/","exactSegments":false},"mode":"runsignup_html"}]},{"id":"rxnorm-rxnav","name":"NLM RxNorm / RxNav","category":"research-health","description":"National Library of Medicine RxNav REST JSON API adapter for RxCUI lookups, concept properties, drug groups, and approximate term matches.","domains":["rxnav.nlm.nih.gov"],"auth_mode":"pub","exampleUrls":["https://rxnav.nlm.nih.gov/REST/rxcui.json?name=lipitor","https://rxnav.nlm.nih.gov/REST/rxcui/153165/properties.json","https://rxnav.nlm.nih.gov/REST/drugs.json?name=acetaminophen"],"routes":[{"match":{"pathPrefix":"/REST/","pathSuffix":".json"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"rxnorm_json"}}]},{"id":"saleor","name":"Saleor Storefront & GraphQL API","category":"commerce-social","description":"Extracts Saleor Storefront bounded /graphql/ product queries (including EditorJS descriptions) and post-HTML JSON-LD/Microdata product pages.","domains":["demo.saleor.io","storefront1.saleor.cloud"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storefront1.saleor.cloud/graphql/"],"routes":[{"match":{"pathEquals":["/graphql","/graphql/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProducts { products(first: 25, channel: \\\"default\\\") { pageInfo { hasNextPage endCursor } edges { node { id slug name description category { name slug } thumbnail { url alt } pricing { priceRange { start { gross { amount currency } } stop { gross { amount currency } } } } variants { id name sku quantityAvailable pricing { price { gross { amount currency } } } } } } } }\"}"},"extract":{"commerceMode":"saleor_graphql"}}],"htmlRoutes":[{"id":"saleor","match":{"exactSegments":false},"mode":"saleor_html"}]},{"id":"salesforce-knowledge","name":"Salesforce Knowledge (Experience Cloud)","category":"developer","description":"Extracts public Salesforce Knowledge and Experience Cloud articles when SSR/hydrated DOM or TechArticle JSON-LD is present; rejects unhydrated Aura error shells and login redirects.","domains":["help.salesforce.com","help.mulesoft.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://help.salesforce.com/s/articleView?language=en_US&id=000391748&type=1"],"htmlRoutes":[{"id":"salesforce-knowledge","match":{"exactSegments":false},"mode":"salesforce_knowledge_html"}]},{"id":"sam-gov","name":"SAM.gov Opportunities & Entities","category":"public-records","description":"Extracts SAM.gov contract opportunities and entity registrations via official SAM.gov v2/v3 APIs (excluding /contract-awards handled by fpds-sam-contract-awards) with HTML fallback.","domains":["sam.gov","www.sam.gov","api.sam.gov"],"auth_mode":"key","exampleUrls":["https://sam.gov/contracting","https://sam.gov/help","https://api.sam.gov/opportunities/v2/search?limit=1"],"routes":[{"match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false,"pathSegments":["opp",{"param":"noticeId","charset":"url_seg","minLen":4,"maxLen":120},"view"]},"twin":{"fetchUrl":"https://api.sam.gov/opportunities/v2/search?noticeid={noticeId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/opportunities/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}},{"match":{"hosts":["api.sam.gov"],"pathPrefix":"/prod/entity-information/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"sam_gov_json"}}],"htmlRoutes":[{"id":"sam-gov","match":{"hosts":["sam.gov","www.sam.gov"],"exactSegments":false},"mode":"sam_gov_html"}]},{"id":"sap-commerce-occ","name":"SAP Commerce Cloud (OCC v2)","category":"commerce-social","description":"Extracts SAP Commerce Cloud OCC v2 /rest/v2 product and search JSON endpoints plus Spartacus storefront HTML/companion twins.","domains":["www.kay.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.kay.com/kay-labgrown-diamonds-large-small-link-bracelet-14-ct-tw-sterling-silver-8/p/V-238867701"],"routes":[{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products","search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["occ","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}},{"match":{"pathSegments":["rest","v2",{"param":"site","charset":"slug","minLen":2,"maxLen":64},"products",{"param":"code","charset":"pkg","reserved":["search"],"minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"fields":"FULL"},"kind":"json","accept":"application/json"},"extract":{"commerceMode":"sap_occ_product"}}],"htmlRoutes":[{"id":"sap-commerce-occ","match":{"exactSegments":false},"mode":"sap_occ_html"}]},{"id":"sap-rmk-jibe","name":"SAP SuccessFactors RMK & Jibe Enterprise Career Feeds","category":"jobs","description":"Formats Jibe /api/jobs JSON feeds and SAP SuccessFactors Recruiting Marketing (RMK) /sitemap.xml RSS job feeds.","domains":["careers.*.com","jobs.*.com"],"universalEngine":true,"exampleUrls":["https://careers.rivian.com/api/jobs?page=1&limit=25","https://jobs.eastman.com/sitemap.xml"],"routes":[{"match":{"pathEquals":["/api/jobs"],"excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"jibe-careers","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"requireArrayItemField":{"arrayPath":"jobs","field":"data"},"vars":{"jobCount":{"paths":["jobs"],"format":"array_len"},"total":{"paths":["totalCount"],"fallbackTemplate":"{jobCount}"}},"requireVars":["jobCount"],"titleTemplate":"{host} — Jibe Career Feed ({jobCount} of {total} open roles)","sections":[{"heading":"","arrayPath":"jobs","limit":80,"emptyText":"No open positions currently listed.","itemVars":{"jTitle":{"paths":["data.title","title"],"trim":true,"default":"Role"},"reqId":{"paths":["data.req_id","data.slug","req_id","slug"],"trim":true},"reqCell":{"template":"`{reqId}`","whenVars":["reqId"],"default":"-"},"catArr":{"paths":["data.categories"],"subField":"name","join":", "},"catStr":{"paths":["data.category","category"],"trim":true},"cat":{"template":"{catArr}","whenVars":["catArr"],"fallbackVar":"catStr","default":"-"},"fullLoc":{"paths":["data.full_location","full_location"],"trim":true},"city":{"paths":["data.city","city"],"trim":true},"state":{"paths":["data.state","state"],"trim":true},"country":{"paths":["data.country","country"],"trim":true},"csc3":{"template":"{city}, {state}, {country}","whenVars":["city","state","country"]},"csc2a":{"template":"{city}, {state}","whenVars":["city","state"]},"csc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"csc1":{"paths":["data.city","data.state","data.country"],"trim":true},"locSub1":{"template":"{csc3}","whenVars":["csc3"],"fallbackVar":"csc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"csc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"csc1"},"loc":{"template":"{fullLoc}","whenVars":["fullLoc"],"fallbackVar":"locSub3","default":"-"},"canonUrl":{"paths":["data.meta_data.canonical_url"],"requireHttps":true},"appUrl":{"paths":["data.apply_url","apply_url"],"requireHttps":true},"finalUrl":{"template":"{canonUrl}","whenVars":["canonUrl"],"fallbackVar":"appUrl"},"roleCell":{"template":"[{jTitle}]({finalUrl})","whenVars":["finalUrl"],"fallbackVar":"jTitle"}},"collectLinkVars":["finalUrl"],"columns":[{"header":"Role","template":"{roleCell}"},{"header":"Req ID","template":"{reqCell}"},{"header":"Category","template":"{cat}"},{"header":"Location","template":"{loc}"}]}]}},{"match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"twin":{"id":"sap-rmk-jibe","fetchUrl":"{requestUrl}","kind":"text","accept":"application/xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}}],"htmlRoutes":[{"id":"sap-rmk-jibe","mode":"xml_items_table","match":{"pathSuffix":"sitemap.xml","excludeHosts":["jobs.dover.com","app.dover.com","*.dover.com","jobs.mchire.com","jobs.crelate.com","jobs.manatal.com","jobs.chronicle.com"]},"xml":{"mode":"items_table","requireAnyTags":["g:location","g:employer"],"itemTag":"item","firstItemVars":{"employer":["g:employer"]},"titleTemplate":"{employer} — SAP RMK Job Feed ({itemCount} open roles)","limit":100,"collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"],"default":"Role"},"jLink":{"tags":["link"]},"jId":{"tags":["g:id"],"default":"-"},"loc":{"tags":["g:location"],"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Req ID","template":"{jId}"},{"header":"Location","template":"{loc}"}]}}]},{"id":"sba-dsbs-loans","name":"SBA DSBS & 7(a)/504 Loan Datasets (DKAN)","category":"finance","description":"Extracts data.sba.gov DKAN 7(a)/504 loan datasets and dataset pages while rejecting empty React SPA shells on search.certifications.sba.gov.","domains":["data.sba.gov","search.certifications.sba.gov","dsbs.sba.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002","https://data.sba.gov/dataset/sba-foia-quarterly-reports"],"routes":[{"match":{"hosts":["data.sba.gov"],"pathPrefix":"/api/1/metastore/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"sba_dkan_json"}},{"match":{"hosts":["data.sba.gov"],"pathPrefix":"/api/1/datastore/query/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"sba_dkan_json"}}],"htmlRoutes":[{"id":"sba-dsbs-loans","match":{"exactSegments":false},"mode":"sba_dsbs_loans_html"}]},{"id":"schema-course","name":"Schema.org Course & Educational Program","category":"public-records","description":"Universal Schema.org extractor for Course, CourseInstance, and EducationalOccupationalProgram JSON-LD running before generic schema_org fallback.","domains":["pll.harvard.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://pll.harvard.edu/course/cs50-introduction-computer-science"],"htmlRoutes":[{"id":"schema-course","match":{"exactSegments":false},"mode":"schema_course_html"}]},{"id":"schema-dataset","name":"Schema.org Dataset & DataCatalog","category":"research-health","description":"Universal Schema.org extractor for Dataset and DataCatalog JSON-LD including DataDownload distributions, license, creator, and temporal/spatial coverage.","domains":["registry.opendata.aws"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://registry.opendata.aws/noaa-goes/"],"htmlRoutes":[{"id":"schema-dataset","match":{"exactSegments":false},"mode":"schema_dataset_html"}]},{"id":"schema-event","name":"Schema.org Event (Universal)","category":"commerce-social","description":"Universal Schema.org Event JSON-LD extractor for venues, parks departments, clubs, and event calendars: name, start/end, venue and address, organizer, performer, offers/price, status, and attendance mode. Lists every Event on series and calendar pages while yielding on dedicated ticketing/race platforms.","domains":["neworleanscitypark.org","events.stanford.edu","calendar.mit.edu"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://neworleanscitypark.org/series/crescent-city-farmers-market-2/","https://events.stanford.edu/"],"htmlRoutes":[{"id":"schema-event","match":{"exactSegments":false,"excludeHosts":["eventbrite.com","www.eventbrite.com","meetup.com","www.meetup.com","lu.ma","www.lu.ma","luma.com","www.luma.com","ticketmaster.com","www.ticketmaster.com","runsignup.com","www.runsignup.com"]},"mode":"schema_event_html"}]},{"id":"schema-faq-howto","name":"Schema.org FAQPage & HowTo","category":"public-records","description":"Universal Schema.org extractor for FAQPage Q&A and HowTo step-by-step instructions, yielding when Recipe, Product, JobPosting, Course, SoftwareApplication, or Medical types are present.","domains":["yoast.com","www.wikihow.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://yoast.com/features/structured-data/faq-block/","https://www.wikihow.com/Tie-a-Tie"],"htmlRoutes":[{"id":"schema-faq-howto","match":{"exactSegments":false},"mode":"schema_faq_howto_html"}]},{"id":"schema-localbusiness","name":"Schema.org LocalBusiness (Universal)","category":"commerce-social","description":"Universal Schema.org LocalBusiness JSON-LD extractor (Restaurant, Store, AutoDealer, BikeStore and every *Business/*Store subtype) for location, dealer, and shop pages: name, address, phone, geo, opening hours, price range, rating, and amenities. Skips pages whose main entity is an article, product, recipe, job, vehicle, medical, or event.","domains":["www.chipotle.com","www.apple.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://locations.chipotle.com/co/boulder/1650-28th-st","https://www.apple.com/retail/fifthavenue/"],"htmlRoutes":[{"id":"schema-localbusiness","match":{"exactSegments":false},"mode":"schema_localbusiness_html"}]},{"id":"schema-medical","name":"Schema.org Medical Entities","category":"research-health","description":"Universal Schema.org extractor for MedicalCondition, Drug, Physician, MedicalClinic, and MedicalWebPage JSON-LD, yielding when Product is present.","domains":["my.clevelandclinic.org","www.nhs.uk"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://my.clevelandclinic.org/health/diseases/6424-asthma","https://www.nhs.uk/conditions/asthma/"],"htmlRoutes":[{"id":"schema-medical","match":{"exactSegments":false},"mode":"schema_medical_html"}]},{"id":"schema-menu","name":"Schema.org Restaurant Menu (Menu / MenuSection / MenuItem)","category":"commerce-social","description":"Universal Schema.org Menu extractor that matches only when Menu, MenuSection, MenuItem, or hasMenu JSON-LD entities exist, never hijacking plain Restaurant pages.","domains":["www.chilis.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":1000,"exampleUrls":["https://www.chilis.com/menu"],"htmlRoutes":[{"id":"schema-menu","match":{"exactSegments":false},"mode":"schema_menu_html"}]},{"id":"schema-recipe","name":"Schema.org Recipe (Universal)","category":"commerce-social","description":"Universal Schema.org Recipe JSON-LD extractor for any recipe site: ingredients, numbered steps (HowToStep/HowToSection), prep/cook/total times, yield, cuisine, rating, and nutrition. Resolves @graph @id author references.","domains":["www.budgetbytes.com","sallysbakingaddiction.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.budgetbytes.com/one-pot-creamy-cajun-chicken-pasta/","https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"],"htmlRoutes":[{"id":"schema-recipe","match":{"exactSegments":false},"mode":"schema_recipe_html"}]},{"id":"schema-software-app","name":"Schema.org SoftwareApplication","category":"developer","description":"Universal Schema.org extractor for SoftwareApplication, WebApplication, and MobileApplication JSON-LD (version, OS, category, offers, rating, and downloadUrl).","domains":["code.visualstudio.com","www.mozilla.org"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://code.visualstudio.com/","https://www.mozilla.org/en-US/firefox/new/"],"htmlRoutes":[{"id":"schema-software-app","match":{"exactSegments":false},"mode":"schema_software_app_html"}]},{"id":"schema-vehicle","name":"Schema.org Vehicle & Car","category":"commerce-social","description":"Universal Schema.org extractor for Vehicle, Car, Motorcycle, and MotorizedBicycle JSON-LD with strict 17-character VIN validation (excluding I, O, Q).","domains":["www.hondaofseattle.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://www.hondaofseattle.com/viewdetails/used/5tdkdrbh0rs544979/2024-toyota-highlander-sport-utility"],"htmlRoutes":[{"id":"schema-vehicle","match":{"exactSegments":false},"mode":"schema_vehicle_html"}]},{"id":"searchspring","name":"Searchspring On-Site Search","category":"commerce-social","description":"Extracts public Searchspring JSON search API payloads and discovers siteId markers from storefront HTML.","domains":["api.searchspring.net","www.searchspring.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api.searchspring.net/api/search/search.json?siteId=rn129l&q=router&resultsFormat=native"],"routes":[{"match":{"pathEquals":["/api/search/search.json"],"queryParams":[{"name":"siteId","param":"siteId","charset":"alnum_dash","minLen":2,"maxLen":32}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"searchspring_search"}}],"htmlRoutes":[{"id":"searchspring","match":{"exactSegments":false},"mode":"searchspring_html"}]},{"id":"sec-edgar","name":"SEC EDGAR Company Submissions & Filings","category":"finance","description":"Upgrades sec.gov EDGAR company browse pages and CIK URLs to keyless data.sec.gov JSON submissions (10-K, 10-Q, 8-K, DEF 14A, Form 4, 13F).","domains":["www.sec.gov","sec.gov","data.sec.gov"],"exampleUrls":["https://www.sec.gov/edgar/browse/?CIK=0001477333","https://data.sec.gov/submissions/CIK0000320193.json"],"match":{"anyOf":[{"hosts":["www.sec.gov","sec.gov"],"exactSegments":false,"pathSegments":["edgar","browse"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["www.sec.gov","sec.gov"],"exactSegments":true,"pathSegments":["cgi-bin","browse-edgar"],"queryParams":[{"names":["CIK","cik"],"param":"rawCik","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}},{"hosts":["data.sec.gov"],"exactSegments":true,"pathSuffix":".json","pathSegments":["submissions",{"param":"rawCik","stripPrefix":"CIK","stripSuffix":".json","charset":"digits","minLen":1,"maxLen":10}],"derivedParams":{"paddedCik":{"fromParam":"rawCik","transform":"pad10_zero"},"numericCik":{"fromParam":"rawCik","transform":"strip_leading_zeros"}}}]},"twin":{"fetchUrl":"https://data.sec.gov/submissions/CIK{paddedCik}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name"],"vars":{"name":{"paths":["name"],"trim":true},"tickersPlain":{"paths":["tickers"],"join":", "},"tickersCode":{"paths":["tickers"],"itemWrap":"`","join":", "},"exchanges":{"paths":["exchanges"],"join":", "},"tickersBullet":{"template":"{tickersCode} ({exchanges})","whenVars":["tickersCode","exchanges"],"fallbackVar":"tickersCode"},"sic":{"paths":["sic"]},"sicDesc":{"paths":["sicDescription"]},"sicOrDesc":{"paths":["sic","sicDescription"]},"sicFull":{"template":"{sic} — {sicDesc}","whenVars":["sic","sicDesc"],"fallbackVar":"sicOrDesc"},"category":{"paths":["category"]},"stateInc":{"paths":["stateOfIncorporation"]},"fye":{"paths":["fiscalYearEnd"],"format":"fiscal_mmdd"},"descTickerOrCik":{"paths":["tickers"],"join":", ","fallbackTemplate":"CIK {paddedCik}"}},"titleTemplate":"{name} ({tickersPlain}) — SEC EDGAR","titleWhenVar":"tickersPlain","titleFallbackTemplate":"{name} (CIK {paddedCik}) — SEC EDGAR","descriptionTemplate":"{name} SEC EDGAR filings ({descTickerOrCik})","bullets":[{"label":"CIK","template":"`{paddedCik}`"},{"label":"Tickers","template":"{tickersBullet}","whenVar":"tickersBullet"},{"label":"SIC Industry","template":"{sicFull}","whenVar":"sicFull"},{"label":"Filer Category","template":"{category}","whenVar":"category"},{"label":"Incorporation","template":"{stateInc}","whenVar":"stateInc"},{"label":"Fiscal Year End","template":"{fye}","whenVar":"fye"}],"sections":[{"heading":"Recent SEC Filings","parallelArrays":{"basePath":"filings.recent","fields":{"form":"form","filingDate":"filingDate","reportDate":"reportDate","accessionNumber":"accessionNumber","primaryDocument":"primaryDocument","items":"items"},"priorityFilterAfter":{"index":12,"field":"form","allowValues":["10-K","10-K/A","10-Q","10-Q/A","8-K","DEF 14A","20-F","S-1","13F-HR","4"]}},"limit":25,"requireItemVar":"form","collectLinkVars":["docUrl"],"itemVars":{"form":{"paths":["form"]},"accRaw":{"paths":["accessionNumber"]},"accNoDash":{"paths":["accessionNumber"],"replaceAll":{"from":"-","to":""}},"primaryDocument":{"paths":["primaryDocument"]},"indexUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{accRaw}-index.htm","whenVars":["accRaw","accNoDash"]},"docUrl":{"template":"https://www.sec.gov/Archives/edgar/data/{numericCik}/{accNoDash}/{primaryDocument}","whenVars":["accNoDash","primaryDocument"],"fallbackVar":"indexUrl"},"formBold":{"template":"**{form}**","whenVars":["form"]},"formCell":{"template":"[**{form}**]({docUrl})","whenVars":["form","docUrl"],"fallbackVar":"formBold"}},"columns":[{"header":"Form","template":"{formCell}"},{"header":"Filed","paths":["filingDate"]},{"header":"Period","paths":["reportDate"]},{"header":"8-K Items","paths":["items"]}]}]}},{"id":"senate-lda","name":"Senate Lobbying Disclosures (LDA)","category":"public-records","description":"Extracts Senate Lobbying Disclosure Act filings from lda.gov (and lda.senate.gov) REST API v1 JSON with Crawl-delay 4s politeness and HTML fallback.","domains":["lda.gov","lda.senate.gov"],"auth_mode":"pub","min_interval_ms":4000,"strict_robots":true,"exampleUrls":["https://lda.gov/api/v1/filings/a934e791-d564-4fd3-8b78-041f8cfcf115/","https://lda.gov/filings/public/filing/a934e791-d564-4fd3-8b78-041f8cfcf115/"],"routes":[{"match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false,"pathSegments":["filings","public","filing",{"param":"filingId","charset":"alnum_dash","minLen":4,"maxLen":64}]},"twin":{"fetchUrl":"https://{host}/api/v1/filings/{filingId}/","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}},{"match":{"hosts":["lda.gov","lda.senate.gov"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"senate_lda_json"}}],"htmlRoutes":[{"id":"senate-lda","match":{"hosts":["lda.gov","lda.senate.gov"],"exactSegments":false},"mode":"senate_lda_html"}]},{"id":"servicenow-kb","name":"ServiceNow Knowledge Base","category":"developer","description":"Extracts public ServiceNow Knowledge Base articles from TechArticle JSON-LD and Service Portal KB DOM while rejecting soft-404 shells.","domains":["support.servicenow.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963589"],"htmlRoutes":[{"id":"servicenow-kb","match":{"exactSegments":false},"mode":"servicenow_kb_html"}]},{"id":"sfcc-demandware","name":"Salesforce Commerce Cloud (Demandware) Storefronts","category":"commerce-social","description":"Structurally detects Salesforce Commerce Cloud storefronts and extracts Product-Variation twins, JSON-LD, variation options, and product geometry/specification tables.","domains":["www.demandware.com"],"universalEngine":true,"exampleUrls":["https://www.demandware.com/product/sample"],"htmlRoutes":[{"id":"sfcc-demandware","match":{"exactSegments":false},"mode":"sfcc_html"}]},{"id":"shopify-filter-apps","name":"Shopify Filter Apps (Boost Commerce / Globo)","category":"commerce-social","description":"Page-key adapter for Boost Commerce (mybcapps.com) and Globo Smart Product Filter JSON endpoints; companion HTML mode yields so shopify_html is never preempted.","domains":["services.mybcapps.com","filter.globo.io"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://services.mybcapps.com/bc-sf-filter/filter?shop=get-casely.myshopify.com&page=1&limit=5"],"routes":[{"match":{"anyOf":[{"hosts":["services.mybcapps.com"],"pathEquals":["/bc-sf-filter/filter","/bc-sf-filter/search"]},{"hosts":["filter.globo.io"],"pathPrefix":"/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"shopify_filter_apps_json"}}],"htmlRoutes":[{"id":"shopify-filter-apps","match":{"exactSegments":false},"mode":"shopify_filter_apps_html"}]},{"id":"shopify-hydrogen","name":"Shopify Hydrogen Storefronts","category":"commerce-social","description":"Page-key adapter extracting Shopify Hydrogen SSR __remixContext loaderData (shop, products, collections) while rejecting non-Shopify Remix apps and empty shells.","domains":["hydrogen.shop"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://hydrogen.shop/"],"htmlRoutes":[{"id":"shopify-hydrogen","match":{"exactSegments":false},"mode":"shopify_hydrogen_html"}]},{"id":"shopify-storefront-graphql","name":"Shopify Storefront API (Tokenless GraphQL)","category":"commerce-social","description":"Queries any Shopify store's public Storefront API (/api//graphql.json) with Shopify's documented tokenless access for one product by handle (plus same-origin page-key companion discovery on storefronts embedding Storefront API tokens): shop name, vendor, type, price range, options, every variant (SKU, price, compare-at price, availability), and collections.","domains":["www.tentree.com","www.henryrose.com"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://henryrose.com/api/2025-07/graphql.json?handle=the-layering-collection","https://www.tentree.com/api/2025-07/graphql.json?handle=e-gift-code"],"routes":[{"match":{"exactSegments":true,"pathSegments":["api",{"param":"apiVersion","charset":"slug","minLen":7,"maxLen":10},"graphql.json"],"queryParams":[{"name":"handle","param":"handle","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://{host}/api/{apiVersion}/graphql.json","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requestBody":"{\"query\":\"query EdgeFetchProduct { shop { name } product(handle: \\\"{handle}\\\") { id handle title vendor productType description onlineStoreUrl availableForSale priceRange { minVariantPrice { amount currencyCode } maxVariantPrice { amount currencyCode } } options { name optionValues { name } } variants(first: 100) { nodes { id title sku availableForSale price { amount currencyCode } compareAtPrice { amount currencyCode } } } collections(first: 20) { nodes { handle title } } } }\"}","maxBytes":2097152},"extract":{"jsonMode":"shopify_storefront_graphql_json"}}]},{"id":"shopify","name":"Shopify Universal Storefront & Catalogs","category":"commerce-social","description":"Formats /products.json and /collections//products.json store inventories, upgrades *.myshopify.com and custom-domain /products/ pages, and implements polite full-store catalog pulls.","domains":["*.myshopify.com"],"universalEngine":true,"exampleUrls":["https://www.henryrose.com/products/the-layering-collection","https://www.henryrose.com/products.json?limit=30&page=1"],"catalog":{"platform":"shopify","pauseMs":1000,"pageCap":200,"firstPageTemplate":"{origin}/products.json?limit=250&page=1","collectionPageTemplate":"{origin}/collections/{collection}/products.json?limit=250&page=1","perPage":250,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"excludeHosts":["bigcartel.com","www.bigcartel.com","my.bigcartel.com","api.bigcartel.com","assets.bigcartel.com","help.bigcartel.com","developers.bigcartel.com","blog.bigcartel.com"],"anyOf":[{"pathEquals":["/products.json"]},{"exactSegments":true,"pathSegments":["collections",{"param":"col","charset":"slug","maxLen":160},"products.json"]}]},"twin":{"id":"shopify-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_catalog_page"}},{"match":{"pathSuffix":".js","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".js","maxLen":160}},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.js","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product_js"}},{"match":{"anyOf":[{"pathSuffix":".json","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}},{"hosts":["*.myshopify.com"],"scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/products/{handle}.json","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product"}},{"match":{"hosts":["*.myshopify.com"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["collections",{"param":"handle","charset":"slug","maxLen":160}]},"twin":{"id":"shopify","fetchUrl":"https://{host}/collections/{handle}/products.json?limit=50","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"commerceMode":"shopify_catalog_page"}}],"htmlRoutes":[{"id":"shopify","match":{"pathContainsSegment":"products"},"mode":"shopify_html"}]},{"id":"shopware-magento","name":"Magento 2 & Shopware 6 Storefronts","category":"commerce-social","description":"Structurally detects Magento 2 (text/x-magento-init swatches and bounded products-render-info) and Shopware 6 (sw-product-detail and property tables) storefronts.","domains":["www.shopware.com","business.adobe.com"],"universalEngine":true,"exampleUrls":["https://frontends-demo.vercel.app/Pepper-white-Muntok-pearl/SW10095"],"htmlRoutes":[{"id":"shopware-magento","match":{"exactSegments":false},"mode":"shopware_magento_html"}]},{"id":"slide-decks","name":"Slide Decks (SlideShare & SpeakerDeck)","category":"commerce-social","description":"Extracts SpeakerDeck presentations via public oEmbed JSON and slide transcripts HTML, and SlideShare decks via __NEXT_DATA__ HTML (no /api/ twin per robots.txt).","domains":["slideshare.net","www.slideshare.net","speakerdeck.com","www.speakerdeck.com"],"auth_mode":"pub","strict_robots":true,"exampleUrls":["https://www.slideshare.net/slideshow/slideshare-rebrand-announcement-deck-2025/283262633","https://speakerdeck.com/csswizardry/well-thats-weird"],"routes":[{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":true,"pathSegments":[{"param":"user","charset":"slug","minLen":1,"maxLen":80,"reserved":["search","signup","login","categories","features","pro","terms","privacy","about","jobs","assets","users","oembed.json"]},{"param":"deck","charset":"slug","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"https://speakerdeck.com/oembed.json?url=https%3A%2F%2Fspeakerdeck.com%2F{user}%2F{deck}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}},{"match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"pathEquals":["/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576},"extract":{"jsonMode":"speakerdeck_oembed_json"}}],"htmlRoutes":[{"id":"slide-decks","mode":"slideshare_html","match":{"hosts":["slideshare.net","www.slideshare.net"],"exactSegments":false}},{"id":"slide-decks","mode":"speakerdeck_html","match":{"hosts":["speakerdeck.com","www.speakerdeck.com"],"exactSegments":false}}]},{"id":"small-search","name":"Searchanise, Doofinder, Findify & Nosto Search","category":"commerce-social","description":"Opt-in page-key adapter pack for Searchanise, Doofinder, Findify, and Nosto search APIs; defaults OFF and falls back to HTML/JSON-LD.","domains":["searchserverapi1.com","eu1-search.doofinder.com","api-v3.findify.io","api.nosto.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://searchserverapi1.com/getresults?apiKey=3O4A8B9F4q&q=brew&output=json&maxResults=10"],"routes":[{"match":{"hosts":["searchserverapi1.com","www.searchserverapi1.com"],"pathEquals":["/getresults","/getwidgets"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"anyOf":[{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathEquals":["/5/search"]},{"hostSubdomain":{"suffix":"-search.doofinder.com","param":"zone"},"pathSegments":["6",{"param":"hashid","charset":"alnum_dash","minLen":8,"maxLen":64},"_search"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api-v3.findify.io"],"pathEquals":["/v3/search","/v3/autocomplete"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}},{"match":{"hosts":["api.nosto.com"],"pathEquals":["/v1/graphql"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"small_search"}}],"htmlRoutes":[{"id":"small-search","match":{"exactSegments":false},"mode":"small_search_html"}]},{"id":"smartetailing","name":"SmartEtailing IBD Storefronts","category":"commerce-social","description":"Structurally detects SmartEtailing independent bicycle dealer storefronts and extracts Product JSON-LD, spec tables, and dealer pickup info.","domains":["www.trekchicago.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.trekchicago.com/product/trek-precaliber-16-556127-1.htm"],"htmlRoutes":[{"id":"smartetailing","match":{"exactSegments":false},"mode":"smartetailing_html"}]},{"id":"smb-ats-full","name":"SMB ATS Full (Manatal, Homerun, Zoho Recruit, Freshteam)","category":"jobs","description":"Extracts open roles from Manatal career-page JSON API, Homerun JobPosting JSON-LD, Zoho Recruit, and Freshteam portals while rejecting 404.homerun.co and soft errors.","domains":["api.manatal.com","core.api.manatal.com","jobs.manatal.com","*.zohorecruit.com","*.freshteam.com","*.homerun.co"],"auth_mode":"pub","exampleUrls":["https://api.manatal.com/open/v3/career-page/manatal/jobs/","https://jobs.homerun.co/sales-executive-amsterdam"],"routes":[{"match":{"hosts":["api.manatal.com","core.api.manatal.com"],"pathPrefix":"/open/v3/career-page/","exactSegments":false},"twin":{"id":"smb-ats-full","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"hosts":["jobs.manatal.com"],"exactSegments":true,"pathSegments":[{"param":"slug","charset":"slug","reserved":["api","login","auth","static","assets","robots.txt","sitemap.xml","favicon.ico"],"minLen":1,"maxLen":120}]},"twin":{"id":"smb-ats-full-manatal","fetchUrl":"https://api.manatal.com/open/v3/career-page/{slug}/jobs/","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"manatal_jobs_json"}},{"match":{"anyOf":[{"hosts":["*.freshteam.com"],"pathPrefix":"/api/job_postings","exactSegments":false},{"hosts":["*.zohorecruit.com"],"pathPrefix":"/recruit/v2/","exactSegments":false}]},"twin":{"id":"smb-ats-full-json","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"smb_ats_json"}}],"htmlRoutes":[{"id":"smb-ats-full","mode":"smb_ats_full_html","match":{"hosts":["*.homerun.co","*.zohorecruit.com","*.freshteam.com","jobs.manatal.com"],"exactSegments":false}}]},{"id":"smithsonian-open-access","name":"Smithsonian Open Access","category":"public-records","description":"Smithsonian Open Access API v1.0 adapter (api.si.edu/openaccess) via api.data.gov key helper with HTML fallback.","domains":["si.edu","www.si.edu","api.si.edu"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.si.edu/openaccess/api/v1.0/search?q=apollo","https://api.si.edu/openaccess/api/v1.0/content/edanmdm:nasm_A19700102000","https://www.si.edu/object/apollo-11-command-module-columbia:nasm_A19700102000"],"routes":[{"match":{"hosts":["api.si.edu"],"pathPrefix":"/openaccess/api/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}},{"match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"pathSegments":["object",{"param":"objectSlug","charset":"url_seg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://api.si.edu/openaccess/api/v1.0/search?q={objectSlug}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"smithsonian_open_access_json"}}],"htmlRoutes":[{"id":"smithsonian-open-access","match":{"hosts":["si.edu","www.si.edu"],"exactSegments":false,"reservedFirstSegment":["search","admin","core"]},"mode":"smithsonian_open_access_html"}]},{"id":"socrata","name":"Socrata Open Data Portals (SODA Universal Engine)","category":"public-records","description":"Upgrades city, state, and federal Socrata open-data dataset URLs (/d/<4x4-id> or /dataset/.../<4x4-id>) to /api/views/.json column schemas and SODA endpoints.","domains":["data.cityofnewyork.us","data.sfgov.org","data.sf.gov","data.seattle.gov","data.cityofchicago.org","data.lacity.org","data.wa.gov","data.nj.gov","data.colorado.gov","data.texas.gov","data.ny.gov","data.cdc.gov","*.socrata.com"],"universalEngine":true,"exampleUrls":["https://data.cityofnewyork.us/Housing-Development/DOB-Job-Application-Filings/ic3t-wcy2","https://data.sf.gov/d/i98e-djp9"],"match":{"socrataHost":true,"minSegments":2,"anyOf":[{"socrataHost":true,"minSegments":2,"exactSegments":false,"pathSegments":["d",{"param":"viewId","charset":"socrata_4x4","transform":"lower"}]},{"socrataHost":true,"minSegments":2,"scanSegment":{"lastOrBeforeLiteral":"about_data","param":"viewId","charset":"socrata_4x4","transform":"lower"}}]},"twin":{"fetchUrl":"https://{host}/api/views/{viewId}.json","kind":"json","accept":"application/json"},"extract":{"requireFields":["name","id"],"vars":{"name":{"paths":["name"],"trim":true},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"attribution":{"paths":["attribution"]},"category":{"paths":["category"]},"license":{"paths":["license.name"]},"updatedDate":{"paths":["rowsUpdatedAt"],"format":"epoch_sec_date"},"sodaJsonUrl":{"template":"https://{host}/resource/{viewId}.json?$limit=50"},"csvExportUrl":{"template":"https://{host}/api/views/{viewId}/rows.csv?accessType=DOWNLOAD"}},"titleTemplate":"{name} ({host})","descriptionVar":"descShort","publishedTimeVar":"updatedDate","bullets":[{"label":"Dataset ID","template":"`{viewId}` ({host})"},{"label":"SODA JSON API","template":"`{sodaJsonUrl}`"},{"label":"CSV Download","template":"{csvExportUrl}"},{"label":"Agency / Attribution","template":"{attribution}","whenVar":"attribution"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Rows Last Updated","template":"{updatedDate}","whenVar":"updatedDate"},{"label":"License","template":"{license}","whenVar":"license"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Schema","headingTemplate":"Schema ({shownCount} Columns)","arrayPath":"columns","filter":{"excludeFieldPrefix":{"field":"fieldName","prefix":":@"}},"limit":40,"columns":[{"header":"Field Name","paths":["fieldName"],"code":true},{"header":"Label","paths":["name"]},{"header":"Type","paths":["dataTypeName"]},{"header":"Description","paths":["description"]}]}],"linksVars":["sodaJsonUrl","csvExportUrl"]}},{"id":"specialized","name":"Specialized Bicycles & Geometry Specs","category":"commerce-social","description":"Polite HTML adapter for Specialized product pages extracting technical specifications, frame geometry tables, pricing, availability, and manual downloads.","domains":["specialized.com","www.specialized.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.specialized.com/us/en/s-works-tarmac-sl9-sram-red-axs/p/4293533"],"htmlRoutes":[{"id":"specialized","match":{"exactSegments":false},"mode":"specialized_html"}]},{"id":"spree-solidus","name":"Spree Commerce & Solidus","category":"commerce-social","description":"Extracts Spree/Solidus JSON:API /api/v2/storefront/products twins and post-HTML JSON-LD/Microdata product pages.","domains":["demo.spreecommerce.org","demo.solidus.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://demo.spreecommerce.org/us/en/products/espresso-barista-kit","https://demo.solidus.io/products/solidus-hoodie"],"routes":[{"match":{"pathEquals":["/api/v2/storefront/products"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}},{"match":{"pathSegments":["api","v2","storefront","products",{"param":"id","charset":"url_seg","minLen":1,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"spree_solidus_json"}}],"htmlRoutes":[{"id":"spree-solidus","match":{"exactSegments":false},"mode":"spree_solidus_html"}]},{"id":"square-online","name":"Square Online Storefronts","category":"commerce-social","description":"Extracts Square Online storefront product JSON-LD, Microdata, and __BOOTSTRAP_STATE__ storeInfo/commerceLinks hydration while rejecting empty SPA shells.","domains":["www.pessosices.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.pessosices.com/product/ice-cream-gelato/92"],"htmlRoutes":[{"id":"square-online","match":{"exactSegments":false},"mode":"square_online_html"}]},{"id":"square-toast-menu","name":"Square Online Restaurant & Toast Online Ordering Menus","category":"commerce-social","description":"Extracts Square Online restaurant __BOOTSTRAP_STATE__ menus and Toast order.toasttab.com online ordering menus while rejecting Cloudflare challenges and empty shells.","domains":["order.toasttab.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://rinconmx-restaurant.square.site/shop/online-menu/LL5C6YEQHRVCYJVZRVRVY4WR","https://rinconmx-restaurant.square.site/"],"htmlRoutes":[{"id":"square-toast-menu","match":{"exactSegments":false},"mode":"square_toast_menu_html"}]},{"id":"squarespace-commerce","name":"Squarespace Commerce Storefronts","category":"commerce-social","description":"Detects Squarespace Commerce storefronts structurally and formats ?format=json-pretty product/collection payloads and HTML fallback into GFM tables and normalized CatalogRecord arrays.","domains":["commerce.squarespace.com"],"universalEngine":true,"exampleUrls":["https://www.trice-co.com/shop/p/pink-flare-leggings"],"htmlRoutes":[{"id":"squarespace-commerce","match":{"exactSegments":false},"mode":"squarespace_html"}]},{"id":"sram-docs","name":"SRAM Technical Documentation (Fluid Topics)","category":"developer","description":"Extracts bounded Fluid Topics SSR HTML documentation from docs.sram.com, stripping inline data:image base64 blobs and error chrome while preserving breadcrumbs, model codes, and PDF manual links.","domains":["docs.sram.com"],"exampleUrls":["https://docs.sram.com/en-US/publications/2eIzVnWuTRM7vhoKQjadQr"],"htmlRoutes":[{"id":"sram-docs","match":{"exactSegments":false},"mode":"sram_docs_html"}]},{"id":"sram-models","name":"SRAM Component Models (www.sram.com)","category":"commerce-social","description":"Extracts structured Product JSON-LD and technical component specification tables from www.sram.com/*/sram/models/* pages.","domains":["www.sram.com","sram.com"],"exampleUrls":["https://www.sram.com/en/sram/models/rd-xx-e-b1","https://www.sram.com/en/service/models/rd-gx-1-b1"],"htmlRoutes":[{"id":"sram-models","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["sram","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]},{"pathSegments":["service","models",{"param":"modelSlug","charset":"url_seg","minLen":1,"maxLen":140}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":[".product-detail h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main.product-detail",".product-detail","main"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"stackexchange-qa","name":"Stack Overflow & Stack Exchange Q&A","category":"developer","description":"Upgrades Stack Overflow / Stack Exchange URLs to keyless API v2.3 native Markdown (with HTML fallback), sorting the Accepted Answer first.","domains":["stackoverflow.com","www.stackoverflow.com","serverfault.com","superuser.com","askubuntu.com","mathoverflow.net","stackapps.com","*.stackexchange.com"],"exampleUrls":["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array"],"match":{"hostMap":{"param":"siteParam","stripWww":true,"exact":{"stackoverflow.com":"stackoverflow","serverfault.com":"serverfault","superuser.com":"superuser","askubuntu.com":"askubuntu","mathoverflow.net":"mathoverflow","stackapps.com":"stackapps"},"suffixSubdomain":".stackexchange.com"},"exactSegments":false,"pathSegments":[{"param":"qPrefix","allowValues":["questions","q"]},{"param":"qid","charset":"digits"}]},"twin":{"fetchUrl":"https://api.stackexchange.com/2.3/questions/{qid}?site={siteParam}&filter=%2120aKG._8Oscv%2A6dguVOli","kind":"json","accept":"application/json"},"extract":{"rootPath":"items.0","requireFields":["title"],"vars":{"title":{"paths":["title"],"format":"strip_tags"},"score":{"paths":["score"],"default":"0"},"tags":{"paths":["tags"],"limit":8,"itemWrap":"`","join":", "},"qMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"qHtmlMd":{"paths":["body"],"format":"html_to_md"},"qMd":{"template":"{qMdRaw}","whenVars":["qMdRaw"],"fallbackVar":"qHtmlMd"},"link":{"paths":["link"],"requireHttps":true}},"requireVars":["qMd"],"titleTemplate":"{title}","metaLine":[{"label":"Votes","template":"{score}"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"Question","textVar":"qMd"},{"heading":"","subsectionsArrayPath":"answers","sortBy":{"boolDescField":"is_accepted","numDescField":"score"},"limit":8,"requireItemVar":"ansMd","subsectionHeadingTemplate":"Answer {index1} (Score: {scoreLabel})","subsectionAltWhenVar":"acceptedFlag","subsectionAltHeadingTemplate":"✅ Accepted Answer (Score: {scoreLabel})","subsectionBodyVar":"ansMd","itemVars":{"ansMdRaw":{"paths":["body_markdown"],"format":"se_markdown"},"ansHtmlMd":{"paths":["body"],"format":"html_to_md"},"ansMd":{"template":"{ansMdRaw}","whenVars":["ansMdRaw"],"fallbackVar":"ansHtmlMd"},"ansScore":{"paths":["score"],"default":"0"},"ansAuthor":{"paths":["owner.display_name"],"format":"strip_tags"},"scoreLabel":{"template":"{ansScore} — by {ansAuthor}","whenVars":["ansAuthor"],"fallbackVar":"ansScore"},"acceptedFlag":{"paths":["is_accepted"],"format":"bool_map","trueValue":"1","falseValue":""}}}],"linksVars":["link"]},"htmlRoutes":[{"match":{"exactSegments":false,"pathSegments":["questions",{"param":"qid","charset":"digits"}]},"mode":"stackexchange_html"}]},{"id":"staffing-ats-pack","name":"Staffing ATS Pack (Crelate, JobDiva, Ceipal)","category":"jobs","description":"Extracts public staffing job boards and postings from Crelate, JobDiva, and Ceipal while rejecting disabled portals (Organization Portal Disabled) and error shells.","domains":["jobs.crelate.com","app.crelate.com","*.jobdiva.com","*.ceipal.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://jobs.crelate.com/portal/promotive/rss","https://jobs.crelate.com/portal/promotive","https://www1.jobdiva.com/"],"routes":[{"match":{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/portal/","pathSuffix":"/rss","exactSegments":false},"twin":{"id":"staffing-ats-pack-crelate-rss","fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","titleTemplate":"Crelate Staffing Jobs ({itemCount})","emptyText":"No open positions currently listed.","limit":50,"requireItemVar":"jTitle","collectLinkVar":"jLink","emitTotals":true,"itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"loc":{"tags":["location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"recordFields":{"title":"{jTitle}","url":"{jLink}","location":"{loc}","postedAt":"{pubDate}","source":"crelate"},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"match":{"anyOf":[{"hosts":["jobs.crelate.com","app.crelate.com"],"pathPrefix":"/api/","exactSegments":false},{"hosts":["*.ceipal.com"],"anyOf":[{"pathPrefix":"/jobs/api/","exactSegments":false},{"pathPrefix":"/api/","exactSegments":false}]},{"hosts":["*.jobdiva.com"],"pathPrefix":"/portal/api/","exactSegments":false}]},"twin":{"id":"staffing-ats-pack","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"staffing_ats_json"}}],"htmlRoutes":[{"id":"staffing-ats-pack","mode":"staffing_ats_pack_html","match":{"exactSegments":false}}]},{"id":"stamped-loox-junip","name":"Stamped, Loox & Junip Product Reviews","category":"commerce-social","description":"Extracts public Stamped, Junip, and Loox storefront API review JSON payloads without hitting disallowed loox.io/widget paths.","domains":["stamped.io","api.juniphq.com","apid.juniphq.com","storefront-api.loox.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stamped.io/api/widget/reviews?sId=291293&apiKey=a23ad1ea-e527-4a21-9a95-37fefe0ff5cd&productId=8317758832957&page=1&take=10"],"routes":[{"match":{"hosts":["stamped.io"],"pathEquals":["/api/widget/reviews","/api/widget/reviews/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"anyOf":[{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathEquals":["/v1/product_reviews","/v1/display_settings"]},{"hosts":["api.juniphq.com","apid.juniphq.com"],"pathSegments":["v1","products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120}]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}},{"match":{"hosts":["storefront-api.loox.io"],"pathSegments":["storefront","v1","store",{"param":"storeId","charset":"alnum_dash","minLen":2,"maxLen":80},{"param":"endpoint","allowValues":["product-reviews","bottomline"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stamped_loox_junip_reviews"}}],"htmlRoutes":[{"id":"stamped-loox-junip","match":{"exactSegments":false},"mode":"stamped_loox_junip_html"}]},{"id":"state-court-portals","name":"State Court Portals","category":"public-records","description":"Extracts public state court appellate pages, orders, and opinions (www.txcourts.gov) while honestly detecting WAF, login, and SPA barriers on research.txcourts.gov.","domains":["research.txcourts.gov","www.txcourts.gov"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.txcourts.gov/supreme/orders-opinions/","https://research.txcourts.gov/CourtRecordsSearch/#!/home"],"htmlRoutes":[{"id":"state-court-portals","match":{"hosts":["research.txcourts.gov","www.txcourts.gov"]},"mode":"state_court_portals_html"}]},{"id":"state-legislatures","name":"State Legislatures (Open States & LegiScan)","category":"public-records","description":"Official Open States v3 API and LegiScan API adapter for state bills, sessions, legislators, and jurisdictions with HTML fallback.","domains":["openstates.org","www.openstates.org","v3.openstates.org","legiscan.com","www.legiscan.com","api.legiscan.com"],"auth_mode":"key","exampleUrls":["https://v3.openstates.org/bills/tx/89/HB%201","https://api.legiscan.com/?op=getBill&id=1167968"],"routes":[{"match":{"hosts":["v3.openstates.org"],"anyOf":[{"pathPrefix":"/bills"},{"pathPrefix":"/jurisdictions"},{"pathPrefix":"/people"},{"pathPrefix":"/events"},{"pathPrefix":"/committees"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["openstates.org","www.openstates.org"],"exactSegments":false,"pathSegments":[{"param":"state","charset":"alnum","minLen":2,"maxLen":2,"transform":"lower"},"bills",{"param":"session","charset":"url_seg","minLen":1,"maxLen":40},{"param":"billId","charset":"url_seg","minLen":1,"maxLen":40}]},"twin":{"fetchUrl":"https://v3.openstates.org/bills/{state}/{session}/{billId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}},{"match":{"hosts":["api.legiscan.com"],"queryParams":[{"name":"op","param":"op","charset":"alnum","minLen":3,"maxLen":40}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"state_legislatures_json"}}],"htmlRoutes":[{"id":"state-legislatures","match":{"hosts":["openstates.org","www.openstates.org","legiscan.com","www.legiscan.com"],"exactSegments":false},"mode":"state_legislatures_html"}]},{"id":"state-sos-business","name":"State Secretary of State Business Registries","category":"public-records","description":"Extracts public state business registry filings (DE, CA, FL, TX) with strict robots.txt enforcement, rate pacing, and WAF/Incapsula/Cloudflare rejection.","domains":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"auth_mode":"pub","strict_robots":true,"min_interval_ms":2000,"max_concurrent":1,"exampleUrls":["https://comptroller.texas.gov/taxes/franchise/"],"routes":[{"match":{"hosts":["bizfileonline.sos.ca.gov"],"exactSegments":false,"pathSegments":["search","business",{"param":"recordId","charset":"url_seg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://bizfileonline.sos.ca.gov/api/Records/businesssearch/{recordId}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}},{"match":{"hosts":["bizfileonline.sos.ca.gov"],"pathPrefix":"/api/Records/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"state_sos_json"}}],"htmlRoutes":[{"id":"state-sos-business","match":{"hosts":["icis.corp.delaware.gov","bizfileonline.sos.ca.gov","search.sunbiz.org","mycpa.cpa.state.tx.us","comptroller.texas.gov"],"exactSegments":false},"mode":"state_sos_html"}]},{"id":"state-workforce-boards","name":"State Workforce & Public Job Boards","category":"jobs","description":"Extracts structured public job postings from state workforce portals (jobs.myflorida.com, statejobs.ny.gov, calcareers.ca.gov, usnlx.com) with Rule 5 honest fallbacks.","domains":["statejobs.ny.gov","calcareers.ca.gov","usnlx.com"],"universalEngine":true,"auth_mode":"html","strict_robots":true,"exampleUrls":["https://jobs.myflorida.com/job/TALLAHASSEE-Attorney-FL-32301/1425569100/","https://statejobs.ny.gov/public/vacancyDetailsView.cfm?id=229697"],"htmlRoutes":[{"id":"state-workforce-boards","mode":"state_workforce_boards_html","match":{"excludeHosts":["governmentjobs.com","*.governmentjobs.com","workintexas.com","*.workintexas.com"],"anyOf":[{"hosts":["jobs.myflorida.com","statejobs.ny.gov","calcareers.ca.gov","www.calcareers.ca.gov","usnlx.com","www.usnlx.com"],"exactSegments":false},{"hostSubdomain":{"suffix":".usnlx.com","param":"state","reserved":["www","api","login"]},"exactSegments":false}]}}]},{"id":"status-page-pack","name":"Status Page Pack","category":"developer","description":"Extracts service status, components, and incidents from Instatus, Better Stack, Status.io, and Cachet public JSON endpoints and SSR HTML pages.","domains":["deno.instatus.com","status.instatus.com","status.betterstack.com","status.raycast.com","status.gitlab.com","demo.cachethq.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://deno.instatus.com/","https://deno.instatus.com/v2/components.json","https://status.betterstack.com/","https://status.gitlab.com/1.0/status/5b36dc6502d06804c08349f7","https://demo.cachethq.io/api/v1/components"],"routes":[{"match":{"pathEquals":["/summary.json","/v2/components.json","/v2/incidents.json","/index.json","/api/v1/components","/api/v1/incidents","/api/v1/status"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}},{"match":{"exactSegments":true,"pathSegments":["1.0","status",{"param":"statusId","charset":"alnum","minLen":16,"maxLen":48}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"status_page_pack"}}],"htmlRoutes":[{"id":"status-page-pack","match":{"exactSegments":false},"mode":"status_page_pack_html"}]},{"id":"stockist","name":"Stockist Dealer Locator","category":"commerce-social","description":"Extracts public Stockist store/dealer locator JSON payloads and discovers Stockist widget tags on merchant HTML pages.","domains":["stockist.co","www.stockist.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://stockist.co/api/v1/map_93wm75n3/locations/all"],"routes":[{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}},{"match":{"hosts":["stockist.co","www.stockist.co"],"pathSegments":["api","v1",{"param":"tag","charset":"alnum_dash","minLen":2,"maxLen":64},"locations","all"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"stockist_locations"}}],"htmlRoutes":[{"id":"stockist","match":{"exactSegments":false},"mode":"stockist_html"}]},{"id":"storemapper","name":"Storemapper Dealer Locator","category":"commerce-social","description":"Extracts public Storemapper store locator JSON feeds and discovers Storemapper widget IDs on merchant HTML pages.","domains":["www.storemapper.co","storemapper.co"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.storemapper.co/api/users/12873/stores.json"],"routes":[{"match":{"hosts":["www.storemapper.co","storemapper.co"],"pathSegments":["api","users",{"param":"userId","charset":"alnum_dash","minLen":1,"maxLen":64},"stores.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storemapper_locations"}}],"htmlRoutes":[{"id":"storemapper","match":{"exactSegments":false},"mode":"storemapper_html"}]},{"id":"storerocket","name":"StoreRocket Dealer Locator","category":"commerce-social","description":"Extracts public StoreRocket store locator JSON payloads and discovers StoreRocket widget IDs on merchant HTML pages.","domains":["storerocket.io","www.storerocket.io"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://storerocket.io/api/user/OdJERNO8WE/locations"],"routes":[{"match":{"hosts":["storerocket.io","www.storerocket.io"],"pathSegments":["api","user",{"param":"userId","charset":"alnum_dash","minLen":2,"maxLen":64},"locations"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"storerocket_locations"}}],"htmlRoutes":[{"id":"storerocket","match":{"exactSegments":false},"mode":"storerocket_html"}]},{"id":"strava-segments","name":"Strava Public Segments","category":"commerce-social","description":"Extracts Strava segments via authenticated API v3 (/api/v3/segments/* with STRAVA_ACCESS_TOKEN or Part 2 strava Virtual OAuth MCP) and public /segments/* __NEXT_DATA__ HTML fallback, rejecting /register/free authwalls.","domains":["www.strava.com","strava.com"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://www.strava.com/segments/229781","https://www.strava.com/api/v3/segments/229781"],"routes":[{"match":{"hosts":["www.strava.com","strava.com"],"exactSegments":true,"pathSegments":["api","v3","segments",{"param":"segmentId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":1048576,"auth_mode":"key"},"extract":{"jsonMode":"strava_segments_json"}}],"htmlRoutes":[{"id":"strava-segments","mode":"strava_segments_html","match":{"hosts":["www.strava.com","strava.com"],"pathPrefix":"/segments/","exactSegments":false}}]},{"id":"supremecourt-gov","name":"U.S. Supreme Court Opinions, Dockets & Orders","category":"public-records","description":"Robots-enforced HTML adapter for Supreme Court slip opinions, public docket files, and orders of the Court.","domains":["supremecourt.gov","www.supremecourt.gov"],"auth_mode":"html","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.supremecourt.gov/opinions/slipopinion/24","https://www.supremecourt.gov/docket/docketfiles/html/public/23-939.html","https://www.supremecourt.gov/orders/ordersofthecourt/24"],"htmlRoutes":[{"id":"supremecourt-gov","match":{"anyOf":[{"pathPrefix":"/opinions/"},{"pathPrefix":"/docket/"},{"pathPrefix":"/orders/"}]},"mode":"supremecourt_html"}]},{"id":"taleo-full","name":"Oracle Taleo Career Section Job Search","category":"jobs","description":"Formats Oracle Taleo career-section job boards via the public /careersection/rest/jobboard/searchjobs endpoint (portal id from the page: title, location, posted date, contest number, total open requisitions) plus SSR FreeMarker /careersection/
/jobsearch.ftl and jobdetail.ftl HTML fallbacks.","domains":["hdr.taleo.net","*.taleo.net"],"universalEngine":true,"auth_mode":"pub","min_interval_ms":3000,"strict_robots":true,"exampleUrls":["https://hdr.taleo.net/careersection/rest/jobboard/searchjobs?lang=en&portal=101430233§ion=ex","https://chicago.taleo.net/careersection/100/jobsearch.ftl"],"routes":[{"match":{"hostSubdomain":{"suffix":".taleo.net","param":"tenant","reserved":["www"]},"pathEquals":["/careersection/rest/jobboard/searchjobs"],"queryParams":[{"name":"portal","param":"portal","charset":"digits","minLen":4,"maxLen":20},{"name":"section","param":"section","charset":"slug","minLen":1,"maxLen":40,"optional":true}]},"twin":{"fetchUrl":"https://{host}/careersection/rest/jobboard/searchjobs?lang=en&portal={portal}","kind":"json","accept":"application/json","method":"POST","contentType":"application/json","headers":{"tz":"GMT-06:00","tzname":"America/Chicago"},"requestBody":"{\"multilineEnabled\":false,\"sortingSelection\":{\"sortBySelectionParam\":\"3\",\"ascendingSortingOrder\":\"false\"},\"fieldData\":{\"fields\":{\"KEYWORD\":\"\",\"LOCATION\":\"\"},\"valid\":true},\"filterSelectionParam\":{\"searchFilterSelections\":[]},\"advancedSearchFiltersSelectionParam\":{\"searchFilterSelections\":[]},\"pageNo\":1}","maxBytes":4194304},"extract":{"jsonMode":"taleo_searchjobs_json"}}],"htmlRoutes":[{"id":"taleo-full","mode":"taleo_full_html","match":{"pathPrefix":"/careersection/","exactSegments":false}}]},{"id":"target","name":"Target","category":"commerce-social","description":"Extracts Target product pages from schema.org Product JSON-LD (including entity-encoded ld+json) and live Target SSR HTML metadata without calling disallowed redsky endpoints.","domains":["target.com","www.target.com","redsky.target.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.target.com/p/campus-lab-university-of-arkansas-at-monticello-official-uam-boll-weevils-logo-unisex-adult-pull-over-hoodie/-/A-1000000076"],"htmlRoutes":[{"id":"target","match":{"hosts":["target.com","www.target.com"]},"mode":"target_html"}]},{"id":"teamtailor","name":"Teamtailor Career Portals","category":"jobs","description":"Upgrades [.na].teamtailor.com career roots to their /jobs.rss feed with locations and departments.","domains":["*.teamtailor.com"],"exampleUrls":["https://stratio.teamtailor.com/","https://stratio.teamtailor.com/jobs"],"match":{"hostSubdomain":{"suffix":".teamtailor.com","param":"org","stripOptional2LetterRegion":true,"reserved":["www","app","career"]},"pathSegments":[{"param":"jobsLit","charset":"alnum","allowValues":["jobs"],"optional":true}]},"twin":{"id":"teamtailor","fetchUrl":"https://{host}/jobs.rss","kind":"text","accept":"application/rss+xml"},"extract":{"xml":{"mode":"items_table","requireAnyTags":["rss","channel"],"itemTag":"item","channelTitleFallbackParam":"org","titleTemplate":"{channelTitle} — Open Roles ({itemCount})","emptyText":"No open positions currently listed.","limit":100,"requireItemVar":"jTitle","collectLinkVar":"jLink","itemVars":{"jTitle":{"tags":["title"]},"jLink":{"tags":["link"]},"dept":{"tags":["tt:department","category"],"default":"-"},"loc":{"tags":["tt:location","g:location","location"],"default":"-"},"pubDate":{"tags":["pubDate"],"sliceMax":16,"default":"-"}},"columns":[{"header":"Role","template":"[{jTitle}]({jLink})"},{"header":"Department","template":"{dept}"},{"header":"Location","template":"{loc}"},{"header":"Published","template":"{pubDate}"}]}}},{"id":"tech-job-boards-jsonld","name":"Tech Job Boards (BuiltIn, Wellfound, Dice)","category":"jobs","description":"Extracts JobPosting JSON-LD (including HTML-entity-encoded application/ld+json) from BuiltIn, Wellfound, and Dice while honoring robots.txt and rejecting Cloudflare Turnstile/SPA shells.","domains":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"auth_mode":"html","strict_robots":true,"exampleUrls":["https://builtin.com/job/executive-employee-social-media-vice-president/12592638"],"htmlRoutes":[{"id":"tech-job-boards-jsonld","mode":"tech_job_boards_jsonld_html","match":{"hosts":["builtin.com","www.builtin.com","wellfound.com","www.wellfound.com","dice.com","www.dice.com"],"exactSegments":false}}]},{"id":"terraform-registry","name":"Terraform Registry","category":"developer","description":"Upgrades registry.terraform.io provider and module pages to the official keyless /v1/ JSON API with versions, documentation entries, inputs, outputs, and README.","domains":["registry.terraform.io"],"exampleUrls":["https://registry.terraform.io/providers/hashicorp/random","https://registry.terraform.io/providers/hashicorp/random/3.8.1","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws","https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/5.1.0"],"routes":[{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","docs"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["providers",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/providers/{ns}/{name}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"version":{"paths":["version"]},"tier":{"paths":["tier"]},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"versionCount":{"paths":["versions"],"format":"array_len_comma"}},"titleTemplate":"{namespace}/{name} v{version} (Terraform Provider)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Provider","template":"`{namespace}/{name}`"},{"label":"Version","template":"`{version}`"},{"label":"Tier","template":"{tier}","whenVar":"tier"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Available Versions","template":"{versionCount}","whenVar":"versionCount"},{"label":"Source","template":"{source}","whenVar":"source"}],"sections":[{"heading":"Documentation Entries","arrayPath":"docs","limit":40,"columns":[{"header":"Title","paths":["title"]},{"header":"Category","paths":["category"]},{"header":"Language","paths":["language"]},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"url_seg","reserved":["latest","submodules","examples"],"minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}/{ver}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80},{"param":"ver","charset":"alnum","allowValues":["latest"],"minLen":6,"maxLen":6}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}},{"match":{"exactSegments":true,"pathSegments":["modules",{"param":"ns","charset":"pkg","minLen":1,"maxLen":80},{"param":"name","charset":"pkg","minLen":1,"maxLen":80},{"param":"provider","charset":"pkg","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"https://registry.terraform.io/v1/modules/{ns}/{name}/{provider}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["namespace","name","provider","version"],"vars":{"namespace":{"paths":["namespace"]},"name":{"paths":["name"]},"provider":{"paths":["provider"]},"version":{"paths":["version"]},"verified":{"paths":["verified"],"format":"bool_map","trueValue":"Verified","falseValue":"Unverified"},"downloads":{"paths":["downloads"],"format":"int_comma"},"publishedAt":{"paths":["published_at"],"sliceMax":10},"desc":{"paths":["description"],"trim":true},"source":{"paths":["source"],"requireHttps":true},"readme":{"paths":["root.readme"],"format":"demote_h1","trim":true}},"titleTemplate":"{namespace}/{name}/{provider} v{version} (Terraform Module)","descriptionVar":"desc","publishedTimeVar":"publishedAt","introVar":"desc","bullets":[{"label":"Module","template":"`{namespace}/{name}/{provider}`"},{"label":"Version","template":"`{version}`"},{"label":"Status","template":"{verified}","whenVar":"verified"},{"label":"Downloads","template":"{downloads}","whenVar":"downloads"},{"label":"Published","template":"{publishedAt}","whenVar":"publishedAt"},{"label":"Source","template":"{source}","whenVar":"source"}],"bodyVar":"readme","sections":[{"heading":"Inputs","arrayPath":"root.inputs","limit":60,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Type","paths":["type"],"code":true},{"header":"Required","paths":["required"]},{"header":"Description","paths":["description"]}]},{"heading":"Outputs","arrayPath":"root.outputs","limit":40,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Description","paths":["description"]}]},{"heading":"Submodules","arrayPath":"submodules","limit":30,"columns":[{"header":"Name","paths":["name"],"code":true},{"header":"Path","paths":["path"],"code":true}]}],"linksVars":["source"]}}]},{"id":"ticketmaster-discovery","name":"Ticketmaster Discovery API","category":"commerce-social","description":"Extracts Ticketmaster events, venues, and attractions via the official Ticketmaster Discovery API v2 with Schema.org Event JSON-LD HTML fallback.","domains":["ticketmaster.com","www.ticketmaster.com","app.ticketmaster.com"],"auth_mode":"key","exampleUrls":["https://app.ticketmaster.com/discovery/v2/events.json?keyword=concert&countryCode=US","https://www.ticketmaster.com/demo-tour-los-angeles-california-12-01-2026/event/3C006457CF441F75"],"routes":[{"match":{"hosts":["app.ticketmaster.com"],"pathPrefix":"/discovery/v2/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}},{"match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"scanSegment":{"afterLiteral":"event","param":"eventId","charset":"alnum","minLen":6,"maxLen":32}},"twin":{"fetchUrl":"https://app.ticketmaster.com/discovery/v2/events/{eventId}.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"ticketmaster_json"}}],"htmlRoutes":[{"id":"ticketmaster-discovery","match":{"hosts":["ticketmaster.com","www.ticketmaster.com"],"exactSegments":false},"mode":"ticketmaster_html"}]},{"id":"townnews-blox","name":"TownNews BLOX CMS","category":"commerce-social","description":"Extracts TownNews BLOX ?f=json news asset twins and discovers tncms/bloxcms markers on local publisher HTML pages.","domains":["lancasteronline.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://lancasteronline.com/sports/highschool/football/district-3-gold-piaa-glory-up-for-grabs-for-4-l-l-league-football-teams/article_a6f1fede-b459-44f2-a5cd-8224c48f76a8.html"],"routes":[{"match":{"hosts":["lancasteronline.com"],"pathSuffix":".html"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json"},"extract":{"jsonMode":"townnews_blox_json"}}],"htmlRoutes":[{"id":"townnews-blox","match":{"exactSegments":false},"mode":"townnews_blox_html"}]},{"id":"tq-ebike","name":"TQ e-Mobility Products & Support","category":"commerce-social","description":"Extracts Product JSON-LD, drive system technical specs, and support documentation from www.tq-ebike.com product and help-support pages.","domains":["www.tq-ebike.com","tq-ebike.com"],"exampleUrls":["https://www.tq-ebike.com/en/e-bike-system/hpr50/"],"htmlRoutes":[{"id":"tq-ebike","mode":"dom","match":{"optionalLeadingLocale":true,"exactSegments":false,"anyOf":[{"pathSegments":["products",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["e-bike-system",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]},{"pathSegments":["help-support",{"param":"slug","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":160}]}]},"jsonLdTypes":["Product"],"vars":{"title":{"jsonLdPaths":["name"],"cssText":["main h1","h1","title"],"trim":true},"sku":{"jsonLdPaths":["sku"],"trim":true},"brand":{"jsonLdPaths":["brand.name","brand"],"trim":true},"body":{"cssHtmlToMd":["main","article",".tx-specs",".site-content","body"],"format":"strip_leading_h1","trim":true}},"requireVars":["title","body"],"titleTemplate":"{title}","bullets":[{"label":"Brand","template":"{brand}","whenVar":"brand"},{"label":"SKU","template":"`{sku}`","whenVar":"sku"}],"bodyVar":"body","preserveBodyLinksFromVar":"body"}]},{"id":"trade-gov-csl","name":"Trade.gov Consolidated Screening List","category":"public-records","description":"Official keyed Trade.gov Consolidated Screening List (CSL) API adapter (TRADE_GOV_CSL_API_KEY via subscription-key header) with HTML fallback on www.trade.gov.","domains":["data.trade.gov","api.trade.gov","www.trade.gov","trade.gov"],"auth_mode":"key","exampleUrls":["https://data.trade.gov/consolidated_screening_list/v1/search?q=huawei","https://www.trade.gov/consolidated-screening-list"],"routes":[{"match":{"hosts":["data.trade.gov","api.trade.gov"],"pathPrefix":"/consolidated_screening_list/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":4194304},"extract":{"jsonMode":"trade_gov_csl_json"}}],"htmlRoutes":[{"id":"trade-gov-csl","match":{"hosts":["www.trade.gov","trade.gov"],"exactSegments":false},"mode":"trade_gov_csl_html"}]},{"id":"trailforks-mtb-project","name":"Trailforks & MTB Project Trail Intelligence","category":"commerce-social","description":"Official Trailforks API v1 key-authenticated twin + HTML fallback for Trailforks and MTB Project trail reports (honoring mtbproject.com Crawl-delay: 60 and Disallow: /data*).","domains":["trailforks.com","www.trailforks.com","mtbproject.com","www.mtbproject.com"],"auth_mode":"key","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.trailforks.com/trails/betasso-preserve-canyon-loop/","https://www.trailforks.com/api/1/trail?id=40401","https://www.mtbproject.com/trail/12376/buffehr-creek-trail"],"routes":[{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathEquals":["/api/1/trail","/api/1/trail/","/api/1/trails","/api/1/trails/"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}},{"match":{"hosts":["trailforks.com","www.trailforks.com"],"pathSegments":["trails",{"param":"slug","charset":"url_seg","minLen":1,"maxLen":160}],"exactSegments":false},"twin":{"fetchUrl":"https://www.trailforks.com/api/1/trail?id={slug}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"trailforks_api_json"}}],"htmlRoutes":[{"id":"trailforks-mtb-project","match":{"exactSegments":false},"mode":"trailforks_mtb_html"}]},{"id":"transitland-gtfs","name":"Transitland GTFS Registry","category":"public-records","description":"Transitland v2 REST API (apikey header on apex transit.land) for GTFS feeds/operators/routes/stops with www.transit.land/data/feeds HTML fallback.","domains":["transit.land","www.transit.land"],"auth_mode":"key","exampleUrls":["https://transit.land/api/v2/rest/feeds?limit=1","https://www.transit.land/data/feeds/f-9q9-bart"],"routes":[{"match":{"hosts":["transit.land"],"pathPrefix":"/api/v2/rest/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}},{"match":{"hosts":["www.transit.land","transit.land"],"exactSegments":true,"pathSegments":["data","feeds",{"param":"feedId","charset":"alnum_dash","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://transit.land/api/v2/rest/feeds/{feedId}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"transitland_json"}}],"htmlRoutes":[{"id":"transitland-gtfs","match":{"hosts":["www.transit.land","transit.land"],"exactSegments":false},"mode":"transitland_html"}]},{"id":"treasury-fiscal-data","name":"U.S. Treasury Fiscal Data","category":"finance","description":"Upgrades fiscaldata.treasury.gov dataset pages to keyless api.fiscaldata.treasury.gov JSON endpoints with metadata-labeled GFM tables and HTML fallback.","domains":["fiscaldata.treasury.gov","api.fiscaldata.treasury.gov"],"auth_mode":"pub","exampleUrls":["https://fiscaldata.treasury.gov/datasets/debt-to-the-penny/debt-to-the-penny","https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?page[size]=1"],"routes":[{"match":{"hosts":["api.fiscaldata.treasury.gov"],"pathPrefix":"/services/api/fiscal_service/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}},{"match":{"hosts":["fiscaldata.treasury.gov"],"pathPrefix":"/datasets/debt-to-the-penny"},"twin":{"fetchUrl":"https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v2/accounting/od/debt_to_penny?sort=-record_date&page[size]=1","kind":"json","accept":"application/json","auth_mode":"pub","maxBytes":2097152},"extract":{"jsonMode":"treasury_fiscal_json"}}],"htmlRoutes":[{"id":"treasury-fiscal-data","match":{"hosts":["fiscaldata.treasury.gov"],"exactSegments":false},"mode":"treasury_fiscal_html"}]},{"id":"trustpilot","name":"Trustpilot Business Reviews","category":"commerce-social","description":"Extracts Trustpilot business summary and review records from __NEXT_DATA__ or JSON-LD while honoring robots.txt policies.","domains":["trustpilot.com","www.trustpilot.com"],"auth_mode":"html","exampleUrls":["https://www.trustpilot.com/review/shopify.com"],"htmlRoutes":[{"id":"trustpilot","match":{"hosts":["trustpilot.com","www.trustpilot.com"],"exactSegments":false},"mode":"trustpilot_html"}]},{"id":"twitch-kick","name":"Twitch & Kick Streaming","category":"commerce-social","description":"Extracts Twitch Helix (Bearer + Client-Id) and Kick public v1/v2 channel APIs plus Twitch/Kick channel HTML.","domains":["api.twitch.tv","www.twitch.tv","twitch.tv","api.kick.com","kick.com","www.kick.com"],"auth_mode":"key","exampleUrls":["https://kick.com/api/v2/channels/kick","https://www.twitch.tv/twitch","https://kick.com/kick","https://api.twitch.tv/helix/users?login=twitch"],"routes":[{"match":{"hosts":["api.twitch.tv"],"pathPrefix":"/helix/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["api.kick.com"],"pathPrefix":"/public/v1/","exactSegments":false},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key"},"extract":{"jsonMode":"twitch_kick_json"}},{"match":{"hosts":["kick.com","www.kick.com"],"exactSegments":true,"pathSegments":["api","v2","channels",{"param":"slug","charset":"slug","minLen":1,"maxLen":80}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"pub"},"extract":{"jsonMode":"twitch_kick_json"}}],"htmlRoutes":[{"id":"twitch-kick","match":{"hosts":["www.twitch.tv","twitch.tv","kick.com","www.kick.com"],"exactSegments":false},"mode":"twitch_kick_html"}]},{"id":"tyler-energov","name":"Tyler Technologies EnerGov SelfService","category":"public-records","description":"Extracts public permit, plan, and license records from Tyler EnerGov SelfService APIs and SSR HTML while rejecting empty AngularJS shells and WAF challenges.","domains":["energovweb.capecoral.gov","energovcss.miamibeachfl.gov"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://energovweb.capecoral.gov/EnerGovProd/selfservice/api/energov/permits","https://energovweb.capecoral.gov/EnerGovProd/selfservice","https://energovcss.miamibeachfl.gov/energovprod/selfservice/"],"routes":[{"match":{"anyOf":[{"pathPrefix":"/EnerGov_Prod/SelfService/api/"},{"pathPrefix":"/EnerGovProd/selfservice/api/"},{"pathPrefix":"/energovprod/selfservice/api/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"tyler_energov_json"}}],"htmlRoutes":[{"id":"tyler-energov","match":{"exactSegments":false},"mode":"tyler_energov_html"}]},{"id":"ukg-paylocity-dover","name":"UKG Pro, Paylocity & Dover Job Boards","category":"jobs","description":"Extracts structured open roles from Paylocity (/recruiting/api/feed/jobs & window.pageData), UKG Pro (*/JobBoard/* only, never / or */JobBoardView), and Dover HTML/SSR __NEXT_DATA__ (never /api/).","domains":["recruiting.ultipro.com","recruiting.paylocity.com","app.dover.com","jobs.dover.com"],"exampleUrls":["https://recruiting.paylocity.com/Recruiting/Jobs/All/cfe0e892-760a-4f34-b732-e6d0be968d4f"],"routes":[{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/all/","scanSegment":{"afterLiteral":"all","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"https://recruiting.paylocity.com/recruiting/api/feed/jobs/{guid}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}},{"match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/api/feed/jobs/","scanSegment":{"afterLiteral":"jobs","param":"guid","charset":"slug","minLen":4,"maxLen":80}},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"paylocity_feed"}}],"htmlRoutes":[{"id":"ukg-paylocity-dover","mode":"ukg_pro_html","match":{"hosts":["recruiting.ultipro.com"],"pathContainsSegment":"JobBoard","minSegments":3}},{"id":"ukg-paylocity-dover","mode":"paylocity_html","match":{"hosts":["recruiting.paylocity.com"],"pathPrefix":"/recruiting/jobs/"}},{"id":"ukg-paylocity-dover","mode":"dover_html","match":{"anyOf":[{"hosts":["app.dover.com"],"exactSegments":false,"pathSegments":["jobs",{"param":"org","charset":"slug","minLen":1,"maxLen":120}]},{"hosts":["jobs.dover.com"],"minSegments":1,"reservedFirstSegment":["api","apply","static","assets","_next","login"]}]}}]},{"id":"us-cfr-govinfo","name":"U.S. CFR & GovInfo","category":"public-records","description":"Bypasses the empty Angular /app/details/ SPA on govinfo.gov by fetching static /content/pkg//html/*.htm documents or /wssearch/getContentDetail summary JSON.","domains":["www.govinfo.gov","govinfo.gov"],"exampleUrls":["https://www.govinfo.gov/app/details/CFR-2023-title16-vol2/CFR-2023-title16-vol2-part1500","https://www.govinfo.gov/app/details/CFR-2023-title16-vol2","https://www.govinfo.gov/wssearch/getContentDetail?packageId=CFR-2023-title16-vol2"],"routes":[{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"param":"granuleId","charset":"pkg","minLen":4,"maxLen":160}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{granuleId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{granuleId} ({pkgId})"}},{"match":{"exactSegments":true,"pathSegments":["app","details",{"param":"pkgId","charset":"pkg","minLen":4,"maxLen":120}]},"twin":{"fetchUrl":"https://www.govinfo.gov/content/pkg/{pkgId}/html/{pkgId}.htm","kind":"text","accept":"text/html","maxBytes":4194304},"extract":{"textMode":"html_document","titleTemplate":"{pkgId}"}},{"match":{"pathEquals":["/wssearch/getContentDetail"],"queryParams":[{"name":"packageId","param":"pkgId","charset":"pkg","minLen":4,"maxLen":120},{"name":"granuleId","param":"granuleId","charset":"pkg","optional":true,"maxLen":160}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["title","packageId"],"vars":{"title":{"paths":["title"],"fallbackTemplate":"{pkgId}","trim":true},"packageId":{"paths":["packageId"],"fallbackTemplate":"{pkgId}"},"collection":{"paths":["collectionName","collection","collectionCode"]},"category":{"paths":["category"]},"dateIssued":{"paths":["dateIssued"]},"lastModified":{"paths":["lastModified"],"sliceMax":10},"authors":{"paths":["governmentAuthor","metadata.agency"],"join":", ","limit":10},"granuleCount":{"paths":["granuleCount"],"format":"int_comma"},"pdfLink":{"paths":["download.pdfLink"],"requireHttps":true},"htmlLink":{"paths":["download.htmlLink","download.htmLink"],"requireHttps":true},"xmlLink":{"paths":["download.xmlLink"],"requireHttps":true},"txtLink":{"paths":["download.txtLink"],"requireHttps":true},"zipLink":{"paths":["download.zipLink"],"requireHttps":true},"modsLink":{"paths":["download.modsLink"],"requireHttps":true}},"titleTemplate":"{title}","authorVar":"authors","publishedTimeVar":"dateIssued","bullets":[{"label":"Package ID","template":"`{packageId}`","whenVar":"packageId"},{"label":"Collection","template":"{collection}","whenVar":"collection"},{"label":"Category","template":"{category}","whenVar":"category"},{"label":"Date Issued","template":"{dateIssued}","whenVar":"dateIssued"},{"label":"Last Modified","template":"{lastModified}","whenVar":"lastModified"},{"label":"Government Author","template":"{authors}","whenVar":"authors"},{"label":"Granules","template":"{granuleCount}","whenVar":"granuleCount"},{"label":"PDF Download","template":"{pdfLink}","whenVar":"pdfLink"},{"label":"HTML Download","template":"{htmlLink}","whenVar":"htmlLink"},{"label":"XML Download","template":"{xmlLink}","whenVar":"xmlLink"},{"label":"Text Download","template":"{txtLink}","whenVar":"txtLink"},{"label":"ZIP Archive","template":"{zipLink}","whenVar":"zipLink"}],"linksVars":["pdfLink","htmlLink","xmlLink","txtLink","zipLink","modsLink"]}}]},{"id":"usajobs","name":"USAJOBS Federal Jobs","category":"jobs","description":"Extracts federal job search listings and codelists from data.usajobs.gov (with Authorization-Key + User-Agent) and JobPosting/HTML job details from www.usajobs.gov.","domains":["data.usajobs.gov","www.usajobs.gov","usajobs.gov"],"auth_mode":"key","user_agent_profile":"usajobs","strict_robots":true,"exampleUrls":["https://data.usajobs.gov/api/search?Keyword=software","https://www.usajobs.gov/job/893002300"],"routes":[{"match":{"hosts":["data.usajobs.gov"],"anyOf":[{"pathPrefix":"/api/search"},{"pathPrefix":"/api/codelist/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usajobs_json"}}],"htmlRoutes":[{"id":"usajobs","mode":"usajobs_html","match":{"hosts":["www.usajobs.gov","usajobs.gov"],"exactSegments":false}}]},{"id":"usaspending","name":"USAspending.gov Federal Awards","category":"public-records","description":"Upgrades usaspending.gov/award/ pages to api.usaspending.gov/api/v2/awards// JSON details.","domains":["www.usaspending.gov","usaspending.gov"],"exampleUrls":["https://www.usaspending.gov/award/CONT_AWD_ZSMG_9700_HTC71114DR027_9700"],"match":{"exactSegments":false,"pathSegments":["award",{"param":"awardId","charset":"pkg","minLen":4,"maxLen":140}]},"twin":{"fetchUrl":"https://api.usaspending.gov/api/v2/awards/{awardId}/","kind":"json","accept":"application/json"},"extract":{"requireAnyFields":["generated_unique_award_id","piid","fain"],"vars":{"idLabel":{"paths":["piid","fain","uri"],"fallbackTemplate":"{awardId}"},"category":{"paths":["category"],"default":"Federal Award"},"recipient":{"paths":["recipient.recipient_name"]},"awardingAgency":{"paths":["awarding_agency.toptier_agency.name"]},"fundingAgency":{"paths":["funding_agency.toptier_agency.name"]},"obligation":{"paths":["total_obligation"],"format":"usd_compact"},"desc":{"paths":["description"],"trim":true},"descShort":{"paths":["description"],"trim":true,"sliceMax":260},"startDate":{"paths":["period_of_performance.start_date"]},"hasPop":{"paths":["period_of_performance.start_date","period_of_performance.end_date"]},"startOrQ":{"paths":["period_of_performance.start_date"],"default":"?"},"endOrQ":{"paths":["period_of_performance.end_date"],"default":"?"}},"titleTemplate":"{idLabel} — {recipient} (USAspending)","titleWhenVar":"recipient","titleFallbackTemplate":"{idLabel} (USAspending)","descriptionVar":"descShort","publishedTimeVar":"startDate","bullets":[{"label":"Award ID","template":"`{idLabel}` ({category})"},{"label":"Recipient","template":"{recipient}","whenVar":"recipient"},{"label":"Total Obligation","template":"{obligation}","whenVar":"obligation"},{"label":"Awarding Agency","template":"{awardingAgency}","whenVar":"awardingAgency"},{"label":"Funding Agency","template":"{fundingAgency}","whenVar":"fundingAgency"},{"label":"Period of Performance","template":"{startOrQ} → {endOrQ}","whenVar":"hasPop"}],"sections":[{"heading":"Award Description","textVar":"desc"}]}},{"id":"uscode-house","name":"U.S. Code (House OLRC)","category":"public-records","description":"HTML extractor for U.S. House Office of the Law Revision Counsel United States Code sections, title browse trees, and legacy /view.xhtml pages.","domains":["uscode.house.gov"],"auth_mode":"pub","exampleUrls":["https://uscode.house.gov/us/usc/t17/s107/","https://uscode.house.gov/browse.html","https://uscode.house.gov/us/usc/t17/frontmatter/"],"htmlRoutes":[{"id":"uscode-house","match":{"anyOf":[{"pathPrefix":"/us/usc/"},{"pathEquals":["/browse.html"]},{"pathPrefix":"/browse-tree/"},{"pathEquals":["/view.xhtml"]}]},"mode":"uscode_house_html"}]},{"id":"usda-nass-fdc","name":"USDA FoodData Central & NASS QuickStats","category":"research-health","description":"USDA FoodData Central REST API v1 (/fdc/v1/...) and NASS QuickStats (/api/api_GET/) adapter with Angular SPA shell guard.","domains":["quickstats.nass.usda.gov","fdc.nal.usda.gov","api.nal.usda.gov"],"auth_mode":"key","strict_robots":true,"exampleUrls":["https://api.nal.usda.gov/fdc/v1/food/171705","https://api.nal.usda.gov/fdc/v1/foods/search?query=avocado&pageSize=3","https://quickstats.nass.usda.gov/api/api_GET/?commodity_desc=CORN&year=2023&state_alpha=IA"],"routes":[{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":true,"pathSegments":["fdc","v1","food",{"param":"fdcId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"https://api.nal.usda.gov/fdc/v1/food/{fdcId}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["api.nal.usda.gov"],"exactSegments":false,"pathPrefix":"/fdc/v1/foods"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_fdc_json"}},{"match":{"hosts":["quickstats.nass.usda.gov"],"exactSegments":false,"pathEquals":["/api/api_GET","/api/api_GET/"]},"twin":{"fetchUrl":"{requestUrl}","defaultQueryParams":{"format":"JSON"},"kind":"json","accept":"application/json","maxBytes":4194304,"auth_mode":"key"},"extract":{"jsonMode":"usda_nass_json"}}],"htmlRoutes":[{"id":"usda-nass-fdc","match":{"hosts":["fdc.nal.usda.gov"],"exactSegments":false},"mode":"usda_fdc_html"}]},{"id":"usfs-blm-trails","name":"USFS & BLM Trails ArcGIS Services","category":"public-records","description":"US Forest Service (apps.fs.usda.gov) and BLM (gis.blm.gov) ArcGIS MapServer/FeatureServer layer metadata and /query feature adapter, scoped off *.arcgis.com.","domains":["apps.fs.usda.gov","gis.blm.gov"],"auth_mode":"pub","exampleUrls":["https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recreation_Offline/FeatureServer/0/query?where=1%3D1&outFields=*&resultRecordCount=1&f=json","https://gis.blm.gov/arcgis/rest/services/recreation/BLM_Natl_Recs_pts/MapServer/0?f=json","https://gis.blm.gov/arcgis/rest/services/transportation/BLM_Natl_GTLF_Public_Display/MapServer?f=json"],"routes":[{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","pathSuffix":"/query"},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","pathSuffix":"/query"}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"defaultQueryParams":{"where":"1=1","outFields":"*","returnGeometry":"false","resultRecordCount":"25"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usfs_blm_trails_json"}},{"match":{"anyOf":[{"hosts":["apps.fs.usda.gov"],"pathPrefix":"/arcx/rest/services/","arcgisRestLayer":true},{"hosts":["gis.blm.gov"],"pathPrefix":"/arcgis/rest/services/","arcgisRestLayer":true}]},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"f":"json"},"kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usfs_blm_trails_json"}}]},{"id":"usgs-earthquakes","name":"USGS Earthquake Hazards Program","category":"research-health","description":"USGS GeoJSON earthquake summary feeds, FDSNWS Event Query API, and eventpage JSON twins.","domains":["earthquake.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson","https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&limit=5&minmagnitude=4.5","https://earthquake.usgs.gov/earthquakes/eventpage/us6000ue1k/executive"],"routes":[{"match":{"hosts":["earthquake.usgs.gov"],"anyOf":[{"pathPrefix":"/earthquakes/feed/"},{"pathPrefix":"/fdsnws/event/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_earthquakes_json"}},{"match":{"hosts":["earthquake.usgs.gov"],"exactSegments":false,"pathSegments":["earthquakes","eventpage",{"param":"eventId","charset":"alnum_dash","minLen":4,"maxLen":40}]},"twin":{"fetchUrl":"https://earthquake.usgs.gov/fdsnws/event/1/query?eventid={eventId}&format=geojson","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_earthquakes_json"}}]},{"id":"usgs-water","name":"USGS Water Services & OGC API","category":"research-health","description":"USGS NWIS Water Services (WaterML JSON and tab-delimited RDB) and api.waterdata.usgs.gov OGC API GeoJSON adapter.","domains":["waterservices.usgs.gov","api.waterdata.usgs.gov","waterdata.usgs.gov"],"auth_mode":"pub","exampleUrls":["https://api.waterdata.usgs.gov/ogcapi/v0/collections/monitoring-locations?f=json","https://api.waterdata.usgs.gov/ogcapi/v0/collections?f=json"],"routes":[{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/","queryParams":[{"name":"format","param":"fmt","allowValues":["rdb","rdb,1.0"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"text/plain","maxBytes":2097152},"extract":{"textMode":"usgs_water_rdb"}},{"match":{"hosts":["waterservices.usgs.gov"],"pathPrefix":"/nwis/"},"twin":{"fetchUrl":"{requestUrl}","setQueryParams":{"format":"json"},"kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["api.waterdata.usgs.gov"],"pathPrefix":"/ogcapi/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usgs_water_json"}},{"match":{"hosts":["waterdata.usgs.gov"],"exactSegments":false,"pathSegments":["monitoring-location",{"param":"siteNo","charset":"digits","minLen":5,"maxLen":15}]},"twin":{"fetchUrl":"https://waterservices.usgs.gov/nwis/iv/?format=json&sites={siteNo}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"usgs_water_json"}}]},{"id":"usitc-hts","name":"USITC Harmonized Tariff Schedule","category":"public-records","description":"Extracts U.S. Harmonized Tariff Schedule (HTS) tariff lines, duty rates, and Chapter 99 / Section 301 footnotes from hts.usitc.gov reststop JSON endpoints with SPA shell guards.","domains":["hts.usitc.gov"],"auth_mode":"pub","exampleUrls":["https://hts.usitc.gov/reststop/search?keyword=bicycle","https://hts.usitc.gov/reststop/exportList?from=8712.00&to=8712.00&format=JSON&styles=false"],"routes":[{"match":{"hosts":["hts.usitc.gov"],"exactSegments":true,"pathEquals":["/reststop/search"],"queryParams":[{"name":"keyword","param":"keyword","minLen":1,"maxLen":120}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}},{"match":{"hosts":["hts.usitc.gov"],"exactSegments":true,"pathEquals":["/reststop/exportList"],"queryParams":[{"name":"from","param":"from","minLen":2,"maxLen":16},{"name":"to","param":"to","minLen":2,"maxLen":16},{"name":"format","param":"format","allowValues":["JSON","json"],"optional":true,"default":"JSON"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}},{"match":{"hosts":["hts.usitc.gov"],"pathPrefix":"/reststop/","excludeSegmentSuffixes":[".csv",".xlsx",".pdf"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"jsonMode":"usitc_hts_json"}}],"htmlRoutes":[{"id":"usitc-hts","match":{"hosts":["hts.usitc.gov"],"exactSegments":false},"mode":"usitc_hts_html"}]},{"id":"usps-addresses","name":"USPS Addresses v3 Official API","category":"public-records","description":"USPS Addresses v3 API for address standardization, city/state, and ZIP lookup (USPS_ACCESS_TOKEN) with developers.usps.com HTML fallback.","domains":["apis.usps.com","apis-tem.usps.com","developers.usps.com"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC","https://apis.usps.com/addresses/v3/city-state?ZIPCode=20260"],"routes":[{"match":{"hosts":["apis.usps.com","apis-tem.usps.com"],"anyOf":[{"pathPrefix":"/addresses/v3/address"},{"pathPrefix":"/addresses/v3/city-state"},{"pathPrefix":"/addresses/v3/zipcode"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":1048576},"extract":{"jsonMode":"usps_addresses_json"}}],"htmlRoutes":[{"id":"usps-addresses","match":{"hosts":["developers.usps.com"],"exactSegments":false},"mode":"usps_docs_html"}]},{"id":"uspto-patentsview","name":"USPTO PatentsView & Open Data Portal","category":"public-records","description":"USPTO Open Data Portal (api.uspto.gov) patent application and PatentsView API JSON adapter with HTML fallback.","domains":["patentsview.org","www.patentsview.org","search.patentsview.org","api.patentsview.org","api.uspto.gov","data.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.uspto.gov/api/v1/patent/applications/16330077","https://api.uspto.gov/api/v1/patent/applications/search?q=16330077"],"routes":[{"match":{"hosts":["api.uspto.gov"],"pathPrefix":"/api/v1/patent/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["api.patentsview.org"],"pathPrefix":"/api/v1/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patent",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}},{"match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false,"pathSegments":["patents",{"param":"patentId","charset":"alnum_dash","minLen":5,"maxLen":24}]},"twin":{"fetchUrl":"https://api.uspto.gov/api/v1/patent/applications/search?q={patentId}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_patentsview_json"}}],"htmlRoutes":[{"id":"uspto-patentsview","match":{"hosts":["patentsview.org","www.patentsview.org","search.patentsview.org","data.uspto.gov"],"exactSegments":false},"mode":"uspto_patentsview_html"}]},{"id":"uspto-ppubs","name":"USPTO Patent Public Search (PPUBS)","category":"public-records","description":"USPTO Patent Public Search (ppubs.uspto.gov) HTML adapter rejecting empty SPA shells.","domains":["ppubs.uspto.gov","patft.uspto.gov"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://ppubs.uspto.gov/basic/"],"htmlRoutes":[{"id":"uspto-ppubs","match":{"hosts":["ppubs.uspto.gov","patft.uspto.gov"],"exactSegments":false},"mode":"uspto_ppubs_html"}]},{"id":"uspto-tsdr","name":"USPTO TSDR Trademark Status","category":"public-records","description":"USPTO Trademark Status & Document Retrieval (TSDR) API JSON adapter with keyless tsdr.uspto.gov/statusview HTML fallback.","domains":["tsdr.uspto.gov","tsdrapi.uspto.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://tsdrapi.uspto.gov/ts/cd/casestatus/sn78787878/info.json","https://tsdr.uspto.gov/statusview/sn78787878"],"routes":[{"match":{"hosts":["tsdrapi.uspto.gov"],"pathPrefix":"/ts/cd/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}},{"match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false,"pathSegments":["statusview",{"param":"caseNum","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://tsdrapi.uspto.gov/ts/cd/casestatus/{caseNum}/info.json","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"uspto_tsdr_json"}}],"htmlRoutes":[{"id":"uspto-tsdr","match":{"hosts":["tsdr.uspto.gov"],"exactSegments":false},"mode":"uspto_tsdr_html"}]},{"id":"ustr-301","name":"USTR Section 301 Trade Actions","category":"public-records","description":"Extracts U.S. Trade Representative Section 301 investigation actions, tariff lists, exclusion notices, and RSS feeds from ustr.gov.","domains":["ustr.gov","www.ustr.gov"],"auth_mode":"pub","exampleUrls":["https://ustr.gov/issue-areas/enforcement/section-301-investigations/tariff-actions","https://ustr.gov/issue-areas/enforcement/section-301-investigations/section-301-china/investigation","https://ustr.gov/rss.xml"],"routes":[{"match":{"hosts":["ustr.gov","www.ustr.gov"],"pathSuffix":".xml"},"twin":{"fetchUrl":"{requestUrl}","kind":"text","accept":"application/rss+xml","maxBytes":2097152},"extract":{"textMode":"ustr_301_rss_xml"}}],"htmlRoutes":[{"id":"ustr-301","match":{"hosts":["ustr.gov","www.ustr.gov"],"exactSegments":false},"mode":"ustr_301_html"}]},{"id":"va-lighthouse-facilities","name":"VA Lighthouse Facilities API","category":"research-health","description":"U.S. Department of Veterans Affairs Lighthouse Facilities API (VA_LIGHTHOUSE_API_KEY) with www.va.gov / developer.va.gov HTML fallback.","domains":["api.va.gov","sandbox-api.va.gov","www.va.gov","developer.va.gov"],"auth_mode":"key","min_interval_ms":1000,"exampleUrls":["https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5","https://www.va.gov/find-locations"],"routes":[{"match":{"hosts":["api.va.gov","sandbox-api.va.gov"],"pathPrefix":"/services/va_facilities/v1/facilities"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","auth_mode":"key","maxBytes":2097152},"extract":{"jsonMode":"va_facilities_json"}}],"htmlRoutes":[{"id":"va-lighthouse-facilities","match":{"hosts":["www.va.gov","developer.va.gov"],"exactSegments":false},"mode":"va_facilities_html"}]},{"id":"vanilla-forums","name":"Vanilla Forums","category":"commerce-social","description":"Upgrades Vanilla Forums /discussion/{discussionID} URLs to same-origin /api/v2/discussions/{discussionID} JSON twins with HTML fallback.","domains":["forum.onshape.com","forum.polkaudio.com","forum.linuxfoundation.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://forum.onshape.com/discussion/32195/new-feature-codes","https://forum.onshape.com/api/v2/discussions/32195","https://forum.polkaudio.com/api/v2/discussions/163343"],"routes":[{"match":{"exactSegments":false,"pathSegments":["discussion",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16},{"param":"slug","charset":"safe_subpath","optional":true,"greedy":true}]},"twin":{"fetchUrl":"https://{host}/api/v2/discussions/{discussionID}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}},{"match":{"exactSegments":true,"pathSegments":["api","v2","discussions",{"param":"discussionID","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vanilla_forums"}}],"htmlRoutes":[{"id":"vanilla-forums","match":{"exactSegments":false},"mode":"vanilla_forums_html"}]},{"id":"vimeo","name":"Vimeo Video & oEmbed","category":"commerce-social","description":"Extracts Vimeo video and player embed metadata via Vimeo oEmbed JSON and VideoObject HTML fallback.","domains":["vimeo.com","www.vimeo.com","player.vimeo.com"],"auth_mode":"pub","exampleUrls":["https://vimeo.com/76979871","https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F76979871","https://player.vimeo.com/video/76979871"],"routes":[{"match":{"hosts":["vimeo.com","www.vimeo.com"],"pathEquals":["/api/oembed.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["vimeo.com","www.vimeo.com"],"exactSegments":true,"pathSegments":[{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}},{"match":{"hosts":["player.vimeo.com"],"exactSegments":true,"pathSegments":["video",{"param":"videoId","charset":"digits","minLen":4,"maxLen":15}]},"twin":{"fetchUrl":"https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F{videoId}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"vimeo_oembed_json"}}],"htmlRoutes":[{"id":"vimeo","match":{"exactSegments":false},"mode":"vimeo_html"}]},{"id":"vtex","name":"VTEX Storefronts & Catalog API","category":"commerce-social","description":"Extracts VTEX storefront product JSON from /api/catalog_system/pub/products/search and /variations endpoints, plus post-HTML storefront JSON-LD and companion discovery.","domains":["www.motorola.com.br"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://www.motorola.com.br/api/catalog_system/pub/products/search?fq=productId:488"],"routes":[{"match":{"pathEquals":["/api/catalog_system/pub/products/search"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathPrefix":"/api/catalog_system/pub/products/search/","pathSuffix":"/p"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}},{"match":{"pathSegments":["api","catalog_system","pub","products","variations",{"param":"productId","charset":"pkg","minLen":1,"maxLen":64}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"vtex_product"}}],"htmlRoutes":[{"id":"vtex","match":{"exactSegments":false},"mode":"vtex_html"}]},{"id":"walmart","name":"Walmart Official Affiliate/IO API","category":"commerce-social","description":"Official Walmart Affiliate/IO API product lookup only (zero HTML scraping of walmart.com).","domains":["walmart.com","www.walmart.com","developer.api.walmart.com"],"auth_mode":"key","exampleUrls":["https://www.walmart.com/ip/132000132","https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/132000132"],"routes":[{"match":{"hosts":["walmart.com","www.walmart.com"],"anyOf":[{"exactSegments":true,"pathSegments":["ip",{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]},{"exactSegments":false,"pathSegments":["ip",{"param":"slug","charset":"url_seg","maxLen":200},{"param":"itemId","charset":"digits","minLen":4,"maxLen":16}]}]},"twin":{"fetchUrl":"https://developer.api.walmart.com/api-proxy/service/affil/product/v2/items/{itemId}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}},{"match":{"hosts":["developer.api.walmart.com"],"pathPrefix":"/api-proxy/"},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"walmart_json"}}]},{"id":"weather-gov","name":"National Weather Service (weather.gov)","category":"research-health","description":"NOAA National Weather Service GeoJSON API (points, gridpoint forecasts, active alerts, observations) and forecast.weather.gov HTML extractor with identifying User-Agent.","domains":["weather.gov","www.weather.gov","api.weather.gov","forecast.weather.gov"],"auth_mode":"pub","user_agent_profile":"weather-gov","strict_robots":true,"exampleUrls":["https://forecast.weather.gov/MapClick.php?lat=39.7456&lon=-97.0892","https://forecast.weather.gov/MapClick.php?lat=40.7128&lon=-74.0060"],"routes":[{"match":{"hosts":["api.weather.gov"],"anyOf":[{"pathPrefix":"/points/"},{"pathPrefix":"/gridpoints/"},{"pathPrefix":"/alerts"},{"pathPrefix":"/stations/"},{"pathPrefix":"/zones/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/geo+json","maxBytes":2097152},"extract":{"jsonMode":"weather_gov_json"}}],"htmlRoutes":[{"id":"weather-gov","match":{"hosts":["weather.gov","www.weather.gov","forecast.weather.gov"],"exactSegments":false},"mode":"weather_gov_html"}]},{"id":"wikidata-openlibrary","name":"Wikidata & Open Library","category":"research-health","description":"Upgrades wikidata.org/wiki/Q* to Special:EntityData/Q*.json (handling labels.en, labels.mul, and sitelinks.enwiki fallbacks) and openlibrary.org/isbn/* to /isbn/*.json (never calling disallowed /api/*).","domains":["www.wikidata.org","wikidata.org","openlibrary.org","www.openlibrary.org"],"exampleUrls":["https://www.wikidata.org/wiki/Q42","https://openlibrary.org/isbn/9780140328721"],"routes":[{"match":{"hosts":["www.wikidata.org","wikidata.org"],"exactSegments":true,"pathPrefix":"/wiki/Q","pathSegments":["wiki",{"param":"qidNum","stripPrefix":"Q","charset":"digits","minLen":1,"maxLen":15}]},"twin":{"fetchUrl":"https://www.wikidata.org/wiki/Special:EntityData/Q{qidNum}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["entities"],"vars":{"qid":{"template":"Q{qidNum}"},"labelEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.en.value"},"trim":true},"labelMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"labels.mul.value"},"trim":true},"labelEnwiki":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"trim":true},"labelMulOrEnwiki":{"template":"{labelMul}","whenVars":["labelMul"],"fallbackVar":"labelEnwiki"},"label":{"template":"{labelEn}","whenVars":["labelEn"],"fallbackVar":"labelMulOrEnwiki"},"descEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.en.value"},"trim":true},"descMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"descriptions.mul.value"},"trim":true},"desc":{"template":"{descEn}","whenVars":["descEn"],"fallbackVar":"descMul"},"aliasesEn":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.en"},"subField":"value","join":", ","limit":10},"aliasesMul":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"aliases.mul"},"subField":"value","join":", ","limit":10},"aliases":{"template":"{aliasesEn}","whenVars":["aliasesEn"],"fallbackVar":"aliasesMul"},"modified":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"modified"},"sliceMax":10},"claimProps":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims"},"format":"object_keys","limit":25,"itemWrap":"`","join":", "},"instanceOf":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P31"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"sexOrGender":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P21"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":3},"citizenship":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P27"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":5},"occupation":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P106"},"subField":"mainsnak.datavalue.value.id","itemWrap":"`","join":", ","limit":8},"birthDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P569"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"deathDate":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P570"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"inception":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P571"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal"},"subField":"mainsnak.datavalue.value.time","stripPrefix":"+","stripSuffix":"T00:00:00Z","replaceAll":{"from":"-00","to":""},"sliceMax":10},"population":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P1082"},"preferWhere":{"path":"rank","equals":"preferred","fallbackEquals":"normal","fallbackLast":true},"subField":"mainsnak.datavalue.value.amount","format":"int_comma"},"officialWebsite":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"claims.P856.0.mainsnak.datavalue.value"},"trim":true,"requireHttpPrefix":true},"enwikiSlug":{"dynamicKeyPath":{"base":"entities","keyVar":"qid","subPath":"sitelinks.enwiki.title"},"replaceAll":{"from":" ","to":"_"}},"enwikiUrl":{"template":"https://en.wikipedia.org/wiki/{enwikiSlug}","whenVars":["enwikiSlug"],"requireHttps":true},"wikidataUrl":{"template":"https://www.wikidata.org/wiki/{qid}","requireHttps":true}},"requireVars":["label"],"titleTemplate":"{label} ({qid})","descriptionVar":"desc","publishedTimeVar":"modified","introVar":"desc","bullets":[{"label":"Wikidata ID","template":"`{qid}`"},{"label":"Also Known As","template":"{aliases}","whenVar":"aliases"},{"label":"Modified","template":"{modified}","whenVar":"modified"},{"label":"Instance Of","template":"{instanceOf}","whenVar":"instanceOf"},{"label":"Sex or Gender","template":"{sexOrGender}","whenVar":"sexOrGender"},{"label":"Country of Citizenship","template":"{citizenship}","whenVar":"citizenship"},{"label":"Occupation","template":"{occupation}","whenVar":"occupation"},{"label":"Date of Birth","template":"{birthDate}","whenVar":"birthDate"},{"label":"Date of Death","template":"{deathDate}","whenVar":"deathDate"},{"label":"Inception","template":"{inception}","whenVar":"inception"},{"label":"Population","template":"{population}","whenVar":"population"},{"label":"Official Website","template":"{officialWebsite}","whenVar":"officialWebsite"},{"label":"Claim Properties","template":"{claimProps}","whenVar":"claimProps"},{"label":"English Wikipedia","template":"{enwikiUrl}","whenVar":"enwikiUrl"},{"label":"Wikidata URL","template":"{wikidataUrl}","whenVar":"wikidataUrl"}],"linksVars":["wikidataUrl","enwikiUrl","officialWebsite"]}},{"match":{"hosts":["openlibrary.org","www.openlibrary.org"],"exactSegments":true,"pathSegments":["isbn",{"param":"isbn","stripSuffix":".json","charset":"alnum_dash","minLen":10,"maxLen":17}]},"twin":{"fetchUrl":"https://openlibrary.org/isbn/{isbn}.json","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireFields":["title"],"vars":{"title":{"paths":["title"],"trim":true},"subtitle":{"paths":["subtitle"],"trim":true},"isbn13":{"paths":["isbn_13"],"itemWrap":"`","join":", "},"isbn10":{"paths":["isbn_10"],"itemWrap":"`","join":", "},"publishers":{"paths":["publishers"],"join":", ","limit":8},"publishDate":{"paths":["publish_date"],"trim":true},"pages":{"paths":["number_of_pages"],"format":"int_comma"},"contributions":{"paths":["contributions"],"join":", ","limit":8},"byStatement":{"paths":["by_statement"],"trim":true,"sliceMax":200},"authorLine":{"template":"{byStatement}","whenVars":["byStatement"],"fallbackVar":"contributions"},"authors":{"paths":["authors"],"subField":"key","join":", ","limit":8},"works":{"paths":["works"],"subField":"key","join":", ","limit":5},"olKey":{"paths":["key"]},"olUrl":{"template":"https://openlibrary.org{olKey}","whenVars":["olKey"],"requireHttps":true},"desc":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true},"descShort":{"paths":["description.value","description","first_sentence.value","first_sentence"],"trim":true,"sliceMax":260}},"titleTemplate":"{title}","descriptionVar":"descShort","authorVar":"authorLine","publishedTimeVar":"publishDate","bullets":[{"label":"Subtitle","template":"{subtitle}","whenVar":"subtitle"},{"label":"ISBN-13","template":"{isbn13}","whenVar":"isbn13"},{"label":"ISBN-10","template":"{isbn10}","whenVar":"isbn10"},{"label":"Publishers","template":"{publishers}","whenVar":"publishers"},{"label":"Published","template":"{publishDate}","whenVar":"publishDate"},{"label":"Pages","template":"{pages}","whenVar":"pages"},{"label":"By","template":"{byStatement}","whenVar":"byStatement"},{"label":"Contributors","template":"{contributions}","whenVar":"contributions"},{"label":"Author Keys","template":"{authors}","whenVar":"authors"},{"label":"Work Keys","template":"{works}","whenVar":"works"},{"label":"Open Library URL","template":"{olUrl}","whenVar":"olUrl"}],"sections":[{"heading":"Description","textVar":"desc"}],"linksVars":["olUrl"]}}]},{"id":"wild-apricot","name":"Wild Apricot Member Associations & Events","category":"commerce-social","description":"Extracts public Wild Apricot association event details, upcoming event schedules, and member directories from WaGadget DOM while rejecting /sys/login and login-only gated shells.","domains":["www.ndshp.org","members.mbbi.org","*.wildapricot.org"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.ndshp.org/event-6925405","https://members.mbbi.org/event-6156275","https://members.mbbi.org/Member-Directory/"],"htmlRoutes":[{"id":"wild-apricot","match":{"exactSegments":false},"mode":"wild_apricot_html"}]},{"id":"wistia","name":"Wistia Video Hosting","category":"commerce-social","description":"Extracts Wistia /embed/medias/{mediaId}.json twins and Wistia video HTML while respecting robots.txt /oembed disallow and rejecting login walls.","domains":["fast.wistia.com","fast.wistia.net","home.wistia.com","wistia.com","www.wistia.com"],"auth_mode":"pub","exampleUrls":["https://fast.wistia.com/embed/medias/29b0fbf547.json","https://fast.wistia.com/embed/iframe/29b0fbf547","https://wistia.com/blog/video-marketing-statistics"],"routes":[{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSuffix":".json","pathSegments":["embed","medias",{"param":"mediaId","charset":"alnum","stripSuffix":".json","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}},{"match":{"hosts":["fast.wistia.com","fast.wistia.net"],"exactSegments":true,"pathSegments":["embed","iframe",{"param":"mediaId","charset":"alnum","minLen":6,"maxLen":20}]},"twin":{"fetchUrl":"https://{host}/embed/medias/{mediaId}.json","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wistia_media_json"}}],"htmlRoutes":[{"id":"wistia","match":{"exactSegments":false},"mode":"wistia_html"}]},{"id":"wix-stores","name":"Wix Stores","category":"commerce-social","description":"Extracts Wix Stores product details, pricing, stock, options, and media from wix-warmup-data hydration and JSON-LD/Microdata.","domains":["www.vivietmargot.com"],"universalEngine":true,"auth_mode":"html","exampleUrls":["https://www.vivietmargot.com/product-page/bon-appetit-linen-napkin-lin-bleu"],"htmlRoutes":[{"id":"wix-stores","match":{"exactSegments":false},"mode":"wix_stores_html"}]},{"id":"woocommerce","name":"WooCommerce Store API & Storefronts","category":"commerce-social","description":"Formats public WooCommerce Store API (/wp-json/wc/store/v1/products) feeds, extracts WooCommerce product pages, and implements polite full-store catalog pulls.","domains":["woocommerce.com"],"universalEngine":true,"exampleUrls":["https://yithemes.com/wp-json/wc/store/v1/products?per_page=20&page=1"],"catalog":{"platform":"woocommerce","pauseMs":2000,"pageCap":200,"firstPageTemplate":"{origin}/wp-json/wc/store/v1/products?per_page=100&page=1","perPage":100,"maxVariantsPerProduct":250,"maxImagesPerProduct":250},"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products"]},"twin":{"id":"woocommerce-catalog-page","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_catalog_page"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wc","store","v1","products",{"param":"pid","charset":"digits"}]},"twin":{"id":"woocommerce-product","fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"woocommerce_product"}}],"htmlRoutes":[{"id":"woocommerce","match":{"exactSegments":false},"mode":"woocommerce_html"}]},{"id":"wordpress-vip-newspack","name":"WordPress VIP & Newspack","category":"commerce-social","description":"Extracts WP REST v2 posts/pages JSON twins and Newspack/WP-VIP article HTML without colliding with WooCommerce or standard WordPress blogs.","domains":["calmatters.org","missionlocal.org","www.berkeleyside.org"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://calmatters.org/wp-json/wp/v2/posts/516249","https://calmatters.org/commentary/2026/11/californias-philanthropic-funders-give-bravely/"],"routes":[{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","posts",{"param":"postId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}},{"match":{"exactSegments":true,"pathSegments":["wp-json","wp","v2","pages",{"param":"pageId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"wp_vip_posts_json"}}],"htmlRoutes":[{"id":"wordpress-vip-newspack","match":{"exactSegments":false},"mode":"wp_vip_newspack_html"}]},{"id":"workable","name":"Workable Job Boards & Postings","category":"jobs","description":"Upgrades apply.workable.com boards to /api/v1/widget/accounts/?details=true (merging multi-location rows on shortcode) and single jobs to /api/v2/accounts//jobs/.","domains":["apply.workable.com"],"exampleUrls":["https://apply.workable.com/huggingface/","https://apply.workable.com/huggingface/j/81B46579FE/"],"routes":[{"match":{"exactSegments":false,"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]},"j",{"param":"code","charset":"slug","minLen":4,"maxLen":24}]},"twin":{"id":"workable-job","fetchUrl":"https://apply.workable.com/api/v2/accounts/{org}/jobs/{code}","kind":"json","accept":"application/json"},"extract":{"requireFields":["title"],"vars":{"jobTitle":{"paths":["title"],"trim":true},"city":{"paths":["location.city"],"trim":true},"region":{"paths":["location.region"],"trim":true},"country":{"paths":["location.country"],"trim":true},"loc3":{"template":"{city}, {region}, {country}","whenVars":["city","region","country"]},"loc2a":{"template":"{city}, {region}","whenVars":["city","region"]},"loc2b":{"template":"{city}, {country}","whenVars":["city","country"]},"loc2c":{"template":"{region}, {country}","whenVars":["region","country"]},"loc1":{"paths":["location.city","location.region","location.country"],"trim":true},"locSub1":{"template":"{loc3}","whenVars":["loc3"],"fallbackVar":"loc2a"},"locSub2":{"template":"{locSub1}","whenVars":["locSub1"],"fallbackVar":"loc2b"},"locSub3":{"template":"{locSub2}","whenVars":["locSub2"],"fallbackVar":"loc2c"},"locStr":{"template":"{locSub3}","whenVars":["locSub3"],"fallbackVar":"loc1"},"teleRemote":{"paths":["location.telecommuting"],"format":"bool_map","trueValue":"remote","falseValue":""},"workplace":{"paths":["workplace"],"trim":true,"fallbackTemplate":"{teleRemote}"},"dept":{"paths":["department"],"join":", ","trim":true},"empType":{"paths":["type"],"trim":true},"published":{"paths":["published"],"sliceMax":10,"trim":true},"salCur":{"paths":["salary.salary_currency"],"upper":true,"trim":true,"default":"USD"},"salFrom":{"paths":["salary.salary_from"],"excludeEquals":"0"},"salTo":{"paths":["salary.salary_to"],"excludeEquals":"0"},"salRange":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"]},"salFromOnly":{"template":"{salCur} {salFrom}","whenVars":["salFrom"]},"salToOnly":{"template":"{salCur} – {salTo}","whenVars":["salTo"]},"salSub":{"template":"{salCur} {salFrom} – {salTo}","whenVars":["salFrom","salTo"],"fallbackVar":"salFromOnly"},"salStr":{"template":"{salSub}","whenVars":["salSub"],"fallbackVar":"salToOnly"},"desc":{"paths":["description"],"format":"html_to_md"},"reqs":{"paths":["requirements"],"format":"html_to_md"},"benefits":{"paths":["benefits"],"format":"html_to_md"}},"titleTemplate":"{jobTitle} @ {org}","publishedTimeVar":"published","bullets":[{"label":"Company","template":"{org}"},{"label":"Location","template":"{locStr}","whenVar":"locStr"},{"label":"Workplace","template":"{workplace}","whenVar":"workplace"},{"label":"Department","template":"{dept}","whenVar":"dept"},{"label":"Type","template":"{empType}","whenVar":"empType"},{"label":"Salary","template":"{salStr}","whenVar":"salStr"},{"label":"Published","template":"{published}","whenVar":"published"}],"sections":[{"heading":"Description","textVar":"desc"},{"heading":"Requirements","textVar":"reqs"},{"heading":"Benefits","textVar":"benefits"}],"linkTemplates":["https://apply.workable.com/{org}/j/{code}/apply/"]}},{"match":{"pathSegments":[{"param":"org","charset":"slug","maxLen":80,"reserved":["api","j","assets","static","favicon.ico","robots.txt"]}]},"twin":{"id":"workable-board","fetchUrl":"https://apply.workable.com/api/v1/widget/accounts/{org}?details=true","kind":"json","accept":"application/json"},"extract":{"vars":{"rawCount":{"paths":["jobs"],"format":"array_len"},"dedupCount":{"default":"{dedupCount}"},"orgName":{"paths":["name"],"trim":true,"fallbackTemplate":"{org}"}},"requireVars":["rawCount"],"titleTemplate":"{orgName} — Open Roles ({dedupCount})","sections":[{"heading":"","arrayPath":"jobs","limit":100,"linkScanLimit":2000,"emptyText":"No open positions are currently listed on this Workable board.","filter":{"requireField":"title"},"dedupeBy":{"keyPaths":["shortcode"],"mergeTextPaths":["city+state+country"],"mergeTargetVar":"_mergedLocs","mergeSep":"; ","mergeLimit":4,"orBoolPaths":["telecommuting","workplace_type"],"orBoolTargetField":"_isRemote"},"itemVars":{"code":{"paths":["shortcode"],"trim":true},"jTitle":{"paths":["title"],"trim":true},"rawUrl":{"paths":["url"],"requireHttps":true},"jUrl":{"template":"{rawUrl}","whenVars":["rawUrl"],"fallbackTemplate":"https://apply.workable.com/{org}/j/{code}/"},"dept":{"paths":["department"],"trim":true,"default":"-"},"remoteLocFallback":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"-"},"locs":{"paths":["_mergedLocs"],"trim":true,"fallbackTemplate":"{remoteLocFallback}"},"workplace":{"paths":["_isRemote"],"format":"bool_map","trueValue":"Remote","falseValue":"On-site / Hybrid"},"published":{"paths":["published_on"],"sliceMax":10,"trim":true,"default":"-"}},"collectLinkVars":["jUrl"],"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Department","template":"{dept}"},{"header":"Locations","template":"{locs}"},{"header":"Workplace","template":"{workplace}"},{"header":"Published","template":"{published}"}]}]}}]},{"id":"xenforo-thread","name":"XenForo 2 Forum Threads","category":"commerce-social","description":"Extracts structured forum posts, authors, timestamps, and clean quote blocks from XenForo 2 thread HTML (article.message--post) while stripping signatures and sidebar chrome.","domains":["forums.electricbikereview.com","mtbr.com","www.mtbr.com","endless-sphere.com"],"universalEngine":true,"exampleUrls":["https://forums.electricbikereview.com/threads/where-we-are-in-2026.59397/","https://www.mtbr.com/threads/ozark-trail-fs-2-slalom-for-a-kid.1249288/","https://endless-sphere.com/sphere/threads/es-2-0-forum-updates-and-tribulations.119104/"],"htmlRoutes":[{"id":"xenforo-thread","match":{"pathContainsSegment":"threads"},"mode":"xenforo_html"}]},{"id":"ycombinator","name":"Y Combinator Directory & Work at a Startup","category":"finance","description":"Extracts YC company profiles, founders, batches, and open roles from ycombinator.com/companies/ (and upgrades login-gated workatastartup.com company pages to their public YC mirror).","domains":["www.ycombinator.com","ycombinator.com","www.workatastartup.com","workatastartup.com"],"exampleUrls":["https://www.ycombinator.com/companies/supabase","https://www.workatastartup.com/companies/supabase"],"routes":[{"match":{"hosts":["www.workatastartup.com","workatastartup.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"twin":{"id":"workatastartup-yc-mirror","fetchUrl":"https://www.ycombinator.com/companies/{slug}/jobs","kind":"text","accept":"text/html"},"extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}],"htmlRoutes":[{"match":{"hosts":["www.ycombinator.com","ycombinator.com"],"exactSegments":false,"pathSegments":["companies",{"param":"slug","charset":"alnum_dash","minLen":1,"maxLen":80}]},"mode":"embedded_json","dataAttr":"data-page","extract":{"jsonSource":"inertia_data_page","rootPath":"props","requireFields":["company.name"],"vars":{"name":{"paths":["company.name"],"trim":true},"oneLiner":{"paths":["company.one_liner"],"trim":true},"longDesc":{"paths":["company.long_description"],"trim":true},"batch":{"paths":["company.batch_name","company.batch"]},"status":{"paths":["company.ycdc_status","company.status"]},"teamSize":{"paths":["company.team_size"]},"location":{"paths":["company.location","company.city"]},"website":{"paths":["company.website"]},"websiteHttps":{"paths":["company.website"],"requireHttps":true},"yearFounded":{"paths":["company.year_founded"]},"tags":{"paths":["company.tags"],"join":", "},"hasRootJobsArr":{"paths":["jobPostings"],"format":"array_len"}},"titleTemplate":"{name} (YC {batch})","titleWhenVar":"batch","titleFallbackTemplate":"{name} (Y Combinator)","descriptionVar":"oneLiner","blockquoteTemplate":"> {oneLiner}","blockquoteWhenVar":"oneLiner","bullets":[{"label":"YC Batch","template":"{batch}","whenVar":"batch"},{"label":"Status","template":"{status}","whenVar":"status"},{"label":"Founded","template":"{yearFounded}","whenVar":"yearFounded"},{"label":"Team Size","template":"{teamSize}","whenVar":"teamSize"},{"label":"Location","template":"{location}","whenVar":"location"},{"label":"Website","template":"{website}","whenVar":"website"},{"label":"Tags","template":"{tags}","whenVar":"tags"}],"sections":[{"heading":"About","headingTemplate":"About {name}","textVar":"longDesc"},{"heading":"Founders","listArrayPath":"company.founders","requireItemVar":"fName","collectLinkVars":["linkedin"],"itemVars":{"fName":{"paths":["full_name"],"trim":true},"fTitle":{"paths":["title"],"trim":true,"default":"Founder"},"fBio":{"paths":["founder_bio"],"format":"strip_tags"},"fBioSuffix":{"template":" — {fBio}","whenVars":["fBio"]},"linkedin":{"paths":["linkedin_url"],"requireHttps":true},"fLabel":{"template":"[{fName}]({linkedin})","whenVars":["fName","linkedin"],"fallbackVar":"fName"}},"itemTemplate":"**{fLabel}** ({fTitle}){fBioSuffix}"},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","arrayPath":"jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]},{"heading":"Open Roles","headingTemplate":"Open Roles ({count})","unlessVar":"hasRootJobsArr","arrayPath":"company.jobPostings","limit":30,"requireItemVar":"jTitle","collectLinkVars":["jUrl"],"itemVars":{"jTitle":{"paths":["title"],"trim":true},"urlHttp":{"paths":["url"],"requireHttpPrefix":true},"urlRelPart":{"paths":["url"],"stripPrefix":"/"},"urlFromRel":{"template":"https://www.ycombinator.com/{urlRelPart}","whenVars":["urlRelPart"]},"urlDefault":{"template":"https://www.ycombinator.com/companies/{slug}/jobs"},"urlRelOrDefault":{"template":"{urlFromRel}","whenVars":["urlFromRel"],"fallbackVar":"urlDefault"},"jUrl":{"template":"{urlHttp}","whenVars":["urlHttp"],"fallbackVar":"urlRelOrDefault"}},"columns":[{"header":"Role","template":"[{jTitle}]({jUrl})"},{"header":"Location","paths":["location","pretty_location"]},{"header":"Salary","paths":["salary_range","pretty_salary_range"]},{"header":"Type","paths":["role","type"]}]}],"linksVars":["websiteHttps"]}}]},{"id":"yelp-fusion","name":"Yelp Fusion API v3","category":"commerce-social","description":"Extracts business search results, single business profiles, and reviews from the official Yelp Fusion v3 API (api.yelp.com) with a strict 24-hour max cache TTL; yelp.com HTML stays detect-only.","domains":["api.yelp.com"],"auth_mode":"key","max_cache_ttl_ms":86400000,"exampleUrls":["https://api.yelp.com/v3/businesses/search?term=coffee&location=San+Francisco","https://api.yelp.com/v3/businesses/gary-danko-san-francisco"],"routes":[{"match":{"hosts":["api.yelp.com"],"anyOf":[{"pathEquals":["/v3/businesses/search","/v3/businesses/matches"]},{"pathPrefix":"/v3/businesses/"}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152,"auth_mode":"key"},"extract":{"jsonMode":"yelp_fusion_json"}}]},{"id":"yext-locator","name":"Yext Store & Dealer Locator","category":"commerce-social","description":"Opt-in page-key adapter for Yext Live/Search API dealer locators; defaults OFF and falls back cleanly to HTML/JSON-LD when disabled.","domains":["liveapi.yext.com","cdn.yextapis.com","locations.chipotle.com"],"universalEngine":true,"auth_mode":"page-key","requires_page_key_opt_in":true,"exampleUrls":["https://cdn.yextapis.com/v2/accounts/me/answers/query?api_key=01db1d1e5ebbaa7ea2e6807ad2196ab3&v=20220511&experienceKey=yext-help-hitchhikers&input=locator"],"routes":[{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"entities"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}},{"match":{"hosts":["liveapi.yext.com","cdn.yextapis.com"],"pathSegments":["v2","accounts",{"param":"accountId","charset":"alnum_dash","minLen":1,"maxLen":64},"answers","query"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","requires_page_key_opt_in":true,"auth_mode":"page-key"},"extract":{"jsonMode":"yext_locator"}}],"htmlRoutes":[{"id":"yext-locator","match":{"exactSegments":false},"mode":"yext_locator_html"}]},{"id":"yotpo","name":"Yotpo Product Reviews","category":"commerce-social","description":"Extracts public Yotpo reviews widget JSON payloads and discovers Yotpo widget markers on storefront HTML pages.","domains":["api-cdn.yotpo.com","api.yotpo.com"],"universalEngine":true,"auth_mode":"pub","exampleUrls":["https://api-cdn.yotpo.com/v1/widget/MdtpPOdzecvdDWwA3pFvhLyB6ab4osWf5p8TQHpj/products/8158162911322/reviews.json"],"routes":[{"match":{"hosts":["api-cdn.yotpo.com","api.yotpo.com"],"pathSegments":["v1","widget",{"param":"appKey","charset":"alnum_dash","minLen":4,"maxLen":80},"products",{"param":"productId","charset":"pkg","minLen":1,"maxLen":120},"reviews.json"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"jsonMode":"yotpo_reviews"}}],"htmlRoutes":[{"id":"yotpo","match":{"exactSegments":false},"mode":"yotpo_html"}]},{"id":"zendesk-hc","name":"Zendesk Help Center","category":"developer","description":"Upgrades *.zendesk.com Help Center article, section, and category pages to the official Help Center v2 JSON API with breadcrumbs, updated timestamps, and Markdown conversion.","domains":["*.zendesk.com","support.sram.com"],"exampleUrls":["https://support.zendesk.com/hc/en-us/articles/4408885959066-Lesson-4-Business-rules","https://support.zendesk.com/hc/en-us/sections/5634465167514-Business-rules","https://support.zendesk.com/hc/en-us/categories/6191910393754-Product-guides"],"routes":[{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"articles",{"param":"articleId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/articles/{articleId}.json?include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"rejectIfFieldTruthy":"article.draft","requireFields":["article.title","article.body"],"vars":{"title":{"paths":["article.title"],"format":"strip_tags","trim":true},"updatedAt":{"paths":["article.updated_at","article.edited_at"]},"htmlUrl":{"paths":["article.html_url"],"requireHttps":true},"sectionName":{"paths":["sections.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"catAndSec":{"template":"{categoryName} › {sectionName}","whenVars":["categoryName","sectionName"],"fallbackVar":"sectionName"},"breadcrumbs":{"template":"{catAndSec}","whenVars":["catAndSec"],"fallbackVar":"categoryName"},"labels":{"paths":["article.label_names"],"itemWrap":"`","join":", ","limit":12},"bodyMd":{"paths":["article.body"],"format":"html_to_md","trim":true}},"requireVars":["title","bodyMd"],"titleTemplate":"{title}","publishedTimeVar":"updatedAt","bullets":[{"label":"Breadcrumbs","template":"{breadcrumbs}","whenVar":"breadcrumbs"},{"label":"Updated","template":"{updatedAt}","whenVar":"updatedAt"},{"label":"Labels","template":"{labels}","whenVar":"labels"},{"label":"Canonical URL","template":"{htmlUrl}","whenVar":"htmlUrl"}],"bodyVar":"bodyMd","linksVars":["htmlUrl","sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"sections",{"param":"sectionId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/sections/{sectionId}/articles.json?per_page=50&include=sections,categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["articles","sections"],"vars":{"sectionTitle":{"paths":["sections.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Section #{sectionId}"},"categoryName":{"paths":["categories.0.name"],"format":"strip_tags","trim":true},"sectionUrl":{"paths":["sections.0.html_url"],"requireHttps":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"articleCount":{"paths":["articles"],"format":"array_len_comma"}},"titleTemplate":"{sectionTitle}","bullets":[{"label":"Category","template":"{categoryName}","whenVar":"categoryName"},{"label":"Articles","template":"{articleCount}","whenVar":"articleCount"}],"sections":[{"heading":"Articles","arrayPath":"articles","limit":50,"emptyText":"No published articles found in this section.","requireItemVar":"artTitle","collectLinkVars":["artUrl"],"itemVars":{"artTitle":{"paths":["title"],"format":"strip_tags","trim":true},"artUrl":{"paths":["html_url"],"requireHttps":true},"artLabels":{"paths":["label_names"],"join":", ","limit":8},"artUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{artTitle}","url":"{artUrl}","updatedAt":"{artUpdated}","labels":"{artLabels}"},"columns":[{"header":"Article","template":"[{artTitle}]({artUrl})"},{"header":"Updated","paths":["updated_at"],"sliceMax":10},{"header":"Labels","template":"{artLabels}"}]}],"linksVars":["sectionUrl","categoryUrl"]}},{"match":{"exactSegments":false,"pathSegments":["hc",{"param":"locale","charset":"alnum_dash","minLen":2,"maxLen":16,"transform":"lower"},"categories",{"param":"categoryId","charset":"leading_digits_slug","minLen":1,"maxLen":160,"transform":"leading_digits"}]},"twin":{"fetchUrl":"https://{host}/api/v2/help_center/{locale}/categories/{categoryId}/sections.json?per_page=50&include=categories","kind":"json","accept":"application/json","maxBytes":4194304},"extract":{"requireAnyFields":["sections","categories"],"vars":{"categoryTitle":{"paths":["categories.0.name"],"format":"strip_tags","trim":true,"fallbackTemplate":"Help Center Category #{categoryId}"},"categoryDesc":{"paths":["categories.0.description"],"format":"strip_tags","trim":true},"categoryUrl":{"paths":["categories.0.html_url"],"requireHttps":true},"sectionCount":{"paths":["sections"],"format":"array_len_comma"}},"titleTemplate":"{categoryTitle}","descriptionVar":"categoryDesc","introVar":"categoryDesc","bullets":[{"label":"Sections","template":"{sectionCount}","whenVar":"sectionCount"}],"sections":[{"heading":"Sections","arrayPath":"sections","limit":50,"emptyText":"No sections found in this category.","requireItemVar":"secName","collectLinkVars":["secUrl"],"itemVars":{"secName":{"paths":["name"],"format":"strip_tags","trim":true},"secUrl":{"paths":["html_url"],"requireHttps":true},"secDesc":{"paths":["description"],"format":"strip_tags","trim":true,"sliceMax":160},"secUpdated":{"paths":["updated_at"],"sliceMax":10}},"recordFields":{"title":"{secName}","url":"{secUrl}","description":"{secDesc}","updatedAt":"{secUpdated}"},"columns":[{"header":"Section","template":"[{secName}]({secUrl})"},{"header":"Description","template":"{secDesc}"},{"header":"Updated","paths":["updated_at"],"sliceMax":10}]}],"linksVars":["categoryUrl"]}}]}]} diff --git a/internal/extract/manifests/dkan.yaml b/internal/extract/manifests/dkan.yaml index 1cb128f..1f56ddf 100644 --- a/internal/extract/manifests/dkan.yaml +++ b/internal/extract/manifests/dkan.yaml @@ -4,15 +4,13 @@ name: DKAN Open Data Portals (Metastore & Datastore) category: public-records description: "Universal DKAN 2 adapter (data.medicaid.gov, data.healthcare.gov, and state/city DKAN portals): formats /api/1/metastore/schemas/dataset/items catalogs and single datasets (publisher, modified, keywords, distributions) and /api/1/datastore/query// rows with data-dictionary column labels. Dataset pages on declared portals upgrade to the metastore JSON while respecting dedicated CMS/HealthData adapters." domains: - - data.medicaid.gov - data.healthcare.gov universalEngine: true auth_mode: pub min_interval_ms: 2000 exampleUrls: - - "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false" - - "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3" - - "https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8" + - "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false" + - "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3" - "https://data.healthcare.gov/dataset/e4rr-zk4i" routes: @@ -55,7 +53,6 @@ routes: - match: hosts: - - data.medicaid.gov - data.healthcare.gov exactSegments: true pathSegments: diff --git a/internal/extract/manifests/dol-enforcement.yaml b/internal/extract/manifests/dol-enforcement.yaml new file mode 100644 index 0000000..f7e515e --- /dev/null +++ b/internal/extract/manifests/dol-enforcement.yaml @@ -0,0 +1,41 @@ +# Shared Go + TypeScript Declarative Site Adapter: DOL Enforcement (#279) +id: dol-enforcement +name: U.S. Department of Labor Enforcement & Data +category: public-records +description: "Extracts Wage and Hour Division (WHD) and OSHA enforcement records from apiprod.dol.gov v4 APIs (DOL_API_KEY) with HTML fallback for dol.gov and enforcedata/data.dol.gov while rejecting empty data.dol.gov shells." +domains: + - apiprod.dol.gov + - enforcedata.dol.gov + - data.dol.gov + - www.dol.gov + - dol.gov +auth_mode: key +exampleUrls: + - "https://apiprod.dol.gov/v4/get/WHD/whd_enforcement/json?limit=2" + - "https://apiprod.dol.gov/v4/get/OSHA/inspection/json?limit=2" + - "https://www.dol.gov/agencies/whd/data" + +routes: + - match: + hosts: + - apiprod.dol.gov + pathPrefix: /v4/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: dol_enforcement_json + +htmlRoutes: + - id: dol-enforcement + match: + hosts: + - data.dol.gov + - enforcedata.dol.gov + - www.dol.gov + - dol.gov + exactSegments: false + mode: dol_enforcement_html diff --git a/internal/extract/manifests/eeoc-litigation.yaml b/internal/extract/manifests/eeoc-litigation.yaml new file mode 100644 index 0000000..99556d9 --- /dev/null +++ b/internal/extract/manifests/eeoc-litigation.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: EEOC Litigation (#282) +id: eeoc-litigation +name: EEOC Litigation & Enforcement Releases +category: public-records +description: "Extracts EEOC enforcement press releases, litigation summaries, settlement figures, and district office metadata from eeoc.gov." +domains: + - www.eeoc.gov + - eeoc.gov +auth_mode: pub +exampleUrls: + - "https://www.eeoc.gov/newsroom/boss-man-tacos-pay-42000-eeoc-sexual-harassment-suit" + - "https://www.eeoc.gov/eeoc-litigation" + - "https://www.eeoc.gov/newsroom" + +htmlRoutes: + - id: eeoc-litigation + match: + exactSegments: false + mode: eeoc_litigation_html diff --git a/internal/extract/manifests/everycrsreport.yaml b/internal/extract/manifests/everycrsreport.yaml new file mode 100644 index 0000000..94eb995 --- /dev/null +++ b/internal/extract/manifests/everycrsreport.yaml @@ -0,0 +1,69 @@ +# Shared Go + TypeScript Declarative Site Adapter: EveryCRSReport (#291) +id: everycrsreport +name: "EveryCRSReport Archive" +category: public-records +description: "Extracts Congressional Research Service reports from EveryCRSReport JSON metadata, /reports/{id}.html JSON twins, and bounded /reports.csv index." +domains: + - www.everycrsreport.com + - everycrsreport.com +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.everycrsreport.com/reports/IN11532.json" + - "https://www.everycrsreport.com/reports/IN11532.html" + - "https://www.everycrsreport.com/reports.csv" + +routes: + - match: + exactSegments: true + pathSuffix: .json + pathSegments: + - reports + - param: reportId + charset: alnum_dash + stripSuffix: .json + minLen: 2 + maxLen: 32 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: everycrs_json + + - match: + exactSegments: true + pathSuffix: .html + pathSegments: + - reports + - param: reportId + charset: alnum_dash + stripSuffix: .html + minLen: 2 + maxLen: 32 + twin: + fetchUrl: "https://{host}/reports/{reportId}.json" + kind: json + accept: application/json + maxBytes: 1048576 + extract: + jsonMode: everycrs_json + + - match: + exactSegments: true + pathEquals: + - /reports.csv + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: text/plain + maxBytes: 1048576 + extract: + textMode: everycrs_csv + +htmlRoutes: + - id: everycrsreport + match: + exactSegments: false + mode: everycrs_html diff --git a/internal/extract/manifests/fcc-ecfs.yaml b/internal/extract/manifests/fcc-ecfs.yaml new file mode 100644 index 0000000..18ea154 --- /dev/null +++ b/internal/extract/manifests/fcc-ecfs.yaml @@ -0,0 +1,36 @@ +# Shared Go + TypeScript Declarative Site Adapter: FCC ECFS (#284) +id: fcc-ecfs +name: FCC Electronic Comment Filing System (ECFS) +category: public-records +description: "Extracts FCC Electronic Comment Filing System (ECFS) filings, proceedings, filers, and comment text via publicapi.fcc.gov/ecfs/ (api.data.gov key) with HTML fallback on www.fcc.gov/ecfs/." +domains: + - publicapi.fcc.gov + - www.fcc.gov + - fcc.gov +auth_mode: key +exampleUrls: + - "https://publicapi.fcc.gov/ecfs/filings?limit=2" + - "https://www.fcc.gov/ecfs/search/search-filings" + +routes: + - match: + hosts: + - publicapi.fcc.gov + pathPrefix: /ecfs/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: fcc_ecfs_json + +htmlRoutes: + - id: fcc-ecfs + match: + hosts: + - www.fcc.gov + - fcc.gov + pathPrefix: /ecfs + mode: fcc_ecfs_html diff --git a/internal/extract/manifests/fcc-uls.yaml b/internal/extract/manifests/fcc-uls.yaml new file mode 100644 index 0000000..d86b733 --- /dev/null +++ b/internal/extract/manifests/fcc-uls.yaml @@ -0,0 +1,76 @@ +# Shared Go + TypeScript Declarative Site Adapter: FCC ULS (#285) +id: fcc-uls +name: FCC Universal Licensing System (ULS) +category: public-records +description: "Extracts FCC Universal Licensing System (ULS) Socrata datasets and catalog records on opendata.fcc.gov, legacy License View JSON on data.fcc.gov, and wireless2.fcc.gov HTML pages." +domains: + - opendata.fcc.gov + - data.fcc.gov + - wireless2.fcc.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://opendata.fcc.gov/resource/dpvg-tvcx.json?$limit=2" + - "https://opendata.fcc.gov/api/catalog/v1?q=ULS&limit=3" + - "https://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=Verizon&format=json" + +routes: + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /resource/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /api/views/ + pathSuffix: .json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - opendata.fcc.gov + pathPrefix: /api/catalog/v1 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + + - match: + hosts: + - data.fcc.gov + pathPrefix: /api/license-view/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: fcc_uls_json + +htmlRoutes: + - id: fcc-uls + match: + hosts: + - wireless2.fcc.gov + - opendata.fcc.gov + - data.fcc.gov + exactSegments: false + mode: fcc_uls_html diff --git a/internal/extract/manifests/ferc-nrc-dockets.yaml b/internal/extract/manifests/ferc-nrc-dockets.yaml new file mode 100644 index 0000000..d91a0df --- /dev/null +++ b/internal/extract/manifests/ferc-nrc-dockets.yaml @@ -0,0 +1,25 @@ +# Shared Go + TypeScript Declarative Site Adapter: FERC & NRC Dockets (#286) +id: ferc-nrc-dockets +name: FERC eLibrary & NRC ADAMS Dockets +category: public-records +description: "Extracts public FERC eLibrary and NRC ADAMS docket/document pages while strictly honoring robots.txt and rejecting Cloudflare challenges and unhydrated Angular shells." +domains: + - elibrary.ferc.gov + - www.ferc.gov + - ferc.gov + - adams.nrc.gov + - adams-search.nrc.gov + - www.nrc.gov + - nrc.gov +auth_mode: pub +strict_robots: true +exampleUrls: + - "https://www.nrc.gov/documents-reports/adams-public-documents" + - "https://elibrary.ferc.gov/eLibrary/search" + - "https://adams-search.nrc.gov/" + +htmlRoutes: + - id: ferc-nrc-dockets + match: + exactSegments: false + mode: ferc_nrc_dockets_html diff --git a/internal/extract/manifests/financial-regulators-enforcement.yaml b/internal/extract/manifests/financial-regulators-enforcement.yaml new file mode 100644 index 0000000..b7af78e --- /dev/null +++ b/internal/extract/manifests/financial-regulators-enforcement.yaml @@ -0,0 +1,76 @@ +# Shared Go + TypeScript Declarative Site Adapter: Financial Regulators Enforcement (#287) +id: financial-regulators-enforcement +name: CFTC, OCC & FinCEN Enforcement & Bulletins +category: finance +description: "Extracts enforcement actions, press releases, bulletins, and advisories from CFTC, OCC (including occ_news.xml RSS), and FinCEN." +domains: + - www.cftc.gov + - cftc.gov + - www.occ.gov + - occ.gov + - www.fincen.gov + - fincen.gov +auth_mode: pub +exampleUrls: + - "https://www.cftc.gov/PressRoom/PressReleases/9331-26" + - "https://www.occ.gov/news-issuances/bulletins/2023/bulletin-2023-17.html" + - "https://www.occ.gov/rss/occ_news.xml" + - "https://www.fincen.gov/news" + +routes: + - match: + hosts: + - www.occ.gov + - occ.gov + pathEquals: + - /rss/occ_news.xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/xml + maxBytes: 2097152 + extract: + xml: + mode: items_table + requireAnyTags: + - rss + - channel + itemTag: item + channelTitleFallbackParam: host + titleTemplate: "{channelTitle} ({itemCount})" + limit: 25 + collectLinkVar: itemLink + emitTotals: true + itemVars: + title: + tags: [title] + default: Release + itemLink: + tags: [link] + pubDate: + tags: [pubDate] + sliceMax: 24 + default: "-" + desc: + tags: [description] + sliceMax: 180 + default: "-" + recordFields: + title: "{title}" + url: "{itemLink}" + publishedAt: "{pubDate}" + description: "{desc}" + source: financial-regulators-enforcement + columns: + - header: Title + template: "[{title}]({itemLink})" + - header: Published + template: "{pubDate}" + - header: Summary + template: "{desc}" + +htmlRoutes: + - id: financial-regulators-enforcement + match: + exactSegments: false + mode: financial_regulators_html diff --git a/internal/extract/manifests/ftc-cases.yaml b/internal/extract/manifests/ftc-cases.yaml new file mode 100644 index 0000000..70d7d4b --- /dev/null +++ b/internal/extract/manifests/ftc-cases.yaml @@ -0,0 +1,22 @@ +# Shared Go + TypeScript Declarative Site Adapter: FTC Cases & Proceedings (#283) +id: ftc-cases +name: FTC Cases, Proceedings & Early Termination Notices +category: public-records +description: "Extracts FTC Legal Library cases, proceedings, matter numbers, and Hart-Scott-Rodino early termination notices while honoring FTC Crawl-delay: 5." +domains: + - www.ftc.gov + - ftc.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 5000 +max_concurrent: 1 +exampleUrls: + - "https://www.ftc.gov/legal-library/browse/cases-proceedings/banned-debt-collectors" + - "https://www.ftc.gov/legal-library/browse/cases-proceedings" + - "https://www.ftc.gov/legal-library/browse/early-termination-notices" + +htmlRoutes: + - id: ftc-cases + match: + exactSegments: false + mode: ftc_cases_html diff --git a/internal/extract/manifests/gao-reports.yaml b/internal/extract/manifests/gao-reports.yaml new file mode 100644 index 0000000..0aabd52 --- /dev/null +++ b/internal/extract/manifests/gao-reports.yaml @@ -0,0 +1,32 @@ +# Shared Go + TypeScript Declarative Site Adapter: U.S. GAO Reports & Testimonies (#289) +id: gao-reports +name: "U.S. GAO Reports & Testimonies" +category: public-records +description: "Extracts U.S. Government Accountability Office RSS report feeds and product detail pages while honoring strict_robots and rejecting Akamai Access Denied shells." +domains: + - www.gao.gov + - gao.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 1000 +exampleUrls: + - "https://www.gao.gov/products/gao-27-108423" + - "https://www.gao.gov/rss/reports.xml" + +routes: + - match: + pathPrefix: /rss/ + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 1048576 + extract: + textMode: gao_rss_xml + +htmlRoutes: + - id: gao-reports + match: + exactSegments: false + mode: gao_reports_html diff --git a/internal/extract/manifests/gov-wordpress-newsrooms.yaml b/internal/extract/manifests/gov-wordpress-newsrooms.yaml new file mode 100644 index 0000000..4c7aab1 --- /dev/null +++ b/internal/extract/manifests/gov-wordpress-newsrooms.yaml @@ -0,0 +1,64 @@ +# Shared Go + TypeScript Declarative Site Adapter: Federal .gov WordPress Newsrooms (#292) +id: gov-wordpress-newsrooms +name: "Federal .gov WordPress Newsrooms" +category: public-records +description: "Extracts official federal .gov WordPress REST v2 posts (excluding whitehouse.gov 403 /wp-json/) and briefing/newsroom HTML pages." +domains: + - www.whitehouse.gov + - whitehouse.gov + - news.va.gov + - www.nasa.gov + - nasa.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://news.va.gov/wp-json/wp/v2/posts?per_page=1" + - "https://news.va.gov/151377/memphis-veterans-received-help-claims-clinic/" + - "https://www.whitehouse.gov/presidential-actions/" + +routes: + - match: + excludeHosts: + - www.whitehouse.gov + - whitehouse.gov + exactSegments: true + pathSegments: + - wp-json + - wp + - v2 + - posts + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: gov_wp_posts_json + + - match: + excludeHosts: + - www.whitehouse.gov + - whitehouse.gov + exactSegments: true + pathSegments: + - wp-json + - wp + - v2 + - posts + - param: postId + charset: digits + minLen: 1 + maxLen: 16 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: gov_wp_posts_json + +htmlRoutes: + - id: gov-wordpress-newsrooms + match: + exactSegments: false + mode: gov_wp_newsroom_html diff --git a/internal/extract/manifests/gsa-site-scanning.yaml b/internal/extract/manifests/gsa-site-scanning.yaml new file mode 100644 index 0000000..79c697c --- /dev/null +++ b/internal/extract/manifests/gsa-site-scanning.yaml @@ -0,0 +1,35 @@ +# Shared Go + TypeScript Declarative Site Adapter: GSA Site Scanning API (#293) +id: gsa-site-scanning +name: "GSA Site Scanning API" +category: public-records +description: "GSA Technology Transformation Services Site Scanning API (DATA_GOV_API_KEY) and open.gsa.gov documentation fallback." +domains: + - api.gsa.gov + - open.gsa.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.gsa.gov/technology/site-scanning/v1/websites?limit=5" + - "https://api.gsa.gov/technology/site-scanning/v1/websites/usa.gov" + +routes: + - match: + hosts: + - api.gsa.gov + pathPrefix: /technology/site-scanning/v1/websites + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: gsa_site_scanning_json + +htmlRoutes: + - id: gsa-site-scanning + match: + hosts: + - open.gsa.gov + exactSegments: false + mode: gsa_site_scanning_html diff --git a/internal/extract/manifests/healthcare-gov-marketplace.yaml b/internal/extract/manifests/healthcare-gov-marketplace.yaml new file mode 100644 index 0000000..e6c8073 --- /dev/null +++ b/internal/extract/manifests/healthcare-gov-marketplace.yaml @@ -0,0 +1,58 @@ +# Shared Go + TypeScript Declarative Site Adapter: HealthCare.gov Marketplace API (#295) +id: healthcare-gov-marketplace +name: "HealthCare.gov Marketplace API" +category: research-health +description: "CMS HealthCare.gov Marketplace Plan Search (POST), States, Counties, and Plan Detail API (HEALTHCARE_GOV_API_KEY) with healthcare.gov HTML fallback." +domains: + - marketplace.api.healthcare.gov + - www.healthcare.gov + - healthcare.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://marketplace.api.healthcare.gov/api/v1/plans/search" + - "https://marketplace.api.healthcare.gov/api/v1/states" + - "https://www.healthcare.gov/glossary/affordable-care-act/" + +routes: + - match: + hosts: + - marketplace.api.healthcare.gov + pathPrefix: /api/v1/plans/search + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + method: POST + contentType: application/json + requestBody: '{"household":{"income":52000,"people":[{"age":30,"aptc_eligible":true,"uses_tobacco":false}]},"market":"Individual","place":{"zipcode":"27360","state":"NC","countyfips":"37057"},"year":2026}' + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: healthcare_marketplace_json + + - match: + hosts: + - marketplace.api.healthcare.gov + anyOf: + - pathPrefix: /api/v1/states + - pathPrefix: /api/v1/counties/ + - pathPrefix: /api/v1/plans/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + method: GET + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: healthcare_marketplace_json + +htmlRoutes: + - id: healthcare-gov-marketplace + match: + hosts: + - www.healthcare.gov + - healthcare.gov + exactSegments: false + mode: healthcare_gov_html diff --git a/internal/extract/manifests/import-alerts-aphis-fda.yaml b/internal/extract/manifests/import-alerts-aphis-fda.yaml new file mode 100644 index 0000000..f38d313 --- /dev/null +++ b/internal/extract/manifests/import-alerts-aphis-fda.yaml @@ -0,0 +1,33 @@ +# Shared Go + TypeScript Declarative Site Adapter: FDA Import Alerts & USDA APHIS Import Manuals (#278) +id: import-alerts-aphis-fda +name: FDA Import Alerts & USDA APHIS Import Manuals +category: public-records +description: "Extracts FDA Import Alerts (/cms_ia/* on accessdata.fda.gov) and USDA APHIS import guidance and manuals (aphis.usda.gov)." +domains: + - www.accessdata.fda.gov + - accessdata.fda.gov + - www.aphis.usda.gov + - aphis.usda.gov +auth_mode: pub +exampleUrls: + - "https://www.accessdata.fda.gov/cms_ia/importalert_190.html" + - "https://www.accessdata.fda.gov/cms_ia/ialist.html" + - "https://www.aphis.usda.gov/plant-imports" + - "https://www.aphis.usda.gov/trade-management-manuals" + +htmlRoutes: + - id: import-alerts-aphis-fda + match: + hosts: + - www.accessdata.fda.gov + - accessdata.fda.gov + pathPrefix: /cms_ia/ + mode: import_alerts_fda_aphis_html + + - id: import-alerts-aphis-fda + match: + hosts: + - www.aphis.usda.gov + - aphis.usda.gov + exactSegments: false + mode: import_alerts_fda_aphis_html diff --git a/internal/extract/manifests/medicaid-nadac.yaml b/internal/extract/manifests/medicaid-nadac.yaml new file mode 100644 index 0000000..6541038 --- /dev/null +++ b/internal/extract/manifests/medicaid-nadac.yaml @@ -0,0 +1,56 @@ +# Shared Go + TypeScript Declarative Site Adapter: Medicaid NADAC Drug Pricing (#297) +id: medicaid-nadac +name: "Medicaid NADAC Drug Pricing (DKAN)" +category: research-health +description: "Extracts data.medicaid.gov NADAC drug pricing DKAN metastore datasets, datastore queries, and /dataset/{id} twins while rejecting empty CMS Medicaid Data React shells." +domains: + - data.medicaid.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/fbb83258-11c7-47f5-8b18-5f8e79f7e704" + - "https://data.medicaid.gov/api/1/datastore/query/e3af839d-8175-5be0-b94e-4a302ed7a035/0?limit=5" + - "https://data.medicaid.gov/dataset/fbb83258-11c7-47f5-8b18-5f8e79f7e704" + +routes: + - match: + pathPrefix: /api/1/metastore/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + + - match: + pathPrefix: /api/1/datastore/query/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + + - match: + exactSegments: false + pathSegments: + - dataset + - param: datasetId + charset: alnum_dash + minLen: 8 + maxLen: 64 + twin: + fetchUrl: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/{datasetId}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: medicaid_nadac_json + +htmlRoutes: + - id: medicaid-nadac + match: + exactSegments: false + mode: medicaid_nadac_html diff --git a/internal/extract/manifests/nlrb-cases.yaml b/internal/extract/manifests/nlrb-cases.yaml new file mode 100644 index 0000000..9a2d82f --- /dev/null +++ b/internal/extract/manifests/nlrb-cases.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: NLRB Cases (#281) +id: nlrb-cases +name: National Labor Relations Board Cases & Dockets +category: public-records +description: "Extracts NLRB unfair labor practice and representation case metadata, docket activity rows, and decision links from nlrb.gov." +domains: + - www.nlrb.gov + - nlrb.gov +auth_mode: pub +exampleUrls: + - "https://www.nlrb.gov/case/13-CA-394913" + - "https://www.nlrb.gov/cases-decisions/cases" + +htmlRoutes: + - id: nlrb-cases + match: + exactSegments: false + mode: nlrb_cases_html diff --git a/internal/extract/manifests/ofac-sdn.yaml b/internal/extract/manifests/ofac-sdn.yaml new file mode 100644 index 0000000..9726294 --- /dev/null +++ b/internal/extract/manifests/ofac-sdn.yaml @@ -0,0 +1,39 @@ +# Shared Go + TypeScript Declarative Site Adapter: OFAC SDN Sanctions List & Actions (#276) +id: ofac-sdn +name: OFAC SDN Sanctions List & Actions +category: public-records +description: "Bounded Range-streaming XML scanner for OFAC SDN.XML (<= 2 MiB) plus recent-actions and sanctions program HTML extraction on ofac.treasury.gov." +domains: + - sanctionslistservice.ofac.treas.gov + - ofac.treasury.gov +auth_mode: pub +exampleUrls: + - "https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML" + - "https://ofac.treasury.gov/recent-actions" + +routes: + - match: + hosts: + - sanctionslistservice.ofac.treas.gov + exactSegments: true + pathEquals: + - /api/PublicationPreview/exports/SDN.XML + - /api/PublicationPreview/exports/CONS_PRIM.XML + - /api/PublicationPreview/exports/SDN_ENHANCED.XML + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/xml + headers: + Range: bytes=0-2097151 + maxBytes: 2097152 + extract: + textMode: ofac_sdn_xml + +htmlRoutes: + - id: ofac-sdn + match: + hosts: + - ofac.treasury.gov + exactSegments: false + mode: ofac_html diff --git a/internal/extract/manifests/osha-establishment.yaml b/internal/extract/manifests/osha-establishment.yaml new file mode 100644 index 0000000..2beb010 --- /dev/null +++ b/internal/extract/manifests/osha-establishment.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: OSHA Establishment Search & ITA (#280) +id: osha-establishment +name: OSHA Establishment Inspections & Injury Data +category: public-records +description: "Extracts OSHA IMIS/ORDS establishment inspection records and ITA injury/illness data pages from osha.gov while honoring robots.txt and detecting CloudFront 403 blocks." +domains: + - www.osha.gov + - osha.gov +auth_mode: pub +strict_robots: true +min_interval_ms: 1500 +exampleUrls: + - "https://www.osha.gov/pls/imis/establishment.html" + - "https://www.osha.gov/Establishment-Specific-Injury-and-Illness-Data" + +htmlRoutes: + - id: osha-establishment + match: + exactSegments: false + mode: osha_establishment_html diff --git a/internal/extract/manifests/oversight-gov.yaml b/internal/extract/manifests/oversight-gov.yaml new file mode 100644 index 0000000..46b1a05 --- /dev/null +++ b/internal/extract/manifests/oversight-gov.yaml @@ -0,0 +1,17 @@ +# Shared Go + TypeScript Declarative Site Adapter: Oversight.gov IG Reports (#288) +id: oversight-gov +name: Oversight.gov Inspector General Reports +category: public-records +description: "Extracts Council of the Inspectors General on Integrity and Efficiency (CIGIE) Inspector General reports and metadata from oversight.gov while rejecting Azure App Gateway 406 shells." +domains: + - www.oversight.gov + - oversight.gov +auth_mode: pub +exampleUrls: + - "https://www.oversight.gov/reports" + +htmlRoutes: + - id: oversight-gov + match: + exactSegments: false + mode: oversight_gov_html diff --git a/internal/extract/manifests/sba-dsbs-loans.yaml b/internal/extract/manifests/sba-dsbs-loans.yaml new file mode 100644 index 0000000..ec7dfb6 --- /dev/null +++ b/internal/extract/manifests/sba-dsbs-loans.yaml @@ -0,0 +1,45 @@ +# Shared Go + TypeScript Declarative Site Adapter: SBA DSBS & 7(a)/504 Loans (#300) +id: sba-dsbs-loans +name: "SBA DSBS & 7(a)/504 Loan Datasets (DKAN)" +category: finance +description: "Extracts data.sba.gov DKAN 7(a)/504 loan datasets and dataset pages while rejecting empty React SPA shells on search.certifications.sba.gov." +domains: + - data.sba.gov + - search.certifications.sba.gov + - dsbs.sba.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://data.sba.gov/api/1/metastore/schemas/dataset/items/SBA-OCA-CKAN-002" + - "https://data.sba.gov/dataset/sba-foia-quarterly-reports" + +routes: + - match: + hosts: + - data.sba.gov + pathPrefix: /api/1/metastore/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: sba_dkan_json + + - match: + hosts: + - data.sba.gov + pathPrefix: /api/1/datastore/query/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: sba_dkan_json + +htmlRoutes: + - id: sba-dsbs-loans + match: + exactSegments: false + mode: sba_dsbs_loans_html diff --git a/internal/extract/manifests/trade-gov-csl.yaml b/internal/extract/manifests/trade-gov-csl.yaml new file mode 100644 index 0000000..24a3172 --- /dev/null +++ b/internal/extract/manifests/trade-gov-csl.yaml @@ -0,0 +1,38 @@ +# Shared Go + TypeScript Declarative Site Adapter: Trade.gov Consolidated Screening List (#275) +id: trade-gov-csl +name: Trade.gov Consolidated Screening List +category: public-records +description: "Official keyed Trade.gov Consolidated Screening List (CSL) API adapter (TRADE_GOV_CSL_API_KEY via subscription-key header) with HTML fallback on www.trade.gov." +domains: + - data.trade.gov + - api.trade.gov + - www.trade.gov + - trade.gov +auth_mode: key +exampleUrls: + - "https://data.trade.gov/consolidated_screening_list/v1/search?q=huawei" + - "https://www.trade.gov/consolidated-screening-list" + +routes: + - match: + hosts: + - data.trade.gov + - api.trade.gov + pathPrefix: /consolidated_screening_list/ + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 4194304 + extract: + jsonMode: trade_gov_csl_json + +htmlRoutes: + - id: trade-gov-csl + match: + hosts: + - www.trade.gov + - trade.gov + exactSegments: false + mode: trade_gov_csl_html diff --git a/internal/extract/manifests/usitc-hts.yaml b/internal/extract/manifests/usitc-hts.yaml new file mode 100644 index 0000000..e1cc9e7 --- /dev/null +++ b/internal/extract/manifests/usitc-hts.yaml @@ -0,0 +1,85 @@ +# Shared Go + TypeScript Declarative Site Adapter: USITC Harmonized Tariff Schedule (#271) +id: usitc-hts +name: USITC Harmonized Tariff Schedule +category: public-records +description: "Extracts U.S. Harmonized Tariff Schedule (HTS) tariff lines, duty rates, and Chapter 99 / Section 301 footnotes from hts.usitc.gov reststop JSON endpoints with SPA shell guards." +domains: + - hts.usitc.gov +auth_mode: pub +exampleUrls: + - "https://hts.usitc.gov/reststop/search?keyword=bicycle" + - "https://hts.usitc.gov/reststop/exportList?from=8712.00&to=8712.00&format=JSON&styles=false" + +routes: + - match: + hosts: + - hts.usitc.gov + exactSegments: true + pathEquals: + - /reststop/search + queryParams: + - name: keyword + param: keyword + minLen: 1 + maxLen: 120 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + + - match: + hosts: + - hts.usitc.gov + exactSegments: true + pathEquals: + - /reststop/exportList + queryParams: + - name: from + param: from + minLen: 2 + maxLen: 16 + - name: to + param: to + minLen: 2 + maxLen: 16 + - name: format + param: format + allowValues: + - JSON + - json + optional: true + default: JSON + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + + - match: + hosts: + - hts.usitc.gov + pathPrefix: /reststop/ + excludeSegmentSuffixes: + - .csv + - .xlsx + - .pdf + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 4194304 + extract: + jsonMode: usitc_hts_json + +htmlRoutes: + - id: usitc-hts + match: + hosts: + - hts.usitc.gov + exactSegments: false + mode: usitc_hts_html diff --git a/internal/extract/manifests/usps-addresses.yaml b/internal/extract/manifests/usps-addresses.yaml new file mode 100644 index 0000000..e047db1 --- /dev/null +++ b/internal/extract/manifests/usps-addresses.yaml @@ -0,0 +1,40 @@ +# Shared Go + TypeScript Declarative Site Adapter: USPS Addresses v3 (#298) +id: usps-addresses +name: "USPS Addresses v3 Official API" +category: public-records +description: "USPS Addresses v3 API for address standardization, city/state, and ZIP lookup (USPS_ACCESS_TOKEN) with developers.usps.com HTML fallback." +domains: + - apis.usps.com + - apis-tem.usps.com + - developers.usps.com +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://apis.usps.com/addresses/v3/address?streetAddress=475%20L%27Enfant%20Plaza%20SW&city=Washington&state=DC" + - "https://apis.usps.com/addresses/v3/city-state?ZIPCode=20260" + +routes: + - match: + hosts: + - apis.usps.com + - apis-tem.usps.com + anyOf: + - pathPrefix: /addresses/v3/address + - pathPrefix: /addresses/v3/city-state + - pathPrefix: /addresses/v3/zipcode + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 1048576 + extract: + jsonMode: usps_addresses_json + +htmlRoutes: + - id: usps-addresses + match: + hosts: + - developers.usps.com + exactSegments: false + mode: usps_docs_html diff --git a/internal/extract/manifests/ustr-301.yaml b/internal/extract/manifests/ustr-301.yaml new file mode 100644 index 0000000..58b0369 --- /dev/null +++ b/internal/extract/manifests/ustr-301.yaml @@ -0,0 +1,36 @@ +# Shared Go + TypeScript Declarative Site Adapter: USTR Section 301 Trade Actions (#274) +id: ustr-301 +name: USTR Section 301 Trade Actions +category: public-records +description: "Extracts U.S. Trade Representative Section 301 investigation actions, tariff lists, exclusion notices, and RSS feeds from ustr.gov." +domains: + - ustr.gov + - www.ustr.gov +auth_mode: pub +exampleUrls: + - "https://ustr.gov/issue-areas/enforcement/section-301-investigations/tariff-actions" + - "https://ustr.gov/issue-areas/enforcement/section-301-investigations/section-301-china/investigation" + - "https://ustr.gov/rss.xml" + +routes: + - match: + hosts: + - ustr.gov + - www.ustr.gov + pathSuffix: .xml + twin: + fetchUrl: "{requestUrl}" + kind: text + accept: application/rss+xml + maxBytes: 2097152 + extract: + textMode: ustr_301_rss_xml + +htmlRoutes: + - id: ustr-301 + match: + hosts: + - ustr.gov + - www.ustr.gov + exactSegments: false + mode: ustr_301_html diff --git a/internal/extract/manifests/va-lighthouse-facilities.yaml b/internal/extract/manifests/va-lighthouse-facilities.yaml new file mode 100644 index 0000000..52e79c6 --- /dev/null +++ b/internal/extract/manifests/va-lighthouse-facilities.yaml @@ -0,0 +1,39 @@ +# Shared Go + TypeScript Declarative Site Adapter: VA Lighthouse Facilities API (#294) +id: va-lighthouse-facilities +name: "VA Lighthouse Facilities API" +category: research-health +description: "U.S. Department of Veterans Affairs Lighthouse Facilities API (VA_LIGHTHOUSE_API_KEY) with www.va.gov / developer.va.gov HTML fallback." +domains: + - api.va.gov + - sandbox-api.va.gov + - www.va.gov + - developer.va.gov +auth_mode: key +min_interval_ms: 1000 +exampleUrls: + - "https://api.va.gov/services/va_facilities/v1/facilities?state=TX&per_page=5" + - "https://www.va.gov/find-locations" + +routes: + - match: + hosts: + - api.va.gov + - sandbox-api.va.gov + pathPrefix: /services/va_facilities/v1/facilities + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + auth_mode: key + maxBytes: 2097152 + extract: + jsonMode: va_facilities_json + +htmlRoutes: + - id: va-lighthouse-facilities + match: + hosts: + - www.va.gov + - developer.va.gov + exactSegments: false + mode: va_facilities_html diff --git a/internal/extract/official_api_providers.go b/internal/extract/official_api_providers.go index 56cd179..00e9fb8 100644 --- a/internal/extract/official_api_providers.go +++ b/internal/extract/official_api_providers.go @@ -31,6 +31,8 @@ var dataGovAdapterIDSet = map[string]bool{ "college-scorecard": true, "nps": true, "smithsonian-open-access": true, + "fcc-ecfs": true, + "gsa-site-scanning": true, } // DataGovAdapterIDs returns the sorted list of adapter IDs backed by api.data.gov (`DATA_GOV_API_KEY`). @@ -344,6 +346,48 @@ var officialProviderSpecs = map[string]OfficialAPIKeyProviderSpec{ Aliases: []string{"strava", "STRAVA_ACCESS_TOKEN", "STRAVA_API_KEY"}, DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, }, + "trade-gov-csl": { + Provider: "trade-gov-csl", + EnvKeyName: "TRADE_GOV_CSL_API_KEY", + VaultProvider: "trade-gov-csl", + Aliases: []string{"TRADE_GOV_CSL_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "subscription-key"}, + }, + "dol-enforcement": { + Provider: "dol-enforcement", + EnvKeyName: "DOL_API_KEY", + VaultProvider: "dol-enforcement", + Aliases: []string{"DOL_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "X-API-KEY"}, + }, + "va-lighthouse-facilities": { + Provider: "va-lighthouse-facilities", + EnvKeyName: "VA_LIGHTHOUSE_API_KEY", + VaultProvider: "va-lighthouse-facilities", + Aliases: []string{"va-lighthouse", "va-facilities", "VA_LIGHTHOUSE_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "apikey"}, + }, + "healthcare-gov-marketplace": { + Provider: "healthcare-gov-marketplace", + EnvKeyName: "HEALTHCARE_GOV_API_KEY", + VaultProvider: "healthcare-gov-marketplace", + Aliases: []string{"healthcare-gov", "cms-marketplace", "HEALTHCARE_GOV_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "query", Name: "apikey"}, + }, + "usps-addresses": { + Provider: "usps-addresses", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, + "carrier-tracking-official": { + Provider: "carrier-tracking-official", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "usps-addresses", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + }, } // NormalizeAPIKeyUserID normalizes a Hub API-key vault user identifier. @@ -486,7 +530,36 @@ func ResolveOfficialAPIProviderSpecForURL(providerOrAdapter, targetURL string) O return resolveWave3ProviderSpecForHostGo(base, host) } -func resolveWave3ProviderSpecForHostGo(base OfficialAPIKeyProviderSpec, _ string) OfficialAPIKeyProviderSpec { +func resolveWave3ProviderSpecForHostGo(base OfficialAPIKeyProviderSpec, host string) OfficialAPIKeyProviderSpec { + if base.Provider == "carrier-tracking-official" { + if host == "apis.usps.com" || host == "apis-tem.usps.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "usps-addresses", + EnvKeyName: "USPS_ACCESS_TOKEN", + VaultProvider: "usps-addresses", + Aliases: []string{"usps", "usps-addresses", "USPS_ACCESS_TOKEN", "USPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + if host == "onlinetools.ups.com" || host == "wwwcie.ups.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "ups", + EnvKeyName: "UPS_ACCESS_TOKEN", + VaultProvider: "ups", + Aliases: []string{"ups", "UPS_ACCESS_TOKEN", "UPS_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + if host == "apis.fedex.com" || host == "apis-sandbox.fedex.com" { + return OfficialAPIKeyProviderSpec{ + Provider: "fedex", + EnvKeyName: "FEDEX_ACCESS_TOKEN", + VaultProvider: "fedex", + Aliases: []string{"fedex", "FEDEX_ACCESS_TOKEN", "FEDEX_API_KEY"}, + DefaultInjection: &OfficialAPIKeyInjection{Kind: "header", Name: "Authorization", Prefix: "Bearer "}, + } + } + } return base } @@ -864,6 +937,28 @@ func encodeURIComponentJSGo(s string) string { return sb.String() } +// encodeURLSearchParamsJSGo implements WHATWG application/x-www-form-urlencoded byte serialization +// matching JavaScript `new URLSearchParams([['k', s]]).toString().slice(2)` (`*` unescaped, `~` -> `%7E`, `' '` -> `+`). +func encodeURLSearchParamsJSGo(s string) string { + const hexUpper = "0123456789ABCDEF" + var sb strings.Builder + sb.Grow(len(s)) + for i := 0; i < len(s); i++ { + b := s[i] + if b == ' ' { + sb.WriteByte('+') + } else if (b >= 'A' && b <= 'Z') || (b >= 'a' && b <= 'z') || (b >= '0' && b <= '9') || + b == '*' || b == '-' || b == '.' || b == '_' { + sb.WriteByte(b) + } else { + sb.WriteByte('%') + sb.WriteByte(hexUpper[b>>4]) + sb.WriteByte(hexUpper[b&0x0F]) + } + } + return sb.String() +} + func isHexByteProviderGo(b byte) bool { return (b >= '0' && b <= '9') || (b >= 'A' && b <= 'F') || (b >= 'a' && b <= 'f') } @@ -962,10 +1057,12 @@ func RedactSecretsInBody(body string, secrets []string) string { } enc := encodeURIComponentJSGo(s) encPlus := strings.ReplaceAll(enc, "%20", "+") - usp := url.QueryEscape(s) + usp := encodeURLSearchParamsJSGo(s) uspSpacePct20 := strings.ReplaceAll(usp, "+", "%20") + goQ := url.QueryEscape(s) + goQSpacePct20 := strings.ReplaceAll(goQ, "+", "%20") seen := map[string]bool{s: true} - for _, v := range []string{enc, encPlus, usp, uspSpacePct20} { + for _, v := range []string{enc, encPlus, usp, uspSpacePct20, goQ, goQSpacePct20} { if v == "" || seen[v] { continue } diff --git a/internal/extract/round2_platforms_test.go b/internal/extract/round2_platforms_test.go index 36db808..99a77d8 100644 --- a/internal/extract/round2_platforms_test.go +++ b/internal/extract/round2_platforms_test.go @@ -44,22 +44,22 @@ func TestRound2JSONTwins(t *testing.T) { cases := []round2TwinCase{ { name: "dkan-metastore-list", - reqURL: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false", + reqURL: "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items?show-reference-ids=false", fixture: "dkan_items.json", wantAdapter: "dkan", wantRecords: 3, - wantTitle: "data.medicaid.gov DKAN datasets", + wantTitle: "data.healthcare.gov DKAN datasets", needles: []string{"State Drug Utilization Data 1991", "`ae4d5347-5137-5f6c-b66c-3420fa0316d8`", "| csv |"}, }, { name: "dkan-dataset-page", - reqURL: "https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8", + reqURL: "https://data.healthcare.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8", wantAdapter: "dkan", - wantFetchURL: "https://data.medicaid.gov/api/1/metastore/schemas/dataset/items/ae4d5347-5137-5f6c-b66c-3420fa0316d8?show-reference-ids=false", + wantFetchURL: "https://data.healthcare.gov/api/1/metastore/schemas/dataset/items/ae4d5347-5137-5f6c-b66c-3420fa0316d8?show-reference-ids=false", }, { name: "dkan-datastore-query", - reqURL: "https://data.medicaid.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", + reqURL: "https://data.healthcare.gov/api/1/datastore/query/ae4d5347-5137-5f6c-b66c-3420fa0316d8/0?limit=3", fixture: "dkan_query.json", wantAdapter: "dkan", wantRecords: 3, diff --git a/internal/extract/wave2c_econ.go b/internal/extract/wave2c_econ.go index 22b2c1c..5e6d1a3 100644 --- a/internal/extract/wave2c_econ.go +++ b/internal/extract/wave2c_econ.go @@ -1008,19 +1008,28 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt return nil, false } var headers []string + isIntlTrade := strings.Contains(strings.ToLower(origURL), "/intltrade/") for _, h := range headerRow { col := wave2cEconPlain(h, 64) if col == "" { col = fmt.Sprintf("col_%d", len(headers)) } + switch strings.ToUpper(col) { + case "I_COMMODITY", "E_COMMODITY", "GEN_VAL_MO", "CON_VAL_MO", "ALL_VAL_MO", "CTY_CODE", "CTY_NAME": + isIntlTrade = true + } headers = append(headers, col) if len(headers) >= 12 { break } } tableCols := len(headers) - if tableCols > 6 { - tableCols = 6 + maxTableCols := 6 + if isIntlTrade { + maxTableCols = 8 + } + if tableCols > maxTableCols { + tableCols = maxTableCols } totalRows := len(matrix) - 1 var recs []map[string]any @@ -1034,6 +1043,9 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt continue } rec := map[string]any{"source": "census"} + if isIntlTrade { + rec["dataset"] = "intltrade" + } tRow := make([]string, tableCols) for c := 0; c < len(headers) && c < len(rowArr); c++ { val := wave2cEconPlain(rowArr[c], 160) @@ -1049,10 +1061,17 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt return nil, false } title := "U.S. Census Data Query" + if isIntlTrade { + title = "U.S. Census International Trade" + } if u, err := url.Parse(origURL); err == nil { p := strings.Trim(u.Path, "/") if p != "" { - title = "U.S. Census: " + p + if isIntlTrade { + title = "U.S. Census International Trade: " + p + } else { + title = "U.S. Census: " + p + } } } blocks := []string{ @@ -1124,6 +1143,23 @@ func wave2cEconFormatCensusJSON(parsed any, origURL string) (*DeclarativeFormatt links = append(links, lp) } } + if cDS, okCDS := m["c_dataset"].([]any); okCDS && len(cDS) > 0 { + var parts []string + for _, p := range cDS { + if ps := wave2cEconPlain(p, 40); ps != "" { + parts = append(parts, ps) + } + } + if len(parts) > 0 { + rec["datasetPath"] = strings.Join(parts, "/") + } + } + for _, linkKey := range []string{"c_variablesLink", "c_examplesLink"} { + if extraLink := SanitizeSchemaHTTPSURL(m[linkKey], origURL); extraLink != "" && !seen[extraLink] { + seen[extraLink] = true + links = append(links, extraLink) + } + } recs = append(recs, rec) rows = append(rows, []string{dTitle, vintage, mod, ident}) } diff --git a/internal/extract/wave3_gov_test.go b/internal/extract/wave3_gov_test.go index 865ce43..9cc5a7f 100644 --- a/internal/extract/wave3_gov_test.go +++ b/internal/extract/wave3_gov_test.go @@ -397,8 +397,8 @@ func TestWave3GovDKANExcludedHostsAndPublicBidHeader(t *testing.T) { if m, ok := ResolveDeclarativeTwin("https://data.healthcare.gov/dataset/e4rr-zk4i"); !ok || m == nil || m.AdapterID != "dkan" { t.Fatalf("dkan must match data.healthcare.gov: ok=%v m=%+v", ok, m) } - if m, ok := ResolveDeclarativeTwin("https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8"); !ok || m == nil || m.AdapterID != "dkan" { - t.Fatalf("dkan must match data.medicaid.gov: ok=%v m=%+v", ok, m) + if m, ok := ResolveDeclarativeTwin("https://data.medicaid.gov/dataset/ae4d5347-5137-5f6c-b66c-3420fa0316d8"); !ok || m == nil || m.AdapterID != "medicaid-nadac" { + t.Fatalf("medicaid-nadac must match data.medicaid.gov: ok=%v m=%+v", ok, m) } // #212 Public Bid Portals: concise (<65w) BidNet solicitation with header .loginWindow password input extracts cleanly diff --git a/internal/extract/wave3_regulators.go b/internal/extract/wave3_regulators.go new file mode 100644 index 0000000..bfa8fb4 --- /dev/null +++ b/internal/extract/wave3_regulators.go @@ -0,0 +1,2347 @@ +package extract + +import ( + "bytes" + "encoding/json" + stdhtml "html" + "math" + "net/url" + "strconv" + "strings" +) + +const ( + wave3K1MaxHTMLBytes = 4 * 1024 * 1024 + wave3K1MaxJSONBytes = 4 * 1024 * 1024 + wave3K1MaxRecords = 25 +) + +var ( + wave3K1RxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|410|406|page\s+not\s+found|case\s+not\s+found|not\s+found|not\s+acceptable|bad\s+request|error\s*404|we\s+couldn'?t\s+find\s+that\s+page|access\s+denied|request\s+(?:rejected|blocked)|could\s+not\s+be\s+satisfied|unauthorized|attention\s+required|just\s+a\s+moment|403\s+forbidden|forbidden|403\s+error)(?:\b|$)`) + wave3K1RxMaintTitle = newLazyRegexp(`(?i)(?:scheduled\s+maintenance|temporarily\s+unavailable|service\s+unavailable|site\s+maintenance|under\s+maintenance|502\s+bad\s+gateway|503\s+service|down\s+for\s+maintenance)`) + wave3K1RxErrorTitle = newLazyRegexp(`(?i)^(?:(?:(?:400|401|403|404|406|410|429|500|502|503)\s+)?(?:internal\s+)?server\s+error|application\s+error|system\s+error|unexpected\s+error|error\s+page|(?:400|401|403|404|406|410|429|500|502|503|http\s+\d{3})\s+error|error\s+(?:400|401|403|404|406|410|429|500|502|503)|error)(?:\s*[|\-\x{2013}\x{2014}:]\s*.*)?$|^.*(?:\s*[|\-\x{2013}\x{2014}:]\s*error)$`) + wave3K1RxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|cases|legal\s+library|ecfs|uls|adams)$`) + wave3K1RxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3K1RxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3K1RxHref = newLazyRegexp(`(?i)]*\bhref\s*=\s*["']([^"'#][^"']*)["'][^>]*>(.*?)`) + wave3K1RxTRow = newLazyRegexp(`(?is)]*>(.*?)`) + wave3K1RxTCell = newLazyRegexp(`(?is)]*>(.*?)`) + wave3K1RxDateLike = newLazyRegexp(`\b(?:\d{4}-\d{2}-\d{2}|\d{1,2}[-/]\d{1,2}[-/]\d{2,4}|(?:January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\.?\s+\d{1,2},\s+\d{4})\b`) + wave3K1RxISODate = newLazyRegexp(`^\d{4}-\d{2}-\d{2}`) + wave3K1RxMoney = newLazyRegexp(`\$[0-9]{1,3}(?:,[0-9]{3})*(?:\.[0-9]{2})?(?:\s*(?:million|billion))?`) + wave3K1RxNLRBCaseNo = newLazyRegexp(`(?i)\b\d{2}-[A-Z]{2}-\d{5,7}\b`) + wave3K1RxNLRBField = newLazyRegexp(`(?is)]*>\s*(Case Number|Date Filed|Status|Location|Region Assigned)\s*:?\s*\s*([^<\r\n]+)`) + wave3K1RxFTCMatter = newLazyRegexp(`(?is)(?:Matter(?:/File)?\s*Number|File\s*Number|Civil\s*Action\s*Number|Docket\s*Number)\s*:?\s*\s*(?:<[^>]+>\s*)*([A-Z0-9][A-Z0-9\-\.\s/:]{2,48})`) + wave3K1RxCallSign = newLazyRegexp(`\b[KW][A-Z0-9]{2,6}\b`) + wave3K1RxAccession = newLazyRegexp(`\bML\d{8,11}\b`) + wave3K1RxReleaseNum = newLazyRegexp(`(?i)\b(?:Release\s+(?:Number|No\.?)\s*[:#]?\s*|OCC\s+(?:Bulletin|News\s+Release)\s+)([A-Z0-9\-]{4,24})`) + wave3K1RxTitleTag = newLazyRegexp(`(?is)]*>(.*?)`) + wave3RxEmptyRootDiv = newLazyRegexp(`(?i)]*\bid=["'](?:root|app|__next|react-root)["'][^>]*>\s*`) + wave3RxEmptyRootDivMain = newLazyRegexp(`(?i)]*\bid=["'](?:root|app|__next|react-root|main-content)["'][^>]*>\s*`) +) + +func wave3HasEmptyRootDivShell(rawHTML, probeLower string, includeMainContent bool) bool { + rx := wave3RxEmptyRootDiv + if includeMainContent { + rx = wave3RxEmptyRootDivMain + } + if strings.Contains(probeLower, " 65536 && len(rawHTML) <= 262144 { + tail := rawHTML[65400:] + if indexFoldASCIIExtract(tail, "= 0 && rx.MatchString(tail) { + return true + } + } + return false +} + +func init() { + for _, mode := range []string{ + "dol_enforcement_html", + "osha_establishment_html", + "nlrb_cases_html", + "eeoc_litigation_html", + "ftc_cases_html", + "fcc_ecfs_html", + "fcc_uls_html", + "ferc_nrc_dockets_html", + "financial_regulators_html", + "oversight_gov_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return wave3K1RunHTMLModeCore(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3RegulatorsHTMLMode reports whether mode is one of the 10 Category K Part 1 HTML extractors (#279-#288). +func IsWave3RegulatorsHTMLMode(mode string) bool { + switch mode { + case "dol_enforcement_html", + "osha_establishment_html", + "nlrb_cases_html", + "eeoc_litigation_html", + "ftc_cases_html", + "fcc_ecfs_html", + "fcc_uls_html", + "ferc_nrc_dockets_html", + "financial_regulators_html", + "oversight_gov_html": + return true + default: + return false + } +} + +// RunWave3RegulatorsHTMLMode executes a Category K Part 1 HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3RegulatorsHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + if !IsWave3RegulatorsHTMLMode(mode) || strings.TrimSpace(rawHTML) == "" { + return "", false + } + res := wave3K1RunHTMLModeCore(mode, rawHTML, baseURL, wave3K1DefaultExtractorID(mode)) + res = sanitizePostFetchResultDeclHTML(res) + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return "", false + } + encoded, err := json.Marshal(res) + if err != nil { + return "", false + } + return string(encoded), true +} + +// IsWave3RegulatorsJSONMode reports whether mode is one of the Category K Part 1 JSON formatters. +func IsWave3RegulatorsJSONMode(mode string) bool { + switch mode { + case "dol_enforcement_json", + "fcc_ecfs_json", + "fcc_uls_json": + return true + default: + return false + } +} + +// FormatWave3RegulatorsJSONDoc formats a Category K Part 1 JSON payload into DeclarativeFormattedDoc. +func FormatWave3RegulatorsJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3RegulatorsJSONMode(mode) || len(raw) == 0 || len(raw) > wave3K1MaxJSONBytes { + return nil, false + } + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || (trimmed[0] != '{' && trimmed[0] != '[') { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(trimmed) + if !ok || parsed == nil { + return nil, false + } + + var doc *DeclarativeFormattedDoc + var handled bool + switch mode { + case "dol_enforcement_json": + doc, handled = wave3K1FormatDOLJSON(parsed, origURL) + case "fcc_ecfs_json": + doc, handled = wave3K1FormatFCCECFSJSON(parsed, origURL) + case "fcc_uls_json": + doc, handled = wave3K1FormatFCCULSJSON(parsed, origURL) + } + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3K1FinalizeDoc(doc), true +} + +// FormatWave3RegulatorsJSONMode formats a Category K Part 1 JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3RegulatorsJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := FormatWave3RegulatorsJSONDoc(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +func wave3K1DefaultExtractorID(mode string) string { + switch mode { + case "dol_enforcement_html": + return "dol-enforcement" + case "osha_establishment_html": + return "osha-establishment" + case "nlrb_cases_html": + return "nlrb-cases" + case "eeoc_litigation_html": + return "eeoc-litigation" + case "ftc_cases_html": + return "ftc-cases" + case "fcc_ecfs_html": + return "fcc-ecfs" + case "fcc_uls_html": + return "fcc-uls" + case "ferc_nrc_dockets_html": + return "ferc-nrc-dockets" + case "financial_regulators_html": + return "financial-regulators-enforcement" + case "oversight_gov_html": + return "oversight-gov" + default: + return "" + } +} + +func wave3K1RunHTMLModeCore(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + if len(rawHTML) > wave3K1MaxHTMLBytes { + rawHTML = truncateUTF8SafeFullDocGo(rawHTML, wave3K1MaxHTMLBytes) + } + trimmedStart := strings.TrimLeft(rawHTML, " \t\r\n") + if trimmedStart == "" || trimmedStart[0] == '{' || trimmedStart[0] == '[' { + return nil + } + probe := rawHTML + if len(probe) > 65536 { + probe = probe[:65536] + } + probeLower := asciiLowerExtractString(probe) + urlLower := asciiLowerExtractString(baseURL) + + // Cheap byte prefilter BEFORE negative-shell checks or DOM extraction. + if !wave3K1MatchesModePrefilter(mode, probeLower, urlLower) { + return nil + } + if wave3K1HasCommonNegativeShell(rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3K1DefaultExtractorID(mode) + } + + switch mode { + case "dol_enforcement_html": + return wave3K1ExtractDOLHTML(rawHTML, probeLower, baseURL, extractorID) + case "osha_establishment_html": + return wave3K1ExtractOSHAHTML(rawHTML, baseURL, extractorID) + case "nlrb_cases_html": + return wave3K1ExtractNLRBHTML(rawHTML, baseURL, urlLower, extractorID) + case "eeoc_litigation_html": + return wave3K1ExtractEEOCHTML(rawHTML, baseURL, extractorID) + case "ftc_cases_html": + return wave3K1ExtractFTCHTML(rawHTML, baseURL, extractorID) + case "fcc_ecfs_html": + return wave3K1ExtractFCCECFSHTML(rawHTML, baseURL, extractorID) + case "fcc_uls_html": + return wave3K1ExtractFCCULSHTML(rawHTML, baseURL, extractorID) + case "ferc_nrc_dockets_html": + return wave3K1ExtractFERCNRCHTML(rawHTML, baseURL, urlLower, extractorID) + case "financial_regulators_html": + return wave3K1ExtractFinRegHTML(rawHTML, baseURL, urlLower, extractorID) + case "oversight_gov_html": + return wave3K1ExtractOversightHTML(rawHTML, baseURL, extractorID) + default: + return nil + } +} + +func wave3K1MatchesModePrefilter(mode, probeLower, urlLower string) bool { + switch mode { + case "dol_enforcement_html": + return strings.Contains(urlLower, "dol.gov") || + strings.Contains(probeLower, "dol.gov") || + strings.Contains(probeLower, "department of labor") || + strings.Contains(probeLower, "wage and hour division") || + strings.Contains(probeLower, "whd_enforcement") + case "osha_establishment_html": + return strings.Contains(urlLower, "osha.gov") || + strings.Contains(probeLower, "osha.gov") || + strings.Contains(probeLower, "occupational safety and health") || + strings.Contains(probeLower, "/pls/imis/") || + strings.Contains(probeLower, "establishment") + case "nlrb_cases_html": + return strings.Contains(urlLower, "nlrb.gov") || + strings.Contains(probeLower, "nlrb.gov") || + strings.Contains(probeLower, "national labor relations board") || + strings.Contains(probeLower, "case_docket_activity") + case "eeoc_litigation_html": + return strings.Contains(urlLower, "eeoc.gov") || + strings.Contains(probeLower, "eeoc.gov") || + strings.Contains(probeLower, "equal employment opportunity commission") + case "ftc_cases_html": + return strings.Contains(urlLower, "ftc.gov") || + strings.Contains(probeLower, "ftc.gov") || + strings.Contains(probeLower, "federal trade commission") + case "fcc_ecfs_html": + return strings.Contains(urlLower, "fcc.gov/ecfs") || + strings.Contains(probeLower, "electronic comment filing") || + strings.Contains(probeLower, "ecfs") + case "fcc_uls_html": + return strings.Contains(urlLower, "wireless2.fcc.gov") || + strings.Contains(urlLower, "opendata.fcc.gov") || + strings.Contains(urlLower, "data.fcc.gov") || + strings.Contains(probeLower, "universal licensing system") || + strings.Contains(probeLower, "ulsapp") + case "ferc_nrc_dockets_html": + return strings.Contains(urlLower, "ferc.gov") || + strings.Contains(urlLower, "nrc.gov") || + strings.Contains(probeLower, "ferc") || + strings.Contains(probeLower, "nrc.gov") || + strings.Contains(probeLower, "elibrary") || + strings.Contains(probeLower, "adams") + case "financial_regulators_html": + return strings.Contains(urlLower, "cftc.gov") || + strings.Contains(urlLower, "occ.gov") || + strings.Contains(urlLower, "fincen.gov") || + strings.Contains(probeLower, "cftc.gov") || + strings.Contains(probeLower, "occ.gov") || + strings.Contains(probeLower, "fincen.gov") || + strings.Contains(probeLower, "commodity futures trading commission") || + strings.Contains(probeLower, "office of the comptroller of the currency") || + strings.Contains(probeLower, "financial crimes enforcement network") + case "oversight_gov_html": + return strings.Contains(urlLower, "oversight.gov") || + strings.Contains(probeLower, "oversight.gov") || + strings.Contains(probeLower, "inspector general") + default: + return false + } +} + +// ── Shared Negative-Shell, Sanitizing & DOM Helpers ────────────────────────────────────────────── + +func wave3K1IsNegativeURL(urlLower string) bool { + if urlLower == "" { + return false + } + if strings.Contains(urlLower, "/404") || + strings.Contains(urlLower, "/not-found") || + strings.Contains(urlLower, "/maintenance") || + strings.Contains(urlLower, "missing_key.html") || + strings.Contains(urlLower, "error=true") { + return true + } + pathOnly := urlLower + if idx := strings.Index(pathOnly, "://"); idx >= 0 { + rest := pathOnly[idx+3:] + if slash := strings.IndexByte(rest, '/'); slash >= 0 { + pathOnly = rest[slash:] + } else { + pathOnly = "/" + } + } + if cut := strings.IndexAny(pathOnly, "?#"); cut >= 0 { + pathOnly = pathOnly[:cut] + } + return strings.HasSuffix(pathOnly, "/error") || + strings.Contains(pathOnly, "/error/") || + strings.HasSuffix(pathOnly, "/error.html") || + strings.HasSuffix(pathOnly, "/error.htm") || + strings.HasSuffix(pathOnly, "/error.aspx") || + strings.HasSuffix(pathOnly, "/login") || + strings.Contains(pathOnly, "/login/") +} + +func wave3K1IsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3K1RxNotFoundTitle.MatchString(t) || + wave3K1RxMaintTitle.MatchString(t) || + wave3K1RxErrorTitle.MatchString(t) +} + +func wave3K1IsGenericTitle(title string) bool { + return wave3K1RxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3K1HasEmptyTitleTag(probeLower string) bool { + m := wave3K1RxTitleTag.FindStringSubmatch(probeLower) + if len(m) < 2 { + return false + } + return strings.TrimSpace(wave3K1RxHTMLTag.ReplaceAllString(m[1], "")) == "" +} + +func wave3K1HasCommonNegativeShell(rawHTML, probeLower, urlLower string) bool { + if wave3K1IsNegativeURL(urlLower) { + return true + } + for _, marker := range []string{ + "cf-browser-verification", + "cf-turnstile", + "challenge-platform", + "/cdn-cgi/challenge-platform", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "just a moment...", + "errors.edgesuite.net", + "error from cloudfront", + "generated by cloudfront", + "the request could not be satisfied", + "you don't have permission to access", + "access denied", + "403 forbidden", + "403 error", + "not acceptable", + "406 not acceptable", + "bad request. reference:", + "missing authentication token", + "api key is either incorrect or missing", + "api_key_missing", + "no api_key was supplied", + `rx-contentitemname" content="404"`, + "page not found | fincen.gov", + "404 page not found", + "window.kpsdk", + "kp_uidz", + "_incapsula_resource", + "incapsula incident", + "x-amzn-waf-action", + "the requested url was rejected", + "your support id is", + "var dd=", + "var dd =", + "dd={'rt'", + "geo.captcha-delivery.com", + "captcha-delivery.com", + "please enable js and disable any ad blocker", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(rawHTML) + if wave3K1IsNegativeTitle(title) { + return true + } + if wave3K1HasEmptyTitleTag(probeLower) && + !strings.Contains(probeLower, "") + if !hasAppRoot && len(rawHTML) > 65536 && len(rawHTML) <= 262144 { + hasAppRoot = indexFoldASCIIExtract(rawHTML[65536:], "") >= 0 + } + hasTailRealMarkers := len(rawHTML) > 65536 && + (indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0 || + indexFoldASCIIExtract(rawHTML[65536:], "= 0) + if hasAppRoot && + !hasJSONLDScriptToken(rawHTML) && + !strings.Contains(probeLower, " 0 { + return true + } + case map[string]any: + if len(tv) > 0 { + if k == "Errors" { + if errVal, okE := tv["Err"]; okE && errVal != nil { + if s, okS := errVal.(string); !okS || strings.TrimSpace(s) != "" { + return true + } + } + continue + } + return true + } + case bool: + if tv { + return true + } + } + } + } + for _, k := range []string{"error_code", "statusCode", "status_code", "status"} { + if f, ok := wave3K1FloatVal(obj[k]); ok && f >= 400 { + return true + } + } + if st := strings.ToUpper(wave3K1Plain(obj["status"], 48)); st == "ERROR" || st == "ERR" || st == "NOT_FOUND" || st == "PERMISSION_DENIED" || st == "UNAUTHENTICATED" || st == "NOTAUTHENTICATED" { + return true + } + if msg := wave3K1Plain(obj["message"], 200); msg != "" && len(obj) <= 3 { + lm := strings.ToLower(msg) + if strings.Contains(lm, "unauthorized") || strings.Contains(lm, "not found") || + strings.Contains(lm, "invalid") || strings.Contains(lm, "forbidden") || + strings.Contains(lm, "missing authentication") || strings.Contains(lm, "api key") || + strings.Contains(lm, "no http resource") { + return true + } + } + return false +} + +func wave3K1CleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3K1RxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + } + return strings.TrimSpace(wave3K1RxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3K1Plain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3K1StringVal(v), maxLen) +} + +func wave3K1FirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3K1StringVal(v any) string { + switch tv := v.(type) { + case string: + return strings.TrimSpace(tv) + case json.Number: + return tv.String() + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return "" + } + if tv == math.Trunc(tv) { + return strconv.FormatInt(int64(tv), 10) + } + return strconv.FormatFloat(tv, 'f', -1, 64) + case int: + return strconv.Itoa(tv) + case int64: + return strconv.FormatInt(tv, 10) + case bool: + if tv { + return "true" + } + return "false" + default: + return "" + } +} + +func wave3K1FloatVal(v any) (float64, bool) { + switch tv := v.(type) { + case float64: + if math.IsNaN(tv) || math.IsInf(tv, 0) { + return 0, false + } + return tv, true + case int: + return float64(tv), true + case int64: + return float64(tv), true + case json.Number: + f, err := tv.Float64() + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + case string: + s := strings.TrimSpace(strings.ReplaceAll(tv, ",", "")) + if s == "" { + return 0, false + } + f, err := strconv.ParseFloat(s, 64) + if err != nil || math.IsNaN(f) || math.IsInf(f, 0) { + return 0, false + } + return f, true + default: + return 0, false + } +} + +func wave3K1Map(v any) map[string]any { + if m, ok := v.(map[string]any); ok { + return m + } + return nil +} + +func wave3K1Slice(v any) []any { + if s, ok := v.([]any); ok { + return s + } + return nil +} + +func wave3K1IntPtr(n int) *int { + v := n + return &v +} + +func wave3K1BoolPtr(b bool) *bool { + v := b + return &v +} + +func wave3K1AddLink(links *[]string, seen map[string]bool, raw, base string) { + u := SanitizeSchemaHTTPSURL(raw, base) + if u != "" && !seen[u] { + seen[u] = true + *links = append(*links, u) + } +} + +func wave3K1ExtractH1(rawHTML string) string { + inner, ok := findElementInnerLinearDeclHTML(rawHTML, "h1", nil, 0) + if !ok { + return "" + } + return wave3K1CleanText(inner) +} + +func wave3K1ExtractMeta(rawHTML, key string) string { + target := strings.ToLower(strings.TrimSpace(key)) + pos := 0 + for i := 0; i < 64 && pos < len(rawHTML); i++ { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "meta", nil, pos) + if !ok { + break + } + pos = open.openEnd + nameVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "name") + propVal, _ := getAttrValueLinearDeclHTML(open.attrStr, "property") + if strings.EqualFold(strings.TrimSpace(nameVal), target) || strings.EqualFold(strings.TrimSpace(propVal), target) { + if content, okC := getAttrValueLinearDeclHTML(open.attrStr, "content"); okC { + return wave3K1CleanText(content) + } + } + } + return "" +} + +func wave3K1ExtractByID(rawHTML, tagName, id string) string { + if strings.EqualFold(tagName, "div") { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "div", func(attrStr string) bool { + v, okID := getAttrValueLinearDeclHTML(attrStr, "id") + return okID && strings.EqualFold(strings.TrimSpace(v), id) + }, 0) + if !ok { + return "" + } + if inner, okB := extractBalancedDivAtDeclHTML(rawHTML, open.index); okB { + return inner + } + return "" + } + inner, ok := findElementInnerLinearDeclHTML(rawHTML, tagName, func(attrStr string) bool { + v, okID := getAttrValueLinearDeclHTML(attrStr, "id") + return okID && strings.EqualFold(strings.TrimSpace(v), id) + }, 0) + if !ok { + return "" + } + return inner +} + +func wave3K1ExtractByClassSub(rawHTML, tagName, classNeedle string) string { + needle := strings.ToLower(classNeedle) + if strings.EqualFold(tagName, "div") { + open, ok := findOpenTagLinearDeclHTML(rawHTML, "div", func(attrStr string) bool { + v, okC := getAttrValueLinearDeclHTML(attrStr, "class") + return okC && strings.Contains(strings.ToLower(v), needle) + }, 0) + if !ok { + return "" + } + if inner, okB := extractBalancedDivAtDeclHTML(rawHTML, open.index); okB { + return inner + } + return "" + } + inner, ok := findElementInnerLinearDeclHTML(rawHTML, tagName, func(attrStr string) bool { + v, okC := getAttrValueLinearDeclHTML(attrStr, "class") + return okC && strings.Contains(strings.ToLower(v), needle) + }, 0) + if !ok { + return "" + } + return inner +} + +// wave3K1MainRegion slices the primary
or content container so large Drupal/Gov +// headers and megamenus (e.g., nlrb.gov, ftc.gov, fincen.gov) are bypassed quickly. +func wave3K1MainRegion(rawHTML string) string { + if open, ok := findOpenTagLinearDeclHTML(rawHTML, "main", nil, 0); ok { + if _, closeEnd, okC := findCloseTagLinearDeclHTML(rawHTML, "main", open.openEnd); okC && closeEnd > open.openEnd { + return rawHTML[open.openEnd:closeEnd] + } + if open.openEnd < len(rawHTML) { + return rawHTML[open.openEnd:] + } + } + for _, id := range []string{"main-content", "main_content", "block-mainpagecontent", "content"} { + if frag := wave3K1ExtractByID(rawHTML, "div", id); frag != "" { + return frag + } + } + if art, okA := findElementInnerLinearDeclHTML(rawHTML, "article", nil, 0); okA && art != "" { + return art + } + return rawHTML +} + +func wave3K1FragToMD(frag, baseURL string) string { + if strings.TrimSpace(frag) == "" { + return "" + } + doc := ExtractHTMLDocumentFull(""+frag+"", FullExtractOptions{ + BaseURL: baseURL, + OnlyMainContent: false, + IncludeImages: false, + IsFragment: true, + SkipUniversalExtractors: true, + SkipPlainText: true, + }) + return strings.TrimSpace(doc.Markdown) +} + +func wave3K1ExtractLinks(frag, baseURL string, maxLinks int) []struct{ Text, URL string } { + matches := wave3K1RxHref.FindAllStringSubmatch(frag, maxLinks*3) + out := make([]struct{ Text, URL string }, 0, maxLinks) + seen := make(map[string]bool) + for _, m := range matches { + if len(out) >= maxLinks { + break + } + if len(m) < 3 { + continue + } + u := SanitizeSchemaHTTPSURL(stdhtml.UnescapeString(strings.TrimSpace(m[1])), baseURL) + if u == "" || seen[u] { + continue + } + txt := wave3K1CleanText(m[2]) + if txt == "" { + continue + } + seen[u] = true + out = append(out, struct{ Text, URL string }{Text: txt, URL: u}) + } + return out +} + +func wave3K1FinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + doc.Title = SanitizeScrapedMeta(doc.Title) + doc.Description = SanitizeScrapedMeta(doc.Description) + doc.Author = SanitizeScrapedMeta(doc.Author) + doc.PublishedTime = SanitizeSchemaPlainField(doc.PublishedTime, 64) + doc.Markdown = SanitizeScrapedMarkdown(escapeDangerousRawHTMLOutsideFencesDeclGo(doc.Markdown)) + if len(doc.Links) > 0 { + clean := make([]string, 0, len(doc.Links)) + seen := make(map[string]bool, len(doc.Links)) + for _, l := range doc.Links { + if u := SanitizeSchemaHTTPSURL(l, ""); u != "" && !seen[u] { + seen[u] = true + clean = append(clean, u) + } + } + doc.Links = clean + } + if len(doc.Records) > wave3K1MaxRecords { + total := len(doc.Records) + if doc.Total != nil && *doc.Total > total { + total = *doc.Total + } + doc.Records = doc.Records[:wave3K1MaxRecords] + doc.Total = wave3K1IntPtr(total) + doc.Returned = wave3K1IntPtr(len(doc.Records)) + doc.Truncated = wave3K1BoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } else if len(doc.Records) > 0 { + if doc.Returned == nil { + doc.Returned = wave3K1IntPtr(len(doc.Records)) + } + if doc.Total == nil { + doc.Total = wave3K1IntPtr(len(doc.Records)) + } + } + return doc +} + +func wave3K1CapRecords(recs []map[string]any, total int) ([]map[string]any, *int, *int, *bool) { + if len(recs) == 0 { + return nil, nil, nil, nil + } + if total < len(recs) { + total = len(recs) + } + if len(recs) > wave3K1MaxRecords { + recs = recs[:wave3K1MaxRecords] + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), wave3K1BoolPtr(true) + } + if total > len(recs) { + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), wave3K1BoolPtr(true) + } + return recs, wave3K1IntPtr(total), wave3K1IntPtr(len(recs)), nil +} + +func wave3K1HostFromURL(rawURL string) string { + u, err := url.Parse(strings.TrimSpace(rawURL)) + if err != nil { + return "" + } + return strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") +} + +func wave3K1MDCell(s string) string { + s = strings.ReplaceAll(s, "|", "\\|") + s = strings.ReplaceAll(s, "\n", " ") + return strings.TrimSpace(s) +} + +func wave3K1PickISODate(raw string) string { + raw = strings.TrimSpace(raw) + if len(raw) >= 10 && wave3K1RxISODate.MatchString(raw[:10]) { + return raw[:10] + } + return "" +} + +func wave3K1ExtractTables(frag, baseURL, source string, maxRows int) ([]map[string]any, [][]string, []string, []string) { + var headers []string + var rowsMD [][]string + var recs []map[string]any + var links []string + seen := make(map[string]bool) + + for _, tr := range wave3K1RxTRow.FindAllStringSubmatch(frag, maxRows+10) { + cells := wave3K1RxTCell.FindAllStringSubmatch(tr[1], 12) + if len(cells) < 2 { + continue + } + if len(headers) == 0 && strings.Contains(strings.ToLower(tr[1]), " 0 { + rawItems = []any{obj} + } + if t, ok := wave3K1FloatVal(obj["count"]); ok && t > 0 { + totalCount = int(t) + } else if t, ok := wave3K1FloatVal(obj["total"]); ok && t > 0 { + totalCount = int(t) + } + } else if arr := wave3K1Slice(parsed); arr != nil { + rawItems = arr + } + if len(rawItems) == 0 { + return nil, false + } + + var recs []map[string]any + var latestDate string + isOSHA := strings.Contains(strings.ToLower(origURL), "/osha/") + + for _, el := range rawItems { + m := wave3K1Map(el) + if m == nil { + continue + } + caseID := wave3K1Plain(wave3K1FirstNonEmpty( + wave3K1StringVal(m["case_id"]), + wave3K1StringVal(m["activity_nr"]), + wave3K1StringVal(m["inspection_nr"]), + wave3K1StringVal(m["id"]), + ), 48) + entity := wave3K1Plain(wave3K1FirstNonEmpty( + wave3K1StringVal(m["trade_nm"]), + wave3K1StringVal(m["legal_name"]), + wave3K1StringVal(m["estab_name"]), + wave3K1StringVal(m["establishment_name"]), + wave3K1StringVal(m["name"]), + ), 140) + city := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["city_nm"]), wave3K1StringVal(m["site_city"]), wave3K1StringVal(m["city"])), 64) + state := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["st_cd"]), wave3K1StringVal(m["site_state"]), wave3K1StringVal(m["state"])), 16) + naics := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["naics_code_description"]), wave3K1StringVal(m["naics_cd"]), wave3K1StringVal(m["naics_code"])), 120) + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty( + wave3K1StringVal(m["findings_end_date"]), + wave3K1StringVal(m["findings_start_date"]), + wave3K1StringVal(m["close_case_date"]), + wave3K1StringVal(m["open_date"]), + wave3K1StringVal(m["load_dt"]), + )) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + if caseID == "" && entity == "" { + continue + } + rec := map[string]any{ + "source": "dol-enforcement", + } + if caseID != "" { + rec["caseId"] = caseID + } + if entity != "" { + rec["entity"] = entity + } + if city != "" || state != "" { + rec["location"] = strings.Trim(city+", "+state, ", ") + } + if naics != "" { + rec["industry"] = naics + } + if dateStr != "" { + rec["date"] = dateStr + } + if amt, ok := wave3K1FloatVal(m["bw_atp_amt"]); ok { + rec["backWagesUsd"] = amt + } + if cmp, ok := wave3K1FloatVal(m["cmp_assd_cnt"]); ok { + rec["civilPenaltyUsd"] = cmp + } + if pen, ok := wave3K1FloatVal(m["total_current_penalty"]); ok { + rec["currentPenaltyUsd"] = pen + } + if vcnt, ok := wave3K1FloatVal(m["flsa_violtn_cnt"]); ok { + rec["flsaViolations"] = int(vcnt) + } + if inst, ok := wave3K1FloatVal(m["nr_instances"]); ok { + rec["instances"] = int(inst) + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + title := "DOL WHD Enforcement Records" + if isOSHA { + title = "DOL OSHA Inspection Records" + } + if len(capped) == 1 { + if ent := wave3K1StringVal(capped[0]["entity"]); ent != "" { + title += ": " + ent + } + } + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: U.S. Department of Labor Open Data API (`apiprod.dol.gov`)\n") + if latestDate != "" { + md.WriteString("- **Latest Record Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteString("\n| Case / Activity | Entity | Location | Date | Penalty / Back Wages |\n|---|---|---|---|---|\n") + for _, r := range capped { + amt := "-" + if bw, ok := wave3K1FloatVal(r["backWagesUsd"]); ok { + amt = "$" + strconv.FormatFloat(bw, 'f', 2, 64) + " back wages" + } else if pen, ok := wave3K1FloatVal(r["currentPenaltyUsd"]); ok { + amt = "$" + strconv.FormatFloat(pen, 'f', 2, 64) + " penalty" + } else if cmp, ok := wave3K1FloatVal(r["civilPenaltyUsd"]); ok { + amt = "$" + strconv.FormatFloat(cmp, 'f', 2, 64) + " CMP" + } + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["caseId"]), "-"))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["entity"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["location"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["date"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(amt)) + md.WriteString(" |\n") + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "U.S. Department of Labor enforcement records (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractDOLHTML(rawHTML, probeLower, baseURL, extractorID string) *DeclarativePostFetchResult { + // Reject empty React shell on data.dol.gov + if strings.Contains(probeLower, "data.dol.gov") && + (wave3K1HasEmptyTitleTag(probeLower) || strings.Contains(probeLower, `
`)) && + !strings.Contains(probeLower, " 0 && len(headers) >= 2 { + md.WriteString("\n## Inspection & Establishment Records\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #281 NLRB Cases HTML ───────────────────────────────────────────────────────────────────────── + +func wave3K1ExtractNLRBHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + if block := wave3K1ExtractByID(mainFrag, "div", "block-mainpagecontent"); block != "" { + mainFrag = block + } + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + fields := make(map[string]string) + for _, m := range wave3K1RxNLRBField.FindAllStringSubmatch(mainFrag, 10) { + if len(m) >= 3 { + k := strings.TrimSpace(m[1]) + v := wave3K1CleanText(m[2]) + if k != "" && v != "" { + fields[k] = v + } + } + } + if fields["Case Number"] == "" { + if cm := wave3K1RxNLRBCaseNo.FindString(baseURL + " " + mainFrag); cm != "" { + fields["Case Number"] = cm + } + } + + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "nlrb-cases", wave3K1MaxRecords) + seen := make(map[string]bool, len(links)) + for _, l := range links { + seen[l] = true + } + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + low := strings.ToLower(lk.URL) + if strings.Contains(low, "/case/") || strings.Contains(low, ".pdf") || strings.Contains(low, "/sites/default/files/") { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + if len(rowsMD) == 0 && strings.Contains(low, "/case/") { + recs = append(recs, map[string]any{"source": "nlrb-cases", "title": lk.Text, "url": lk.URL}) + } + } + } + + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if fields["Case Number"] == "" && len(recs) == 0 && len(strings.Fields(bodyMD)) < 15 { + return nil + } + // Reject generic "Cases" landing page without docket/case rows or case number + if strings.Contains(urlLower, "/cases-decisions/") && fields["Case Number"] == "" && len(recs) == 0 { + return nil + } + + if len(recs) == 0 { + rec := map[string]any{ + "source": "nlrb-cases", + "title": title, + "url": baseURL, + } + if cn := fields["Case Number"]; cn != "" { + rec["caseNumber"] = cn + } + if df := fields["Date Filed"]; df != "" { + rec["dateFiled"] = df + } + if st := fields["Status"]; st != "" { + rec["status"] = st + } + if loc := fields["Location"]; loc != "" { + rec["location"] = loc + } + if reg := fields["Region Assigned"]; reg != "" { + rec["region"] = reg + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: National Labor Relations Board (NLRB)\n") + for _, k := range []string{"Case Number", "Date Filed", "Status", "Location", "Region Assigned"} { + if v := fields[k]; v != "" { + md.WriteString("- **") + md.WriteString(k) + md.WriteString("**: ") + if k == "Case Number" { + md.WriteByte('`') + md.WriteString(v) + md.WriteByte('`') + } else { + md.WriteString(v) + } + md.WriteByte('\n') + } + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n## Docket & Case Table\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: fields["Date Filed"], + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #282 EEOC Litigation HTML ──────────────────────────────────────────────────────────────────── + +func wave3K1ExtractEEOCHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + if art, okA := findElementInnerLinearDeclHTML(mainFrag, "article", nil, 0); okA && art != "" { + mainFrag = art + } + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + subHead := wave3K1CleanText(wave3K1ExtractByClassSub(mainFrag, "div", "press-release__site-subheading")) + pubDate := wave3K1RxDateLike.FindString(subHead) + if pubDate == "" { + pubDate = wave3K1RxDateLike.FindString(wave3K1CleanText(mainFrag)) + } + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(strings.Fields(bodyMD)) < 12 { + return nil + } + settlement := wave3K1RxMoney.FindString(title + " " + bodyMD) + + var links []string + seen := make(map[string]bool) + var recs []map[string]any + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if strings.Contains(low, "/newsroom/") && len(lk.Text) >= 12 { + recs = append(recs, map[string]any{"source": "eeoc-litigation", "title": lk.Text, "url": lk.URL}) + } + } + if len(recs) == 0 { + rec := map[string]any{ + "source": "eeoc-litigation", + "title": title, + "url": baseURL, + } + if pubDate != "" { + rec["date"] = pubDate + } + if settlement != "" { + rec["monetaryRelief"] = settlement + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: U.S. Equal Employment Opportunity Commission (EEOC)\n") + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + if settlement != "" { + md.WriteString("- **Monetary Relief / Amount**: ") + md.WriteString(settlement) + md.WriteByte('\n') + } + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #283 FTC Cases & Proceedings HTML ──────────────────────────────────────────────────────────── + +func wave3K1ExtractFTCHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + + matterNum := "" + if mm := wave3K1RxFTCMatter.FindStringSubmatch(mainFrag); len(mm) >= 2 { + matterNum = wave3K1CleanText(mm[1]) + } + pubDate := wave3K1RxDateLike.FindString(wave3K1CleanText(wave3K1FirstNonEmpty( + wave3K1ExtractByClassSub(mainFrag, "div", "field--name-field-date"), + wave3K1ExtractByClassSub(mainFrag, "div", "field--name-field-last-updated"), + mainFrag, + ))) + + var links []string + seen := make(map[string]bool) + var recs []map[string]any + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 30) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + low := strings.ToLower(lk.URL) + if (strings.Contains(low, "/legal-library/browse/") || strings.Contains(low, ".pdf")) && len(lk.Text) >= 8 { + recs = append(recs, map[string]any{ + "source": "ftc-cases", + "title": lk.Text, + "url": lk.URL, + }) + } + } + + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + if len(recs) == 0 { + rec := map[string]any{"source": "ftc-cases", "title": title, "url": baseURL} + if matterNum != "" { + rec["matterNumber"] = matterNum + } + if pubDate != "" { + rec["date"] = pubDate + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency**: Federal Trade Commission (FTC)\n") + if matterNum != "" { + md.WriteString("- **Matter / Docket Number**: `") + md.WriteString(matterNum) + md.WriteString("`\n") + } + if pubDate != "" { + md.WriteString("- **Date**: ") + md.WriteString(pubDate) + md.WriteByte('\n') + } + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + PublishedTime: pubDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #284 FCC ECFS JSON & HTML ──────────────────────────────────────────────────────────────────── + +func wave3K1FormatFCCECFSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var rawFilings []any + totalCount := 0 + if obj := wave3K1Map(parsed); obj != nil { + if wave3K1IsGenericJSONError(obj) { + return nil, false + } + if f := wave3K1Slice(obj["filing"]); f != nil { + rawFilings = f + } else if f := wave3K1Slice(obj["filings"]); f != nil { + rawFilings = f + } else if obj["id_submission"] != nil { + rawFilings = []any{obj} + } + if agg := wave3K1Map(obj["aggregations"]); agg != nil { + if t, ok := wave3K1FloatVal(agg["total"]); ok && t > 0 { + totalCount = int(t) + } + } + if totalCount == 0 { + if t, ok := wave3K1FloatVal(obj["total"]); ok && t > 0 { + totalCount = int(t) + } + } + } else if arr := wave3K1Slice(parsed); arr != nil { + rawFilings = arr + } + if len(rawFilings) == 0 { + return nil, false + } + + var recs []map[string]any + var links []string + seen := make(map[string]bool) + var latestDate string + + for _, el := range rawFilings { + m := wave3K1Map(el) + if m == nil { + continue + } + subID := wave3K1Plain(m["id_submission"], 48) + if subID == "" { + continue + } + subType := "" + if st := wave3K1Map(m["submissiontype"]); st != nil { + subType = wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(st["description"]), wave3K1StringVal(st["short"])), 64) + } + status := "" + if fs := wave3K1Map(m["filingstatus"]); fs != nil { + status = wave3K1Plain(fs["description"], 48) + } + var filerNames []string + for _, fl := range wave3K1Slice(m["filers"]) { + if fm := wave3K1Map(fl); fm != nil { + if n := wave3K1Plain(fm["name"], 100); n != "" { + filerNames = append(filerNames, n) + } + } + } + var procNames []string + var procDesc string + var bureau string + for _, pr := range wave3K1Slice(m["proceedings"]) { + if pm := wave3K1Map(pr); pm != nil { + if pn := wave3K1Plain(pm["name"], 32); pn != "" { + procNames = append(procNames, pn) + } + if procDesc == "" { + procDesc = wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(pm["description_display"]), wave3K1StringVal(pm["description"])), 200) + } + if bureau == "" { + bureau = wave3K1Plain(pm["bureau_name"], 80) + } + } + } + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty( + wave3K1StringVal(m["date_disseminated"]), + wave3K1StringVal(m["date_submission"]), + wave3K1StringVal(m["date_received"]), + )) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + textExcerpt := wave3K1Plain(m["text_data"], 220) + for _, dm := range wave3K1Slice(m["documents"]) { + if docObj := wave3K1Map(dm); docObj != nil { + wave3K1AddLink(&links, seen, wave3K1StringVal(docObj["src"]), "https://www.fcc.gov") + } + } + filingURL := "https://www.fcc.gov/ecfs/filing/" + url.PathEscape(subID) + wave3K1AddLink(&links, seen, filingURL, "") + + rec := map[string]any{ + "source": "fcc-ecfs", + "submissionId": subID, + "url": filingURL, + } + if subType != "" { + rec["submissionType"] = subType + } + if status != "" { + rec["status"] = status + } + if len(filerNames) > 0 { + rec["filers"] = strings.Join(filerNames, "; ") + } + if len(procNames) > 0 { + rec["proceedings"] = strings.Join(procNames, ", ") + } + if bureau != "" { + rec["bureau"] = bureau + } + if dateStr != "" { + rec["date"] = dateStr + } + if textExcerpt != "" { + rec["excerpt"] = textExcerpt + } + recs = append(recs, rec) + } + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + title := "FCC ECFS Filings" + if p := wave3K1StringVal(capped[0]["proceedings"]); p != "" { + title += " — Docket " + p + } + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: FCC Electronic Comment Filing System (`publicapi.fcc.gov`)\n") + if latestDate != "" { + md.WriteString("- **Latest Disseminated Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteString("\n| Submission ID | Type | Proceeding(s) | Filer(s) | Date | Excerpt |\n|---|---|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1StringVal(r["submissionId"]))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["submissionType"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["proceedings"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["filers"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["date"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["excerpt"]), "-"))) + md.WriteString(" |\n") + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "FCC ECFS public filings (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractFCCECFSHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "fcc-ecfs", wave3K1MaxRecords) + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 15 { + return nil + } + if len(recs) == 0 { + recs = append(recs, map[string]any{"source": "fcc-ecfs", "title": title, "url": baseURL}) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **System**: FCC Electronic Comment Filing System (ECFS)\n") + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #285 FCC ULS JSON & HTML ───────────────────────────────────────────────────────────────────── + +func wave3K1FormatFCCULSJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + var recs []map[string]any + var links []string + seen := make(map[string]bool) + totalCount := 0 + var latestDate string + title := "FCC ULS Licensing Records" + + // Format 1: Socrata ULS row array (`opendata.fcc.gov/resource/*.json`) + if arr := wave3K1Slice(parsed); arr != nil { + if len(arr) == 0 { + return nil, false + } + for _, el := range arr { + m := wave3K1Map(el) + if m == nil { + continue + } + callSign := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_call_sign"]), wave3K1StringVal(m["call_sign"]), wave3K1StringVal(m["callsign"])), 32) + licName := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_license_name"]), wave3K1StringVal(m["license_name"]), wave3K1StringVal(m["lic_name"]), wave3K1StringVal(m["entity_name"])), 140) + frn := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_frns"]), wave3K1StringVal(m["frn"])), 32) + status := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_application_status"]), wave3K1StringVal(m["status_desc"]), wave3K1StringVal(m["license_status"])), 48) + city := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_location_city"]), wave3K1StringVal(m["city"])), 64) + state := wave3K1Plain(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_location_state"]), wave3K1StringVal(m["state"])), 16) + dateStr := wave3K1PickISODate(wave3K1FirstNonEmpty(wave3K1StringVal(m["u_status_date"]), wave3K1StringVal(m["grant_date"]), wave3K1StringVal(m["expired_date"]))) + if dateStr != "" && dateStr > latestDate { + latestDate = dateStr + } + if callSign == "" && licName == "" && frn == "" { + continue + } + rec := map[string]any{"source": "fcc-uls"} + if callSign != "" { + rec["callSign"] = callSign + } + if licName != "" { + rec["licensee"] = licName + } + if frn != "" { + rec["frn"] = frn + } + if status != "" { + rec["status"] = status + } + if city != "" || state != "" { + rec["location"] = strings.Trim(city+", "+state, ", ") + } + if dateStr != "" { + rec["date"] = dateStr + } + recs = append(recs, rec) + } + } else if obj := wave3K1Map(parsed); obj != nil { + if wave3K1IsGenericJSONError(obj) { + return nil, false + } + // Format 2a: Legacy data.fcc.gov License View (`Licenses.License[]`) + if licsObj := wave3K1Map(obj["Licenses"]); licsObj != nil { + if t, ok := wave3K1FloatVal(licsObj["totalRows"]); ok && t > 0 { + totalCount = int(t) + } + licArr := wave3K1Slice(licsObj["License"]) + if len(licArr) == 0 { + if single := wave3K1Map(licsObj["License"]); single != nil { + licArr = []any{single} + } + } + for _, el := range licArr { + m := wave3K1Map(el) + if m == nil { + continue + } + callSign := wave3K1Plain(m["callsign"], 32) + licName := wave3K1Plain(m["licName"], 140) + frn := wave3K1Plain(m["frn"], 32) + service := wave3K1Plain(m["serviceDesc"], 80) + status := wave3K1Plain(m["statusDesc"], 48) + expDate := wave3K1Plain(m["expiredDate"], 32) + detailURL := SanitizeSchemaHTTPSURL(wave3K1StringVal(m["licDetailURL"]), "https://wireless2.fcc.gov") + if detailURL != "" { + wave3K1AddLink(&links, seen, detailURL, "") + } + if callSign == "" && licName == "" { + continue + } + rec := map[string]any{ + "source": "fcc-uls", + "callSign": callSign, + "licensee": licName, + } + if frn != "" { + rec["frn"] = frn + } + if service != "" { + rec["service"] = service + } + if status != "" { + rec["status"] = status + } + if expDate != "" { + rec["expiredDate"] = expDate + } + if detailURL != "" { + rec["url"] = detailURL + } + recs = append(recs, rec) + } + } else if results := wave3K1Slice(obj["results"]); results != nil { + // Format 2b: Socrata Catalog API (`/api/catalog/v1`) + title = "FCC Open Data Catalog (ULS)" + if rs, ok := wave3K1FloatVal(obj["resultSetSize"]); ok && rs > 0 { + totalCount = int(rs) + } + for _, el := range results { + m := wave3K1Map(el) + if m == nil { + continue + } + resObj := wave3K1Map(m["resource"]) + if resObj == nil { + continue + } + id := wave3K1Plain(resObj["id"], 24) + name := wave3K1Plain(resObj["name"], 160) + desc := wave3K1Plain(resObj["description"], 200) + upd := wave3K1PickISODate(wave3K1StringVal(resObj["updatedAt"])) + if upd != "" && upd > latestDate { + latestDate = upd + } + dsURL := SanitizeSchemaHTTPSURL(wave3K1StringVal(m["link"]), "https://opendata.fcc.gov") + if dsURL == "" && id != "" { + dsURL = "https://opendata.fcc.gov/resource/" + id + ".json" + } + if dsURL != "" { + wave3K1AddLink(&links, seen, dsURL, "") + } + if id == "" && name == "" { + continue + } + recs = append(recs, map[string]any{ + "source": "fcc-uls", + "datasetId": id, + "name": name, + "description": desc, + "updatedAt": upd, + "url": dsURL, + }) + } + } else if viewID := wave3K1Plain(obj["id"], 24); viewID != "" && wave3K1Plain(obj["name"], 160) != "" { + // Format 2c: Socrata View Metadata (`/api/views/.json`) + name := wave3K1Plain(obj["name"], 160) + title = name + " (FCC Open Data)" + desc := wave3K1Plain(obj["description"], 300) + for _, col := range wave3K1Slice(obj["columns"]) { + if cm := wave3K1Map(col); cm != nil { + fn := wave3K1Plain(cm["fieldName"], 64) + if fn == "" || strings.HasPrefix(fn, ":@") { + continue + } + recs = append(recs, map[string]any{ + "source": "fcc-uls", + "datasetId": viewID, + "fieldName": fn, + "dataType": wave3K1Plain(cm["dataTypeName"], 32), + }) + } + } + if len(recs) == 0 { + recs = append(recs, map[string]any{"source": "fcc-uls", "datasetId": viewID, "name": name, "description": desc}) + } + } + } + + if len(recs) == 0 { + return nil, false + } + if totalCount < len(recs) { + totalCount = len(recs) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, totalCount) + + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Source**: FCC Universal Licensing System / Open Data (`") + md.WriteString(wave3K1FirstNonEmpty(wave3K1HostFromURL(origURL), "opendata.fcc.gov")) + md.WriteString("`)\n") + if latestDate != "" { + md.WriteString("- **Latest Date**: ") + md.WriteString(latestDate) + md.WriteByte('\n') + } + md.WriteByte('\n') + if _, isCatalog := capped[0]["datasetId"]; isCatalog { + md.WriteString("| ID | Name / Field | Detail | URL |\n|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1StringVal(r["datasetId"]))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["name"]), wave3K1StringVal(r["fieldName"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["dataType"]), wave3K1StringVal(r["description"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["url"]), "-"))) + md.WriteString(" |\n") + } + } else { + md.WriteString("| Call Sign | Licensee | FRN | Status | Service / Location |\n|---|---|---|---|---|\n") + for _, r := range capped { + md.WriteString("| `") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["callSign"]), "-"))) + md.WriteString("` | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["licensee"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["frn"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["status"]), "-"))) + md.WriteString(" | ") + md.WriteString(wave3K1MDCell(wave3K1FirstNonEmpty(wave3K1StringVal(r["service"]), wave3K1StringVal(r["location"]), "-"))) + md.WriteString(" |\n") + } + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: "FCC ULS licensing & dataset records (" + strconv.Itoa(len(capped)) + " shown).", + PublishedTime: latestDate, + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + }, true +} + +func wave3K1ExtractFCCULSHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "fcc-uls", wave3K1MaxRecords) + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + callSign := wave3K1RxCallSign.FindString(title + " " + bodyMD) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + if len(recs) == 0 { + rec := map[string]any{"source": "fcc-uls", "title": title, "url": baseURL} + if callSign != "" { + rec["callSign"] = callSign + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **System**: FCC Universal Licensing System (ULS)\n") + if callSign != "" { + md.WriteString("- **Call Sign**: `") + md.WriteString(callSign) + md.WriteString("`\n") + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #286 FERC eLibrary & NRC ADAMS Dockets HTML ────────────────────────────────────────────────── + +func wave3K1ExtractFERCNRCHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + h1 := wave3K1ExtractH1(rawHTML) + title := wave3K1FirstNonEmpty(h1, wave3K1ExtractMeta(rawHTML, "og:title"), wave3K1CleanText(extractTitleLinearQuick(rawHTML))) + if title == "" || wave3K1IsNegativeTitle(title) || wave3K1IsGenericTitle(title) { + return nil + } + agency := "NRC ADAMS" + if strings.Contains(urlLower, "ferc.gov") || strings.Contains(strings.ToLower(title), "ferc") || strings.Contains(strings.ToLower(title), "elibrary") { + agency = "FERC eLibrary" + } + mainFrag := wave3K1MainRegion(rawHTML) + recs, rowsMD, headers, links := wave3K1ExtractTables(mainFrag, baseURL, "ferc-nrc-dockets", wave3K1MaxRecords) + seen := make(map[string]bool, len(links)) + for _, l := range links { + seen[l] = true + } + for _, lk := range wave3K1ExtractLinks(mainFrag, baseURL, 25) { + wave3K1AddLink(&links, seen, lk.URL, baseURL) + } + bodyMD := wave3K1FragToMD(mainFrag, baseURL) + if len(recs) == 0 && len(strings.Fields(bodyMD)) < 12 { + return nil + } + accNo := wave3K1RxAccession.FindString(title + " " + bodyMD) + if len(recs) == 0 { + rec := map[string]any{ + "source": "ferc-nrc-dockets", + "agency": agency, + "title": title, + "url": baseURL, + } + if accNo != "" { + rec["accessionNumber"] = accNo + } + recs = append(recs, rec) + } + capped, totalPtr, retPtr, truncPtr := wave3K1CapRecords(recs, len(recs)) + var md strings.Builder + md.WriteString("# ") + md.WriteString(title) + md.WriteString("\n\n- **Agency / System**: ") + md.WriteString(agency) + md.WriteByte('\n') + if accNo != "" { + md.WriteString("- **Accession Number**: `") + md.WriteString(accNo) + md.WriteString("`\n") + } + if len(rowsMD) > 0 && len(headers) >= 2 { + md.WriteString("\n## Docket & Document Table\n\n| ") + for _, h := range headers { + md.WriteString(wave3K1MDCell(h)) + md.WriteString(" | ") + } + md.WriteString("\n|") + for range headers { + md.WriteString("---|") + } + md.WriteByte('\n') + for _, row := range rowsMD { + md.WriteString("| ") + for i := range headers { + val := "-" + if i < len(row) && row[i] != "" { + val = row[i] + } + md.WriteString(wave3K1MDCell(val)) + md.WriteString(" | ") + } + md.WriteByte('\n') + } + } + if bodyMD != "" { + md.WriteString("\n") + md.WriteString(bodyMD) + md.WriteByte('\n') + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: wave3K1ExtractMeta(rawHTML, "description"), + Markdown: md.String(), + Links: links, + Records: capped, + Total: totalPtr, + Returned: retPtr, + Truncated: truncPtr, + } +} + +// ── #287 CFTC, OCC & FinCEN Enforcement HTML ───────────────────────────────────────────────────── + +func wave3K1ExtractFinRegHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + mainFrag := wave3K1MainRegion(rawHTML) + agency := "Financial Regulator" + switch { + case strings.Contains(urlLower, "cftc.gov"): + agency = "Commodity Futures Trading Commission (CFTC)" + case strings.Contains(urlLower, "occ.gov"): + agency = "Office of the Comptroller of the Currency (OCC)" + case strings.Contains(urlLower, "fincen.gov"): + agency = "Financial Crimes Enforcement Network (FinCEN)" + } + + h1 := wave3K1FirstNonEmpty(wave3K1ExtractH1(mainFrag), wave3K1ExtractH1(rawHTML)) + ogTitle := wave3K1ExtractMeta(rawHTML, "og:title") + rawTitle := wave3K1CleanText(extractTitleLinearQuick(rawHTML)) + // On CFTC, the first

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

...

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

Federal Cybersecurity Governance

What GAO Found: agencies need stronger risk monitoring.

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

Access Denied

Reference #18.errors.edgesuite.net

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

Please enable JS and disable any ad blocker

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

Cost Estimate for H.R. 4120

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

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

Presidential Actions Briefing

Executive actions published by the White House press office.

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

Shop

Cart

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

Hospital Price Transparency (45 CFR 180)

Download our machine-readable standard charges file.

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

Hello World

Unrelated post.

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

SBA FOIA Quarterly Reports

DKAN dataset containing quarterly FOIA metrics.

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

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

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

Wage and Hour Division Enforcement Data

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

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

Establishment Search Results

Inspection history for industrial manufacturing establishments in Region 5.

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

403 ERROR

Generated by cloudfront (CloudFront).

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

Trader Joe's East Inc.

Case Number: 13-CA-394913

Date Filed: 09/15/2026

Status: Open

Region Assigned: Region 13, Chicago, Illinois

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

Cases

Search NLRB case filings.

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

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

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

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

Legal Library: Banned Debt Collectors

Matter Number: 192 3088

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

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

Access Denied

errors.edgesuite.net

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

ULS License WQVF475 - Electronic Innovations Inc.

Universal Licensing System active license details.

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

ADAMS Public Documents

Publicly available NRC regulatory records including ML26101A014.

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

OCC Bulletin 2023-17 | June 6, 2023

Third-Party Relationships: Interagency Guidance on Risk Management

Summary

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

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

Missing

Not available.

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

Inspector General Reports

Federal Offices of Inspector General audit and evaluation reports.

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

Bad request. Reference: abc123

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

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

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

Please enable JS and disable any ad blocker.

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

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

Hello World

Just a blog post.

" + for _, m := range modes { + if _, ok := RunWave3TradeHTMLMode(m, unrelated, "https://blog.example.org/post"); ok { + t.Fatalf("%s must not match unrelated host/content", m) + } + } +} + +func TestCensusIntlTradeEnrichment(t *testing.T) { + // 1. 2D intltrade matrix + intlMatrix := `[["CTY_CODE","CTY_NAME","I_COMMODITY","E_COMMODITY","GEN_VAL_MO","CON_VAL_MO","ALL_VAL_MO","time"],["5700","CHINA","871200","","12345678","12000000","12500000","2024-01"]]` + raw, ok := FormatWave2cEconJSONMode("census_json", []byte(intlMatrix), nil, "https://api.census.gov/data/timeseries/intltrade/imports/hs?get=CTY_CODE,CTY_NAME,I_COMMODITY,E_COMMODITY,GEN_VAL_MO,CON_VAL_MO,ALL_VAL_MO&time=2024-01") + if !ok { + t.Fatalf("census_json intltrade matrix failed") + } + doc := wave3TradeDecodeDoc(t, raw) + if !strings.Contains(doc.Title, "International Trade") || len(doc.Records) != 1 || doc.Records[0]["dataset"] != "intltrade" || doc.Records[0]["CTY_NAME"] != "CHINA" { + t.Fatalf("unexpected intltrade doc: %+v", doc) + } + if !strings.Contains(doc.Markdown, "ALL_VAL_MO") { + t.Fatalf("expected 7th intltrade column ALL_VAL_MO in table: %s", doc.Markdown) + } + + // 2. DCAT intltrade catalog JSON + dcat := `{"dataset":[{"title":"Time Series International Trade: Monthly U.S. Imports by HS Code","identifier":"https://api.census.gov/data/timeseries/intltrade/imports/hs","c_dataset":["timeseries","intltrade","imports","hs"],"c_variablesLink":"https://api.census.gov/data/timeseries/intltrade/imports/hs/variables.json","landingPage":"https://www.census.gov/foreign-trade/"}]}` + dRaw, dOK := FormatWave2cEconJSONMode("census_json", []byte(dcat), nil, "https://api.census.gov/data/timeseries/intltrade/imports/hs.json") + if !dOK { + t.Fatalf("census_json intltrade DCAT failed") + } + dDoc := wave3TradeDecodeDoc(t, dRaw) + if len(dDoc.Records) != 1 || dDoc.Records[0]["datasetPath"] != "timeseries/intltrade/imports/hs" { + t.Fatalf("expected datasetPath on intltrade DCAT record: %+v", dDoc) + } +} From 4799fa065621c87aedb94c71675444d5ed64cd98 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 04/14] 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) + } + } +} From 0ac145cd66fa336d11ff0d04583e8aa2421c2136 Mon Sep 17 00:00:00 2001 From: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:26:30 -0600 Subject: [PATCH 05/14] feat(adapters): add Wave 3 Batch B5 cycling & resale adapters (#341-#367) Implement Wave 3 / Round 2 Batch B5 (#341-#367, 27 adapters) across Categories O1, O2, and P: - Category O1 (Bike Components & Help, #341-#349): fox-ridefox, park-tool, ifixit, ebike-drive-systems, specialized-turbo-support, bicycle-tire-specs, wheel-hub-specs, bicycle-brake-docs, suspension-cockpit-compat - Category O2 (Bike & E-Bike OEMs, Geometry & Compliance, #350-#358): cargo-ebike-oems, us-ebike-oems, qbp-frame-brands, mtb-geometry-brands, geometrygeeks-99spokes, sheldon-brown, ul-product-iq, e-bike-state-laws, cpsc-ebike-incidents - Category P (Resale & Marketplaces, #359-#367): reverb, pinkbike-buysell, used-bikes-shopify, bicycle-blue-book, back-market-swappa, peer-resale-fashion, local-classifieds-marketplaces, creator-digital-stores, chairish-1stdibs Includes full real-adapter implementations for #354 (geometrygeeks-99spokes), #364 (peer-resale-fashion), and #365 (local-classifieds-marketplaces) with zero detect-only stubs, path/query-disjoint routing between #358 (cpsc-ebike-incidents) and cpsc-recalls on saferproducts.gov with cpsc_query_term parameter validation, zero Rule 7 cross-domain twin additions, and 452 compiled manifests with Go lazy HTML/JSON extractors, golden + >=4 negative shell fixtures, and telemetry/registry parity. Inner gates verified: gofmt, go vet, staticcheck, ZERO_CRYPTO_DEPS, targeted Go classify/extract/edgefetch-wasm tests, adapter:check (452 manifests), psl:check, tsc --noEmit, adapter:test (452 YAML, 413 fixtures, 10889 fuzz cases, max 57.38ms < 75ms), wasm-memory-budget (10.50 MiB linear memory, 257.2 KiB initHeapAlloc), and 8 targeted Hub suites (64/64). Signed-off-by: Brett Bartrum <17114576+bartrumb@users.noreply.github.com> --- cmd/edgefetch-wasm/reactor.go | 13 + hub/scripts/compile-manifests.mjs | 51 +- hub/scripts/run-tests.mjs | 1 + hub/src/extractors/declarative.ts | 37 +- hub/src/extractors/twin-companions.ts | 83 +- .../fixtures/adapters/back-market-swappa.json | 42 + .../fixtures/adapters/bicycle-blue-book.json | 36 + .../fixtures/adapters/bicycle-brake-docs.json | 37 + .../fixtures/adapters/bicycle-tire-specs.json | 38 + .../fixtures/adapters/cargo-ebike-oems.json | 36 + .../fixtures/adapters/chairish-1stdibs.json | 38 + .../adapters/cpsc-ebike-incidents.json | 37 + .../adapters/creator-digital-stores.json | 37 + .../fixtures/adapters/e-bike-state-laws.json | 37 + .../adapters/ebike-drive-systems.json | 38 + hub/test/fixtures/adapters/fox-ridefox.json | 37 + .../adapters/geometrygeeks-99spokes.json | 40 + hub/test/fixtures/adapters/ifixit.json | 38 + .../local-classifieds-marketplaces.json | 48 + .../adapters/mtb-geometry-brands.json | 36 + hub/test/fixtures/adapters/park-tool.json | 36 + .../adapters/peer-resale-fashion.json | 48 + .../fixtures/adapters/pinkbike-buysell.json | 36 + .../fixtures/adapters/qbp-frame-brands.json | 42 + hub/test/fixtures/adapters/reverb.json | 44 + hub/test/fixtures/adapters/sheldon-brown.json | 35 + .../adapters/specialized-turbo-support.json | 41 + .../adapters/suspension-cockpit-compat.json | 36 + hub/test/fixtures/adapters/ul-product-iq.json | 37 + hub/test/fixtures/adapters/us-ebike-oems.json | 36 + .../fixtures/adapters/used-bikes-shopify.json | 43 + .../fixtures/adapters/wheel-hub-specs.json | 38 + hub/test/wave3-b5-cycling-resale.test.ts | 760 +++++ internal/classify/content_state.go | 47 +- internal/classify/content_state_test.go | 121 + internal/extract/declarative.go | 42 +- internal/extract/declarative_test.go | 1 + .../extract/manifests/back-market-swappa.yaml | 27 + .../extract/manifests/bicycle-blue-book.yaml | 25 + .../extract/manifests/bicycle-brake-docs.yaml | 26 + .../extract/manifests/bicycle-tire-specs.yaml | 34 + .../extract/manifests/cargo-ebike-oems.yaml | 27 + .../extract/manifests/chairish-1stdibs.yaml | 28 + internal/extract/manifests/compiled.json | 2 +- .../manifests/cpsc-ebike-incidents.yaml | 79 + .../manifests/creator-digital-stores.yaml | 61 + .../extract/manifests/e-bike-state-laws.yaml | 26 + .../manifests/ebike-drive-systems.yaml | 29 + internal/extract/manifests/fox-ridefox.yaml | 19 + .../manifests/geometrygeeks-99spokes.yaml | 20 + internal/extract/manifests/ifixit.yaml | 70 + internal/extract/manifests/lemmy.yaml | 15 + .../local-classifieds-marketplaces.yaml | 37 + .../manifests/mtb-geometry-brands.yaml | 30 + internal/extract/manifests/park-tool.yaml | 18 + .../manifests/peer-resale-fashion.yaml | 35 + .../extract/manifests/pinkbike-buysell.yaml | 24 + .../extract/manifests/qbp-frame-brands.yaml | 23 + internal/extract/manifests/rdap.yaml | 26 + internal/extract/manifests/reverb.yaml | 75 + internal/extract/manifests/sheldon-brown.yaml | 19 + internal/extract/manifests/shopify.yaml | 8 + .../manifests/specialized-turbo-support.yaml | 18 + .../manifests/suspension-cockpit-compat.yaml | 26 + internal/extract/manifests/ul-product-iq.yaml | 19 + internal/extract/manifests/us-ebike-oems.yaml | 28 + .../extract/manifests/used-bikes-shopify.yaml | 82 + .../extract/manifests/wheel-hub-specs.yaml | 26 + internal/extract/platform_twins.go | 110 + internal/extract/wave3_cycling_components.go | 2257 +++++++++++++++ .../extract/wave3_cycling_components_test.go | 403 +++ internal/extract/wave3_cycling_oems.go | 2354 +++++++++++++++ internal/extract/wave3_cycling_oems_test.go | 417 +++ internal/extract/wave3_resale.go | 2544 +++++++++++++++++ internal/extract/wave3_resale_test.go | 502 ++++ 75 files changed, 11703 insertions(+), 69 deletions(-) create mode 100644 hub/test/fixtures/adapters/back-market-swappa.json create mode 100644 hub/test/fixtures/adapters/bicycle-blue-book.json create mode 100644 hub/test/fixtures/adapters/bicycle-brake-docs.json create mode 100644 hub/test/fixtures/adapters/bicycle-tire-specs.json create mode 100644 hub/test/fixtures/adapters/cargo-ebike-oems.json create mode 100644 hub/test/fixtures/adapters/chairish-1stdibs.json create mode 100644 hub/test/fixtures/adapters/cpsc-ebike-incidents.json create mode 100644 hub/test/fixtures/adapters/creator-digital-stores.json create mode 100644 hub/test/fixtures/adapters/e-bike-state-laws.json create mode 100644 hub/test/fixtures/adapters/ebike-drive-systems.json create mode 100644 hub/test/fixtures/adapters/fox-ridefox.json create mode 100644 hub/test/fixtures/adapters/geometrygeeks-99spokes.json create mode 100644 hub/test/fixtures/adapters/ifixit.json create mode 100644 hub/test/fixtures/adapters/local-classifieds-marketplaces.json create mode 100644 hub/test/fixtures/adapters/mtb-geometry-brands.json create mode 100644 hub/test/fixtures/adapters/park-tool.json create mode 100644 hub/test/fixtures/adapters/peer-resale-fashion.json create mode 100644 hub/test/fixtures/adapters/pinkbike-buysell.json create mode 100644 hub/test/fixtures/adapters/qbp-frame-brands.json create mode 100644 hub/test/fixtures/adapters/reverb.json create mode 100644 hub/test/fixtures/adapters/sheldon-brown.json create mode 100644 hub/test/fixtures/adapters/specialized-turbo-support.json create mode 100644 hub/test/fixtures/adapters/suspension-cockpit-compat.json create mode 100644 hub/test/fixtures/adapters/ul-product-iq.json create mode 100644 hub/test/fixtures/adapters/us-ebike-oems.json create mode 100644 hub/test/fixtures/adapters/used-bikes-shopify.json create mode 100644 hub/test/fixtures/adapters/wheel-hub-specs.json create mode 100644 hub/test/wave3-b5-cycling-resale.test.ts create mode 100644 internal/extract/manifests/back-market-swappa.yaml create mode 100644 internal/extract/manifests/bicycle-blue-book.yaml create mode 100644 internal/extract/manifests/bicycle-brake-docs.yaml create mode 100644 internal/extract/manifests/bicycle-tire-specs.yaml create mode 100644 internal/extract/manifests/cargo-ebike-oems.yaml create mode 100644 internal/extract/manifests/chairish-1stdibs.yaml create mode 100644 internal/extract/manifests/cpsc-ebike-incidents.yaml create mode 100644 internal/extract/manifests/creator-digital-stores.yaml create mode 100644 internal/extract/manifests/e-bike-state-laws.yaml create mode 100644 internal/extract/manifests/ebike-drive-systems.yaml create mode 100644 internal/extract/manifests/fox-ridefox.yaml create mode 100644 internal/extract/manifests/geometrygeeks-99spokes.yaml create mode 100644 internal/extract/manifests/ifixit.yaml create mode 100644 internal/extract/manifests/local-classifieds-marketplaces.yaml create mode 100644 internal/extract/manifests/mtb-geometry-brands.yaml create mode 100644 internal/extract/manifests/park-tool.yaml create mode 100644 internal/extract/manifests/peer-resale-fashion.yaml create mode 100644 internal/extract/manifests/pinkbike-buysell.yaml create mode 100644 internal/extract/manifests/qbp-frame-brands.yaml create mode 100644 internal/extract/manifests/reverb.yaml create mode 100644 internal/extract/manifests/sheldon-brown.yaml create mode 100644 internal/extract/manifests/specialized-turbo-support.yaml create mode 100644 internal/extract/manifests/suspension-cockpit-compat.yaml create mode 100644 internal/extract/manifests/ul-product-iq.yaml create mode 100644 internal/extract/manifests/us-ebike-oems.yaml create mode 100644 internal/extract/manifests/used-bikes-shopify.yaml create mode 100644 internal/extract/manifests/wheel-hub-specs.yaml create mode 100644 internal/extract/wave3_cycling_components.go create mode 100644 internal/extract/wave3_cycling_components_test.go create mode 100644 internal/extract/wave3_cycling_oems.go create mode 100644 internal/extract/wave3_cycling_oems_test.go create mode 100644 internal/extract/wave3_resale.go create mode 100644 internal/extract/wave3_resale_test.go diff --git a/cmd/edgefetch-wasm/reactor.go b/cmd/edgefetch-wasm/reactor.go index 31cd0d7..02f2b6b 100644 --- a/cmd/edgefetch-wasm/reactor.go +++ b/cmd/edgefetch-wasm/reactor.go @@ -2058,6 +2058,19 @@ func dispatchWasmRPC(rawReq []byte) (any, error) { } return map[string]any{"url": extract.ScrubTwinURLSecrets(p.URL)}, nil + case "check_unbounded_twin_guard": + var p struct { + URL string `json:"url"` + } + if err := json.Unmarshal(env.Payload, &p); err != nil { + return nil, err + } + blocked, msg := extract.CheckUnboundedTwinEndpointGuard(p.URL) + if !blocked { + return map[string]any{"blocked": false}, nil + } + return map[string]any{"blocked": true, "message": msg}, nil + case "refine_blocked_map": var p classify.RefineBlockedMapInput if err := json.Unmarshal(env.Payload, &p); err != nil { diff --git a/hub/scripts/compile-manifests.mjs b/hub/scripts/compile-manifests.mjs index 6316bde..b7051c4 100644 --- a/hub/scripts/compile-manifests.mjs +++ b/hub/scripts/compile-manifests.mjs @@ -385,6 +385,35 @@ export const VALID_HTML_MODES = new Set([ 'endoflife_html', 'caniuse_html', 'bundle_packagephobia_html', + // Wave 3 B5 Category O1 (Bike Components & Help #341-#349) + 'fox_ridefox_html', + 'park_tool_html', + 'ifixit_html', + 'ebike_drive_systems_html', + 'specialized_turbo_support_html', + 'bicycle_tire_specs_html', + 'wheel_hub_specs_html', + 'bicycle_brake_docs_html', + 'suspension_cockpit_compat_html', + // Wave 3 B5 Category O2 (Bike & E-Bike OEMs, Geometry & Compliance #350-#358) + 'cargo_ebike_oems_html', + 'us_ebike_oems_html', + 'qbp_frame_brands_html', + 'mtb_geometry_brands_html', + 'geometrygeeks_99spokes_html', + 'sheldon_brown_html', + 'ul_product_iq_html', + 'e_bike_state_laws_html', + 'cpsc_ebike_incidents_html', + // Wave 3 B5 Category P (Resale & Marketplaces #359-#367) + 'pinkbike_buysell_html', + 'used_bikes_shopify_html', + 'bicycle_blue_book_html', + 'back_market_swappa_html', + 'peer_resale_fashion_html', + 'local_classifieds_html', + 'creator_digital_stores_html', + 'chairish_1stdibs_html', ]); const pslDatPath = join(manifestsDir, 'public_suffix_list.dat'); @@ -588,6 +617,10 @@ const APPROVED_WILDCARD_DOMAIN_PATTERNS = new Set([ '*.narvar.com', '*.gorgias.help', '*.reamaze.com', + // Wave 3 B5 Category P + '*.craigslist.org', + '*.gumroad.com', + '*.lemonsqueezy.com', ]); const RESERVED_CORE_ATS_DOMAINS = new Set([ @@ -638,6 +671,18 @@ function isExemptSapAtsExactClaim(wildOwnerId, wildPat, exactOwnerId, exactDom) return wildOwnerId === 'sap-rmk-jibe' && wildPat === 'jobs.*.com' && APPROVED_SAP_ATS_EXACT_EXEMPTIONS.has(`${exactOwnerId}:${exactDom}`); } +const APPROVED_PATH_DISJOINT_EXACT_EXEMPTIONS = Object.freeze( + new Set([ + 'cpsc-ebike-incidents|cpsc-recalls:saferproducts.gov', + 'cpsc-ebike-incidents|cpsc-recalls:www.saferproducts.gov', + ]), +); + +function isExemptPathDisjointExactClaim(ownerA, ownerB, exactDom) { + const pair = [ownerA, ownerB].sort().join('|'); + return APPROVED_PATH_DISJOINT_EXACT_EXEMPTIONS.has(`${pair}:${exactDom}`); +} + const SCHEMA_KEYS = { manifest: new Set([ 'id', 'name', 'category', 'description', 'domains', 'universalEngine', 'exampleUrls', @@ -1284,7 +1329,11 @@ export function validateManifestSet(manifestEntries) { wildcardClaims.push({ id: obj.id, pattern: normDomain }); } else { const prevExactOwner = exactOwners.get(normDomain); - if (prevExactOwner && prevExactOwner !== obj.id) { + if ( + prevExactOwner && + prevExactOwner !== obj.id && + !isExemptPathDisjointExactClaim(prevExactOwner, obj.id, normDomain) + ) { throw new Error( `${label}: duplicate domain "${normDomain}" overlaps claim by manifest "${prevExactOwner}" (M2)`, ); diff --git a/hub/scripts/run-tests.mjs b/hub/scripts/run-tests.mjs index 9c2ab6c..67851ae 100644 --- a/hub/scripts/run-tests.mjs +++ b/hub/scripts/run-tests.mjs @@ -106,6 +106,7 @@ const suiteSpecs = [ ['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/wave3-b5-cycling-resale.test.ts', 'wave3-b5-cycling-resale.test.mjs'], ['test/mcp-part2-wave2e.test.ts', 'mcp-part2-wave2e.test.mjs'], ['test/wave2-security-fixes.test.ts', 'wave2-security-fixes.test.mjs'], ['test/hub-secrets-policy.test.ts', 'hub-secrets-policy.test.mjs'], diff --git a/hub/src/extractors/declarative.ts b/hub/src/extractors/declarative.ts index 37ea9d1..d25d31c 100644 --- a/hub/src/extractors/declarative.ts +++ b/hub/src/extractors/declarative.ts @@ -60,7 +60,8 @@ export type DeclarativeCharset = | 'leading_digits_slug' | 'brew_id' | 'cpsc_recall_num' - | 'hex'; + | 'hex' + | 'cpsc_query_term'; export type DeclarativeParamTransform = | 'lower' @@ -654,7 +655,11 @@ export type DeclarativeJsonMode = | 'endoflife_json' | 'web_compat_json' | 'bundlephobia_json' - | 'packagephobia_json'; + | 'packagephobia_json' + | 'ifixit_json' + | 'cpsc_ebike_incidents_json' + | 'reverb_listing_json' + | 'reverb_search_json'; export interface DeclarativeExtractSpec { commerceMode?: DeclarativeCommerceMode; @@ -1103,7 +1108,33 @@ export type DeclarativeHtmlMode = | 'apis_guru_html' | 'endoflife_html' | 'caniuse_html' - | 'bundle_packagephobia_html'; + | 'bundle_packagephobia_html' + | 'fox_ridefox_html' + | 'park_tool_html' + | 'ifixit_html' + | 'ebike_drive_systems_html' + | 'specialized_turbo_support_html' + | 'bicycle_tire_specs_html' + | 'wheel_hub_specs_html' + | 'bicycle_brake_docs_html' + | 'suspension_cockpit_compat_html' + | 'cargo_ebike_oems_html' + | 'us_ebike_oems_html' + | 'qbp_frame_brands_html' + | 'mtb_geometry_brands_html' + | 'geometrygeeks_99spokes_html' + | 'sheldon_brown_html' + | 'ul_product_iq_html' + | 'e_bike_state_laws_html' + | 'cpsc_ebike_incidents_html' + | 'pinkbike_buysell_html' + | 'used_bikes_shopify_html' + | 'bicycle_blue_book_html' + | 'back_market_swappa_html' + | 'peer_resale_fashion_html' + | 'local_classifieds_html' + | 'creator_digital_stores_html' + | 'chairish_1stdibs_html'; export interface DeclarativeHtmlRouteSpec { id?: string; diff --git a/hub/src/extractors/twin-companions.ts b/hub/src/extractors/twin-companions.ts index 012356a..cd52b13 100644 --- a/hub/src/extractors/twin-companions.ts +++ b/hub/src/extractors/twin-companions.ts @@ -33,7 +33,6 @@ export type FetchBoundedTwinFn = (params: { const ZENDESK_ARTICLE_TWIN_RE = /^https:\/\/([^/]+)\/api\/v2\/help_center\/([a-z0-9-]+)\/articles\/(\d+)\.json(?:\?|$)/i; const DOCKER_HUB_REPO_TWIN_RE = /^https:\/\/hub\.docker\.com\/v2\/repositories\/([^/]+)\/([^/]+)\/?$/i; const GOVINFO_DETAILS_PATH_RE = /^\/app\/details\/([A-Za-z0-9_.-]{4,120})(?:\/([A-Za-z0-9_.-]{4,160}))?\/?$/; -const SAFERPRODUCTS_RECALL_PATH_RE = /^\/restwebservices\/recall(?:\/.*)?$/i; const CPSC_RECALL_NUM_RE = /Recall\s*(?:Number|No\.?|#)\s*:?\s*(?:<[^>]{0,60}>|\s|\*|`)*([0-9]{2}-?[0-9]{2,5})/i; const ZENDESK_ATTACHMENTS_EXTRACT_SPEC: DeclarativeExtractSpec = { @@ -69,72 +68,36 @@ function stripLeadingMarkdownHeading(md: string): string { /** * Pre-fetch guard blocking unfiltered `saferproducts.gov/RestWebServices/Recall` dumps (> 25 MiB) - * that lack a valid bounded `RecallNumber` query parameter. + * that lack a valid bounded `RecallNumber`, `ProductType`, or `ProductDescription` query parameter. */ export function checkUnboundedTwinEndpointGuard( parsedUrl: URL, normalizedUrl: string, ): { status: number; via: string; body: Record } | null { const hostLower = parsedUrl.hostname.toLowerCase().replace(/\.+$/, ''); - if (hostLower === 'www.saferproducts.gov' || hostLower === 'saferproducts.gov') { - let decodedPath = parsedUrl.pathname; - try { - for (let pass = 0; pass < 2; pass++) { - const next = decodeURIComponent(decodedPath); - if (next === decodedPath) break; - decodedPath = next; - } - } catch { - return { - status: 422, - via: 'hub', - body: { - ok: false, - success: false, - url: normalizedUrl, - finalUrl: normalizedUrl, - outcome: 'skip', - code: 'UNBOUNDED_ENDPOINT_BLOCKED', - error: 'unbounded_endpoint_blocked', - message: - 'Malformed percent-encoding on saferproducts.gov endpoint.', - }, - }; - } - const normPath = decodedPath.replace(/[\\/]+/g, '/').toLowerCase(); - if (SAFERPRODUCTS_RECALL_PATH_RE.test(normPath)) { - const recallMatches: string[] = []; - for (const [k, v] of parsedUrl.searchParams.entries()) { - if (k.toLowerCase() === 'recallnumber') { - recallMatches.push(v.trim()); - } - } - const rawRecallNum = recallMatches.length === 1 ? recallMatches[0]! : ''; - const strippedRecallNum = rawRecallNum.replace(/-/g, ''); - if ( - recallMatches.length !== 1 || - !/^[A-Za-z0-9-]{2,24}$/.test(rawRecallNum) || - !/^[A-Za-z0-9]{2,24}$/.test(strippedRecallNum) - ) { - return { - status: 422, - via: 'hub', - body: { - ok: false, - success: false, - url: normalizedUrl, - finalUrl: normalizedUrl, - outcome: 'skip', - code: 'UNBOUNDED_ENDPOINT_BLOCKED', - error: 'unbounded_endpoint_blocked', - message: - 'Unfiltered saferproducts.gov/RestWebServices/Recall endpoint exceeds 25 MiB and requires a bounded RecallNumber query parameter (e.g., ?RecallNumber=24123).', - }, - }; - } - } + if (hostLower !== 'www.saferproducts.gov' && hostLower !== 'saferproducts.gov') { + return null; } - return null; + const guard = callCoreWasm<{ blocked: boolean; message?: string }>('check_unbounded_twin_guard', { + url: parsedUrl.toString(), + }); + if (!guard.blocked) return null; + return { + status: 422, + via: 'hub', + body: { + ok: false, + success: false, + url: normalizedUrl, + finalUrl: normalizedUrl, + outcome: 'skip', + code: 'UNBOUNDED_ENDPOINT_BLOCKED', + error: 'unbounded_endpoint_blocked', + message: + guard.message || + 'Unfiltered saferproducts.gov/RestWebServices/Recall endpoint exceeds 25 MiB and requires a bounded RecallNumber, ProductType, or ProductDescription query parameter (e.g., ?RecallNumber=24123).', + }, + }; } /** diff --git a/hub/test/fixtures/adapters/back-market-swappa.json b/hub/test/fixtures/adapters/back-market-swappa.json new file mode 100644 index 0000000..92e9e2e --- /dev/null +++ b/hub/test/fixtures/adapters/back-market-swappa.json @@ -0,0 +1,42 @@ +{ + "adapterId": "back-market-swappa", + "mode": "html", + "inputUrl": "https://swappa.com/buy/apple-iphone-14", + "mockPayload": "Apple iPhone 14 Used & Refurbished | Swappa

Apple iPhone 14 (Unlocked)

Storage128 GB
Display6.1-inch Super Retina XDR
", + "expectTitleIncludes": "Apple iPhone 14", + "expectMarkdownIncludes": [ + "Apple", + "349.00 - 499.00 USD", + "42", + "128 GB" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Product Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "backmarket-bot-need-challenge", + "status": 403, + "inputUrl": "https://www.backmarket.com/en-us/p/iphone-13-512gb-red-locked-verizon/f600a6e0-4627-4b38-b17d-efa60fed7568", + "payload": "{\"errors\":[{\"code\":\"bot-need-challenge\",\"message\":\"Forbidden\",\"challengePath\":\"/testchallengepage\"}]}" + }, + { + "name": "cloudflare-just-a-moment", + "status": 403, + "payload": "Just a moment...
Checking your browser...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bicycle-blue-book.json b/hub/test/fixtures/adapters/bicycle-blue-book.json new file mode 100644 index 0000000..7f5fbda --- /dev/null +++ b/hub/test/fixtures/adapters/bicycle-blue-book.json @@ -0,0 +1,36 @@ +{ + "adapterId": "bicycle-blue-book", + "mode": "html", + "inputUrl": "https://www.bicyclebluebook.com/value-guide/cyclocross/all-city/macho-king-ltd/2017", + "mockPayload": "2017 All-City Macho King LTD - Bicycle Blue Book

2017 All-City Macho King LTD

Original MSRP $3,399
Previous used estimate $1,084 - $1,115
Trade-in Value $680
12-month projected trend 8 %
", + "expectTitleIncludes": "2017 All-City Macho King LTD", + "expectMarkdownIncludes": [ + "$3399", + "$1084 - $1115", + "$680", + "8%" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

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

Something went wrong

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Bicycle Blue Book
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bicycle-brake-docs.json b/hub/test/fixtures/adapters/bicycle-brake-docs.json new file mode 100644 index 0000000..7084412 --- /dev/null +++ b/hub/test/fixtures/adapters/bicycle-brake-docs.json @@ -0,0 +1,37 @@ +{ + "adapterId": "bicycle-brake-docs", + "mode": "html", + "inputUrl": "https://magura.com/product/mt7-pro/", + "mockPayload": "MAGURA MT7 PRO disc brake

MAGURA MT7 PRO

4-piston Post Mount hydraulic caliper engineered for Royal Blood Mineral Oil, 180 mm / 203 mm / 220 mm Storm HC and MDR-P rotors (2.0 mm thickness).

ParameterSpecification
Pistons4-piston
Brake FluidRoyal Blood Mineral Oil
Recommended Rotors180 mm, 203 mm, 220 mm (2.0 mm)
Pad Type8.P / 8.R / 9.P
MAGURA MT7 Service & Bleed Manual PDF
", + "expectTitleIncludes": "MAGURA MT7 PRO", + "expectMarkdownIncludes": [ + "4-piston", + "Mineral Oil", + "203", + "2.0", + "Bleed Manual PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Server Error

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/bicycle-tire-specs.json b/hub/test/fixtures/adapters/bicycle-tire-specs.json new file mode 100644 index 0000000..7845c78 --- /dev/null +++ b/hub/test/fixtures/adapters/bicycle-tire-specs.json @@ -0,0 +1,38 @@ +{ + "adapterId": "bicycle-tire-specs", + "mode": "html", + "inputUrl": "https://www.maxxis.com/us/tire/minion-dhf/", + "mockPayload": "Minion DHF - Maxxis Tires

Minion DHF

Available in 60 TPI and 120 TPI casings with 3C MaxxTerra and 3C MaxxGrip compounds, Foldable bead, Tubeless Ready (TR). Reference SKU 25-145 excluded from ETRTO.

SizeETRTOTPIBeadWeightCompound
29 x 2.5063-62260 TPIFoldable1015 g3C MaxxTerra
27.5 x 2.5063-584120 TPIFoldable965 g3C MaxxGrip
", + "expectTitleIncludes": "Minion DHF", + "expectMarkdownIncludes": [ + "63-622", + "63-584", + "29 x 2.50", + "60 TPI", + "3C MaxxTerra", + "Foldable" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.maxxis.com/error", + "payload": "Kenda Tire | Corporate | Error

Error

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/cargo-ebike-oems.json b/hub/test/fixtures/adapters/cargo-ebike-oems.json new file mode 100644 index 0000000..41965b8 --- /dev/null +++ b/hub/test/fixtures/adapters/cargo-ebike-oems.json @@ -0,0 +1,36 @@ +{ + "adapterId": "cargo-ebike-oems", + "mode": "html", + "inputUrl": "https://www.ternbicycles.com/en/bikes/473/gsd", + "mockPayload": "GSD: Electric Cargo Bike | Tern Bicycles

Tern GSD S10

Bosch Cargo Line 85 Nm motor, DualBattery 1000 Wh capacity, GVWR: 200 kg (440 lbs).

SpecificationValue
Max Gross Vehicle Weight200 kg (440 lb)
Battery500 Wh / 1000 Wh
MotorBosch Cargo Line 85 Nm
", + "expectTitleIncludes": "Tern GSD S10", + "expectMarkdownIncludes": [ + "Tern", + "200 kg", + "Bosch Cargo Line", + "5499.00" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Error

Page unavailable.

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

Scheduled Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/chairish-1stdibs.json b/hub/test/fixtures/adapters/chairish-1stdibs.json new file mode 100644 index 0000000..cfb1f92 --- /dev/null +++ b/hub/test/fixtures/adapters/chairish-1stdibs.json @@ -0,0 +1,38 @@ +{ + "adapterId": "chairish-1stdibs", + "mode": "html", + "inputUrl": "https://www.1stdibs.com/furniture/seating/armchairs/pair-vintage-red-1970s-vico-magistretti-carimate-armchairs-chair-cassina-2pc/id-f_53095452/", + "mockPayload": "Pair of Vintage Red 1970s Vico Magistretti Carimate Armchairs | 1stDibs

Pair of Vintage Red 1970s Vico Magistretti Carimate Armchairs

Dimensions
H 29.5 in x W 23 in x D 19.5 in
Condition
Good vintage wear consistent with age and use
", + "expectTitleIncludes": "Vico Magistretti Carimate Armchairs", + "expectMarkdownIncludes": [ + "Cassina", + "3850.00 USD", + "3550.00", + "EUR", + "H 29.5 in x W 23 in x D 19.5 in", + "UsedCondition" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Chairish
" + } + ] +} diff --git a/hub/test/fixtures/adapters/cpsc-ebike-incidents.json b/hub/test/fixtures/adapters/cpsc-ebike-incidents.json new file mode 100644 index 0000000..796b116 --- /dev/null +++ b/hub/test/fixtures/adapters/cpsc-ebike-incidents.json @@ -0,0 +1,37 @@ +{ + "adapterId": "cpsc-ebike-incidents", + "mode": "twin", + "inputUrl": "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle", + "expectedFetchUrl": "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle", + "mockPayload": "[{\"RecallID\":11058,\"RecallNumber\":\"25110\",\"RecallDate\":\"2025-04-17T00:00:00\",\"LastPublishDate\":\"2025-04-17T00:00:00\",\"Title\":\"Buzz Bicycles Cerana T2 E-Trike Recall\",\"Description\":\"The lithium-ion battery pack can overheat and ignite, posing fire and burn hazards.\",\"URL\":\"https://www.cpsc.gov/Recalls/2025/Buzz-Bicycles-Recalls-Cerana-T2-Electric-Trikes\",\"Products\":[{\"Name\":\"Buzz Bicycles Cerana T2 E-Trike\",\"Type\":\"Electric Bicycles\"}],\"Hazards\":[{\"Name\":\"Fire and burn hazards from lithium-ion battery\"}],\"Injuries\":[{\"Name\":\"Two thermal runaway incidents reported\"}],\"Manufacturers\":[{\"Name\":\"Huffy Corporation\"}]}]", + "expectTitleIncludes": "CPSC SaferProducts Micromobility & E-Bike Reports (1 of 1)", + "expectMarkdownIncludes": [ + "25110", + "Buzz Bicycles Cerana T2 E-Trike", + "Huffy Corporation", + "Fire and burn hazards" + ], + "negativeCases": [ + { + "name": "empty-saferproducts-array", + "status": 200, + "payload": "[]" + }, + { + "name": "http-404", + "status": 404, + "payload": "{\"Message\":\"No HTTP resource was found that matches the request URI.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.saferproducts.gov/error", + "payload": "Error

Error

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

Service Unavailable

" + } + ] +} diff --git a/hub/test/fixtures/adapters/creator-digital-stores.json b/hub/test/fixtures/adapters/creator-digital-stores.json new file mode 100644 index 0000000..a3241ba --- /dev/null +++ b/hub/test/fixtures/adapters/creator-digital-stores.json @@ -0,0 +1,37 @@ +{ + "adapterId": "creator-digital-stores", + "mode": "html", + "inputUrl": "https://geoimgr.gumroad.com/l/geoimgr", + "mockPayload": "GeoImgr Pro License | Gumroad

GeoImgr Pro License

", + "expectTitleIncludes": "GeoImgr Pro License", + "expectMarkdownIncludes": [ + "GeoImgr", + "12.90 USD", + "4.8 (192 ratings)", + "TdVwG" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Product not found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "inputUrl": "https://payhip.com/b/sample", + "payload": "Attention Required! | Cloudflare

Sorry, you have been blocked

" + } + ] +} diff --git a/hub/test/fixtures/adapters/e-bike-state-laws.json b/hub/test/fixtures/adapters/e-bike-state-laws.json new file mode 100644 index 0000000..f3458ae --- /dev/null +++ b/hub/test/fixtures/adapters/e-bike-state-laws.json @@ -0,0 +1,37 @@ +{ + "adapterId": "e-bike-state-laws", + "mode": "html", + "inputUrl": "https://www.revisor.mn.gov/statutes/cite/169.222", + "mockPayload": "Sec. 169.222 MN Statutes

169.222 OPERATION OF BICYCLES AND ELECTRIC-ASSISTED BICYCLES

Under Minn. Stat. § 169.222, a Class 1 electric-assisted bicycle provides assistance only when the rider is pedaling up to 20 mph; a Class 2 provides throttle-actuated assistance up to 20 mph; a Class 3 provides assistance up to 28 mph with a 750W maximum motor.

", + "expectTitleIncludes": "169.222", + "expectMarkdownIncludes": [ + "Minnesota", + "Class 1", + "Class 3", + "https://www.law.cornell.edu/cfr/text/16/part-1512", + "https://legiscan.com/MN/legislation" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Error Page

Page Not Found

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

Error Page

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ebike-drive-systems.json b/hub/test/fixtures/adapters/ebike-drive-systems.json new file mode 100644 index 0000000..a799c50 --- /dev/null +++ b/hub/test/fixtures/adapters/ebike-drive-systems.json @@ -0,0 +1,38 @@ +{ + "adapterId": "ebike-drive-systems", + "mode": "html", + "inputUrl": "https://mahle-smartbike.com/x20/", + "mockPayload": "X20 System | MAHLE SmartBike Systems

X20 System

The MAHLE X20 drive system delivers 55 Nm torque from a 250 W rear hub motor paired with a 236 Wh or 350 Wh internal battery at 36 V.

SpecificationValue
Max Torque55 Nm
Rated Power250 W
Battery Capacity236 Wh / 350 Wh
System Weight3.2 kg
X20 User Manual PDF
", + "expectTitleIncludes": "X20 System", + "expectMarkdownIncludes": [ + "55", + "250", + "236", + "3.2 kg", + "X20 User Manual PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Error

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

This site is down for maintenance. Please check back later.

" + }, + { + "name": "empty-aura-spa-shell", + "status": 200, + "inputUrl": "https://www.qore-system.de/", + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/fox-ridefox.json b/hub/test/fixtures/adapters/fox-ridefox.json new file mode 100644 index 0000000..736d373 --- /dev/null +++ b/hub/test/fixtures/adapters/fox-ridefox.json @@ -0,0 +1,37 @@ +{ + "adapterId": "fox-ridefox", + "mode": "html", + "inputUrl": "https://tech.ridefox.com/bike/search/code/DKC6", + "mockPayload": "2019 FACTORY SERIES FLOAT | Bike Tech Help Center | FOX

2019 FACTORY SERIES FLOAT

Tune ID: DKC6 - 36, K, FLOAT, 29in, F-S, 160, Grip 2, HSC, LSC, HSR, LSR, Matte Blk, Kabolt 110, 44mm Rake.

Model Year
2019
Chassis
36 Factory Series
Travel
160 mm
Damper
GRIP2
Service Interval
Every 125 hours or annually
Rider Weight (lbs)Air Pressure (psi)LSR Clicks Out
160-170828
170-180877
36mm Bath Oil Volume Chart PDF
", + "expectTitleIncludes": "2019 FACTORY SERIES FLOAT", + "expectMarkdownIncludes": [ + "DKC6", + "GRIP2", + "125 hours", + "82", + "36mm Bath Oil Volume Chart PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found | FOX

404 Not Found

Tune code not found.

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://tech.ridefox.com/error", + "payload": "Error | FOX

Error

An unexpected error occurred.

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

Temporarily Unavailable

FOX Bike Tech Help Center is down for maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "FOX
" + } + ] +} diff --git a/hub/test/fixtures/adapters/geometrygeeks-99spokes.json b/hub/test/fixtures/adapters/geometrygeeks-99spokes.json new file mode 100644 index 0000000..14a31e3 --- /dev/null +++ b/hub/test/fixtures/adapters/geometrygeeks-99spokes.json @@ -0,0 +1,40 @@ +{ + "adapterId": "geometrygeeks-99spokes", + "mode": "html", + "inputUrl": "https://geometrygeeks.bike/bike/specialized-stumpjumper-evo-2021/", + "mockPayload": "Geometry Details: Specialized Stumpjumper EVO 2021

Specialized Stumpjumper EVO 2021

MetricS2S3S4
Reach425448475
Stack611620629
Head Angle64.564.564.5
Seat Angle76.976.976.9
Chainstay438438443
Wheelbase119212181253
", + "expectTitleIncludes": "Specialized Stumpjumper EVO 2021", + "expectMarkdownIncludes": [ + "Reach", + "448", + "Stack", + "620", + "Wheelbase", + "1253" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Page Not Found

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

Error

" + }, + { + "name": "cloudflare-waf-block", + "status": 403, + "inputUrl": "https://99spokes.com/bikes/specialized/2024/stumpjumper-comp", + "payload": "Attention Required! | Cloudflare

Sorry, you have been blocked

You are unable to access 99spokes.com

" + }, + { + "name": "empty-next-spa-shell", + "status": 200, + "inputUrl": "https://99spokes.com/bikes/specialized/2024/stumpjumper-comp", + "payload": "99 Spokes
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ifixit.json b/hub/test/fixtures/adapters/ifixit.json new file mode 100644 index 0000000..599d2ab --- /dev/null +++ b/hub/test/fixtures/adapters/ifixit.json @@ -0,0 +1,38 @@ +{ + "adapterId": "ifixit", + "mode": "twin", + "inputUrl": "https://www.ifixit.com/api/2.0/guides/41537", + "expectedFetchUrl": "https://www.ifixit.com/api/2.0/guides/41537", + "mockPayload": "{\"guideid\":41537,\"title\":\"Bicycle Chain Replacement\",\"category\":\"Bicycle\",\"subject\":\"Bicycle Chain\",\"difficulty\":\"Moderate\",\"time_required\":\"15 - 30 minutes\",\"summary\":\"Replace a worn bicycle chain using a chain tool and master link pliers.\",\"url\":\"https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537\",\"tools\":[{\"text\":\"Chain Tool\"},{\"text\":\"Master Link Pliers\"}],\"parts\":[{\"text\":\"11-Speed Bicycle Chain\"}],\"steps\":[{\"stepid\":1,\"title\":\"Remove Old Chain\",\"lines\":[{\"text_raw\":\"Shift onto the smallest cog and open the quick link with master link pliers.\"}]},{\"stepid\":2,\"title\":\"Size and Install New Chain\",\"lines\":[{\"text_raw\":\"Match link count to the old chain and thread through the derailleur cage.\"}]}]}", + "expectTitleIncludes": "Bicycle Chain Replacement", + "expectMarkdownIncludes": [ + "41537", + "Moderate", + "Chain Tool", + "11-Speed Bicycle Chain", + "Remove Old Chain" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":true,\"message\":\"Guide not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.ifixit.com/error", + "payload": "404 Not Found

Not Found

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/local-classifieds-marketplaces.json b/hub/test/fixtures/adapters/local-classifieds-marketplaces.json new file mode 100644 index 0000000..4351272 --- /dev/null +++ b/hub/test/fixtures/adapters/local-classifieds-marketplaces.json @@ -0,0 +1,48 @@ +{ + "adapterId": "local-classifieds-marketplaces", + "mode": "html", + "inputUrl": "https://www.craigslist.org/view/d/san-francisco-wahoo-kickr-core-bike/rv3daGwPjNSovN5fQ4JpLk", + "mockPayload": "Wahoo KICKR Core Direct Drive Smart Trainer - bicycles - craigslist

Wahoo KICKR Core Direct Drive Smart Trainer - $520

QR Code Link to This Post\nLightly used Wahoo KICKR Core smart trainer with 11-speed cassette included.

condition: like newmake / manufacturer: Wahoo

", + "expectTitleIncludes": "Wahoo KICKR Core", + "expectMarkdownIncludes": [ + "520.00 USD", + "San Francisco, CA", + "condition: like new", + "11-speed cassette" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

This posting has been deleted

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "craigslist-blocked", + "status": 403, + "payload": "blocked

Your request has been blocked.

" + }, + { + "name": "facebook-login-wall", + "status": 200, + "inputUrl": "https://www.facebook.com/marketplace/sanfrancisco/bicycles", + "payload": "Log in to Facebook

Log in to Facebook

" + }, + { + "name": "facebook-empty-csr-shell", + "status": 200, + "inputUrl": "https://www.facebook.com/marketplace/sanfrancisco/bicycles", + "payload": "Bicycles for sale in San Francisco, California | Facebook Marketplace
" + } + ] +} diff --git a/hub/test/fixtures/adapters/mtb-geometry-brands.json b/hub/test/fixtures/adapters/mtb-geometry-brands.json new file mode 100644 index 0000000..1dd2c9f --- /dev/null +++ b/hub/test/fixtures/adapters/mtb-geometry-brands.json @@ -0,0 +1,36 @@ +{ + "adapterId": "mtb-geometry-brands", + "mode": "html", + "inputUrl": "https://www.ibiscycles.com/bikes/ripmo", + "mockPayload": "Ripmo V3 | Ibis Cycles

Ibis Ripmo V3

GeometrySMMDLGXL
Reach450475500525
Stack615624633642
Head Tube Angle64.564.564.564.5
Wheelbase1205123312611290
", + "expectTitleIncludes": "Ibis Ripmo V3", + "expectMarkdownIncludes": [ + "Ibis", + "Reach", + "475", + "Wheelbase" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404

404

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

Error

" + }, + { + "name": "maintenance-page", + "status": 503, + "payload": "Site Maintenance

Under Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/park-tool.json b/hub/test/fixtures/adapters/park-tool.json new file mode 100644 index 0000000..6124e7a --- /dev/null +++ b/hub/test/fixtures/adapters/park-tool.json @@ -0,0 +1,36 @@ +{ + "adapterId": "park-tool", + "mode": "html", + "inputUrl": "https://www.parktool.com/en-us/blog/repair-help/rear-derailleur-adjustment", + "mockPayload": "Rear Derailleur Adjustment | Park Tool

Rear Derailleur Adjustment

  • Phillips Screwdriver
  • 4mm / 5mm Hex Wrench
  • DAG-3 Derailleur Hanger Alignment Gauge
  1. Shift the chain to the smallest rear cog and release cable tension.
  2. Adjust the H-limit screw until the upper pulley aligns with the outer edge of the smallest cog.
  3. Attach the cable, set barrel adjuster tension, and test indexing across the cassette.
", + "expectTitleIncludes": "Rear Derailleur Adjustment", + "expectMarkdownIncludes": [ + "Tools Needed", + "DAG-3 Derailleur Hanger Alignment Gauge", + "Repair Steps", + "H-limit screw" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found | Park Tool

Page Not Found

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

Error

Something went wrong.

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

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

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/peer-resale-fashion.json b/hub/test/fixtures/adapters/peer-resale-fashion.json new file mode 100644 index 0000000..bf6b58b --- /dev/null +++ b/hub/test/fixtures/adapters/peer-resale-fashion.json @@ -0,0 +1,48 @@ +{ + "adapterId": "peer-resale-fashion", + "mode": "html", + "inputUrl": "https://poshmark.com/listing/ANTHROPOLOGIE-Saturday-Sunday-Annika-2Piece-Waffle-Knit-Lounge-Set-2X-6a67deaeb6af921bbc5288a4", + "mockPayload": "Anthropologie Saturday Sunday Waffle Knit Lounge Set | Poshmark

Anthropologie Saturday Sunday Waffle Knit Lounge Set

", + "expectTitleIncludes": "Anthropologie Saturday Sunday Waffle Knit Lounge Set", + "expectMarkdownIncludes": [ + "Anthropologie", + "2X", + "48.00 USD", + "closet_finds_co" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Item not found

Item not found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "depop-forbidden", + "status": 403, + "inputUrl": "https://www.depop.com/category/mens/", + "payload": "Forbidden - Depop

403 Forbidden

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "inputUrl": "https://www.mercari.com/us/category/1/", + "payload": "Just a moment...
Checking your browser...
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Poshmark
" + } + ] +} diff --git a/hub/test/fixtures/adapters/pinkbike-buysell.json b/hub/test/fixtures/adapters/pinkbike-buysell.json new file mode 100644 index 0000000..c8f6c4c --- /dev/null +++ b/hub/test/fixtures/adapters/pinkbike-buysell.json @@ -0,0 +1,36 @@ +{ + "adapterId": "pinkbike-buysell", + "mode": "html", + "inputUrl": "https://www.pinkbike.com/buysell/3890123/", + "mockPayload": "2023 Santa Cruz Bronson CC X01 - Pinkbike BuySell

2023 Santa Cruz Bronson CC X01

$4,250 USD
Frame Size
Large
Wheel Size
Mullet 29/27.5
Location
Bellingham, WA
", + "expectTitleIncludes": "2023 Santa Cruz Bronson CC X01", + "expectMarkdownIncludes": [ + "4250.00 USD", + "UsedCondition", + "trailrider_pnw", + "Bellingham, WA" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Listing not found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "cloudflare-challenge", + "status": 403, + "payload": "Attention Required! | Cloudflare

Sorry, you have been blocked

Cloudflare Ray ID: 8a1b2c3d

" + } + ] +} diff --git a/hub/test/fixtures/adapters/qbp-frame-brands.json b/hub/test/fixtures/adapters/qbp-frame-brands.json new file mode 100644 index 0000000..b7f3115 --- /dev/null +++ b/hub/test/fixtures/adapters/qbp-frame-brands.json @@ -0,0 +1,42 @@ +{ + "adapterId": "qbp-frame-brands", + "mode": "html", + "inputUrl": "https://www.salsacycles.com/products/fargo-32-steel-frameset", + "mockPayload": "Fargo Steel Frameset | Salsa Cycles

Fargo Steel Frameset

GeometrySMMDLG
Reach (mm)375385395
Stack (mm)610625640
Head Tube Angle69.069.069.0
Chainstay (mm)455455455
Wheelbase (mm)108811011114
", + "expectTitleIncludes": "Fargo Steel Frameset", + "expectMarkdownIncludes": [ + "Salsa", + "Reach (mm)", + "385", + "Wheelbase (mm)" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Uh Oh! Page not found

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

Error

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

Scheduled Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + }, + { + "name": "retired-brand-minimal-notice", + "status": 410, + "finalUrl": "https://www.retiredbrandresources.com/all-city", + "payload": "All-City Cycles | Retired Brand Resources

All-City Cycles

This brand has been retired. Warranty support resources remain available.

" + } + ] +} diff --git a/hub/test/fixtures/adapters/reverb.json b/hub/test/fixtures/adapters/reverb.json new file mode 100644 index 0000000..bebbe27 --- /dev/null +++ b/hub/test/fixtures/adapters/reverb.json @@ -0,0 +1,44 @@ +{ + "adapterId": "reverb", + "mode": "twin", + "inputUrl": "https://reverb.com/item/36356670-fender-stratocaster-knob-set-black", + "expectedFetchUrl": "https://api.reverb.com/api/listings/36356670", + "mockPayload": "{\"id\":36356670,\"make\":\"Fender\",\"model\":\"Stratocaster Knob Set\",\"finish\":\"Black\",\"year\":\"2023\",\"title\":\"Fender Stratocaster Knob Set - Black\",\"shop_name\":\"Tone Vault Music\",\"description\":\"

Genuine Fender Stratocaster control knob set in black.

\",\"condition\":{\"display_name\":\"Brand New\"},\"price\":{\"amount\":\"14.99\",\"currency\":\"USD\",\"display\":\"$14.99\"},\"shipping\":{\"rate\":{\"amount\":\"5.00\",\"currency\":\"USD\"}},\"categories\":[{\"full_name\":\"Parts / Knobs\"}],\"inventory\":8,\"state\":{\"slug\":\"live\",\"description\":\"Live\"},\"upc\":\"885978102037\",\"location\":{\"display_location\":\"Nashville, TN, United States\"},\"_links\":{\"web\":{\"href\":\"https://reverb.com/item/36356670-fender-stratocaster-knob-set-black\"}}}", + "expectTitleIncludes": "Fender Stratocaster Knob Set", + "expectMarkdownIncludes": [ + "36356670", + "Fender", + "Brand New", + "14.99 USD", + "Tone Vault Music", + "885978102037" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"message\":\"Listing not found\"}" + }, + { + "name": "missing-accept-version-400", + "status": 400, + "payload": "{\"message\":\"Accept-Version header is required\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://reverb.com/error", + "payload": "Error

Something went wrong

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Reverb
" + } + ] +} diff --git a/hub/test/fixtures/adapters/sheldon-brown.json b/hub/test/fixtures/adapters/sheldon-brown.json new file mode 100644 index 0000000..559da0b --- /dev/null +++ b/hub/test/fixtures/adapters/sheldon-brown.json @@ -0,0 +1,35 @@ +{ + "adapterId": "sheldon-brown", + "mode": "html", + "inputUrl": "https://www.sheldonbrown.com/gloss_e-f.html", + "mockPayload": "Sheldon Brown's Bicycle Glossary E - F

Sheldon Brown's Bicycle Glossary E - F

ETRTO
European Tyre and Rim Technical Organisation sizing such as 37-622 (700x35c).
Fixed Gear
A drivetrain with no freewheel mechanism so pedals turn whenever the rear wheel turns.
ISO / ETRTOTraditional SizeBead Seat Diameter
25-622700 x 25C622 mm
37-622700 x 35C622 mm
", + "expectTitleIncludes": "Sheldon Brown", + "expectMarkdownIncludes": [ + "ETRTO", + "622 mm", + "Fixed Gear" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/specialized-turbo-support.json b/hub/test/fixtures/adapters/specialized-turbo-support.json new file mode 100644 index 0000000..88fa5de --- /dev/null +++ b/hub/test/fixtures/adapters/specialized-turbo-support.json @@ -0,0 +1,41 @@ +{ + "adapterId": "specialized-turbo-support", + "mode": "html", + "inputUrl": "https://support.specialized.com/kb/sp_en-us/turbo-battery-diagnostics", + "mockPayload": "Turbo Battery Diagnostics | Specialized Rider Care

Turbo Battery Diagnostics

Check the MasterMind TCU display and battery LED bar to identify fault codes on Turbo Levo and Turbo Vado models.

LED CodeMeaningAction
Red Flashing (Top)Communication FaultInspect Rosenberger harness connector
Amber SolidThermal ProtectionAllow battery to reach 10-40C
", + "expectTitleIncludes": "Turbo Battery Diagnostics", + "expectMarkdownIncludes": [ + "MasterMind TCU", + "Communication Fault", + "Rosenberger harness" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Article Not Found

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

Error

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

Service Unavailable

Down for maintenance.

" + }, + { + "name": "egain-unhydrated-js-shell", + "status": 200, + "inputUrl": "https://support.specialized.com/kb/sp_en-us/home", + "payload": "

...

" + }, + { + "name": "api-gateway-403", + "status": 403, + "payload": "{\"message\":\"Missing Authentication Token\"}" + } + ] +} diff --git a/hub/test/fixtures/adapters/suspension-cockpit-compat.json b/hub/test/fixtures/adapters/suspension-cockpit-compat.json new file mode 100644 index 0000000..c2e6a7e --- /dev/null +++ b/hub/test/fixtures/adapters/suspension-cockpit-compat.json @@ -0,0 +1,36 @@ +{ + "adapterId": "suspension-cockpit-compat", + "mode": "html", + "inputUrl": "https://www.canecreek.com/collections/headsets", + "mockPayload": "Headsets & SHIS Fitment | Cane Creek

Cane Creek Headsets & SHIS Compatibility

Use SHIS upper and lower codes (IS41/28.6, ZS44/28.6, ZS56/40, IS52/40) to match tapered 1.5 steerers and 31.8 mm / 35 mm stems.

SHIS CodeTypeHead Tube ID (mm)
IS41/28.6Integrated Upper41.1
ZS44/28.6ZeroStack Upper44.0
ZS56/40ZeroStack Lower56.0
SHIS Headset Fitment Guide PDF
", + "expectTitleIncludes": "Cane Creek Headsets", + "expectMarkdownIncludes": [ + "IS41", + "ZS44", + "ZS56", + "SHIS Headset Fitment Guide PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Error

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

Temporarily Unavailable

Down for maintenance.

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ul-product-iq.json b/hub/test/fixtures/adapters/ul-product-iq.json new file mode 100644 index 0000000..adc04ca --- /dev/null +++ b/hub/test/fixtures/adapters/ul-product-iq.json @@ -0,0 +1,37 @@ +{ + "adapterId": "ul-product-iq", + "mode": "html", + "inputUrl": "https://iq.ul.com/", + "mockPayload": "UL iQ Certification Directory

UL iQ Micromobility Certifications

Certified to ANSI/CAN/UL 2849 and UL 2271 under File E512345 (CCN: QGNS).

File NumberStandardCompanyRating
E512345UL 2849Acme Drive Systems48V E-Bike System
E529876UL 2271Acme Battery Co500 Wh Li-Ion Pack
", + "expectTitleIncludes": "UL iQ", + "expectMarkdownIncludes": [ + "UL 2849", + "UL 2271", + "E512345", + "QGNS" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Application Error

" + }, + { + "name": "ul-prospector-blocked", + "status": 403, + "inputUrl": "https://productiq.ulprospector.com/", + "payload": "Warning: Blocked - UL Prospector

Access Denied

Warning: Blocked - UL Prospector

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading...
" + } + ] +} diff --git a/hub/test/fixtures/adapters/us-ebike-oems.json b/hub/test/fixtures/adapters/us-ebike-oems.json new file mode 100644 index 0000000..7fdf495 --- /dev/null +++ b/hub/test/fixtures/adapters/us-ebike-oems.json @@ -0,0 +1,36 @@ +{ + "adapterId": "us-ebike-oems", + "mode": "html", + "inputUrl": "https://www.gazellebikes.com/en-us/models/gazelle-arroyo", + "mockPayload": "Gazelle Arroyo C8 Elite | Gazelle Bikes

Gazelle Arroyo C8 HM Elite

Class 1 e-bike (20 mph pedal assist), 500 Wh integrated battery, Bosch Performance Line 65 Nm motor.

SpecDetail
ClassClass 1 (20 mph)
Battery500 Wh Bosch PowerTube
MotorBosch Performance Line 65 Nm
", + "expectTitleIncludes": "Gazelle Arroyo C8 HM Elite", + "expectMarkdownIncludes": [ + "Gazelle", + "Class 1", + "500 Wh", + "Bosch Performance Line" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Page Not Found

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

Something went wrong

" + }, + { + "name": "maintenance-page", + "status": 503, + "payload": "Temporarily Unavailable

Down for Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Loading
" + } + ] +} diff --git a/hub/test/fixtures/adapters/used-bikes-shopify.json b/hub/test/fixtures/adapters/used-bikes-shopify.json new file mode 100644 index 0000000..297586c --- /dev/null +++ b/hub/test/fixtures/adapters/used-bikes-shopify.json @@ -0,0 +1,43 @@ +{ + "adapterId": "used-bikes-shopify", + "mode": "twin", + "inputUrl": "https://www.theproscloset.com/products/10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm", + "expectedFetchUrl": "https://www.theproscloset.com/products/10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm.js", + "mockPayload": "{\"id\":10226226168000,\"title\":\"Cervelo P-Series Red AXS Time Trial Bike - 2022, 58cm\",\"handle\":\"10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm\",\"vendor\":\"Cervelo\",\"type\":\"Triathlon/Time Trial\",\"price\":549999,\"available\":true,\"tags\":[\"brand-cervelo\",\"condition-cpo\",\"drivetraintype-electronic\",\"framematerial-carbonfiber\",\"framesize-l\"],\"variants\":[{\"id\":501,\"title\":\"58cm\",\"sku\":\"TPC-10226226\",\"price\":549999,\"available\":true}],\"description\":\"Certified pre-owned Cervelo P-Series with SRAM Red eTap AXS 12-speed.\"}", + "expectTitleIncludes": "Cervelo P-Series Red AXS", + "expectMarkdownIncludes": [ + "Cervelo", + "TPC-10226226", + "5499.99" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"status\":404,\"message\":\"Product not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.theproscloset.com/error", + "payload": "Error

Error

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

Down for Maintenance

" + }, + { + "name": "upway-js-404-homepage-fallback", + "status": 404, + "inputUrl": "https://upway.co/products/lane-lane-express-uaa01.js", + "payload": "Electric Bikes for Sale | Up to 60% Off | Upway

Electric Bikes for Sale

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://upway.co/products/lane-lane-express-uaa01", + "payload": "Upway
" + } + ] +} diff --git a/hub/test/fixtures/adapters/wheel-hub-specs.json b/hub/test/fixtures/adapters/wheel-hub-specs.json new file mode 100644 index 0000000..cf132df --- /dev/null +++ b/hub/test/fixtures/adapters/wheel-hub-specs.json @@ -0,0 +1,38 @@ +{ + "adapterId": "wheel-hub-specs", + "mode": "html", + "inputUrl": "https://www.dtswiss.com/en/components/hubs-and-rws/hubs-mtb/350", + "mockPayload": "350 | DT Swiss

DT Swiss 350 Rear Hub

Equipped with 36T Ratchet SL engagement, 148 mm Boost spacing, 28H / 32H spoke drilling, XD and Micro Spline freehub compatibility, and Center Lock mount.

AttributeSpec
Axle System12 mm Thru Axle 148 mm Boost
FreehubSRAM XD / Shimano Micro Spline
Brake InterfaceCenter Lock
Holes28H / 32H
DT Swiss 350 Technical Manual PDF
", + "expectTitleIncludes": "DT Swiss 350 Rear Hub", + "expectMarkdownIncludes": [ + "148", + "36T", + "XD", + "Micro Spline", + "Center Lock", + "Technical Manual PDF" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

404 Not Found

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

Error

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

This site is down for maintenance and temporarily unavailable. Please check back shortly.

" + }, + { + "name": "cloudflare-challenge-shell", + "status": 200, + "payload": "Just a moment...
Enable JavaScript and cookies to continue
" + } + ] +} diff --git a/hub/test/wave3-b5-cycling-resale.test.ts b/hub/test/wave3-b5-cycling-resale.test.ts new file mode 100644 index 0000000..ce29579 --- /dev/null +++ b/hub/test/wave3-b5-cycling-resale.test.ts @@ -0,0 +1,760 @@ +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 { 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 { checkUnboundedTwinEndpointGuard } from '../src/extractors/twin-companions'; +import { RequestTracer } from '../src/otel'; +import { resetOverflowRobotsCacheForTests } from '../src/overflow'; +import { + executeScrapeCall, + isTrustedTwinRedirectUrl, + isTwinRedirectedToErrorPage, +} from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { callCoreWasm, resetIsolateBudgetForTests } from '../src/wasm-bridge'; +import { assertFastAsync, assertFastUnscaledSync } from './perf-budget'; + +const WAVE3_B5_CAT_O1_IDS = [ + 'fox-ridefox', + 'park-tool', + 'ifixit', + 'ebike-drive-systems', + 'specialized-turbo-support', + 'bicycle-tire-specs', + 'wheel-hub-specs', + 'bicycle-brake-docs', + 'suspension-cockpit-compat', +] as const; + +const WAVE3_B5_CAT_O2_IDS = [ + 'cargo-ebike-oems', + 'us-ebike-oems', + 'qbp-frame-brands', + 'mtb-geometry-brands', + 'geometrygeeks-99spokes', + 'sheldon-brown', + 'ul-product-iq', + 'e-bike-state-laws', + 'cpsc-ebike-incidents', +] as const; + +const WAVE3_B5_CAT_P_IDS = [ + 'reverb', + 'pinkbike-buysell', + 'used-bikes-shopify', + 'bicycle-blue-book', + 'back-market-swappa', + 'peer-resale-fashion', + 'local-classifieds-marketplaces', + 'creator-digital-stores', + 'chairish-1stdibs', +] as const; + +const ALL_B5_IDS = [ + ...WAVE3_B5_CAT_O1_IDS, + ...WAVE3_B5_CAT_O2_IDS, + ...WAVE3_B5_CAT_P_IDS, +] as const; + +interface B5Fixture { + 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[] }); + +const EXPECTED_CATEGORY_BY_ID: Record<(typeof ALL_B5_IDS)[number], string> = { + 'fox-ridefox': 'developer', + 'park-tool': 'developer', + ifixit: 'developer', + 'ebike-drive-systems': 'commerce-social', + 'specialized-turbo-support': 'developer', + 'bicycle-tire-specs': 'commerce-social', + 'wheel-hub-specs': 'commerce-social', + 'bicycle-brake-docs': 'commerce-social', + 'suspension-cockpit-compat': 'commerce-social', + 'cargo-ebike-oems': 'commerce-social', + 'us-ebike-oems': 'commerce-social', + 'qbp-frame-brands': 'commerce-social', + 'mtb-geometry-brands': 'commerce-social', + 'geometrygeeks-99spokes': 'commerce-social', + 'sheldon-brown': 'research-health', + 'ul-product-iq': 'public-records', + 'e-bike-state-laws': 'public-records', + 'cpsc-ebike-incidents': 'public-records', + reverb: 'commerce-social', + 'pinkbike-buysell': 'commerce-social', + 'used-bikes-shopify': 'commerce-social', + 'bicycle-blue-book': 'commerce-social', + 'back-market-swappa': 'commerce-social', + 'peer-resale-fashion': 'commerce-social', + 'local-classifieds-marketplaces': 'commerce-social', + 'creator-digital-stores': 'commerce-social', + 'chairish-1stdibs': 'commerce-social', +}; + +function makeOverflowMock(statusCode: number, bodyStr: string, ct: string, finalUrl?: string) { + return 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' + : statusCode === 403 + ? 'blocked' + : '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, + }, + ], + }), + }; + }; +} + +test('Wave 3 B5 Integration: All 27 adapter IDs registered, telemetry aligned, zero Rule 7 additions & Rule 9 clean', () => { + assert.equal(ALL_B5_IDS.length, 27, 'Batch B5 must cover all 27 adapters (#341-#367)'); + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of ALL_B5_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.equal(adapter.category, EXPECTED_CATEGORY_BY_ID[id], `${id} category mismatch`); + 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`); + } + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS (TS or Go) + 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_B5_IDS) { + assert.equal(crossBlock.includes(`'${id}'`), false, `Rule 7 violation: ${id} in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + for (const forbiddenHost of ['api.reverb.com', 'www.ifixit.com', 'upway.co']) { + 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_B5_IDS) { + assert.equal(goCrossMatch[1]!.includes(`"${id}"`), false, `Rule 7 Go violation: ${id} in approvedCrossDomainTwinHostsGo`); + } + + // Rule 9: Zero private / internal names across all 27 B5 manifests, fixtures, and Go sources/tests + const privateBrandRe = new RegExp(Buffer.from('c2hlcGhlcmR8c2hvcGRhd2d8anVpY2VkLj93aGVlbHM=', 'base64').toString('utf8'), 'i'); + for (const id of ALL_B5_IDS) { + const yamlText = readFileSync(resolve('..', 'internal', 'extract', 'manifests', `${id}.yaml`), 'utf8'); + assert.equal(privateBrandRe.test(yamlText), false, `Rule 9 violation in ${id}.yaml`); + const fxText = readFileSync(resolve('test', 'fixtures', 'adapters', `${id}.json`), 'utf8'); + assert.equal(privateBrandRe.test(fxText), false, `Rule 9 violation in ${id}.json`); + } + for (const goRel of [ + 'wave3_cycling_components.go', + 'wave3_cycling_components_test.go', + 'wave3_cycling_oems.go', + 'wave3_cycling_oems_test.go', + 'wave3_resale.go', + 'wave3_resale_test.go', + ]) { + const goText = readFileSync(resolve('..', 'internal', 'extract', goRel), 'utf8'); + assert.equal(privateBrandRe.test(goText), false, `Rule 9 violation in ${goRel}`); + } +}); + +test('Wave 3 B5 Fixtures: All 27 golden + >=4 negative cases pass via formatTwin/HTML, executeScrapeCall, executeExtractCall & RequestTracer', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + for (const slug of ALL_B5_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as B5Fixture; + 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 fetchUrl = fx.expectedFetchUrl || fx.inputUrl; + const trimmedMock = fx.mockPayload.trimStart(); + const contentType = + fx.mode === 'html' + ? 'text/html' + : trimmedMock.startsWith('{') || trimmedMock.startsWith('[') + ? 'application/json' + : 'text/plain'; + + if (fx.mode === 'twin') { + assert.ok(resolvedTwin && resolvedTwin.id === slug, `${slug}: expected twin for ${fx.inputUrl}`); + if (fx.expectedFetchUrl) { + assert.equal(resolvedTwin.fetchUrl, fx.expectedFetchUrl, `${slug}: unexpected fetchUrl`); + } + const out = resolvedTwin.formatTwin(fx.mockPayload, fx.inputUrl, noopHtmlToMd); + assert.ok(out && out.markdown.trim().length > 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`); + } + } + + // 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, + }, + env: {}, + tracer: scTracer, + executeHubFetch: 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, + }, + env: {}, + tracer: exTracer, + executeHubFetch: 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 scNeg = await executeScrapeCall({ + payload: { + url: ncUrl, + discoverLlmsTxt: false, + noCache: true, + }, + env: {}, + 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, + }, + env: {}, + 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 B5 Cat O1/O2: #346 ETRTO ISO 5775 validation, #358 vs cpsc-recalls disjoint routing & #354 real extraction + WAF/CSR negative handling', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #346 ETRTO validation: valid ISO 5775 sizes retained, non-tire NN-NNN tokens excluded from ETRTO field + const tireHtml = `Grand Prix 5000 - Continental
+

Continental Grand Prix 5000

+

Part codes 25-145, 96-160, and 40-700 must not parse as ETRTO. Available in 700 x 28C, 120 TPI, BlackChili Compound, Foldable bead, Tubeless Ready (TR).

+ + + +
SizeETRTOWeight
700x28C28-622235 g
700x32C32-622290 g
+
`; + const tireOut = assertFastUnscaledSync('bicycle-tire-specs ETRTO', 75, () => + postExtractHtml(tireHtml, 'https://www.continental-tires.com/products/bicycle/tires/grand-prix-5000/', ''), + ); + assert.ok(tireOut && tireOut.extractorId === 'bicycle-tire-specs'); + const etrtoLine = tireOut.markdown.split('\n').find((l) => l.includes('ETRTO (ISO 5775)')) ?? ''; + assert.ok(etrtoLine.includes('28-622'), 'missing valid ETRTO 28-622'); + assert.ok(etrtoLine.includes('32-622'), 'missing valid ETRTO 32-622'); + assert.equal(etrtoLine.includes('25-145'), false, 'SKU 25-145 must NOT be classified as ETRTO'); + assert.equal(etrtoLine.includes('96-160'), false, 'token 96-160 must NOT be classified as ETRTO'); + assert.equal(etrtoLine.includes('40-700'), false, 'invalid BSD 40-700 must NOT be classified as ETRTO'); + + // 2. #358 cpsc-ebike-incidents vs cpsc-recalls symmetric path/query disjointness + const recallTwin = resolveSiteExtractorTwin('https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123'); + assert.equal(recallTwin?.id, 'cpsc-recalls'); + + const incidentTypeTwin = resolveSiteExtractorTwin('https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle'); + assert.equal(incidentTypeTwin?.id, 'cpsc-ebike-incidents'); + assert.equal(incidentTypeTwin?.maxBytes, 2_097_152); + + const incidentDescTwin = resolveSiteExtractorTwin('https://saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription=ebike'); + assert.equal(incidentDescTwin?.id, 'cpsc-ebike-incidents'); + + // Unfiltered SaferProducts dump must match neither + assert.equal(resolveSiteExtractorTwin('https://www.saferproducts.gov/RestWebServices/Recall?format=json'), null); + + // HTML disjointness: cpsc.gov/Recalls -> cpsc-recalls; saferproducts.gov/PublicSearch -> cpsc-ebike-incidents + const cpscRecallHtml = + 'Cipton Recalls Bicycle Helmets | CPSC.gov

Cipton Recalls Bicycle Helmets

Recall Number: 24-123

Consumers should stop using the helmets immediately due to impact hazard.

'; + assert.equal( + postExtractHtml( + cpscRecallHtml, + 'https://www.cpsc.gov/Recalls/2027/Cipton-Recalls-Bicycle-Helmets', + '', + + )?.extractorId, + 'cpsc-recalls', + ); + + const publicSearchPopulatedHtml = + 'Public Search - SaferProducts

Public Incident Search Results

Report NoProductDate
20260401-12345Class 2 E-Bike Battery2026-04-01
'; + assert.equal( + postExtractHtml( + publicSearchPopulatedHtml, + 'https://www.saferproducts.gov/PublicSearch?Term=ebike', + '', + + )?.extractorId, + 'cpsc-ebike-incidents', + ); + + // Unhydrated #tableResultsRefresh with zero rows must be rejected + const unhydratedSearchHtml = + 'Public Search - SaferProducts
'; + assert.equal( + postExtractHtml( + unhydratedSearchHtml, + 'https://www.saferproducts.gov/PublicSearch?Term=Hoverboards&handler=TermClick', + '', + + ), + null, + ); + + // 3. #354 geometrygeeks-99spokes REAL extraction on both geometrygeeks.bike & 99spokes.com + WAF/CSR rejections + const spokes99Html = `2024 Specialized Stumpjumper Comp | 99 Spokes +

2024 Specialized Stumpjumper Comp

`; + const spokesRes = await executeScrapeCall({ + payload: { url: 'https://99spokes.com/bikes/specialized/2024/stumpjumper-comp', formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, spokes99Html, 'text/html'), + }); + assert.equal(spokesRes.status, 200); + assert.equal(spokesRes.body.extractorId, 'geometrygeeks-99spokes'); + assert.equal(spokesRes.body.contentState, 'active'); + assert.ok(String(spokesRes.body.markdown).includes('445')); + + const cfWafRes = await executeScrapeCall({ + payload: { url: 'https://99spokes.com/bikes/specialized/2024/stumpjumper-comp', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock( + 403, + 'Attention Required! | Cloudflare

Sorry, you have been blocked

', + 'text/html', + ), + }); + assert.notEqual(cfWafRes.body.contentState, 'active'); +}); + +test('Wave 3 B5 Cat P: #359 Accept-Version: 3.0, #361 TPC/Upway before shopify.yaml, #364/#365 real + login_wall/WAF/CSR, #366 *.sellfy.store', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #359 Reverb Accept-Version: 3.0 + application/hal+json + reverb_search_json + const reverbItemTwin = resolveSiteExtractorTwin('https://reverb.com/item/36356670-fender-stratocaster-knob-set-black'); + assert.ok(reverbItemTwin && reverbItemTwin.id === 'reverb'); + assert.equal(reverbItemTwin.headers?.['Accept-Version'], '3.0'); + assert.equal(reverbItemTwin.accept, 'application/hal+json'); + + const reverbSearchUrl = 'https://api.reverb.com/api/listings?query=stratocaster&per_page=2'; + const reverbSearchTwin = resolveSiteExtractorTwin(reverbSearchUrl); + assert.ok(reverbSearchTwin && reverbSearchTwin.id === 'reverb'); + assert.equal(reverbSearchTwin.headers?.['Accept-Version'], '3.0'); + const reverbSearchOut = reverbSearchTwin.formatTwin( + JSON.stringify({ + total: 2, + current_page: 1, + total_pages: 1, + listings: [ + { id: 1001, title: 'Fender Stratocaster Neck', make: 'Fender', condition: { display_name: 'Mint' }, price: { amount: '399.00', currency: 'USD' }, _links: { web: { href: 'https://reverb.com/item/1001' } } }, + { id: 1002, title: 'Fender Stratocaster Body', make: 'Fender', condition: { display_name: 'Very Good' }, price: { amount: '499.00', currency: 'USD' }, _links: { web: { href: 'https://reverb.com/item/1002' } } }, + ], + }), + reverbSearchUrl, + noopHtmlToMd, + ); + assert.ok(reverbSearchOut && reverbSearchOut.markdown.includes('Fender Stratocaster Neck')); + + // 2. #361 used-bikes-shopify: TPC twin + Upway HTML both precede universal shopify.yaml + const tpcUrl = 'https://www.theproscloset.com/products/10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm'; + const tpcTwin = resolveSiteExtractorTwin(tpcUrl); + assert.equal(tpcTwin?.id, 'used-bikes-shopify'); + assert.equal(tpcTwin?.fetchUrl, `${tpcUrl}.js`); + + const upwayUrl = 'https://upway.co/products/lane-lane-express-uaa01'; + assert.equal(resolveSiteExtractorTwin(upwayUrl), null, 'Upway must never resolve a Shopify .js/.json twin'); + assert.equal(resolveSiteExtractorTwin(`${upwayUrl}.js`), null); + const upwayPolicy = resolveAdapterPolicyForUrl(upwayUrl); + assert.equal(upwayPolicy.adapterId, 'used-bikes-shopify'); + assert.equal(upwayPolicy.minIntervalMs, 2000); + assert.equal(upwayPolicy.strictRobots, true); + + const upwayHtml = `Lane Express Commuter E-Bike | Upway + +

Lane Express Commuter E-Bike

Certified pre-owned e-bike with 500Wh battery and 120 miles.

`; + const upwayRes = await assertFastAsync('Upway executeScrapeCall', 75, () => + executeScrapeCall({ + payload: { url: upwayUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, upwayHtml, 'text/html'), + }), + ); + assert.equal(upwayRes.status, 200); + assert.equal(upwayRes.body.extractorId, 'used-bikes-shopify'); + assert.equal(upwayRes.body.contentState, 'active'); + + // 3. #364 peer-resale-fashion & #365 local-classifieds-marketplaces: REAL extraction + login_wall / WAF / CSR negative handling + const depopHtml = `Vintage Cycling Jersey | Depop + +

Vintage Cycling Jersey

Medium size Italian wool jersey.

`; + const depopOut = postExtractHtml(depopHtml, 'https://www.depop.com/products/cyclist-vintage-jersey/', ''); + assert.equal(depopOut?.extractorId, 'peer-resale-fashion'); + + const fbPublicUrl = 'https://www.facebook.com/marketplace/item/998877665544/'; + const fbPublicHtml = `Trek Domane SL 6 | Facebook Marketplace + +

Trek Domane SL 6

54cm carbon endurance road bike.

`; + const fbPubRes = await executeScrapeCall({ + payload: { url: fbPublicUrl, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, fbPublicHtml, 'text/html'), + }); + assert.equal(fbPubRes.status, 200); + assert.equal(fbPubRes.body.extractorId, 'local-classifieds-marketplaces'); + assert.equal(fbPubRes.body.contentState, 'active'); + + const fbLoginHtml = + 'Log in to Facebook

Log in to Facebook

'; + const fbLoginRes = await executeScrapeCall({ + payload: { url: 'https://www.facebook.com/marketplace/sanfrancisco/bicycles', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, fbLoginHtml, 'text/html'), + }); + assert.equal(fbLoginRes.body.contentState, 'login_wall', 'Facebook Marketplace login gate must classify as login_wall'); + + const fbCsrHtml = + 'Bicycles | Facebook Marketplace
'; + assert.equal( + postExtractHtml(fbCsrHtml, 'https://www.facebook.com/marketplace/sanfrancisco/bicycles', ''), + null, + 'Facebook WebSite-only CSR shell must be rejected', + ); + + // 4. #366 creator-digital-stores: *.sellfy.store + *.gumroad.com + *.lemonsqueezy.com (and non-matching domain excluded) + const sellfyUrl = 'https://demo.sellfy.store/p/trail-preset-pack/'; + const sellfyHtml = `Trail LUT Preset Pack | Sellfy + +

Trail LUT Preset Pack

20 color grading LUTs for trail footage.

`; + const sellfyOut = postExtractHtml(sellfyHtml, sellfyUrl, ''); + assert.equal(sellfyOut?.extractorId, 'creator-digital-stores'); + assert.ok(sellfyOut?.markdown.includes('19.00 USD')); + + const unrelatedSellfyPath = postExtractHtml(sellfyHtml, 'https://example.com/p/trail-preset-pack/', ''); + assert.notEqual(unrelatedSellfyPath?.extractorId, 'creator-digital-stores'); + + const lemonUrl = 'https://acme.lemonsqueezy.com/buy/pro-kit'; + const lemonOut = postExtractHtml( + `Pro Kit | Lemon Squeezy

Pro Kit

`, + lemonUrl, + '', + + ); + assert.equal(lemonOut?.extractorId, 'creator-digital-stores'); +}); + +test('Wave 3 B5 Challenger Remediation Regressions: passive CF 200, h1+unclosed-div-100k < 75ms, 200 bare shells, CPSC %20, Lemmy offerup.com/post', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. Passive Cloudflare challenge-platform script on 200 OK full resale product pages + const cfPassiveScript = ''; + for (const tc of [ + { + id: 'used-bikes-shopify', + url: 'https://upway.co/products/specialized-turbo-vado-4', + html: `2023 Specialized Turbo Vado 4.0 | Upway${cfPassiveScript}

2023 Specialized Turbo Vado 4.0

`, + }, + { + id: 'back-market-swappa', + url: 'https://swappa.com/buy/apple-iphone-14', + html: `Apple iPhone 14 | Swappa${cfPassiveScript}

Apple iPhone 14

`, + }, + { + id: 'pinkbike-buysell', + url: 'https://www.pinkbike.com/buysell/3910001/', + html: `2023 Santa Cruz Bronson | Pinkbike${cfPassiveScript}

2023 Santa Cruz Bronson

`, + }, + { + id: 'chairish-1stdibs', + url: 'https://www.chairish.com/product/99887766/mid-century-chair', + html: `Mid-Century Lounge Chair | Chairish${cfPassiveScript}

Mid-Century Lounge Chair

`, + }, + ]) { + const res = await executeScrapeCall({ + payload: { url: tc.url, formats: ['markdown', 'records'], discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, tc.html, 'text/html'), + }); + assert.equal(res.status, 200, `${tc.id} passive CF scrape failed`); + assert.equal(res.body.extractorId, tc.id, `${tc.id} extractorId mismatch`); + assert.equal(res.body.contentState, 'active', `${tc.id} contentState must be active`); + } + + // 2. Hostile h1 + 100 KB unclosed
Bike

Bike

${'
`; + for (const id of ALL_B5_IDS) { + if (id === 'reverb') continue; // twin-only manifest + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${id}.json`), 'utf8')) as B5Fixture; + const testUrl = id === 'cpsc-ebike-incidents' ? 'https://www.saferproducts.gov/PublicSearch?Term=ebike' : fx.inputUrl; + assertFastUnscaledSync(`h1+unclosed-div-100k:${id}`, 75, () => + callCoreWasm('manifest_extract_html', { + adapterId: id, + rawHtml: hostileHtml, + baseUrl: testUrl, + currentMd: '', + }), + ); + } + + // 3. 200 OK bare CSR / deleted / soft-block shells must never return contentState='active' + for (const scCase of [ + { + name: 'facebook-bare-mount_0_0', + url: 'https://www.facebook.com/marketplace/item/123456', + html: 'Facebook Marketplace
', + }, + { + name: 'egain-loading_container', + url: 'https://support.specialized.com/kb/sp_en-us/home', + html: '

Loading...

', + }, + { + name: 'craigslist-deleted-posting', + url: 'https://sfbay.craigslist.org/sfc/bik/d/123.html', + html: 'craigslist | deleted

This posting has been deleted by its author.

', + }, + { + name: 'craigslist-blocked-title', + url: 'https://sfbay.craigslist.org/sfc/bik/d/123.html', + html: 'blocked

Your request has been blocked.

', + }, + { + name: 'ul-prospector-warning-blocked', + url: 'https://productiq.ulprospector.com/', + html: 'Warning: Blocked - UL Prospector

Access Denied

Warning: Blocked - UL Prospector

', + }, + { + name: 'backmarket-bot-need-challenge-html', + url: 'https://www.backmarket.com/en-us/p/item/123', + html: 'Challenge
bot-need-challenge
', + }, + { + name: 'missing-auth-token-html', + url: 'https://support.specialized.com/kb/sp_en-us/api', + html: '
{"message":"Missing Authentication Token"}
', + }, + ]) { + const res = await executeScrapeCall({ + payload: { url: scCase.url, discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, scCase.html, 'text/html'), + }); + assert.notEqual( + (res.body as { contentState?: string }).contentState, + 'active', + `${scCase.name} must never return contentState=active`, + ); + } + + // 4. #358 cpsc-ebike-incidents %20 multi-word ProductType & ProductDescription parity + const scooterUrl = 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=Electric%20Scooter'; + assert.equal( + checkUnboundedTwinEndpointGuard(new URL(scooterUrl), scooterUrl), + null, + 'Electric%20Scooter must pass unbounded twin guard', + ); + const scooterTwin = resolveSiteExtractorTwin(scooterUrl); + assert.equal(scooterTwin?.id, 'cpsc-ebike-incidents'); + assert.equal( + scooterTwin?.fetchUrl, + 'https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Electric%20Scooter', + ); + + const batteryUrl = 'https://www.saferproducts.gov/RestWebServices/Recall?ProductDescription=lithium%20battery'; + assert.equal( + checkUnboundedTwinEndpointGuard(new URL(batteryUrl), batteryUrl), + null, + 'lithium%20battery must pass unbounded twin guard', + ); + const batteryTwin = resolveSiteExtractorTwin(batteryUrl); + assert.equal(batteryTwin?.id, 'cpsc-ebike-incidents'); + assert.equal( + batteryTwin?.fetchUrl, + 'https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription=lithium%20battery', + ); + + for (const badCpscUrl of [ + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=a', + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=..', + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=a..b', + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=foo%26bar', + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductType=foo%3Cscript%3E', + 'https://www.saferproducts.gov/RestWebServices/Recall?ProductDescription=bad%22quote', + ]) { + assert.notEqual( + checkUnboundedTwinEndpointGuard(new URL(badCpscUrl), badCpscUrl), + null, + `guard must block ${badCpscUrl}`, + ); + assert.equal(resolveSiteExtractorTwin(badCpscUrl), null, `twin must reject ${badCpscUrl}`); + } + + // 5. lemmy.yaml Route 4 excludes offerup.com/post/... while preserving lemmy.world/post/... + assert.equal(resolveSiteExtractorTwin('https://offerup.com/post/123456'), null); + assert.equal(resolveSiteExtractorTwin('https://www.offerup.com/post/123456'), null); + const lemmyTwin = resolveSiteExtractorTwin('https://lemmy.world/post/54926010'); + assert.equal(lemmyTwin?.id, 'lemmy'); + assert.equal(lemmyTwin?.fetchUrl, 'https://lemmy.world/api/v3/post?id=54926010'); +}); diff --git a/internal/classify/content_state.go b/internal/classify/content_state.go index 6471985..28312bd 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|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`) + 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|this\s+posting\s+has\s+been\s+(?:deleted|removed)|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|this\s+item\s+is\s+no\s+longer\s+available|invalid\s+as(?:\s+specified)?|not\s+a\s+valid\s+asn)\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|this\s+posting\s+has\s+been\s+(?:deleted|removed)|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[^"']*["']`) @@ -2327,7 +2327,9 @@ func isAPIErrorJSONShellCSGo(raw string) bool { hasProblemIdentity = true ls := strings.ToLower(s) if lk == "message" && len(obj) <= 2 && - (strings.HasPrefix(strings.TrimSpace(ls), "403 forbidden") || strings.HasPrefix(strings.TrimSpace(ls), "401 unauthorized")) { + (strings.HasPrefix(strings.TrimSpace(ls), "403 forbidden") || + strings.HasPrefix(strings.TrimSpace(ls), "401 unauthorized") || + strings.HasPrefix(strings.TrimSpace(ls), "missing authentication token")) { hasErr = true } if reNotFoundBodyCSGo.MatchString(s) || @@ -2798,6 +2800,43 @@ func ClassifyContentState(status int, rawHTML, markdown, finalURL, title string) Confidence: 0.92, } } + if words < 40 && countWordsFromHTMLCSGo(cleanVisibleHTML) < 40 { + lowBlockTitle := strings.ToLower(strings.TrimSpace(title)) + if lowBlockTitle == "blocked" || + strings.HasPrefix(lowBlockTitle, "warning: blocked") || + lowBlockTitle == "forbidden" || + strings.HasPrefix(lowBlockTitle, "forbidden - ") || + strings.HasPrefix(lowBlockTitle, "403 forbidden") || + lowBlockTitle == "access denied" || + strings.HasPrefix(lowBlockTitle, "access denied - ") || + strings.HasPrefix(lowBlockTitle, "access denied |") || + strings.HasPrefix(lowBlockTitle, "request blocked") { + return ContentStateResult{ + State: "temporarily_unavailable", + Reason: "HTTP " + strconv.Itoa(status) + " response is a soft-block / access-denied page.", + Confidence: 0.90, + } + } + } + if words < 25 && countWordsFromHTMLCSGo(cleanVisibleHTML) < 25 { + lowVisibleCS := strings.ToLower(cleanVisibleHTML) + if strings.Contains(lowF5, "bot-need-challenge") || strings.Contains(lowVisibleCS, "bot-need-challenge") { + return ContentStateResult{ + State: "temporarily_unavailable", + Reason: "HTTP " + strconv.Itoa(status) + " response is an anti-bot challenge interstitial (bot-need-challenge).", + Confidence: 0.90, + } + } + if (strings.Contains(lowF5, "missing authentication token") || strings.Contains(lowVisibleCS, "missing authentication token") || strings.Contains(strings.ToLower(proseOnly), "missing authentication token")) && + !strings.Contains(lowF5, "Facebook Marketplace
`, + markdown: "", + wantExact: "empty_shell", + }, + { + name: "egain-loading_container-without-app", + status: 200, + url: "https://support.specialized.com/kb/sp_en-us/home", + title: "", + rawHTML: `

Loading...

`, + markdown: "Loading...", + wantExact: "empty_shell", + }, + { + name: "craigslist-deleted-posting-200", + status: 200, + url: "https://sfbay.craigslist.org/sfc/bik/d/123.html", + title: "craigslist | deleted", + rawHTML: `craigslist | deleted

This posting has been deleted by its author.

`, + markdown: "This posting has been deleted by its author.", + wantExact: "soft_404", + }, + { + name: "craigslist-blocked-title-200", + status: 200, + url: "https://sfbay.craigslist.org/sfc/bik/d/123.html", + title: "blocked", + rawHTML: `blocked

Your request has been blocked.

`, + markdown: "Your request has been blocked.", + wantExact: "temporarily_unavailable", + }, + { + name: "ul-prospector-warning-blocked-200", + status: 200, + url: "https://productiq.ulprospector.com/", + title: "Warning: Blocked - UL Prospector", + rawHTML: `Warning: Blocked - UL Prospector

Access Denied

Warning: Blocked - UL Prospector

`, + markdown: "Access Denied", + wantExact: "temporarily_unavailable", + }, + { + name: "depop-forbidden-title-200", + status: 200, + url: "https://www.depop.com/category/mens/", + title: "Forbidden - Depop", + rawHTML: `Forbidden - Depop

403 Forbidden

`, + markdown: "403 Forbidden", + wantExact: "temporarily_unavailable", + }, + { + name: "bot-need-challenge-html-200", + status: 200, + url: "https://www.backmarket.com/en-us/p/item/123", + title: "Challenge", + rawHTML: `Challenge
bot-need-challenge
`, + markdown: "bot-need-challenge", + wantExact: "temporarily_unavailable", + }, + { + name: "missing-authentication-token-html-200", + status: 200, + url: "https://support.specialized.com/api/item", + title: "", + rawHTML: `
{"message":"Missing Authentication Token"}
`, + markdown: "```\n{\"message\":\"Missing Authentication Token\"}\n```", + wantExact: "temporarily_unavailable", + }, + { + name: "missing-authentication-token-json-403", + status: 403, + url: "https://api.example.com/v1/item", + title: "", + rawHTML: `{"message":"Missing Authentication Token"}`, + markdown: "", + wantExact: "temporarily_unavailable", + }, + { + name: "positive-article-discussing-deleted-and-blocks-stays-active", + status: 200, + url: "https://docs.example.com/troubleshooting", + title: "Troubleshooting HTTP Error Responses in API Gateways", + rawHTML: `Troubleshooting HTTP Error Responses in API Gateways

Troubleshooting HTTP Error Responses in API Gateways

When building resilient web scrapers and API clients, engineers frequently encounter responses such as Missing Authentication Token from AWS API Gateway, bot-need-challenge anti-bot signals, loading_container placeholders in eGain support portals, and phrases like this posting has been deleted on classifieds sites. Understanding the difference between a real technical article and a thin negative shell requires checking word counts, structured JSON-LD metadata, and DOM density carefully so documentation pages remain active while genuine error shells are filtered cleanly across production pipelines. Furthermore, monitoring status codes alongside semantic content signals ensures high precision and zero false rejections across diverse web platforms and developer documentation portals.

`, + markdown: "Troubleshooting HTTP Error Responses in API Gateways. When building resilient web scrapers and API clients, engineers frequently encounter responses such as Missing Authentication Token from AWS API Gateway, bot-need-challenge anti-bot signals, loading_container placeholders in eGain support portals, and phrases like this posting has been deleted on classifieds sites. Understanding the difference between a real technical article and a thin negative shell requires checking word counts, structured JSON-LD metadata, and DOM density carefully so documentation pages remain active while genuine error shells are filtered cleanly across production pipelines. Furthermore, monitoring status codes alongside semantic content signals ensures high precision and zero false rejections across diverse web platforms and developer documentation portals.", + wantExact: "active", + }, + } + + for _, tc := range cases { + res := ClassifyContentStateFull(ContentStateInput{ + Status: tc.status, + URL: tc.url, + FinalURL: tc.url, + Title: tc.title, + RawHTML: tc.rawHTML, + Markdown: tc.markdown, + }) + if tc.wantExact != "" && res.State != tc.wantExact { + t.Fatalf("%s: got state=%q (%s), want %q", tc.name, res.State, res.Reason, tc.wantExact) + } + if tc.wantNot != "" && res.State == tc.wantNot { + t.Fatalf("%s: got state=%q (%s), must not be %q", tc.name, res.State, res.Reason, tc.wantNot) + } + } +} diff --git a/internal/extract/declarative.go b/internal/extract/declarative.go index 695a7c3..068e7e1 100644 --- a/internal/extract/declarative.go +++ b/internal/extract/declarative.go @@ -1004,6 +1004,10 @@ var approvedWildcardDomainPatternsGo = map[string]bool{ "*.narvar.com": true, "*.gorgias.help": true, "*.reamaze.com": true, + // Wave 3 B5 Category P + "*.craigslist.org": true, + "*.gumroad.com": true, + "*.lemonsqueezy.com": true, } var reservedCoreATSDomainsGo = map[string]bool{ @@ -1034,6 +1038,18 @@ var approvedSAPATSExactExemptionsGo = map[string]bool{ "edu-job-boards:jobs.chronicle.com": true, } +var approvedPathDisjointExactExemptionsGo = map[string]bool{ + "cpsc-ebike-incidents|cpsc-recalls:saferproducts.gov": true, + "cpsc-ebike-incidents|cpsc-recalls:www.saferproducts.gov": true, +} + +func isExemptPathDisjointExactClaimGo(ownerA, ownerB, exactDom string) bool { + if ownerA > ownerB { + ownerA, ownerB = ownerB, ownerA + } + return approvedPathDisjointExactExemptionsGo[ownerA+"|"+ownerB+":"+exactDom] +} + func claimedRegistrableDomainsGo(domains []string) map[string]bool { regs := make(map[string]bool, len(domains)) for _, raw := range domains { @@ -1616,7 +1632,7 @@ func ValidateDeclarativeManifests(manifests []DeclarativeAdapterManifest) error wildcardOwners[normDom] = m.ID wildcardClaims = append(wildcardClaims, domainClaim{id: m.ID, pattern: normDom}) } else { - if prev, exists := exactOwners[normDom]; exists && prev != m.ID { + if prev, exists := exactOwners[normDom]; exists && prev != m.ID && !isExemptPathDisjointExactClaimGo(prev, m.ID, normDom) { return fmt.Errorf("manifest %q duplicate domain %q overlaps claim by %q (H7)", m.ID, normDom, prev) } for _, prevWild := range wildcardClaims { @@ -3633,6 +3649,9 @@ func matchDeclarativeRoute(spec DeclarativeMatchSpec, u *url.URL, host string, r } else if !validateDeclarativeParam(val, qp.Charset, qp.AllowValues, nil, qp.MinLen, qp.MaxLen) { return nil, false } + if qp.Charset == "cpsc_query_term" { + val = strings.TrimSpace(val) + } transformed := applyParamTransformGo(val, qp.Transform) if qp.Transform == "strip_dashes" && !validateDeclarativeParam(transformed, qp.Charset, qp.AllowValues, nil, qp.MinLen, qp.MaxLen) { return nil, false @@ -3721,6 +3740,18 @@ func validateDeclarativeParam(val, charset string, allowValues, reserved []strin } } return true + case "cpsc_query_term": + trimmed := strings.TrimSpace(val) + if len(trimmed) < minLen || len(trimmed) > maxLen || strings.Contains(trimmed, "..") { + return false + } + for i := 0; i < len(trimmed); i++ { + b := trimmed[i] + if !isASCIIAlnum(b) && b != '.' && b != '_' && b != '~' && b != '-' && b != ' ' { + return false + } + } + return true case "pkg": for i := 0; i < len(val); i++ { b := val[i] @@ -5921,6 +5952,15 @@ func (m *DeclarativeTwinMatch) formatJSONBytesTwin(rawBytes []byte, ext Declarat if IsWave3DevInfraJSONMode(ext.JSONMode) { return FormatWave3DevInfraJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) } + if IsWave3CyclingComponentsJSONMode(ext.JSONMode) { + return FormatWave3CyclingComponentsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3CyclingOEMsJSONMode(ext.JSONMode) { + return FormatWave3CyclingOEMsJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } + if IsWave3ResaleJSONMode(ext.JSONMode) { + return FormatWave3ResaleJSONDoc(ext.JSONMode, rawBytes, m.params, m.origURL) + } var rootObj map[string]any var selectiveCache *selectiveJSONCache unwrappedArray := false diff --git a/internal/extract/declarative_test.go b/internal/extract/declarative_test.go index 733f1df..4d9a870 100644 --- a/internal/extract/declarative_test.go +++ b/internal/extract/declarative_test.go @@ -78,6 +78,7 @@ func TestDeclarativeManifestsCatalogIntegrity(t *testing.T) { "spree-solidus": true, "state-sos-business": true, "weather-gov": true, + "wordpress-org-plugins": true, "yext-locator": true, } validCats := map[string]bool{ diff --git a/internal/extract/manifests/back-market-swappa.yaml b/internal/extract/manifests/back-market-swappa.yaml new file mode 100644 index 0000000..e049b22 --- /dev/null +++ b/internal/extract/manifests/back-market-swappa.yaml @@ -0,0 +1,27 @@ +# Shared Go + TypeScript Declarative Site Adapter: Back Market & Swappa (#363) +id: back-market-swappa +name: Back Market & Swappa Refurbished Electronics +category: commerce-social +description: "Extracts refurbished electronics Product/AggregateOffer JSON-LD and specifications from Back Market and Swappa while rejecting bot-challenge and SPA shells." +domains: + - backmarket.com + - www.backmarket.com + - swappa.com + - www.swappa.com +auth_mode: html +min_interval_ms: 2000 +strict_robots: true +exampleUrls: + - "https://www.backmarket.com/en-us/p/iphone-13-512gb-red-locked-verizon/f600a6e0-4627-4b38-b17d-efa60fed7568" + - "https://swappa.com/buy/apple-iphone-14" + +htmlRoutes: + - id: back-market-swappa + match: + anyOf: + - pathPrefix: /en-us/p/ + - pathPrefix: /p/ + - pathPrefix: /buy/ + - pathPrefix: /listing/ + - pathPrefix: /listings/ + mode: back_market_swappa_html diff --git a/internal/extract/manifests/bicycle-blue-book.yaml b/internal/extract/manifests/bicycle-blue-book.yaml new file mode 100644 index 0000000..b930ce9 --- /dev/null +++ b/internal/extract/manifests/bicycle-blue-book.yaml @@ -0,0 +1,25 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bicycle Blue Book (#362) +id: bicycle-blue-book +name: Bicycle Blue Book Value Guide +category: commerce-social +description: "Extracts Bicycle Blue Book original MSRP, private-party used estimate range, trade-in values, 12-month projected trend, and model lists." +domains: + - bicyclebluebook.com + - www.bicyclebluebook.com +auth_mode: html +min_interval_ms: 1000 +strict_robots: true +exampleUrls: + - "https://www.bicyclebluebook.com/value-guide/cyclocross/all-city/macho-king-ltd/2017" + - "https://www.bicyclebluebook.com/value-guide/cyclocross/all-city" + +htmlRoutes: + - id: bicycle-blue-book + match: + anyOf: + - pathEquals: + - /value-guide + - pathPrefix: /value-guide/ + - pathPrefix: /marketplace/ + - pathPrefix: /listing/ + mode: bicycle_blue_book_html diff --git a/internal/extract/manifests/bicycle-brake-docs.yaml b/internal/extract/manifests/bicycle-brake-docs.yaml new file mode 100644 index 0000000..4352be9 --- /dev/null +++ b/internal/extract/manifests/bicycle-brake-docs.yaml @@ -0,0 +1,26 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bicycle Brake Docs (#348) +id: bicycle-brake-docs +name: Bicycle Brake Docs & Rotor/Pad Specs +category: commerce-social +description: "Extracts hydraulic brake fluid type, piston count, rotor diameter/thickness, pad compatibility, and bleed manuals from Magura, Hayes, Tektro, and TRP." +domains: + - magura.com + - www.magura.com + - hayesbicycle.com + - www.hayesbicycle.com + - tektro.com + - www.tektro.com + - trpcycling.com + - www.trpcycling.com +auth_mode: html +exampleUrls: + - "https://magura.com/product/mt7-pro/" + - "https://hayesbicycle.com/collections/disc-brakes" + - "https://tektro.com/en/product/315" + - "https://trpcycling.com/collections/brakes" + +htmlRoutes: + - id: bicycle-brake-docs + match: + exactSegments: false + mode: bicycle_brake_docs_html diff --git a/internal/extract/manifests/bicycle-tire-specs.yaml b/internal/extract/manifests/bicycle-tire-specs.yaml new file mode 100644 index 0000000..4bcb7d1 --- /dev/null +++ b/internal/extract/manifests/bicycle-tire-specs.yaml @@ -0,0 +1,34 @@ +# Shared Go + TypeScript Declarative Site Adapter: Bicycle Tire Specs (#346) +id: bicycle-tire-specs +name: Bicycle Tire Technical Specifications +category: commerce-social +description: "Extracts ISO 5775 validated ETRTO sizes, imperial/French tire sizes, TPI, compound, bead, weight, and tubeless specs from Maxxis, Schwalbe, Continental, WTB, Kenda, and Teravail." +domains: + - maxxis.com + - www.maxxis.com + - schwalbe.com + - www.schwalbe.com + - schwalbetires.com + - www.schwalbetires.com + - continental-tires.com + - www.continental-tires.com + - wtb.com + - www.wtb.com + - kendatire.com + - bicycle.kendatire.com + - teravail.com + - www.teravail.com +auth_mode: html +exampleUrls: + - "https://www.maxxis.com/us/tire/minion-dhf/" + - "https://www.schwalbetires.com/Magic-Mary-11654598.01" + - "https://www.wtb.com/products/vigilante" + - "https://www.teravail.com/products/cannonball-gen-2-tire" + - "https://www.continental-tires.com/products/bicycle/tires/grand-prix-5000/" + - "https://bicycle.kendatire.com/en-us/find-a-tire/" + +htmlRoutes: + - id: bicycle-tire-specs + match: + exactSegments: false + mode: bicycle_tire_specs_html diff --git a/internal/extract/manifests/cargo-ebike-oems.yaml b/internal/extract/manifests/cargo-ebike-oems.yaml new file mode 100644 index 0000000..af37970 --- /dev/null +++ b/internal/extract/manifests/cargo-ebike-oems.yaml @@ -0,0 +1,27 @@ +# Shared Go + TypeScript Declarative Site Adapter: Cargo E-Bike OEMs (#350) +id: cargo-ebike-oems +name: "Cargo E-Bike OEMs (Yuba, Xtracycle, Tern, Riese & Muller)" +category: commerce-social +description: "Extracts cargo e-bike payload, GVWR, battery Wh, motor torque/power, and product specifications from Yuba, Xtracycle, Tern, and Riese & Muller." +domains: + - yubabikes.com + - www.yubabikes.com + - xtracycle.com + - www.xtracycle.com + - ternbicycles.com + - www.ternbicycles.com + - r-m.de + - www.r-m.de +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://yubabikes.com/shop/bikes/longtail/" + - "https://xtracycle.com/products/swoop-asm-family-cargo" + - "https://www.ternbicycles.com/en/bikes/473/gsd" + - "https://www.r-m.de/en-en/bikes/nevo5/" + +htmlRoutes: + - id: cargo-ebike-oems + match: + exactSegments: false + mode: cargo_ebike_oems_html diff --git a/internal/extract/manifests/chairish-1stdibs.yaml b/internal/extract/manifests/chairish-1stdibs.yaml new file mode 100644 index 0000000..59f9aab --- /dev/null +++ b/internal/extract/manifests/chairish-1stdibs.yaml @@ -0,0 +1,28 @@ +# Shared Go + TypeScript Declarative Site Adapter: Chairish & 1stDibs (#367) +id: chairish-1stdibs +name: Chairish & 1stDibs Vintage Design Marketplaces +category: commerce-social +description: "Extracts vintage and luxury furniture/design Product and multi-currency Offer[] JSON-LD along with dimensions and condition attributes from Chairish and 1stDibs." +domains: + - chairish.com + - www.chairish.com + - 1stdibs.com + - www.1stdibs.com +auth_mode: html +min_interval_ms: 1500 +strict_robots: true +exampleUrls: + - "https://www.chairish.com/product/194022/early-c1920s-liberty-co-attr-anglo-english-egyptian-revival-thebes-stool-original-ebony-finish" + - "https://www.1stdibs.com/furniture/seating/armchairs/pair-vintage-red-1970s-vico-magistretti-carimate-armchairs-chair-cassina-2pc/id-f_53095452/" + +htmlRoutes: + - id: chairish-1stdibs + match: + anyOf: + - pathPrefix: /product/ + - pathPrefix: /furniture/ + - pathPrefix: /art/ + - pathPrefix: /jewelry/ + - pathPrefix: /fashion/ + - pathPrefix: /creators/ + mode: chairish_1stdibs_html diff --git a/internal/extract/manifests/compiled.json b/internal/extract/manifests/compiled.json index 72b5033..167ae6c 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":"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"]}}]}]} +{"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":"back-market-swappa","name":"Back Market & Swappa Refurbished Electronics","category":"commerce-social","description":"Extracts refurbished electronics Product/AggregateOffer JSON-LD and specifications from Back Market and Swappa while rejecting bot-challenge and SPA shells.","domains":["backmarket.com","www.backmarket.com","swappa.com","www.swappa.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.backmarket.com/en-us/p/iphone-13-512gb-red-locked-verizon/f600a6e0-4627-4b38-b17d-efa60fed7568","https://swappa.com/buy/apple-iphone-14"],"htmlRoutes":[{"id":"back-market-swappa","match":{"anyOf":[{"pathPrefix":"/en-us/p/"},{"pathPrefix":"/p/"},{"pathPrefix":"/buy/"},{"pathPrefix":"/listing/"},{"pathPrefix":"/listings/"}]},"mode":"back_market_swappa_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":"bicycle-blue-book","name":"Bicycle Blue Book Value Guide","category":"commerce-social","description":"Extracts Bicycle Blue Book original MSRP, private-party used estimate range, trade-in values, 12-month projected trend, and model lists.","domains":["bicyclebluebook.com","www.bicyclebluebook.com"],"auth_mode":"html","min_interval_ms":1000,"strict_robots":true,"exampleUrls":["https://www.bicyclebluebook.com/value-guide/cyclocross/all-city/macho-king-ltd/2017","https://www.bicyclebluebook.com/value-guide/cyclocross/all-city"],"htmlRoutes":[{"id":"bicycle-blue-book","match":{"anyOf":[{"pathEquals":["/value-guide"]},{"pathPrefix":"/value-guide/"},{"pathPrefix":"/marketplace/"},{"pathPrefix":"/listing/"}]},"mode":"bicycle_blue_book_html"}]},{"id":"bicycle-brake-docs","name":"Bicycle Brake Docs & Rotor/Pad Specs","category":"commerce-social","description":"Extracts hydraulic brake fluid type, piston count, rotor diameter/thickness, pad compatibility, and bleed manuals from Magura, Hayes, Tektro, and TRP.","domains":["magura.com","www.magura.com","hayesbicycle.com","www.hayesbicycle.com","tektro.com","www.tektro.com","trpcycling.com","www.trpcycling.com"],"auth_mode":"html","exampleUrls":["https://magura.com/product/mt7-pro/","https://hayesbicycle.com/collections/disc-brakes","https://tektro.com/en/product/315","https://trpcycling.com/collections/brakes"],"htmlRoutes":[{"id":"bicycle-brake-docs","match":{"exactSegments":false},"mode":"bicycle_brake_docs_html"}]},{"id":"bicycle-tire-specs","name":"Bicycle Tire Technical Specifications","category":"commerce-social","description":"Extracts ISO 5775 validated ETRTO sizes, imperial/French tire sizes, TPI, compound, bead, weight, and tubeless specs from Maxxis, Schwalbe, Continental, WTB, Kenda, and Teravail.","domains":["maxxis.com","www.maxxis.com","schwalbe.com","www.schwalbe.com","schwalbetires.com","www.schwalbetires.com","continental-tires.com","www.continental-tires.com","wtb.com","www.wtb.com","kendatire.com","bicycle.kendatire.com","teravail.com","www.teravail.com"],"auth_mode":"html","exampleUrls":["https://www.maxxis.com/us/tire/minion-dhf/","https://www.schwalbetires.com/Magic-Mary-11654598.01","https://www.wtb.com/products/vigilante","https://www.teravail.com/products/cannonball-gen-2-tire","https://www.continental-tires.com/products/bicycle/tires/grand-prix-5000/","https://bicycle.kendatire.com/en-us/find-a-tire/"],"htmlRoutes":[{"id":"bicycle-tire-specs","match":{"exactSegments":false},"mode":"bicycle_tire_specs_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":"cargo-ebike-oems","name":"Cargo E-Bike OEMs (Yuba, Xtracycle, Tern, Riese & Muller)","category":"commerce-social","description":"Extracts cargo e-bike payload, GVWR, battery Wh, motor torque/power, and product specifications from Yuba, Xtracycle, Tern, and Riese & Muller.","domains":["yubabikes.com","www.yubabikes.com","xtracycle.com","www.xtracycle.com","ternbicycles.com","www.ternbicycles.com","r-m.de","www.r-m.de"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://yubabikes.com/shop/bikes/longtail/","https://xtracycle.com/products/swoop-asm-family-cargo","https://www.ternbicycles.com/en/bikes/473/gsd","https://www.r-m.de/en-en/bikes/nevo5/"],"htmlRoutes":[{"id":"cargo-ebike-oems","match":{"exactSegments":false},"mode":"cargo_ebike_oems_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":"chairish-1stdibs","name":"Chairish & 1stDibs Vintage Design Marketplaces","category":"commerce-social","description":"Extracts vintage and luxury furniture/design Product and multi-currency Offer[] JSON-LD along with dimensions and condition attributes from Chairish and 1stDibs.","domains":["chairish.com","www.chairish.com","1stdibs.com","www.1stdibs.com"],"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://www.chairish.com/product/194022/early-c1920s-liberty-co-attr-anglo-english-egyptian-revival-thebes-stool-original-ebony-finish","https://www.1stdibs.com/furniture/seating/armchairs/pair-vintage-red-1970s-vico-magistretti-carimate-armchairs-chair-cassina-2pc/id-f_53095452/"],"htmlRoutes":[{"id":"chairish-1stdibs","match":{"anyOf":[{"pathPrefix":"/product/"},{"pathPrefix":"/furniture/"},{"pathPrefix":"/art/"},{"pathPrefix":"/jewelry/"},{"pathPrefix":"/fashion/"},{"pathPrefix":"/creators/"}]},"mode":"chairish_1stdibs_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-ebike-incidents","name":"CPSC SaferProducts E-Bike & Micromobility Incidents","category":"public-records","description":"Bounded SaferProducts.gov ProductType/ProductDescription JSON and PublicSearch HTML extractor for bicycle, e-bike, and battery incidents (path/query-disjoint from cpsc-recalls RecallNumber queries).","domains":["saferproducts.gov","www.saferproducts.gov"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle","https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription=ebike"],"routes":[{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["ProductType","productType","producttype","PRODUCTTYPE"],"param":"productType","charset":"cpsc_query_term","minLen":2,"maxLen":60}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType={productType}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cpsc_ebike_incidents_json"}},{"match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"pathEquals":["/RestWebServices/Recall","/RestWebServices/Recall/"],"queryParams":[{"names":["ProductDescription","productDescription","productdescription","PRODUCTDESCRIPTION"],"param":"productDesc","charset":"cpsc_query_term","minLen":2,"maxLen":80}]},"twin":{"fetchUrl":"https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription={productDesc}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"cpsc_ebike_incidents_json"}}],"htmlRoutes":[{"id":"cpsc-ebike-incidents","match":{"hosts":["www.saferproducts.gov","saferproducts.gov"],"anyOf":[{"pathEquals":["/PublicSearch","/PublicSearch/"]},{"pathPrefix":"/PublicSearch/"}]},"mode":"cpsc_ebike_incidents_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":"creator-digital-stores","name":"Gumroad, Lemon Squeezy, Payhip & Sellfy","category":"commerce-social","description":"Extracts digital product pricing, ratings, creator info, and descriptions from Gumroad, Lemon Squeezy, Payhip, and Sellfy storefronts via JSON-LD, OpenGraph, and DOM fallback.","domains":["gumroad.com","www.gumroad.com","*.gumroad.com","lemonsqueezy.com","www.lemonsqueezy.com","*.lemonsqueezy.com","payhip.com","www.payhip.com","sellfy.com","www.sellfy.com"],"universalEngine":true,"auth_mode":"html","min_interval_ms":1500,"strict_robots":true,"exampleUrls":["https://geoimgr.gumroad.com/l/geoimgr","https://gumroad.com/discover"],"htmlRoutes":[{"id":"creator-digital-stores","match":{"hosts":["gumroad.com","www.gumroad.com","*.gumroad.com","lemonsqueezy.com","www.lemonsqueezy.com","*.lemonsqueezy.com","payhip.com","www.payhip.com","sellfy.com","www.sellfy.com"],"anyOf":[{"pathPrefix":"/l/"},{"pathPrefix":"/buy/"},{"pathPrefix":"/checkout/buy/"},{"pathPrefix":"/b/"},{"pathPrefix":"/p/"},{"pathEquals":["/discover"]},{"pathPrefix":"/discover/"}]},"mode":"creator_digital_stores_html"},{"id":"creator-digital-stores","match":{"anyOf":[{"hostSubdomain":{"suffix":".sellfy.store","param":"storeSub"},"pathPrefix":"/p/"},{"hostSubdomain":{"suffix":".sellfy.store","param":"storeSub"},"pathPrefix":"/buy/"}]},"mode":"creator_digital_stores_html"}]},{"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":"e-bike-state-laws","name":"E-Bike State Laws & Legislative Citations (NCSL & State Statutes)","category":"public-records","description":"Extracts electric-bicycle state legislation and statutory definitions from NCSL and state statute portals with markdown citations to Cornell LII and LegiScan (disjoint from ebike-state-laws).","domains":["ncsl.org","www.ncsl.org","revisor.mn.gov","www.revisor.mn.gov","app.leg.wa.gov","leg.colorado.gov","www.leg.colorado.gov"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://www.ncsl.org/transportation/traffic-safety-trends-state-legislative-action-2025","https://www.revisor.mn.gov/statutes/cite/169.222","https://app.leg.wa.gov/RCW/default.aspx?cite=46.61.710","https://leg.colorado.gov/content/electric-bicycles"],"htmlRoutes":[{"id":"e-bike-state-laws","match":{"exactSegments":false},"mode":"e_bike_state_laws_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-drive-systems","name":"E-Bike Drive Systems (Yamaha, Brose/QORE, Mahle, Fazua)","category":"commerce-social","description":"Extracts motor torque, watt ratings, battery Wh capacity, and technical specs from Yamaha, Brose/QORE, Mahle SmartBike, and Fazua e-bike drive pages.","domains":["yamahabicycles.com","www.yamahabicycles.com","global.yamaha-motor.com","brose-ebike.com","www.brose-ebike.com","qore-system.de","www.qore-system.de","mahle-smartbike.com","www.mahle-smartbike.com","fazua.com","www.fazua.com"],"auth_mode":"html","exampleUrls":["https://www.yamahabicycles.com/bikes/WabashRT","https://mahle-smartbike.com/x20/","https://fazua.com/en/products/ride-60/","https://www.qore-system.de/"],"htmlRoutes":[{"id":"ebike-drive-systems","match":{"exactSegments":false},"mode":"ebike_drive_systems_html"}]},{"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":"fox-ridefox","name":"FOX RideFOX Suspension & Tech Docs","category":"developer","description":"Extracts FOX fork and shock specifications, service intervals, 4-char Tune ID codes, and manual PDF links from tech.ridefox.com and ridefox.com.","domains":["tech.ridefox.com","ridefox.com","www.ridefox.com"],"auth_mode":"html","exampleUrls":["https://tech.ridefox.com/bike/search/code/DKC6","https://ridefox.com/pages/bike"],"htmlRoutes":[{"id":"fox-ridefox","match":{"exactSegments":false},"mode":"fox_ridefox_html"}]},{"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":"geometrygeeks-99spokes","name":"Geometry Geeks & 99 Spokes","category":"commerce-social","description":"Extracts bicycle geometry tables (reach, stack, HTA, STA, chainstay, wheelbase) and component specs from Geometry Geeks and 99 Spokes while rejecting Cloudflare WAF blocks and empty shells.","domains":["geometrygeeks.bike","www.geometrygeeks.bike","99spokes.com","www.99spokes.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://geometrygeeks.bike/bike/specialized-stumpjumper-evo-2021/"],"htmlRoutes":[{"id":"geometrygeeks-99spokes","match":{"exactSegments":false},"mode":"geometrygeeks_99spokes_html"}]},{"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":"ifixit","name":"iFixit Repair Guides & Wikis","category":"developer","description":"Extracts repair guides, steps, tools, parts, and category wikis from ifixit.com /api/2.0/ JSON endpoints with HTML fallback.","domains":["ifixit.com","www.ifixit.com"],"auth_mode":"pub","exampleUrls":["https://www.ifixit.com/api/2.0/guides/1","https://www.ifixit.com/api/2.0/wikis/CATEGORY/Bicycle","https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537"],"routes":[{"match":{"hosts":["ifixit.com","www.ifixit.com"],"exactSegments":true,"pathSegments":["api","2.0","guides",{"param":"guideId","charset":"digits","minLen":1,"maxLen":16}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ifixit_json"}},{"match":{"hosts":["ifixit.com","www.ifixit.com"],"exactSegments":false,"pathSegments":["api","2.0","wikis",{"param":"ns","charset":"url_seg","minLen":1,"maxLen":40},{"param":"name","charset":"safe_subpath","greedy":true,"minLen":1,"maxLen":200}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"ifixit_json"}}],"htmlRoutes":[{"id":"ifixit","match":{"hosts":["ifixit.com","www.ifixit.com"],"exactSegments":false},"mode":"ifixit_html"}]},{"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":{"excludeHosts":["offerup.com","www.offerup.com"],"exactSegments":true,"pathSegments":["api","v3","post"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"excludeHosts":["offerup.com","www.offerup.com"],"exactSegments":true,"pathSegments":["api","v3","comment","list"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"excludeHosts":["offerup.com","www.offerup.com"],"exactSegments":true,"pathSegments":["api","v3","community"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json","maxBytes":2097152},"extract":{"jsonMode":"lemmy_json"}},{"match":{"excludeHosts":["offerup.com","www.offerup.com"],"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":{"excludeHosts":["offerup.com","www.offerup.com"],"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":"local-classifieds-marketplaces","name":"Craigslist, OfferUp & Facebook Marketplace","category":"commerce-social","description":"Extracts local classifieds listings and search feeds from Craigslist, OfferUp, and public Facebook Marketplace metadata while strictly honoring robots.txt and classifying login walls, blocks, and empty CSR shells.","domains":["craigslist.org","www.craigslist.org","*.craigslist.org","offerup.com","www.offerup.com","facebook.com","www.facebook.com","m.facebook.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.craigslist.org/view/d/san-francisco-wahoo-kickr-core-bike/rv3daGwPjNSovN5fQ4JpLk","https://sfbay.craigslist.org/search/bik","https://offerup.com/c/bikes-and-cycling","https://www.facebook.com/marketplace/sanfrancisco/bicycles"],"htmlRoutes":[{"id":"local-classifieds-marketplaces","match":{"anyOf":[{"pathPrefix":"/view/d/"},{"pathPrefix":"/search/"},{"pathPrefix":"/c/"},{"pathPrefix":"/explore/"},{"pathPrefix":"/item/detail/"},{"pathEquals":["/marketplace"]},{"pathPrefix":"/marketplace/"},{"pathContainsSegment":"d"}]},"mode":"local_classifieds_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":"mtb-geometry-brands","name":"MTB Geometry Brands (Yeti, Ibis, Pivot, Transition, Revel)","category":"commerce-social","description":"Extracts mountain bike geometry tables, Nuxt hydration data, suspension travel, and build kits from Yeti, Ibis, Pivot, Transition, and Revel.","domains":["yeticycles.com","www.yeticycles.com","ibiscycles.com","www.ibiscycles.com","pivotcycles.com","www.pivotcycles.com","transitionbikes.com","www.transitionbikes.com","revelbikes.com","www.revelbikes.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://yeticycles.com/en-us/bikes/sb140","https://www.ibiscycles.com/bikes/ripmo","https://www.pivotcycles.com/en/bikes/shuttle-ampd","https://www.transitionbikes.com/Bikes/Sentinel","https://revelbikes.com/products/rascal-sram-eagle-90-kit-2026"],"htmlRoutes":[{"id":"mtb-geometry-brands","match":{"exactSegments":false},"mode":"mtb_geometry_brands_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":"park-tool","name":"Park Tool Repair Help & Tool Specs","category":"developer","description":"Extracts ordered bicycle repair steps, required tools, HowTo JSON-LD, and tool specification tables from parktool.com repair help and product pages.","domains":["parktool.com","www.parktool.com"],"auth_mode":"html","exampleUrls":["https://www.parktool.com/en-us/blog/repair-help/rear-derailleur-adjustment","https://www.parktool.com/en-us/product/chain-checker-cc-4"],"htmlRoutes":[{"id":"park-tool","match":{"exactSegments":false},"mode":"park_tool_html"}]},{"id":"peer-resale-fashion","name":"Mercari, Poshmark, Depop & Grailed Resale","category":"commerce-social","description":"Extracts public peer-to-peer fashion and secondhand listings from Poshmark, Mercari, Depop, and Grailed via JSON-LD, hydration state, and DOM fallback with strict WAF/404 guards.","domains":["mercari.com","www.mercari.com","poshmark.com","www.poshmark.com","depop.com","www.depop.com","grailed.com","www.grailed.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://poshmark.com/listing/ANTHROPOLOGIE-Saturday-Sunday-Annika-2Piece-Waffle-Knit-Lounge-Set-2X-6a67deaeb6af921bbc5288a4","https://poshmark.com/category/Women","https://www.mercari.com/us/category/1/"],"htmlRoutes":[{"id":"peer-resale-fashion","match":{"anyOf":[{"pathPrefix":"/listing/"},{"pathPrefix":"/category/"},{"pathPrefix":"/brand/"},{"pathPrefix":"/us/item/"},{"pathPrefix":"/us/category/"},{"pathPrefix":"/products/"},{"pathPrefix":"/listings/"},{"pathPrefix":"/shop/"}]},"mode":"peer_resale_fashion_html"}]},{"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":"pinkbike-buysell","name":"Pinkbike BuySell Marketplace","category":"commerce-social","description":"Extracts bicycle classified listings and category search results from Pinkbike BuySell while strictly rejecting Cloudflare challenge shells.","domains":["pinkbike.com","www.pinkbike.com"],"auth_mode":"html","min_interval_ms":2000,"max_concurrent":1,"strict_robots":true,"exampleUrls":["https://www.pinkbike.com/buysell/","https://www.pinkbike.com/buysell/list/?category=2"],"htmlRoutes":[{"id":"pinkbike-buysell","match":{"anyOf":[{"pathEquals":["/buysell"]},{"pathPrefix":"/buysell/"}]},"mode":"pinkbike_buysell_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":"qbp-frame-brands","name":"Frame & Touring Bike Brands (Surly, Salsa, All-City)","category":"commerce-social","description":"Extracts public bicycle frame specifications, axle/tire clearance, and geometry tables from Surly, Salsa, and All-City public brand sites.","domains":["surlybikes.com","www.surlybikes.com","salsacycles.com","www.salsacycles.com","allcitycycles.com","www.allcitycycles.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://surlybikes.com/collections/karate-monkey","https://www.salsacycles.com/products/fargo-32-steel-frameset"],"htmlRoutes":[{"id":"qbp-frame-brands","match":{"exactSegments":false},"mode":"qbp_frame_brands_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.verisign.com","rdap.arin.net","rdap.apnic.net","rdap.db.ripe.net","rdap.ripe.net","rdap.lacnic.net","rdap.afrinic.net","rdap.org","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"}},{"match":{"excludeHosts":["data.iana.org"],"exactSegments":false,"pathPrefix":"/rdap/","anyOf":[{"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":"reverb","name":"Reverb Musical Instruments Marketplace","category":"commerce-social","description":"Extracts Reverb musical instrument listings and catalog search results via api.reverb.com HAL+JSON endpoints with Accept-Version: 3.0.","domains":["reverb.com","www.reverb.com","api.reverb.com"],"auth_mode":"pub","min_interval_ms":1000,"exampleUrls":["https://reverb.com/item/36356670-fender-stratocaster-knob-set-black","https://api.reverb.com/api/listings/36356670","https://api.reverb.com/api/listings?query=fender+stratocaster&per_page=2"],"routes":[{"match":{"hosts":["reverb.com","www.reverb.com"],"optionalLeadingLocale":true,"exactSegments":true,"pathSegments":["item",{"param":"listingId","charset":"leading_digits_slug","transform":"leading_digits","minLen":1,"maxLen":220}]},"twin":{"fetchUrl":"https://api.reverb.com/api/listings/{listingId}","kind":"json","accept":"application/hal+json","headers":{"Accept-Version":"3.0"},"maxBytes":2097152},"extract":{"jsonMode":"reverb_listing_json"}},{"match":{"hosts":["api.reverb.com"],"exactSegments":true,"pathSegments":["api","listings",{"param":"listingId","charset":"digits","minLen":1,"maxLen":24}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/hal+json","headers":{"Accept-Version":"3.0"},"maxBytes":2097152},"extract":{"jsonMode":"reverb_listing_json"}},{"match":{"hosts":["api.reverb.com"],"pathEquals":["/api/listings"]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/hal+json","headers":{"Accept-Version":"3.0"},"maxBytes":2097152},"extract":{"jsonMode":"reverb_search_json"}}]},{"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":"sheldon-brown","name":"Sheldon Brown Bicycle Technical Reference","category":"research-health","description":"Extracts bicycle technical reference articles, gear/ISO tire crib tables, and glossary definitions from sheldonbrown.com.","domains":["sheldonbrown.com","www.sheldonbrown.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://www.sheldonbrown.com/gear-calc.html","https://www.sheldonbrown.com/gloss_e-f.html"],"htmlRoutes":[{"id":"sheldon-brown","match":{"exactSegments":false},"mode":"sheldon_brown_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","upway.co","www.upway.co"],"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":{"excludeHosts":["upway.co","www.upway.co"],"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":{"excludeHosts":["upway.co","www.upway.co"],"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-turbo-support","name":"Specialized Turbo E-Bike Support","category":"developer","description":"Extracts rendered Turbo e-bike support and diagnostic KB articles on support.specialized.com while strictly rejecting unhydrated eGain JS launcher shells and 403 gateway responses.","domains":["support.specialized.com"],"auth_mode":"html","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://support.specialized.com/kb/sp_en-us/home"],"htmlRoutes":[{"id":"specialized-turbo-support","match":{"exactSegments":false},"mode":"specialized_turbo_support_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":"suspension-cockpit-compat","name":"Suspension & Cockpit Compatibility Specs","category":"commerce-social","description":"Extracts SHIS headset codes, chainring BCD/mount standards, rear shock sizing, and fitment tables from Wolf Tooth, Ohlins, PUSH Industries, and Cane Creek.","domains":["wolftoothcomponents.com","www.wolftoothcomponents.com","ohlins.com","www.ohlins.com","pushindustries.com","www.pushindustries.com","canecreek.com","www.canecreek.com"],"auth_mode":"html","exampleUrls":["https://www.wolftoothcomponents.com/collections/chainrings","https://www.ohlins.com/en-us/bicycle","https://www.pushindustries.com/products/elevensix","https://www.canecreek.com/collections/headsets"],"htmlRoutes":[{"id":"suspension-cockpit-compat","match":{"exactSegments":false},"mode":"suspension_cockpit_compat_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":"ul-product-iq","name":"UL Product iQ & UL iQ Certifications","category":"public-records","description":"Extracts UL 2849 / UL 2271 e-bike and battery certification listings from iq.ul.com and UL Product iQ (disjoint from ul.com owned by cpsc-ebike-battery) while rejecting blocked/WAF shells.","domains":["iq.ul.com","productiq.ulprospector.com","iq.ulprospector.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://iq.ul.com/"],"htmlRoutes":[{"id":"ul-product-iq","match":{"exactSegments":false},"mode":"ul_product_iq_html"}]},{"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":"us-ebike-oems","name":"US E-Bike OEMs (Gazelle, Electra, Benno, Pedego, Serial 1)","category":"commerce-social","description":"Extracts Class 1/2/3 ratings, battery Wh, motor specs, and model specifications from Gazelle, Electra, Benno, Pedego, and Serial 1.","domains":["gazellebikes.com","www.gazellebikes.com","electra.trekbikes.com","bennobikes.com","www.bennobikes.com","pedegoelectricbikes.com","www.pedegoelectricbikes.com","serial1.com","www.serial1.com"],"auth_mode":"html","min_interval_ms":1000,"exampleUrls":["https://www.gazellebikes.com/en-us/models/gazelle-arroyo","https://electra.trekbikes.com/us/en_US/bikes/electra-bikes/c/EB100/","https://bennobikes.com/e-bikes/boost/","https://pedegoelectricbikes.com/products/interceptor"],"htmlRoutes":[{"id":"us-ebike-oems","match":{"exactSegments":false},"mode":"us_ebike_oems_html"}]},{"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":"used-bikes-shopify","name":"The Pro's Closet & Upway Used Bikes","category":"commerce-social","description":"Extracts certified pre-owned bicycle and e-bike listings from The Pro's Closet (Shopify JSON + HTML fallback) and Upway (Hydrogen + JSON-LD HTML) while honoring Upway's Crawl-delay and rejecting 404 homepage shells.","domains":["theproscloset.com","www.theproscloset.com","upway.co","www.upway.co"],"auth_mode":"pub","min_interval_ms":2000,"strict_robots":true,"exampleUrls":["https://www.theproscloset.com/products/10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm","https://www.theproscloset.com/products.json?limit=5&page=1","https://upway.co/products/lane-lane-express-uaa01"],"routes":[{"match":{"hosts":["theproscloset.com","www.theproscloset.com"],"anyOf":[{"pathEquals":["/products.json"]},{"exactSegments":true,"pathSegments":["collections",{"param":"col","charset":"slug","maxLen":160},"products.json"]}]},"twin":{"fetchUrl":"{requestUrl}","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_catalog_page"}},{"match":{"hosts":["theproscloset.com","www.theproscloset.com"],"pathSuffix":".json","scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".json","maxLen":160}},"twin":{"fetchUrl":"https://{host}/products/{handle}.json","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product"}},{"match":{"hosts":["theproscloset.com","www.theproscloset.com"],"scanSegment":{"afterLiteral":"products","param":"handle","charset":"slug","stripSuffix":".js","maxLen":160}},"twin":{"fetchUrl":"https://{host}/products/{handle}.js","kind":"json","accept":"application/json"},"extract":{"commerceMode":"shopify_product_js"}}],"htmlRoutes":[{"id":"used-bikes-shopify","match":{"anyOf":[{"pathPrefix":"/products/"},{"pathPrefix":"/collections/"}]},"mode":"used_bikes_shopify_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":"wheel-hub-specs","name":"Bicycle Wheel & Hub Technical Specs","category":"commerce-social","description":"Extracts hub axle spacing (O.L.D.), freehub compatibility, engagement, spoke counts, and service manuals from DT Swiss, Industry Nine, Chris King, and Hope Technology.","domains":["dtswiss.com","www.dtswiss.com","industrynine.com","www.industrynine.com","chrisking.com","www.chrisking.com","hopetech.com","www.hopetech.com"],"auth_mode":"html","exampleUrls":["https://www.dtswiss.com/en/components/hubs-and-rws/hubs-mtb/350","https://industrynine.com/products/sector-al","https://chrisking.com/collections/hubs-all","https://www.hopetech.com/products/hubs/mountain-bike/"],"htmlRoutes":[{"id":"wheel-hub-specs","match":{"exactSegments":false},"mode":"wheel_hub_specs_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/cpsc-ebike-incidents.yaml b/internal/extract/manifests/cpsc-ebike-incidents.yaml new file mode 100644 index 0000000..27333f8 --- /dev/null +++ b/internal/extract/manifests/cpsc-ebike-incidents.yaml @@ -0,0 +1,79 @@ +# Shared Go + TypeScript Declarative Site Adapter: CPSC SaferProducts E-Bike & Micromobility Incidents (#358) +id: cpsc-ebike-incidents +name: "CPSC SaferProducts E-Bike & Micromobility Incidents" +category: public-records +description: "Bounded SaferProducts.gov ProductType/ProductDescription JSON and PublicSearch HTML extractor for bicycle, e-bike, and battery incidents (path/query-disjoint from cpsc-recalls RecallNumber queries)." +domains: + - saferproducts.gov + - www.saferproducts.gov +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle" + - "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription=ebike" + +routes: + # Bounded SaferProducts REST lookup by ProductType (disjoint from cpsc-recalls RecallNumber) + - match: + hosts: + - www.saferproducts.gov + - saferproducts.gov + pathEquals: + - /RestWebServices/Recall + - /RestWebServices/Recall/ + queryParams: + - names: + - ProductType + - productType + - producttype + - PRODUCTTYPE + param: productType + charset: cpsc_query_term + minLen: 2 + maxLen: 60 + twin: + fetchUrl: "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType={productType}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: cpsc_ebike_incidents_json + + # Bounded SaferProducts REST lookup by ProductDescription (disjoint from cpsc-recalls RecallNumber) + - match: + hosts: + - www.saferproducts.gov + - saferproducts.gov + pathEquals: + - /RestWebServices/Recall + - /RestWebServices/Recall/ + queryParams: + - names: + - ProductDescription + - productDescription + - productdescription + - PRODUCTDESCRIPTION + param: productDesc + charset: cpsc_query_term + minLen: 2 + maxLen: 80 + twin: + fetchUrl: "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription={productDesc}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: cpsc_ebike_incidents_json + +htmlRoutes: + - id: cpsc-ebike-incidents + match: + hosts: + - www.saferproducts.gov + - saferproducts.gov + anyOf: + - pathEquals: + - /PublicSearch + - /PublicSearch/ + - pathPrefix: /PublicSearch/ + mode: cpsc_ebike_incidents_html diff --git a/internal/extract/manifests/creator-digital-stores.yaml b/internal/extract/manifests/creator-digital-stores.yaml new file mode 100644 index 0000000..b626fca --- /dev/null +++ b/internal/extract/manifests/creator-digital-stores.yaml @@ -0,0 +1,61 @@ +# Shared Go + TypeScript Declarative Site Adapter: Creator Digital Stores (#366) +id: creator-digital-stores +name: Gumroad, Lemon Squeezy, Payhip & Sellfy +category: commerce-social +description: "Extracts digital product pricing, ratings, creator info, and descriptions from Gumroad, Lemon Squeezy, Payhip, and Sellfy storefronts via JSON-LD, OpenGraph, and DOM fallback." +domains: + - gumroad.com + - www.gumroad.com + - "*.gumroad.com" + - lemonsqueezy.com + - www.lemonsqueezy.com + - "*.lemonsqueezy.com" + - payhip.com + - www.payhip.com + - sellfy.com + - www.sellfy.com +universalEngine: true +auth_mode: html +min_interval_ms: 1500 +strict_robots: true +exampleUrls: + - "https://geoimgr.gumroad.com/l/geoimgr" + - "https://gumroad.com/discover" + +htmlRoutes: + - id: creator-digital-stores + match: + hosts: + - gumroad.com + - www.gumroad.com + - "*.gumroad.com" + - lemonsqueezy.com + - www.lemonsqueezy.com + - "*.lemonsqueezy.com" + - payhip.com + - www.payhip.com + - sellfy.com + - www.sellfy.com + anyOf: + - pathPrefix: /l/ + - pathPrefix: /buy/ + - pathPrefix: /checkout/buy/ + - pathPrefix: /b/ + - pathPrefix: /p/ + - pathEquals: + - /discover + - pathPrefix: /discover/ + mode: creator_digital_stores_html + + - id: creator-digital-stores + match: + anyOf: + - hostSubdomain: + suffix: .sellfy.store + param: storeSub + pathPrefix: /p/ + - hostSubdomain: + suffix: .sellfy.store + param: storeSub + pathPrefix: /buy/ + mode: creator_digital_stores_html diff --git a/internal/extract/manifests/e-bike-state-laws.yaml b/internal/extract/manifests/e-bike-state-laws.yaml new file mode 100644 index 0000000..318bf9d --- /dev/null +++ b/internal/extract/manifests/e-bike-state-laws.yaml @@ -0,0 +1,26 @@ +# Shared Go + TypeScript Declarative Site Adapter: E-Bike State Laws & Statutes (#357) +id: e-bike-state-laws +name: "E-Bike State Laws & Legislative Citations (NCSL & State Statutes)" +category: public-records +description: "Extracts electric-bicycle state legislation and statutory definitions from NCSL and state statute portals with markdown citations to Cornell LII and LegiScan (disjoint from ebike-state-laws)." +domains: + - ncsl.org + - www.ncsl.org + - revisor.mn.gov + - www.revisor.mn.gov + - app.leg.wa.gov + - leg.colorado.gov + - www.leg.colorado.gov +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://www.ncsl.org/transportation/traffic-safety-trends-state-legislative-action-2025" + - "https://www.revisor.mn.gov/statutes/cite/169.222" + - "https://app.leg.wa.gov/RCW/default.aspx?cite=46.61.710" + - "https://leg.colorado.gov/content/electric-bicycles" + +htmlRoutes: + - id: e-bike-state-laws + match: + exactSegments: false + mode: e_bike_state_laws_html diff --git a/internal/extract/manifests/ebike-drive-systems.yaml b/internal/extract/manifests/ebike-drive-systems.yaml new file mode 100644 index 0000000..d421b89 --- /dev/null +++ b/internal/extract/manifests/ebike-drive-systems.yaml @@ -0,0 +1,29 @@ +# Shared Go + TypeScript Declarative Site Adapter: E-Bike Drive Systems (#344) +id: ebike-drive-systems +name: E-Bike Drive Systems (Yamaha, Brose/QORE, Mahle, Fazua) +category: commerce-social +description: "Extracts motor torque, watt ratings, battery Wh capacity, and technical specs from Yamaha, Brose/QORE, Mahle SmartBike, and Fazua e-bike drive pages." +domains: + - yamahabicycles.com + - www.yamahabicycles.com + - global.yamaha-motor.com + - brose-ebike.com + - www.brose-ebike.com + - qore-system.de + - www.qore-system.de + - mahle-smartbike.com + - www.mahle-smartbike.com + - fazua.com + - www.fazua.com +auth_mode: html +exampleUrls: + - "https://www.yamahabicycles.com/bikes/WabashRT" + - "https://mahle-smartbike.com/x20/" + - "https://fazua.com/en/products/ride-60/" + - "https://www.qore-system.de/" + +htmlRoutes: + - id: ebike-drive-systems + match: + exactSegments: false + mode: ebike_drive_systems_html diff --git a/internal/extract/manifests/fox-ridefox.yaml b/internal/extract/manifests/fox-ridefox.yaml new file mode 100644 index 0000000..c863656 --- /dev/null +++ b/internal/extract/manifests/fox-ridefox.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: FOX RideFOX Tech & Suspension (#341) +id: fox-ridefox +name: FOX RideFOX Suspension & Tech Docs +category: developer +description: "Extracts FOX fork and shock specifications, service intervals, 4-char Tune ID codes, and manual PDF links from tech.ridefox.com and ridefox.com." +domains: + - tech.ridefox.com + - ridefox.com + - www.ridefox.com +auth_mode: html +exampleUrls: + - "https://tech.ridefox.com/bike/search/code/DKC6" + - "https://ridefox.com/pages/bike" + +htmlRoutes: + - id: fox-ridefox + match: + exactSegments: false + mode: fox_ridefox_html diff --git a/internal/extract/manifests/geometrygeeks-99spokes.yaml b/internal/extract/manifests/geometrygeeks-99spokes.yaml new file mode 100644 index 0000000..d259d9c --- /dev/null +++ b/internal/extract/manifests/geometrygeeks-99spokes.yaml @@ -0,0 +1,20 @@ +# Shared Go + TypeScript Declarative Site Adapter: Geometry Geeks & 99 Spokes (#354) +id: geometrygeeks-99spokes +name: "Geometry Geeks & 99 Spokes" +category: commerce-social +description: "Extracts bicycle geometry tables (reach, stack, HTA, STA, chainstay, wheelbase) and component specs from Geometry Geeks and 99 Spokes while rejecting Cloudflare WAF blocks and empty shells." +domains: + - geometrygeeks.bike + - www.geometrygeeks.bike + - 99spokes.com + - www.99spokes.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://geometrygeeks.bike/bike/specialized-stumpjumper-evo-2021/" + +htmlRoutes: + - id: geometrygeeks-99spokes + match: + exactSegments: false + mode: geometrygeeks_99spokes_html diff --git a/internal/extract/manifests/ifixit.yaml b/internal/extract/manifests/ifixit.yaml new file mode 100644 index 0000000..6516a53 --- /dev/null +++ b/internal/extract/manifests/ifixit.yaml @@ -0,0 +1,70 @@ +# Shared Go + TypeScript Declarative Site Adapter: iFixit Repair Guides & Wikis (#343) +id: ifixit +name: iFixit Repair Guides & Wikis +category: developer +description: "Extracts repair guides, steps, tools, parts, and category wikis from ifixit.com /api/2.0/ JSON endpoints with HTML fallback." +domains: + - ifixit.com + - www.ifixit.com +auth_mode: pub +exampleUrls: + - "https://www.ifixit.com/api/2.0/guides/1" + - "https://www.ifixit.com/api/2.0/wikis/CATEGORY/Bicycle" + - "https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537" + +routes: + - match: + hosts: + - ifixit.com + - www.ifixit.com + exactSegments: true + pathSegments: + - api + - "2.0" + - guides + - param: guideId + charset: digits + minLen: 1 + maxLen: 16 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: ifixit_json + + - match: + hosts: + - ifixit.com + - www.ifixit.com + exactSegments: false + pathSegments: + - api + - "2.0" + - wikis + - param: ns + charset: url_seg + minLen: 1 + maxLen: 40 + - param: name + charset: safe_subpath + greedy: true + minLen: 1 + maxLen: 200 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + maxBytes: 2097152 + extract: + jsonMode: ifixit_json + +htmlRoutes: + - id: ifixit + match: + hosts: + - ifixit.com + - www.ifixit.com + exactSegments: false + mode: ifixit_html diff --git a/internal/extract/manifests/lemmy.yaml b/internal/extract/manifests/lemmy.yaml index 999a35f..d6585d3 100644 --- a/internal/extract/manifests/lemmy.yaml +++ b/internal/extract/manifests/lemmy.yaml @@ -18,6 +18,9 @@ exampleUrls: routes: - match: + excludeHosts: + - offerup.com + - www.offerup.com exactSegments: true pathSegments: - api @@ -31,6 +34,9 @@ routes: extract: jsonMode: lemmy_json - match: + excludeHosts: + - offerup.com + - www.offerup.com exactSegments: true pathSegments: - api @@ -45,6 +51,9 @@ routes: extract: jsonMode: lemmy_json - match: + excludeHosts: + - offerup.com + - www.offerup.com exactSegments: true pathSegments: - api @@ -58,6 +67,9 @@ routes: extract: jsonMode: lemmy_json - match: + excludeHosts: + - offerup.com + - www.offerup.com exactSegments: false pathSegments: - post @@ -73,6 +85,9 @@ routes: extract: jsonMode: lemmy_json - match: + excludeHosts: + - offerup.com + - www.offerup.com exactSegments: true pathSegments: - c diff --git a/internal/extract/manifests/local-classifieds-marketplaces.yaml b/internal/extract/manifests/local-classifieds-marketplaces.yaml new file mode 100644 index 0000000..33fe278 --- /dev/null +++ b/internal/extract/manifests/local-classifieds-marketplaces.yaml @@ -0,0 +1,37 @@ +# Shared Go + TypeScript Declarative Site Adapter: Local Classifieds Marketplaces (#365) +id: local-classifieds-marketplaces +name: Craigslist, OfferUp & Facebook Marketplace +category: commerce-social +description: "Extracts local classifieds listings and search feeds from Craigslist, OfferUp, and public Facebook Marketplace metadata while strictly honoring robots.txt and classifying login walls, blocks, and empty CSR shells." +domains: + - craigslist.org + - www.craigslist.org + - "*.craigslist.org" + - offerup.com + - www.offerup.com + - facebook.com + - www.facebook.com + - m.facebook.com +auth_mode: html +min_interval_ms: 2000 +strict_robots: true +exampleUrls: + - "https://www.craigslist.org/view/d/san-francisco-wahoo-kickr-core-bike/rv3daGwPjNSovN5fQ4JpLk" + - "https://sfbay.craigslist.org/search/bik" + - "https://offerup.com/c/bikes-and-cycling" + - "https://www.facebook.com/marketplace/sanfrancisco/bicycles" + +htmlRoutes: + - id: local-classifieds-marketplaces + match: + anyOf: + - pathPrefix: /view/d/ + - pathPrefix: /search/ + - pathPrefix: /c/ + - pathPrefix: /explore/ + - pathPrefix: /item/detail/ + - pathEquals: + - /marketplace + - pathPrefix: /marketplace/ + - pathContainsSegment: d + mode: local_classifieds_html diff --git a/internal/extract/manifests/mtb-geometry-brands.yaml b/internal/extract/manifests/mtb-geometry-brands.yaml new file mode 100644 index 0000000..bb8730e --- /dev/null +++ b/internal/extract/manifests/mtb-geometry-brands.yaml @@ -0,0 +1,30 @@ +# Shared Go + TypeScript Declarative Site Adapter: MTB Geometry Brands (#353) +id: mtb-geometry-brands +name: "MTB Geometry Brands (Yeti, Ibis, Pivot, Transition, Revel)" +category: commerce-social +description: "Extracts mountain bike geometry tables, Nuxt hydration data, suspension travel, and build kits from Yeti, Ibis, Pivot, Transition, and Revel." +domains: + - yeticycles.com + - www.yeticycles.com + - ibiscycles.com + - www.ibiscycles.com + - pivotcycles.com + - www.pivotcycles.com + - transitionbikes.com + - www.transitionbikes.com + - revelbikes.com + - www.revelbikes.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://yeticycles.com/en-us/bikes/sb140" + - "https://www.ibiscycles.com/bikes/ripmo" + - "https://www.pivotcycles.com/en/bikes/shuttle-ampd" + - "https://www.transitionbikes.com/Bikes/Sentinel" + - "https://revelbikes.com/products/rascal-sram-eagle-90-kit-2026" + +htmlRoutes: + - id: mtb-geometry-brands + match: + exactSegments: false + mode: mtb_geometry_brands_html diff --git a/internal/extract/manifests/park-tool.yaml b/internal/extract/manifests/park-tool.yaml new file mode 100644 index 0000000..e326a5a --- /dev/null +++ b/internal/extract/manifests/park-tool.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: Park Tool Repair Help & Specs (#342) +id: park-tool +name: Park Tool Repair Help & Tool Specs +category: developer +description: "Extracts ordered bicycle repair steps, required tools, HowTo JSON-LD, and tool specification tables from parktool.com repair help and product pages." +domains: + - parktool.com + - www.parktool.com +auth_mode: html +exampleUrls: + - "https://www.parktool.com/en-us/blog/repair-help/rear-derailleur-adjustment" + - "https://www.parktool.com/en-us/product/chain-checker-cc-4" + +htmlRoutes: + - id: park-tool + match: + exactSegments: false + mode: park_tool_html diff --git a/internal/extract/manifests/peer-resale-fashion.yaml b/internal/extract/manifests/peer-resale-fashion.yaml new file mode 100644 index 0000000..a69d2bb --- /dev/null +++ b/internal/extract/manifests/peer-resale-fashion.yaml @@ -0,0 +1,35 @@ +# Shared Go + TypeScript Declarative Site Adapter: Peer Resale Fashion (#364) +id: peer-resale-fashion +name: Mercari, Poshmark, Depop & Grailed Resale +category: commerce-social +description: "Extracts public peer-to-peer fashion and secondhand listings from Poshmark, Mercari, Depop, and Grailed via JSON-LD, hydration state, and DOM fallback with strict WAF/404 guards." +domains: + - mercari.com + - www.mercari.com + - poshmark.com + - www.poshmark.com + - depop.com + - www.depop.com + - grailed.com + - www.grailed.com +auth_mode: html +min_interval_ms: 2000 +strict_robots: true +exampleUrls: + - "https://poshmark.com/listing/ANTHROPOLOGIE-Saturday-Sunday-Annika-2Piece-Waffle-Knit-Lounge-Set-2X-6a67deaeb6af921bbc5288a4" + - "https://poshmark.com/category/Women" + - "https://www.mercari.com/us/category/1/" + +htmlRoutes: + - id: peer-resale-fashion + match: + anyOf: + - pathPrefix: /listing/ + - pathPrefix: /category/ + - pathPrefix: /brand/ + - pathPrefix: /us/item/ + - pathPrefix: /us/category/ + - pathPrefix: /products/ + - pathPrefix: /listings/ + - pathPrefix: /shop/ + mode: peer_resale_fashion_html diff --git a/internal/extract/manifests/pinkbike-buysell.yaml b/internal/extract/manifests/pinkbike-buysell.yaml new file mode 100644 index 0000000..3bbc030 --- /dev/null +++ b/internal/extract/manifests/pinkbike-buysell.yaml @@ -0,0 +1,24 @@ +# Shared Go + TypeScript Declarative Site Adapter: Pinkbike BuySell (#360) +id: pinkbike-buysell +name: Pinkbike BuySell Marketplace +category: commerce-social +description: "Extracts bicycle classified listings and category search results from Pinkbike BuySell while strictly rejecting Cloudflare challenge shells." +domains: + - pinkbike.com + - www.pinkbike.com +auth_mode: html +min_interval_ms: 2000 +max_concurrent: 1 +strict_robots: true +exampleUrls: + - "https://www.pinkbike.com/buysell/" + - "https://www.pinkbike.com/buysell/list/?category=2" + +htmlRoutes: + - id: pinkbike-buysell + match: + anyOf: + - pathEquals: + - /buysell + - pathPrefix: /buysell/ + mode: pinkbike_buysell_html diff --git a/internal/extract/manifests/qbp-frame-brands.yaml b/internal/extract/manifests/qbp-frame-brands.yaml new file mode 100644 index 0000000..36e485c --- /dev/null +++ b/internal/extract/manifests/qbp-frame-brands.yaml @@ -0,0 +1,23 @@ +# Shared Go + TypeScript Declarative Site Adapter: Frame & Touring Bike Brands (#352) +id: qbp-frame-brands +name: "Frame & Touring Bike Brands (Surly, Salsa, All-City)" +category: commerce-social +description: "Extracts public bicycle frame specifications, axle/tire clearance, and geometry tables from Surly, Salsa, and All-City public brand sites." +domains: + - surlybikes.com + - www.surlybikes.com + - salsacycles.com + - www.salsacycles.com + - allcitycycles.com + - www.allcitycycles.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://surlybikes.com/collections/karate-monkey" + - "https://www.salsacycles.com/products/fargo-32-steel-frameset" + +htmlRoutes: + - id: qbp-frame-brands + match: + exactSegments: false + mode: qbp_frame_brands_html diff --git a/internal/extract/manifests/rdap.yaml b/internal/extract/manifests/rdap.yaml index 3828ab4..3790f02 100644 --- a/internal/extract/manifests/rdap.yaml +++ b/internal/extract/manifests/rdap.yaml @@ -40,6 +40,14 @@ routes: - match: hosts: + - rdap.verisign.com + - rdap.arin.net + - rdap.apnic.net + - rdap.db.ripe.net + - rdap.ripe.net + - rdap.lacnic.net + - rdap.afrinic.net + - rdap.org - "rdap.*" - "*.rdap.org" - pubapi.registry.google @@ -60,3 +68,21 @@ routes: maxBytes: 1048576 extract: jsonMode: rdap_json + + - match: + excludeHosts: + - data.iana.org + exactSegments: false + pathPrefix: /rdap/ + anyOf: + - 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/reverb.yaml b/internal/extract/manifests/reverb.yaml new file mode 100644 index 0000000..45d080a --- /dev/null +++ b/internal/extract/manifests/reverb.yaml @@ -0,0 +1,75 @@ +# Shared Go + TypeScript Declarative Site Adapter: Reverb (#359) +id: reverb +name: Reverb Musical Instruments Marketplace +category: commerce-social +description: "Extracts Reverb musical instrument listings and catalog search results via api.reverb.com HAL+JSON endpoints with Accept-Version: 3.0." +domains: + - reverb.com + - www.reverb.com + - api.reverb.com +auth_mode: pub +min_interval_ms: 1000 +exampleUrls: + - "https://reverb.com/item/36356670-fender-stratocaster-knob-set-black" + - "https://api.reverb.com/api/listings/36356670" + - "https://api.reverb.com/api/listings?query=fender+stratocaster&per_page=2" + +routes: + - match: + hosts: + - reverb.com + - www.reverb.com + optionalLeadingLocale: true + exactSegments: true + pathSegments: + - item + - param: listingId + charset: leading_digits_slug + transform: leading_digits + minLen: 1 + maxLen: 220 + twin: + fetchUrl: "https://api.reverb.com/api/listings/{listingId}" + kind: json + accept: application/hal+json + headers: + Accept-Version: "3.0" + maxBytes: 2097152 + extract: + jsonMode: reverb_listing_json + + - match: + hosts: + - api.reverb.com + exactSegments: true + pathSegments: + - api + - listings + - param: listingId + charset: digits + minLen: 1 + maxLen: 24 + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/hal+json + headers: + Accept-Version: "3.0" + maxBytes: 2097152 + extract: + jsonMode: reverb_listing_json + + - match: + hosts: + - api.reverb.com + pathEquals: + - /api/listings + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/hal+json + headers: + Accept-Version: "3.0" + maxBytes: 2097152 + extract: + jsonMode: reverb_search_json diff --git a/internal/extract/manifests/sheldon-brown.yaml b/internal/extract/manifests/sheldon-brown.yaml new file mode 100644 index 0000000..0b35d5f --- /dev/null +++ b/internal/extract/manifests/sheldon-brown.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: Sheldon Brown Technical Reference (#355) +id: sheldon-brown +name: "Sheldon Brown Bicycle Technical Reference" +category: research-health +description: "Extracts bicycle technical reference articles, gear/ISO tire crib tables, and glossary definitions from sheldonbrown.com." +domains: + - sheldonbrown.com + - www.sheldonbrown.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://www.sheldonbrown.com/gear-calc.html" + - "https://www.sheldonbrown.com/gloss_e-f.html" + +htmlRoutes: + - id: sheldon-brown + match: + exactSegments: false + mode: sheldon_brown_html diff --git a/internal/extract/manifests/shopify.yaml b/internal/extract/manifests/shopify.yaml index 277cc4e..3ec5426 100644 --- a/internal/extract/manifests/shopify.yaml +++ b/internal/extract/manifests/shopify.yaml @@ -33,6 +33,8 @@ routes: - help.bigcartel.com - developers.bigcartel.com - blog.bigcartel.com + - upway.co + - www.upway.co anyOf: - pathEquals: - /products.json @@ -53,6 +55,9 @@ routes: # 2. Explicit /products/.js Ajax endpoint on any domain - match: + excludeHosts: + - upway.co + - www.upway.co pathSuffix: .js scanSegment: afterLiteral: products @@ -70,6 +75,9 @@ routes: # 3. Explicit /products/.json on any domain OR /products/ on *.myshopify.com - match: + excludeHosts: + - upway.co + - www.upway.co anyOf: - pathSuffix: .json scanSegment: diff --git a/internal/extract/manifests/specialized-turbo-support.yaml b/internal/extract/manifests/specialized-turbo-support.yaml new file mode 100644 index 0000000..113a1bd --- /dev/null +++ b/internal/extract/manifests/specialized-turbo-support.yaml @@ -0,0 +1,18 @@ +# Shared Go + TypeScript Declarative Site Adapter: Specialized Turbo Support (#345) +id: specialized-turbo-support +name: Specialized Turbo E-Bike Support +category: developer +description: "Extracts rendered Turbo e-bike support and diagnostic KB articles on support.specialized.com while strictly rejecting unhydrated eGain JS launcher shells and 403 gateway responses." +domains: + - support.specialized.com +auth_mode: html +min_interval_ms: 2000 +strict_robots: true +exampleUrls: + - "https://support.specialized.com/kb/sp_en-us/home" + +htmlRoutes: + - id: specialized-turbo-support + match: + exactSegments: false + mode: specialized_turbo_support_html diff --git a/internal/extract/manifests/suspension-cockpit-compat.yaml b/internal/extract/manifests/suspension-cockpit-compat.yaml new file mode 100644 index 0000000..4b5294b --- /dev/null +++ b/internal/extract/manifests/suspension-cockpit-compat.yaml @@ -0,0 +1,26 @@ +# Shared Go + TypeScript Declarative Site Adapter: Suspension & Cockpit Compatibility (#349) +id: suspension-cockpit-compat +name: Suspension & Cockpit Compatibility Specs +category: commerce-social +description: "Extracts SHIS headset codes, chainring BCD/mount standards, rear shock sizing, and fitment tables from Wolf Tooth, Ohlins, PUSH Industries, and Cane Creek." +domains: + - wolftoothcomponents.com + - www.wolftoothcomponents.com + - ohlins.com + - www.ohlins.com + - pushindustries.com + - www.pushindustries.com + - canecreek.com + - www.canecreek.com +auth_mode: html +exampleUrls: + - "https://www.wolftoothcomponents.com/collections/chainrings" + - "https://www.ohlins.com/en-us/bicycle" + - "https://www.pushindustries.com/products/elevensix" + - "https://www.canecreek.com/collections/headsets" + +htmlRoutes: + - id: suspension-cockpit-compat + match: + exactSegments: false + mode: suspension_cockpit_compat_html diff --git a/internal/extract/manifests/ul-product-iq.yaml b/internal/extract/manifests/ul-product-iq.yaml new file mode 100644 index 0000000..59e2842 --- /dev/null +++ b/internal/extract/manifests/ul-product-iq.yaml @@ -0,0 +1,19 @@ +# Shared Go + TypeScript Declarative Site Adapter: UL Product iQ & UL iQ (#356) +id: ul-product-iq +name: "UL Product iQ & UL iQ Certifications" +category: public-records +description: "Extracts UL 2849 / UL 2271 e-bike and battery certification listings from iq.ul.com and UL Product iQ (disjoint from ul.com owned by cpsc-ebike-battery) while rejecting blocked/WAF shells." +domains: + - iq.ul.com + - productiq.ulprospector.com + - iq.ulprospector.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://iq.ul.com/" + +htmlRoutes: + - id: ul-product-iq + match: + exactSegments: false + mode: ul_product_iq_html diff --git a/internal/extract/manifests/us-ebike-oems.yaml b/internal/extract/manifests/us-ebike-oems.yaml new file mode 100644 index 0000000..4e5eb7e --- /dev/null +++ b/internal/extract/manifests/us-ebike-oems.yaml @@ -0,0 +1,28 @@ +# Shared Go + TypeScript Declarative Site Adapter: US E-Bike OEMs (#351) +id: us-ebike-oems +name: "US E-Bike OEMs (Gazelle, Electra, Benno, Pedego, Serial 1)" +category: commerce-social +description: "Extracts Class 1/2/3 ratings, battery Wh, motor specs, and model specifications from Gazelle, Electra, Benno, Pedego, and Serial 1." +domains: + - gazellebikes.com + - www.gazellebikes.com + - electra.trekbikes.com + - bennobikes.com + - www.bennobikes.com + - pedegoelectricbikes.com + - www.pedegoelectricbikes.com + - serial1.com + - www.serial1.com +auth_mode: html +min_interval_ms: 1000 +exampleUrls: + - "https://www.gazellebikes.com/en-us/models/gazelle-arroyo" + - "https://electra.trekbikes.com/us/en_US/bikes/electra-bikes/c/EB100/" + - "https://bennobikes.com/e-bikes/boost/" + - "https://pedegoelectricbikes.com/products/interceptor" + +htmlRoutes: + - id: us-ebike-oems + match: + exactSegments: false + mode: us_ebike_oems_html diff --git a/internal/extract/manifests/used-bikes-shopify.yaml b/internal/extract/manifests/used-bikes-shopify.yaml new file mode 100644 index 0000000..897acbb --- /dev/null +++ b/internal/extract/manifests/used-bikes-shopify.yaml @@ -0,0 +1,82 @@ +# Shared Go + TypeScript Declarative Site Adapter: Certified Pre-Owned Used Bikes (#361) +id: used-bikes-shopify +name: The Pro's Closet & Upway Used Bikes +category: commerce-social +description: "Extracts certified pre-owned bicycle and e-bike listings from The Pro's Closet (Shopify JSON + HTML fallback) and Upway (Hydrogen + JSON-LD HTML) while honoring Upway's Crawl-delay and rejecting 404 homepage shells." +domains: + - theproscloset.com + - www.theproscloset.com + - upway.co + - www.upway.co +auth_mode: pub +min_interval_ms: 2000 +strict_robots: true +exampleUrls: + - "https://www.theproscloset.com/products/10226226168000-cervelo-p-series-red-axs-time-trial-bike-2022-58cm" + - "https://www.theproscloset.com/products.json?limit=5&page=1" + - "https://upway.co/products/lane-lane-express-uaa01" + +routes: + - match: + hosts: + - theproscloset.com + - www.theproscloset.com + anyOf: + - pathEquals: + - /products.json + - exactSegments: true + pathSegments: + - collections + - param: col + charset: slug + maxLen: 160 + - products.json + twin: + fetchUrl: "{requestUrl}" + kind: json + accept: application/json + extract: + commerceMode: shopify_catalog_page + + - match: + hosts: + - theproscloset.com + - www.theproscloset.com + pathSuffix: .json + scanSegment: + afterLiteral: products + param: handle + charset: slug + stripSuffix: .json + maxLen: 160 + twin: + fetchUrl: "https://{host}/products/{handle}.json" + kind: json + accept: application/json + extract: + commerceMode: shopify_product + + - match: + hosts: + - theproscloset.com + - www.theproscloset.com + scanSegment: + afterLiteral: products + param: handle + charset: slug + stripSuffix: .js + maxLen: 160 + twin: + fetchUrl: "https://{host}/products/{handle}.js" + kind: json + accept: application/json + extract: + commerceMode: shopify_product_js + +htmlRoutes: + - id: used-bikes-shopify + match: + anyOf: + - pathPrefix: /products/ + - pathPrefix: /collections/ + mode: used_bikes_shopify_html diff --git a/internal/extract/manifests/wheel-hub-specs.yaml b/internal/extract/manifests/wheel-hub-specs.yaml new file mode 100644 index 0000000..e15a73d --- /dev/null +++ b/internal/extract/manifests/wheel-hub-specs.yaml @@ -0,0 +1,26 @@ +# Shared Go + TypeScript Declarative Site Adapter: Wheel & Hub Specs (#347) +id: wheel-hub-specs +name: Bicycle Wheel & Hub Technical Specs +category: commerce-social +description: "Extracts hub axle spacing (O.L.D.), freehub compatibility, engagement, spoke counts, and service manuals from DT Swiss, Industry Nine, Chris King, and Hope Technology." +domains: + - dtswiss.com + - www.dtswiss.com + - industrynine.com + - www.industrynine.com + - chrisking.com + - www.chrisking.com + - hopetech.com + - www.hopetech.com +auth_mode: html +exampleUrls: + - "https://www.dtswiss.com/en/components/hubs-and-rws/hubs-mtb/350" + - "https://industrynine.com/products/sector-al" + - "https://chrisking.com/collections/hubs-all" + - "https://www.hopetech.com/products/hubs/mountain-bike/" + +htmlRoutes: + - id: wheel-hub-specs + match: + exactSegments: false + mode: wheel_hub_specs_html diff --git a/internal/extract/platform_twins.go b/internal/extract/platform_twins.go index b32db76..b935485 100644 --- a/internal/extract/platform_twins.go +++ b/internal/extract/platform_twins.go @@ -164,6 +164,116 @@ func ScrubTwinURLSecrets(rawURL string) string { return u.String() } +func isValidCpscRecallNumGo(s string) bool { + if len(s) < 2 || len(s) > 24 { + return false + } + strippedLen := 0 + for i := 0; i < len(s); i++ { + c := s[i] + if c == '-' { + continue + } + if (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') { + strippedLen++ + continue + } + return false + } + return strippedLen >= 2 && strippedLen <= 24 +} + +func isValidCpscQueryTermGo(s string, maxLen int) bool { + if len(s) < 2 || len(s) > maxLen || strings.Contains(s, "..") { + return false + } + for i := 0; i < len(s); i++ { + c := s[i] + if (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || + c == '.' || c == '_' || c == '~' || c == ' ' || c == '-' { + continue + } + return false + } + return true +} + +// CheckUnboundedTwinEndpointGuard blocks unfiltered saferproducts.gov/RestWebServices/Recall dumps (> 25 MiB) +// that lack a valid bounded RecallNumber, ProductType, or ProductDescription query parameter. +func CheckUnboundedTwinEndpointGuard(rawURL string) (blocked bool, message string) { + u, err := url.Parse(strings.TrimSpace(rawURL)) + if err != nil { + return false, "" + } + host := strings.TrimSuffix(strings.ToLower(u.Hostname()), ".") + if host != "www.saferproducts.gov" && host != "saferproducts.gov" { + return false, "" + } + decodedPath := u.EscapedPath() + if decodedPath == "" { + decodedPath = u.Path + } + for pass := 0; pass < 2; pass++ { + next, pErr := url.PathUnescape(decodedPath) + if pErr != nil { + return true, "Malformed percent-encoding on saferproducts.gov endpoint." + } + if next == decodedPath { + break + } + decodedPath = next + } + var normBuf strings.Builder + prevSlash := false + for i := 0; i < len(decodedPath); i++ { + c := decodedPath[i] + if c == '/' || c == '\\' { + if !prevSlash { + normBuf.WriteByte('/') + prevSlash = true + } + continue + } + prevSlash = false + if c >= 'A' && c <= 'Z' { + c += 'a' - 'A' + } + normBuf.WriteByte(c) + } + normPath := normBuf.String() + if normPath != "/restwebservices/recall" && !strings.HasPrefix(normPath, "/restwebservices/recall/") { + return false, "" + } + q, qErr := url.ParseQuery(u.RawQuery) + if qErr != nil { + return true, "Unfiltered saferproducts.gov/RestWebServices/Recall endpoint exceeds 25 MiB and requires a bounded RecallNumber, ProductType, or ProductDescription query parameter (e.g., ?RecallNumber=24123)." + } + var recallMatches, productTypeMatches, productDescMatches []string + for k, vals := range q { + switch strings.ToLower(k) { + case "recallnumber": + for _, v := range vals { + recallMatches = append(recallMatches, strings.TrimSpace(v)) + } + case "producttype": + for _, v := range vals { + productTypeMatches = append(productTypeMatches, strings.TrimSpace(v)) + } + case "productdescription": + for _, v := range vals { + productDescMatches = append(productDescMatches, strings.TrimSpace(v)) + } + } + } + hasValidRecall := len(recallMatches) == 1 && isValidCpscRecallNumGo(recallMatches[0]) + hasValidType := len(recallMatches) == 0 && len(productTypeMatches) == 1 && isValidCpscQueryTermGo(productTypeMatches[0], 60) + hasValidDesc := len(recallMatches) == 0 && len(productDescMatches) == 1 && isValidCpscQueryTermGo(productDescMatches[0], 80) + if !hasValidRecall && !hasValidType && !hasValidDesc { + return true, "Unfiltered saferproducts.gov/RestWebServices/Recall endpoint exceeds 25 MiB and requires a bounded RecallNumber, ProductType, or ProductDescription query parameter (e.g., ?RecallNumber=24123)." + } + return false, "" +} + func validatePlatformCandidateURL(adapterID, rawCandidate, pageHost, selfHost string) string { trimmed := strings.TrimSpace(rawCandidate) if trimmed == "" || !IsSafeDeclarativeTwinURL(trimmed) { diff --git a/internal/extract/wave3_cycling_components.go b/internal/extract/wave3_cycling_components.go new file mode 100644 index 0000000..a465a70 --- /dev/null +++ b/internal/extract/wave3_cycling_components.go @@ -0,0 +1,2257 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "math" + "sort" + "strconv" + "strings" +) + +const ( + wave3CycMaxHTMLBytes = 2 * 1024 * 1024 + wave3CycStdHTMLMaxBytes = 1 * 1024 * 1024 + wave3CycMaxJSONBytes = 2 * 1024 * 1024 + wave3CycMaxRecords = 25 +) + +var ( + wave3CycRxNotFoundTitle = 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)(?:\b|$)`) + wave3CycRxMaintTitle = 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)`) + wave3CycRxErrorTitle = 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)$`) + wave3CycRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|kenda\s+tire\s*\|\s*corporate\s*\|\s*error)$`) + wave3CycRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3CycRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3CycRxPriceNum = newLazyRegexp(`(?:USD|CAD|EUR|GBP|AUD|CHF|\$|€|£)?\s*([0-9][0-9,]*(?:\.[0-9]{1,2})?)`) + wave3CycRxGTIN = newLazyRegexp(`^\d{8}$|^\d{12}$|^\d{13}$|^\d{14}$`) + + // #341 FOX Tune ID / code + wave3CycRxFoxTuneCode = newLazyRegexp(`(?i)\b(?:tune\s*(?:id|code)|id\s*code|4-?digit\s*code)\s*[:#]?\s*([A-Z0-9]{4,8})\b`) + wave3CycRxFoxPathCode = newLazyRegexp(`(?i)/code/([A-Z0-9]{4,8})(?:[/?#]|$)`) + + // #344 E-bike drive system specs + wave3CycRxTorqueNm = newLazyRegexp(`(?i)\b(\d{2,3}(?:\.\d+)?)\s*Nm\b`) + wave3CycRxBatteryWh = newLazyRegexp(`(?i)\b(\d{3,4}(?:\.\d+)?)\s*Wh\b`) + wave3CycRxMotorWatt = newLazyRegexp(`(?i)\b(\d{3,4})\s*W(?:att)?s?\b`) + wave3CycRxDriveVolt = newLazyRegexp(`(?i)\b(24|36|43|48|50\.4|52)\s*V\b`) + wave3CycRxWeightSpec = newLazyRegexp(`(?i)\b(\d{2,4}(?:\.\d+)?)\s*(g|grams|kg)\b`) + + // #346 Tire specs (ETRTO ISO 5775 + imperial/French + TPI + tubeless) + wave3CycRxETRTOCandidate = newLazyRegexp(`(?:^|[^0-9A-Za-z])(\d{2,3})\s*-\s*(\d{3})(?:$|[^0-9A-Za-z])`) + wave3CycRxTireSizeImp = newLazyRegexp(`(?i)\b((?:700|650)\s*[x×]\s*\d{2,3}(?:\s*[bBcC])?|(?:20|24|26|27\.5|29)\s*[x×]\s*\d+(?:\.\d{1,2})?)\b`) + wave3CycRxTPI = newLazyRegexp(`(?i)\b(\d{2,3})\s*TPI\b`) + + // #347 Wheel & hub specs + wave3CycRxHubOLD = newLazyRegexp(`(?i)\b(100|110|130|135|142|148|150|157|177|197)\s*mm\b`) + wave3CycRxHubHoles = newLazyRegexp(`(?i)\b(16|20|24|28|32|36)\s*(?:H|hole|holes|spoke)\b`) + wave3CycRxHubEngagement = newLazyRegexp(`(?i)\b(\d{2,3}\s*(?:T\s*ratchet|POE|points?\s+of\s+engagement)|[0-9]+(?:\.[0-9]+)?\s*(?:deg|degree|°)\s*engagement)\b`) + + // #348 Brake specs + wave3CycRxBrakeRotor = newLazyRegexp(`(?i)\b(140|160|180|200|203|220|223)\s*mm\b`) + wave3CycRxBrakeThick = newLazyRegexp(`(?i)\b(1\.8|2\.0|2\.25|2\.3)\s*mm\b`) + wave3CycRxBrakePistons = newLazyRegexp(`(?i)\b([246])\s*-?\s*piston\b`) + + // #349 Suspension & cockpit compatibility + wave3CycRxSHIS = newLazyRegexp(`(?i)\b((?:IS|ZS|EC)(?:34|41|42|44|49|52|56)(?:/[0-9.]+)?)\b`) + wave3CycRxBCD = newLazyRegexp(`(?i)\b((?:94|96|104|110|130|144)\s*BCD|Direct\s+Mount|3-Bolt|8-Bolt|Cinch)\b`) + wave3CycRxShockSize = newLazyRegexp(`(?i)\b((?:165|185|190|200|205|210|216|225|230|240|250)\s*[x×]\s*(?:38|40|42\.5|45|47\.5|50|52\.5|55|57\.5|60|62\.5|65|70|75)(?:\s*mm)?)\b`) + wave3CycRxClampDiam = newLazyRegexp(`(?i)\b(27\.2|30\.9|31\.6|31\.8|34\.9|35(?:\.0)?)\s*mm\b`) +) + +// Canonical ISO 5775 bicycle rim bead seat diameters (mm). +var wave3CycISO5775BSDs = map[int]bool{ + 203: true, + 254: true, + 305: true, + 349: true, + 355: true, + 406: true, + 451: true, + 507: true, + 540: true, + 559: true, + 571: true, + 584: true, + 590: true, + 622: true, + 630: true, + 635: true, +} + +func init() { + registerWave3CyclingComponentsHTMLModes() +} + +// RegisterWave3CyclingComponentsHTMLModes registers all Category O1 Bike Components & Help HTML modes lazily. +func RegisterWave3CyclingComponentsHTMLModes() { + registerWave3CyclingComponentsHTMLModes() +} + +func registerWave3CyclingComponentsHTMLModes() { + for _, mode := range []string{ + "fox_ridefox_html", + "park_tool_html", + "ifixit_html", + "ebike_drive_systems_html", + "specialized_turbo_support_html", + "bicycle_tire_specs_html", + "wheel_hub_specs_html", + "bicycle_brake_docs_html", + "suspension_cockpit_compat_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3CyclingComponentsRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3CyclingComponentsHTMLMode reports whether mode is one of the 9 Category O1 HTML modes (#341-#349). +func IsWave3CyclingComponentsHTMLMode(mode string) bool { + switch mode { + case "fox_ridefox_html", + "park_tool_html", + "ifixit_html", + "ebike_drive_systems_html", + "specialized_turbo_support_html", + "bicycle_tire_specs_html", + "wheel_hub_specs_html", + "bicycle_brake_docs_html", + "suspension_cockpit_compat_html": + return true + default: + return false + } +} + +// IsWave3CyclingComponentsJSONMode reports whether mode is handled by Category O1 JSON formatters (`ifixit_json`). +func IsWave3CyclingComponentsJSONMode(mode string) bool { + return mode == "ifixit_json" +} + +func wave3CycDefaultExtractorID(mode string) string { + switch mode { + case "fox_ridefox_html": + return "fox-ridefox" + case "park_tool_html": + return "park-tool" + case "ifixit_html", "ifixit_json": + return "ifixit" + case "ebike_drive_systems_html": + return "ebike-drive-systems" + case "specialized_turbo_support_html": + return "specialized-turbo-support" + case "bicycle_tire_specs_html": + return "bicycle-tire-specs" + case "wheel_hub_specs_html": + return "wheel-hub-specs" + case "bicycle_brake_docs_html": + return "bicycle-brake-docs" + case "suspension_cockpit_compat_html": + return "suspension-cockpit-compat" + default: + return "" + } +} + +// Wave3CyclingComponentsRunHTML executes a Category O1 HTML extractor and returns DeclarativePostFetchResult. +func Wave3CyclingComponentsRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3CyclingComponentsHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + maxHTML := wave3CycStdHTMLMaxBytes + if mode == "bicycle_tire_specs_html" || mode == "wheel_hub_specs_html" || mode == "suspension_cockpit_compat_html" || mode == "ebike_drive_systems_html" { + maxHTML = wave3CycMaxHTMLBytes + } + 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 !wave3CycMatchesPrefilter(mode, rawHTML, probeLower, urlLower) { + return nil + } + if wave3CycHasNegativeShell(mode, rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3CycDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "fox_ridefox_html": + res = wave3CycExtractFoxRidefoxHTML(rawHTML, baseURL, extractorID) + case "park_tool_html": + res = wave3CycExtractParkToolHTML(rawHTML, baseURL, extractorID) + case "ifixit_html": + res = wave3CycExtractIFixitHTML(rawHTML, baseURL, extractorID) + case "ebike_drive_systems_html": + res = wave3CycExtractEBikeDriveHTML(rawHTML, baseURL, extractorID) + case "specialized_turbo_support_html": + res = wave3CycExtractSpecializedTurboSupportHTML(rawHTML, baseURL, extractorID) + case "bicycle_tire_specs_html": + res = wave3CycExtractBicycleTireSpecsHTML(rawHTML, baseURL, extractorID) + case "wheel_hub_specs_html": + res = wave3CycExtractWheelHubSpecsHTML(rawHTML, baseURL, extractorID) + case "bicycle_brake_docs_html": + res = wave3CycExtractBicycleBrakeDocsHTML(rawHTML, baseURL, extractorID) + case "suspension_cockpit_compat_html": + res = wave3CycExtractSuspensionCockpitHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3CycFinalizePostFetch(res) +} + +// RunWave3CyclingComponentsHTMLMode executes a Category O1 HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3CyclingComponentsHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3CyclingComponentsRunHTML(mode, rawHTML, baseURL, wave3CycDefaultExtractorID(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 +} + +// FormatWave3CyclingComponentsJSONDoc formats a Category O1 JSON twin payload (`ifixit_json`) into DeclarativeFormattedDoc. +func FormatWave3CyclingComponentsJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return formatWave3CyclingComponentsJSON(mode, raw, params, origURL) +} + +// FormatWave3CyclingComponentsJSONMode formats a Category O1 JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3CyclingComponentsJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := formatWave3CyclingComponentsJSON(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 formatWave3CyclingComponentsJSON(mode string, raw []byte, _ map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3CyclingComponentsJSONMode(mode) || len(raw) == 0 || len(raw) > wave3CycMaxJSONBytes { + return nil, false + } + trimmed := bytes.TrimSpace(bytes.TrimPrefix(raw, []byte("\xEF\xBB\xBF"))) + if len(trimmed) == 0 || trimmed[0] != '{' { + return nil, false + } + parsed, ok := decodeJSONWithNumbers(trimmed) + if !ok || parsed == nil { + return nil, false + } + doc, handled := wave3CycFormatIFixitJSON(parsed, origURL) + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3CycFinalizeDoc(doc), true +} + +// ── Prefilters & Negative-Shell Guards ─────────────────────────────────────────────────────────── + +func wave3CycMatchesPrefilter(mode, rawHTML, probeLower, urlLower string) bool { + if strings.Contains(probeLower, " 65536 { + tail := rawHTML[65536:] + return indexFoldASCIIExtract(tail, "tpi") >= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 + } + return false + case "wheel_hub_specs_html": + if strings.Contains(probeLower, "hub") || strings.Contains(probeLower, "boost") || strings.Contains(probeLower, "148") || strings.Contains(probeLower, "142") || strings.Contains(probeLower, "engagement") || strings.Contains(probeLower, "bearing") { + return true + } + if len(rawHTML) > 65536 { + tail := rawHTML[65536:] + return indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 + } + return false + case "bicycle_brake_docs_html": + if strings.Contains(probeLower, "rotor") || strings.Contains(probeLower, "caliper") || strings.Contains(probeLower, "brake") || strings.Contains(probeLower, "mineral oil") || strings.Contains(probeLower, "dot ") { + return true + } + if len(rawHTML) > 65536 { + tail := rawHTML[65536:] + return indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 + } + return false + case "suspension_cockpit_compat_html": + if strings.Contains(probeLower, "shis") || strings.Contains(probeLower, "bcd") || strings.Contains(probeLower, "headset") || strings.Contains(probeLower, "chainring") || strings.Contains(probeLower, "shock") || strings.Contains(probeLower, "compat") { + return true + } + if len(rawHTML) > 65536 { + tail := rawHTML[65536:] + return indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 + } + return false + default: + return false + } +} + +func wave3CycIsNegativeURL(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 wave3CycIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3CycRxNotFoundTitle.MatchString(t) || + wave3CycRxMaintTitle.MatchString(t) || + wave3CycRxErrorTitle.MatchString(t) +} + +func wave3CycIsGenericTitle(title string) bool { + return wave3CycRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3CycHasNegativeShell(mode, rawHTML, probeLower, urlLower string) bool { + if wave3CycIsNegativeURL(urlLower) { + return true + } + if mode == "ifixit_html" && strings.Contains(urlLower, "/embed/") { + return true + } + for _, marker := range []string{ + "cf-browser-verification", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "just a moment...", + "sorry, you have been blocked", + "enable javascript and cookies to continue", + "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", + "missing authentication token", + "whoops, we couldn't find that page", + "kenda tire | corporate | error", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + + title := extractTitleLinearQuick(probeLower) + if title == "" { + title = extractTitleLinearQuick(rawHTML) + } + if wave3CycIsNegativeTitle(title) { + return true + } + + rawLower := probeLower + if len(rawHTML) > len(probeLower) && len(rawHTML) <= 256*1024 { + rawLower = asciiLowerExtractString(rawHTML) + } + hasRealBodyMarkers := hasJSONLDScriptToken(rawLower) || + strings.Contains(rawLower, " 65536 { + tail := rawHTML[65536:] + hasRealBodyMarkers = indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 + } + + // Cloudflare Turnstile / challenge-platform script tags: many valid 200 product pages + // (industrynine.com, tektro.com, wolftoothcomponents.com) embed CF script tags. + // Only reject if the page is small and lacks product/article body markers. + if (strings.Contains(probeLower, "challenge-platform") || strings.Contains(probeLower, "cf-turnstile")) && + len(rawHTML) < 16384 && !hasRealBodyMarkers { + return true + } + + // #345 specialized-turbo-support eGain JS launcher shell rejection. + if mode == "specialized_turbo_support_html" { + isEGainLauncher := strings.Contains(probeLower, "loading_container") || + strings.Contains(probeLower, "parselaunchparams") || + strings.Contains(probeLower, "saveparamsandloadpage") || + strings.Contains(probeLower, "egglobal") + hasRenderedKB := strings.Contains(rawLower, "`)) + if isEGainLauncher && !hasRenderedKB { + return true + } + } + + // Empty SPA / Aura / Nuxt / Next.js shells. + if (strings.Contains(rawLower, "") || + strings.Contains(rawLower, "salesforce/aura") || + wave3HasEmptyRootDivShell(rawHTML, probeLower, true)) && !hasRealBodyMarkers { + return true + } + return false +} + +// ── Shared Extraction & Hygiene Helpers ────────────────────────────────────────────────────────── + +func wave3CycCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3CycRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3CycRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3CycRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3CycStringVal(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 wave3CycPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3CycStringVal(v), maxLen) +} + +func wave3CycFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3CycIntPtr(n int) *int { return &n } +func wave3CycBoolPtr(b bool) *bool { return &b } + +func wave3CycFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3CycMaxRecords { + if doc.Total == nil { + doc.Total = wave3CycIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3CycMaxRecords] + doc.Returned = wave3CycIntPtr(len(doc.Records)) + doc.Truncated = wave3CycBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3CycFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3CycMaxRecords { + if res.Total == nil { + res.Total = wave3CycIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3CycMaxRecords] + res.Returned = wave3CycIntPtr(len(res.Records)) + res.Truncated = wave3CycBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + return res +} + +func wave3CycAddLink(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 wave3CycExtractTitle(doc *HTMLDoc, rawHTML string) string { + if doc != nil { + if h1 := SanitizeSchemaPlainField(wave3CycCleanText(doc.Text("h1")), 240); h1 != "" && !wave3CycIsGenericTitle(h1) && !wave3CycIsNegativeTitle(h1) { + return h1 + } + } + if og := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240); og != "" && !wave3CycIsGenericTitle(og) && !wave3CycIsNegativeTitle(og) { + return og + } + if t := SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240); t != "" && !wave3CycIsGenericTitle(t) && !wave3CycIsNegativeTitle(t) { + return t + } + return "" +} + +func wave3CycExtractMetaDesc(rawHTML string) string { + return wave3CycFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600), + ) +} + +func wave3CycFragToMD(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 wave3CycParseStrictPrice(raw string) (string, string) { + cleaned := strings.ReplaceAll(strings.TrimSpace(raw), "$$", "$") + if cleaned == "" || strings.HasPrefix(cleaned, "-") { + return "", "" + } + var currency string + upper := strings.ToUpper(cleaned) + switch { + case strings.Contains(upper, "USD") || strings.Contains(cleaned, "$"): + currency = "USD" + case strings.Contains(upper, "EUR") || strings.Contains(cleaned, "€"): + currency = "EUR" + case strings.Contains(upper, "GBP") || strings.Contains(cleaned, "£"): + currency = "GBP" + case strings.Contains(upper, "CAD"): + currency = "CAD" + case strings.Contains(upper, "AUD"): + currency = "AUD" + } + m := wave3CycRxPriceNum.FindStringSubmatch(cleaned) + if len(m) < 2 { + return "", "" + } + numStr := strings.ReplaceAll(m[1], ",", "") + val, err := strconv.ParseFloat(numStr, 64) + if err != nil || val <= 0 || val > 1_000_000 { + return "", "" + } + return strconv.FormatFloat(val, 'f', 2, 64), currency +} + +func wave3CycValidGTIN(raw string) string { + s := strings.TrimSpace(raw) + if wave3CycRxGTIN.MatchString(s) { + return s + } + return "" +} + +type wave3CycProductMeta struct { + Name string + Brand string + SKU string + MPN string + GTIN string + Price string + Currency string + Availability string + Description string +} + +func wave3CycExtractProductJSONLD(rawHTML string) wave3CycProductMeta { + var out wave3CycProductMeta + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 32) { + if !jsonLDHasType(ld, "Product") && !jsonLDHasType(ld, "ProductGroup") { + continue + } + if out.Name == "" { + out.Name = wave3CycPlain(ld["name"], 220) + } + if out.Description == "" { + out.Description = wave3CycPlain(ld["description"], 800) + } + if out.Brand == "" { + switch br := ld["brand"].(type) { + case map[string]any: + out.Brand = wave3CycPlain(br["name"], 100) + case string: + out.Brand = wave3CycPlain(br, 100) + } + } + if out.SKU == "" { + out.SKU = wave3CycPlain(ld["sku"], 80) + } + if out.MPN == "" { + out.MPN = wave3CycPlain(ld["mpn"], 80) + } + if out.GTIN == "" { + for _, gk := range []string{"gtin14", "gtin13", "gtin12", "gtin8", "gtin"} { + if g := wave3CycValidGTIN(wave3CycStringVal(ld[gk])); g != "" { + out.GTIN = g + break + } + } + } + parseOffer := func(o map[string]any) { + if out.Price == "" { + p, c := wave3CycParseStrictPrice(wave3CycStringVal(o["price"])) + if p != "" { + out.Price = p + if nc := normalizeCurrencyWave2b(o["priceCurrency"]); nc != "" { + out.Currency = nc + } else if c != "" { + out.Currency = c + } + } + } + if out.Availability == "" { + out.Availability = normalizeAvailabilityDeclHTML(wave3CycStringVal(o["availability"])) + } + } + switch off := ld["offers"].(type) { + case map[string]any: + parseOffer(off) + case []any: + for _, elem := range off { + if om, ok := elem.(map[string]any); ok { + parseOffer(om) + if out.Price != "" { + break + } + } + } + } + } + return out +} + +func wave3CycAppendProductBullets(bullets *[]string, pm wave3CycProductMeta) { + if pm.Brand != "" { + *bullets = append(*bullets, "- **Brand**: "+pm.Brand) + } + if pm.SKU != "" { + *bullets = append(*bullets, "- **SKU**: `"+pm.SKU+"`") + } + if pm.MPN != "" && pm.MPN != pm.SKU { + *bullets = append(*bullets, "- **MPN**: `"+pm.MPN+"`") + } + if pm.GTIN != "" { + *bullets = append(*bullets, "- **GTIN**: `"+pm.GTIN+"`") + } + if pm.Price != "" { + if pm.Currency != "" { + *bullets = append(*bullets, "- **Price**: "+pm.Price+" "+pm.Currency) + } else { + *bullets = append(*bullets, "- **Price**: "+pm.Price) + } + } + if pm.Availability != "" { + *bullets = append(*bullets, "- **Availability**: "+pm.Availability) + } +} + +func wave3CycApplyProductToRecord(rec map[string]any, pm wave3CycProductMeta) { + if pm.Brand != "" { + rec["brand"] = pm.Brand + } + if pm.SKU != "" { + rec["sku"] = pm.SKU + } + if pm.MPN != "" { + rec["mpn"] = pm.MPN + } + if pm.GTIN != "" { + rec["gtin"] = pm.GTIN + } + if pm.Price != "" { + rec["price"] = pm.Price + } + if pm.Currency != "" { + rec["currency"] = pm.Currency + } + if pm.Availability != "" { + rec["availability"] = pm.Availability + } +} + +func wave3CycExtractTablesMarkdown(doc *HTMLDoc, maxTables int) (string, [][][]string) { + if doc == nil { + return "", nil + } + tables := doc.Select("table", maxTables) + if len(tables) == 0 { + return "", nil + } + var sections []string + var parsedTables [][][]string + for _, tbl := range tables { + rows := tbl.TableRows() + if len(rows) < 2 || len(rows[0]) == 0 { + continue + } + cols := len(rows[0]) + if cols > 10 { + cols = 10 + } + headers := make([]string, cols) + for c := 0; c < cols; c++ { + headers[c] = SanitizeSchemaPlainField(rows[0][c], 80) + if headers[c] == "" { + headers[c] = fmt.Sprintf("Col %d", c+1) + } + } + var dataRows [][]string + for rIdx := 1; rIdx < len(rows) && len(dataRows) < wave3CycMaxRecords; rIdx++ { + r := rows[rIdx] + 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 { + continue + } + sections = append(sections, formatDeclarativeGFMTable(headers, dataRows)) + parsedTables = append(parsedTables, append([][]string{headers}, dataRows...)) + } + return strings.Join(sections, "\n\n"), parsedTables +} + +func wave3CycExtractDLSpecs(doc *HTMLDoc) ([][]string, map[string]string) { + if doc == nil { + return nil, nil + } + dl := doc.DLMap("dl") + if len(dl) == 0 { + return nil, nil + } + keys := make([]string, 0, len(dl)) + for k := range dl { + keys = append(keys, k) + } + sort.Strings(keys) + var rows [][]string + clean := make(map[string]string, len(dl)) + for _, k := range keys { + ck := SanitizeSchemaPlainField(k, 80) + cv := SanitizeSchemaPlainField(dl[k], 240) + if ck == "" || cv == "" { + continue + } + clean[ck] = cv + if len(rows) < wave3CycMaxRecords { + rows = append(rows, []string{ck, cv}) + } + } + return rows, clean +} + +func wave3CycExtractManualLinks(doc *HTMLDoc, baseURL string, extraKeywords ...string) ([]string, []string) { + if doc == nil { + return nil, nil + } + var mdLines []string + var rawLinks []string + seen := make(map[string]bool) + for _, a := range doc.Select("a[href]", 150) { + href := SanitizeSchemaHTTPSURL(a.AttrOrEmpty("href"), baseURL) + if href == "" || seen[href] { + continue + } + hl := strings.ToLower(href) + txt := SanitizeSchemaPlainField(a.Text(), 120) + tl := strings.ToLower(txt) + matched := strings.Contains(hl, ".pdf") || + strings.Contains(hl, "manual") || + strings.Contains(hl, "service") || + strings.Contains(hl, "datasheet") || + strings.Contains(hl, "tech") || + strings.Contains(tl, "manual") || + strings.Contains(tl, "service guide") || + strings.Contains(tl, "bleed") || + strings.Contains(tl, "datasheet") || + strings.Contains(tl, "pdf") + if !matched { + for _, kw := range extraKeywords { + if kw != "" && (strings.Contains(hl, kw) || strings.Contains(tl, kw)) { + matched = true + break + } + } + } + if !matched { + continue + } + seen[href] = true + rawLinks = append(rawLinks, href) + label := txt + if label == "" { + label = href + } + mdLines = append(mdLines, fmt.Sprintf("- [%s](%s)", escapeDeclMarkdownBrackets(label), href)) + if len(rawLinks) >= 12 { + break + } + } + return mdLines, rawLinks +} + +func wave3CycExtractMainMarkdown(doc *HTMLDoc, baseURL string, selectors ...string) string { + if doc == nil { + return "" + } + for _, sel := range selectors { + frag := doc.HTML(sel) + if strings.TrimSpace(frag) == "" { + continue + } + if md := wave3CycFragToMD(frag, baseURL); md != "" { + return md + } + } + return "" +} + +func wave3CycFindAllUnique(rx *lazyRegexp, text string, limit int) []string { + if rx == nil || text == "" || limit <= 0 { + return nil + } + matches := rx.FindAllStringSubmatch(text, limit*3) + var out []string + seen := make(map[string]bool) + for _, m := range matches { + val := "" + if len(m) >= 2 && strings.TrimSpace(m[1]) != "" { + val = strings.TrimSpace(m[1]) + } else if len(m) >= 1 { + val = strings.TrimSpace(m[0]) + } + if val == "" { + continue + } + key := strings.ToLower(val) + if seen[key] { + continue + } + seen[key] = true + out = append(out, val) + if len(out) >= limit { + break + } + } + return out +} + +// ── #341 FOX RideFOX ───────────────────────────────────────────────────────────────────────────── + +func wave3CycExtractFoxRidefoxHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycStdHTMLMaxBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + + // Extract FOX Tune ID / 4-char code from URL or page text + tuneCode := "" + if m := wave3CycRxFoxPathCode.FindStringSubmatch(baseURL); len(m) >= 2 { + tuneCode = strings.ToUpper(m[1]) + } + bodyText := doc.Text("main, article, body") + if tuneCode == "" { + if m := wave3CycRxFoxTuneCode.FindStringSubmatch(bodyText); len(m) >= 2 { + tuneCode = strings.ToUpper(m[1]) + } + } + + dlRows, dlMap := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "tune", "interval", "chart", "oil") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".help-content", ".tech-content", ".product__description") + + if len(dlRows) == 0 && tablesMD == "" && len(manualLines) == 0 && mainMD == "" && desc == "" && tuneCode == "" { + return nil + } + + var bullets []string + if tuneCode != "" { + bullets = append(bullets, "- **FOX Tune ID**: `"+tuneCode+"`") + } + wave3CycAppendProductBullets(&bullets, pm) + for _, k := range []string{"model year", "year", "chassis", "travel", "wheel size", "damper", "air spring", "rake", "offset", "service interval", "serial"} { + if v := dlMap[k]; v != "" { + bullets = append(bullets, "- **"+escapeDeclMarkdownBrackets(k)+"**: "+v) + } + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Technical & Service Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Service Docs & Manuals\n\n"+strings.Join(manualLines, "\n")) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } else if mainMD != "" && len(mainMD) <= 2000 { + blocks = append(blocks, "## Details\n\n"+mainMD) + } + + rec := map[string]any{ + "source": "fox-ridefox", + "title": title, + "url": baseURL, + } + if tuneCode != "" { + rec["tuneCode"] = tuneCode + } + wave3CycApplyProductToRecord(rec, pm) + if len(dlMap) > 0 { + rec["specs"] = dlMap + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #342 Park Tool ─────────────────────────────────────────────────────────────────────────────── + +func wave3CycExtractParkToolHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycStdHTMLMaxBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + + var ldTools []string + var ldSteps []string + var ldTime string + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 24) { + if !jsonLDHasType(ld, "HowTo") && !jsonLDHasType(ld, "TechArticle") && !jsonLDHasType(ld, "Article") { + continue + } + if t := wave3CycPlain(ld["totalTime"], 64); t != "" && ldTime == "" { + ldTime = t + } + for _, toolKey := range []string{"tool", "supply"} { + if arr, ok := ld[toolKey].([]any); ok { + for _, item := range arr { + if m, okM := item.(map[string]any); okM { + if nm := wave3CycPlain(m["name"], 120); nm != "" { + ldTools = append(ldTools, nm) + } + } else if s := wave3CycPlain(item, 120); s != "" { + ldTools = append(ldTools, s) + } + } + } + } + if steps, ok := ld["step"].([]any); ok { + for _, st := range steps { + if sm, okS := st.(map[string]any); okS { + txt := wave3CycFirstNonEmpty(wave3CycPlain(sm["text"], 500), wave3CycPlain(sm["name"], 240)) + if txt != "" { + ldSteps = append(ldSteps, txt) + } + } + } + } + } + + // DOM tools needed & ordered repair steps + var domTools []string + for _, node := range doc.Select(".tools-needed li, #tools-needed li, [data-tools] li", 30) { + if t := SanitizeSchemaPlainField(node.Text(), 140); t != "" { + domTools = append(domTools, t) + } + } + if len(domTools) == 0 { + domTools = ldTools + } + + var domSteps []string + for _, node := range doc.Select("article ol li, main ol li, .repair-steps li, .article-body ol li", 40) { + if t := SanitizeSchemaPlainField(node.Text(), 500); t != "" { + domSteps = append(domSteps, t) + } + } + if len(domSteps) == 0 { + domSteps = ldSteps + } + + dlRows, _ := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "repair", "instruction") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "article", "main", ".article-body", ".product-description") + + if len(domTools) == 0 && len(domSteps) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if ldTime != "" { + bullets = append(bullets, "- **Estimated Time**: "+ldTime) + } + if len(domTools) > 0 { + bullets = append(bullets, fmt.Sprintf("- **Tools Needed**: %d", len(domTools))) + } + if len(domSteps) > 0 { + bullets = append(bullets, fmt.Sprintf("- **Repair Steps**: %d", len(domSteps))) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(domTools) > 0 { + var tLines []string + for _, t := range domTools { + tLines = append(tLines, "- "+escapeDeclMarkdownBrackets(t)) + } + blocks = append(blocks, "## Tools Needed\n\n"+strings.Join(tLines, "\n")) + } + if len(domSteps) > 0 { + var sLines []string + for i, st := range domSteps { + if i >= wave3CycMaxRecords { + break + } + sLines = append(sLines, fmt.Sprintf("%d. %s", i+1, st)) + } + blocks = append(blocks, "## Repair Steps\n\n"+strings.Join(sLines, "\n")) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Specification Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Manuals & Instructions\n\n"+strings.Join(manualLines, "\n")) + } + if len(domSteps) == 0 && mainMD != "" { + blocks = append(blocks, mainMD) + } + + var recs []map[string]any + if len(domSteps) > 0 { + for i, st := range domSteps { + if i >= wave3CycMaxRecords { + break + } + recs = append(recs, map[string]any{ + "source": "park-tool", + "step": i + 1, + "text": st, + }) + } + } else { + rec := map[string]any{ + "source": "park-tool", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + recs = append(recs, rec) + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #343 iFixit (JSON + HTML) ──────────────────────────────────────────────────────────────────── + +func wave3CycFormatIFixitJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + obj, ok := parsed.(map[string]any) + if !ok || obj == nil { + return nil, false + } + if errFlag, isErr := obj["error"].(bool); isErr && errFlag { + return nil, false + } + if msg := wave3CycPlain(obj["message"], 200); msg != "" && obj["guideid"] == nil && obj["wikiid"] == nil { + return nil, false + } + + var links []string + seenLinks := make(map[string]bool) + canonURL := SanitizeSchemaHTTPSURL(obj["url"], origURL) + wave3CycAddLink(&links, seenLinks, canonURL, origURL) + + // Case 1: Guide JSON (`/api/2.0/guides/{id}`) + if obj["guideid"] != nil { + guideID := wave3CycPlain(obj["guideid"], 32) + title := wave3CycPlain(obj["title"], 240) + if title == "" { + return nil, false + } + subject := wave3CycPlain(obj["subject"], 160) + category := wave3CycPlain(obj["category"], 120) + difficulty := wave3CycPlain(obj["difficulty"], 64) + timeReq := wave3CycPlain(obj["time_required"], 64) + summary := wave3CycPlain(obj["summary"], 1000) + intro := wave3CycPlain(obj["introduction_raw"], 1600) + if intro == "" { + intro = wave3CycCleanText(wave3CycStringVal(obj["introduction_rendered"])) + } + conclusion := wave3CycPlain(obj["conclusion_raw"], 1000) + + var bullets []string + bullets = append(bullets, "- **Guide ID**: `"+guideID+"`") + if category != "" { + bullets = append(bullets, "- **Category**: "+category) + } + if subject != "" { + bullets = append(bullets, "- **Subject**: "+subject) + } + if difficulty != "" { + bullets = append(bullets, "- **Difficulty**: "+difficulty) + } + if timeReq != "" { + bullets = append(bullets, "- **Time Required**: "+timeReq) + } + if canonURL != "" { + bullets = append(bullets, "- **URL**: "+canonURL) + } + + var tools []string + if arr, okT := obj["tools"].([]any); okT { + for _, it := range arr { + if m, okM := it.(map[string]any); okM { + nm := wave3CycFirstNonEmpty(wave3CycPlain(m["text"], 160), wave3CycPlain(m["title"], 160), wave3CycPlain(m["name"], 160)) + if nm != "" { + tools = append(tools, "- "+escapeDeclMarkdownBrackets(nm)) + } + wave3CycAddLink(&links, seenLinks, wave3CycStringVal(m["url"]), origURL) + } + } + } + + var parts []string + if arr, okP := obj["parts"].([]any); okP { + for _, it := range arr { + if m, okM := it.(map[string]any); okM { + nm := wave3CycFirstNonEmpty(wave3CycPlain(m["text"], 160), wave3CycPlain(m["title"], 160), wave3CycPlain(m["name"], 160)) + if nm != "" { + parts = append(parts, "- "+escapeDeclMarkdownBrackets(nm)) + } + wave3CycAddLink(&links, seenLinks, wave3CycStringVal(m["url"]), origURL) + } + } + } + + var stepsMD []string + var recs []map[string]any + if arr, okS := obj["steps"].([]any); okS { + for idx, rawStep := range arr { + sm, okM := rawStep.(map[string]any) + if !okM { + continue + } + stepTitle := wave3CycPlain(sm["title"], 160) + var lineTexts []string + if linesArr, okL := sm["lines"].([]any); okL { + for _, rl := range linesArr { + if lm, okLM := rl.(map[string]any); okLM { + txt := wave3CycFirstNonEmpty(wave3CycPlain(lm["text_raw"], 600), wave3CycCleanText(wave3CycStringVal(lm["text_rendered"]))) + if txt != "" { + lineTexts = append(lineTexts, txt) + } + } + } + } + joined := strings.Join(lineTexts, " ") + if stepTitle == "" && joined == "" { + continue + } + stepLabel := fmt.Sprintf("Step %d", idx+1) + if stepTitle != "" { + stepLabel += ": " + stepTitle + } + if idx < wave3CycMaxRecords { + if joined != "" { + stepsMD = append(stepsMD, fmt.Sprintf("%d. **%s** — %s", idx+1, escapeDeclMarkdownBrackets(stepLabel), joined)) + } else { + stepsMD = append(stepsMD, fmt.Sprintf("%d. **%s**", idx+1, escapeDeclMarkdownBrackets(stepLabel))) + } + } + recs = append(recs, map[string]any{ + "guideId": guideID, + "stepNumber": idx + 1, + "title": stepTitle, + "text": sliceRunesMax(joined, 400), + }) + } + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if summary != "" { + blocks = append(blocks, summary) + } + if intro != "" && intro != summary { + blocks = append(blocks, "## Introduction\n\n"+intro) + } + if len(tools) > 0 { + blocks = append(blocks, "## Tools\n\n"+strings.Join(tools, "\n")) + } + if len(parts) > 0 { + blocks = append(blocks, "## Parts\n\n"+strings.Join(parts, "\n")) + } + if len(stepsMD) > 0 { + blocks = append(blocks, "## Steps\n\n"+strings.Join(stepsMD, "\n")) + } + if conclusion != "" { + blocks = append(blocks, "## Conclusion\n\n"+conclusion) + } + if len(recs) == 0 { + recs = append(recs, map[string]any{ + "guideId": guideID, + "title": title, + "difficulty": difficulty, + "time": timeReq, + }) + } + + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(wave3CycFirstNonEmpty(summary, intro), 260), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + }, true + } + + // Case 2: Wiki JSON (`/api/2.0/wikis/{ns}/{name}`) + if obj["wikiid"] != nil { + wikiID := wave3CycPlain(obj["wikiid"], 32) + ns := wave3CycPlain(obj["namespace"], 64) + title := wave3CycFirstNonEmpty(wave3CycPlain(obj["display_title"], 240), wave3CycPlain(obj["title"], 240)) + if title == "" { + return nil, false + } + desc := wave3CycPlain(obj["description"], 800) + contentsMD := "" + if rendered := wave3CycStringVal(obj["contents_rendered"]); rendered != "" { + contentsMD = wave3CycFragToMD(rendered, origURL) + } + if contentsMD == "" { + contentsMD = wave3CycPlain(obj["contents_raw"], 4000) + } + if contentsMD == "" && desc == "" { + return nil, false + } + var bullets []string + bullets = append(bullets, "- **Wiki ID**: `"+wikiID+"`") + if ns != "" { + bullets = append(bullets, "- **Namespace**: `"+ns+"`") + } + if anc, okA := obj["ancestors"].([]any); okA && len(anc) > 0 { + var crumb []string + for _, a := range anc { + if s := wave3CycPlain(a, 64); s != "" { + crumb = append(crumb, s) + } + } + if len(crumb) > 0 { + bullets = append(bullets, "- **Ancestors**: "+strings.Join(crumb, " > ")) + } + } + if canonURL != "" { + bullets = append(bullets, "- **URL**: "+canonURL) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title), strings.Join(bullets, "\n")} + if desc != "" { + blocks = append(blocks, desc) + } + if contentsMD != "" { + blocks = append(blocks, contentsMD) + } + return &DeclarativeFormattedDoc{ + Title: title, + Description: sliceRunesMax(desc, 260), + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "wikiId": wikiID, + "namespace": ns, + "title": title, + }}, + }, true + } + + return nil, false +} + +func wave3CycExtractIFixitHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycStdHTMLMaxBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CycExtractMetaDesc(rawHTML) + var steps []string + for _, s := range doc.Select(".stepLines li, .step-lines li, ol.steps li, [itemprop='step'] [itemprop='text']", 40) { + if t := SanitizeSchemaPlainField(s.Text(), 500); t != "" { + steps = append(steps, t) + } + } + var tools []string + for _, t := range doc.Select(".tools-list li, #tools li, [itemprop='tool']", 25) { + if txt := SanitizeSchemaPlainField(t.Text(), 140); txt != "" { + tools = append(tools, txt) + } + } + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".guide-body", ".wiki-content") + if len(steps) == 0 && len(tools) == 0 && mainMD == "" && desc == "" { + return nil + } + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if desc != "" { + blocks = append(blocks, desc) + } + if len(tools) > 0 { + var tl []string + for _, t := range tools { + tl = append(tl, "- "+escapeDeclMarkdownBrackets(t)) + } + blocks = append(blocks, "## Tools\n\n"+strings.Join(tl, "\n")) + } + if len(steps) > 0 { + var sl []string + for i, st := range steps { + if i >= wave3CycMaxRecords { + break + } + sl = append(sl, fmt.Sprintf("%d. %s", i+1, st)) + } + blocks = append(blocks, "## Steps\n\n"+strings.Join(sl, "\n")) + } else if mainMD != "" { + blocks = append(blocks, mainMD) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{{"source": "ifixit", "title": title, "url": baseURL}}, + } +} + +// ── #344 E-Bike Drive Systems ──────────────────────────────────────────────────────────────────── + +func wave3CycExtractEBikeDriveHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + bodyText := doc.Text("main, article, body") + + torques := wave3CycFindAllUnique(wave3CycRxTorqueNm, bodyText, 6) + batteries := wave3CycFindAllUnique(wave3CycRxBatteryWh, bodyText, 6) + powers := wave3CycFindAllUnique(wave3CycRxMotorWatt, bodyText, 6) + volts := wave3CycFindAllUnique(wave3CycRxDriveVolt, bodyText, 4) + + dlRows, dlMap := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "drive", "battery", "motor", "system") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".specs", ".technical-data") + + if len(torques) == 0 && len(batteries) == 0 && len(powers) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if len(torques) > 0 { + bullets = append(bullets, "- **Torque**: "+strings.Join(torques, ", ")+" Nm") + } + if len(powers) > 0 { + bullets = append(bullets, "- **Motor Power**: "+strings.Join(powers, ", ")+" W") + } + if len(batteries) > 0 { + bullets = append(bullets, "- **Battery Capacity**: "+strings.Join(batteries, ", ")+" Wh") + } + if len(volts) > 0 { + bullets = append(bullets, "- **System Voltage**: "+strings.Join(volts, ", ")+" V") + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Drive System Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Specification Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Manuals & Datasheets\n\n"+strings.Join(manualLines, "\n")) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } + + rec := map[string]any{ + "source": "ebike-drive-systems", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + if len(torques) > 0 { + rec["torqueNm"] = torques + } + if len(batteries) > 0 { + rec["batteryWh"] = batteries + } + if len(powers) > 0 { + rec["motorWatts"] = powers + } + if len(dlMap) > 0 { + rec["specs"] = dlMap + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #345 Specialized Turbo Support ─────────────────────────────────────────────────────────────── + +func wave3CycExtractSpecializedTurboSupportHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycStdHTMLMaxBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CycExtractMetaDesc(rawHTML) + + // Extract Article / TechArticle / FAQPage JSON-LD if rendered + var ldAuthor, ldUpdated, ldBody string + var qaLines []string + for _, ld := range extractJSONLDObjectsDeclHTML(rawHTML, 24) { + if jsonLDHasType(ld, "Article") || jsonLDHasType(ld, "TechArticle") || jsonLDHasType(ld, "WebPage") { + if ldAuthor == "" { + ldAuthor = extractJSONLDAuthorName(ld["author"]) + } + if ldUpdated == "" { + ldUpdated = wave3CycPlain(ld["dateModified"], 32) + } + if ldBody == "" { + ldBody = wave3CycPlain(ld["articleBody"], 2400) + } + } + if jsonLDHasType(ld, "FAQPage") { + if mainEnt, ok := ld["mainEntity"].([]any); ok { + for _, rq := range mainEnt { + if qm, okQ := rq.(map[string]any); okQ { + q := wave3CycPlain(qm["name"], 240) + a := "" + if am, okA := qm["acceptedAnswer"].(map[string]any); okA { + a = wave3CycPlain(am["text"], 800) + } + if q != "" && a != "" { + qaLines = append(qaLines, fmt.Sprintf("### %s\n\n%s", escapeDeclMarkdownBrackets(q), a)) + } + } + } + } + } + } + + var breadcrumbs []string + for _, b := range doc.Select("nav[aria-label*='breadcrumb'] a, .breadcrumb a, .breadcrumbs a", 12) { + if bt := SanitizeSchemaPlainField(b.Text(), 64); bt != "" { + breadcrumbs = append(breadcrumbs, bt) + } + } + + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "turbo", "firmware", "diagnostic", "battery") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "article", ".kb-article", ".article-body", "main") + if mainMD == "" && ldBody != "" { + mainMD = ldBody + } + if mainMD == "" && len(qaLines) == 0 && tablesMD == "" { + return nil + } + + var bullets []string + if len(breadcrumbs) > 0 { + bullets = append(bullets, "- **Breadcrumbs**: "+strings.Join(breadcrumbs, " > ")) + } + if ldAuthor != "" { + bullets = append(bullets, "- **Author**: "+ldAuthor) + } + if ldUpdated != "" { + bullets = append(bullets, "- **Updated**: "+ldUpdated) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if mainMD != "" { + blocks = append(blocks, mainMD) + } + if len(qaLines) > 0 { + blocks = append(blocks, "## Diagnostic Q&A\n\n"+strings.Join(qaLines, "\n\n")) + } + if tablesMD != "" { + blocks = append(blocks, "## Diagnostic & Error Code Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Related Manuals & Support Links\n\n"+strings.Join(manualLines, "\n")) + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Author: ldAuthor, + PublishedTime: ldUpdated, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{{ + "source": "specialized-turbo-support", + "title": title, + "url": baseURL, + }}, + } +} + +// ── #346 Bicycle Tire Specs (Strict ISO 5775 ETRTO Validator) ──────────────────────────────────── + +// IsValidISO5775ETRTO validates an ETRTO NN-NNN tire size against ISO 5775 rim bead seat +// diameters and realistic bicycle tire widths (18..130 mm). +func IsValidISO5775ETRTO(raw string) (string, bool) { + s := strings.TrimSpace(raw) + parts := strings.Split(s, "-") + if len(parts) != 2 { + return "", false + } + width, errW := strconv.Atoi(strings.TrimSpace(parts[0])) + bsd, errB := strconv.Atoi(strings.TrimSpace(parts[1])) + if errW != nil || errB != nil { + return "", false + } + if width < 18 || width > 130 || !wave3CycISO5775BSDs[bsd] { + return "", false + } + return fmt.Sprintf("%d-%d", width, bsd), true +} + +func wave3CycExtractValidatedETRTOTokens(text string, limit int) []string { + if text == "" || limit <= 0 { + return nil + } + matches := wave3CycRxETRTOCandidate.FindAllStringSubmatch(text, -1) + var out []string + seen := make(map[string]bool) + for _, m := range matches { + if len(m) < 3 { + continue + } + norm, ok := IsValidISO5775ETRTO(m[1] + "-" + m[2]) + if !ok || seen[norm] { + continue + } + seen[norm] = true + out = append(out, norm) + if len(out) >= limit { + break + } + } + return out +} + +func wave3CycExtractBicycleTireSpecsHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + + // Collect text from body AND data-row attributes (used by Teravail/Shopify variant tables). + var scanBuf strings.Builder + scanBuf.WriteString(doc.Text("main, article, body")) + for _, rowNode := range doc.Select("[data-row]", 40) { + if dr := SanitizeSchemaPlainField(rowNode.AttrOrEmpty("data-row"), 160); dr != "" { + scanBuf.WriteByte(' ') + scanBuf.WriteString(dr) + } + } + scanText := scanBuf.String() + + etrtoList := wave3CycExtractValidatedETRTOTokens(scanText, 25) + impSizes := wave3CycFindAllUnique(wave3CycRxTireSizeImp, scanText, 12) + tpis := wave3CycFindAllUnique(wave3CycRxTPI, scanText, 8) + weights := wave3CycFindAllUnique(wave3CycRxWeightSpec, scanText, 8) + + lowerScan := strings.ToLower(scanText) + var compounds []string + for _, comp := range []string{"3C MaxxTerra", "3C MaxxGrip", "3C MaxxSpeed", "ADDIX Speedgrip", "ADDIX Soft", "ADDIX Ultra Soft", "ADDIX Race", "BlackChili", "Light & Supple", "Durable", "Dual Compound", "SG2"} { + if strings.Contains(lowerScan, strings.ToLower(comp)) { + compounds = append(compounds, comp) + } + } + var beads []string + for _, bead := range []string{"Foldable", "Folding", "Wire", "Aramid", "Kevlar"} { + if strings.Contains(lowerScan, strings.ToLower(bead)) { + beads = append(beads, bead) + } + } + var tubeless []string + for _, tl := range []string{"Tubeless Ready", "TLR", "TLE", "TCS", "TR", "Hookless"} { + if tl == "TR" { + if strings.Contains(scanText, " TR ") || strings.Contains(scanText, "(TR)") || strings.Contains(scanText, "/TR") { + tubeless = append(tubeless, tl) + } + continue + } + if strings.Contains(lowerScan, strings.ToLower(tl)) { + tubeless = append(tubeless, tl) + } + } + + dlRows, _ := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".product__description") + + if len(etrtoList) == 0 && len(impSizes) == 0 && len(tpis) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if len(etrtoList) > 0 { + bullets = append(bullets, "- **ETRTO (ISO 5775)**: "+strings.Join(etrtoList, ", ")) + } + if len(impSizes) > 0 { + bullets = append(bullets, "- **Wheel / Tire Sizes**: "+strings.Join(impSizes, ", ")) + } + if len(tpis) > 0 { + bullets = append(bullets, "- **TPI**: "+strings.Join(tpis, ", ")) + } + if len(compounds) > 0 { + bullets = append(bullets, "- **Compound**: "+strings.Join(compounds, ", ")) + } + if len(beads) > 0 { + bullets = append(bullets, "- **Bead**: "+strings.Join(beads, ", ")) + } + if len(tubeless) > 0 { + bullets = append(bullets, "- **Tubeless**: "+strings.Join(tubeless, ", ")) + } + if len(weights) > 0 { + bullets = append(bullets, "- **Weights**: "+strings.Join(weights, ", ")) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Tire Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Size & Spec Tables\n\n"+tablesMD) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } + + rec := map[string]any{ + "source": "bicycle-tire-specs", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + if len(etrtoList) > 0 { + rec["etrtoSizes"] = etrtoList + } + if len(impSizes) > 0 { + rec["tireSizes"] = impSizes + } + if len(tpis) > 0 { + rec["tpi"] = tpis + } + if len(compounds) > 0 { + rec["compounds"] = compounds + } + if len(beads) > 0 { + rec["beads"] = beads + } + if len(tubeless) > 0 { + rec["tubeless"] = tubeless + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: []string{baseURL}, + Records: []map[string]any{rec}, + } +} + +// ── #347 Wheel & Hub Specs ─────────────────────────────────────────────────────────────────────── + +func wave3CycExtractWheelHubSpecsHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + bodyText := doc.Text("main, article, body") + lowerText := strings.ToLower(bodyText) + + olds := wave3CycFindAllUnique(wave3CycRxHubOLD, bodyText, 8) + holes := wave3CycFindAllUnique(wave3CycRxHubHoles, bodyText, 6) + engagements := wave3CycFindAllUnique(wave3CycRxHubEngagement, bodyText, 6) + + var freehubs []string + for _, fh := range []string{"XD", "XDR", "Micro Spline", "HG", "Shimano HG", "Campagnolo", "N3W"} { + if strings.Contains(lowerText, strings.ToLower(fh)) { + freehubs = append(freehubs, fh) + } + } + var mounts []string + for _, mt := range []string{"Center Lock", "Centerlock", "6-Bolt", "IS 6-Bolt"} { + if strings.Contains(lowerText, strings.ToLower(mt)) { + mounts = append(mounts, mt) + } + } + + dlRows, dlMap := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "hub", "wheel", "ratchet", "bearing") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".product__description", ".collection-products") + + if len(olds) == 0 && len(holes) == 0 && len(engagements) == 0 && len(freehubs) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if len(olds) > 0 { + bullets = append(bullets, "- **Axle Spacing (O.L.D.)**: "+strings.Join(olds, ", ")+" mm") + } + if len(holes) > 0 { + bullets = append(bullets, "- **Spoke Drilling**: "+strings.Join(holes, ", ")+"H") + } + if len(engagements) > 0 { + bullets = append(bullets, "- **Engagement**: "+strings.Join(engagements, ", ")) + } + if len(freehubs) > 0 { + bullets = append(bullets, "- **Freehub Bodies**: "+strings.Join(freehubs, ", ")) + } + if len(mounts) > 0 { + bullets = append(bullets, "- **Rotor Mount**: "+strings.Join(mounts, ", ")) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Hub & Wheel Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Technical Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Service Manuals & Exploded Views\n\n"+strings.Join(manualLines, "\n")) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } + + rec := map[string]any{ + "source": "wheel-hub-specs", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + if len(olds) > 0 { + rec["axleSpacingMm"] = olds + } + if len(freehubs) > 0 { + rec["freehubs"] = freehubs + } + if len(engagements) > 0 { + rec["engagement"] = engagements + } + if len(dlMap) > 0 { + rec["specs"] = dlMap + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #348 Bicycle Brake Docs ────────────────────────────────────────────────────────────────────── + +func wave3CycExtractBicycleBrakeDocsHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycStdHTMLMaxBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + bodyText := doc.Text("main, article, body") + lowerText := strings.ToLower(bodyText) + + rotors := wave3CycFindAllUnique(wave3CycRxBrakeRotor, bodyText, 8) + thicknesses := wave3CycFindAllUnique(wave3CycRxBrakeThick, bodyText, 4) + pistons := wave3CycFindAllUnique(wave3CycRxBrakePistons, bodyText, 4) + + var fluids []string + for _, fl := range []string{"Mineral Oil", "Royal Blood", "DOT 5.1", "DOT 4"} { + if strings.Contains(lowerText, strings.ToLower(fl)) { + fluids = append(fluids, fl) + } + } + var mounts []string + for _, mt := range []string{"Post Mount", "Flat Mount", "IS Mount", "Center Lock", "6-Bolt"} { + if strings.Contains(lowerText, strings.ToLower(mt)) { + mounts = append(mounts, mt) + } + } + + dlRows, dlMap := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 6) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "brake", "bleed", "rotor", "pad") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".product__description", ".woocommerce-product-details__short-description") + + if len(rotors) == 0 && len(fluids) == 0 && len(pistons) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if len(pistons) > 0 { + bullets = append(bullets, "- **Caliper Pistons**: "+strings.Join(pistons, ", ")+"-piston") + } + if len(fluids) > 0 { + bullets = append(bullets, "- **Brake Fluid**: "+strings.Join(fluids, ", ")) + } + if len(rotors) > 0 { + bullets = append(bullets, "- **Rotor Sizes**: "+strings.Join(rotors, ", ")+" mm") + } + if len(thicknesses) > 0 { + bullets = append(bullets, "- **Rotor Thickness**: "+strings.Join(thicknesses, ", ")+" mm") + } + if len(mounts) > 0 { + bullets = append(bullets, "- **Mount Standard**: "+strings.Join(mounts, ", ")) + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Brake Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Rotor & Pad Compatibility Tables\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Service & Bleed Manuals\n\n"+strings.Join(manualLines, "\n")) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } + + rec := map[string]any{ + "source": "bicycle-brake-docs", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + if len(fluids) > 0 { + rec["fluid"] = fluids + } + if len(rotors) > 0 { + rec["rotorSizesMm"] = rotors + } + if len(pistons) > 0 { + rec["pistons"] = pistons + } + if len(dlMap) > 0 { + rec["specs"] = dlMap + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #349 Suspension & Cockpit Compatibility ────────────────────────────────────────────────────── + +func wave3CycExtractSuspensionCockpitHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CycMaxHTMLBytes) + if doc == nil { + return nil + } + title := wave3CycExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + pm := wave3CycExtractProductJSONLD(rawHTML) + desc := wave3CycFirstNonEmpty(wave3CycExtractMetaDesc(rawHTML), pm.Description) + bodyText := doc.Text("main, article, body") + + shisCodes := wave3CycFindAllUnique(wave3CycRxSHIS, bodyText, 12) + bcds := wave3CycFindAllUnique(wave3CycRxBCD, bodyText, 8) + shockSizes := wave3CycFindAllUnique(wave3CycRxShockSize, bodyText, 8) + clamps := wave3CycFindAllUnique(wave3CycRxClampDiam, bodyText, 6) + + dlRows, dlMap := wave3CycExtractDLSpecs(doc) + tablesMD, _ := wave3CycExtractTablesMarkdown(doc, 8) + manualLines, manualLinks := wave3CycExtractManualLinks(doc, baseURL, "fit", "compat", "shis", "spring", "headset", "shock") + mainMD := wave3CycExtractMainMarkdown(doc, baseURL, "main", "article", ".product__description") + + if len(shisCodes) == 0 && len(bcds) == 0 && len(shockSizes) == 0 && len(clamps) == 0 && len(dlRows) == 0 && tablesMD == "" && mainMD == "" && desc == "" { + return nil + } + + var bullets []string + wave3CycAppendProductBullets(&bullets, pm) + if len(shisCodes) > 0 { + bullets = append(bullets, "- **SHIS Headset Standards**: "+strings.Join(shisCodes, ", ")) + } + if len(bcds) > 0 { + bullets = append(bullets, "- **Chainring Mount / BCD**: "+strings.Join(bcds, ", ")) + } + if len(shockSizes) > 0 { + bullets = append(bullets, "- **Shock Eye-to-Eye x Stroke**: "+strings.Join(shockSizes, ", ")) + } + if len(clamps) > 0 { + bullets = append(bullets, "- **Clamp / Post Diameters**: "+strings.Join(clamps, ", ")+" mm") + } + + blocks := []string{"# " + escapeDeclMarkdownBrackets(title)} + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if desc != "" { + blocks = append(blocks, desc) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Compatibility & Fitment Specs\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + if tablesMD != "" { + blocks = append(blocks, "## Compatibility Charts\n\n"+tablesMD) + } + if len(manualLines) > 0 { + blocks = append(blocks, "## Fitment & Tuning Manuals\n\n"+strings.Join(manualLines, "\n")) + } + if mainMD != "" && tablesMD == "" && len(dlRows) == 0 { + blocks = append(blocks, mainMD) + } + + rec := map[string]any{ + "source": "suspension-cockpit-compat", + "title": title, + "url": baseURL, + } + wave3CycApplyProductToRecord(rec, pm) + if len(shisCodes) > 0 { + rec["shis"] = shisCodes + } + if len(bcds) > 0 { + rec["bcd"] = bcds + } + if len(shockSizes) > 0 { + rec["shockSizes"] = shockSizes + } + if len(clamps) > 0 { + rec["diametersMm"] = clamps + } + if len(dlMap) > 0 { + rec["specs"] = dlMap + } + + var links []string + seenLinks := make(map[string]bool) + wave3CycAddLink(&links, seenLinks, baseURL, baseURL) + for _, ml := range manualLinks { + wave3CycAddLink(&links, seenLinks, ml, baseURL) + } + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} diff --git a/internal/extract/wave3_cycling_components_test.go b/internal/extract/wave3_cycling_components_test.go new file mode 100644 index 0000000..f9fc237 --- /dev/null +++ b/internal/extract/wave3_cycling_components_test.go @@ -0,0 +1,403 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strings" + "testing" + "time" +) + +func wave3CycDecodeDoc(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 wave3CycResolveManifest(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 TestWave3CyclingComponentsManifestsAndRouting(t *testing.T) { + catO1IDs := []string{ + "fox-ridefox", + "park-tool", + "ifixit", + "ebike-drive-systems", + "specialized-turbo-support", + "bicycle-tire-specs", + "wheel-hub-specs", + "bicycle-brake-docs", + "suspension-cockpit-compat", + } + + byID := make(map[string]*DeclarativeAdapterManifest) + claimedDomains := make(map[string]string) + for _, id := range catO1IDs { + 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) + } + if len(m.ExampleURLs) == 0 { + t.Fatalf("%s.yaml missing exampleUrls", 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 cycling/help manifests + for _, existingID := range []string{ + "specialized", "sram-docs", "sram-models", "bosch-ebike-help", + "giant-liv-bikes", "tq-ebike", "ebike-state-laws", "cpsc-ebike-battery", + } { + 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 O1 %s overlaps %s domain %q", catOwner, existingID, ld) + } + } + } + + // #347 owns hopetech.com / www.hopetech.com exclusively; #348 must NOT claim it + if owner := claimedDomains["hopetech.com"]; owner != "wheel-hub-specs" { + t.Fatalf("expected hopetech.com owner wheel-hub-specs, got %q", owner) + } + if owner := claimedDomains["www.hopetech.com"]; owner != "wheel-hub-specs" { + t.Fatalf("expected www.hopetech.com owner wheel-hub-specs, got %q", owner) + } + for _, d := range byID["bicycle-brake-docs"].Domains { + if strings.Contains(strings.ToLower(d), "hopetech") { + t.Fatalf("bicycle-brake-docs must not claim %q", d) + } + } + + // #345 specialized-turbo-support claims support.specialized.com ONLY + sts := byID["specialized-turbo-support"] + if len(sts.Domains) != 1 || sts.Domains[0] != "support.specialized.com" { + t.Fatalf("specialized-turbo-support must claim support.specialized.com only, got %v", sts.Domains) + } + + // #343 ifixit twin route resolution for guides & wikis + ifx := byID["ifixit"] + if tm, ok := wave3CycResolveManifest(t, ifx, "https://www.ifixit.com/api/2.0/guides/1"); !ok || tm.route.Extract.JSONMode != "ifixit_json" { + t.Fatalf("ifixit /api/2.0/guides/1 route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3CycResolveManifest(t, ifx, "https://www.ifixit.com/api/2.0/wikis/CATEGORY/Bicycle"); !ok || tm.route.Extract.JSONMode != "ifixit_json" { + t.Fatalf("ifixit /api/2.0/wikis/CATEGORY/Bicycle route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3CycResolveManifest(t, ifx, "https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537"); ok || tm != nil { + t.Fatalf("ifixit HTML guide URL should fall through to htmlRoutes: %+v", tm) + } +} + +func TestWave3CyclingComponentsModeRegistrationAndIFixitJSON(t *testing.T) { + registerWave3CyclingComponentsHTMLModes() + RegisterWave3CyclingComponentsHTMLModes() + + htmlModes := []string{ + "fox_ridefox_html", + "park_tool_html", + "ifixit_html", + "ebike_drive_systems_html", + "specialized_turbo_support_html", + "bicycle_tire_specs_html", + "wheel_hub_specs_html", + "bicycle_brake_docs_html", + "suspension_cockpit_compat_html", + } + for _, hm := range htmlModes { + if !IsWave3CyclingComponentsHTMLMode(hm) { + t.Fatalf("IsWave3CyclingComponentsHTMLMode(%q) = false", hm) + } + if getExternalHTMLModeLazy(hm) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", hm) + } + } + if !IsWave3CyclingComponentsJSONMode("ifixit_json") || IsWave3CyclingComponentsJSONMode("unknown_json") { + t.Fatalf("IsWave3CyclingComponentsJSONMode check failed") + } + + // Guide JSON + guidePayload := `{"guideid":41537,"title":"Bicycle Chain Replacement","category":"Bicycle","subject":"Chain","difficulty":"Moderate","time_required":"15 - 30 minutes","summary":"Replace a worn chain.","url":"https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537","tools":[{"text":"Chain Tool"}],"parts":[{"text":"11-Speed Chain"}],"steps":[{"stepid":1,"title":"Break Chain","lines":[{"text_raw":"Use chain tool to push pin."}]}]}` + rawDoc, ok := FormatWave3CyclingComponentsJSONMode("ifixit_json", []byte(guidePayload), nil, "https://www.ifixit.com/api/2.0/guides/41537") + if !ok { + t.Fatalf("ifixit_json guide formatting failed") + } + doc := wave3CycDecodeDoc(t, rawDoc) + if doc.Title != "Bicycle Chain Replacement" || !strings.Contains(doc.Markdown, "Chain Tool") || !strings.Contains(doc.Markdown, "Break Chain") { + t.Fatalf("unexpected ifixit guide output: %+v", doc) + } + + // Wiki JSON + wikiPayload := `{"wikiid":12,"namespace":"CATEGORY","title":"Bicycle","description":"Bicycle repair hub","ancestors":["Root"],"contents_rendered":"

Maintain drivetrains, brakes, and wheels.

","url":"https://www.ifixit.com/Wiki/Bicycle"}` + wikiRaw, okW := FormatWave3CyclingComponentsJSONMode("ifixit_json", []byte(wikiPayload), nil, "https://www.ifixit.com/api/2.0/wikis/CATEGORY/Bicycle") + if !okW || !strings.Contains(wikiRaw, "Maintain drivetrains") { + t.Fatalf("ifixit_json wiki formatting failed: ok=%v raw=%s", okW, wikiRaw) + } + + // Error JSON rejection + if _, negOK := FormatWave3CyclingComponentsJSONMode("ifixit_json", []byte(`{"error":true,"message":"Guide not found"}`), nil, "https://www.ifixit.com/api/2.0/guides/99999999"); negOK { + t.Fatalf("ifixit_json must reject error JSON") + } +} + +func TestWave3CyclingComponentsETRTOAndAllNineHTMLExtractors(t *testing.T) { + // 1. Strict ISO 5775 ETRTO validation unit checks + validETRTOTests := []string{"23-622", "28-622", "40-622", "63-622", "58-584", "63-584", "57-559", "61-406", "37-349", "42-635"} + for _, tc := range validETRTOTests { + if norm, ok := IsValidISO5775ETRTO(tc); !ok || norm != tc { + t.Fatalf("expected valid ISO 5775 ETRTO %q, got ok=%v norm=%q", tc, ok, norm) + } + } + invalidETRTOTests := []string{"25-145", "96-160", "40-700", "45-700", "11-654", "17-622", "131-622", "19-999", "60-600"} + for _, tc := range invalidETRTOTests { + if norm, ok := IsValidISO5775ETRTO(tc); ok { + t.Fatalf("expected invalid ETRTO %q to be rejected, got %q", tc, norm) + } + } + + // 2. #346 Teravail data-row ("700 x 40-700") & Maxxis false-positive ETRTO rejection + teravailHTML := `Cannonball Gen 2 Tire | Teravail

Cannonball Gen 2

60 TPI / Light & Supple / Tubeless Ready

Valid ETRTO 42-622, non-ETRTO SKU 25-145.

` + tRes := Wave3CyclingComponentsRunHTML("bicycle_tire_specs_html", teravailHTML, "https://www.teravail.com/products/cannonball-gen-2-tire", "bicycle-tire-specs") + if tRes == nil { + t.Fatalf("teravail bicycle_tire_specs_html returned nil") + } + if !strings.Contains(tRes.Markdown, "42-622") || strings.Contains(tRes.Markdown, "ETRTO (ISO 5775): 40-700") || strings.Contains(tRes.Markdown, "25-145,") { + t.Fatalf("unexpected ETRTO filtering in teravail output: %s", tRes.Markdown) + } + if !strings.Contains(tRes.Markdown, "700 x 40") || !strings.Contains(tRes.Markdown, "60 TPI") || !strings.Contains(tRes.Markdown, "Light & Supple") { + t.Fatalf("missing Teravail imperial/TPI/compound specs: %s", tRes.Markdown) + } + if tRes.Records[0]["gtin"] != "708752291100" { + t.Fatalf("expected strict 12-digit GTIN fallback (ignoring 7-digit), got %+v", tRes.Records[0]) + } + + // 3. #341 FOX RideFOX + foxHTML := `2019 FACTORY SERIES FLOAT

2019 FACTORY SERIES FLOAT

Tune ID: DKC6, GRIP2 damper, 160 mm travel.

Service Interval
125 hours
` + foxRes, okFox := RunWave3CyclingComponentsHTMLMode("fox_ridefox_html", foxHTML, "https://tech.ridefox.com/bike/search/code/DKC6") + if !okFox || !strings.Contains(foxRes, "DKC6") || !strings.Contains(foxRes, "125 hours") { + t.Fatalf("fox_ridefox_html failed: ok=%v res=%s", okFox, foxRes) + } + + // 4. #342 Park Tool + ptHTML := `Rear Derailleur Adjustment

Rear Derailleur Adjustment

  • 4mm Hex
  1. Shift to smallest cog.
  2. Set H-limit screw.
` + ptRes, okPT := RunWave3CyclingComponentsHTMLMode("park_tool_html", ptHTML, "https://www.parktool.com/en-us/blog/repair-help/rear-derailleur-adjustment") + if !okPT || !strings.Contains(ptRes, "4mm Hex") || !strings.Contains(ptRes, "H-limit screw") { + t.Fatalf("park_tool_html failed: ok=%v res=%s", okPT, ptRes) + } + + // 5. #343 iFixit HTML fallback + ifxHTML := `Chain Replacement - iFixit

Bicycle Chain Replacement

  • Chain Tool
  1. Open quick link.
` + if ifxRes, okIfx := RunWave3CyclingComponentsHTMLMode("ifixit_html", ifxHTML, "https://www.ifixit.com/Guide/Bicycle+Chain+Replacement/41537"); !okIfx || !strings.Contains(ifxRes, "Chain Tool") { + t.Fatalf("ifixit_html failed: ok=%v res=%s", okIfx, ifxRes) + } + + // 6. #344 E-Bike Drive Systems (including QORE with salesforce/aura + valid JSON-LD & content) + qoreHTML := `QORE by YMESG Drive System

QORE Drive Unit

95 Nm torque, 36 V, 725 Wh battery integration.

` + if qRes, okQ := RunWave3CyclingComponentsHTMLMode("ebike_drive_systems_html", qoreHTML, "https://www.qore-system.de/"); !okQ || !strings.Contains(qRes, "95") || !strings.Contains(qRes, "725") { + t.Fatalf("ebike_drive_systems_html QORE failed: ok=%v res=%s", okQ, qRes) + } + + // 7. #345 Specialized Turbo Support (rendered KB article succeeds; eGain launcher & API-GW 403 fail) + stsHTML := `Turbo Diagnostic Codes

Turbo Diagnostic Codes

Inspect MasterMind TCU battery LED codes.

` + if stsRes, okSTS := RunWave3CyclingComponentsHTMLMode("specialized_turbo_support_html", stsHTML, "https://support.specialized.com/kb/sp_en-us/diagnostics"); !okSTS || !strings.Contains(stsRes, "MasterMind TCU") { + t.Fatalf("specialized_turbo_support_html failed: ok=%v res=%s", okSTS, stsRes) + } + egainShell := `

.

` + if bad := Wave3CyclingComponentsRunHTML("specialized_turbo_support_html", egainShell, "https://support.specialized.com/kb/sp_en-us/home", "specialized-turbo-support"); bad != nil { + t.Fatalf("specialized_turbo_support_html must reject eGain launcher shell, got %+v", bad) + } + if badGW := Wave3CyclingComponentsRunHTML("specialized_turbo_support_html", `{"message":"Missing Authentication Token"}`, "https://support.specialized.com/home", "specialized-turbo-support"); badGW != nil { + t.Fatalf("specialized_turbo_support_html must reject API Gateway 403 JSON, got %+v", badGW) + } + + // 8. #347, #348, #349 Cloudflare Turnstile script tag inside valid 200 product page MUST succeed, + // while minimal "Just a moment..." challenge page MUST be rejected. + i9WithCF := `Sector AL | Industry Nine

Industry Nine Hydra Sector AL

148 mm Boost spacing, 690 POE engagement, 28H, XD and Micro Spline freehubs.

` + if i9Res, okI9 := RunWave3CyclingComponentsHTMLMode("wheel_hub_specs_html", i9WithCF, "https://industrynine.com/products/sector-al"); !okI9 || !strings.Contains(i9Res, "148") || !strings.Contains(i9Res, "Micro Spline") { + t.Fatalf("wheel_hub_specs_html must allow valid 200 product page with CF script tags: ok=%v res=%s", okI9, i9Res) + } + + tektroWithCF := `Tektro HD-M275

Tektro HD-M275 Hydraulic Disc Brake

2-piston caliper, Mineral Oil, 160 mm and 180 mm rotors (1.8 mm thickness).

` + if tkRes, okTK := RunWave3CyclingComponentsHTMLMode("bicycle_brake_docs_html", tektroWithCF, "https://tektro.com/en/product/315"); !okTK || !strings.Contains(tkRes, "Mineral Oil") || !strings.Contains(tkRes, "180") { + t.Fatalf("bicycle_brake_docs_html must allow valid 200 product page with CF script tags: ok=%v res=%s", okTK, tkRes) + } + + wtWithCF := `Drop-Stop Chainrings | Wolf Tooth

Direct Mount Drop-Stop Chainring

Compatible with 104 BCD, 110 BCD, and Cinch cranks; SHIS IS41 headset spacers.

` + if wtRes, okWT := RunWave3CyclingComponentsHTMLMode("suspension_cockpit_compat_html", wtWithCF, "https://www.wolftoothcomponents.com/collections/chainrings"); !okWT || !strings.Contains(wtRes, "104 BCD") || !strings.Contains(wtRes, "IS41") { + t.Fatalf("suspension_cockpit_compat_html must allow valid 200 product page with CF script tags: ok=%v res=%s", okWT, wtRes) + } + + cfChallenge := `Just a moment...
Checking your browser
` + for _, hm := range []string{"wheel_hub_specs_html", "bicycle_brake_docs_html", "suspension_cockpit_compat_html"} { + if badCF := Wave3CyclingComponentsRunHTML(hm, cfChallenge, "https://example.com/", ""); badCF != nil { + t.Fatalf("%s must reject minimal Cloudflare challenge page, got %+v", hm, badCF) + } + } + + // 9. Adversarial 100 KB HTML latency check (<50ms across all 9 HTML modes) + adv := `Home` + strings.Repeat("
noise
", 4500) + `` + for _, hm := range []string{ + "fox_ridefox_html", + "park_tool_html", + "ifixit_html", + "ebike_drive_systems_html", + "specialized_turbo_support_html", + "bicycle_tire_specs_html", + "wheel_hub_specs_html", + "bicycle_brake_docs_html", + "suspension_cockpit_compat_html", + } { + t0 := time.Now() + if got := Wave3CyclingComponentsRunHTML(hm, adv, "https://example.org/", ""); got != nil { + t.Fatalf("%s adversarial noise shell returned non-nil: %+v", hm, got) + } + if elapsed := time.Since(t0); elapsed > 50*time.Millisecond { + t.Fatalf("%s adversarial 100KB payload took %v (>50ms)", hm, elapsed) + } + } +} + +func TestWave3CyclingComponentsFixturesParity(t *testing.T) { + type fixtureNegative struct { + Name string `json:"name"` + Status int `json:"status"` + InputURL string `json:"inputUrl"` + FinalURL string `json:"finalUrl"` + Payload string `json:"payload"` + } + 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 []fixtureNegative `json:"negativeCases"` + } + + modeByID := map[string]string{ + "fox-ridefox": "fox_ridefox_html", + "park-tool": "park_tool_html", + "ifixit": "ifixit_json", + "ebike-drive-systems": "ebike_drive_systems_html", + "specialized-turbo-support": "specialized_turbo_support_html", + "bicycle-tire-specs": "bicycle_tire_specs_html", + "wheel-hub-specs": "wheel_hub_specs_html", + "bicycle-brake-docs": "bicycle_brake_docs_html", + "suspension-cockpit-compat": "suspension_cockpit_compat_html", + } + + for id, mode := range modeByID { + fxPath := filepath.Join("..", "..", "hub", "test", "fixtures", "adapters", id+".json") + raw, err := os.ReadFile(fxPath) + if err != nil { + t.Fatalf("read fixture %s: %v", fxPath, err) + } + var fx adapterFixture + if err := json.Unmarshal(raw, &fx); err != nil { + t.Fatalf("unmarshal fixture %s: %v", fxPath, err) + } + if fx.AdapterID != id { + t.Fatalf("%s: adapterId=%q want %q", fxPath, fx.AdapterID, id) + } + if len(fx.NegativeCases) < 4 { + t.Fatalf("%s: expected >= 4 negativeCases, got %d", fxPath, len(fx.NegativeCases)) + } + + if fx.Mode == "twin" { + docRaw, ok := FormatWave3CyclingComponentsJSONMode(mode, []byte(fx.MockPayload), nil, fx.InputURL) + if !ok { + t.Fatalf("%s: golden twin format failed", id) + } + doc := wave3CycDecodeDoc(t, docRaw) + 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\nmd=%s", id, needle, doc.Markdown) + } + } + } else { + res := Wave3CyclingComponentsRunHTML(mode, fx.MockPayload, fx.InputURL, id) + if res == nil { + t.Fatalf("%s: golden HTML extraction returned nil", 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\nmd=%s", id, needle, res.Markdown) + } + } + } + + for _, nc := range fx.NegativeCases { + ncURL := nc.FinalURL + if ncURL == "" { + ncURL = nc.InputURL + } + if ncURL == "" { + ncURL = fx.InputURL + } + if fx.Mode == "twin" { + if _, ok := FormatWave3CyclingComponentsJSONMode(mode, []byte(nc.Payload), nil, ncURL); ok { + t.Fatalf("%s negativeCase %q must not succeed as JSON", id, nc.Name) + } + if bad := Wave3CyclingComponentsRunHTML("ifixit_html", nc.Payload, ncURL, id); bad != nil { + t.Fatalf("%s negativeCase %q must not succeed as HTML", id, nc.Name) + } + } else { + if bad := Wave3CyclingComponentsRunHTML(mode, nc.Payload, ncURL, id); bad != nil { + t.Fatalf("%s negativeCase %q must not succeed, got %+v", id, nc.Name, bad) + } + } + } + } +} diff --git a/internal/extract/wave3_cycling_oems.go b/internal/extract/wave3_cycling_oems.go new file mode 100644 index 0000000..70a1a79 --- /dev/null +++ b/internal/extract/wave3_cycling_oems.go @@ -0,0 +1,2354 @@ +package extract + +import ( + "bytes" + "encoding/json" + "fmt" + stdhtml "html" + "math" + "strconv" + "strings" +) + +const ( + wave3CyclingMaxHTMLBytes = 2 * 1024 * 1024 + wave3CyclingStdHTMLMaxBytes = 1 * 1024 * 1024 + wave3CyclingMaxJSONBytes = 2 * 1024 * 1024 + wave3CyclingMaxRecords = 25 + wave3CyclingMaxBodyChars = 32000 +) + +var ( + wave3CyclingRxNotFoundTitle = newLazyRegexp(`(?i)(?:^|\b)(?:404|403|410|429|page\s+not\s+found|not\s+found|error\s*404|404\s+error\s+page|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|warning:\s*blocked|cname\s+cross-user\s+banned|uh\s+oh!)(?:\b|$)`) + wave3CyclingRxMaintTitle = 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)`) + wave3CyclingRxErrorTitle = 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|404\s+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)$`) + wave3CyclingRxGenericTitle = newLazyRegexp(`(?i)^(?:loading\.{0,3}|home|welcome|search|99\s*spokes|geometry\s*geeks|ul\s*product\s*iq|saferproducts)$`) + wave3CyclingRxHTMLTag = newLazyRegexp(`<[^>]+>`) + wave3CyclingRxSpaceCollapse = newLazyRegexp(`[ \t\r\n]+`) + wave3CyclingRxISODate = 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})`) + wave3CyclingRxJSONLDScript = newLazyRegexp(`(?is)]*\btype\s*=\s*["']application/ld\+json["'][^>]*>(.*?)`) + wave3CyclingRxNextData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NEXT_DATA__["'][^>]*>(.*?)`) + wave3CyclingRxNuxtData = newLazyRegexp(`(?is)]*\bid\s*=\s*["']__NUXT_DATA__["'][^>]*>(.*?)`) + wave3CyclingRxPriceNum = newLazyRegexp(`(?:USD|CAD|EUR|GBP|AUD|\$|€|£)?\s*([0-9][0-9,]*(?:\.[0-9]{1,2})?)`) + wave3CyclingRxBatteryWh = newLazyRegexp(`(?i)\b(\d{3,4}(?:\.\d+)?)\s*Wh\b`) + wave3CyclingRxMotorWatts = newLazyRegexp(`(?i)\b(\d{3,4})\s*W\b(?:\s*(?:motor|hub|mid-?drive|Bosch|Shimano|Bafang))?|\b(Bosch\s+[A-Za-z0-9 +\-]{2,40}|Shimano\s+(?:EP\d|STEPS\s+[A-Za-z0-9]+)|Bafang\s+[A-Za-z0-9 \-]+|Brose\s+[A-Za-z0-9 \-]+)`) + wave3CyclingRxTorqueNm = newLazyRegexp(`(?i)\b(\d{2,3})\s*Nm\b`) + wave3CyclingRxPayloadCap = newLazyRegexp(`(?i)(?:GVWR|gross\s+vehicle\s+weight(?:\s+rating)?|max(?:imum)?\s+(?:payload|load|capacity|weight)|payload(?:\s+capacity)?|cargo\s+capacity)\s*[:\-]?\s*(\d{2,4}\s*(?:kg|lbs?|pounds))`) + wave3CyclingRxEbikeClass = newLazyRegexp(`(?i)\b(Class\s*[123](?:\s*/\s*[123])?)\b`) + wave3CyclingRxULStandard = newLazyRegexp(`(?i)\b((?:ANSI/CAN/)?UL\s*(?:2849|2271|2272|2580|1642|2054|94))\b`) + wave3CyclingRxULFileNum = newLazyRegexp(`\b(E\d{5,7})\b`) + wave3CyclingRxULCCN = newLazyRegexp(`(?i)\b(?:CCN|Category\s*Control\s*Number)\s*[:\-]?\s*([A-Z]{4}\d?)\b`) + wave3CyclingRxStatuteCite = newLazyRegexp(`(?i)\b(Minn\.\s*Stat\.\s*§?\s*\d+\.\d+|RCW\s+\d+\.\d+\.\d+|C\.R\.S\.?\s*§?\s*\d+-\d+-\d+|Cal\.\s*Veh\.\s*Code\s*§?\s*\d+(?:\.\d+)?|\d+\s+U\.S\.C\.\s*§?\s*\d+|16\s+CFR\s+(?:Part\s+)?\d+)\b`) + wave3CyclingRxStateName = newLazyRegexp(`\b(Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Georgia|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Louisiana|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Tennessee|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming)\b`) + wave3CyclingRxNuxtKV = newLazyRegexp(`(?i)"?(reach|stack|headTubeAngle|seatTubeAngle|chainstay(?:Length)?|wheelbase|bbDrop|standover|frontTravel|rearTravel)"?\s*:\s*"?([0-9]+(?:\.[0-9]+)?)"?`) +) + +func init() { + registerWave3CyclingOEMsHTMLModes() +} + +// RegisterWave3CyclingOEMsHTMLModes registers all Category O2 HTML modes (#350-#358) lazily. +func RegisterWave3CyclingOEMsHTMLModes() { + registerWave3CyclingOEMsHTMLModes() +} + +func registerWave3CyclingOEMsHTMLModes() { + for _, mode := range []string{ + "cargo_ebike_oems_html", + "us_ebike_oems_html", + "qbp_frame_brands_html", + "mtb_geometry_brands_html", + "geometrygeeks_99spokes_html", + "sheldon_brown_html", + "ul_product_iq_html", + "e_bike_state_laws_html", + "cpsc_ebike_incidents_html", + } { + m := mode + RegisterExternalHTMLModeLazy(m, func(rawHTML, baseURL string, _ func() string, extractorID string) *DeclarativePostFetchResult { + return Wave3CyclingOEMsRunHTML(m, rawHTML, baseURL, extractorID) + }) + } +} + +// IsWave3CyclingOEMsHTMLMode reports whether mode is one of the 9 Category O2 HTML modes (#350-#358). +func IsWave3CyclingOEMsHTMLMode(mode string) bool { + switch mode { + case "cargo_ebike_oems_html", + "us_ebike_oems_html", + "qbp_frame_brands_html", + "mtb_geometry_brands_html", + "geometrygeeks_99spokes_html", + "sheldon_brown_html", + "ul_product_iq_html", + "e_bike_state_laws_html", + "cpsc_ebike_incidents_html": + return true + default: + return false + } +} + +// IsWave3CyclingOEMsJSONMode reports whether mode is handled by Category O2 JSON formatters (`cpsc_ebike_incidents_json`). +func IsWave3CyclingOEMsJSONMode(mode string) bool { + return mode == "cpsc_ebike_incidents_json" +} + +func wave3CyclingDefaultExtractorID(mode string) string { + switch mode { + case "cargo_ebike_oems_html": + return "cargo-ebike-oems" + case "us_ebike_oems_html": + return "us-ebike-oems" + case "qbp_frame_brands_html": + return "qbp-frame-brands" + case "mtb_geometry_brands_html": + return "mtb-geometry-brands" + case "geometrygeeks_99spokes_html": + return "geometrygeeks-99spokes" + case "sheldon_brown_html": + return "sheldon-brown" + case "ul_product_iq_html": + return "ul-product-iq" + case "e_bike_state_laws_html": + return "e-bike-state-laws" + case "cpsc_ebike_incidents_html", "cpsc_ebike_incidents_json": + return "cpsc-ebike-incidents" + default: + return "" + } +} + +// Wave3CyclingOEMsRunHTML executes a Category O2 HTML extractor and returns DeclarativePostFetchResult. +func Wave3CyclingOEMsRunHTML(mode, rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + if !IsWave3CyclingOEMsHTMLMode(mode) || len(rawHTML) == 0 || strings.IndexByte(rawHTML, '<') < 0 || strings.IndexByte(rawHTML, '>') < 0 { + return nil + } + maxHTML := wave3CyclingStdHTMLMaxBytes + switch mode { + case "cargo_ebike_oems_html", "us_ebike_oems_html", "qbp_frame_brands_html", "mtb_geometry_brands_html", "e_bike_state_laws_html": + maxHTML = wave3CyclingMaxHTMLBytes + } + 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) + + if !wave3CyclingMatchesModePrefilter(mode, rawHTML, probeLower, urlLower) { + return nil + } + if wave3CyclingHasNegativeShell(mode, rawHTML, probeLower, urlLower) { + return nil + } + if extractorID == "" { + extractorID = wave3CyclingDefaultExtractorID(mode) + } + + var res *DeclarativePostFetchResult + switch mode { + case "cargo_ebike_oems_html": + res = wave3CyclingExtractCargoOEMHTML(rawHTML, baseURL, extractorID) + case "us_ebike_oems_html": + res = wave3CyclingExtractUSEbikeOEMHTML(rawHTML, baseURL, extractorID) + case "qbp_frame_brands_html": + res = wave3CyclingExtractQBPFrameHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + case "mtb_geometry_brands_html": + res = wave3CyclingExtractMTBGeometryHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + case "geometrygeeks_99spokes_html": + res = wave3CyclingExtractGeometryGeeks99SpokesHTML(rawHTML, probeLower, baseURL, urlLower, extractorID) + case "sheldon_brown_html": + res = wave3CyclingExtractSheldonBrownHTML(rawHTML, baseURL, extractorID) + case "ul_product_iq_html": + res = wave3CyclingExtractULProductIQHTML(rawHTML, baseURL, extractorID) + case "e_bike_state_laws_html": + res = wave3CyclingExtractEBikeStateLawsHTML(rawHTML, baseURL, urlLower, extractorID) + case "cpsc_ebike_incidents_html": + res = wave3CyclingExtractCPSCPublicSearchHTML(rawHTML, baseURL, extractorID) + } + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + return wave3CyclingFinalizePostFetch(res) +} + +// RunWave3CyclingOEMsHTMLMode executes a Category O2 HTML extractor and returns JSON-marshaled DeclarativePostFetchResult. +func RunWave3CyclingOEMsHTMLMode(mode, rawHTML, baseURL string) (string, bool) { + res := Wave3CyclingOEMsRunHTML(mode, rawHTML, baseURL, wave3CyclingDefaultExtractorID(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 +} + +// FormatWave3CyclingOEMsJSONDoc formats a Category O2 JSON twin payload into DeclarativeFormattedDoc. +func FormatWave3CyclingOEMsJSONDoc(mode string, raw []byte, params map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + return formatWave3CyclingOEMsJSON(mode, raw, params, origURL) +} + +func formatWave3CyclingOEMsJSON(mode string, raw []byte, _ map[string]string, origURL string) (*DeclarativeFormattedDoc, bool) { + if !IsWave3CyclingOEMsJSONMode(mode) || len(raw) == 0 || len(raw) > wave3CyclingMaxJSONBytes { + 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 + } + doc, handled := wave3CyclingFormatCPSCIncidentsJSON(parsed, origURL) + if !handled || doc == nil || strings.TrimSpace(doc.Markdown) == "" { + return nil, false + } + return wave3CyclingFinalizeDoc(doc), true +} + +// FormatWave3CyclingOEMsJSONMode formats a Category O2 JSON payload and returns JSON-marshaled DeclarativeFormattedDoc. +func FormatWave3CyclingOEMsJSONMode(mode string, raw []byte, params map[string]string, origURL string) (string, bool) { + doc, ok := formatWave3CyclingOEMsJSON(mode, raw, params, origURL) + if !ok || doc == nil { + return "", false + } + encoded, err := json.Marshal(doc) + if err != nil { + return "", false + } + return string(encoded), true +} + +// ── Prefilters & Shared Negative-Shell Guards ─────────────────────────────────────────────────── + +func wave3CyclingMatchesModePrefilter(mode, rawHTML, probeLower, urlLower string) bool { + switch mode { + case "cargo_ebike_oems_html": + return strings.Contains(urlLower, "yubabikes.com") || + strings.Contains(urlLower, "xtracycle.com") || + strings.Contains(urlLower, "ternbicycles.com") || + strings.Contains(urlLower, "r-m.de") || + strings.Contains(probeLower, "yuba") || + strings.Contains(probeLower, "xtracycle") || + strings.Contains(probeLower, "tern") || + strings.Contains(probeLower, "riese") || + strings.Contains(probeLower, "payload") || + strings.Contains(probeLower, "gvwr") || + hasJSONLDScriptToken(probeLower) || + 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 wave3CyclingIsNegativeTitle(title string) bool { + t := strings.TrimSpace(title) + if t == "" { + return false + } + return wave3CyclingRxNotFoundTitle.MatchString(t) || + wave3CyclingRxMaintTitle.MatchString(t) || + wave3CyclingRxErrorTitle.MatchString(t) +} + +func wave3CyclingIsGenericTitle(title string) bool { + return wave3CyclingRxGenericTitle.MatchString(strings.TrimSpace(title)) +} + +func wave3CyclingHasNegativeShell(mode, rawHTML, probeLower, urlLower string) bool { + if wave3CyclingIsNegativeURL(urlLower) { + return true + } + for _, marker := range []string{ + "cf-browser-verification", + "cf-mitigated", + "_cf_chl_opt", + "cf_chl_opt", + "attention required! | cloudflare", + "sorry, you have been blocked", + "you have been blocked", + "just a moment...", + "warning: blocked - ul prospector", + "cname cross-user banned", + "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", + "site is currently under maintenance", + "temporarily unavailable", + "no http resource was found", + "404 error page", + } { + if strings.Contains(probeLower, marker) { + return true + } + } + title := extractTitleLinearQuick(probeLower) + if title == "" { + title = extractTitleLinearQuick(rawHTML) + } + if wave3CyclingIsNegativeTitle(title) { + return true + } + if canon := strings.ToLower(extractMetaContentDeclHTML(rawHTML, "og:url")); strings.HasSuffix(canon, "/404") || strings.Contains(canon, "/404?") { + return true + } + + rawLower := probeLower + hasRealBodyMarkers := hasJSONLDScriptToken(rawLower) || + strings.Contains(rawLower, " 65536 { + tail := rawHTML[65536:] + hasRealBodyMarkers = indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "application/ld+json") >= 0 || + indexFoldASCIIExtract(tail, "__next_data__") >= 0 || + indexFoldASCIIExtract(tail, "__nuxt") >= 0 + } + + if !hasRealBodyMarkers { + if strings.Contains(rawLower, "") || + wave3HasEmptyRootDivShell(rawHTML, probeLower, true) { + return true + } + } + if mode == "geometrygeeks_99spokes_html" { + // Reject empty Next.js shell on 99spokes even if __NEXT_DATA__ tag exists without actual bike/geometry payload. + hasEmptyNextDiv := strings.Contains(rawLower, `
`) + if !hasEmptyNextDiv && len(rawHTML) > 65536 { + hasEmptyNextDiv = indexFoldASCIIExtract(rawHTML[65536:], `
`) >= 0 + } + if hasEmptyNextDiv { + hasGeoPayload := strings.Contains(rawLower, " 65536 { + tail := rawHTML[65536:] + hasGeoPayload = indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "= 0 || + indexFoldASCIIExtract(tail, "bike-geometry-table") >= 0 || + indexFoldASCIIExtract(tail, `"reach"`) >= 0 || + indexFoldASCIIExtract(tail, `"geometry"`) >= 0 + } + if !hasGeoPayload { + return true + } + } + } + return false +} + +// ── Shared Extraction Utilities ───────────────────────────────────────────────────────────────── + +func wave3CyclingCleanText(s string) string { + if s == "" { + return "" + } + if strings.IndexByte(s, '<') >= 0 { + s = wave3CyclingRxHTMLTag.ReplaceAllString(s, " ") + } + if strings.IndexByte(s, '&') >= 0 { + s = stdhtml.UnescapeString(s) + if strings.IndexByte(s, '<') >= 0 { + s = wave3CyclingRxHTMLTag.ReplaceAllString(s, " ") + } + } + if !strings.ContainsAny(s, "\t\r\n") && !strings.Contains(s, " ") { + return strings.TrimSpace(s) + } + return strings.TrimSpace(wave3CyclingRxSpaceCollapse.ReplaceAllString(s, " ")) +} + +func wave3CyclingStringVal(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 wave3CyclingPlain(v any, maxLen int) string { + return SanitizeSchemaPlainField(wave3CyclingStringVal(v), maxLen) +} + +func wave3CyclingFirstNonEmpty(vals ...string) string { + for _, v := range vals { + if t := strings.TrimSpace(v); t != "" { + return t + } + } + return "" +} + +func wave3CyclingNormalizeISODate(raw string) string { + s := SanitizeSchemaPlainField(raw, 48) + if s == "" { + return "" + } + if m := wave3CyclingRxISODate.FindStringSubmatch(s); len(m) == 4 { + return m[1] + "-" + m[2] + "-" + m[3] + } + return "" +} + +func wave3CyclingAddLink(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 wave3CyclingExtractTitle(doc *HTMLDoc, rawHTML string) string { + if doc != nil { + if h1 := SanitizeSchemaPlainField(wave3CyclingCleanText(doc.Text("h1")), 240); h1 != "" && !wave3CyclingIsGenericTitle(h1) && !wave3CyclingIsNegativeTitle(h1) { + return h1 + } + } + if og := SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:title"), 240); og != "" && !wave3CyclingIsGenericTitle(og) && !wave3CyclingIsNegativeTitle(og) { + return og + } + if t := SanitizeSchemaPlainField(extractTitleLinearQuick(rawHTML), 240); t != "" && !wave3CyclingIsGenericTitle(t) && !wave3CyclingIsNegativeTitle(t) { + return t + } + if doc != nil { + if h2 := SanitizeSchemaPlainField(wave3CyclingCleanText(doc.Text("h2")), 240); h2 != "" && !wave3CyclingIsGenericTitle(h2) && !wave3CyclingIsNegativeTitle(h2) { + return h2 + } + } + return "" +} + +func wave3CyclingExtractMetaDesc(rawHTML string) string { + return wave3CyclingFirstNonEmpty( + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "og:description"), 600), + SanitizeSchemaPlainField(extractMetaContentDeclHTML(rawHTML, "description"), 600), + ) +} + +type wave3CyclingProductJSONLD struct { + Name string + Brand string + SKU string + Price string + Currency string + Availability string + Description string + URL string +} + +func wave3CyclingExtractJSONLDNodes(rawHTML string) []map[string]any { + if indexFoldASCIIExtract(rawHTML, "application/ld+json") < 0 { + return nil + } + matches := wave3CyclingRxJSONLDScript.FindAllStringSubmatch(rawHTML, 12) + if len(matches) == 0 { + return nil + } + var out []map[string]any + var push func(v any) + push = func(v any) { + switch tv := v.(type) { + case map[string]any: + out = append(out, tv) + if g, ok := tv["@graph"].([]any); ok { + for _, item := range g { + push(item) + } + } + case []any: + for _, item := range tv { + push(item) + } + } + } + for _, m := range matches { + if len(m) < 2 { + continue + } + body := strings.TrimSpace(stdhtml.UnescapeString(m[1])) + if body == "" { + continue + } + parsed, ok := decodeJSONWithNumbers([]byte(body)) + if ok && parsed != nil { + push(parsed) + } + } + return out +} + +func wave3CyclingHasJSONLDType(obj map[string]any, wanted ...string) bool { + if obj == nil { + return false + } + check := func(s string) bool { + s = strings.TrimSpace(strings.ToLower(s)) + if idx := strings.LastIndexAny(s, "/:"); idx >= 0 { + s = s[idx+1:] + } + for _, w := range wanted { + if s == strings.ToLower(w) { + return true + } + } + return false + } + switch t := obj["@type"].(type) { + case string: + return check(t) + case []any: + for _, item := range t { + if s, ok := item.(string); ok && check(s) { + return true + } + } + } + return false +} + +func wave3CyclingParsePrice(raw string) string { + cleaned := strings.TrimSpace(raw) + if cleaned == "" || strings.HasPrefix(cleaned, "-") { + return "" + } + m := wave3CyclingRxPriceNum.FindStringSubmatch(cleaned) + if len(m) < 2 { + return "" + } + numStr := strings.ReplaceAll(m[1], ",", "") + val, err := strconv.ParseFloat(numStr, 64) + if err != nil || val <= 0 || val > 1000000 { + return "" + } + return strconv.FormatFloat(val, 'f', 2, 64) +} + +func wave3CyclingExtractProductJSONLD(nodes []map[string]any, baseURL string) *wave3CyclingProductJSONLD { + for _, obj := range nodes { + if !wave3CyclingHasJSONLDType(obj, "Product", "IndividualProduct", "ProductGroup", "Vehicle") { + continue + } + p := &wave3CyclingProductJSONLD{ + Name: wave3CyclingPlain(obj["name"], 240), + SKU: wave3CyclingPlain(obj["sku"], 80), + Description: wave3CyclingPlain(obj["description"], 800), + URL: SanitizeSchemaHTTPSURL(wave3CyclingStringVal(obj["url"]), baseURL), + } + switch b := obj["brand"].(type) { + case string: + p.Brand = wave3CyclingPlain(b, 120) + case map[string]any: + p.Brand = wave3CyclingPlain(b["name"], 120) + } + extractOffer := func(om map[string]any) { + if om == nil { + return + } + if p.Price == "" { + p.Price = wave3CyclingFirstNonEmpty( + wave3CyclingParsePrice(wave3CyclingStringVal(om["price"])), + wave3CyclingParsePrice(wave3CyclingStringVal(om["lowPrice"])), + ) + } + if p.Currency == "" { + cur := strings.ToUpper(wave3CyclingPlain(om["priceCurrency"], 8)) + if len(cur) == 3 { + p.Currency = cur + } + } + if p.Availability == "" { + avail := wave3CyclingStringVal(om["availability"]) + if idx := strings.LastIndexAny(avail, "/:"); idx >= 0 { + avail = avail[idx+1:] + } + p.Availability = wave3CyclingPlain(avail, 48) + } + } + switch off := obj["offers"].(type) { + case map[string]any: + extractOffer(off) + case []any: + for _, item := range off { + if om, ok := item.(map[string]any); ok { + extractOffer(om) + if p.Price != "" { + break + } + } + } + } + if p.Name != "" || p.SKU != "" || p.Price != "" { + return p + } + } + return nil +} + +func wave3CyclingExtractHTMLTables(doc *HTMLDoc, selector string, maxTables, maxRows, maxCols int) ([]string, [][][]string) { + if doc == nil { + return nil, nil + } + tables := doc.Select(selector, maxTables*2) + var rendered []string + var parsed [][][]string + for _, tbl := range tables { + if len(rendered) >= maxTables { + break + } + rows := tbl.TableRows() + if len(rows) < 2 { + continue + } + // Skip single-row noscript warnings or empty layout tables. + var cleanRows [][]string + for _, r := range rows { + if len(r) == 0 { + continue + } + joined := strings.ToLower(strings.Join(r, " ")) + if strings.Contains(joined, "must use a web browser") || strings.Contains(joined, "add to compare") { + continue + } + cleanRows = append(cleanRows, r) + } + if len(cleanRows) < 2 { + continue + } + headers := cleanRows[0] + cols := len(headers) + if cols == 0 { + continue + } + if cols > maxCols { + cols = maxCols + } + cleanHdr := make([]string, cols) + nonEmptyHdr := 0 + for i := 0; i < cols; i++ { + cleanHdr[i] = SanitizeSchemaPlainField(headers[i], 64) + if cleanHdr[i] == "" { + if i == 0 { + cleanHdr[i] = "Metric" + } else { + cleanHdr[i] = fmt.Sprintf("Col %d", i+1) + } + } else { + nonEmptyHdr++ + } + } + if nonEmptyHdr == 0 && cols < 2 { + continue + } + var dataRows [][]string + for i := 1; i < len(cleanRows) && len(dataRows) < maxRows; i++ { + r := cleanRows[i] + dr := make([]string, cols) + nonEmpty := false + for c := 0; c < cols; c++ { + if c < len(r) { + dr[c] = SanitizeSchemaPlainField(r[c], 120) + if dr[c] != "" { + nonEmpty = true + } + } + } + if nonEmpty { + dataRows = append(dataRows, dr) + } + } + if len(dataRows) == 0 { + continue + } + rendered = append(rendered, formatDeclarativeGFMTable(cleanHdr, dataRows)) + allRows := append([][]string{cleanHdr}, dataRows...) + parsed = append(parsed, allRows) + } + return rendered, parsed +} + +func wave3CyclingExtractBodyProse(doc *HTMLDoc, baseURL string) (string, []string) { + if doc == nil { + return "", nil + } + var container *HTMLNode + for _, sel := range []string{"main", "article", "[role='main']", ".article-body", ".content", "body"} { + if c := doc.First(sel); c != nil { + container = c + break + } + } + if container == nil { + container = &doc.HTMLNode + } + + var parts []string + seenText := make(map[string]bool) + totalBytes := 0 + for _, nd := range container.Select("h2, h3, h4, p, li, blockquote, dt, dd", 120) { + txt := wave3CyclingCleanText(nd.Text()) + if txt == "" || seenText[txt] { + continue + } + seenText[txt] = true + var line string + switch nd.Tag() { + case "h2": + line = "## " + escapeDeclMarkdownBrackets(txt) + case "h3", "h4": + line = "### " + escapeDeclMarkdownBrackets(txt) + case "li": + line = "- " + txt + case "blockquote": + line = "> " + txt + case "dt": + line = "**" + txt + "**" + default: + line = txt + } + if totalBytes > 0 && totalBytes+len(line)+2 > 8000 { + break + } + parts = append(parts, line) + totalBytes += len(line) + 2 + } + + md := strings.Join(parts, "\n\n") + if md == "" { + md = wave3CyclingCleanText(container.Text()) + if len(md) > 8000 { + md = truncateUTF8SafeFullDocGo(md, 8000) + } + } + + var links []string + seenLinks := make(map[string]bool) + for _, a := range container.Select("a[href]", 100) { + wave3CyclingAddLink(&links, seenLinks, a.AttrOrEmpty("href"), baseURL) + } + return md, links +} + +func wave3CyclingExtractNextDataObj(rawHTML string) map[string]any { + if indexFoldASCIIExtract(rawHTML, "__next_data__") < 0 { + return nil + } + m := wave3CyclingRxNextData.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 wave3CyclingNestedMap(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 wave3CyclingIntPtr(n int) *int { return &n } +func wave3CyclingBoolPtr(b bool) *bool { return &b } + +func wave3CyclingFinalizeDoc(doc *DeclarativeFormattedDoc) *DeclarativeFormattedDoc { + if doc == nil { + return nil + } + if len(doc.Records) > wave3CyclingMaxRecords { + if doc.Total == nil { + doc.Total = wave3CyclingIntPtr(len(doc.Records)) + } + doc.Records = doc.Records[:wave3CyclingMaxRecords] + doc.Returned = wave3CyclingIntPtr(len(doc.Records)) + doc.Truncated = wave3CyclingBoolPtr(true) + if doc.NextCursor == "" { + doc.NextCursor = strconv.Itoa(len(doc.Records)) + } + } + if len(doc.Markdown) > wave3CyclingMaxBodyChars { + doc.Markdown = truncateUTF8SafeFullDocGo(doc.Markdown, wave3CyclingMaxBodyChars) + } + if sanitized, ok := sanitizeDeclarativeFormattedDocGo(doc); ok && sanitized != nil { + return sanitized + } + return nil +} + +func wave3CyclingFinalizePostFetch(res *DeclarativePostFetchResult) *DeclarativePostFetchResult { + if res == nil || strings.TrimSpace(res.Markdown) == "" { + return nil + } + if len(res.Records) > wave3CyclingMaxRecords { + if res.Total == nil { + res.Total = wave3CyclingIntPtr(len(res.Records)) + } + res.Records = res.Records[:wave3CyclingMaxRecords] + res.Returned = wave3CyclingIntPtr(len(res.Records)) + res.Truncated = wave3CyclingBoolPtr(true) + if res.NextCursor == "" { + res.NextCursor = strconv.Itoa(len(res.Records)) + } + } + if len(res.Markdown) > wave3CyclingMaxBodyChars { + res.Markdown = truncateUTF8SafeFullDocGo(res.Markdown, wave3CyclingMaxBodyChars) + } + return res +} + +// ── #350 Cargo E-Bike OEMs ────────────────────────────────────────────────────────────────────── + +func wave3CyclingExtractCargoOEMHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + nodes := wave3CyclingExtractJSONLDNodes(rawHTML) + prod := wave3CyclingExtractProductJSONLD(nodes, baseURL) + + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" && prod != nil { + title = prod.Name + } + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + if desc == "" && prod != nil { + desc = prod.Description + } + + bodyText := "" + if doc != nil { + bodyText = doc.Text("main") + if bodyText == "" { + bodyText = doc.Text("body") + } + } + scanText := title + "\n" + desc + "\n" + bodyText + + payload := "" + if m := wave3CyclingRxPayloadCap.FindStringSubmatch(scanText); len(m) >= 2 { + payload = SanitizeSchemaPlainField(m[1], 48) + } + batteryWh := "" + if m := wave3CyclingRxBatteryWh.FindStringSubmatch(scanText); len(m) >= 2 { + batteryWh = m[1] + " Wh" + } + motor := "" + if m := wave3CyclingRxMotorWatts.FindStringSubmatch(scanText); len(m) >= 3 { + if m[2] != "" { + motor = SanitizeSchemaPlainField(m[2], 64) + } else if m[1] != "" { + motor = m[1] + "W" + } + } + torque := "" + if m := wave3CyclingRxTorqueNm.FindStringSubmatch(scanText); len(m) >= 2 { + torque = m[1] + " Nm" + } + + tables, _ := wave3CyclingExtractHTMLTables(doc, "table", 3, 25, 8) + dlMap := map[string]string{} + if doc != nil { + dlMap = doc.DLMap("dl") + } + + var bullets []string + rec := map[string]any{"model": title} + if prod != nil && prod.Brand != "" { + bullets = append(bullets, "- **Brand**: "+prod.Brand) + rec["brand"] = prod.Brand + } + if prod != nil && prod.Price != "" { + priceStr := prod.Price + if prod.Currency != "" { + priceStr = prod.Currency + " " + priceStr + } + bullets = append(bullets, "- **Price**: "+priceStr) + rec["price"] = prod.Price + if prod.Currency != "" { + rec["currency"] = prod.Currency + } + } + if payload != "" { + bullets = append(bullets, "- **Payload / GVWR**: "+payload) + rec["payload"] = payload + } + if batteryWh != "" { + bullets = append(bullets, "- **Battery**: "+batteryWh) + rec["batteryWh"] = batteryWh + } + if motor != "" { + motorLine := motor + if torque != "" { + motorLine += " (" + torque + ")" + rec["torque"] = torque + } + bullets = append(bullets, "- **Motor**: "+motorLine) + rec["motor"] = motor + } else if torque != "" { + bullets = append(bullets, "- **Motor Torque**: "+torque) + rec["torque"] = torque + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if len(dlMap) > 0 { + var dlRows [][]string + for k, v := range dlMap { + if len(dlRows) >= 15 { + break + } + dlRows = append(dlRows, []string{SanitizeSchemaPlainField(k, 64), SanitizeSchemaPlainField(v, 140)}) + } + if len(dlRows) > 0 { + blocks = append(blocks, "## Specifications\n\n"+formatDeclarativeGFMTable([]string{"Specification", "Value"}, dlRows)) + } + } + for idx, tbl := range tables { + heading := "## Cargo & Bike Specifications" + if idx > 0 { + heading = fmt.Sprintf("## Specifications Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + } + + var links []string + seenLinks := make(map[string]bool) + if prod != nil && prod.URL != "" { + wave3CyclingAddLink(&links, seenLinks, prod.URL, baseURL) + rec["url"] = prod.URL + } + if len(tables) == 0 && len(bullets) <= 1 { + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + if prose == "" && desc == "" { + return nil + } + if prose != "" { + blocks = append(blocks, "## Overview\n\n"+prose) + } + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + } else if desc != "" { + blocks = append(blocks, "## Overview\n\n"+desc) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #351 US E-Bike OEMs ───────────────────────────────────────────────────────────────────────── + +func wave3CyclingExtractUSEbikeOEMHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + nodes := wave3CyclingExtractJSONLDNodes(rawHTML) + prod := wave3CyclingExtractProductJSONLD(nodes, baseURL) + + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" && prod != nil { + title = prod.Name + } + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + if desc == "" && prod != nil { + desc = prod.Description + } + + bodyText := "" + if doc != nil { + bodyText = doc.Text("main") + if bodyText == "" { + bodyText = doc.Text("body") + } + } + scanText := title + "\n" + desc + "\n" + bodyText + + ebikeClass := "" + if m := wave3CyclingRxEbikeClass.FindStringSubmatch(scanText); len(m) >= 2 { + ebikeClass = SanitizeSchemaPlainField(m[1], 32) + } + batteryWh := "" + if m := wave3CyclingRxBatteryWh.FindStringSubmatch(scanText); len(m) >= 2 { + batteryWh = m[1] + " Wh" + } + motor := "" + if m := wave3CyclingRxMotorWatts.FindStringSubmatch(scanText); len(m) >= 3 { + if m[2] != "" { + motor = SanitizeSchemaPlainField(m[2], 64) + } else if m[1] != "" { + motor = m[1] + "W" + } + } + torque := "" + if m := wave3CyclingRxTorqueNm.FindStringSubmatch(scanText); len(m) >= 2 { + torque = m[1] + " Nm" + } + + tables, _ := wave3CyclingExtractHTMLTables(doc, "table", 3, 25, 8) + var bullets []string + rec := map[string]any{"model": title} + if prod != nil && prod.Brand != "" { + bullets = append(bullets, "- **Brand**: "+prod.Brand) + rec["brand"] = prod.Brand + } + if ebikeClass != "" { + bullets = append(bullets, "- **E-Bike Class**: "+ebikeClass) + rec["ebikeClass"] = ebikeClass + } + if batteryWh != "" { + bullets = append(bullets, "- **Battery**: "+batteryWh) + rec["batteryWh"] = batteryWh + } + if motor != "" { + mStr := motor + if torque != "" { + mStr += " (" + torque + ")" + rec["torque"] = torque + } + bullets = append(bullets, "- **Motor**: "+mStr) + rec["motor"] = motor + } + if prod != nil && prod.Price != "" { + pStr := prod.Price + if prod.Currency != "" { + pStr = prod.Currency + " " + pStr + } + bullets = append(bullets, "- **Price**: "+pStr) + rec["price"] = prod.Price + if prod.Currency != "" { + rec["currency"] = prod.Currency + } + } + if prod != nil && prod.Availability != "" { + bullets = append(bullets, "- **Availability**: "+prod.Availability) + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + for idx, tbl := range tables { + heading := "## E-Bike Specifications" + if idx > 0 { + heading = fmt.Sprintf("## Specifications Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + } + + var links []string + seenLinks := make(map[string]bool) + if prod != nil && prod.URL != "" { + wave3CyclingAddLink(&links, seenLinks, prod.URL, baseURL) + rec["url"] = prod.URL + } + if len(tables) == 0 && len(bullets) <= 1 { + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + if prose == "" && desc == "" { + return nil + } + if prose != "" { + blocks = append(blocks, "## Overview\n\n"+prose) + } + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + } else if desc != "" { + blocks = append(blocks, "## Overview\n\n"+desc) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #352 Frame & Touring Bike Brands ──────────────────────────────────────────────────────────── + +func wave3CyclingExtractQBPFrameHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + // Handle retiredbrandresources.com minimal retirement notice cleanly as non-active when no geometry/product specs exist. + isRetiredBrandNotice := strings.Contains(urlLower, "retiredbrandresources") || strings.Contains(probeLower, "retiredbrandresources") + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + nodes := wave3CyclingExtractJSONLDNodes(rawHTML) + prod := wave3CyclingExtractProductJSONLD(nodes, baseURL) + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, "table", 4, 25, 10) + + if isRetiredBrandNotice && len(tables) == 0 && prod == nil { + return nil + } + + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" && prod != nil { + title = prod.Name + } + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + if desc == "" && prod != nil { + desc = prod.Description + } + + var bullets []string + rec := map[string]any{"model": title} + if prod != nil && prod.Brand != "" { + bullets = append(bullets, "- **Brand**: "+prod.Brand) + rec["brand"] = prod.Brand + } + if prod != nil && prod.SKU != "" { + bullets = append(bullets, "- **SKU**: `"+prod.SKU+"`") + rec["sku"] = prod.SKU + } + if prod != nil && prod.Price != "" { + pStr := prod.Price + if prod.Currency != "" { + pStr = prod.Currency + " " + pStr + } + bullets = append(bullets, "- **Price**: "+pStr) + rec["price"] = prod.Price + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + + var recs []map[string]any + recs = append(recs, rec) + for idx, tbl := range tables { + heading := "## Frame & Geometry Specifications" + if idx > 0 { + heading = fmt.Sprintf("## Specifications Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + if idx < len(parsedTables) && len(parsedTables[idx]) >= 2 { + hdr := parsedTables[idx][0] + for _, r := range parsedTables[idx][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{"metric": r[0]} + for c := 1; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + recs = append(recs, rowRec) + } + } + } + + var links []string + seenLinks := make(map[string]bool) + if prod != nil && prod.URL != "" { + wave3CyclingAddLink(&links, seenLinks, prod.URL, baseURL) + } + if len(tables) == 0 { + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + if prose == "" && desc == "" && len(bullets) == 0 { + return nil + } + if prose != "" { + blocks = append(blocks, "## Frame Details\n\n"+prose) + } + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + } else if desc != "" { + blocks = append(blocks, "## Frame Overview\n\n"+desc) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #353 MTB Geometry Brands ──────────────────────────────────────────────────────────────────── + +func wave3CyclingExtractNuxtGeometry(rawHTML string) (map[string]string, [][]string) { + if indexFoldASCIIExtract(rawHTML, "__nuxt") < 0 { + return nil, nil + } + kv := make(map[string]string) + var rows [][]string + + if m := wave3CyclingRxNuxtData.FindStringSubmatch(rawHTML); len(m) >= 2 { + if parsed, ok := decodeJSONWithNumbers([]byte(strings.TrimSpace(m[1]))); ok && parsed != nil { + var walk func(v any, depth int) + walk = func(v any, depth int) { + if depth > 8 || len(rows) >= 20 { + return + } + switch tv := v.(type) { + case map[string]any: + for k, val := range tv { + lk := strings.ToLower(k) + if lk == "reach" || lk == "stack" || lk == "headtubeangle" || lk == "seattubeangle" || lk == "chainstay" || lk == "wheelbase" || lk == "bbdrop" || lk == "fronttravel" || lk == "reartravel" { + sv := wave3CyclingPlain(val, 40) + if sv != "" { + kv[k] = sv + rows = append(rows, []string{k, sv}) + } + } else { + walk(val, depth+1) + } + } + case []any: + for _, el := range tv { + walk(el, depth+1) + } + } + } + walk(parsed, 0) + } + } + + // Also scan Nuxt 2 window.__NUXT__ literals when __NUXT_DATA__ JSON isn't used. + if len(rows) == 0 && strings.Contains(rawHTML, "__NUXT__") { + seenKeys := make(map[string]bool) + for _, m := range wave3CyclingRxNuxtKV.FindAllStringSubmatch(rawHTML, 25) { + if len(m) < 3 { + continue + } + k := SanitizeSchemaPlainField(m[1], 40) + v := SanitizeSchemaPlainField(m[2], 32) + if k == "" || v == "" || seenKeys[k] { + continue + } + seenKeys[k] = true + kv[k] = v + rows = append(rows, []string{k, v}) + } + } + return kv, rows +} + +func wave3CyclingExtractMTBGeometryHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + nodes := wave3CyclingExtractJSONLDNodes(rawHTML) + prod := wave3CyclingExtractProductJSONLD(nodes, baseURL) + + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" && prod != nil { + title = prod.Name + } + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + if desc == "" && prod != nil { + desc = prod.Description + } + + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, "table", 4, 25, 10) + nuxtKV, nuxtRows := wave3CyclingExtractNuxtGeometry(rawHTML) + + var bullets []string + var recs []map[string]any + if prod != nil { + if prod.Brand != "" { + bullets = append(bullets, "- **Brand**: "+prod.Brand) + } + if prod.Price != "" { + pStr := prod.Price + if prod.Currency != "" { + pStr = prod.Currency + " " + pStr + } + bullets = append(bullets, "- **Price**: "+pStr) + } + } + if strings.Contains(urlLower, "yeticycles.com") || strings.Contains(probeLower, "__nuxt__") { + bullets = append(bullets, "- **Hydration Source**: Nuxt SSR") + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + + if len(nuxtRows) > 0 { + blocks = append(blocks, "## Hydration Geometry Specs\n\n"+formatDeclarativeGFMTable([]string{"Parameter", "Value"}, nuxtRows)) + rec := map[string]any{"model": title} + for k, v := range nuxtKV { + rec[k] = v + } + recs = append(recs, rec) + } + + for idx, tbl := range tables { + heading := "## Geometry & Build Kits" + if idx > 0 { + heading = fmt.Sprintf("## Build / Geometry Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + if idx < len(parsedTables) && len(parsedTables[idx]) >= 2 { + hdr := parsedTables[idx][0] + for _, r := range parsedTables[idx][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{"metric": r[0]} + for c := 1; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + recs = append(recs, rowRec) + } + } + } + + var links []string + seenLinks := make(map[string]bool) + if prod != nil && prod.URL != "" { + wave3CyclingAddLink(&links, seenLinks, prod.URL, baseURL) + } + if len(tables) == 0 && len(nuxtRows) == 0 { + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + if prose == "" && desc == "" { + return nil + } + if prose != "" { + blocks = append(blocks, "## Build Kits & Overview\n\n"+prose) + } + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + } else if desc != "" { + blocks = append(blocks, "## Overview\n\n"+desc) + } + + if len(recs) == 0 { + rec := map[string]any{"model": title} + if prod != nil && prod.Price != "" { + rec["price"] = prod.Price + } + recs = append(recs, rec) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #354 Geometry Geeks & 99 Spokes (REAL adapter, NEVER detect-only) ─────────────────────────── + +func wave3CyclingExtractGeometryGeeks99SpokesHTML(rawHTML, probeLower, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + nodes := wave3CyclingExtractJSONLDNodes(rawHTML) + prod := wave3CyclingExtractProductJSONLD(nodes, baseURL) + + // 1. Check 99spokes __NEXT_DATA__ hydration JSON if present. + nextObj := wave3CyclingExtractNextDataObj(rawHTML) + var nextBike map[string]any + if nextObj != nil { + if pp := wave3CyclingNestedMap(nextObj, "props", "pageProps"); pp != nil { + if b, ok := pp["bike"].(map[string]any); ok { + nextBike = b + } else if pp["geometry"] != nil || pp["specs"] != nil || pp["sizes"] != nil { + nextBike = pp + } + } + } + + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" && nextBike != nil { + title = wave3CyclingFirstNonEmpty( + wave3CyclingPlain(nextBike["name"], 200), + wave3CyclingPlain(nextBike["model"], 200), + ) + } + if title == "" && prod != nil { + title = prod.Name + } + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + if desc == "" && prod != nil { + desc = prod.Description + } + + var blocks []string + var recs []map[string]any + var links []string + seenLinks := make(map[string]bool) + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + + var bullets []string + if prod != nil && prod.Brand != "" { + bullets = append(bullets, "- **Brand**: "+prod.Brand) + } + if nextBike != nil { + if maker := wave3CyclingPlain(nextBike["maker"], 80); maker != "" { + bullets = append(bullets, "- **Maker**: "+maker) + } + if yr := wave3CyclingPlain(nextBike["year"], 16); yr != "" { + bullets = append(bullets, "- **Model Year**: "+yr) + } + if cat := wave3CyclingPlain(nextBike["category"], 64); cat != "" { + bullets = append(bullets, "- **Category**: "+cat) + } + if price := wave3CyclingParsePrice(wave3CyclingStringVal(nextBike["msrp"])); price != "" { + bullets = append(bullets, "- **MSRP**: $"+price) + } + } else if prod != nil && prod.Price != "" { + pStr := prod.Price + if prod.Currency != "" { + pStr = prod.Currency + " " + pStr + } + bullets = append(bullets, "- **MSRP / Price**: "+pStr) + } + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + + // 2. GeometryGeeks `table.bike-geometry-table` or generic HTML geometry tables. + tableSelector := "table.bike-geometry-table, table" + if strings.Contains(probeLower, "bike-geometry-table") { + tableSelector = "table.bike-geometry-table" + } + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, tableSelector, 3, 30, 12) + for idx, tbl := range tables { + heading := "## Geometry Table" + if idx > 0 { + heading = fmt.Sprintf("## Component & Geometry Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + if idx < len(parsedTables) && len(parsedTables[idx]) >= 2 { + hdr := parsedTables[idx][0] + for _, r := range parsedTables[idx][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{"metric": r[0]} + for c := 1; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + recs = append(recs, rowRec) + } + } + } + + // 3. 99spokes __NEXT_DATA__ geometry & component specs. + if nextBike != nil { + if sizesArr, ok := nextBike["sizes"].([]any); ok && len(sizesArr) > 0 { + var geoRows [][]string + for i, rawSz := range sizesArr { + if i >= wave3CyclingMaxRecords { + break + } + sm, okSM := rawSz.(map[string]any) + if !okSM { + continue + } + szName := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["name"], 32), wave3CyclingPlain(sm["size"], 32), "-") + reach := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["reach"], 24), "-") + stack := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["stack"], 24), "-") + hta := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["headTubeAngle"], 24), wave3CyclingPlain(sm["hta"], 24), "-") + sta := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["seatTubeAngle"], 24), wave3CyclingPlain(sm["sta"], 24), "-") + cs := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["chainstayLength"], 24), wave3CyclingPlain(sm["chainstay"], 24), "-") + wb := wave3CyclingFirstNonEmpty(wave3CyclingPlain(sm["wheelbase"], 24), "-") + geoRows = append(geoRows, []string{szName, reach, stack, hta, sta, cs, wb}) + recs = append(recs, map[string]any{ + "size": szName, + "reach": reach, + "stack": stack, + "headTubeAngle": hta, + "seatTubeAngle": sta, + "chainstay": cs, + "wheelbase": wb, + }) + } + if len(geoRows) > 0 { + blocks = append(blocks, "## Geometry by Size\n\n"+formatDeclarativeGFMTable( + []string{"Size", "Reach", "Stack", "HTA", "STA", "Chainstay", "Wheelbase"}, + geoRows, + )) + } + } + if comps, ok := nextBike["components"].(map[string]any); ok && len(comps) > 0 { + var compRows [][]string + for k, v := range comps { + if len(compRows) >= 20 { + break + } + sv := "" + switch tv := v.(type) { + case map[string]any: + sv = wave3CyclingFirstNonEmpty(wave3CyclingPlain(tv["description"], 120), wave3CyclingPlain(tv["model"], 120), wave3CyclingPlain(tv["name"], 120)) + default: + sv = wave3CyclingPlain(tv, 120) + } + if sv != "" { + compRows = append(compRows, []string{SanitizeSchemaPlainField(k, 48), sv}) + } + } + if len(compRows) > 0 { + blocks = append(blocks, "## Components\n\n"+formatDeclarativeGFMTable([]string{"Component", "Specification"}, compRows)) + } + } + } + + if len(tables) == 0 && len(recs) == 0 { + // Must have real geometry/component content; reject bare non-bike shells. + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + if prose == "" && desc == "" { + return nil + } + if strings.Contains(urlLower, "99spokes.com") && prose == "" { + return nil + } + if prose != "" { + blocks = append(blocks, "## Specifications\n\n"+prose) + } + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + } + if prod != nil && prod.URL != "" { + wave3CyclingAddLink(&links, seenLinks, prod.URL, baseURL) + } + if len(recs) == 0 { + recs = append(recs, map[string]any{"bike": title}) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #355 Sheldon Brown Technical Reference ────────────────────────────────────────────────────── + +func wave3CyclingExtractSheldonBrownHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingStdHTMLMaxBytes) + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, "table", 3, 25, 8) + dlMap := map[string]string{} + if doc != nil { + dlMap = doc.DLMap("dl") + } + + var blocks []string + var recs []map[string]any + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if desc != "" { + blocks = append(blocks, "> "+desc) + } + + if len(dlMap) > 0 { + var glossRows [][]string + for term, defn := range dlMap { + if len(glossRows) >= wave3CyclingMaxRecords { + break + } + ct := SanitizeSchemaPlainField(term, 80) + cd := SanitizeSchemaPlainField(defn, 220) + if ct != "" && cd != "" { + glossRows = append(glossRows, []string{ct, cd}) + recs = append(recs, map[string]any{"term": ct, "definition": cd}) + } + } + if len(glossRows) > 0 { + blocks = append(blocks, "## Glossary & Definitions\n\n"+formatDeclarativeGFMTable([]string{"Term", "Definition"}, glossRows)) + } + } + + for idx, tbl := range tables { + heading := "## Reference & Crib Table" + if idx > 0 { + heading = fmt.Sprintf("## Technical Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + if idx < len(parsedTables) && len(parsedTables[idx]) >= 2 && len(recs) < wave3CyclingMaxRecords { + hdr := parsedTables[idx][0] + for _, r := range parsedTables[idx][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{} + for c := 0; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + if len(rowRec) > 0 { + recs = append(recs, rowRec) + } + } + } + } + + prose, links := wave3CyclingExtractBodyProse(doc, baseURL) + if prose != "" { + blocks = append(blocks, "## Technical Article\n\n"+prose) + } else if len(tables) == 0 && len(dlMap) == 0 { + return nil + } + + if len(recs) == 0 { + recs = append(recs, map[string]any{"title": title}) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Author: "Sheldon Brown", + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #356 UL Product iQ / UL iQ ────────────────────────────────────────────────────────────────── + +func wave3CyclingExtractULProductIQHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingStdHTMLMaxBytes) + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + + bodyText := "" + if doc != nil { + bodyText = doc.Text("body") + } + scanText := title + "\n" + desc + "\n" + bodyText + + var standards []string + seenStd := make(map[string]bool) + for _, m := range wave3CyclingRxULStandard.FindAllStringSubmatch(scanText, 12) { + if len(m) >= 2 { + stdName := strings.ToUpper(wave3CyclingCleanText(m[1])) + if stdName != "" && !seenStd[stdName] { + seenStd[stdName] = true + standards = append(standards, stdName) + } + } + } + + var fileNums []string + seenFile := make(map[string]bool) + for _, m := range wave3CyclingRxULFileNum.FindAllStringSubmatch(scanText, 12) { + if len(m) >= 2 && !seenFile[m[1]] { + seenFile[m[1]] = true + fileNums = append(fileNums, m[1]) + } + } + + ccn := "" + if m := wave3CyclingRxULCCN.FindStringSubmatch(scanText); len(m) >= 2 { + ccn = m[1] + } + + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, "table", 3, 25, 8) + var dbNames []string + if doc != nil { + for _, inp := range doc.Select(`input[type="submit"], button`, 20) { + val := SanitizeSchemaPlainField(inp.AttrOrEmpty("value"), 80) + if val == "" { + val = SanitizeSchemaPlainField(inp.Text(), 80) + } + if val != "" && !strings.EqualFold(val, "Search") && !strings.EqualFold(val, "Submit") { + dbNames = append(dbNames, val) + } + } + } + + if len(standards) == 0 && len(fileNums) == 0 && len(tables) == 0 && len(dbNames) == 0 && strings.TrimSpace(bodyText) == "" { + return nil + } + + var bullets []string + rec := map[string]any{"title": title} + if len(standards) > 0 { + bullets = append(bullets, "- **UL Standards**: "+strings.Join(standards, ", ")) + rec["standards"] = standards + } + if len(fileNums) > 0 { + bullets = append(bullets, "- **UL File Numbers**: `"+strings.Join(fileNums, "`, `")+"`") + rec["fileNumbers"] = fileNums + } + if ccn != "" { + bullets = append(bullets, "- **Category Control Number (CCN)**: `"+ccn+"`") + rec["ccn"] = ccn + } + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + if len(bullets) > 0 { + blocks = append(blocks, strings.Join(bullets, "\n")) + } + if len(dbNames) > 0 { + var dbRows [][]string + for _, d := range dbNames { + dbRows = append(dbRows, []string{d}) + } + blocks = append(blocks, "## UL iQ Certification Databases\n\n"+formatDeclarativeGFMTable([]string{"Database"}, dbRows)) + rec["databases"] = dbNames + } + for idx, tbl := range tables { + heading := "## Certification Listings" + if idx > 0 { + heading = fmt.Sprintf("## Certification Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + } + + var recs []map[string]any + recs = append(recs, rec) + if len(parsedTables) > 0 && len(parsedTables[0]) >= 2 { + hdr := parsedTables[0][0] + for _, r := range parsedTables[0][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{} + for c := 0; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + if len(rowRec) > 0 { + recs = append(recs, rowRec) + } + } + } + + prose, links := wave3CyclingExtractBodyProse(doc, baseURL) + if prose != "" && len(tables) == 0 && len(dbNames) == 0 { + blocks = append(blocks, "## Details\n\n"+prose) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + } +} + +// ── #357 E-Bike State Laws & Legislative Citations ────────────────────────────────────────────── + +func wave3CyclingStateSlug(stateName string) string { + switch strings.ToLower(strings.TrimSpace(stateName)) { + case "alabama": + return "AL" + case "alaska": + return "AK" + case "arizona": + return "AZ" + case "arkansas": + return "AR" + case "california": + return "CA" + case "colorado": + return "CO" + case "connecticut": + return "CT" + case "delaware": + return "DE" + case "florida": + return "FL" + case "georgia": + return "GA" + case "hawaii": + return "HI" + case "idaho": + return "ID" + case "illinois": + return "IL" + case "indiana": + return "IN" + case "iowa": + return "IA" + case "kansas": + return "KS" + case "kentucky": + return "KY" + case "louisiana": + return "LA" + case "maine": + return "ME" + case "maryland": + return "MD" + case "massachusetts": + return "MA" + case "michigan": + return "MI" + case "minnesota": + return "MN" + case "mississippi": + return "MS" + case "missouri": + return "MO" + case "montana": + return "MT" + case "nebraska": + return "NE" + case "nevada": + return "NV" + case "new hampshire": + return "NH" + case "new jersey": + return "NJ" + case "new mexico": + return "NM" + case "new york": + return "NY" + case "north carolina": + return "NC" + case "north dakota": + return "ND" + case "ohio": + return "OH" + case "oklahoma": + return "OK" + case "oregon": + return "OR" + case "pennsylvania": + return "PA" + case "rhode island": + return "RI" + case "south carolina": + return "SC" + case "south dakota": + return "SD" + case "tennessee": + return "TN" + case "texas": + return "TX" + case "utah": + return "UT" + case "vermont": + return "VT" + case "virginia": + return "VA" + case "washington": + return "WA" + case "west virginia": + return "WV" + case "wisconsin": + return "WI" + case "wyoming": + return "WY" + default: + return "" + } +} + +func wave3CyclingExtractEBikeStateLawsHTML(rawHTML, baseURL, urlLower, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingMaxHTMLBytes) + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + prose, pLinks := wave3CyclingExtractBodyProse(doc, baseURL) + tables, _ := wave3CyclingExtractHTMLTables(doc, "table", 3, 25, 8) + if prose == "" && len(tables) == 0 && desc == "" { + return nil + } + + scanText := title + "\n" + desc + "\n" + prose + stateName := "" + switch { + case strings.Contains(urlLower, "revisor.mn.gov"): + stateName = "Minnesota" + case strings.Contains(urlLower, "app.leg.wa.gov"): + stateName = "Washington" + case strings.Contains(urlLower, "leg.colorado.gov"): + stateName = "Colorado" + default: + if m := wave3CyclingRxStateName.FindStringSubmatch(title + "\n" + desc); len(m) >= 2 { + stateName = m[1] + } + } + + var citations []string + seenCite := make(map[string]bool) + for _, m := range wave3CyclingRxStatuteCite.FindAllStringSubmatch(scanText, 10) { + if len(m) >= 2 { + c := SanitizeSchemaPlainField(m[1], 80) + if c != "" && !seenCite[c] { + seenCite[c] = true + citations = append(citations, c) + } + } + } + + var classes []string + seenClass := make(map[string]bool) + for _, m := range wave3CyclingRxEbikeClass.FindAllStringSubmatch(scanText, 6) { + if len(m) >= 2 { + cl := SanitizeSchemaPlainField(m[1], 24) + if cl != "" && !seenClass[strings.ToLower(cl)] { + seenClass[strings.ToLower(cl)] = true + classes = append(classes, cl) + } + } + } + + cornellRef := "https://www.law.cornell.edu/cfr/text/16/part-1512" + legiscanRef := "https://legiscan.com/" + if code := wave3CyclingStateSlug(stateName); code != "" { + legiscanRef = "https://legiscan.com/" + code + "/legislation" + } + + var bullets []string + rec := map[string]any{"title": title} + if stateName != "" { + bullets = append(bullets, "- **Jurisdiction**: "+stateName) + rec["jurisdiction"] = stateName + } + if len(citations) > 0 { + bullets = append(bullets, "- **Statute Citations**: `"+strings.Join(citations, "`, `")+"`") + rec["citations"] = citations + } + if len(classes) > 0 { + bullets = append(bullets, "- **E-Bike Classes Referenced**: "+strings.Join(classes, ", ")) + rec["ebikeClasses"] = classes + } + bullets = append(bullets, + fmt.Sprintf("- **Federal & Statutory Cross-References**: [Cornell LII 16 CFR Part 1512](%s) · [LegiScan State Legislation](%s)", cornellRef, legiscanRef), + ) + + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + blocks = append(blocks, strings.Join(bullets, "\n")) + for idx, tbl := range tables { + heading := "## State Statute & Legislative Table" + if idx > 0 { + heading = fmt.Sprintf("## Legislative Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + } + if prose != "" { + blocks = append(blocks, "## Statutory & Legislative Text\n\n"+prose) + } + + var links []string + seenLinks := make(map[string]bool) + wave3CyclingAddLink(&links, seenLinks, cornellRef, baseURL) + wave3CyclingAddLink(&links, seenLinks, legiscanRef, baseURL) + for _, l := range pLinks { + wave3CyclingAddLink(&links, seenLinks, l, baseURL) + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: []map[string]any{rec}, + } +} + +// ── #358 CPSC SaferProducts E-Bike & Micromobility Incidents ──────────────────────────────────── + +func wave3CyclingJoinSubField(arrAny any, field string, limit int) string { + arr, ok := arrAny.([]any) + if !ok || len(arr) == 0 { + return "" + } + var vals []string + seen := make(map[string]bool) + for _, item := range arr { + if len(vals) >= limit { + break + } + m, okM := item.(map[string]any) + if !okM { + continue + } + s := wave3CyclingPlain(m[field], 160) + if s != "" && !seen[s] { + seen[s] = true + vals = append(vals, s) + } + } + return strings.Join(vals, "; ") +} + +func wave3CyclingFormatCPSCIncidentsJSON(parsed any, origURL string) (*DeclarativeFormattedDoc, bool) { + items, ok := parsed.([]any) + if !ok { + // Reject error objects like {"Message":"No HTTP resource was found..."}. + return nil, false + } + if len(items) == 0 { + return nil, false + } + + var recs []map[string]any + var rows [][]string + var links []string + seenLinks := make(map[string]bool) + + for _, rawItem := range items { + if len(recs) >= wave3CyclingMaxRecords { + break + } + it, okIt := rawItem.(map[string]any) + if !okIt { + continue + } + recallNum := wave3CyclingPlain(it["RecallNumber"], 32) + recallID := wave3CyclingPlain(it["RecallID"], 32) + title := wave3CyclingPlain(it["Title"], 200) + if recallNum == "" && recallID == "" && title == "" { + continue + } + recallDate := wave3CyclingNormalizeISODate(wave3CyclingStringVal(it["RecallDate"])) + if recallDate == "" { + recallDate = wave3CyclingNormalizeISODate(wave3CyclingStringVal(it["LastPublishDate"])) + } + itemURL := SanitizeSchemaHTTPSURL(wave3CyclingStringVal(it["URL"]), origURL) + hazards := wave3CyclingJoinSubField(it["Hazards"], "Name", 4) + injuries := wave3CyclingJoinSubField(it["Injuries"], "Name", 4) + products := wave3CyclingJoinSubField(it["Products"], "Name", 4) + mfrs := wave3CyclingJoinSubField(it["Manufacturers"], "Name", 4) + desc := wave3CyclingPlain(it["Description"], 320) + + idCell := wave3CyclingFirstNonEmpty(recallNum, recallID, "-") + titleCell := escapeDeclMarkdownBrackets(wave3CyclingFirstNonEmpty(title, products, idCell)) + if itemURL != "" { + titleCell = fmt.Sprintf("[%s](%s)", titleCell, itemURL) + wave3CyclingAddLink(&links, seenLinks, itemURL, origURL) + } + hazardCell := escapeDeclMarkdownBrackets(wave3CyclingFirstNonEmpty(hazards, injuries, desc, "-")) + dateCell := wave3CyclingFirstNonEmpty(recallDate, "-") + mfrCell := escapeDeclMarkdownBrackets(wave3CyclingFirstNonEmpty(mfrs, "-")) + + rows = append(rows, []string{idCell, titleCell, dateCell, mfrCell, hazardCell}) + + rec := map[string]any{ + "recallId": recallID, + "recallNumber": recallNum, + "title": title, + "recallDate": recallDate, + } + if itemURL != "" { + rec["url"] = itemURL + } + if products != "" { + rec["products"] = products + } + if hazards != "" { + rec["hazards"] = hazards + } + if injuries != "" { + rec["injuries"] = injuries + } + if mfrs != "" { + rec["manufacturers"] = mfrs + } + recs = append(recs, rec) + } + + if len(recs) == 0 { + return nil, false + } + + docTitle := fmt.Sprintf("CPSC SaferProducts Micromobility & E-Bike Reports (%d of %d)", len(recs), len(items)) + var blocks []string + blocks = append(blocks, "# "+docTitle) + blocks = append(blocks, formatDeclarativeGFMTable( + []string{"Recall #", "Report / Product", "Date", "Manufacturer", "Hazards / Summary"}, + rows, + )) + + doc := &DeclarativeFormattedDoc{ + Title: docTitle, + Markdown: strings.Join(blocks, "\n\n"), + Links: links, + Records: recs, + Total: wave3CyclingIntPtr(len(items)), + Returned: wave3CyclingIntPtr(len(recs)), + } + if len(items) > len(recs) { + doc.Truncated = wave3CyclingBoolPtr(true) + doc.NextCursor = strconv.Itoa(len(recs)) + } + return doc, true +} + +func wave3CyclingExtractCPSCPublicSearchHTML(rawHTML, baseURL, extractorID string) *DeclarativePostFetchResult { + doc := ParseHTMLDoc(rawHTML, wave3CyclingStdHTMLMaxBytes) + title := wave3CyclingExtractTitle(doc, rawHTML) + if title == "" { + return nil + } + desc := wave3CyclingExtractMetaDesc(rawHTML) + + tables, parsedTables := wave3CyclingExtractHTMLTables(doc, "table", 2, 25, 8) + var recs []map[string]any + var blocks []string + blocks = append(blocks, "# "+escapeDeclMarkdownBrackets(title)) + + for idx, tbl := range tables { + heading := "## SaferProducts Incident Results" + if idx > 0 { + heading = fmt.Sprintf("## SaferProducts Table %d", idx+1) + } + blocks = append(blocks, heading+"\n\n"+tbl) + if idx < len(parsedTables) && len(parsedTables[idx]) >= 2 { + hdr := parsedTables[idx][0] + for _, r := range parsedTables[idx][1:] { + if len(recs) >= wave3CyclingMaxRecords { + break + } + rowRec := map[string]any{} + for c := 0; c < len(r) && c < len(hdr); c++ { + if r[c] != "" { + rowRec[hdr[c]] = r[c] + } + } + if len(rowRec) > 0 { + recs = append(recs, rowRec) + } + } + } + } + + // Reject unhydrated PublicSearch shells that contain only the search form & spinner without result rows/cards. + if len(tables) == 0 { + if doc != nil { + reportItems := doc.Select(".search-result-item, .incident-report, .report-detail, article", 25) + var cardRows [][]string + for _, it := range reportItems { + txt := SanitizeSchemaPlainField(it.Text(), 220) + if txt != "" { + cardRows = append(cardRows, []string{txt}) + recs = append(recs, map[string]any{"summary": txt}) + } + } + if len(cardRows) > 0 { + blocks = append(blocks, "## Incident Reports\n\n"+formatDeclarativeGFMTable([]string{"Report"}, cardRows)) + } + } + if len(recs) == 0 { + return nil + } + } + + return &DeclarativePostFetchResult{ + ExtractorID: extractorID, + Title: title, + Description: desc, + Markdown: strings.Join(blocks, "\n\n"), + Links: nil, + Records: recs, + } +} diff --git a/internal/extract/wave3_cycling_oems_test.go b/internal/extract/wave3_cycling_oems_test.go new file mode 100644 index 0000000..258498f --- /dev/null +++ b/internal/extract/wave3_cycling_oems_test.go @@ -0,0 +1,417 @@ +package extract + +import ( + "encoding/json" + "net/url" + "os" + "path/filepath" + "strconv" + "strings" + "testing" + "time" +) + +func wave3CyclingResolveManifest(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 TestWave3CyclingOEMsManifestsAndDisjointness(t *testing.T) { + catO2IDs := []struct { + id string + category string + authMode string + }{ + {"cargo-ebike-oems", "commerce-social", "html"}, + {"us-ebike-oems", "commerce-social", "html"}, + {"qbp-frame-brands", "commerce-social", "html"}, + {"mtb-geometry-brands", "commerce-social", "html"}, + {"geometrygeeks-99spokes", "commerce-social", "html"}, + {"sheldon-brown", "research-health", "html"}, + {"ul-product-iq", "public-records", "html"}, + {"e-bike-state-laws", "public-records", "html"}, + {"cpsc-ebike-incidents", "public-records", "pub"}, + } + + byID := make(map[string]*DeclarativeAdapterManifest) + claimed := make(map[string]string) + for _, spec := range catO2IDs { + raw, err := os.ReadFile(filepath.Join("manifests", spec.id+".yaml")) + if err != nil { + t.Fatalf("read %s.yaml: %v", spec.id, err) + } + m, err := ParseDeclarativeYAMLManifest(raw) + if err != nil { + t.Fatalf("ParseDeclarativeYAMLManifest(%s.yaml): %v", spec.id, err) + } + if m.ID != spec.id { + t.Fatalf("%s.yaml id mismatch: got %q", spec.id, m.ID) + } + if m.Category != spec.category { + t.Fatalf("%s.yaml category=%q, want %q", spec.id, m.Category, spec.category) + } + if m.AuthMode != spec.authMode || m.AuthMode == "detect-only" || m.DetectOnly != nil { + t.Fatalf("%s.yaml invalid authMode=%q detectOnly=%v", spec.id, m.AuthMode, m.DetectOnly) + } + for _, d := range m.Domains { + ld := strings.ToLower(strings.TrimSpace(d)) + if prev, exists := claimed[ld]; exists { + t.Fatalf("duplicate domain %q across %s and %s", ld, prev, spec.id) + } + claimed[ld] = spec.id + } + for _, hr := range m.HTMLRoutes { + for _, b := range hr.Bullets { + if strings.ContainsAny(b.Label, "{}") { + t.Fatalf("%s.yaml bullet label contains {}: %q", spec.id, b.Label) + } + } + } + byID[spec.id] = m + } + + // #356 must NEVER claim ul.com / www.ul.com (owned by cpsc-ebike-battery.yaml). + for _, d := range byID["ul-product-iq"].Domains { + ld := strings.ToLower(strings.TrimSpace(d)) + if ld == "ul.com" || ld == "www.ul.com" { + t.Fatalf("ul-product-iq must not claim %q", ld) + } + } + + // Verify strict disjointness of #350-#357 against existing cycling & law manifests. + for _, existingID := range []string{"ebike-state-laws", "cpsc-ebike-battery", "cornell-lii", "state-legislatures", "specialized", "bike-index"} { + 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, ok := claimed[ld]; ok { + t.Fatalf("Cat O2 %s overlaps existing %s domain %q", owner, existingID, ld) + } + } + } + + // #358 cpsc-ebike-incidents path/query-disjointness with cpsc-recalls.yaml. + rawRecalls, err := os.ReadFile(filepath.Join("manifests", "cpsc-recalls.yaml")) + if err != nil { + t.Fatalf("read cpsc-recalls.yaml: %v", err) + } + recallsM, err := ParseDeclarativeYAMLManifest(rawRecalls) + if err != nil { + t.Fatalf("parse cpsc-recalls.yaml: %v", err) + } + incM := byID["cpsc-ebike-incidents"] + + if tm, ok := wave3CyclingResolveManifest(t, incM, "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductType=Bicycle"); !ok || tm.EffectiveMaxBytes() != 2097152 || tm.route.Extract.JSONMode != "cpsc_ebike_incidents_json" { + t.Fatalf("cpsc-ebike-incidents ProductType route failed: ok=%v tm=%+v", ok, tm) + } + if tm, ok := wave3CyclingResolveManifest(t, incM, "https://www.saferproducts.gov/RestWebServices/Recall?ProductDescription=ebike"); !ok || tm.FetchURL != "https://www.saferproducts.gov/RestWebServices/Recall?format=json&ProductDescription=ebike" { + t.Fatalf("cpsc-ebike-incidents ProductDescription route failed: ok=%v tm=%+v", ok, tm) + } + // RecallNumber must NOT match cpsc-ebike-incidents and MUST match cpsc-recalls. + if tm, ok := wave3CyclingResolveManifest(t, incM, "https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123"); ok || tm != nil { + t.Fatalf("cpsc-ebike-incidents must NOT match RecallNumber queries: %+v", tm) + } + if tm, ok := wave3CyclingResolveManifest(t, recallsM, "https://www.saferproducts.gov/RestWebServices/Recall?format=json&RecallNumber=24123"); !ok || tm == nil { + t.Fatalf("cpsc-recalls must still match RecallNumber queries") + } + // Unfiltered Recall dump must match NEITHER. + if tm, ok := wave3CyclingResolveManifest(t, incM, "https://www.saferproducts.gov/RestWebServices/Recall?format=json"); ok || tm != nil { + t.Fatalf("cpsc-ebike-incidents must NOT match unfiltered Recall dump: %+v", tm) + } + if tm, ok := wave3CyclingResolveManifest(t, recallsM, "https://www.saferproducts.gov/RestWebServices/Recall?format=json"); ok || tm != nil { + t.Fatalf("cpsc-recalls must NOT match unfiltered Recall dump: %+v", tm) + } +} + +func TestWave3CyclingOEMsModesAndExtractors(t *testing.T) { + registerWave3CyclingOEMsHTMLModes() + RegisterWave3CyclingOEMsHTMLModes() + + expectedHTMLModes := []string{ + "cargo_ebike_oems_html", + "us_ebike_oems_html", + "qbp_frame_brands_html", + "mtb_geometry_brands_html", + "geometrygeeks_99spokes_html", + "sheldon_brown_html", + "ul_product_iq_html", + "e_bike_state_laws_html", + "cpsc_ebike_incidents_html", + } + for _, hm := range expectedHTMLModes { + if !IsWave3CyclingOEMsHTMLMode(hm) { + t.Fatalf("IsWave3CyclingOEMsHTMLMode(%q) = false", hm) + } + if getExternalHTMLModeLazy(hm) == nil { + t.Fatalf("RegisterExternalHTMLModeLazy missing %q", hm) + } + } + + // #353 Yeti __NUXT_DATA__ & window.__NUXT__ hydration extraction + yetiNuxt := `Yeti Cycles SB140 | 140mm All-Mountain Bike

C2 90 $5,000.00 SRAM 90

` + yRes := Wave3CyclingOEMsRunHTML("mtb_geometry_brands_html", yetiNuxt, "https://yeticycles.com/en-us/bikes/sb140", "mtb-geometry-brands") + if yRes == nil || !strings.Contains(yRes.Markdown, "480") || !strings.Contains(yRes.Markdown, "1239") { + t.Fatalf("Yeti __NUXT__ extraction failed: %+v", yRes) + } + + // #354 GeometryGeeks (skipping

", + "expectTitleIncludes": "FCC ID BCG-E3542A", + "expectMarkdownIncludes": [ + "`BCG-E3542A`", + "Apple Inc.", + "2402 - 2480 MHz", + "Test Report PDF" + ], + "negativeCases": [ + { + "name": "akamai-access-denied-403", + "status": 403, + "payload": "Access Denied

Access Denied

You don't have permission to access \"http://apps.fcc.gov/oetcf/eas/reports/GenericSearch.cfm\" on this server.

Reference #18.1234abcd

" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-search-form-shell", + "status": 200, + "inputUrl": "https://apps.fcc.gov/oetcf/eas/reports/GenericSearch.cfm", + "payload": "OET Equipment Authorization Search

Generic Search

" + } + ] +} diff --git a/hub/test/fixtures/adapters/fed-h15-datadownload.json b/hub/test/fixtures/adapters/fed-h15-datadownload.json new file mode 100644 index 0000000..14c545a --- /dev/null +++ b/hub/test/fixtures/adapters/fed-h15-datadownload.json @@ -0,0 +1,39 @@ +{ + "adapterId": "fed-h15-datadownload", + "mode": "twin", + "inputUrl": "https://www.federalreserve.gov/datadownload/Output.aspx?rel=H15&series=bf17364827e38702b42a58cf8eaa3f78&lastobs=5&from=&to=&filetype=csv&label=include&layout=seriescolumn", + "expectedFetchUrl": "https://www.federalreserve.gov/datadownload/Output.aspx?rel=H15&series=bf17364827e38702b42a58cf8eaa3f78&lastobs=5&from=&to=&filetype=csv&label=include&layout=seriescolumn", + "mockPayload": "\"Series Description\",\"Market yield on U.S. Treasury securities at 10-year constant maturity, quoted on investment basis\"\n\"Unit:\",\"Percent:_Per_Year\"\n\"Multiplier:\",\"1\"\n\"Currency:\",\"NA\"\n\"Unique Identifier:\",\"H15/H15/RIFLGFCY10_N.B\"\n\"Time Period\",\"RIFLGFCY10_N.B\"\n2026-11-23,4.25\n2026-11-24,4.28\n2026-11-25,4.22\n", + "expectTitleIncludes": "Federal Reserve H.15", + "expectMarkdownIncludes": [ + "H15/H15/RIFLGFCY10_N.B", + "Percent:_Per_Year", + "2026-11-23", + "4.25", + "2026-11-25", + "4.22" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found - Federal Reserve

Page Not Found

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

Request Error

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

Temporarily Unavailable

" + }, + { + "name": "unsupported-html-response", + "status": 200, + "payload": "Data Download Program
" + } + ] +} diff --git a/hub/test/fixtures/adapters/ffiec-cdr.json b/hub/test/fixtures/adapters/ffiec-cdr.json new file mode 100644 index 0000000..8223beb --- /dev/null +++ b/hub/test/fixtures/adapters/ffiec-cdr.json @@ -0,0 +1,37 @@ +{ + "adapterId": "ffiec-cdr", + "mode": "html", + "inputUrl": "https://cdr.ffiec.gov/public/ManageFacsimiles.aspx", + "mockPayload": "FFIEC Central Data Repository - View or Download Data

FFIEC Central Data Repository: View or Download Data

RSSD IDInstitution NameCityState
480228JPMorgan Chase Bank, National AssociationColumbusOH
Download Bulk Data
", + "expectTitleIncludes": "FFIEC Central Data Repository", + "expectMarkdownIncludes": [ + "Call Reports -- Single Period", + "2026-09-30", + "480228", + "JPMorgan Chase Bank", + "DownloadBulkData.aspx" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Resource Not Found

" + }, + { + "name": "redirect-to-error-aspx", + "status": 200, + "finalUrl": "https://cdr.ffiec.gov/public/Error.aspx", + "payload": "Runtime Error

Server Error in '/' Application

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

Site Under Maintenance

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "FFIEC CDR
" + } + ] +} diff --git a/hub/test/fixtures/adapters/genius-lyrics.json b/hub/test/fixtures/adapters/genius-lyrics.json new file mode 100644 index 0000000..401c82f --- /dev/null +++ b/hub/test/fixtures/adapters/genius-lyrics.json @@ -0,0 +1,48 @@ +{ + "adapterId": "genius-lyrics", + "mode": "html", + "inputUrl": "https://genius.com/Rick-astley-never-gonna-give-you-up-lyrics", + "mockPayload": "Rick Astley - Never Gonna Give You Up Lyrics | Genius Lyrics

Never Gonna Give You Up

[Verse 1]
We're no strangers to love
You know the rules and so do I
[Chorus]
Never gonna give you up
Never gonna let you down
", + "expectTitleIncludes": "Rick Astley - Never Gonna Give You Up", + "expectMarkdownIncludes": [ + "Rick Astley", + "Whenever You Need Somebody", + "We're no strangers to love", + "Never gonna give you up", + "Opening line introducing" + ], + "negativeCases": [ + { + "name": "cloudflare-genius-shell", + "status": 403, + "payload": "Genius
cf-mitigated
" + }, + { + "name": "genius-title-without-lyrics-container", + "status": 200, + "payload": "Genius
" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found | Genius

We couldn't find that

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.musixmatch.com/lyrics/Rick-Astley/Missing", + "payload": "Musixmatch
" + } + ] +} diff --git a/hub/test/fixtures/adapters/gs1-us-datahub.json b/hub/test/fixtures/adapters/gs1-us-datahub.json new file mode 100644 index 0000000..4cc7ce7 --- /dev/null +++ b/hub/test/fixtures/adapters/gs1-us-datahub.json @@ -0,0 +1,44 @@ +{ + "adapterId": "gs1-us-datahub", + "mode": "twin", + "inputUrl": "https://api.gs1us.org/gtins/0012000161155", + "expectedFetchUrl": "https://api.gs1us.org/gtins/0012000161155", + "mockPayload": "{\"gtin\":\"0012000161155\",\"companyName\":\"PepsiCo, Inc.\",\"brandName\":\"LIFEWTR\",\"gln\":\"0012000000008\",\"gs1CompanyPrefix\":\"0012000\",\"gtinStatus\":\"ACTIVE\",\"productDescription\":\"LIFEWTR Purified Water 700mL Bottle\",\"gpcCategoryName\":\"Bottled Water\",\"targetMarket\":\"US\"}", + "expectTitleIncludes": "0012000161155", + "expectMarkdownIncludes": [ + "0012000161155", + "PepsiCo, Inc.", + "LIFEWTR", + "0012000", + "ACTIVE" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"statusCode\":404,\"message\":\"Resource not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.gs1us.org/error", + "payload": "Error

Something went wrong

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

Service Unavailable

" + }, + { + "name": "unauthorized-401", + "status": 401, + "payload": "{\"statusCode\":401,\"message\":\"Unauthorized: invalid API key\"}" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.gs1us.org/tools/gs1-company-database-gepir", + "payload": "GS1 US
" + } + ] +} diff --git a/hub/test/fixtures/adapters/igdb.json b/hub/test/fixtures/adapters/igdb.json new file mode 100644 index 0000000..c718b04 --- /dev/null +++ b/hub/test/fixtures/adapters/igdb.json @@ -0,0 +1,43 @@ +{ + "adapterId": "igdb", + "mode": "twin", + "inputUrl": "https://www.igdb.com/games/portal-2", + "expectedFetchUrl": "https://api.igdb.com/v4/games", + "mockPayload": "[{\"id\":72,\"name\":\"Portal 2\",\"slug\":\"portal-2\",\"rating\":91.8,\"rating_count\":3400,\"summary\":\"Sequel to the acclaimed Portal (2007), featuring a co-op campaign and physics-based puzzle chambers.\",\"genres\":[{\"id\":9,\"name\":\"Puzzle\"},{\"id\":5,\"name\":\"Shooter\"}],\"platforms\":[{\"id\":6,\"name\":\"PC (Microsoft Windows)\"},{\"id\":14,\"name\":\"Mac\"}],\"url\":\"https://www.igdb.com/games/portal-2\"}]", + "expectTitleIncludes": "Portal 2", + "expectMarkdownIncludes": [ + "72", + "91.8", + "Puzzle, Shooter", + "PC (Microsoft Windows)" + ], + "negativeCases": [ + { + "name": "empty-results-array", + "status": 200, + "payload": "[]" + }, + { + "name": "unauthorized-401", + "status": 401, + "payload": "{\"message\":\"Authorization Failure\"}" + }, + { + "name": "cloudflare-challenge-html", + "status": 403, + "inputUrl": "https://www.igdb.com/games/missing", + "payload": "Just a moment...
cf-mitigated challenge
" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.igdb.com/error", + "payload": "404 Not Found

Not Found

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

Temporarily Unavailable

" + } + ] +} diff --git a/hub/test/fixtures/adapters/imdb-datasets.json b/hub/test/fixtures/adapters/imdb-datasets.json new file mode 100644 index 0000000..fa1fc48 --- /dev/null +++ b/hub/test/fixtures/adapters/imdb-datasets.json @@ -0,0 +1,44 @@ +{ + "adapterId": "imdb-datasets", + "mode": "twin", + "inputUrl": "https://datasets.imdbws.com/title.ratings.tsv.gz", + "expectedFetchUrl": "https://datasets.imdbws.com/title.ratings.tsv.gz", + "mockPayload": "tconst\taverageRating\tnumVotes\ntt0000001\t5.7\t2244\ntt0000002\t5.5\t308\ntt0000003\t6.5\t2286\n", + "expectTitleIncludes": "title.ratings.tsv.gz", + "expectMarkdownIncludes": [ + "IMDb Non-Commercial Datasets", + "nonCommercialLicense: true", + "tt0000001", + "5.7", + "2244" + ], + "negativeCases": [ + { + "name": "http-404-nosuchkey", + "status": 404, + "payload": "NoSuchKeyThe specified key does not exist." + }, + { + "name": "access-denied-403", + "status": 403, + "payload": "AccessDeniedAccess Denied" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.imdb.com/error", + "payload": "404 Not Found

Not Found

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

Temporarily Unavailable

" + }, + { + "name": "empty-tsv", + "status": 200, + "inputUrl": "https://data.imdb.com/non-commercial-datasets/", + "payload": "IMDb Datasets
" + } + ] +} diff --git a/hub/test/fixtures/adapters/market-quotes-pack.json b/hub/test/fixtures/adapters/market-quotes-pack.json new file mode 100644 index 0000000..c88fdff --- /dev/null +++ b/hub/test/fixtures/adapters/market-quotes-pack.json @@ -0,0 +1,42 @@ +{ + "adapterId": "market-quotes-pack", + "mode": "twin", + "inputUrl": "https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=IBM", + "expectedFetchUrl": "https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=IBM", + "mockPayload": "{\"Global Quote\":{\"01. symbol\":\"IBM\",\"02. open\":\"221.5000\",\"03. high\":\"224.1000\",\"04. low\":\"220.8000\",\"05. price\":\"223.4500\",\"06. volume\":\"3412500\",\"07. latest trading day\":\"2026-11-27\",\"08. previous close\":\"221.1000\",\"09. change\":\"2.3500\",\"10. change percent\":\"1.0629%\"}}", + "expectTitleIncludes": "IBM Global Quote", + "expectMarkdownIncludes": [ + "`IBM`", + "223.4500", + "2026-11-27", + "1.0629%" + ], + "negativeCases": [ + { + "name": "alphavantage-rate-limit-note", + "status": 200, + "payload": "{\"Information\":\"Thank you for using Alpha Vantage! Our standard API rate limit is 25 requests per day.\"}" + }, + { + "name": "http-404-error-message", + "status": 404, + "payload": "{\"Error Message\":\"Invalid API call. Please retry or visit the documentation.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.alphavantage.co/error", + "payload": "Error

Error

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

Service Unavailable

" + }, + { + "name": "empty-json", + "status": 200, + "payload": "{}" + } + ] +} diff --git a/hub/test/fixtures/adapters/msrb-emma.json b/hub/test/fixtures/adapters/msrb-emma.json new file mode 100644 index 0000000..d0346f0 --- /dev/null +++ b/hub/test/fixtures/adapters/msrb-emma.json @@ -0,0 +1,42 @@ +{ + "adapterId": "msrb-emma", + "mode": "html", + "inputUrl": "https://emma.msrb.org/Security/Details/A1B2C3D4E5", + "mockPayload": "State of California General Obligation Bond - MSRB EMMA

State of California General Obligation Bond, Series 2025A

CUSIP
13063D2M4
Issuer
State of California
Coupon Rate
5.00%
Maturity Date
2035-10-01
Par Amount
$150,000,000
Trade DatePriceYieldAmount
2026-11-24106.454.12%$250,000
Official Statement PDF
", + "expectTitleIncludes": "State of California General Obligation Bond", + "expectMarkdownIncludes": [ + "`13063D2M4`", + "5.00%", + "2035-10-01", + "$150,000,000", + "106.45" + ], + "negativeCases": [ + { + "name": "awselb-403-waf", + "status": 403, + "payload": "403 Forbidden

403 Forbidden


awselb/2.0
" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Security Not Found

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

Application Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "MSRB EMMA
" + } + ] +} diff --git a/hub/test/fixtures/adapters/musicbrainz-coverart.json b/hub/test/fixtures/adapters/musicbrainz-coverart.json new file mode 100644 index 0000000..cc93da7 --- /dev/null +++ b/hub/test/fixtures/adapters/musicbrainz-coverart.json @@ -0,0 +1,43 @@ +{ + "adapterId": "musicbrainz-coverart", + "mode": "twin", + "inputUrl": "https://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd", + "expectedFetchUrl": "https://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd", + "mockPayload": "{\"images\":[{\"approved\":true,\"back\":false,\"comment\":\"Front cover\",\"edit\":10234567,\"front\":true,\"id\":1234567890,\"image\":\"https://coverartarchive.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd/1234567890.jpg\",\"types\":[\"Front\"]}],\"release\":\"https://musicbrainz.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd\"}", + "expectTitleIncludes": "Cover Art Archive", + "expectMarkdownIncludes": [ + "76df3287-6cda-33eb-8e9a-044b5e15ffdd", + "Front", + "1234567890" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Not Found\"}" + }, + { + "name": "pow-meb-verify-challenge", + "status": 200, + "inputUrl": "https://musicbrainz.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd", + "payload": "Verifying your browser
" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://coverartarchive.org/error", + "payload": "404 Not Found

Not Found

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://musicbrainz.org/release/missing", + "payload": "MusicBrainz
" + } + ] +} diff --git a/hub/test/fixtures/adapters/nasdaq-data-link.json b/hub/test/fixtures/adapters/nasdaq-data-link.json new file mode 100644 index 0000000..da53ca1 --- /dev/null +++ b/hub/test/fixtures/adapters/nasdaq-data-link.json @@ -0,0 +1,42 @@ +{ + "adapterId": "nasdaq-data-link", + "mode": "twin", + "inputUrl": "https://data.nasdaq.com/api/v3/datasets/FRED/GDP.json?rows=5", + "expectedFetchUrl": "https://data.nasdaq.com/api/v3/datasets/FRED/GDP.json?rows=5", + "mockPayload": "{\"dataset\":{\"id\":120140,\"dataset_code\":\"GDP\",\"database_code\":\"FRED\",\"name\":\"Gross Domestic Product\",\"description\":\"Gross Domestic Product, Billions of Dollars, Quarterly\",\"frequency\":\"quarterly\",\"type\":\"Time Series\",\"oldest_available_date\":\"1947-01-01\",\"newest_available_date\":\"2026-07-01\",\"column_names\":[\"Date\",\"Value\"],\"data\":[[\"2026-07-01\",29354.321],[\"2026-04-01\",29016.714]]}}", + "expectTitleIncludes": "Gross Domestic Product", + "expectMarkdownIncludes": [ + "FRED/GDP", + "quarterly", + "2026-07-01", + "29354.321" + ], + "negativeCases": [ + { + "name": "http-404-quandl-error", + "status": 404, + "payload": "{\"quandl_error\":{\"code\":\"QECx02\",\"message\":\"You have submitted an incorrect Quandl code.\"}}" + }, + { + "name": "incapsula-waf-403", + "status": 403, + "payload": "Request Rejected" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.nasdaq.com/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-json", + "status": 200, + "payload": "{}" + } + ] +} diff --git a/hub/test/fixtures/adapters/nostr-relays.json b/hub/test/fixtures/adapters/nostr-relays.json new file mode 100644 index 0000000..a4a1cf6 --- /dev/null +++ b/hub/test/fixtures/adapters/nostr-relays.json @@ -0,0 +1,50 @@ +{ + "adapterId": "nostr-relays", + "mode": "twin", + "inputUrl": "https://nos.lol/", + "expectedFetchUrl": "https://nos.lol/", + "mockPayload": "{\"relay\":\"https://nos.lol/\",\"nip11\":{\"name\":\"nos.lol\",\"description\":\"A public Nostr relay running strfry.\",\"pubkey\":\"f86e7c5a1f0b1234567890abcdef1234567890abcdef1234567890abcdef1234\",\"contact\":\"mailto:admin@nos.lol\",\"supported_nips\":[1,2,4,9,11,12,15,16,20,22,28,33,40],\"software\":\"https://github.com/hoytech/strfry\",\"version\":\"1.0.0\",\"limitation\":{\"max_message_length\":65536,\"max_subscriptions\":20,\"auth_required\":false,\"payment_required\":false}},\"events\":[{\"id\":\"aaaa1111bbbb2222cccc3333dddd4444eeee5555ffff66667777888899990000\",\"pubkey\":\"1111222233334444555566667777888899990000aaaabbbbccccddddeeeeffff\",\"created_at\":1732838400,\"kind\":1,\"tags\":[[\"t\",\"nostr\"],[\"r\",\"https://nos.lol/\"]],\"content\":\"Hello Nostr! Testing bounded NIP-01 REQ extraction.\",\"sig\":\"deadbeef\"}]}", + "expectTitleIncludes": "nos.lol", + "expectMarkdownIncludes": [ + "strfry", + "1, 2, 4, 9, 11", + "Recent Nostr Events", + "Hello Nostr!", + "Testing bounded NIP-01 REQ extraction." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":\"Not found\"}" + }, + { + "name": "empty-nip11-object", + "status": 404, + "payload": "{}" + }, + { + "name": "empty-spa-shell-njump", + "status": 200, + "inputUrl": "https://njump.me/nevent1qqsmissing000", + "payload": "njump
" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://njump.me/error", + "payload": "Error

Event not found

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

Service Unavailable

" + }, + { + "name": "njump-not-found-404", + "status": 404, + "inputUrl": "https://njump.me/nevent1qqsmissing000", + "payload": "Event not found | njump

Event not found

" + } + ] +} diff --git a/hub/test/fixtures/adapters/open-icecat.json b/hub/test/fixtures/adapters/open-icecat.json new file mode 100644 index 0000000..844dfe1 --- /dev/null +++ b/hub/test/fixtures/adapters/open-icecat.json @@ -0,0 +1,44 @@ +{ + "adapterId": "open-icecat", + "mode": "twin", + "inputUrl": "https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=8710103792772", + "expectedFetchUrl": "https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=8710103792772", + "mockPayload": "{\"msg\":\"OK\",\"data\":{\"GeneralInfo\":{\"IcecatId\":32928991,\"Title\":\"Saeco CA6705/60 milk circuit cleaner\",\"Brand\":\"Saeco\",\"BrandInfo\":{\"BrandName\":\"Saeco\"},\"BrandPartCode\":\"CA6705/60\",\"GTIN\":[\"8710103792772\"],\"Category\":{\"Name\":{\"Value\":\"Coffee Maker Accessories\"}},\"ReleaseDate\":\"2016-05-10\",\"SummaryDescription\":{\"ShortSummaryDescription\":\"Saeco CA6705/60 milk circuit cleaner protects milk circuits against clogging.\"},\"ProductPicture\":{\"HighPic\":\"https://images.icecat.biz/img/norm/high/32928991-4510.jpg\"}},\"FeaturesGroups\":[{\"FeatureGroup\":{\"Name\":{\"Value\":\"Technical details\"}},\"Features\":[{\"Feature\":{\"Name\":{\"Value\":\"Quantity per pack\"}},\"PresentationValue\":\"6 pc(s)\"}]}]}}", + "expectTitleIncludes": "Saeco CA6705/60", + "expectMarkdownIncludes": [ + "32928991", + "8710103792772", + "Saeco", + "CA6705/60", + "6 pc(s)" + ], + "negativeCases": [ + { + "name": "brand-restricted-404", + "status": 404, + "payload": "{\"StatusCode\":14,\"Code\":404,\"Error\":\"Brand is restricted for openicecat-live\"}" + }, + { + "name": "gtin-not-found-400", + "status": 400, + "payload": "{\"StatusCode\":16,\"Code\":400,\"Message\":\"GTIN not found\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://icecat.biz/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "nextjs-error-html", + "status": 404, + "inputUrl": "https://icecat.biz/en/p/missing/item.html", + "payload": "Icecat
__next_error__
" + } + ] +} diff --git a/hub/test/fixtures/adapters/open-product-wikidata-gtin.json b/hub/test/fixtures/adapters/open-product-wikidata-gtin.json new file mode 100644 index 0000000..5748a5f --- /dev/null +++ b/hub/test/fixtures/adapters/open-product-wikidata-gtin.json @@ -0,0 +1,43 @@ +{ + "adapterId": "open-product-wikidata-gtin", + "mode": "twin", + "inputUrl": "https://opengtindb.org/?ean=4006381333931&cmd=query&queryid=400000000", + "expectedFetchUrl": "https://opengtindb.org/?ean=4006381333931&cmd=query&queryid=400000000", + "mockPayload": "error=0\n---\nasin=\nname=Fineliner\ndetailname=Stabilo point 88 Fineliner 0.4mm\nvendor=Schwan-STABILO\nmaincat=Bürobedarf\nsubcat=Schreibgeräte\norigin=Deutschland\ndescr=Classic hexagonal fineliner pen.\n---", + "expectTitleIncludes": "Stabilo point 88", + "expectMarkdownIncludes": [ + "4006381333931", + "Schwan-STABILO", + "Deutschland", + "fineliner" + ], + "negativeCases": [ + { + "name": "opengtindb-error-1", + "status": 200, + "payload": "error=1\n---\n" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Not Found

Not Found

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

Error

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

Service Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://opengtindb.org/", + "payload": "OpenGTINdb
" + } + ] +} diff --git a/hub/test/fixtures/adapters/patreon-public.json b/hub/test/fixtures/adapters/patreon-public.json new file mode 100644 index 0000000..bdfe6d9 --- /dev/null +++ b/hub/test/fixtures/adapters/patreon-public.json @@ -0,0 +1,41 @@ +{ + "adapterId": "patreon-public", + "mode": "html", + "inputUrl": "https://www.patreon.com/cw/Kurzgesagt", + "mockPayload": "Kurzgesagt | Patreon

Kurzgesagt

", + "expectTitleIncludes": "Kurzgesagt", + "expectMarkdownIncludes": [ + "Creating animated science explainers and educational videos.", + "24500", + "animated science videos", + "Behind the Scenes: Black Holes" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Patreon

404 Page Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "login-gate", + "status": 200, + "payload": "Log in | Patreon

Log in to Patreon

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Patreon
" + } + ] +} diff --git a/hub/test/fixtures/adapters/podcast-index.json b/hub/test/fixtures/adapters/podcast-index.json new file mode 100644 index 0000000..1bf5bd9 --- /dev/null +++ b/hub/test/fixtures/adapters/podcast-index.json @@ -0,0 +1,43 @@ +{ + "adapterId": "podcast-index", + "mode": "twin", + "inputUrl": "https://api.podcastindex.org/api/1.0/podcasts/byfeedid?id=920666", + "expectedFetchUrl": "https://api.podcastindex.org/api/1.0/podcasts/byfeedid?id=920666", + "mockPayload": "{\"status\":\"true\",\"feed\":{\"id\":920666,\"title\":\"Podcasting 2.0\",\"url\":\"https://mp3s.nashownotes.com/pc20rss.xml\",\"link\":\"https://podcastindex.org/\",\"author\":\"Adam Curry & Dave Jones\",\"ownerName\":\"Podcast Index LLC\",\"description\":\"Keeping podcasting open and independent.\",\"language\":\"en\",\"episodeCount\":195,\"itunesId\":1533880442,\"categories\":{\"55\":\"News\",\"102\":\"Technology\"}},\"description\":\"Found matching feed.\"}", + "expectTitleIncludes": "Podcasting 2.0", + "expectMarkdownIncludes": [ + "920666", + "Adam Curry", + "195", + "https://mp3s.nashownotes.com/pc20rss.xml" + ], + "negativeCases": [ + { + "name": "missing-auth-401", + "status": 401, + "payload": "{\"status\":\"false\",\"description\":\"Authorization header value either not set or blank.\"}" + }, + { + "name": "http-404", + "status": 404, + "payload": "{\"status\":\"false\",\"description\":\"Feed not found.\"}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://podcastindex.org/error", + "payload": "404 Not Found

Not Found

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://podcastindex.org/", + "payload": "Podcast Index
" + } + ] +} diff --git a/hub/test/fixtures/adapters/product-hunt.json b/hub/test/fixtures/adapters/product-hunt.json new file mode 100644 index 0000000..ff87a38 --- /dev/null +++ b/hub/test/fixtures/adapters/product-hunt.json @@ -0,0 +1,49 @@ +{ + "adapterId": "product-hunt", + "mode": "twin", + "inputUrl": "https://api.producthunt.com/v2/api/graphql", + "expectedFetchUrl": "https://api.producthunt.com/v2/api/graphql", + "mockPayload": "{\"data\":{\"posts\":{\"edges\":[{\"node\":{\"id\":\"482910\",\"name\":\"EdgeFetch CLI\",\"tagline\":\"Fast web extraction for AI agents\",\"description\":\"Convert public pages and APIs into clean Markdown and structured records.\",\"votesCount\":642,\"commentsCount\":48,\"url\":\"https://www.producthunt.com/posts/edgefetch-cli\",\"website\":\"https://edgefetch.dev\",\"createdAt\":\"2026-11-28T08:00:00Z\",\"topics\":{\"edges\":[{\"node\":{\"name\":\"Developer Tools\"}}]},\"makers\":[{\"name\":\"Alex Rivera\",\"username\":\"arivera\"}]}}]}}}", + "expectTitleIncludes": "EdgeFetch CLI", + "expectMarkdownIncludes": [ + "Fast web extraction for AI agents", + "642", + "Developer Tools", + "Alex Rivera" + ], + "negativeCases": [ + { + "name": "http-401-invalid-token", + "status": 401, + "payload": "{\"errors\":[{\"error\":\"invalid_oauth_token\",\"error_description\":\"The access token is invalid\"}]}" + }, + { + "name": "empty-posts-edges", + "status": 404, + "payload": "{\"data\":{\"posts\":{\"edges\":[]}}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.producthunt.com/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "cloudflare-challenge-html", + "status": 403, + "inputUrl": "https://www.producthunt.com/posts/claude-3-5-sonnet", + "payload": "Just a moment...
cf-mitigated challenge
" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.producthunt.com/posts/claude-3-5-sonnet", + "payload": "Product Hunt
" + } + ] +} diff --git a/hub/test/fixtures/adapters/prop65-warnings.json b/hub/test/fixtures/adapters/prop65-warnings.json new file mode 100644 index 0000000..51b6900 --- /dev/null +++ b/hub/test/fixtures/adapters/prop65-warnings.json @@ -0,0 +1,41 @@ +{ + "adapterId": "prop65-warnings", + "mode": "html", + "inputUrl": "https://www.p65warnings.ca.gov/fact-sheets/acrylamide", + "mockPayload": "Acrylamide - Proposition 65 Warnings

Acrylamide

CAS Number
79-06-1
Type of Toxicity
Cancer, Male Reproductive, Developmental
Date Listed
1990-01-01

Acrylamide is listed under California Proposition 65 as known to the State to cause cancer and reproductive harm. It can form in starchy foods cooked at high temperatures.

", + "expectTitleIncludes": "Acrylamide", + "expectMarkdownIncludes": [ + "79-06-1", + "Cancer, Male Reproductive, Developmental", + "1990-01-01", + "Proposition 65" + ], + "negativeCases": [ + { + "name": "incapsula-waf-shell", + "status": 200, + "payload": " " + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found

Chemical not found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Prop 65
" + } + ] +} diff --git a/hub/test/fixtures/adapters/sec-xbrl-frames.json b/hub/test/fixtures/adapters/sec-xbrl-frames.json new file mode 100644 index 0000000..4629be4 --- /dev/null +++ b/hub/test/fixtures/adapters/sec-xbrl-frames.json @@ -0,0 +1,43 @@ +{ + "adapterId": "sec-xbrl-frames", + "mode": "twin", + "inputUrl": "https://data.sec.gov/api/xbrl/frames/us-gaap/AccountsPayableCurrent/USD/CY2023Q4I.json", + "expectedFetchUrl": "https://data.sec.gov/api/xbrl/frames/us-gaap/AccountsPayableCurrent/USD/CY2023Q4I.json", + "mockPayload": "{\"taxonomy\":\"us-gaap\",\"tag\":\"AccountsPayableCurrent\",\"ccp\":\"CY2023Q4I\",\"uom\":\"USD\",\"label\":\"Accounts Payable, Current\",\"description\":\"Carrying value as of the balance sheet date of liabilities incurred.\",\"pts\":3909,\"data\":[{\"accn\":\"0000320193-24-000006\",\"cik\":320193,\"entityName\":\"Apple Inc.\",\"loc\":\"US-CA\",\"end\":\"2023-12-30\",\"val\":58146000000},{\"accn\":\"0000789019-24-000008\",\"cik\":789019,\"entityName\":\"MICROSOFT CORP\",\"loc\":\"US-WA\",\"end\":\"2023-12-31\",\"val\":17697000000}]}", + "expectTitleIncludes": "Accounts Payable, Current", + "expectMarkdownIncludes": [ + "us-gaap", + "AccountsPayableCurrent", + "CY2023Q4I", + "Apple Inc.", + "58146000000" + ], + "negativeCases": [ + { + "name": "http-404-s3-nosuchkey", + "status": 404, + "payload": "NoSuchKeyThe specified key does not exist." + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://data.sec.gov/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-json", + "status": 200, + "payload": "{}" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "SEC
" + } + ] +} diff --git a/hub/test/fixtures/adapters/setlist-lastfm.json b/hub/test/fixtures/adapters/setlist-lastfm.json new file mode 100644 index 0000000..108f033 --- /dev/null +++ b/hub/test/fixtures/adapters/setlist-lastfm.json @@ -0,0 +1,42 @@ +{ + "adapterId": "setlist-lastfm", + "mode": "html", + "inputUrl": "https://www.setlist.fm/setlist/motionless-in-white/2023/mobile-civic-center-mobile-al-3ba45068.html", + "mockPayload": "Motionless in White Setlist at Mobile Civic Center, Mobile | setlist.fm

Motionless in White at Mobile Civic Center, Mobile, AL, USA

Sep 23 2023
", + "expectTitleIncludes": "Motionless in White", + "expectMarkdownIncludes": [ + "Meltdown", + "Sign of Life", + "Eternally Yours", + "Sep 23 2023" + ], + "negativeCases": [ + { + "name": "fastly-challenge-lastfm", + "status": 200, + "inputUrl": "https://www.last.fm/music/Nirvana", + "payload": "Client Challenge
" + }, + { + "name": "http-404", + "status": 404, + "payload": "404 Page Not Found | setlist.fm

Not Found

" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.setlist.fm/error", + "payload": "Whitelabel Error Page

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "setlist.fm
" + } + ] +} diff --git a/hub/test/fixtures/adapters/spotify-web-api.json b/hub/test/fixtures/adapters/spotify-web-api.json new file mode 100644 index 0000000..8f724ed --- /dev/null +++ b/hub/test/fixtures/adapters/spotify-web-api.json @@ -0,0 +1,42 @@ +{ + "adapterId": "spotify-web-api", + "mode": "twin", + "inputUrl": "https://open.spotify.com/oembed?url=https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk", + "expectedFetchUrl": "https://open.spotify.com/oembed?url=https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk", + "mockPayload": "{\"html\":\"\",\"iframe_url\":\"https://open.spotify.com/embed/show/4rOoJ6Egrf8K2IrywzwOMk\",\"width\":456,\"height\":152,\"version\":\"1.0\",\"provider_name\":\"Spotify\",\"provider_url\":\"https://spotify.com\",\"type\":\"rich\",\"title\":\"The Joe Rogan Experience\",\"thumbnail_url\":\"https://i.scdn.co/image/ab6765630000ba8a1234567890abcdef\"}", + "expectTitleIncludes": "The Joe Rogan Experience", + "expectMarkdownIncludes": [ + "Spotify", + "https://open.spotify.com/embed/show/4rOoJ6Egrf8K2IrywzwOMk" + ], + "negativeCases": [ + { + "name": "unauthorized-401-api", + "status": 401, + "inputUrl": "https://api.spotify.com/v1/shows/4rOoJ6Egrf8K2IrywzwOMk", + "payload": "{\"error\":{\"status\":401,\"message\":\"Invalid access token\"}}" + }, + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"status\":404,\"message\":\"Non existing id\"}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://open.spotify.com/error", + "payload": "Page not found

Page not found

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

Temporarily Unavailable

" + }, + { + "name": "empty-encore-shell", + "status": 200, + "inputUrl": "https://open.spotify.com/track/missing", + "payload": "Spotify
" + } + ] +} diff --git a/hub/test/fixtures/adapters/steam-store.json b/hub/test/fixtures/adapters/steam-store.json new file mode 100644 index 0000000..b8b7219 --- /dev/null +++ b/hub/test/fixtures/adapters/steam-store.json @@ -0,0 +1,45 @@ +{ + "adapterId": "steam-store", + "mode": "twin", + "inputUrl": "https://store.steampowered.com/app/620/Portal_2/", + "expectedFetchUrl": "https://store.steampowered.com/api/appdetails?appids=620", + "mockPayload": "{\"620\":{\"success\":true,\"data\":{\"type\":\"game\",\"name\":\"Portal 2\",\"steam_appid\":620,\"is_free\":false,\"short_description\":\"The Perpetual Testing Initiative has been expanded to allow you to design co-op puzzles for you and your friends!\",\"developers\":[\"Valve\"],\"publishers\":[\"Valve\"],\"price_overview\":{\"currency\":\"USD\",\"initial\":999,\"final\":999,\"discount_percent\":0,\"final_formatted\":\"$9.99\"},\"genres\":[{\"id\":\"1\",\"description\":\"Action\"},{\"id\":\"25\",\"description\":\"Adventure\"}],\"release_date\":{\"coming_soon\":false,\"date\":\"Apr 18, 2011\"},\"metacritic\":{\"score\":95}}}}", + "expectTitleIncludes": "Portal 2", + "expectMarkdownIncludes": [ + "620", + "Valve", + "$9.99", + "Action, Adventure", + "95" + ], + "negativeCases": [ + { + "name": "http-404-appdetails-false", + "status": 404, + "payload": "{\"99999999\":{\"success\":false}}" + }, + { + "name": "appreviews-html-homepage-redirect", + "status": 200, + "inputUrl": "https://store.steampowered.com/appreviews/620?json=1", + "payload": "Welcome to Steam
" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://store.steampowered.com/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://store.steampowered.com/app/620/agecheck", + "payload": "Steam Store
" + } + ] +} diff --git a/hub/test/fixtures/adapters/substack-notes-beehiiv.json b/hub/test/fixtures/adapters/substack-notes-beehiiv.json new file mode 100644 index 0000000..e95720a --- /dev/null +++ b/hub/test/fixtures/adapters/substack-notes-beehiiv.json @@ -0,0 +1,41 @@ +{ + "adapterId": "substack-notes-beehiiv", + "mode": "html", + "inputUrl": "https://substack.com/@hamish", + "mockPayload": "Hamish McKenzie | Substack

Hamish McKenzie

", + "expectTitleIncludes": "Hamish McKenzie", + "expectMarkdownIncludes": [ + "@hamish", + "12K subscribers", + "Independent writers thrive when they own the direct relationship with readers." + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Page not found | Substack

404 Not Found

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Substack
" + }, + { + "name": "beehiiv-api-401", + "status": 401, + "inputUrl": "https://api.beehiiv.com/v2/publications/pub_00000000-0000-0000-0000-000000000000/posts", + "payload": "{\"status\":401,\"statusText\":\"Unauthorized\",\"errors\":[{\"message\":\"INVALID_API_KEY\"}]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/threads-api.json b/hub/test/fixtures/adapters/threads-api.json new file mode 100644 index 0000000..f5b117f --- /dev/null +++ b/hub/test/fixtures/adapters/threads-api.json @@ -0,0 +1,42 @@ +{ + "adapterId": "threads-api", + "mode": "twin", + "inputUrl": "https://graph.threads.net/v1.0/me?fields=id,username,name,threads_biography", + "expectedFetchUrl": "https://graph.threads.net/v1.0/me?fields=id,username,name,threads_biography", + "mockPayload": "{\"id\":\"17841400000000001\",\"username\":\"edgefetch_dev\",\"name\":\"EdgeFetch Developer\",\"threads_biography\":\"Open web extraction, structured records, and protocol adapters.\"}", + "expectTitleIncludes": "EdgeFetch Developer", + "expectMarkdownIncludes": [ + "17841400000000001", + "@edgefetch_dev", + "Open web extraction, structured records, and protocol adapters." + ], + "negativeCases": [ + { + "name": "http-401-invalid-token", + "status": 401, + "payload": "{\"error\":{\"message\":\"Invalid OAuth access token\",\"type\":\"OAuthException\",\"code\":190}}" + }, + { + "name": "http-404", + "status": 404, + "payload": "{\"error\":{\"message\":\"Unsupported get request.\",\"code\":100}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.threads.net/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell-threads-html", + "status": 200, + "inputUrl": "https://www.threads.net/@threads", + "payload": "Threads
" + } + ] +} diff --git a/hub/test/fixtures/adapters/tmdb.json b/hub/test/fixtures/adapters/tmdb.json new file mode 100644 index 0000000..c6df841 --- /dev/null +++ b/hub/test/fixtures/adapters/tmdb.json @@ -0,0 +1,44 @@ +{ + "adapterId": "tmdb", + "mode": "twin", + "inputUrl": "https://www.themoviedb.org/movie/550", + "expectedFetchUrl": "https://api.themoviedb.org/3/movie/550", + "mockPayload": "{\"id\":550,\"title\":\"Fight Club\",\"original_title\":\"Fight Club\",\"tagline\":\"Mischief. Mayhem. Soap.\",\"release_date\":\"1999-10-15\",\"runtime\":139,\"status\":\"Released\",\"vote_average\":8.438,\"vote_count\":29120,\"imdb_id\":\"tt0137523\",\"genres\":[{\"id\":18,\"name\":\"Drama\"},{\"id\":53,\"name\":\"Thriller\"}],\"overview\":\"A ticking-time-bomb insomniac and a slippery soap salesman channel primal male aggression into a shocking new form of therapy.\",\"homepage\":\"https://www.foxmovies.com/movies/fight-club\"}", + "expectTitleIncludes": "Fight Club", + "expectMarkdownIncludes": [ + "550", + "1999-10-15", + "139 min", + "Drama, Thriller", + "tt0137523" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"success\":false,\"status_code\":34,\"status_message\":\"The resource you requested could not be found.\"}" + }, + { + "name": "invalid-api-key-401", + "status": 401, + "payload": "{\"status_code\":7,\"status_message\":\"Invalid API key: You must be granted a valid key.\",\"success\":false}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.themoviedb.org/error", + "payload": "Oops! We can't find the page you're looking for — TMDB

Oops! We can't find the page

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.themoviedb.org/movie", + "payload": "The Movie Database (TMDB)
" + } + ] +} diff --git a/hub/test/fixtures/adapters/tumblr.json b/hub/test/fixtures/adapters/tumblr.json new file mode 100644 index 0000000..96a7668 --- /dev/null +++ b/hub/test/fixtures/adapters/tumblr.json @@ -0,0 +1,46 @@ +{ + "adapterId": "tumblr", + "mode": "html", + "inputUrl": "https://www.tumblr.com/staff", + "mockPayload": "Tumblr Staff | Tumblr

Tumblr Staff

", + "expectTitleIncludes": "Tumblr Staff", + "expectMarkdownIncludes": [ + "staff", + "Official announcements and product updates from Tumblr.", + "Premium features update for creators" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "Not Found | Tumblr

There's nothing here.

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

Error

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

Temporarily Unavailable

" + }, + { + "name": "pow-hashcash-challenge", + "status": 403, + "payload": "Tumblr" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "Tumblr
" + }, + { + "name": "api-unauthorized-401", + "status": 401, + "inputUrl": "https://api.tumblr.com/v2/blog/staff.tumblr.com/posts", + "payload": "{\"meta\":{\"status\":401,\"msg\":\"Unauthorized\"},\"response\":[],\"errors\":[{\"title\":\"Unauthorized\",\"code\":0}]}" + } + ] +} diff --git a/hub/test/fixtures/adapters/tvmaze.json b/hub/test/fixtures/adapters/tvmaze.json new file mode 100644 index 0000000..f7de987 --- /dev/null +++ b/hub/test/fixtures/adapters/tvmaze.json @@ -0,0 +1,39 @@ +{ + "adapterId": "tvmaze", + "mode": "twin", + "inputUrl": "https://www.tvmaze.com/shows/1/under-the-dome", + "expectedFetchUrl": "https://api.tvmaze.com/shows/1?embed=episodes", + "mockPayload": "{\"id\":1,\"url\":\"https://www.tvmaze.com/shows/1/under-the-dome\",\"name\":\"Under the Dome\",\"type\":\"Scripted\",\"language\":\"English\",\"genres\":[\"Drama\",\"Science-Fiction\",\"Thriller\"],\"status\":\"Ended\",\"runtime\":60,\"premiered\":\"2013-06-24\",\"ended\":\"2015-09-10\",\"rating\":{\"average\":6.5},\"network\":{\"id\":2,\"name\":\"CBS\"},\"externals\":{\"imdb\":\"tt1553656\"},\"summary\":\"

Under the Dome is the story of a small town that is suddenly and inexplicably sealed off from the rest of the world by an enormous transparent dome.

\",\"_embedded\":{\"episodes\":[{\"id\":1,\"name\":\"Pilot\",\"season\":1,\"number\":1,\"airdate\":\"2013-06-24\"},{\"id\":2,\"name\":\"The Fire\",\"season\":1,\"number\":2,\"airdate\":\"2013-07-01\"}]}}", + "expectTitleIncludes": "Under the Dome", + "expectMarkdownIncludes": [ + "2013-06-24", + "CBS", + "tt1553656", + "S1E1", + "Pilot" + ], + "negativeCases": [ + { + "name": "http-404", + "status": 404, + "payload": "{\"name\":\"Not Found\",\"message\":\"Page not found.\",\"code\":0,\"status\":404}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.tvmaze.com/error", + "payload": "Page Not Found | TVmaze

Page Not Found

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "inputUrl": "https://www.tvmaze.com/shows", + "payload": "TVmaze
" + } + ] +} diff --git a/hub/test/fixtures/adapters/upcitemdb-barcodelookup.json b/hub/test/fixtures/adapters/upcitemdb-barcodelookup.json new file mode 100644 index 0000000..8762f73 --- /dev/null +++ b/hub/test/fixtures/adapters/upcitemdb-barcodelookup.json @@ -0,0 +1,43 @@ +{ + "adapterId": "upcitemdb-barcodelookup", + "mode": "twin", + "inputUrl": "https://api.upcitemdb.com/prod/trial/lookup?upc=012000161155", + "expectedFetchUrl": "https://api.upcitemdb.com/prod/trial/lookup?upc=012000161155", + "mockPayload": "{\"code\":\"OK\",\"total\":1,\"offset\":0,\"items\":[{\"ean\":\"0012000161155\",\"title\":\"LIFEWTR Purified Water, pH Balanced with Electrolytes For Taste, 23.7 Fl Oz\",\"description\":\"LIFEWTR is a purified water, pH balanced with electrolytes added for taste.\",\"upc\":\"012000161155\",\"brand\":\"LIFEWTR\",\"model\":\"700mL\",\"category\":\"Food, Beverages & Tobacco > Beverages > Water\",\"lowest_recorded_price\":1.29,\"highest_recorded_price\":4.99,\"offers\":[{\"merchant\":\"Example Mart\",\"price\":1.99,\"currency\":\"USD\",\"condition\":\"New\",\"link\":\"https://www.upcitemdb.com/upc/012000161155\"}]}]}", + "expectTitleIncludes": "LIFEWTR Purified Water", + "expectMarkdownIncludes": [ + "0012000161155", + "LIFEWTR", + "700mL", + "1.99 USD" + ], + "negativeCases": [ + { + "name": "invalid-upc-400", + "status": 400, + "payload": "{\"code\":\"INVALID_UPC\",\"message\":\"Not a valid UPC code\"}" + }, + { + "name": "empty-items-404", + "status": 404, + "payload": "{\"code\":\"OK\",\"total\":0,\"items\":[]}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.upcitemdb.com/error", + "payload": "Error

Error

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

Temporarily Unavailable

" + }, + { + "name": "barcodelookup-cf-challenge", + "status": 403, + "inputUrl": "https://www.barcodelookup.com/012000161155", + "payload": "Barcode Lookup Security Verification
Enable JavaScript and cookies to continue
" + } + ] +} diff --git a/hub/test/fixtures/adapters/youtube-data-api.json b/hub/test/fixtures/adapters/youtube-data-api.json new file mode 100644 index 0000000..502b952 --- /dev/null +++ b/hub/test/fixtures/adapters/youtube-data-api.json @@ -0,0 +1,43 @@ +{ + "adapterId": "youtube-data-api", + "mode": "twin", + "inputUrl": "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails&id=dQw4w9WgXcQ", + "expectedFetchUrl": "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics,contentDetails&id=dQw4w9WgXcQ", + "mockPayload": "{\"kind\":\"youtube#videoListResponse\",\"items\":[{\"kind\":\"youtube#video\",\"id\":\"dQw4w9WgXcQ\",\"snippet\":{\"publishedAt\":\"2009-10-25T06:57:33Z\",\"channelId\":\"UCuAXFkgsw1L7xaCfnd5JJOw\",\"title\":\"Rick Astley - Never Gonna Give You Up (Official Music Video)\",\"description\":\"The official video for Never Gonna Give You Up by Rick Astley.\",\"channelTitle\":\"Rick Astley\",\"tags\":[\"rick astley\",\"never gonna give you up\",\"official\"]},\"contentDetails\":{\"duration\":\"PT3M33S\"},\"statistics\":{\"viewCount\":\"1600000000\",\"likeCount\":\"18000000\",\"commentCount\":\"2350000\"}}],\"pageInfo\":{\"totalResults\":1,\"resultsPerPage\":1}}", + "expectTitleIncludes": "Rick Astley - Never Gonna Give You Up", + "expectMarkdownIncludes": [ + "dQw4w9WgXcQ", + "Rick Astley", + "3:33 (PT3M33S)", + "1600000000", + "https://www.youtube.com/watch?v=dQw4w9WgXcQ" + ], + "negativeCases": [ + { + "name": "http-403-permission-denied", + "status": 403, + "payload": "{\"error\":{\"code\":403,\"message\":\"Method doesn't allow unregistered callers (callers without established identity).\",\"status\":\"PERMISSION_DENIED\"}}" + }, + { + "name": "empty-items-404", + "status": 404, + "payload": "{\"kind\":\"youtube#videoListResponse\",\"items\":[],\"pageInfo\":{\"totalResults\":0,\"resultsPerPage\":0}}" + }, + { + "name": "redirect-to-error", + "status": 200, + "finalUrl": "https://www.googleapis.com/error", + "payload": "404 Not Found

Not Found

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

Temporarily Unavailable

" + }, + { + "name": "empty-spa-shell", + "status": 200, + "payload": "YouTube
" + } + ] +} diff --git a/hub/test/wave3-b6-gtin-media-finance-social.test.ts b/hub/test/wave3-b6-gtin-media-finance-social.test.ts new file mode 100644 index 0000000..2caf8b3 --- /dev/null +++ b/hub/test/wave3-b6-gtin-media-finance-social.test.ts @@ -0,0 +1,1040 @@ +import assert from 'node:assert/strict'; +import { createHash } from 'node:crypto'; +import { readFileSync } from 'node:fs'; +import { resolve } from 'node:path'; +import test from 'node:test'; +import { gzipSync } from 'node:zlib'; +import { resolveAdapterPolicyForUrl, resolveUserAgentProfile } from '../src/adapter-policy'; +import { + fetchWithOfficialApiKey, + redactSecretsInBody, + resolveOfficialApiExtraHeaders, + resolveOfficialApiExtraHeadersAsync, + resolveOfficialApiExtraSecrets, + 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 { + decodeBoundedGzipTsvFromBase64, + executeScrapeCall, + fetchNostrRelayNip01Events, + isTrustedTwinRedirectUrl, + isTwinRedirectedToErrorPage, +} from '../src/scrape'; +import { executeExtractCall } from '../src/search-index'; +import { callCoreWasm, resetIsolateBudgetForTests } from '../src/wasm-bridge'; +import { assertFastAsync, assertFastUnscaledSync } from './perf-budget'; + +const WAVE3_B6_CAT_Q_IDS = [ + 'gs1-us-datahub', + 'open-icecat', + 'upcitemdb-barcodelookup', + 'open-product-wikidata-gtin', + 'energy-star', + 'fcc-test-report', + 'prop65-warnings', +] as const; + +const WAVE3_B6_CAT_R_IDS = [ + 'tmdb', + 'imdb-datasets', + 'tvmaze', + 'musicbrainz-coverart', + 'discogs', + 'podcast-index', + 'spotify-web-api', + 'setlist-lastfm', + 'steam-store', + 'igdb', + 'bandcamp', + 'genius-lyrics', +] as const; + +const WAVE3_B6_CAT_S_IDS = [ + 'fed-h15-datadownload', + 'nasdaq-data-link', + 'market-quotes-pack', + 'sec-xbrl-frames', + 'msrb-emma', + 'ffiec-cdr', +] as const; + +const WAVE3_B6_CAT_T_IDS = [ + 'youtube-data-api', + 'threads-api', + 'tumblr', + 'farcaster-hub', + 'nostr-relays', + 'product-hunt', + 'substack-notes-beehiiv', + 'patreon-public', +] as const; + +const ALL_B6_IDS = [ + ...WAVE3_B6_CAT_Q_IDS, + ...WAVE3_B6_CAT_R_IDS, + ...WAVE3_B6_CAT_S_IDS, + ...WAVE3_B6_CAT_T_IDS, +] as const; + +interface B6Fixture { + 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[] }); + +const EXPECTED_CATEGORY_BY_ID: Record<(typeof ALL_B6_IDS)[number], string> = { + 'gs1-us-datahub': 'commerce-social', + 'open-icecat': 'commerce-social', + 'upcitemdb-barcodelookup': 'commerce-social', + 'open-product-wikidata-gtin': 'commerce-social', + 'energy-star': 'public-records', + 'fcc-test-report': 'public-records', + 'prop65-warnings': 'public-records', + tmdb: 'commerce-social', + 'imdb-datasets': 'commerce-social', + tvmaze: 'commerce-social', + 'musicbrainz-coverart': 'commerce-social', + discogs: 'commerce-social', + 'podcast-index': 'commerce-social', + 'spotify-web-api': 'commerce-social', + 'setlist-lastfm': 'commerce-social', + 'steam-store': 'commerce-social', + igdb: 'commerce-social', + bandcamp: 'commerce-social', + 'genius-lyrics': 'commerce-social', + 'fed-h15-datadownload': 'finance', + 'nasdaq-data-link': 'finance', + 'market-quotes-pack': 'finance', + 'sec-xbrl-frames': 'finance', + 'msrb-emma': 'finance', + 'ffiec-cdr': 'finance', + 'youtube-data-api': 'commerce-social', + 'threads-api': 'commerce-social', + tumblr: 'commerce-social', + 'farcaster-hub': 'commerce-social', + 'nostr-relays': 'commerce-social', + 'product-hunt': 'commerce-social', + 'substack-notes-beehiiv': 'commerce-social', + 'patreon-public': 'commerce-social', +}; + +function makeOverflowMock(statusCode: number, bodyStr: string, ct: string, finalUrl?: string) { + return 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' + : statusCode === 403 + ? 'blocked' + : '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, + }, + ], + }), + }; + }; +} + +function makeKeyFetchEnv(statusCode: number, bodyStr: string, ct: string) { + return { + SAFE_PUBLIC_FETCH: (async (input: RequestInfo | URL) => { + const u = new URL(typeof input === 'string' ? input : input instanceof URL ? input.toString() : input.url); + if (u.pathname === '/robots.txt') { + return new Response('User-agent: *\nAllow: /\n', { status: 200, headers: { 'content-type': 'text/plain' } }); + } + return new Response(bodyStr, { status: statusCode, headers: { 'content-type': ct } }); + }) as typeof fetch, + }; +} + +function reqUrl(input: RequestInfo | URL): URL { + return new URL(typeof input === 'string' ? input : input instanceof URL ? input.toString() : input.url); +} + +class MockNostrWebSocket { + static instances: MockNostrWebSocket[] = []; + readonly url: string; + readonly sentMessages: string[] = []; + closedWith?: { code?: number; reason?: string }; + readyState = 0; + private listeners = new Map void>>(); + + constructor(url: string) { + this.url = url; + MockNostrWebSocket.instances.push(this); + } + + addEventListener(type: string, fn: (ev: unknown) => void): void { + const arr = this.listeners.get(type) ?? []; + arr.push(fn); + this.listeners.set(type, arr); + } + + emit(type: string, ev: unknown): void { + for (const fn of this.listeners.get(type) ?? []) { + fn(ev); + } + } + + send(data: string): void { + this.sentMessages.push(data); + } + + close(code?: number, reason?: string): void { + this.closedWith = { code, reason }; + this.readyState = 3; + this.emit('close', {}); + } +} + +test('Wave 3 B6 Integration: All 33 adapter IDs registered, telemetry aligned, zero Rule 7 additions & Rule 9 clean', () => { + assert.equal(ALL_B6_IDS.length, 33, 'Batch B6 must cover all 33 adapters (#368-#400)'); + const registered = new Map(DECLARATIVE_SITE_ADAPTERS.map((a) => [a.id, a])); + + for (const id of ALL_B6_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.equal(adapter.category, EXPECTED_CATEGORY_BY_ID[id], `${id} category mismatch`); + 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`); + } + + // Rule 7: Zero additions to APPROVED_CROSS_DOMAIN_TWIN_HOSTS (TS or Go) + 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_B6_IDS) { + assert.equal(crossBlock.includes(`'${id}'`), false, `Rule 7 violation: ${id} in APPROVED_CROSS_DOMAIN_TWIN_HOSTS`); + } + for (const forbiddenHost of ['coverartarchive.org', 'api.barcodelookup.com', 'api.igdb.com']) { + 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_B6_IDS) { + assert.equal(goCrossMatch[1]!.includes(`"${id}"`), false, `Rule 7 Go violation: ${id} in approvedCrossDomainTwinHostsGo`); + } + + // Rule 9: Zero private / internal names across all 33 B6 manifests, fixtures, and Go sources/tests + const privateBrandRe = new RegExp(Buffer.from('c2hlcGhlcmR8c2hvcGRhd2d8anVpY2VkLj93aGVlbHM=', 'base64').toString('utf8'), 'i'); + for (const id of ALL_B6_IDS) { + const yamlText = readFileSync(resolve('..', 'internal', 'extract', 'manifests', `${id}.yaml`), 'utf8'); + assert.equal(privateBrandRe.test(yamlText), false, `Rule 9 violation in ${id}.yaml`); + const fxText = readFileSync(resolve('test', 'fixtures', 'adapters', `${id}.json`), 'utf8'); + assert.equal(privateBrandRe.test(fxText), false, `Rule 9 violation in ${id}.json`); + } + for (const goRel of [ + 'wave3_gtin_identity.go', + 'wave3_gtin_identity_test.go', + 'wave3_media_lyrics.go', + 'wave3_media_lyrics_test.go', + 'wave3_finance.go', + 'wave3_finance_test.go', + 'wave3_social_creator.go', + 'wave3_social_creator_test.go', + ]) { + const goText = readFileSync(resolve('..', 'internal', 'extract', goRel), 'utf8'); + assert.equal(privateBrandRe.test(goText), false, `Rule 9 violation in ${goRel}`); + } +}); + +test('Wave 3 B6 Fixtures: All 33 golden + >=4 negative cases pass via formatTwin/HTML, executeScrapeCall, executeExtractCall & RequestTracer', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + const b6ApiKeys = { + 'gs1-us-datahub': 'gs1-us-test-key-0123456789abcdef', + 'upcitemdb-barcodelookup': 'upc-barcodelookup-key-0123456789abcdef', + tmdb: 'tmdb-test-api-key-0123456789abcdef', + 'podcast-index': 'podcast-index-key-0123456789abcdef', + PODCASTINDEX_API_SECRET: 'podcast-index-secret-0123456789abcdef', + 'spotify-web-api': 'spotify-access-token-0123456789abcdef', + 'setlist-lastfm': 'setlist-lastfm-key-0123456789abcdef', + igdb: 'igdb-twitch-token-0123456789abcdef', + TWITCH_CLIENT_ID: 'twitch-client-id-0123456789abcdef', + 'nasdaq-data-link': 'nasdaq-data-link-key-0123456789abcdef', + 'market-quotes-pack': 'market-quotes-key-0123456789abcdef', + 'ffiec-cdr': 'ffiec-cdr-token-0123456789abcdef', + 'youtube-data-api': 'youtube-data-api-key-0123456789abcdef', + 'threads-api': 'threads-access-token-0123456789abcdef', + tumblr: 'tumblr-api-key-0123456789abcdef', + 'farcaster-hub': 'neynar-api-key-0123456789abcdef', + 'product-hunt': 'producthunt-token-0123456789abcdef', + 'substack-notes-beehiiv': 'beehiiv-api-key-0123456789abcdef', + }; + + for (const slug of ALL_B6_IDS) { + const fx = JSON.parse(readFileSync(resolve('test', 'fixtures', 'adapters', `${slug}.json`), 'utf8')) as B6Fixture; + 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('{') || trimmedMock.startsWith('[') + ? 'application/json' + : 'text/plain'; + + if (fx.mode === 'twin') { + assert.ok(resolvedTwin && resolvedTwin.id === slug, `${slug}: expected twin for ${fx.inputUrl}`); + if (fx.expectedFetchUrl) { + assert.equal(resolvedTwin.fetchUrl, fx.expectedFetchUrl, `${slug}: unexpected fetchUrl`); + } + const out = resolvedTwin.formatTwin(fx.mockPayload, fx.inputUrl, noopHtmlToMd); + assert.ok(out && out.markdown.trim().length > 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`); + } + } + + // 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, + ...(isKeyTwin ? { apiKeys: b6ApiKeys } : {}), + }, + 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, + ...(isKeyTwin ? { apiKeys: b6ApiKeys } : {}), + }, + 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' && ncTwin && ncTwin.id === slug) { + 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 ? { apiKeys: b6ApiKeys } : {}), + }, + 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 ? { apiKeys: b6ApiKeys } : {}), + }, + 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 B6 Cat Q: Strict 8/12/13/14-digit GTIN validation (#368-#371), fcc-id exhibit mode & Incapsula/SPA rejections', () => { + resetIsolateBudgetForTests(); + + // Valid 8, 12, 13, 14-digit GTINs resolve on #369 & #370 + for (const goodUrl of [ + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=12345670', + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=012000161155', + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=8710103792772', + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=00871010379277', + 'https://api.upcitemdb.com/prod/trial/lookup?upc=012000161155', + 'https://api.barcodelookup.com/v3/products?barcode=0012000161155', + ]) { + assert.ok(resolveSiteExtractorTwin(goodUrl), `Expected valid GTIN route to match: ${goodUrl}`); + } + + // Invalid 9/10/11-digit codes, ASINs, SKUs, hex strings MUST be rejected by route matchers + for (const badUrl of [ + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=B08N5WRWNW', + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=1234567890', + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en>IN=12345678901', + 'https://api.upcitemdb.com/prod/trial/lookup?upc=SKU-12345', + 'https://api.upcitemdb.com/prod/trial/lookup?upc=123456789', + 'https://api.barcodelookup.com/v3/products?barcode=deadbeef1234', + ]) { + assert.equal(resolveSiteExtractorTwin(badUrl), null, `Expected invalid GTIN route to be rejected: ${badUrl}`); + } + + // OpenGTINdb invalid EAN (10-digit) rejected at route match time; invalid GTIN codes in payload omitted from records[] + assert.equal(resolveSiteExtractorTwin('https://opengtindb.org/?ean=1234567890&cmd=query&queryid=400000000'), null); + const openGtinTwin = resolveSiteExtractorTwin('https://opengtindb.org/?ean=4006381333931&cmd=query&queryid=400000000'); + assert.ok(openGtinTwin && openGtinTwin.id === 'open-product-wikidata-gtin'); + const icecatTwin = resolveSiteExtractorTwin('https://live.icecat.biz/api?shopname=openicecat-live&lang=en&icecat_id=32928991'); + assert.ok(icecatTwin && icecatTwin.id === 'open-icecat'); + const icecatBadGtinOut = icecatTwin.formatTwin( + JSON.stringify({ + msg: 'OK', + data: { + GeneralInfo: { + IcecatId: 32928991, + Title: 'Widget', + Brand: 'Acme', + GTIN: ['1234567890', 'B08N5WRWNW'], + }, + }, + }), + 'https://live.icecat.biz/api?shopname=openicecat-live&lang=en&icecat_id=32928991', + noopHtmlToMd, + ); + assert.ok(icecatBadGtinOut); + assert.equal(icecatBadGtinOut.records?.[0]?.gtin, undefined, 'Invalid 10-digit/ASIN codes must NOT appear as GTIN'); + + // Upgraded fcc-id exhibit link extraction on fccid.io/ + const fccIdHtml = `FCC ID BCG-E3542A by Apple Inc.
+

FCC ID BCG-E3542A

+

Grantee: Apple Inc. Equipment Class: DTS Digital Transmission System.

+ Test Report PDF + RF Exposure Info +
`; + const fccIdOut = postExtractHtml(fccIdHtml, 'https://fccid.io/BCG-E3542A', ''); + assert.equal(fccIdOut?.extractorId, 'fcc-id'); + assert.ok(fccIdOut?.markdown.includes('Test Report')); +}); + +test('Wave 3 B6 Cat R: #376 IMDb bounded gzip + nonCommercialLicense, #378 MusicBrainz UA/rate & PoW, #386 multi-site lyrics', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + + // 1. #376 imdb-datasets: full gzip AND mid-stream truncated gzip base64 -> TSV + nonCommercialLicense: true + const tsvText = [ + 'tconst\taverageRating\tnumVotes', + 'tt0000001\t5.7\t2244', + 'tt0000002\t5.5\t308', + 'tt0000003\t6.5\t2286', + ].join('\n'); + const fullGzB64 = gzipSync(Buffer.from(tsvText, 'utf8')).toString('base64'); + const decodedFull = await decodeBoundedGzipTsvFromBase64(fullGzB64); + assert.ok(decodedFull && decodedFull.includes('tt0000001\t5.7\t2244')); + + // Large multi-row gzipped TSV sliced before trailer (simulating HTTP 206 Range chunk) + const manyRows = ['tconst\taverageRating\tnumVotes']; + for (let i = 1; i <= 500; i++) { + manyRows.push(`tt${String(i).padStart(7, '0')}\t${((i % 9) + 1).toFixed(1)}\t${100 + i}`); + } + const fullManyGz = gzipSync(Buffer.from(`${manyRows.join('\n')}\n`, 'utf8')); + const truncatedGzB64 = fullManyGz.subarray(0, Math.max(40, fullManyGz.byteLength - 16)).toString('base64'); + const decodedTrunc = await decodeBoundedGzipTsvFromBase64(truncatedGzB64); + assert.ok(decodedTrunc && decodedTrunc.includes('tconst\taverageRating\tnumVotes'), 'Truncated gzip stream must yield decoded prefix rows'); + + // Bounded <= 2 MiB decompression cap check + const bigRow = 'tt0000001\t8.8\t123456\t' + 'abcdefghij'.repeat(20) + '\n'; + const over2MiBText = 'tconst\taverageRating\tnumVotes\textra\n' + bigRow.repeat(12_000); + const over2MiBGzB64 = gzipSync(Buffer.from(over2MiBText, 'utf8')).toString('base64'); + const boundedDecoded = await decodeBoundedGzipTsvFromBase64(over2MiBGzB64); + assert.ok(boundedDecoded); + assert.ok(Buffer.byteLength(boundedDecoded, 'utf8') <= 2 * 1024 * 1024 + 512, 'Decompressed TSV must stay bounded to <= 2 MiB'); + + const imdbScrape = await executeScrapeCall({ + payload: { + url: 'https://datasets.imdbws.com/title.ratings.tsv.gz', + formats: ['markdown', 'records'], + discoverLlmsTxt: false, + noCache: true, + }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string; headers?: Record }> }).requests[0]!; + assert.equal(req.headers?.Range, 'bytes=0-262143'); + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: req.url, + outcome: 'ok', + status: 206, + contentType: 'binary/octet-stream', + bodyEncoding: 'base64', + body: fullGzB64, + }, + ], + }), + }; + }, + }); + assert.equal(imdbScrape.status, 200); + assert.equal(imdbScrape.body.extractorId, 'imdb-datasets'); + assert.equal(imdbScrape.body.contentState, 'active'); + assert.ok(String(imdbScrape.body.markdown).includes('IMDb Non-Commercial Datasets')); + assert.ok(String(imdbScrape.body.markdown).includes('nonCommercialLicense: true')); + const imdbRecs = imdbScrape.body.records as Array>; + assert.ok(Array.isArray(imdbRecs) && imdbRecs.length >= 3); + assert.equal(imdbRecs[0]?.nonCommercialLicense, true); + + // Also verify executeExtractCall decodes base64 gzip for #376 + const imdbExtract = await executeExtractCall({ + payload: { urls: ['https://datasets.imdbws.com/title.ratings.tsv.gz'], includeRawContent: true, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [ + { + id: req.id, + url: req.url, + outcome: 'ok', + status: 206, + contentType: 'binary/octet-stream', + bodyEncoding: 'base64', + body: fullGzB64, + }, + ], + }), + }; + }, + }); + assert.equal(imdbExtract.status, 200); + const imdbExRes = (imdbExtract.body as { results: Array<{ contentState?: string; rawContent?: string; chunks: Array<{ text: string }> }> }).results[0]!; + assert.equal(imdbExRes.contentState, 'active'); + const imdbExText = imdbExRes.rawContent || imdbExRes.chunks.map((c) => c.text).join('\n'); + assert.ok(imdbExText.includes('tt0000001')); + + // 2. #378 MusicBrainz UA profile, rate limit policy, and /__meb_verify PoW prose shell rejection + const mbPol = resolveAdapterPolicyForUrl('https://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?fmt=json'); + assert.equal(mbPol.adapterId, 'musicbrainz-coverart'); + assert.equal(mbPol.userAgentProfile, 'musicbrainz'); + assert.equal(mbPol.maxConcurrent, 1); + assert.ok((mbPol.minIntervalMs ?? 0) >= 1000); + assert.equal(resolveUserAgentProfile('musicbrainz'), 'EdgeFetch/2.7 (bot@edgefetch.dev; musicbrainz-client)'); + + const mebProseHtml = + 'Verifying your browser

Please wait while we verify your browser request.

'; + const mebScrape = await executeScrapeCall({ + payload: { url: 'https://musicbrainz.org/release/76df3287-6cda-33eb-8e9a-044b5e15ffdd', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: makeOverflowMock(200, mebProseHtml, 'text/html'), + }); + assert.notEqual(mebScrape.body.contentState, 'active', 'MusicBrainz /__meb_verify PoW prose shell must never be active'); + + // 3. #386 Real multi-site lyrics extraction across Genius, AZLyrics, Musixmatch, and SongMeanings (zero copyright refusal) + const azHtml = `Rick Astley - Never Gonna Give You Up Lyrics | AZLyrics.com
"Never Gonna Give You Up"
We're no strangers to love
You know the rules and so do I
`; + const azOut = postExtractHtml(azHtml, 'https://www.azlyrics.com/lyrics/rickastley/nevergonnagiveyouup.html', ''); + assert.equal(azOut?.extractorId, 'genius-lyrics'); + assert.ok(azOut?.markdown.includes("We're no strangers to love\nYou know the rules and so do I")); + + const mxmHtml = `Never Gonna Give You Up Lyrics - Musixmatch
We're no strangers to love
`; + const mxmOut = postExtractHtml(mxmHtml, 'https://www.musixmatch.com/lyrics/Rick-Astley/Never-Gonna-Give-You-Up', ''); + assert.equal(mxmOut?.extractorId, 'genius-lyrics'); + assert.ok(mxmOut?.markdown.includes("We're no strangers to love")); + + const smHtml = `Rick Astley - Never Gonna Give You Up Lyrics | SongMeanings

Never Gonna Give You Up

Classic 1987 pop commitment anthem.
`; + const smOut = postExtractHtml(smHtml, 'https://songmeanings.com/songs/view/3530822107858506064/', ''); + assert.equal(smOut?.extractorId, 'genius-lyrics'); + assert.ok(smOut?.markdown.includes("We're no strangers to love")); + assert.ok(smOut?.markdown.includes('Classic 1987 pop commitment anthem.')); +}); + +test('Wave 3 B6 Cat T: #397 Nostr NIP-11 + bounded read-only WS NIP-01 REQ + SSRF guards + njump.me', async () => { + resetIsolateBudgetForTests(); + resetOverflowRobotsCacheForTests(); + MockNostrWebSocket.instances = []; + + assert.equal(callCoreWasm<{ enabled: boolean }>('nostr_prepare_nip01', { url: 'https://nos.lol/' }).enabled, false); + assert.equal(callCoreWasm<{ enabled: boolean }>('nostr_prepare_nip01', { url: 'https://nos.lol/?nip01=1&kinds=1&limit=5' }).enabled, true); + assert.equal(callCoreWasm<{ enabled: boolean }>('nostr_prepare_nip01', { url: 'https://nos.lol/?kinds=1,30023' }).enabled, true); + + // SSRF / port / credential / private-IP guards fail closed BEFORE opening WS + let factoryCalled = false; + for (const badUrl of [ + 'http://nos.lol/?nip01=1', + 'https://nos.lol:8443/?nip01=1', + 'https://user:pass@nos.lol/?nip01=1', + 'https://127.0.0.1/?nip01=1', + 'https://169.254.169.254/?nip01=1', + 'https://hub.example.com/?nip01=1', + ]) { + const res = await fetchNostrRelayNip01Events({ + url: badUrl, + selfHost: 'hub.example.com', + webSocketFactory: () => { + factoryCalled = true; + return new MockNostrWebSocket('wss://bad/') as unknown as WebSocket; + }, + }); + assert.equal(res.ok, false, `Expected Nostr WS SSRF rejection for ${badUrl}`); + } + assert.equal(factoryCalled, false, 'WebSocket factory must NEVER be called for unsafe Nostr URLs'); + + // robots_disallowed on NIP-11 precheck also blocks WS + const robotsBlocked = await executeScrapeCall({ + payload: { url: 'https://nos.lol/?nip01=1&kinds=1', discoverLlmsTxt: false, noCache: true }, + env: {}, + executeHubFetch: async (_t, body) => { + const req = (JSON.parse(body) as { requests: Array<{ id: string; url: string }> }).requests[0]!; + return { + status: 200, + via: 'hub:overflow', + bodyText: JSON.stringify({ + results: [{ id: req.id, url: req.url, outcome: 'robots_disallowed', status: 422, problem: 'Disallowed by robots.txt' }], + }), + }; + }, + webSocketFactory: () => { + factoryCalled = true; + return new MockNostrWebSocket('wss://nos.lol/') as unknown as WebSocket; + }, + }); + assert.equal(factoryCalled, false, 'WebSocket must NOT open when robots.txt disallows NIP-11 origin'); + assert.notEqual(robotsBlocked.body.contentState, 'active'); + + // Mocked bounded read-only WS NIP-01 REQ -> sends ONLY REQ & CLOSE (ZERO EVENT/AUTH/COUNT), collects events & stops on EOSE + const nip11Json = JSON.stringify({ + name: 'nos.lol', + description: 'Public Nostr relay', + supported_nips: [1, 11], + software: 'https://github.com/hoytech/strfry', + version: '1.0.0', + }); + const wsScrape = await executeScrapeCall({ + payload: { + url: 'https://nos.lol/?nip01=1&kinds=1&limit=99', + formats: ['markdown', 'records'], + discoverLlmsTxt: false, + noCache: true, + }, + env: {}, + executeHubFetch: makeOverflowMock(200, nip11Json, 'application/nostr+json', 'https://nos.lol/'), + webSocketFactory: (wssUrl: string) => { + assert.equal(wssUrl, 'wss://nos.lol/'); + const sock = new MockNostrWebSocket(wssUrl); + queueMicrotask(() => { + sock.readyState = 1; + sock.emit('open', {}); + const reqFrame = JSON.parse(sock.sentMessages[0]!) as [string, string, { kinds: number[]; limit: number }]; + assert.equal(reqFrame[0], 'REQ'); + assert.deepEqual(reqFrame[2].kinds, [1]); + assert.equal(reqFrame[2].limit, 20, 'limit=99 must clamp to <= 20'); + const subId = reqFrame[1]; + sock.emit('message', { + data: JSON.stringify([ + 'EVENT', + subId, + { + id: 'a'.repeat(64), + pubkey: 'b'.repeat(64), + created_at: 1732838400, + kind: 1, + tags: [['t', 'nostr']], + content: 'Live WS note clean text.', + sig: 'c'.repeat(128), + }, + ]), + }); + sock.emit('message', { data: JSON.stringify(['EOSE', subId]) }); + }); + return sock as unknown as WebSocket; + }, + }); + assert.equal(wsScrape.status, 200); + assert.equal(wsScrape.body.extractorId, 'nostr-relays'); + assert.equal(wsScrape.body.contentState, 'active'); + assert.ok(String(wsScrape.body.markdown).includes('Live WS note')); + assert.equal(String(wsScrape.body.markdown).includes('

Verifying your browser before redirecting...

`, + markdown: "Verifying your browser before redirecting...", + }, + { + name: "genius-hashcash-challenge-js-200", + status: 200, + url: "https://genius.com/Example-lyrics", + title: "Genius", + rawHTML: `Genius

Please wait while we verify your session.

`, + markdown: "Please wait while we verify your session.", + }, + { + name: "nos-lol-hashcash-403-45w", + status: 403, + url: "https://nos.lol/", + title: "Verification", + rawHTML: `Verification

` + strings.Repeat("Browser proof of work verification step required. ", 7) + `

`, + markdown: strings.Repeat("Browser proof of work verification step required. ", 7), + }, + { + name: "hashcash-429-45w", + status: 429, + url: "https://example.org/protected", + title: "Rate Limit Challenge", + rawHTML: `Rate Limit Challenge

` + strings.Repeat("Please wait while proof of work completes. ", 7) + `

`, + markdown: strings.Repeat("Please wait while proof of work completes. ", 7), + }, + } + + for _, tc := range powCases { + waf := ClassifyWAFAndChallengeFull(WAFChallengeInput{ + Status: tc.status, + URL: tc.url, + Title: tc.title, + RawHTML: tc.rawHTML, + Markdown: tc.markdown, + }) + if waf == nil || waf.Category != "challenge" || waf.Vendor != "generic" { + t.Fatalf("%s: ClassifyWAFAndChallengeFull got %+v, want vendor=generic category=challenge", tc.name, waf) + } + cs := ClassifyContentStateFull(ContentStateInput{ + Status: tc.status, + URL: tc.url, + FinalURL: tc.url, + Title: tc.title, + RawHTML: tc.rawHTML, + Markdown: tc.markdown, + }) + if cs.State != "temporarily_unavailable" { + t.Fatalf("%s: ClassifyContentStateFull got %q (%s), want temporarily_unavailable", tc.name, cs.State, cs.Reason) + } + } + + // 2. Negative anti-FP controls for HASHCASH_CONFIG: short prose mention (no JS assignment) and >=120-word blog with

+	shortProseHTML := `PoW Note

Tumblr uses HASHCASH_CONFIG for rate limiting.

` + shortProseMD := "Tumblr uses HASHCASH_CONFIG for rate limiting." + if got := ClassifyWAFAndChallengeFull(WAFChallengeInput{ + Status: 200, + URL: "https://blog.example.com/pow-note", + Title: "PoW Note", + RawHTML: shortProseHTML, + Markdown: shortProseMD, + }); got != nil { + t.Fatalf("short prose HASHCASH_CONFIG mention must NOT false-positive in ClassifyWAFAndChallengeFull, got %+v", got) + } + if cs := ClassifyContentStateFull(ContentStateInput{ + Status: 200, + URL: "https://blog.example.com/pow-note", + FinalURL: "https://blog.example.com/pow-note", + Title: "PoW Note", + RawHTML: shortProseHTML, + Markdown: shortProseMD, + }); cs.State != "active" { + t.Fatalf("short prose HASHCASH_CONFIG mention got state=%q (%s), want active", cs.State, cs.Reason) + } + + longBlogBody := strings.Repeat("Hashcash proof-of-work challenges protect public web endpoints from automated abuse without relying on invasive third-party tracking cookies or visual puzzles. ", 16) + longBlogHTML := `Hashcash Proof of Work Guide

Hashcash Proof of Work Guide

` + longBlogBody + `

window.HASHCASH_CONFIG = { difficulty: 4 };
` + longBlogMD := "# Hashcash Proof of Work Guide\n\n" + longBlogBody + "\n\n```\nwindow.HASHCASH_CONFIG = { difficulty: 4 };\n```\n" + if got := ClassifyWAFAndChallengeFull(WAFChallengeInput{ + Status: 200, + URL: "https://docs.example.com/hashcash", + Title: "Hashcash Proof of Work Guide", + RawHTML: longBlogHTML, + Markdown: longBlogMD, + }); got != nil { + t.Fatalf(">=120-word blog with
 HASHCASH_CONFIG must NOT false-positive in ClassifyWAFAndChallengeFull, got %+v", got)
+	}
+	if cs := ClassifyContentStateFull(ContentStateInput{
+		Status:   200,
+		URL:      "https://docs.example.com/hashcash",
+		FinalURL: "https://docs.example.com/hashcash",
+		Title:    "Hashcash Proof of Work Guide",
+		RawHTML:  longBlogHTML,
+		Markdown: longBlogMD,
+	}); cs.State != "active" {
+		t.Fatalf(">=120-word blog with 
 HASHCASH_CONFIG got state=%q (%s), want active", cs.State, cs.Reason)
+	}
+
+	// 3. energystar #main[data-basepath] empty shell WITH >= 15 words in